2023-12-09 20:48:22 +00:00
|
|
|
%import textio
|
2023-12-26 14:19:49 +00:00
|
|
|
%import floats
|
2023-12-26 13:47:31 +00:00
|
|
|
%zeropage basicsafe
|
2023-12-09 20:48:22 +00:00
|
|
|
|
2023-10-15 20:44:34 +00:00
|
|
|
main {
|
2023-11-12 19:40:17 +00:00
|
|
|
sub start() {
|
2023-12-26 13:47:31 +00:00
|
|
|
sys.push(11)
|
|
|
|
sys.pushw(2222)
|
2023-12-26 14:19:49 +00:00
|
|
|
floats.push(floats.π)
|
2023-12-26 13:47:31 +00:00
|
|
|
cx16.r2++
|
2023-12-19 21:59:01 +00:00
|
|
|
|
2023-12-26 14:19:49 +00:00
|
|
|
float pi = floats.pop()
|
|
|
|
floats.print_f(pi)
|
|
|
|
txt.nl()
|
2023-12-26 13:47:31 +00:00
|
|
|
|
|
|
|
cx16.r1 = sys.popw()
|
|
|
|
cx16.r0L = sys.pop()
|
|
|
|
|
|
|
|
txt.print_ub(cx16.r0L)
|
2023-12-23 15:37:28 +00:00
|
|
|
txt.nl()
|
2023-12-26 13:47:31 +00:00
|
|
|
txt.print_uw(cx16.r1)
|
2023-12-23 15:37:28 +00:00
|
|
|
txt.nl()
|
2023-12-26 13:47:31 +00:00
|
|
|
|
2023-12-22 16:52:43 +00:00
|
|
|
}
|
2023-12-19 21:59:01 +00:00
|
|
|
}
|