2020-08-27 16:10:22 +00:00
|
|
|
%import c64textio
|
2019-07-16 21:56:00 +00:00
|
|
|
%zeropage basicsafe
|
|
|
|
|
2019-07-29 21:11:13 +00:00
|
|
|
main {
|
2019-07-16 21:56:00 +00:00
|
|
|
|
|
|
|
struct Color {
|
|
|
|
ubyte red
|
|
|
|
ubyte green
|
|
|
|
ubyte blue
|
|
|
|
}
|
|
|
|
|
|
|
|
sub start() {
|
|
|
|
|
2020-07-25 14:25:02 +00:00
|
|
|
Color purple = [255, 0, 255]
|
2019-07-16 21:56:00 +00:00
|
|
|
|
|
|
|
Color other
|
|
|
|
|
|
|
|
other = purple
|
|
|
|
|
2020-07-03 21:49:17 +00:00
|
|
|
other.red /= 2
|
2019-07-16 21:56:00 +00:00
|
|
|
other.green = 10 + other.green / 2
|
|
|
|
other.blue = 99
|
|
|
|
|
2020-08-27 16:10:22 +00:00
|
|
|
txt.print_ub(other.red)
|
2019-07-16 21:56:00 +00:00
|
|
|
c64.CHROUT(',')
|
2020-08-27 16:10:22 +00:00
|
|
|
txt.print_ub(other.green)
|
2019-07-16 21:56:00 +00:00
|
|
|
c64.CHROUT(',')
|
2020-08-27 16:10:22 +00:00
|
|
|
txt.print_ub(other.blue)
|
2019-07-16 21:56:00 +00:00
|
|
|
c64.CHROUT('\n')
|
|
|
|
}
|
|
|
|
}
|