[A83] rst 20h -> solution


[Prev][Next][Index][Thread]

[A83] rst 20h -> solution




The way I wanted the rst 20h into my prgm, was wrong.
It was indeed the ldir / ret at the end of my prgm.
With this it does actually work:

	jr start
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
	.db 0,0,0,0,0,0,0,0,0,0,0,0
start:

	ld hl,name
	rst 20h
	call _chkfindsym
	inc de
	inc de
	inc de
	inc de
ld hl,20h
ld bc,8
ldir
ret

name: .db 5,"APD",0            ;the name of the prgm
                               ;(unprotected)

      SUCKER

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp