Changes

Jump to: navigation, search

Locomotive BASIC

630 bytes added, 10:08, 13 August 2012
/* REMAIN (i) */
: Returns count remaining in delay timer i (0-3) then disables it.
: For the reason that REMAIN is no normal command but a "function" it is necessary in case of a proper functionality to link the command.
: a example in combination with an interrupt delay timer 1:
<pre>
PRINT REMAIN(1)
</pre>
or to stop several/all interrupts at the same time...
<pre>
A=REMAIN(0)=REMAIN(1)=REMAIN(2)=REMAIN(3)
</pre>
: Hint: Take care of interrupts due to parallel working (the same cycle time) or if they are stopped with the BREAK key. Interrupts which were disabled for a certain time will be stored in buffer (for a maximum of 128 entries) and made up their task afterwards in the priorisation as declared.
==== <code>RIGHT$ (se,i)</code> ====
205
edits