2020-03-24 23:32:54 +00:00
|
|
|
%import c64lib
|
2020-03-14 23:47:21 +00:00
|
|
|
%import c64utils
|
2020-04-08 22:12:50 +00:00
|
|
|
%import c64flt
|
2020-04-03 20:44:10 +00:00
|
|
|
%zeropage basicsafe
|
2020-03-24 18:37:54 +00:00
|
|
|
|
2020-07-26 22:32:59 +00:00
|
|
|
main {
|
2020-07-26 16:56:51 +00:00
|
|
|
|
2020-07-26 21:32:20 +00:00
|
|
|
sub start() {
|
2020-08-18 13:16:56 +00:00
|
|
|
|
2020-08-20 10:18:42 +00:00
|
|
|
struct Color {
|
|
|
|
ubyte red
|
|
|
|
uword green
|
|
|
|
float blue
|
2020-08-18 12:47:52 +00:00
|
|
|
}
|
2020-08-17 16:42:02 +00:00
|
|
|
|
2020-08-20 10:18:42 +00:00
|
|
|
Color c = [11,22222,3.1234]
|
2020-08-18 11:49:08 +00:00
|
|
|
|
2020-08-20 11:50:28 +00:00
|
|
|
str string = "irmen"
|
|
|
|
byte[] ab = [1,2,3]
|
|
|
|
ubyte[] aub = [1,2,3]
|
|
|
|
word[] aw = [11,22,33]
|
|
|
|
uword[] auw = [11,22,33]
|
|
|
|
float[] af = [1.1,2.2,3.3]
|
|
|
|
|
|
|
|
c64scr.print_ub(sizeof(ab))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(aub))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(aw))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(auw))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(af))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
|
|
|
|
c64scr.print_ub(c.red)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_uw(c.green)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64flt.print_f(c.blue)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
|
|
|
|
ubyte size = sizeof(Color)
|
|
|
|
c64scr.print_ub(size)
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(Color))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(c))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(c.red))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(c.green))
|
|
|
|
c64.CHROUT('\n')
|
|
|
|
c64scr.print_ub(sizeof(c.blue))
|
|
|
|
c64.CHROUT('\n')
|
2020-07-25 23:32:27 +00:00
|
|
|
}
|
2020-07-03 23:02:36 +00:00
|
|
|
}
|