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