WinApe assembler with working "<", ">" conditions?

Started by Prodatron, 14:36, 08 February 22

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Prodatron

It seems, that WinApe doesn't support < and > comparisons?
In Maxam a condition
- is true, if the result is >0
- is false, if the result is <=0
That makes it possible to test if a value is bigger than another one by creating negative results.


In WinApe a condition is only false, if the result is exactly 0.

Is there any way to test ranges in WinApe assembler? (beside the limit directive)



GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

d_kef

I think this is what I use, given the fact that WinAPE treats constants as unsigned words.



if a / b = 0
print "a<b"
else
print "a>=b"
endif


d_kef

Prodatron

Wow, this is working great!  :)
Thanks a lot for the hint!

GRAPHICAL Z80 MULTITASKING OPERATING SYSTEM

Powered by SMFPacks Menu Editor Mod