prog8/examples/test.p8

28 lines
475 B
Plaintext
Raw Normal View History

%option no_sysinit
%zeropage basicsafe
main {
2024-08-24 14:34:23 +02:00
sub start() {
; nothing!
}
}
derp {
asmsub f_tell() -> uword @R0, uword @R1, uword @R2, uword @R3 {
%asm {{
jmp p8s_internal_f_tell
}}
}
sub internal_f_tell() {
cx16.r1 = read4hex()
sub read4hex() -> uword {
str @shared hex = "0000000000000000000000000000000000000000000"
cx16.r0++
return cx16.r0
}
2024-07-21 13:35:28 +02:00
}
}