You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the reason why we advise to write a NOP after a movi.
The code could be shifted, but how do we handle jumps? Should the compiler shift the jump address accordingly or do we assume the user knows what he's doing and appended a NOP after the MOVI?
The later is implemented at the moment.
Edit: In the ASM version of the simulator, the program instructions are shifted, though.
This is the reason why we advise to write a NOP after a movi.
It only happens with the builtin editor. There is no issue when using IMPORT ROM.
I would expect that if it can work using IMPORT ROM, it could also work using the builtin editor.
The code could be shifted, but how do we handle jumps? Should the compiler shift the jump address accordingly or do we assume the user knows what he's doing and appended a NOP after the MOVI?
The later is implemented at the moment.
It is only the case with "absolute" jumps (no issue with labels).
I think that most users use jumps with labels anyway. So I think the later is fine.
If users use the (IMO quite inconvenient) "absolute" jump instead of using labels,
then it seems appropriate to make the assumption that they know what they are doing (i.e. MOVI is 2 instructions).
No description provided.
The text was updated successfully, but these errors were encountered: