prog8/examples/test.p8

23 lines
344 B
Plaintext
Raw Normal View History

%import c64utils
%zeropage basicsafe
2019-06-25 21:36:54 +00:00
%import c64flt
2019-03-29 01:13:28 +00:00
~ main {
2019-02-21 00:31:33 +00:00
sub start() {
ubyte[100] arr1
ubyte[100] arr2
2019-06-26 20:29:10 +00:00
2019-06-28 00:57:13 +00:00
word w1 = 1111
word w2 = 2222
swap(w1, w2)
swap(A, Y)
swap(arr1[10], arr2[20])
swap(arr1[10], Y)
swap(Y, arr2[10])
swap(@($d020), @($d021))
2019-06-27 23:21:31 +00:00
}
}