PDA

View Full Version : A Useful Resource For Individuals Hoping To Create AR Codes



Delta Blast Burn
Sep 27th, 2012, 10:54 PM
?'s Means that part does not matter/ can be anything.



0XXXXXXX YYYYYYYY 32bit write of YYYYYYYY to location: (XXXXXXX + ‘offset’)

1XXXXXXX ????YYYY 16bit write of YYYY to location:(XXXXXXX + ‘offset’)

2XXXXXXX ??????YY 8bit write of YY to location:(XXXXXXX + ‘offset’)

3XXXXXXX YYYYYYYY 32bit ‘If less-than’ instruction If the value at (XXXXXXX or ‘offset’ when address is 0) < YYYYYYYY then execute the following block of instructions. Conditional instructions can be nested.

4XXXXXXX YYYYYYYY 32bit ‘If greater-than’ instruction. If the value at (XXXXXXX or ‘offset’ when address is 0) > YYYYYYYY then execute the following block of instructions. Conditional instructions can be nested.

5XXXXXXX YYYYYYYY 32bit ‘If equal’ instruction. If the value at (XXXXXXX or ‘offset’ when address is 0) == YYYYYYYY then execute the following block of instructions. Conditional instructions can be nested.

6XXXXXXX YYYYYYYY 32bit ‘If not equal’ instruction. If the value at (XXXXXXX or ‘offset’ when address is 0) != YYYYYYYY then execute the following block of instructions. Conditional instructions can be nested.

7XXXXXXX ZZZZYYYY 16bit ‘If less-than’ instruction. If the value at (XXXXXXX or ‘offset’ when address is 0) masked by ZZZZ < YYYY then execute the following block of instructions. Conditional instructions can be nested.

8XXXXXXX ZZZZYYYY 16bit ‘If greater-than’ instruction. If the value at (XXXXXXX or ‘offset’ when address is 0) masked by ZZZZ > YYYY then execute the following block of instructions. Conditional instructions can be nested.

9XXXXXXX ZZZZYYYY 16bit ‘If equal’ instruction. If the value at (XXXXXXX or ‘offset’ when address is 0) masked by ZZZZ == YYYY then execute the following block of instructions. Conditional instructions can be nested.

AXXXXXXX ZZZZYYYY 16bit ‘If not equal’ instruction. If the value at (XXXXXXX or ‘offset’ when address is 0) masked by ZZZZ != YYYY then execute the following block of instructions. Conditional instructions can be nested.

BXXXXXXX ???????? Load offset register. Loads the offset register with the data at address (XXXXXXX + ‘offset’) Used to perform pointer relative operations.

C??????? NNNNNNNN Repeat operation. Repeats a block of codes for NNNNNNNN times. The block can include conditional instructions. Repeats blocks cannot contain further repeats.

D0?????? ???????? End-if instruction. Ends the most recent conditional block.

D1?????? ???????? End-repeat instruction. Ends the current repeat block. Also implicitly ends any conditional instructions inside the repeat block.

D2?????? ???????? End-code instruction. Ends the current repeat block (if any), then End-if's any further outstanding conditional statements. Also sets ‘offset’ and ‘stored’ to zero.

D3?????? YYYYYYYY Set offset register. Loads the offset register with the value YYYYYYYY.

D4?????? YYYYYYYY Add to ‘stored’. Adds the value YYYYYYYY to the ‘stored’ register.

D5?????? YYYYYYYY Set ‘stored’. Loads the value YYYYYYYY into the ‘stored’ register.

D6?????? XXXXXXXX 32bit store and increment. Writes all 32 bits of ‘stored’ register to address (XXXXXXXX + ‘offset’). Postincrements ‘offset’ by 4.

D7?????? XXXXXXXX 16bit store and increment. Writes bottom 16 bits of ‘stored’ register to address (XXXXXXXX + ‘offset’). Post-increments ‘offset’ by 2.

D8?????? XXXXXXXX 8bit store and increment. Writes bottom 8 bits of ‘stored’ register to address (XXXXXXXX + ‘offset’). Post-increments ‘offset’ by 1.

D9?????? XXXXXXXX 32bit load "stored" from address. Loads ‘stored’ with the 32bit value at address (XXXXXXXX + ‘offset’)

DA?????? XXXXXXXX 16bit load ‘stored’ from address. Loads ‘stored’ with the 16bit value at address (XXXXXXXX + ‘offset’)

DB?????? XXXXXXXX 8bit load "stored" from address. Loads ‘stored’ with the 8bit value at address (XXXXXXXX + ‘offset’)

DC?????? XXXXXXXX Increase value in offset register by amount XXXXXXXX

EXXXXXXX NNNNNNNN
VVVVVVVV VVVVVVVV Direct memory write. Writes NNNNNNNN bytes from the list of values VVVVVVVV to the addresses starting at (XXXXXXX + ‘offset’)

FXXXXXXX NNNNNNNN Memory copy. Copies NNNNNNNN bytes from addresses starting at the ‘offset’ register to addresses starting at XXXXXXXX.

I was thinking this was eligible for a sticky.