mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-06-03 07:29:37 +00:00
121 lines
4.8 KiB
Plaintext
121 lines
4.8 KiB
Plaintext
__constant char * const BG_COLOR = (char *) 53281
|
|
__constant char *BITMAP = (char *) 8192
|
|
__constant const char BLACK = 0
|
|
__constant struct MOS6526_CIA * const CIA1 = (struct MOS6526_CIA *) 56320
|
|
__constant const char CIA_INTERRUPT_CLEAR_ALL = $7f
|
|
__constant char * const D011 = (char *) 53265
|
|
__constant char * const D018 = (char *) 53272
|
|
__constant void (** const HARDWARE_IRQ)() = (void (**)()) 65534
|
|
__constant char * const IRQ_ENABLE = (char *) 53274
|
|
__constant const char IRQ_RASTER = 1
|
|
__constant char * const IRQ_STATUS = (char *) 53273
|
|
__constant char OFFSET_STRUCT_MOS6526_CIA_INTERRUPT = $d
|
|
__constant char * const PROCPORT = (char *) 1
|
|
__constant char * const PROCPORT_DDR = (char *) 0
|
|
__constant const char PROCPORT_DDR_MEMORY_MASK = 7
|
|
__constant const char PROCPORT_RAM_IO = 5
|
|
__constant char * const RASTER = (char *) 53266
|
|
__constant char *SCREEN = (char *) 1024
|
|
__constant const char VICII_BMM = $20
|
|
__constant char * const VICII_CONTROL1 = (char *) 53265
|
|
__constant const char VICII_DEN = $10
|
|
__constant const char VICII_RSEL = 8
|
|
__constant const char WHITE = 1
|
|
void __start()
|
|
void bitmap_clear(char bgcol , char fgcol)
|
|
char bitmap_clear::bgcol
|
|
char bitmap_clear::col
|
|
__constant char bitmap_clear::col#0 = WHITE*$10 // col
|
|
char bitmap_clear::fgcol
|
|
char *bitmap_gfx
|
|
void bitmap_init(char *gfx , char *screen)
|
|
char bitmap_init::$4 // reg byte a 2002.0
|
|
char bitmap_init::$5 // reg byte a 2002.0
|
|
char bitmap_init::$6 // reg byte a 2002.0
|
|
char bitmap_init::$7 // zp[1]:8 500.5
|
|
char bitmap_init::bits
|
|
char bitmap_init::bits#1 // reg byte a 1001.0
|
|
char bitmap_init::bits#3 // reg byte a 1501.5
|
|
char bitmap_init::bits#4 // reg byte a 667.3333333333334
|
|
char *bitmap_init::gfx
|
|
char *bitmap_init::screen
|
|
char bitmap_init::x
|
|
char bitmap_init::x#1 // reg byte x 1501.5
|
|
char bitmap_init::x#2 // reg byte x 500.5
|
|
char bitmap_init::y
|
|
char bitmap_init::y#1 // reg byte x 1501.5
|
|
char bitmap_init::y#2 // reg byte x 500.5
|
|
char *bitmap_init::yoffs
|
|
char *bitmap_init::yoffs#1 // yoffs zp[2]:4 2002.0
|
|
char *bitmap_init::yoffs#2 // yoffs zp[2]:4 625.625
|
|
char *bitmap_init::yoffs#4 // yoffs zp[2]:4 1001.0
|
|
void bitmap_plot(unsigned int x , char y)
|
|
unsigned int bitmap_plot::$1 // zp[2]:4 2002.0
|
|
char bitmap_plot::$2 // reg byte x 2002.0
|
|
char *bitmap_plot::plotter
|
|
unsigned int bitmap_plot::plotter#0 // plotter zp[2]:2 500.5
|
|
char *bitmap_plot::plotter#1 // plotter zp[2]:2 1501.5
|
|
unsigned int bitmap_plot::x
|
|
unsigned int bitmap_plot::x#0 // x zp[2]:6 420.59999999999997
|
|
char bitmap_plot::y
|
|
char bitmap_plot::y#0 // reg byte x 2103.0
|
|
__constant const char bitmap_plot_bit[$100] = { fill( $100, 0) }
|
|
__constant const char bitmap_plot_yhi[$100] = { fill( $100, 0) }
|
|
__constant const char bitmap_plot_ylo[$100] = { fill( $100, 0) }
|
|
char *bitmap_screen
|
|
__loadstore volatile char frame_cnt // zp[1]:13 7.777777777777779
|
|
void init_irq()
|
|
__interrupt(hardware_clobber) void irq()
|
|
void main()
|
|
char *main::toD0181_gfx
|
|
char main::toD0181_return
|
|
__constant char main::toD0181_return#0 = byte1 (unsigned int)SCREEN&$3fff*4|byte1 (unsigned int)BITMAP/4&$f // toD0181_return
|
|
char *main::toD0181_screen
|
|
unsigned int main::vx
|
|
unsigned int main::vx#1 // vx zp[2]:10 202.0
|
|
unsigned int main::vx#2 // vx zp[2]:10 50.5
|
|
unsigned int main::vx#6 // vx zp[2]:10 50.5
|
|
char main::vy
|
|
char main::vy#1 // vy zp[1]:9 202.0
|
|
char main::vy#2 // vy zp[1]:9 33.666666666666664
|
|
char main::vy#8 // vy zp[1]:9 151.5
|
|
unsigned int main::x
|
|
unsigned int main::x#1 // x zp[2]:6 36.72727272727273
|
|
unsigned int main::x#2 // x zp[2]:6 75.75
|
|
char main::y
|
|
char main::y#1 // y zp[1]:12 40.4
|
|
char main::y#2 // y zp[1]:12 60.599999999999994
|
|
void * memset(void *str , char c , unsigned int num)
|
|
char memset::c
|
|
char memset::c#4 // reg byte x 1250.125
|
|
char *memset::dst
|
|
char *memset::dst#1 // dst zp[2]:2 20002.0
|
|
char *memset::dst#2 // dst zp[2]:2 13668.333333333332
|
|
char *memset::dst#4 // dst zp[2]:2 2002.0
|
|
char *memset::end
|
|
char *memset::end#0 // end zp[2]:4 1833.6666666666665
|
|
unsigned int memset::num
|
|
unsigned int memset::num#2 // num zp[2]:4 1001.0
|
|
void *memset::return
|
|
void *memset::str
|
|
void *memset::str#3 // str zp[2]:2
|
|
__constant char plots_per_frame[$100] = { fill( $100, 0) }
|
|
|
|
zp[2]:6 [ main::x#2 main::x#1 bitmap_plot::x#0 ]
|
|
zp[1]:12 [ main::y#2 main::y#1 ]
|
|
zp[2]:10 [ main::vx#2 main::vx#6 main::vx#1 ]
|
|
zp[1]:9 [ main::vy#2 main::vy#8 main::vy#1 ]
|
|
reg byte a [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
|
|
reg byte x [ bitmap_init::x#2 bitmap_init::x#1 ]
|
|
reg byte x [ bitmap_init::y#2 bitmap_init::y#1 ]
|
|
reg byte x [ memset::c#4 ]
|
|
zp[1]:13 [ frame_cnt ]
|
|
reg byte x [ bitmap_plot::y#0 ]
|
|
zp[1]:8 [ bitmap_init::$7 ]
|
|
reg byte a [ bitmap_init::$4 ]
|
|
reg byte a [ bitmap_init::$5 ]
|
|
reg byte a [ bitmap_init::$6 ]
|
|
zp[2]:2 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 ]
|
|
zp[2]:4 [ bitmap_plot::$1 memset::num#2 memset::end#0 bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
|
|
reg byte x [ bitmap_plot::$2 ]
|