A83: Re: Re: JP (HL) [Z80]


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

A83: Re: Re: JP (HL) [Z80]




>     LD    HL,9327h
>     JP    (HL)
> ...PC is now 9327h and the z80 CPU is executing at 9327h.  The reason for
> the parenthesis is that you're not actually jumping into the HL register
> (which of course makes no sense), you're jumping to the address pointed
> to by the HL register.  Or something like that :)
> 
> -Dan Englender

Okay, maybe a bit late response, but why don't they just make a JP 9327h?
That would be 2 bytes smaller. Or is this because programs started with
Send(9 are getting the same value via HL??? (compatibility...)