cpclib-asm 0.10.0

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

;;
; Checks that the duration(OPCODE) function properly returns the number of nops of a the given opcode
; TODO decide what to do with instructions that rely on flags for a conditional execution


	assert duration(pop de) == duration(pop af)
	assert duration(pop de) == 3
	assert duration(nop) == 1
	assert duration(ld a, VAR) == 2
	assert duration(nop) == 1
	
	defs 64 - duration(out (c), a) + duration(inc l) + duration(ld a, (hl))