Re: A83: Re: question about moving programs around
[Prev][Next][Index][Thread]
Re: A83: Re: question about moving programs around
Maybe this is some better code to start with?
.NOLIST
...
...
.LIST
.org 0000h ;or whatever you like
RET ;the TIOS hasn't anything to do with this...
.db "dll"
.db 3 ;number of dll's in file
JR dll1
JR dll2
JR dll3_1
dll1:
;put dll routine here
ret
dll3_1: ;a jumping point
JR dll3 ;dll3 can be reached from here
dll2:
;dll routine...
;<-- 255 bytes "JR-barier" somewhere here -->"
ret
dll3:
; bla
; bla
ret
.END
end
Just don't use CALL and JP to jump inside the DLL, only use JR...
Henk Poley
PS: My mailtool somehow manages to add extra points to .org, .dw etc. etc.
I don't know why...