03-14-2010, 05:40 PM
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.
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.