Re: A83: Out of Range.


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

Re: A83: Out of Range.




Sorry I just realized it's offset from the _next_ opcode.

 ld a,(address)
 ld (label-1),a
 jr 0
label:


address:
.db exit-label


In a message dated 2/7/00 2:39:08 PM Eastern Standard Time, 
ComAsYuAre@aol.com writes:

> Actually that would be one byte off because it offsets from the start of 
the 
> 
>  opcode.  You'd need to do it like this:
>  
>   ld a,(address)
>   ld (label+1),a
>  label:
>   jr 0
>  
>  
>  address:
>  .db exit-label
>  



----
Jonah Cohen
<ComAsYuAre@aol.com>
http://linux.hypnotic.org/~jonah/


Follow-Ups: