2020-12-27 01:22:18 +00:00
|
|
|
%import textio
|
2021-01-03 01:45:25 +00:00
|
|
|
%zeropage basicsafe
|
2021-02-15 16:47:48 +00:00
|
|
|
%option no_sysinit
|
2020-12-08 00:02:38 +00:00
|
|
|
|
2020-12-08 21:54:20 +00:00
|
|
|
main {
|
2020-12-21 23:59:07 +00:00
|
|
|
|
2021-02-21 00:24:44 +00:00
|
|
|
; $1F9C0 - $1F9FF PSG registers
|
|
|
|
|
2021-01-13 21:32:17 +00:00
|
|
|
sub start() {
|
2021-02-20 02:06:00 +00:00
|
|
|
uword xx = &b2.zz
|
|
|
|
xx=&b3.zz
|
2021-02-21 00:24:44 +00:00
|
|
|
xx=&b4.zz
|
|
|
|
xx=&b5.zz
|
2021-02-20 02:06:00 +00:00
|
|
|
|
|
|
|
txt.print_uwhex(&main, true)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uwhex(&b2, true)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uwhex(&b3, true)
|
|
|
|
txt.nl()
|
2021-02-21 00:24:44 +00:00
|
|
|
txt.print_uwhex(&b4, true)
|
|
|
|
txt.nl()
|
|
|
|
txt.print_uwhex(&b5, true)
|
|
|
|
txt.nl()
|
2021-01-10 14:15:00 +00:00
|
|
|
}
|
2020-08-27 17:47:50 +00:00
|
|
|
}
|
2021-02-20 02:06:00 +00:00
|
|
|
|
|
|
|
b2 {
|
|
|
|
str zz="hello"
|
|
|
|
}
|
|
|
|
|
|
|
|
b3 $4001 {
|
|
|
|
str zz="bye"
|
|
|
|
}
|
2021-02-21 00:24:44 +00:00
|
|
|
|
|
|
|
b4 {
|
|
|
|
%option align_word
|
|
|
|
|
|
|
|
str zz="wut"
|
|
|
|
}
|
|
|
|
|
|
|
|
b5 {
|
|
|
|
%option align_page
|
|
|
|
|
|
|
|
str zz="wut2"
|
|
|
|
}
|