mirror of
https://github.com/irmen/prog8.git
synced 2024-12-02 07:49:27 +00:00
23 lines
389 B
Plaintext
23 lines
389 B
Plaintext
|
; source code for a tinyvm program for the timer
|
||
|
%block b1_timer
|
||
|
%vardefs
|
||
|
var byte teller_timer 0
|
||
|
const word screenloc_timer 1028
|
||
|
const byte one_timer 1
|
||
|
%end_vardefs
|
||
|
|
||
|
%instructions
|
||
|
push teller_timer
|
||
|
push one_timer
|
||
|
add
|
||
|
dup
|
||
|
pop teller_timer
|
||
|
push screenloc_timer
|
||
|
swap
|
||
|
syscall memwrite_word
|
||
|
return 0
|
||
|
%end_instructions
|
||
|
%subblocks
|
||
|
%end_subblocks
|
||
|
%end_block ;b1_timer
|