ASM typing error not picked up by Spin Tool
mike101video
Posts: 43
The following example code will compile cleanly - Spin tool reports "compilation successful". I missed typing the RET in an asm routine, and when called it didn't return! ( This is just example code extracted from the real code I am using.)
Seems that an error should be reported?
pub pubtest
dat
org
call #sr
sr mov aaaa, #$31
sr_ret
' Note NO RET on the above line. - The CALL happens, but never comes back.
aaaa res 1
Seems that an error should be reported?
pub pubtest
dat
org
call #sr
sr mov aaaa, #$31
sr_ret
' Note NO RET on the above line. - The CALL happens, but never comes back.
aaaa res 1
Comments
This is not a shortcoming of the assembler. There are times when you actually want empty return lines. For example, when a routine has several entry points with different names but the same exit point, viz:
-Phil
Mike