Instruction Set - RichardMarks/dixy GitHub Wiki

DIXY Assembly Instruction Set

Mnemonic: IDP

Byte Code: 0

Description: increment data pointer


Mnemonic: IVD

Byte Code: 1

Description: increment value of byte at data pointer


Mnemonic: OUT

Byte Code: 2

Description: output byte at data pointer to standard output device


Mnemonic: MVC

Byte Code: 3

Description: if byte at data pointer is zero, move instruction pointer to after next 'C' instruction


Mnemonic: MXD

Byte Code: 4

Description: multiply value of X storage by byte at data pointer, storing product in Y storage


Mnemonic: CDX

Byte Code: 5

Description: copy value of byte at data pointer into X storage


Mnemonic: CDY

Byte Code: 6

Description: copy value of byte at data pointer into Y storage


Mnemonic: AXD

Byte Code: 7

Description: add value of X storage and byte at data pointer, storing sum in Y storage


Mnemonic: SXD

Byte Code: 8

Description: subtract value of X from byte at data pointer, storing difference in Y storage


Mnemonic: CYD

Byte Code: 9

Description: copy value of Y storage into byte at data pointer


Mnemonic: CXD

Byte Code: A

Description: copy value of X storage into byte at data pointer


Mnemonic: XDY

Byte Code: B

Description: divide value of X storage by byte at data pointer, storing quotient in Y storage


Mnemonic: MV3

Byte Code: C

Description: if byte at data pointer is not zero, move instruction pointer to after last '3' instruction


Mnemonic: INP

Byte Code: D

Description: accept byte of input from standard input device, storing value at data pointer


Mnemonic: DVD

Byte Code: E

Description: decrement value of byte at data pointer


Mnemonic: DDP

Byte Code: F

Description: decrement data pointer