Difference between revisions of "AMOS:Bug Not AND ´&´ on ´If´ instrucctions"

From Amiga Coding
Jump to: navigation, search
Line 5: Line 5:
 
A$=A$+"If R0>5 & R0<9 Jump B;"
 
A$=A$+"If R0>5 & R0<9 Jump B;"
  
In this statement, if R0=20 Jump to the "B" was executed and should not make the jump
+
In this statement, if R0=20 Jump to the "B" was executed and should not make the jump--[[User:LuisCoCo|LuisCoCo]] ([[User talk:LuisCoCo|talk]]) 04:56, 6 July 2016 (CEST)
----
 
  
 
==Tested with==
 
==Tested with==

Revision as of 04:56, 6 July 2016

Within an IF statement apparently not evaluated all the & (AND), and only the last run

Example

A$=A$+"If R0>5 & R0<9 Jump B;"

In this statement, if R0=20 Jump to the "B" was executed and should not make the jump--LuisCoCo (talk) 04:56, 6 July 2016 (CEST)

Tested with

  • Currently untested


Credits

  • bug discovered by luisCoCo on the AMOS Factory on 5 July 2016