Difference between revisions of "Notes:RealQ Architecture/1-Byte operations"

From Maths
Jump to: navigation, search
Line 34: Line 34:
 
| colspan="2" | {{C|rr}}
 
| colspan="2" | {{C|rr}}
 
|-
 
|-
 +
| {{C|[[Notes:RealQ instruction INC|INC]] r}}
 +
| colspan="2" | {{C|01}}
 +
| colspan="2" | {{C|11}}
 +
| colspan="2" | {{C|01}}
 +
| colspan="2" | {{C|00}}
 +
| Only affects the {{C|A}} register
 
|
 
|
 +
|-
 +
| {{C|[[Notes:RealQ instruction INC2|INC2]] r}}
 
| colspan="2" | {{C|01}}
 
| colspan="2" | {{C|01}}
 
| colspan="2" | {{C|11}}
 
| colspan="2" | {{C|11}}
 
| colspan="2" | {{C|01}}
 
| colspan="2" | {{C|01}}
| colspan="2" | {{C|xx}}
+
| colspan="2" | {{C|01}}
| colspan="2" style="text-align:center;" | ''(see: {{C|INC}})''
+
| Only affects the {{C|A}} register
 +
|
 +
|-
 +
| {{C|[[Notes:RealQ instruction DEC|DEC]] r}}
 +
| colspan="2" | {{C|01}}
 +
| colspan="2" | {{C|11}}
 +
| colspan="2" | {{C|01}}
 +
| colspan="2" | {{C|10}}
 +
| Only affects the {{C|A}} register
 +
|
 +
|-
 +
| {{C|[[Notes:RealQ instruction DEC2|DEC2]] r}}
 +
| colspan="2" | {{C|01}}
 +
| colspan="2" | {{C|11}}
 +
| colspan="2" | {{C|01}}
 +
| colspan="2" | {{C|11}}
 +
| Only affects the {{C|A}} register
 +
|
 
|-
 
|-
 
| ''(Unused)''
 
| ''(Unused)''

Revision as of 20:20, 2 October 2015

Operation bits Comment Caveats
LOAD r1,r2 00 sr2 r1 r2 r1 must be 16bit, sr2=11 is unused.
(Unused) 00 11 xx xx
MOV r1,r2 01 sr r1 r2 registers must have same size-code[N 1]
SWP r 01 11 00 rr
INC r 01 11 01 00 Only affects the A register
INC2 r 01 11 01 01 Only affects the A register
DEC r 01 11 01 10 Only affects the A register
DEC2 r 01 11 01 11 Only affects the A register
(Unused) 01 11 1x xx


Opcode notes

  1. That is must both be 16bit, low or high