![]() |
|
Inherent IM2 Functions - Printable Version +- Boriel Basic Forum (https://forum.boriel.com) +-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://forum.boriel.com/forumdisplay.php?fid=14) +---- Thread: Inherent IM2 Functions (/showthread.php?tid=180) |
Inherent IM2 Functions - britlion - 2010-03-14 SUB <name> as interrupt stuff end sub would be pretty awesome. A clever compiler could follow this as a code entry point separate from the main thread and assume any variables or functions called would actually be used. A really clever compiler would explain that PAUSE was a bad idea. As is HALT in any ASM chained - because it would have disabled interrupts and re-enabled them at the end. |