Intranet Catprocess
  1. news...
  2. about Blackvoxel
  3. download
  4. manual
  5. videos
  6. about us
  1. Ext

    Affected Flags
    C V N Z
     
       

    ext : extend data size

    The ext data function is to extend data size in a register from 8 bits (or 16 bits) to 16 or 32 bits. This function is intended only for signed numbers because the sign bit is extended.

    Forms and variants

    rx = working register

    Form Effect
    ext.bw rx
    8bits -> 16 bits
    ext.bl
    8bits -> 32 bits
    ext.wl 16bits-> 32 bits

    Instruction encoding

    D = Working Register
    
    Instruction Op
    Code
    Cycles Encoding
    ext.bw rx 21 6 00100001 0000DDDD
    ext.bl rx 61 6 01100001 0000DDDD
    ext.wl rx A1 6 10100001 0000DDDD

    Code Examples

    // Example : Todo
    
    
              
     
     
  2. Google+