Ejemplo n.º 1
0
        // source register (5 bits)
        private static bool r(uint wInstr, Avr8Disassembler dasm)
        {
            var iReg = (int)((wInstr >> 4) & 0x10 | (wInstr >> 4) & 0x0F);

            dasm.ops.Add(dasm.Register(iReg));
            return(true);
        }
Ejemplo n.º 2
0
 // register pair used by adiw
 private static bool q(uint wInstr, Avr8Disassembler dasm)
 {
     dasm.ops.Add(dasm.Register(24 + ((int)(wInstr >> 3) & 6)));
     return(true);
 }
Ejemplo n.º 3
0
 // register pair source
 private static bool P(uint wInstr, Avr8Disassembler dasm)
 {
     dasm.ops.Add(dasm.Register(((int)wInstr << 1) & ~1));
     return(true);
 }
Ejemplo n.º 4
0
 // source register (r16-r31)
 private static bool r4(uint wInstr, Avr8Disassembler dasm)
 {
     dasm.ops.Add(dasm.Register(0x10 | (int)wInstr & 0x0F));
     return(true);
 }
Ejemplo n.º 5
0
 // Destination register
 private static bool D(uint wInstr, Avr8Disassembler dasm)
 {
     dasm.ops.Add(dasm.Register(((int)wInstr >> 4) & 0x1F));
     return(true);
 }