0 Members and 5 Guests are viewing this topic.
EDIT: @NemoYeah, *2 is shift left and /2 is shift right. They automatically optimize to the bit-shift instead of the multiplication.
It will be a set of extra parenthesis:Goto A Jumps to label AGoto (A) Jumps to the address that the Variable A holds
Also, couldn't it be {A} to be more consistent?
By the way, is this the best way to do it to have a subroutine that is simply "jp (hl)" and then just call that subroutine whenever I want to "call hl"?
Quote from: calcdude84se on September 25, 2010, 02:49:02 pmAlso, couldn't it be {A} to be more consistent?That implies a memory read from the pointer stored in A, which is not consistent. The official z80 syntax makes this mistake too, naming an instruction jp (hl) instead of jp hl
It should work with sub(), but I'm not sure if it will work with the recursive sub(). By the way, is this the best way to do it to have a subroutine that is simply "jp (hl)" and then just call that subroutine whenever I want to "call hl"?I haven't started adding this feature yet so I can't really give any screenshots or visualizations, but I will provide an example when its released. Its a fairly complicated and rarely used feature so don't worry too much about it.
:If A and Not(B):Conditional code:End
:If A:!If B:Conditional code:End:End
:If A and (B<>EXP2)