2022-02-09 16:35:49 +00:00
|
|
|
%import floats
|
2022-02-05 00:52:13 +00:00
|
|
|
%import textio
|
2022-02-06 01:40:04 +00:00
|
|
|
%zeropage basicsafe
|
2022-02-05 00:52:13 +00:00
|
|
|
|
2021-10-30 13:15:11 +00:00
|
|
|
main {
|
2022-02-08 00:58:55 +00:00
|
|
|
ubyte @zp mainglobal1=10
|
2022-02-09 16:35:49 +00:00
|
|
|
float @shared fl1 = floats.TWOPI
|
2022-02-06 01:40:04 +00:00
|
|
|
|
2022-02-09 21:32:18 +00:00
|
|
|
uword @shared m1 = memory("eee", 200, 0)
|
|
|
|
|
2022-02-08 18:53:47 +00:00
|
|
|
uword [2] nullwords
|
|
|
|
ubyte [2] nullbytes
|
|
|
|
uword [2] valuewords = [1111,22222]
|
|
|
|
ubyte [2] valuebytes = [111,222]
|
|
|
|
str name = "irmen"
|
2022-02-06 03:29:36 +00:00
|
|
|
|
2022-02-08 18:53:47 +00:00
|
|
|
uword [2] @requirezp zpnullwords
|
|
|
|
ubyte [2] @requirezp zpnullbytes
|
|
|
|
uword [2] @requirezp zpvaluewords = [11111,22222]
|
|
|
|
ubyte [2] @requirezp zpvaluebytes = [111,222]
|
|
|
|
str @requirezp zpname = "irmenzp"
|
2022-02-06 03:29:36 +00:00
|
|
|
|
2022-02-08 18:53:47 +00:00
|
|
|
sub start() {
|
2022-02-08 22:44:21 +00:00
|
|
|
prog8_lib.P8ZP_SCRATCH_B1 = 1
|
2022-02-09 14:45:47 +00:00
|
|
|
prog8_lib.P8ZP_SCRATCH_W1 = 1111
|
2022-02-09 21:32:18 +00:00
|
|
|
str alsoname = "also name"
|
2022-02-09 14:45:47 +00:00
|
|
|
|
2022-02-09 21:32:18 +00:00
|
|
|
txt.print(alsoname)
|
|
|
|
txt.print(zpname)
|
|
|
|
txt.print("internedstring")
|
|
|
|
txt.spc()
|
2022-02-09 14:45:47 +00:00
|
|
|
txt.print_uwhex(&prog8_lib.P8ZP_SCRATCH_B1, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex(&prog8_lib.P8ZP_SCRATCH_W1, true)
|
|
|
|
txt.spc()
|
|
|
|
txt.print_uwhex(&prog8_lib.P8ZP_SCRATCH_W2, true)
|
|
|
|
txt.nl()
|
2022-02-08 22:44:21 +00:00
|
|
|
|
2022-02-08 18:53:47 +00:00
|
|
|
txt.print_uw(nullwords[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(nullbytes[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uw(valuewords[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(valuebytes[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print(name)
|
|
|
|
txt.nl()
|
|
|
|
txt.nl()
|
2022-02-08 00:58:55 +00:00
|
|
|
|
2022-02-08 18:53:47 +00:00
|
|
|
txt.print_uw(zpnullwords[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(zpnullbytes[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uw(zpvaluewords[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print_ub(zpvaluebytes[1])
|
|
|
|
txt.nl()
|
|
|
|
txt.print(zpname)
|
|
|
|
txt.nl()
|
2022-02-08 00:58:55 +00:00
|
|
|
|
2022-02-06 03:29:36 +00:00
|
|
|
}
|
2022-01-23 01:42:26 +00:00
|
|
|
}
|