Re: A86: Porting?
[Prev][Next][Index][Thread]
Re: A86: Porting?
With ZShell, programs are not relocated, as with Usgard or the way the 86
runs asm programs. They are run where they happen to be located in memory.
The commands you have are macros that add the program's address (a memory
address in ZShell has this value) to the offset's of the labels in the ().
Those don't have to be absolute jumps (jp), they could be relative jumps
(jr). If possible, use JR, since it is smaller. The ROM CALL is used to
call rom routines that are located in different places on different 85 rom
versions, because the 85 didn't have a standard rom call table like the 86
(not for all calls, anyway).
Good luck, and make sure you have the permission of the original programmer
before you distribute the ported copy! (source or compiled version)
At 07:28 PM 8/5/98 PDT, you wrote:
>
>>JUMP Z(LeaveGame)
>jp z,LeaveGame
>>CALL Z(MoveUp)
>call z,MoveUp
>>CALL (DrawFrame)
>call DrawFrame
>>ROM CALL(CLEARLCD)
>call _clrLCD
>>JUMP (StartIntro)
>jp StartIntro
>>CALL NZ(DrawLine)
>call nz,DrawLine
>>JUMP NZ(CMLineChkHorSt)
>jp nz,CMLineChkHorSt
>>JUMP C(Test)
>jp c,Test
>Hope This Helps. What Game Are You Porting?
--
David Phillips
mailto:electrum@tfs.net
ICQ: 13811951
AOL/AIM: electrum32
References: