Re: LZ-Adv: JR or JP cc, *


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

Re: LZ-Adv: JR or JP cc, *



>JR 24 says, essentialy, jump forward 24 bytes.  this works no matter what
>byte you're on  if your program starts at byte 100, 24 bytes forward is
>still the right place to be going.
>


Yes, you're right, JR is jump relative.  This still cannot be done without
knowing the relative address of the code that you want to jump to.Let's say
that you want to jump to a function.  You count the lines, and figure that
it's say 98 bytes from the line that you are jumping from.  Ok, you add a
line, remove three lines, add one more, and reomve another.  Then you have
to totally re-count the address.  Assuming that you count them correctly,
not all asm commands are 2 bytes.  Some are 6, 8, etc.  By this time, you'd
have been better off just JUMP_(name)'ing in the beginnig.




                                     -C.J.-






********************************************************************
Unsolicited commercial e-mail to the poster of this message
will be proofread at $70/hr, minimum charge $150.  Submission
of such e-mail to this address will suffice as contractual assent
to the said charging schedule.
********************************************************************


 


References: