CPCWiki forum

General Category => Emulators => Topic started by: Prodatron on 13:36, 08 February 22

Title: WinApe assembler with working "<", ">" conditions?
Post by: Prodatron on 13:36, 08 February 22
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)


Title: Re: WinApe assembler with working "<", ">" conditions?
Post by: d_kef on 16:27, 08 February 22
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
Title: Re: WinApe assembler with working "<", ">" conditions?
Post by: Prodatron on 16:35, 08 February 22
Wow, this is working great!  :)
Thanks a lot for the hint!
Title: Re: WinApe assembler with working "<", ">" conditions?
Post by: Executioner on 03:13, 24 August 22
Interesting, I wonder how much code I can break by fixing it to act exactly like Maxam?
Powered by SMFPacks Menu Editor Mod