Re: LZ: JUMP macro
[Prev][Next][Index][Thread]
Re: LZ: JUMP macro
At 00:40 12/23/96 UT, you wrote:
>I'm a beginning ZShell programmer and want to know how to use the JUMP macro
>(What I read was the substitute for the jp command).
>
>Thanks
>
JUMP_(Label) = jp Label
JUMP_Z(Label) = jp z,Label
JUMP_NZ(Label) = jp nz,Label
JUMP_C(Label) = jp c,Label
JUMP_NC(Label) = jp nc,label
Example:
MyLabel:
call GET_KEY
cp 0
JUMP_NZ(KeyPressed)
JUMP_(MyLabel)
KeyPressed:
ret
Hope this helps, I wrote it in a hurry.
Nathan Adams
nathana@goodnet.com
"It is better to remain silent and be thought a fool,
than to speak out and remove all doubt."