mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-09-09 08:54:40 +00:00
203 lines
7.2 KiB
Plaintext
203 lines
7.2 KiB
Plaintext
(label) @1
|
|
(label) @begin
|
|
(label) @end
|
|
(const nomodify byte*) BITMAP = (byte*) 8192
|
|
(const nomodify byte) BLUE = (byte) 6
|
|
(const nomodify byte*) BORDER_COLOR = (byte*) 53280
|
|
(const nomodify byte*) D011 = (byte*) 53265
|
|
(byte) MOS6526_CIA::INTERRUPT
|
|
(byte) MOS6526_CIA::PORT_A
|
|
(byte) MOS6526_CIA::PORT_A_DDR
|
|
(byte) MOS6526_CIA::PORT_B
|
|
(byte) MOS6526_CIA::PORT_B_DDR
|
|
(byte) MOS6526_CIA::SERIAL_DATA
|
|
(word) MOS6526_CIA::TIMER_A
|
|
(byte) MOS6526_CIA::TIMER_A_CONTROL
|
|
(word) MOS6526_CIA::TIMER_B
|
|
(byte) MOS6526_CIA::TIMER_B_CONTROL
|
|
(byte) MOS6526_CIA::TOD_10THS
|
|
(byte) MOS6526_CIA::TOD_HOURS
|
|
(byte) MOS6526_CIA::TOD_MIN
|
|
(byte) MOS6526_CIA::TOD_SEC
|
|
(byte) MOS6569_VICII::BG_COLOR
|
|
(byte) MOS6569_VICII::BG_COLOR1
|
|
(byte) MOS6569_VICII::BG_COLOR2
|
|
(byte) MOS6569_VICII::BG_COLOR3
|
|
(byte) MOS6569_VICII::BORDER_COLOR
|
|
(byte) MOS6569_VICII::CONTROL1
|
|
(byte) MOS6569_VICII::CONTROL2
|
|
(byte) MOS6569_VICII::IRQ_ENABLE
|
|
(byte) MOS6569_VICII::IRQ_STATUS
|
|
(byte) MOS6569_VICII::LIGHTPEN_X
|
|
(byte) MOS6569_VICII::LIGHTPEN_Y
|
|
(byte) MOS6569_VICII::MEMORY
|
|
(byte) MOS6569_VICII::RASTER
|
|
(byte) MOS6569_VICII::SPRITE0_COLOR
|
|
(byte) MOS6569_VICII::SPRITE0_X
|
|
(byte) MOS6569_VICII::SPRITE0_Y
|
|
(byte) MOS6569_VICII::SPRITE1_COLOR
|
|
(byte) MOS6569_VICII::SPRITE1_X
|
|
(byte) MOS6569_VICII::SPRITE1_Y
|
|
(byte) MOS6569_VICII::SPRITE2_COLOR
|
|
(byte) MOS6569_VICII::SPRITE2_X
|
|
(byte) MOS6569_VICII::SPRITE2_Y
|
|
(byte) MOS6569_VICII::SPRITE3_COLOR
|
|
(byte) MOS6569_VICII::SPRITE3_X
|
|
(byte) MOS6569_VICII::SPRITE3_Y
|
|
(byte) MOS6569_VICII::SPRITE4_COLOR
|
|
(byte) MOS6569_VICII::SPRITE4_X
|
|
(byte) MOS6569_VICII::SPRITE4_Y
|
|
(byte) MOS6569_VICII::SPRITE5_COLOR
|
|
(byte) MOS6569_VICII::SPRITE5_X
|
|
(byte) MOS6569_VICII::SPRITE5_Y
|
|
(byte) MOS6569_VICII::SPRITE6_COLOR
|
|
(byte) MOS6569_VICII::SPRITE6_X
|
|
(byte) MOS6569_VICII::SPRITE6_Y
|
|
(byte) MOS6569_VICII::SPRITE7_COLOR
|
|
(byte) MOS6569_VICII::SPRITE7_X
|
|
(byte) MOS6569_VICII::SPRITE7_Y
|
|
(byte) MOS6569_VICII::SPRITES_BG_COLLISION
|
|
(byte) MOS6569_VICII::SPRITES_COLLISION
|
|
(byte) MOS6569_VICII::SPRITES_ENABLE
|
|
(byte) MOS6569_VICII::SPRITES_EXPAND_X
|
|
(byte) MOS6569_VICII::SPRITES_EXPAND_Y
|
|
(byte) MOS6569_VICII::SPRITES_MC
|
|
(byte) MOS6569_VICII::SPRITES_MCOLOR1
|
|
(byte) MOS6569_VICII::SPRITES_MCOLOR2
|
|
(byte) MOS6569_VICII::SPRITES_PRIORITY
|
|
(byte) MOS6569_VICII::SPRITES_XMSB
|
|
(byte) MOS6581_SID::CH1_ATTACK_DECAY
|
|
(byte) MOS6581_SID::CH1_CONTROL
|
|
(word) MOS6581_SID::CH1_FREQ
|
|
(word) MOS6581_SID::CH1_PULSE_WIDTH
|
|
(byte) MOS6581_SID::CH1_SUSTAIN_RELEASE
|
|
(byte) MOS6581_SID::CH2_ATTACK_DECAY
|
|
(byte) MOS6581_SID::CH2_CONTROL
|
|
(word) MOS6581_SID::CH2_FREQ
|
|
(word) MOS6581_SID::CH2_PULSE_WIDTH
|
|
(byte) MOS6581_SID::CH2_SUSTAIN_RELEASE
|
|
(byte) MOS6581_SID::CH3_ATTACK_DECAY
|
|
(byte) MOS6581_SID::CH3_CONTROL
|
|
(byte) MOS6581_SID::CH3_ENV
|
|
(word) MOS6581_SID::CH3_FREQ
|
|
(byte) MOS6581_SID::CH3_OSC
|
|
(word) MOS6581_SID::CH3_PULSE_WIDTH
|
|
(byte) MOS6581_SID::CH3_SUSTAIN_RELEASE
|
|
(byte) MOS6581_SID::FILTER_CUTOFF_HIGH
|
|
(byte) MOS6581_SID::FILTER_CUTOFF_LOW
|
|
(byte) MOS6581_SID::FILTER_SETUP
|
|
(byte) MOS6581_SID::POT_X
|
|
(byte) MOS6581_SID::POT_Y
|
|
(byte) MOS6581_SID::VOLUME_FILTER_MODE
|
|
(const nomodify byte*) SCREEN = (byte*) 1024
|
|
(const nomodify byte) VIC_BMM = (byte) $20
|
|
(const nomodify byte) VIC_DEN = (byte) $10
|
|
(const nomodify byte*) VIC_MEMORY = (byte*) 53272
|
|
(const nomodify byte) VIC_RSEL = (byte) 8
|
|
(const byte*) bitmask[] = { (byte) $80, (byte) $40, (byte) $20, (byte) $10, (byte) 8, (byte) 4, (byte) 2, (byte) 1 }
|
|
(void()) circle((signed word) circle::xc , (signed word) circle::yc , (signed word) circle::r)
|
|
(signed word~) circle::$10 zp[2]:2 2002.0
|
|
(signed word~) circle::$5 zp[2]:8 2002.0
|
|
(signed word~) circle::$6 zp[2]:8 2002.0
|
|
(signed word~) circle::$7 zp[2]:2 2002.0
|
|
(signed word~) circle::$9 zp[2]:10 2002.0
|
|
(label) circle::@1
|
|
(label) circle::@10
|
|
(label) circle::@11
|
|
(label) circle::@12
|
|
(label) circle::@13
|
|
(label) circle::@2
|
|
(label) circle::@3
|
|
(label) circle::@4
|
|
(label) circle::@5
|
|
(label) circle::@6
|
|
(label) circle::@7
|
|
(label) circle::@8
|
|
(label) circle::@9
|
|
(label) circle::@return
|
|
(signed word) circle::p
|
|
(signed word) circle::p#1 p zp[2]:2 2002.0
|
|
(signed word) circle::p#10 p zp[2]:2 115.5
|
|
(signed word) circle::p#2 p zp[2]:2 2002.0
|
|
(signed word) circle::p#3 p zp[2]:2 572.0
|
|
(signed word) circle::r
|
|
(const signed word) circle::r#0 r = (signed byte) $32
|
|
(signed word) circle::x1
|
|
(signed word) circle::x1#1 x1 zp[2]:4 2002.0
|
|
(signed word) circle::x1#10 x1 zp[2]:4 361.4722222222221
|
|
(signed word) circle::xc
|
|
(const signed word) circle::xc#0 xc = (signed byte) $64
|
|
(signed word) circle::y
|
|
(signed word) circle::y#1 y zp[2]:6 600.5999999999999
|
|
(signed word) circle::y#10 y zp[2]:6 423.5
|
|
(signed word) circle::y#13 y zp[2]:6 667.3333333333334
|
|
(signed word) circle::yc
|
|
(const signed word) circle::yc#0 yc = (signed byte) $64
|
|
(void()) fill((byte*) fill::start , (signed word) fill::size , (byte) fill::val)
|
|
(label) fill::@1
|
|
(label) fill::@2
|
|
(label) fill::@return
|
|
(byte*) fill::addr
|
|
(byte*) fill::addr#0 addr zp[2]:6 101.0
|
|
(byte*) fill::addr#1 addr zp[2]:6 2002.0
|
|
(byte*) fill::addr#2 addr zp[2]:6 1368.3333333333335
|
|
(byte*) fill::end
|
|
(byte*) fill::end#0 end zp[2]:4 220.39999999999998
|
|
(signed word) fill::size
|
|
(signed word) fill::size#2 size zp[2]:4 101.0
|
|
(byte*) fill::start
|
|
(byte) fill::val
|
|
(byte) fill::val#4 reg byte x 166.83333333333334
|
|
(void()) main()
|
|
(label) main::@1
|
|
(label) main::@2
|
|
(label) main::@3
|
|
(void()) plot((signed word) plot::x , (signed word) plot::y)
|
|
(signed word~) plot::$0 zp[2]:12 20002.0
|
|
(byte~) plot::$1 reg byte a 20002.0
|
|
(byte~) plot::$2 reg byte a 20002.0
|
|
(signed word~) plot::$3 zp[2]:10 15001.5
|
|
(signed word~) plot::$4 zp[2]:14 20002.0
|
|
(signed byte~) plot::$5 reg byte a 20002.0
|
|
(byte~) plot::$6 reg byte a 20002.0
|
|
(signed word~) plot::$7 zp[2]:14 20002.0
|
|
(signed word~) plot::$8 zp[2]:14 20002.0
|
|
(label) plot::@return
|
|
(byte*) plot::location
|
|
(byte*) plot::location#1 location zp[2]:12 6667.333333333333
|
|
(byte*) plot::location#2 location zp[2]:12 4000.4
|
|
(byte*) plot::location#3 location zp[2]:12 10001.0
|
|
(signed word) plot::x
|
|
(signed word) plot::x#0 x zp[2]:8 1001.0
|
|
(signed word) plot::x#1 x zp[2]:8 1001.0
|
|
(signed word) plot::x#2 x zp[2]:8 1001.0
|
|
(signed word) plot::x#3 x zp[2]:8 1001.0
|
|
(signed word) plot::x#4 x zp[2]:8 1001.0
|
|
(signed word) plot::x#5 x zp[2]:8 1001.0
|
|
(signed word) plot::x#6 x zp[2]:8 1001.0
|
|
(signed word) plot::x#7 x zp[2]:8 1001.0
|
|
(signed word) plot::x#8 x zp[2]:8 2546.363636363636
|
|
(signed word) plot::y
|
|
(signed word) plot::y#0 y zp[2]:10 2002.0
|
|
(signed word) plot::y#1 y zp[2]:10 2002.0
|
|
(signed word) plot::y#2 y zp[2]:10 2002.0
|
|
(signed word) plot::y#3 y zp[2]:10 2002.0
|
|
(signed word) plot::y#4 y zp[2]:10 2002.0
|
|
(signed word) plot::y#5 y zp[2]:10 2002.0
|
|
(signed word) plot::y#6 y zp[2]:10 2002.0
|
|
(signed word) plot::y#7 y zp[2]:10 2002.0
|
|
(signed word) plot::y#8 y zp[2]:10 4668.333333333333
|
|
|
|
zp[2]:2 [ circle::p#3 circle::p#10 circle::p#1 circle::p#2 circle::$7 circle::$10 ]
|
|
zp[2]:4 [ fill::size#2 fill::end#0 circle::x1#10 circle::x1#1 ]
|
|
reg byte x [ fill::val#4 ]
|
|
zp[2]:6 [ fill::addr#2 fill::addr#0 fill::addr#1 circle::y#13 circle::y#10 circle::y#1 ]
|
|
zp[2]:8 [ circle::$5 circle::$6 plot::x#8 plot::x#5 plot::x#6 plot::x#7 plot::x#0 plot::x#1 plot::x#2 plot::x#3 plot::x#4 ]
|
|
zp[2]:10 [ circle::$9 plot::y#8 plot::y#5 plot::y#6 plot::y#7 plot::y#0 plot::y#1 plot::y#2 plot::y#3 plot::y#4 plot::$3 ]
|
|
zp[2]:12 [ plot::$0 plot::location#1 plot::location#2 plot::location#3 ]
|
|
reg byte a [ plot::$1 ]
|
|
reg byte a [ plot::$2 ]
|
|
zp[2]:14 [ plot::$7 plot::$8 plot::$4 ]
|
|
reg byte a [ plot::$5 ]
|
|
reg byte a [ plot::$6 ]
|