2023-10-14 05:18:37 +00:00
|
|
|
%import textio
|
|
|
|
%zeropage basicsafe
|
|
|
|
|
2023-08-13 22:50:40 +00:00
|
|
|
main {
|
2023-09-18 22:08:17 +00:00
|
|
|
sub start() {
|
2023-10-14 05:57:36 +00:00
|
|
|
ubyte[] b_array = [11,22,33,44]
|
2023-10-14 05:18:37 +00:00
|
|
|
uword[] w_array = [1111,2222,3333,4444]
|
|
|
|
uword[] @split split_array = [1111,2222,3333,4444]
|
|
|
|
ubyte index = 2
|
|
|
|
|
|
|
|
uword value = 9999
|
|
|
|
w_array[index] = value
|
|
|
|
split_array[index] = value
|
|
|
|
|
|
|
|
uword pstep = w_array[index]
|
|
|
|
uword psteps = split_array[index]
|
|
|
|
|
|
|
|
txt.print_uw(pstep)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uw(psteps)
|
|
|
|
txt.nl()
|
|
|
|
|
2023-10-14 05:57:36 +00:00
|
|
|
uword @zp ptr = &w_array[index]
|
|
|
|
txt.print_uw(peekw(ptr))
|
2023-10-14 05:18:37 +00:00
|
|
|
txt.nl()
|
2023-10-14 05:57:36 +00:00
|
|
|
txt.print_uwhex(&w_array, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex(ptr, true)
|
2023-10-14 05:18:37 +00:00
|
|
|
txt.nl()
|
2023-10-14 05:57:36 +00:00
|
|
|
ptr = &split_array
|
|
|
|
txt.print_uw(peekw(ptr))
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uwhex(&w_array, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex(ptr, true)
|
|
|
|
txt.nl()
|
|
|
|
|
|
|
|
ptr = &b_array[index]
|
|
|
|
txt.print_ub(peek(ptr))
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uwhex(&b_array, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex(ptr, true)
|
|
|
|
txt.nl()
|
|
|
|
|
2023-10-04 20:32:13 +00:00
|
|
|
}
|
2023-10-03 20:54:28 +00:00
|
|
|
}
|
2023-10-05 19:52:48 +00:00
|
|
|
|