Re: if ax eq 0



On Jun 9, 10:09 am, xyoavx <spamt...@xxxxxxxxxx> wrote:
Hello,
I don't understand why the following directives do not display an
error (using tasm version 2.02):
if ax eq 0
%out yes
endif
if instead of 0 i'll write 1, the following error will be displayed:
illegal use of register.
Thanks in advance,
Regards,
xyoavx

I use tasm but have never seen that format.
What do you wish to do ?

Maybe this would work.

cmp ax,0
jz is_zero
jmp short next

is_zero:

next:

.