2021-11-05 22:25:07 +00:00
|
|
|
%import textio
|
2021-11-06 02:28:42 +00:00
|
|
|
%import floats
|
2021-11-02 23:47:22 +00:00
|
|
|
%zeropage basicsafe
|
2021-10-27 21:48:02 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2021-11-02 23:47:22 +00:00
|
|
|
sub start() {
|
2021-11-06 13:47:11 +00:00
|
|
|
uword xx=$2000
|
|
|
|
|
|
|
|
@(~xx) *= 2
|
|
|
|
|
2021-11-06 02:28:42 +00:00
|
|
|
; ubyte yy=$30
|
|
|
|
; ubyte zz=9
|
2021-11-06 13:47:11 +00:00
|
|
|
; sys.memset(xx+200, yy*2, ~yy)
|
2021-11-06 02:28:42 +00:00
|
|
|
;
|
|
|
|
; @($c030) = 10
|
2021-11-06 13:47:11 +00:00
|
|
|
; @(~xx) *= 2
|
2021-11-06 02:28:42 +00:00
|
|
|
; txt.print_ub(@($c030))
|
2021-11-06 13:47:11 +00:00
|
|
|
;
|
|
|
|
; float f1 = 1111.11
|
|
|
|
; float f2 = 2222.22
|
|
|
|
; float[] fa = [2222.22, 3333.33]
|
|
|
|
;
|
|
|
|
; swap(f1, fa[1])
|
|
|
|
; floats.print_f(f1)
|
|
|
|
; txt.nl()
|
|
|
|
; floats.print_f(fa[1])
|
2021-11-05 22:25:07 +00:00
|
|
|
|
2021-11-02 23:47:22 +00:00
|
|
|
}
|
2021-05-12 22:35:22 +00:00
|
|
|
}
|