mirror of
https://github.com/irmen/prog8.git
synced 2024-12-11 04:50:05 +00:00
23 lines
390 B
Plaintext
23 lines
390 B
Plaintext
; source code for a tinyvm program for the timer
|
|
%block b1_timer
|
|
%vardefs
|
|
var byte teller_timer 32
|
|
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
|