HELP needed - issues with H.STKE hook.

Pagina 4/4
1 | 2 | 3 |

Van pgimeno

Champion (328)

afbeelding van 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.

Pagina 4/4
1 | 2 | 3 |