[A83] Re: Conditional bcall()ing


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

[A83] Re: Conditional bcall()ing




That's what I did, but I tested it on-calc, not with tasm, wait a sec....

...done,
I was somewhat mistaken,
while in "real" assembly, the 00 stands for the byte after the instruction,
but tasm equates $+0 to FE, or -2, while $+2 is equated to 00

It seems both views were correct, but only one works with TASM

$+5 is the right one. (in Tasm)

> >From: Peter-Martijn Kuipers <hyper@hysoft-automation.com>
> >
> >If I remember correctly, jr $+0 jumps to the next instruction.
> >Checked it by executing
> >:AsmPrgm
> >:1800C9
> >(jr $+0 \ ret)
> >
> >it exits, so you only need 3 bytes.
> >
> >--Peter-Martijn
> 
> Not at all.
> jr $+0 will jump to itself and make a forever loop.
> jr $+2 will jump to next instruction though.
> Go test!
> 
> 
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
> 
> 
> 





References: