![]() |
Inherent IM2 Functions - Printable Version +- Forum (https://www.boriel.com/forum) +-- Forum: Compilers and Computer Languages (https://www.boriel.com/forum/forumdisplay.php?fid=12) +--- Forum: ZX Basic Compiler (https://www.boriel.com/forum/forumdisplay.php?fid=11) +---- Forum: Wishlist (https://www.boriel.com/forum/forumdisplay.php?fid=14) +---- Thread: Inherent IM2 Functions (/showthread.php?tid=180) |
Inherent IM2 Functions - britlion - 03-14-2010 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. |