2019-07-01 21:41:30 +00:00
|
|
|
%import c64utils
|
|
|
|
%zeropage basicsafe
|
2019-07-08 22:02:38 +00:00
|
|
|
%option enable_floats
|
2019-03-29 01:13:28 +00:00
|
|
|
|
2019-03-19 00:22:26 +00:00
|
|
|
~ main {
|
2019-04-21 01:04:13 +00:00
|
|
|
|
2019-07-08 13:13:24 +00:00
|
|
|
sub start() {
|
2019-07-08 22:45:15 +00:00
|
|
|
A=10
|
|
|
|
Y=22
|
2019-07-09 02:09:29 +00:00
|
|
|
uword uw = A*Y
|
|
|
|
|
|
|
|
when uw {
|
|
|
|
12345 -> {
|
|
|
|
A=44
|
|
|
|
}
|
|
|
|
12346 -> {
|
|
|
|
A=44
|
|
|
|
}
|
|
|
|
12347 -> {
|
|
|
|
A=44
|
|
|
|
}
|
|
|
|
else -> {
|
|
|
|
A=0
|
|
|
|
}
|
|
|
|
}
|
2019-07-08 22:02:38 +00:00
|
|
|
|
2019-07-08 22:45:15 +00:00
|
|
|
when 4+A+Y {
|
|
|
|
10 -> {
|
|
|
|
c64scr.print("ten")
|
|
|
|
}
|
|
|
|
5 -> c64scr.print("five")
|
|
|
|
30 -> c64scr.print("thirty")
|
2019-07-09 02:09:29 +00:00
|
|
|
31 -> c64scr.print("thirty1")
|
|
|
|
32 -> c64scr.print("thirty2")
|
|
|
|
33 -> c64scr.print("thirty3")
|
2019-07-08 22:45:15 +00:00
|
|
|
99 -> c64scr.print("nn")
|
|
|
|
55 -> {
|
|
|
|
; should be optimized away
|
|
|
|
}
|
|
|
|
56 -> {
|
|
|
|
; should be optimized away
|
|
|
|
}
|
2019-07-09 02:09:29 +00:00
|
|
|
57243 -> {
|
2019-07-08 22:45:15 +00:00
|
|
|
; should be optimized away
|
|
|
|
}
|
|
|
|
else -> {
|
|
|
|
c64scr.print("!??!\n")
|
|
|
|
c64scr.print("!??!!??!\n")
|
|
|
|
c64scr.print("!??!!??!!?!\n")
|
2019-07-08 22:02:38 +00:00
|
|
|
}
|
|
|
|
}
|
2019-07-08 13:13:24 +00:00
|
|
|
}
|
2019-04-11 22:04:15 +00:00
|
|
|
}
|