Unexpected use of OS_WriteN
Martin Avison (27) 1494 posts |
I came across a strange (to me) use of this SWI in a program I was looking at, for example in BASIC: I suspect this is similar to the OS_GenerateError trick, but I have seen no reference to it. |
nemo (145) 2552 posts |
I hope you weren’t holding your breath… It’s entirely legitimate, slightly less efficient, and slightly more logical than OS_GenerateError. Also be aware that the same trick can be used while issuing a completely unrelated SWI, e.g. read null-terminated string and beep: |