mirror of
https://github.com/irmen/prog8.git
synced 2024-10-25 15:25:46 +00:00
31 lines
567 B
Lua
31 lines
567 B
Lua
%import textio
|
|
%zeropage basicsafe
|
|
|
|
main {
|
|
|
|
sub start() {
|
|
cx16.r0 = $1234
|
|
cx16.r15 = $ea31
|
|
|
|
txt.print_uwhex(cx16.r0, true)
|
|
txt.print_uwhex(cx16.r15, true)
|
|
txt.nl()
|
|
|
|
cx16.save_virtual_registers()
|
|
cx16.r0 = $3333
|
|
cx16.r15 = $4444
|
|
|
|
txt.print_uwhex(cx16.r0, true)
|
|
txt.print_uwhex(cx16.r15, true)
|
|
txt.nl()
|
|
cx16.restore_virtual_registers()
|
|
|
|
txt.print_uwhex(cx16.r0, true)
|
|
txt.print_uwhex(cx16.r15, true)
|
|
txt.nl()
|
|
repeat {
|
|
}
|
|
}
|
|
}
|
|
|