cpclib-asm 0.10.0

cpclib libraries related to z80 assembling
Documentation
1
2
3
4
5
6
7
8
9
10

;;
; Checks that the opcode(OPCODE) function properly returns the 8bit value of the provided opcode.
; TODO decide what to do with instruction > 8bits
OPCODE_POP_DE equ 0xd1
OPCODE_POP_HL equ 0xe1

	assert opcode(pop de) == OPCODE_POP_DE
	assert opcode(pop hl) == OPCODE_POP_HL
	assert opcode(pop hl) != OPCODE_POP_DE