HELP needed - issues with H.STKE hook.

Página 4/4
1 | 2 | 3 |

Por pgimeno

Champion (317)

Imagen del pgimeno

19-02-2022, 13:17

There's one way to avoid the undocumented behaviour with a 16K ROM and software:

header		db	'AB'
		dw	init, ...

; Return in HL the address of the instruction following the CALL
findMyAddress:	pop	hl
		jp	(hl)

init:		call	findMyAddress
		ld	a,40h
		cp	h
		ret	nz
		...

MDL will probably not like this, but well.

Página 4/4
1 | 2 | 3 |