1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-09-09 08:54:40 +00:00
kickc/src/test/ref/bitmap-plotter.sym
2020-05-02 11:38:51 +02:00

111 lines
4.3 KiB
Plaintext

(label) @1
(label) @begin
(label) @end
(const byte*) BG_COLOR = (byte*) 53280
(const nomodify byte*) BITMAP = (byte*) 8192
(const byte) BMM = (byte) $20
(const byte*) D011 = (byte*) 53265
(const byte*) D018 = (byte*) 53272
(const byte) DEN = (byte) $10
(const byte*) FGCOL = (byte*) 53281
(const byte*) RASTER = (byte*) 53266
(const byte) RSEL = (byte) 8
(const byte*) SCREEN = (byte*) 1024
(void()) init_plot_tables()
(byte~) init_plot_tables::$0 reg byte a 2002.0
(byte~) init_plot_tables::$6 reg byte a 2002.0
(byte~) init_plot_tables::$7 reg byte a 2002.0
(byte~) init_plot_tables::$8 reg byte a 2002.0
(byte~) init_plot_tables::$9 zp[1]:7 500.5
(label) init_plot_tables::@1
(label) init_plot_tables::@2
(label) init_plot_tables::@3
(label) init_plot_tables::@4
(label) init_plot_tables::@5
(label) init_plot_tables::@6
(label) init_plot_tables::@return
(byte) init_plot_tables::bits
(byte) init_plot_tables::bits#1 reg byte y 1001.0
(byte) init_plot_tables::bits#3 reg byte y 600.5999999999999
(byte) init_plot_tables::bits#4 reg byte y 667.3333333333334
(byte) init_plot_tables::x
(byte) init_plot_tables::x#1 reg byte x 1501.5
(byte) init_plot_tables::x#2 reg byte x 667.3333333333333
(byte) init_plot_tables::y
(byte) init_plot_tables::y#1 reg byte x 1501.5
(byte) init_plot_tables::y#2 reg byte x 500.5
(byte*) init_plot_tables::yoffs
(byte*) init_plot_tables::yoffs#1 yoffs zp[2]:5 2002.0
(byte*) init_plot_tables::yoffs#2 yoffs zp[2]:5 625.625
(byte*) init_plot_tables::yoffs#4 yoffs zp[2]:5 1001.0
(void()) init_screen()
(label) init_screen::@1
(label) init_screen::@2
(label) init_screen::@3
(label) init_screen::@4
(label) init_screen::@return
(byte*) init_screen::b
(byte*) init_screen::b#1 b zp[2]:5 2002.0
(byte*) init_screen::b#2 b zp[2]:5 1334.6666666666667
(byte*) init_screen::c
(byte*) init_screen::c#1 c zp[2]:3 2002.0
(byte*) init_screen::c#2 c zp[2]:3 1334.6666666666667
(void()) main()
(label) main::@1
(label) main::@2
(label) main::@3
(label) main::@4
(void()) plot((byte) plot::x , (byte) plot::y)
(byte~) plot::$5 reg byte a 2000002.0
(byte~) plot::$6 reg byte a 2000002.0
(byte~) plot::$7 reg byte a 2000002.0
(byte~) plot::$8 reg byte a 2000002.0
(byte~) plot::$9 reg byte a 2000002.0
(label) plot::@return
(byte*) plot::plotter
(byte*) plot::plotter#0 plotter zp[2]:3 1500001.5
(byte*) plot::plotter_x
(byte*) plot::plotter_x#1 plotter_x zp[2]:3 1000001.0
(byte*) plot::plotter_x#2 plotter_x zp[2]:3 400000.4
(word) plot::plotter_y
(word) plot::plotter_y#1 plotter_y zp[2]:5 1000001.0
(word) plot::plotter_y#2 plotter_y zp[2]:5 2000002.0
(byte) plot::x
(byte) plot::x#0 x zp[1]:7 281818.54545454547
(byte) plot::y
(byte) plot::y#0 y zp[1]:2 300000.4285714285
(const to_nomodify byte*) plot_bit[(number) $100] = { fill( $100, 0) }
(const to_nomodify byte*) plot_xhi[(number) $100] = { fill( $100, 0) }
(const to_nomodify byte*) plot_xlo[(number) $100] = { fill( $100, 0) }
(const to_nomodify byte*) plot_yhi[(number) $100] = { fill( $100, 0) }
(const to_nomodify byte*) plot_ylo[(number) $100] = { fill( $100, 0) }
(void()) plots()
(label) plots::@1
(label) plots::@2
(label) plots::@3
(label) plots::@return
(byte) plots::i
(byte) plots::i#1 reg byte x 200002.0
(byte) plots::i#2 reg byte x 100001.0
(const byte) plots_cnt = (byte) 8
(const byte*) plots_x[] = { (byte) $3c, (byte) $50, (byte) $6e, (byte) $50, (byte) $3c, (byte) $28, (byte) $a, (byte) $28 }
(const byte*) plots_y[] = { (byte) $a, (byte) $28, (byte) $3c, (byte) $50, (byte) $6e, (byte) $50, (byte) $3c, (byte) $28 }
reg byte x [ plots::i#2 plots::i#1 ]
reg byte x [ init_plot_tables::x#2 init_plot_tables::x#1 ]
reg byte y [ init_plot_tables::bits#3 init_plot_tables::bits#4 init_plot_tables::bits#1 ]
reg byte x [ init_plot_tables::y#2 init_plot_tables::y#1 ]
zp[1]:2 [ plot::y#0 ]
reg byte a [ plot::$6 ]
zp[2]:3 [ plot::plotter_x#1 plot::plotter_x#2 plot::plotter#0 init_screen::c#2 init_screen::c#1 ]
reg byte a [ plot::$7 ]
reg byte a [ plot::$8 ]
zp[2]:5 [ plot::plotter_y#1 plot::plotter_y#2 init_screen::b#2 init_screen::b#1 init_plot_tables::yoffs#2 init_plot_tables::yoffs#4 init_plot_tables::yoffs#1 ]
reg byte a [ plot::$9 ]
reg byte a [ plot::$5 ]
reg byte a [ init_plot_tables::$0 ]
zp[1]:7 [ init_plot_tables::$9 plot::x#0 ]
reg byte a [ init_plot_tables::$6 ]
reg byte a [ init_plot_tables::$7 ]
reg byte a [ init_plot_tables::$8 ]