2020-10-05 20:58:02 +00:00
|
|
|
Inlined call vicSelectGfxBank::$0 = call toDd00 vicSelectGfxBank::gfx
|
2020-06-27 20:36:52 +00:00
|
|
|
Inlined call call __init
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
CONTROL FLOW GRAPH SSA
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void* memset(void* memset::str , byte memset::c , word memset::num)
|
|
|
|
memset: scope:[memset] from bitmap_clear bitmap_clear::@1
|
|
|
|
memset::c#5 = phi( bitmap_clear/memset::c#0, bitmap_clear::@1/memset::c#1 )
|
|
|
|
memset::str#4 = phi( bitmap_clear/memset::str#0, bitmap_clear::@1/memset::str#1 )
|
|
|
|
memset::num#2 = phi( bitmap_clear/memset::num#0, bitmap_clear::@1/memset::num#1 )
|
|
|
|
memset::$0 = memset::num#2 > 0
|
|
|
|
memset::$1 = ! memset::$0
|
|
|
|
if(memset::$1) goto memset::@1
|
|
|
|
to:memset::@2
|
|
|
|
memset::@1: scope:[memset] from memset memset::@3
|
|
|
|
memset::str#2 = phi( memset/memset::str#4, memset::@3/memset::str#5 )
|
|
|
|
memset::return#0 = memset::str#2
|
|
|
|
to:memset::@return
|
|
|
|
memset::@2: scope:[memset] from memset
|
|
|
|
memset::c#4 = phi( memset/memset::c#5 )
|
|
|
|
memset::num#3 = phi( memset/memset::num#2 )
|
|
|
|
memset::str#3 = phi( memset/memset::str#4 )
|
|
|
|
memset::$4 = (byte*)memset::str#3
|
|
|
|
memset::$2 = memset::$4 + memset::num#3
|
|
|
|
memset::end#0 = memset::$2
|
|
|
|
memset::dst#0 = ((byte*)) memset::str#3
|
|
|
|
to:memset::@3
|
|
|
|
memset::@3: scope:[memset] from memset::@2 memset::@4
|
|
|
|
memset::c#3 = phi( memset::@2/memset::c#4, memset::@4/memset::c#2 )
|
|
|
|
memset::str#5 = phi( memset::@2/memset::str#3, memset::@4/memset::str#6 )
|
|
|
|
memset::end#1 = phi( memset::@2/memset::end#0, memset::@4/memset::end#2 )
|
|
|
|
memset::dst#2 = phi( memset::@2/memset::dst#0, memset::@4/memset::dst#1 )
|
|
|
|
memset::$3 = memset::dst#2 != memset::end#1
|
|
|
|
if(memset::$3) goto memset::@4
|
|
|
|
to:memset::@1
|
|
|
|
memset::@4: scope:[memset] from memset::@3
|
|
|
|
memset::str#6 = phi( memset::@3/memset::str#5 )
|
|
|
|
memset::end#2 = phi( memset::@3/memset::end#1 )
|
|
|
|
memset::dst#3 = phi( memset::@3/memset::dst#2 )
|
|
|
|
memset::c#2 = phi( memset::@3/memset::c#3 )
|
|
|
|
*memset::dst#3 = memset::c#2
|
|
|
|
memset::dst#1 = ++ memset::dst#3
|
|
|
|
to:memset::@3
|
|
|
|
memset::@return: scope:[memset] from memset::@1
|
|
|
|
memset::return#4 = phi( memset::@1/memset::return#0 )
|
|
|
|
memset::return#1 = memset::return#4
|
|
|
|
return
|
|
|
|
to:@return
|
|
|
|
|
|
|
|
void bitmap_init(byte* bitmap_init::gfx , byte* bitmap_init::screen)
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_init: scope:[bitmap_init] from main
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::screen#1 = phi( main/bitmap_init::screen#0 )
|
|
|
|
bitmap_init::gfx#1 = phi( main/bitmap_init::gfx#0 )
|
|
|
|
bitmap_gfx#0 = bitmap_init::gfx#1
|
|
|
|
bitmap_screen#0 = bitmap_init::screen#1
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::bits#0 = $80
|
|
|
|
bitmap_init::x#0 = 0
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@1
|
|
|
|
bitmap_init::@1: scope:[bitmap_init] from bitmap_init bitmap_init::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#24 = phi( bitmap_init/bitmap_screen#0, bitmap_init::@2/bitmap_screen#22 )
|
|
|
|
bitmap_gfx#25 = phi( bitmap_init/bitmap_gfx#0, bitmap_init::@2/bitmap_gfx#23 )
|
|
|
|
bitmap_init::gfx#4 = phi( bitmap_init/bitmap_init::gfx#1, bitmap_init::@2/bitmap_init::gfx#3 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::x#2 = phi( bitmap_init/bitmap_init::x#0, bitmap_init::@2/bitmap_init::x#1 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::bits#3 = phi( bitmap_init/bitmap_init::bits#0, bitmap_init::@2/bitmap_init::bits#4 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_plot_bit[bitmap_init::x#2] = bitmap_init::bits#3
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::bits#1 = bitmap_init::bits#3 >> 1
|
|
|
|
bitmap_init::$0 = bitmap_init::bits#1 == 0
|
|
|
|
bitmap_init::$1 = ! bitmap_init::$0
|
|
|
|
if(bitmap_init::$1) goto bitmap_init::@2
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@3
|
|
|
|
bitmap_init::@2: scope:[bitmap_init] from bitmap_init::@1 bitmap_init::@3
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#22 = phi( bitmap_init::@1/bitmap_screen#24, bitmap_init::@3/bitmap_screen#25 )
|
|
|
|
bitmap_gfx#23 = phi( bitmap_init::@1/bitmap_gfx#25, bitmap_init::@3/bitmap_gfx#26 )
|
|
|
|
bitmap_init::gfx#3 = phi( bitmap_init::@1/bitmap_init::gfx#4, bitmap_init::@3/bitmap_init::gfx#5 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::bits#4 = phi( bitmap_init::@1/bitmap_init::bits#1, bitmap_init::@3/bitmap_init::bits#2 )
|
|
|
|
bitmap_init::x#3 = phi( bitmap_init::@1/bitmap_init::x#2, bitmap_init::@3/bitmap_init::x#4 )
|
|
|
|
bitmap_init::x#1 = bitmap_init::x#3 + rangenext(0,$ff)
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::$2 = bitmap_init::x#1 != rangelast(0,$ff)
|
|
|
|
if(bitmap_init::$2) goto bitmap_init::@1
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@4
|
|
|
|
bitmap_init::@3: scope:[bitmap_init] from bitmap_init::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#25 = phi( bitmap_init::@1/bitmap_screen#24 )
|
|
|
|
bitmap_gfx#26 = phi( bitmap_init::@1/bitmap_gfx#25 )
|
|
|
|
bitmap_init::gfx#5 = phi( bitmap_init::@1/bitmap_init::gfx#4 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::x#4 = phi( bitmap_init::@1/bitmap_init::x#2 )
|
|
|
|
bitmap_init::bits#2 = $80
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@2
|
|
|
|
bitmap_init::@4: scope:[bitmap_init] from bitmap_init::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#20 = phi( bitmap_init::@2/bitmap_screen#22 )
|
|
|
|
bitmap_gfx#21 = phi( bitmap_init::@2/bitmap_gfx#23 )
|
|
|
|
bitmap_init::gfx#2 = phi( bitmap_init::@2/bitmap_init::gfx#3 )
|
|
|
|
bitmap_init::yoffs#0 = bitmap_init::gfx#2
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::y#0 = 0
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@5
|
|
|
|
bitmap_init::@5: scope:[bitmap_init] from bitmap_init::@4 bitmap_init::@6
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#17 = phi( bitmap_init::@4/bitmap_screen#20, bitmap_init::@6/bitmap_screen#13 )
|
|
|
|
bitmap_gfx#18 = phi( bitmap_init::@4/bitmap_gfx#21, bitmap_init::@6/bitmap_gfx#13 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::yoffs#2 = phi( bitmap_init::@4/bitmap_init::yoffs#0, bitmap_init::@6/bitmap_init::yoffs#4 )
|
|
|
|
bitmap_init::y#2 = phi( bitmap_init::@4/bitmap_init::y#0, bitmap_init::@6/bitmap_init::y#1 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::$3 = bitmap_init::y#2 & 7
|
|
|
|
bitmap_init::$4 = < bitmap_init::yoffs#2
|
|
|
|
bitmap_init::$5 = bitmap_init::$3 | bitmap_init::$4
|
|
|
|
bitmap_plot_ylo[bitmap_init::y#2] = bitmap_init::$5
|
|
|
|
bitmap_init::$6 = > bitmap_init::yoffs#2
|
|
|
|
bitmap_plot_yhi[bitmap_init::y#2] = bitmap_init::$6
|
|
|
|
bitmap_init::$7 = bitmap_init::y#2 & 7
|
|
|
|
bitmap_init::$8 = bitmap_init::$7 == 7
|
|
|
|
bitmap_init::$9 = ! bitmap_init::$8
|
|
|
|
if(bitmap_init::$9) goto bitmap_init::@6
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@7
|
|
|
|
bitmap_init::@6: scope:[bitmap_init] from bitmap_init::@5 bitmap_init::@7
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#13 = phi( bitmap_init::@5/bitmap_screen#17, bitmap_init::@7/bitmap_screen#18 )
|
|
|
|
bitmap_gfx#13 = phi( bitmap_init::@5/bitmap_gfx#18, bitmap_init::@7/bitmap_gfx#19 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::yoffs#4 = phi( bitmap_init::@5/bitmap_init::yoffs#2, bitmap_init::@7/bitmap_init::yoffs#1 )
|
|
|
|
bitmap_init::y#3 = phi( bitmap_init::@5/bitmap_init::y#2, bitmap_init::@7/bitmap_init::y#4 )
|
|
|
|
bitmap_init::y#1 = bitmap_init::y#3 + rangenext(0,$ff)
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::$11 = bitmap_init::y#1 != rangelast(0,$ff)
|
|
|
|
if(bitmap_init::$11) goto bitmap_init::@5
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@return
|
|
|
|
bitmap_init::@7: scope:[bitmap_init] from bitmap_init::@5
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#18 = phi( bitmap_init::@5/bitmap_screen#17 )
|
|
|
|
bitmap_gfx#19 = phi( bitmap_init::@5/bitmap_gfx#18 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_init::y#4 = phi( bitmap_init::@5/bitmap_init::y#2 )
|
|
|
|
bitmap_init::yoffs#3 = phi( bitmap_init::@5/bitmap_init::yoffs#2 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::$10 = bitmap_init::yoffs#3 + $28*8
|
|
|
|
bitmap_init::yoffs#1 = bitmap_init::$10
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_init::@6
|
|
|
|
bitmap_init::@return: scope:[bitmap_init] from bitmap_init::@6
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#7 = phi( bitmap_init::@6/bitmap_screen#13 )
|
|
|
|
bitmap_gfx#7 = phi( bitmap_init::@6/bitmap_gfx#13 )
|
|
|
|
bitmap_gfx#1 = bitmap_gfx#7
|
|
|
|
bitmap_screen#1 = bitmap_screen#7
|
2019-09-18 19:53:32 +00:00
|
|
|
return
|
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_clear(byte bitmap_clear::bgcol , byte bitmap_clear::fgcol)
|
2020-04-25 18:10:49 +00:00
|
|
|
bitmap_clear: scope:[bitmap_clear] from main::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_gfx#14 = phi( main::@2/bitmap_gfx#2 )
|
|
|
|
bitmap_screen#8 = phi( main::@2/bitmap_screen#2 )
|
|
|
|
bitmap_clear::bgcol#1 = phi( main::@2/bitmap_clear::bgcol#0 )
|
|
|
|
bitmap_clear::fgcol#1 = phi( main::@2/bitmap_clear::fgcol#0 )
|
|
|
|
bitmap_clear::$0 = bitmap_clear::fgcol#1 * $10
|
|
|
|
bitmap_clear::$1 = bitmap_clear::$0 + bitmap_clear::bgcol#1
|
|
|
|
bitmap_clear::col#0 = bitmap_clear::$1
|
|
|
|
memset::str#0 = (void*)bitmap_screen#8
|
|
|
|
memset::c#0 = bitmap_clear::col#0
|
|
|
|
memset::num#0 = $3e8
|
|
|
|
call memset
|
|
|
|
memset::return#2 = memset::return#1
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_clear::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_clear::@1: scope:[bitmap_clear] from bitmap_clear
|
|
|
|
bitmap_gfx#8 = phi( bitmap_clear/bitmap_gfx#14 )
|
|
|
|
memset::str#1 = (void*)bitmap_gfx#8
|
|
|
|
memset::c#1 = 0
|
|
|
|
memset::num#1 = $1f40
|
|
|
|
call memset
|
|
|
|
memset::return#3 = memset::return#1
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_clear::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_clear::@2: scope:[bitmap_clear] from bitmap_clear::@1
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_clear::@return
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_clear::@return: scope:[bitmap_clear] from bitmap_clear::@2
|
2019-09-18 19:53:32 +00:00
|
|
|
return
|
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_plot(word bitmap_plot::x , byte bitmap_plot::y)
|
|
|
|
bitmap_plot: scope:[bitmap_plot] from bitmap_line::@3 bitmap_line::@4 bitmap_line::@6 bitmap_line::@9
|
|
|
|
bitmap_plot::x#4 = phi( bitmap_line::@3/bitmap_plot::x#2, bitmap_line::@4/bitmap_plot::x#0, bitmap_line::@6/bitmap_plot::x#1, bitmap_line::@9/bitmap_plot::x#3 )
|
|
|
|
bitmap_plot::y#4 = phi( bitmap_line::@3/bitmap_plot::y#2, bitmap_line::@4/bitmap_plot::y#0, bitmap_line::@6/bitmap_plot::y#1, bitmap_line::@9/bitmap_plot::y#3 )
|
|
|
|
bitmap_plot::plotter#0 = (byte*){ bitmap_plot_yhi[bitmap_plot::y#4], bitmap_plot_ylo[bitmap_plot::y#4] }
|
|
|
|
bitmap_plot::$0 = bitmap_plot::x#4 & $fff8
|
|
|
|
bitmap_plot::plotter#1 = bitmap_plot::plotter#0 + bitmap_plot::$0
|
|
|
|
bitmap_plot::$1 = < bitmap_plot::x#4
|
|
|
|
*bitmap_plot::plotter#1 = *bitmap_plot::plotter#1 | bitmap_plot_bit[bitmap_plot::$1]
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_plot::@return
|
|
|
|
bitmap_plot::@return: scope:[bitmap_plot] from bitmap_plot
|
|
|
|
return
|
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_line(word bitmap_line::x1 , word bitmap_line::y1 , word bitmap_line::x2 , word bitmap_line::y2)
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_line: scope:[bitmap_line] from main::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::y2#4 = phi( main::@1/bitmap_line::y2#0 )
|
|
|
|
bitmap_line::x2#1 = phi( main::@1/bitmap_line::x2#0 )
|
|
|
|
bitmap_line::y1#1 = phi( main::@1/bitmap_line::y1#0 )
|
2020-10-05 20:58:02 +00:00
|
|
|
bitmap_line::x1#1 = phi( main::@1/bitmap_line::x1#0 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::x#0 = bitmap_line::x1#1
|
|
|
|
bitmap_line::y#0 = bitmap_line::y1#1
|
|
|
|
bitmap_line::$0 = bitmap_line::x2#1 - bitmap_line::x1#1
|
|
|
|
abs_u16::w#0 = bitmap_line::$0
|
|
|
|
call abs_u16
|
|
|
|
abs_u16::return#0 = abs_u16::return#4
|
|
|
|
to:bitmap_line::@12
|
|
|
|
bitmap_line::@12: scope:[bitmap_line] from bitmap_line
|
|
|
|
bitmap_line::y#16 = phi( bitmap_line/bitmap_line::y#0 )
|
|
|
|
bitmap_line::x#16 = phi( bitmap_line/bitmap_line::x#0 )
|
|
|
|
bitmap_line::x1#4 = phi( bitmap_line/bitmap_line::x1#1 )
|
|
|
|
bitmap_line::x2#7 = phi( bitmap_line/bitmap_line::x2#1 )
|
|
|
|
bitmap_line::y1#2 = phi( bitmap_line/bitmap_line::y1#1 )
|
|
|
|
bitmap_line::y2#1 = phi( bitmap_line/bitmap_line::y2#4 )
|
|
|
|
abs_u16::return#5 = phi( bitmap_line/abs_u16::return#0 )
|
|
|
|
bitmap_line::$1 = abs_u16::return#5
|
|
|
|
bitmap_line::dx#0 = bitmap_line::$1
|
|
|
|
bitmap_line::$2 = bitmap_line::y2#1 - bitmap_line::y1#2
|
|
|
|
abs_u16::w#1 = bitmap_line::$2
|
|
|
|
call abs_u16
|
|
|
|
abs_u16::return#1 = abs_u16::return#4
|
|
|
|
to:bitmap_line::@13
|
|
|
|
bitmap_line::@13: scope:[bitmap_line] from bitmap_line::@12
|
|
|
|
bitmap_line::y1#5 = phi( bitmap_line::@12/bitmap_line::y1#2 )
|
|
|
|
bitmap_line::y2#8 = phi( bitmap_line::@12/bitmap_line::y2#1 )
|
|
|
|
bitmap_line::y#10 = phi( bitmap_line::@12/bitmap_line::y#16 )
|
|
|
|
bitmap_line::x#10 = phi( bitmap_line::@12/bitmap_line::x#16 )
|
|
|
|
bitmap_line::x1#3 = phi( bitmap_line::@12/bitmap_line::x1#4 )
|
|
|
|
bitmap_line::x2#4 = phi( bitmap_line::@12/bitmap_line::x2#7 )
|
|
|
|
bitmap_line::dx#1 = phi( bitmap_line::@12/bitmap_line::dx#0 )
|
|
|
|
abs_u16::return#6 = phi( bitmap_line::@12/abs_u16::return#1 )
|
|
|
|
bitmap_line::$3 = abs_u16::return#6
|
|
|
|
bitmap_line::dy#0 = bitmap_line::$3
|
|
|
|
bitmap_line::$4 = bitmap_line::dx#1 == 0
|
|
|
|
bitmap_line::$5 = bitmap_line::dy#0 == 0
|
|
|
|
bitmap_line::$6 = bitmap_line::$4 && bitmap_line::$5
|
|
|
|
bitmap_line::$7 = ! bitmap_line::$6
|
|
|
|
if(bitmap_line::$7) goto bitmap_line::@1
|
2020-04-25 18:10:49 +00:00
|
|
|
to:bitmap_line::@4
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@1: scope:[bitmap_line] from bitmap_line::@13
|
|
|
|
bitmap_line::y#19 = phi( bitmap_line::@13/bitmap_line::y#10 )
|
|
|
|
bitmap_line::x#19 = phi( bitmap_line::@13/bitmap_line::x#10 )
|
|
|
|
bitmap_line::dy#9 = phi( bitmap_line::@13/bitmap_line::dy#0 )
|
|
|
|
bitmap_line::dx#10 = phi( bitmap_line::@13/bitmap_line::dx#1 )
|
|
|
|
bitmap_line::y1#4 = phi( bitmap_line::@13/bitmap_line::y1#5 )
|
|
|
|
bitmap_line::y2#5 = phi( bitmap_line::@13/bitmap_line::y2#8 )
|
|
|
|
bitmap_line::x1#2 = phi( bitmap_line::@13/bitmap_line::x1#3 )
|
|
|
|
bitmap_line::x2#2 = phi( bitmap_line::@13/bitmap_line::x2#4 )
|
|
|
|
bitmap_line::$8 = bitmap_line::x2#2 - bitmap_line::x1#2
|
|
|
|
sgn_u16::w#0 = bitmap_line::$8
|
|
|
|
call sgn_u16
|
|
|
|
sgn_u16::return#0 = sgn_u16::return#4
|
|
|
|
to:bitmap_line::@14
|
|
|
|
bitmap_line::@14: scope:[bitmap_line] from bitmap_line::@1
|
|
|
|
bitmap_line::x2#11 = phi( bitmap_line::@1/bitmap_line::x2#2 )
|
|
|
|
bitmap_line::y#18 = phi( bitmap_line::@1/bitmap_line::y#19 )
|
|
|
|
bitmap_line::x#18 = phi( bitmap_line::@1/bitmap_line::x#19 )
|
|
|
|
bitmap_line::dy#6 = phi( bitmap_line::@1/bitmap_line::dy#9 )
|
|
|
|
bitmap_line::dx#7 = phi( bitmap_line::@1/bitmap_line::dx#10 )
|
|
|
|
bitmap_line::y1#3 = phi( bitmap_line::@1/bitmap_line::y1#4 )
|
|
|
|
bitmap_line::y2#2 = phi( bitmap_line::@1/bitmap_line::y2#5 )
|
|
|
|
sgn_u16::return#5 = phi( bitmap_line::@1/sgn_u16::return#0 )
|
|
|
|
bitmap_line::$9 = sgn_u16::return#5
|
|
|
|
bitmap_line::sx#0 = bitmap_line::$9
|
|
|
|
bitmap_line::$10 = bitmap_line::y2#2 - bitmap_line::y1#3
|
|
|
|
sgn_u16::w#1 = bitmap_line::$10
|
|
|
|
call sgn_u16
|
|
|
|
sgn_u16::return#1 = sgn_u16::return#4
|
2020-04-25 18:10:49 +00:00
|
|
|
to:bitmap_line::@15
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@15: scope:[bitmap_line] from bitmap_line::@14
|
|
|
|
bitmap_line::y2#11 = phi( bitmap_line::@14/bitmap_line::y2#2 )
|
|
|
|
bitmap_line::x2#10 = phi( bitmap_line::@14/bitmap_line::x2#11 )
|
|
|
|
bitmap_line::sx#8 = phi( bitmap_line::@14/bitmap_line::sx#0 )
|
|
|
|
bitmap_line::y#17 = phi( bitmap_line::@14/bitmap_line::y#18 )
|
|
|
|
bitmap_line::x#17 = phi( bitmap_line::@14/bitmap_line::x#18 )
|
|
|
|
bitmap_line::dy#1 = phi( bitmap_line::@14/bitmap_line::dy#6 )
|
|
|
|
bitmap_line::dx#2 = phi( bitmap_line::@14/bitmap_line::dx#7 )
|
|
|
|
sgn_u16::return#6 = phi( bitmap_line::@14/sgn_u16::return#1 )
|
|
|
|
bitmap_line::$11 = sgn_u16::return#6
|
|
|
|
bitmap_line::sy#0 = bitmap_line::$11
|
|
|
|
bitmap_line::$12 = bitmap_line::dx#2 > bitmap_line::dy#1
|
|
|
|
if(bitmap_line::$12) goto bitmap_line::@2
|
|
|
|
to:bitmap_line::@5
|
|
|
|
bitmap_line::@4: scope:[bitmap_line] from bitmap_line::@13
|
|
|
|
bitmap_line::y#3 = phi( bitmap_line::@13/bitmap_line::y#10 )
|
|
|
|
bitmap_line::x#3 = phi( bitmap_line::@13/bitmap_line::x#10 )
|
|
|
|
bitmap_plot::x#0 = bitmap_line::x#3
|
|
|
|
bitmap_plot::y#0 = (byte)bitmap_line::y#3
|
|
|
|
call bitmap_plot
|
2020-04-25 18:10:49 +00:00
|
|
|
to:bitmap_line::@16
|
|
|
|
bitmap_line::@16: scope:[bitmap_line] from bitmap_line::@4
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_line::@return
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@return: scope:[bitmap_line] from bitmap_line::@16 bitmap_line::@18
|
2019-09-18 19:53:32 +00:00
|
|
|
return
|
|
|
|
to:@return
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@2: scope:[bitmap_line] from bitmap_line::@15
|
|
|
|
bitmap_line::sy#10 = phi( bitmap_line::@15/bitmap_line::sy#0 )
|
|
|
|
bitmap_line::x2#9 = phi( bitmap_line::@15/bitmap_line::x2#10 )
|
|
|
|
bitmap_line::dx#13 = phi( bitmap_line::@15/bitmap_line::dx#2 )
|
|
|
|
bitmap_line::sx#7 = phi( bitmap_line::@15/bitmap_line::sx#8 )
|
|
|
|
bitmap_line::y#14 = phi( bitmap_line::@15/bitmap_line::y#17 )
|
|
|
|
bitmap_line::x#14 = phi( bitmap_line::@15/bitmap_line::x#17 )
|
|
|
|
bitmap_line::dy#2 = phi( bitmap_line::@15/bitmap_line::dy#1 )
|
|
|
|
bitmap_line::$20 = bitmap_line::dy#2 / 2
|
|
|
|
bitmap_line::e1#0 = bitmap_line::$20
|
|
|
|
to:bitmap_line::@9
|
|
|
|
bitmap_line::@5: scope:[bitmap_line] from bitmap_line::@15
|
|
|
|
bitmap_line::sx#9 = phi( bitmap_line::@15/bitmap_line::sx#8 )
|
|
|
|
bitmap_line::y2#10 = phi( bitmap_line::@15/bitmap_line::y2#11 )
|
|
|
|
bitmap_line::dy#10 = phi( bitmap_line::@15/bitmap_line::dy#1 )
|
|
|
|
bitmap_line::sy#5 = phi( bitmap_line::@15/bitmap_line::sy#0 )
|
|
|
|
bitmap_line::y#11 = phi( bitmap_line::@15/bitmap_line::y#17 )
|
|
|
|
bitmap_line::x#11 = phi( bitmap_line::@15/bitmap_line::x#17 )
|
|
|
|
bitmap_line::dx#3 = phi( bitmap_line::@15/bitmap_line::dx#2 )
|
|
|
|
bitmap_line::$15 = bitmap_line::dx#3 / 2
|
|
|
|
bitmap_line::e#0 = bitmap_line::$15
|
|
|
|
to:bitmap_line::@6
|
|
|
|
bitmap_line::@6: scope:[bitmap_line] from bitmap_line::@5 bitmap_line::@7
|
|
|
|
bitmap_line::sx#5 = phi( bitmap_line::@5/bitmap_line::sx#9, bitmap_line::@7/bitmap_line::sx#10 )
|
|
|
|
bitmap_line::y2#9 = phi( bitmap_line::@5/bitmap_line::y2#10, bitmap_line::@7/bitmap_line::y2#3 )
|
|
|
|
bitmap_line::dy#7 = phi( bitmap_line::@5/bitmap_line::dy#10, bitmap_line::@7/bitmap_line::dy#11 )
|
|
|
|
bitmap_line::dx#8 = phi( bitmap_line::@5/bitmap_line::dx#3, bitmap_line::@7/bitmap_line::dx#11 )
|
|
|
|
bitmap_line::e#5 = phi( bitmap_line::@5/bitmap_line::e#0, bitmap_line::@7/bitmap_line::e#6 )
|
|
|
|
bitmap_line::sy#3 = phi( bitmap_line::@5/bitmap_line::sy#5, bitmap_line::@7/bitmap_line::sy#6 )
|
|
|
|
bitmap_line::y#4 = phi( bitmap_line::@5/bitmap_line::y#11, bitmap_line::@7/bitmap_line::y#6 )
|
|
|
|
bitmap_line::x#4 = phi( bitmap_line::@5/bitmap_line::x#11, bitmap_line::@7/bitmap_line::x#12 )
|
|
|
|
bitmap_plot::x#1 = bitmap_line::x#4
|
|
|
|
bitmap_plot::y#1 = (byte)bitmap_line::y#4
|
2019-09-18 19:53:32 +00:00
|
|
|
call bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
to:bitmap_line::@17
|
|
|
|
bitmap_line::@17: scope:[bitmap_line] from bitmap_line::@6
|
|
|
|
bitmap_line::sx#3 = phi( bitmap_line::@6/bitmap_line::sx#5 )
|
|
|
|
bitmap_line::x#13 = phi( bitmap_line::@6/bitmap_line::x#4 )
|
|
|
|
bitmap_line::y2#6 = phi( bitmap_line::@6/bitmap_line::y2#9 )
|
|
|
|
bitmap_line::dy#3 = phi( bitmap_line::@6/bitmap_line::dy#7 )
|
|
|
|
bitmap_line::dx#4 = phi( bitmap_line::@6/bitmap_line::dx#8 )
|
|
|
|
bitmap_line::e#3 = phi( bitmap_line::@6/bitmap_line::e#5 )
|
|
|
|
bitmap_line::sy#1 = phi( bitmap_line::@6/bitmap_line::sy#3 )
|
|
|
|
bitmap_line::y#5 = phi( bitmap_line::@6/bitmap_line::y#4 )
|
|
|
|
bitmap_line::y#1 = bitmap_line::y#5 + bitmap_line::sy#1
|
|
|
|
bitmap_line::e#1 = bitmap_line::e#3 + bitmap_line::dx#4
|
|
|
|
bitmap_line::$17 = bitmap_line::dy#3 < bitmap_line::e#1
|
|
|
|
bitmap_line::$18 = ! bitmap_line::$17
|
|
|
|
if(bitmap_line::$18) goto bitmap_line::@7
|
|
|
|
to:bitmap_line::@8
|
|
|
|
bitmap_line::@7: scope:[bitmap_line] from bitmap_line::@17 bitmap_line::@8
|
|
|
|
bitmap_line::sx#10 = phi( bitmap_line::@17/bitmap_line::sx#3, bitmap_line::@8/bitmap_line::sx#1 )
|
|
|
|
bitmap_line::dy#11 = phi( bitmap_line::@17/bitmap_line::dy#3, bitmap_line::@8/bitmap_line::dy#4 )
|
|
|
|
bitmap_line::dx#11 = phi( bitmap_line::@17/bitmap_line::dx#4, bitmap_line::@8/bitmap_line::dx#14 )
|
|
|
|
bitmap_line::e#6 = phi( bitmap_line::@17/bitmap_line::e#1, bitmap_line::@8/bitmap_line::e#2 )
|
|
|
|
bitmap_line::sy#6 = phi( bitmap_line::@17/bitmap_line::sy#1, bitmap_line::@8/bitmap_line::sy#8 )
|
|
|
|
bitmap_line::x#12 = phi( bitmap_line::@17/bitmap_line::x#13, bitmap_line::@8/bitmap_line::x#1 )
|
|
|
|
bitmap_line::y2#3 = phi( bitmap_line::@17/bitmap_line::y2#6, bitmap_line::@8/bitmap_line::y2#7 )
|
|
|
|
bitmap_line::y#6 = phi( bitmap_line::@17/bitmap_line::y#1, bitmap_line::@8/bitmap_line::y#12 )
|
|
|
|
bitmap_line::$19 = bitmap_line::y#6 != bitmap_line::y2#3
|
|
|
|
if(bitmap_line::$19) goto bitmap_line::@6
|
|
|
|
to:bitmap_line::@3
|
|
|
|
bitmap_line::@8: scope:[bitmap_line] from bitmap_line::@17
|
|
|
|
bitmap_line::dx#14 = phi( bitmap_line::@17/bitmap_line::dx#4 )
|
|
|
|
bitmap_line::sy#8 = phi( bitmap_line::@17/bitmap_line::sy#1 )
|
|
|
|
bitmap_line::y2#7 = phi( bitmap_line::@17/bitmap_line::y2#6 )
|
|
|
|
bitmap_line::y#12 = phi( bitmap_line::@17/bitmap_line::y#1 )
|
|
|
|
bitmap_line::dy#4 = phi( bitmap_line::@17/bitmap_line::dy#3 )
|
|
|
|
bitmap_line::e#4 = phi( bitmap_line::@17/bitmap_line::e#1 )
|
|
|
|
bitmap_line::sx#1 = phi( bitmap_line::@17/bitmap_line::sx#3 )
|
|
|
|
bitmap_line::x#5 = phi( bitmap_line::@17/bitmap_line::x#13 )
|
|
|
|
bitmap_line::x#1 = bitmap_line::x#5 + bitmap_line::sx#1
|
|
|
|
bitmap_line::e#2 = bitmap_line::e#4 - bitmap_line::dy#4
|
|
|
|
to:bitmap_line::@7
|
|
|
|
bitmap_line::@3: scope:[bitmap_line] from bitmap_line::@10 bitmap_line::@7
|
|
|
|
bitmap_line::y#7 = phi( bitmap_line::@10/bitmap_line::y#13, bitmap_line::@7/bitmap_line::y#6 )
|
|
|
|
bitmap_line::x#6 = phi( bitmap_line::@10/bitmap_line::x#9, bitmap_line::@7/bitmap_line::x#12 )
|
|
|
|
bitmap_plot::x#2 = bitmap_line::x#6
|
|
|
|
bitmap_plot::y#2 = (byte)bitmap_line::y#7
|
2019-09-18 19:53:32 +00:00
|
|
|
call bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
to:bitmap_line::@18
|
|
|
|
bitmap_line::@18: scope:[bitmap_line] from bitmap_line::@3
|
|
|
|
to:bitmap_line::@return
|
|
|
|
bitmap_line::@9: scope:[bitmap_line] from bitmap_line::@10 bitmap_line::@2
|
|
|
|
bitmap_line::sy#7 = phi( bitmap_line::@10/bitmap_line::sy#9, bitmap_line::@2/bitmap_line::sy#10 )
|
|
|
|
bitmap_line::x2#8 = phi( bitmap_line::@10/bitmap_line::x2#3, bitmap_line::@2/bitmap_line::x2#9 )
|
|
|
|
bitmap_line::dx#9 = phi( bitmap_line::@10/bitmap_line::dx#12, bitmap_line::@2/bitmap_line::dx#13 )
|
|
|
|
bitmap_line::dy#8 = phi( bitmap_line::@10/bitmap_line::dy#12, bitmap_line::@2/bitmap_line::dy#2 )
|
|
|
|
bitmap_line::e1#5 = phi( bitmap_line::@10/bitmap_line::e1#6, bitmap_line::@2/bitmap_line::e1#0 )
|
|
|
|
bitmap_line::sx#4 = phi( bitmap_line::@10/bitmap_line::sx#6, bitmap_line::@2/bitmap_line::sx#7 )
|
|
|
|
bitmap_line::y#8 = phi( bitmap_line::@10/bitmap_line::y#13, bitmap_line::@2/bitmap_line::y#14 )
|
|
|
|
bitmap_line::x#7 = phi( bitmap_line::@10/bitmap_line::x#9, bitmap_line::@2/bitmap_line::x#14 )
|
|
|
|
bitmap_plot::x#3 = bitmap_line::x#7
|
|
|
|
bitmap_plot::y#3 = (byte)bitmap_line::y#8
|
2019-09-18 19:53:32 +00:00
|
|
|
call bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
to:bitmap_line::@19
|
|
|
|
bitmap_line::@19: scope:[bitmap_line] from bitmap_line::@9
|
|
|
|
bitmap_line::sy#4 = phi( bitmap_line::@9/bitmap_line::sy#7 )
|
|
|
|
bitmap_line::y#15 = phi( bitmap_line::@9/bitmap_line::y#8 )
|
|
|
|
bitmap_line::x2#6 = phi( bitmap_line::@9/bitmap_line::x2#8 )
|
|
|
|
bitmap_line::dx#5 = phi( bitmap_line::@9/bitmap_line::dx#9 )
|
|
|
|
bitmap_line::dy#5 = phi( bitmap_line::@9/bitmap_line::dy#8 )
|
|
|
|
bitmap_line::e1#3 = phi( bitmap_line::@9/bitmap_line::e1#5 )
|
|
|
|
bitmap_line::sx#2 = phi( bitmap_line::@9/bitmap_line::sx#4 )
|
|
|
|
bitmap_line::x#8 = phi( bitmap_line::@9/bitmap_line::x#7 )
|
|
|
|
bitmap_line::x#2 = bitmap_line::x#8 + bitmap_line::sx#2
|
|
|
|
bitmap_line::e1#1 = bitmap_line::e1#3 + bitmap_line::dy#5
|
|
|
|
bitmap_line::$22 = bitmap_line::dx#5 < bitmap_line::e1#1
|
|
|
|
bitmap_line::$23 = ! bitmap_line::$22
|
|
|
|
if(bitmap_line::$23) goto bitmap_line::@10
|
|
|
|
to:bitmap_line::@11
|
|
|
|
bitmap_line::@10: scope:[bitmap_line] from bitmap_line::@11 bitmap_line::@19
|
|
|
|
bitmap_line::sy#9 = phi( bitmap_line::@11/bitmap_line::sy#2, bitmap_line::@19/bitmap_line::sy#4 )
|
|
|
|
bitmap_line::dx#12 = phi( bitmap_line::@11/bitmap_line::dx#6, bitmap_line::@19/bitmap_line::dx#5 )
|
|
|
|
bitmap_line::dy#12 = phi( bitmap_line::@11/bitmap_line::dy#13, bitmap_line::@19/bitmap_line::dy#5 )
|
|
|
|
bitmap_line::e1#6 = phi( bitmap_line::@11/bitmap_line::e1#2, bitmap_line::@19/bitmap_line::e1#1 )
|
|
|
|
bitmap_line::sx#6 = phi( bitmap_line::@11/bitmap_line::sx#11, bitmap_line::@19/bitmap_line::sx#2 )
|
|
|
|
bitmap_line::y#13 = phi( bitmap_line::@11/bitmap_line::y#2, bitmap_line::@19/bitmap_line::y#15 )
|
|
|
|
bitmap_line::x2#3 = phi( bitmap_line::@11/bitmap_line::x2#5, bitmap_line::@19/bitmap_line::x2#6 )
|
|
|
|
bitmap_line::x#9 = phi( bitmap_line::@11/bitmap_line::x#15, bitmap_line::@19/bitmap_line::x#2 )
|
|
|
|
bitmap_line::$24 = bitmap_line::x#9 != bitmap_line::x2#3
|
|
|
|
if(bitmap_line::$24) goto bitmap_line::@9
|
|
|
|
to:bitmap_line::@3
|
|
|
|
bitmap_line::@11: scope:[bitmap_line] from bitmap_line::@19
|
|
|
|
bitmap_line::dy#13 = phi( bitmap_line::@19/bitmap_line::dy#5 )
|
|
|
|
bitmap_line::sx#11 = phi( bitmap_line::@19/bitmap_line::sx#2 )
|
|
|
|
bitmap_line::x2#5 = phi( bitmap_line::@19/bitmap_line::x2#6 )
|
|
|
|
bitmap_line::x#15 = phi( bitmap_line::@19/bitmap_line::x#2 )
|
|
|
|
bitmap_line::dx#6 = phi( bitmap_line::@19/bitmap_line::dx#5 )
|
|
|
|
bitmap_line::e1#4 = phi( bitmap_line::@19/bitmap_line::e1#1 )
|
|
|
|
bitmap_line::sy#2 = phi( bitmap_line::@19/bitmap_line::sy#4 )
|
|
|
|
bitmap_line::y#9 = phi( bitmap_line::@19/bitmap_line::y#15 )
|
|
|
|
bitmap_line::y#2 = bitmap_line::y#9 + bitmap_line::sy#2
|
|
|
|
bitmap_line::e1#2 = bitmap_line::e1#4 - bitmap_line::dx#6
|
|
|
|
to:bitmap_line::@10
|
|
|
|
|
|
|
|
word abs_u16(word abs_u16::w)
|
|
|
|
abs_u16: scope:[abs_u16] from bitmap_line bitmap_line::@12
|
|
|
|
abs_u16::w#2 = phi( bitmap_line/abs_u16::w#0, bitmap_line::@12/abs_u16::w#1 )
|
|
|
|
abs_u16::$0 = > abs_u16::w#2
|
|
|
|
abs_u16::$1 = abs_u16::$0 & $80
|
|
|
|
abs_u16::$3 = 0 != abs_u16::$1
|
|
|
|
if(abs_u16::$3) goto abs_u16::@1
|
|
|
|
to:abs_u16::@2
|
|
|
|
abs_u16::@1: scope:[abs_u16] from abs_u16
|
|
|
|
abs_u16::w#3 = phi( abs_u16/abs_u16::w#2 )
|
|
|
|
abs_u16::$2 = - abs_u16::w#3
|
|
|
|
abs_u16::return#2 = abs_u16::$2
|
|
|
|
to:abs_u16::@return
|
|
|
|
abs_u16::@2: scope:[abs_u16] from abs_u16
|
|
|
|
abs_u16::w#4 = phi( abs_u16/abs_u16::w#2 )
|
|
|
|
abs_u16::return#3 = abs_u16::w#4
|
|
|
|
to:abs_u16::@return
|
|
|
|
abs_u16::@return: scope:[abs_u16] from abs_u16::@1 abs_u16::@2
|
|
|
|
abs_u16::return#7 = phi( abs_u16::@1/abs_u16::return#2, abs_u16::@2/abs_u16::return#3 )
|
|
|
|
abs_u16::return#4 = abs_u16::return#7
|
2019-09-18 19:53:32 +00:00
|
|
|
return
|
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
word sgn_u16(word sgn_u16::w)
|
|
|
|
sgn_u16: scope:[sgn_u16] from bitmap_line::@1 bitmap_line::@14
|
|
|
|
sgn_u16::w#2 = phi( bitmap_line::@1/sgn_u16::w#0, bitmap_line::@14/sgn_u16::w#1 )
|
|
|
|
sgn_u16::$0 = > sgn_u16::w#2
|
|
|
|
sgn_u16::$1 = sgn_u16::$0 & $80
|
|
|
|
sgn_u16::$2 = 0 != sgn_u16::$1
|
|
|
|
if(sgn_u16::$2) goto sgn_u16::@1
|
|
|
|
to:sgn_u16::@2
|
|
|
|
sgn_u16::@1: scope:[sgn_u16] from sgn_u16
|
|
|
|
sgn_u16::return#2 = -1
|
|
|
|
to:sgn_u16::@return
|
|
|
|
sgn_u16::@2: scope:[sgn_u16] from sgn_u16
|
|
|
|
sgn_u16::return#3 = 1
|
|
|
|
to:sgn_u16::@return
|
|
|
|
sgn_u16::@return: scope:[sgn_u16] from sgn_u16::@1 sgn_u16::@2
|
|
|
|
sgn_u16::return#7 = phi( sgn_u16::@1/sgn_u16::return#2, sgn_u16::@2/sgn_u16::return#3 )
|
|
|
|
sgn_u16::return#4 = sgn_u16::return#7
|
2019-09-18 19:53:32 +00:00
|
|
|
return
|
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2020-10-05 20:58:02 +00:00
|
|
|
void main()
|
2020-06-27 20:36:52 +00:00
|
|
|
main: scope:[main] from __start::@1
|
2020-10-05 20:58:02 +00:00
|
|
|
next#14 = phi( __start::@1/next#11 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#14 = phi( __start::@1/bitmap_screen#16 )
|
|
|
|
bitmap_gfx#15 = phi( __start::@1/bitmap_gfx#17 )
|
2020-10-05 20:58:02 +00:00
|
|
|
*BORDER_COLOR = 0
|
|
|
|
*BG_COLOR = 0
|
2020-12-29 18:37:32 +00:00
|
|
|
*D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3
|
|
|
|
*VICII_MEMORY = (byte)(word)SCREEN&$3fff/$40|(word)BITMAP&$3fff/$400
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_init::gfx#0 = BITMAP
|
|
|
|
bitmap_init::screen#0 = SCREEN
|
2019-09-18 19:53:32 +00:00
|
|
|
call bitmap_init
|
2020-04-25 18:10:49 +00:00
|
|
|
to:main::@2
|
|
|
|
main::@2: scope:[main] from main
|
2020-10-05 20:58:02 +00:00
|
|
|
next#13 = phi( main/next#14 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#9 = phi( main/bitmap_screen#1 )
|
|
|
|
bitmap_gfx#9 = phi( main/bitmap_gfx#1 )
|
|
|
|
bitmap_gfx#2 = bitmap_gfx#9
|
|
|
|
bitmap_screen#2 = bitmap_screen#9
|
|
|
|
bitmap_clear::bgcol#0 = BLACK
|
|
|
|
bitmap_clear::fgcol#0 = WHITE
|
2019-09-18 19:53:32 +00:00
|
|
|
call bitmap_clear
|
2020-04-25 18:10:49 +00:00
|
|
|
to:main::@3
|
|
|
|
main::@3: scope:[main] from main::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#23 = phi( main::@2/bitmap_screen#2 )
|
|
|
|
bitmap_gfx#24 = phi( main::@2/bitmap_gfx#2 )
|
2020-10-05 20:58:02 +00:00
|
|
|
next#12 = phi( main::@2/next#13 )
|
2020-04-25 18:10:49 +00:00
|
|
|
call init_screen
|
2019-09-18 19:53:32 +00:00
|
|
|
to:main::@4
|
|
|
|
main::@4: scope:[main] from main::@3
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#21 = phi( main::@3/bitmap_screen#23 )
|
|
|
|
bitmap_gfx#22 = phi( main::@3/bitmap_gfx#24 )
|
2020-10-05 20:58:02 +00:00
|
|
|
next#10 = phi( main::@3/next#12 )
|
2019-09-18 19:53:32 +00:00
|
|
|
to:main::@1
|
2020-04-25 18:10:49 +00:00
|
|
|
main::@1: scope:[main] from main::@4 main::@5
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#19 = phi( main::@4/bitmap_screen#21, main::@5/bitmap_screen#15 )
|
|
|
|
bitmap_gfx#20 = phi( main::@4/bitmap_gfx#22, main::@5/bitmap_gfx#16 )
|
2020-10-05 20:58:02 +00:00
|
|
|
next#5 = phi( main::@4/next#10, main::@5/next#0 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::x1#0 = 0
|
|
|
|
bitmap_line::y1#0 = 0
|
|
|
|
bitmap_line::x2#0 = next#5
|
|
|
|
bitmap_line::y2#0 = $64
|
2019-09-18 19:53:32 +00:00
|
|
|
call bitmap_line
|
2020-04-25 18:10:49 +00:00
|
|
|
to:main::@5
|
|
|
|
main::@5: scope:[main] from main::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#15 = phi( main::@1/bitmap_screen#19 )
|
|
|
|
bitmap_gfx#16 = phi( main::@1/bitmap_gfx#20 )
|
2020-10-05 20:58:02 +00:00
|
|
|
next#6 = phi( main::@1/next#5 )
|
|
|
|
next#0 = ++ next#6
|
2019-09-18 19:53:32 +00:00
|
|
|
if(true) goto main::@1
|
|
|
|
to:main::@return
|
2020-04-25 18:10:49 +00:00
|
|
|
main::@return: scope:[main] from main::@5
|
2020-10-05 20:58:02 +00:00
|
|
|
next#7 = phi( main::@5/next#0 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#10 = phi( main::@5/bitmap_screen#15 )
|
|
|
|
bitmap_gfx#10 = phi( main::@5/bitmap_gfx#16 )
|
|
|
|
bitmap_gfx#3 = bitmap_gfx#10
|
|
|
|
bitmap_screen#3 = bitmap_screen#10
|
2020-10-05 20:58:02 +00:00
|
|
|
next#1 = next#7
|
2019-09-18 19:53:32 +00:00
|
|
|
return
|
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2020-10-05 20:58:02 +00:00
|
|
|
void init_screen()
|
2020-04-25 18:10:49 +00:00
|
|
|
init_screen: scope:[init_screen] from main::@3
|
2020-10-05 20:58:02 +00:00
|
|
|
init_screen::c#0 = SCREEN
|
2019-09-18 19:53:32 +00:00
|
|
|
to:init_screen::@1
|
|
|
|
init_screen::@1: scope:[init_screen] from init_screen init_screen::@2
|
2020-10-05 20:58:02 +00:00
|
|
|
init_screen::c#2 = phi( init_screen/init_screen::c#0, init_screen::@2/init_screen::c#1 )
|
|
|
|
init_screen::$0 = init_screen::c#2 != SCREEN+$400
|
|
|
|
if(init_screen::$0) goto init_screen::@2
|
2019-09-18 19:53:32 +00:00
|
|
|
to:init_screen::@return
|
|
|
|
init_screen::@2: scope:[init_screen] from init_screen::@1
|
2020-10-05 20:58:02 +00:00
|
|
|
init_screen::c#3 = phi( init_screen::@1/init_screen::c#2 )
|
|
|
|
*init_screen::c#3 = $14
|
|
|
|
init_screen::c#1 = ++ init_screen::c#3
|
2019-09-18 19:53:32 +00:00
|
|
|
to:init_screen::@1
|
|
|
|
init_screen::@return: scope:[init_screen] from init_screen::@1
|
|
|
|
return
|
|
|
|
to:@return
|
2020-06-27 19:18:00 +00:00
|
|
|
|
2020-10-05 20:58:02 +00:00
|
|
|
void __start()
|
2020-06-27 20:36:52 +00:00
|
|
|
__start: scope:[__start] from
|
|
|
|
to:__start::__init1
|
|
|
|
__start::__init1: scope:[__start] from __start
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#4 = (byte*) 0
|
|
|
|
bitmap_gfx#4 = (byte*) 0
|
2020-10-05 20:58:02 +00:00
|
|
|
next#2 = 0
|
2020-06-27 20:36:52 +00:00
|
|
|
to:__start::@1
|
|
|
|
__start::@1: scope:[__start] from __start::__init1
|
2020-10-05 20:58:02 +00:00
|
|
|
next#11 = phi( __start::__init1/next#2 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#16 = phi( __start::__init1/bitmap_screen#4 )
|
|
|
|
bitmap_gfx#17 = phi( __start::__init1/bitmap_gfx#4 )
|
2019-09-18 19:53:32 +00:00
|
|
|
call main
|
2020-06-27 20:36:52 +00:00
|
|
|
to:__start::@2
|
|
|
|
__start::@2: scope:[__start] from __start::@1
|
2020-10-05 20:58:02 +00:00
|
|
|
next#8 = phi( __start::@1/next#1 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_screen#11 = phi( __start::@1/bitmap_screen#3 )
|
|
|
|
bitmap_gfx#11 = phi( __start::@1/bitmap_gfx#3 )
|
|
|
|
bitmap_gfx#5 = bitmap_gfx#11
|
|
|
|
bitmap_screen#5 = bitmap_screen#11
|
2020-10-05 20:58:02 +00:00
|
|
|
next#3 = next#8
|
2020-06-27 20:36:52 +00:00
|
|
|
to:__start::@return
|
|
|
|
__start::@return: scope:[__start] from __start::@2
|
2020-10-05 20:58:02 +00:00
|
|
|
next#9 = phi( __start::@2/next#3 )
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_gfx#12 = phi( __start::@2/bitmap_gfx#5 )
|
|
|
|
bitmap_screen#12 = phi( __start::@2/bitmap_screen#5 )
|
|
|
|
bitmap_screen#6 = bitmap_screen#12
|
|
|
|
bitmap_gfx#6 = bitmap_gfx#12
|
2020-10-05 20:58:02 +00:00
|
|
|
next#4 = next#9
|
2020-06-27 19:18:00 +00:00
|
|
|
return
|
|
|
|
to:@return
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
SYMBOL TABLE SSA
|
2020-10-05 20:58:02 +00:00
|
|
|
const nomodify byte* BG_COLOR = (byte*)$d021
|
|
|
|
const nomodify byte* BITMAP = (byte*)$2000
|
2021-02-04 07:53:47 +00:00
|
|
|
const nomodify byte BLACK = 0
|
2020-10-05 20:58:02 +00:00
|
|
|
const nomodify byte* BORDER_COLOR = (byte*)$d020
|
|
|
|
const nomodify byte* D011 = (byte*)$d011
|
|
|
|
const nomodify byte* SCREEN = (byte*)$400
|
2020-12-29 18:37:32 +00:00
|
|
|
const nomodify byte VICII_BMM = $20
|
|
|
|
const nomodify byte VICII_DEN = $10
|
|
|
|
const nomodify byte* VICII_MEMORY = (byte*)$d018
|
|
|
|
const nomodify byte VICII_RSEL = 8
|
2021-02-04 07:53:47 +00:00
|
|
|
const nomodify byte WHITE = 1
|
2020-10-05 20:58:02 +00:00
|
|
|
void __start()
|
2021-02-04 07:53:47 +00:00
|
|
|
word abs_u16(word abs_u16::w)
|
|
|
|
byte~ abs_u16::$0
|
|
|
|
number~ abs_u16::$1
|
|
|
|
word~ abs_u16::$2
|
|
|
|
bool~ abs_u16::$3
|
|
|
|
word abs_u16::return
|
|
|
|
word abs_u16::return#0
|
|
|
|
word abs_u16::return#1
|
|
|
|
word abs_u16::return#2
|
|
|
|
word abs_u16::return#3
|
|
|
|
word abs_u16::return#4
|
|
|
|
word abs_u16::return#5
|
|
|
|
word abs_u16::return#6
|
|
|
|
word abs_u16::return#7
|
|
|
|
word abs_u16::w
|
|
|
|
word abs_u16::w#0
|
|
|
|
word abs_u16::w#1
|
|
|
|
word abs_u16::w#2
|
|
|
|
word abs_u16::w#3
|
|
|
|
word abs_u16::w#4
|
|
|
|
void bitmap_clear(byte bitmap_clear::bgcol , byte bitmap_clear::fgcol)
|
|
|
|
number~ bitmap_clear::$0
|
|
|
|
number~ bitmap_clear::$1
|
|
|
|
byte bitmap_clear::bgcol
|
|
|
|
byte bitmap_clear::bgcol#0
|
|
|
|
byte bitmap_clear::bgcol#1
|
|
|
|
byte bitmap_clear::col
|
|
|
|
byte bitmap_clear::col#0
|
|
|
|
byte bitmap_clear::fgcol
|
|
|
|
byte bitmap_clear::fgcol#0
|
|
|
|
byte bitmap_clear::fgcol#1
|
|
|
|
byte* bitmap_gfx
|
|
|
|
byte* bitmap_gfx#0
|
|
|
|
byte* bitmap_gfx#1
|
|
|
|
byte* bitmap_gfx#10
|
|
|
|
byte* bitmap_gfx#11
|
|
|
|
byte* bitmap_gfx#12
|
|
|
|
byte* bitmap_gfx#13
|
|
|
|
byte* bitmap_gfx#14
|
|
|
|
byte* bitmap_gfx#15
|
|
|
|
byte* bitmap_gfx#16
|
|
|
|
byte* bitmap_gfx#17
|
|
|
|
byte* bitmap_gfx#18
|
|
|
|
byte* bitmap_gfx#19
|
|
|
|
byte* bitmap_gfx#2
|
|
|
|
byte* bitmap_gfx#20
|
|
|
|
byte* bitmap_gfx#21
|
|
|
|
byte* bitmap_gfx#22
|
|
|
|
byte* bitmap_gfx#23
|
|
|
|
byte* bitmap_gfx#24
|
|
|
|
byte* bitmap_gfx#25
|
|
|
|
byte* bitmap_gfx#26
|
|
|
|
byte* bitmap_gfx#3
|
|
|
|
byte* bitmap_gfx#4
|
|
|
|
byte* bitmap_gfx#5
|
|
|
|
byte* bitmap_gfx#6
|
|
|
|
byte* bitmap_gfx#7
|
|
|
|
byte* bitmap_gfx#8
|
|
|
|
byte* bitmap_gfx#9
|
|
|
|
void bitmap_init(byte* bitmap_init::gfx , byte* bitmap_init::screen)
|
|
|
|
bool~ bitmap_init::$0
|
|
|
|
bool~ bitmap_init::$1
|
|
|
|
byte*~ bitmap_init::$10
|
2020-10-05 20:58:02 +00:00
|
|
|
bool~ bitmap_init::$11
|
2021-02-04 07:53:47 +00:00
|
|
|
bool~ bitmap_init::$2
|
|
|
|
number~ bitmap_init::$3
|
|
|
|
byte~ bitmap_init::$4
|
|
|
|
number~ bitmap_init::$5
|
|
|
|
byte~ bitmap_init::$6
|
|
|
|
number~ bitmap_init::$7
|
|
|
|
bool~ bitmap_init::$8
|
|
|
|
bool~ bitmap_init::$9
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::bits
|
|
|
|
byte bitmap_init::bits#0
|
|
|
|
byte bitmap_init::bits#1
|
|
|
|
byte bitmap_init::bits#2
|
|
|
|
byte bitmap_init::bits#3
|
|
|
|
byte bitmap_init::bits#4
|
2021-02-04 07:53:47 +00:00
|
|
|
byte* bitmap_init::gfx
|
|
|
|
byte* bitmap_init::gfx#0
|
|
|
|
byte* bitmap_init::gfx#1
|
|
|
|
byte* bitmap_init::gfx#2
|
|
|
|
byte* bitmap_init::gfx#3
|
|
|
|
byte* bitmap_init::gfx#4
|
|
|
|
byte* bitmap_init::gfx#5
|
|
|
|
byte* bitmap_init::screen
|
|
|
|
byte* bitmap_init::screen#0
|
|
|
|
byte* bitmap_init::screen#1
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::x
|
|
|
|
byte bitmap_init::x#0
|
|
|
|
byte bitmap_init::x#1
|
|
|
|
byte bitmap_init::x#2
|
|
|
|
byte bitmap_init::x#3
|
|
|
|
byte bitmap_init::x#4
|
|
|
|
byte bitmap_init::y
|
|
|
|
byte bitmap_init::y#0
|
|
|
|
byte bitmap_init::y#1
|
|
|
|
byte bitmap_init::y#2
|
|
|
|
byte bitmap_init::y#3
|
|
|
|
byte bitmap_init::y#4
|
|
|
|
byte* bitmap_init::yoffs
|
|
|
|
byte* bitmap_init::yoffs#0
|
|
|
|
byte* bitmap_init::yoffs#1
|
|
|
|
byte* bitmap_init::yoffs#2
|
|
|
|
byte* bitmap_init::yoffs#3
|
|
|
|
byte* bitmap_init::yoffs#4
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_line(word bitmap_line::x1 , word bitmap_line::y1 , word bitmap_line::x2 , word bitmap_line::y2)
|
|
|
|
word~ bitmap_line::$0
|
|
|
|
word~ bitmap_line::$1
|
|
|
|
word~ bitmap_line::$10
|
|
|
|
word~ bitmap_line::$11
|
2020-10-05 20:58:02 +00:00
|
|
|
bool~ bitmap_line::$12
|
2021-02-04 07:53:47 +00:00
|
|
|
number~ bitmap_line::$15
|
|
|
|
bool~ bitmap_line::$17
|
2020-10-05 20:58:02 +00:00
|
|
|
bool~ bitmap_line::$18
|
2021-02-04 07:53:47 +00:00
|
|
|
bool~ bitmap_line::$19
|
|
|
|
word~ bitmap_line::$2
|
|
|
|
number~ bitmap_line::$20
|
|
|
|
bool~ bitmap_line::$22
|
|
|
|
bool~ bitmap_line::$23
|
|
|
|
bool~ bitmap_line::$24
|
|
|
|
word~ bitmap_line::$3
|
2020-10-05 20:58:02 +00:00
|
|
|
bool~ bitmap_line::$4
|
2021-02-04 07:53:47 +00:00
|
|
|
bool~ bitmap_line::$5
|
|
|
|
bool~ bitmap_line::$6
|
|
|
|
bool~ bitmap_line::$7
|
|
|
|
word~ bitmap_line::$8
|
|
|
|
word~ bitmap_line::$9
|
|
|
|
word bitmap_line::dx
|
|
|
|
word bitmap_line::dx#0
|
|
|
|
word bitmap_line::dx#1
|
|
|
|
word bitmap_line::dx#10
|
|
|
|
word bitmap_line::dx#11
|
|
|
|
word bitmap_line::dx#12
|
|
|
|
word bitmap_line::dx#13
|
|
|
|
word bitmap_line::dx#14
|
|
|
|
word bitmap_line::dx#2
|
|
|
|
word bitmap_line::dx#3
|
|
|
|
word bitmap_line::dx#4
|
|
|
|
word bitmap_line::dx#5
|
|
|
|
word bitmap_line::dx#6
|
|
|
|
word bitmap_line::dx#7
|
|
|
|
word bitmap_line::dx#8
|
|
|
|
word bitmap_line::dx#9
|
|
|
|
word bitmap_line::dy
|
|
|
|
word bitmap_line::dy#0
|
|
|
|
word bitmap_line::dy#1
|
|
|
|
word bitmap_line::dy#10
|
|
|
|
word bitmap_line::dy#11
|
|
|
|
word bitmap_line::dy#12
|
|
|
|
word bitmap_line::dy#13
|
|
|
|
word bitmap_line::dy#2
|
|
|
|
word bitmap_line::dy#3
|
|
|
|
word bitmap_line::dy#4
|
|
|
|
word bitmap_line::dy#5
|
|
|
|
word bitmap_line::dy#6
|
|
|
|
word bitmap_line::dy#7
|
|
|
|
word bitmap_line::dy#8
|
|
|
|
word bitmap_line::dy#9
|
|
|
|
word bitmap_line::e
|
|
|
|
word bitmap_line::e#0
|
|
|
|
word bitmap_line::e#1
|
|
|
|
word bitmap_line::e#2
|
|
|
|
word bitmap_line::e#3
|
|
|
|
word bitmap_line::e#4
|
|
|
|
word bitmap_line::e#5
|
|
|
|
word bitmap_line::e#6
|
|
|
|
word bitmap_line::e1
|
|
|
|
word bitmap_line::e1#0
|
|
|
|
word bitmap_line::e1#1
|
|
|
|
word bitmap_line::e1#2
|
|
|
|
word bitmap_line::e1#3
|
|
|
|
word bitmap_line::e1#4
|
|
|
|
word bitmap_line::e1#5
|
|
|
|
word bitmap_line::e1#6
|
|
|
|
word bitmap_line::sx
|
|
|
|
word bitmap_line::sx#0
|
|
|
|
word bitmap_line::sx#1
|
|
|
|
word bitmap_line::sx#10
|
|
|
|
word bitmap_line::sx#11
|
|
|
|
word bitmap_line::sx#2
|
|
|
|
word bitmap_line::sx#3
|
|
|
|
word bitmap_line::sx#4
|
|
|
|
word bitmap_line::sx#5
|
|
|
|
word bitmap_line::sx#6
|
|
|
|
word bitmap_line::sx#7
|
|
|
|
word bitmap_line::sx#8
|
|
|
|
word bitmap_line::sx#9
|
|
|
|
word bitmap_line::sy
|
|
|
|
word bitmap_line::sy#0
|
|
|
|
word bitmap_line::sy#1
|
|
|
|
word bitmap_line::sy#10
|
|
|
|
word bitmap_line::sy#2
|
|
|
|
word bitmap_line::sy#3
|
|
|
|
word bitmap_line::sy#4
|
|
|
|
word bitmap_line::sy#5
|
|
|
|
word bitmap_line::sy#6
|
|
|
|
word bitmap_line::sy#7
|
|
|
|
word bitmap_line::sy#8
|
|
|
|
word bitmap_line::sy#9
|
|
|
|
word bitmap_line::x
|
|
|
|
word bitmap_line::x#0
|
|
|
|
word bitmap_line::x#1
|
|
|
|
word bitmap_line::x#10
|
|
|
|
word bitmap_line::x#11
|
|
|
|
word bitmap_line::x#12
|
|
|
|
word bitmap_line::x#13
|
|
|
|
word bitmap_line::x#14
|
|
|
|
word bitmap_line::x#15
|
|
|
|
word bitmap_line::x#16
|
|
|
|
word bitmap_line::x#17
|
|
|
|
word bitmap_line::x#18
|
|
|
|
word bitmap_line::x#19
|
|
|
|
word bitmap_line::x#2
|
|
|
|
word bitmap_line::x#3
|
|
|
|
word bitmap_line::x#4
|
|
|
|
word bitmap_line::x#5
|
|
|
|
word bitmap_line::x#6
|
|
|
|
word bitmap_line::x#7
|
|
|
|
word bitmap_line::x#8
|
|
|
|
word bitmap_line::x#9
|
|
|
|
word bitmap_line::x1
|
|
|
|
word bitmap_line::x1#0
|
|
|
|
word bitmap_line::x1#1
|
|
|
|
word bitmap_line::x1#2
|
|
|
|
word bitmap_line::x1#3
|
|
|
|
word bitmap_line::x1#4
|
|
|
|
word bitmap_line::x2
|
|
|
|
word bitmap_line::x2#0
|
|
|
|
word bitmap_line::x2#1
|
|
|
|
word bitmap_line::x2#10
|
|
|
|
word bitmap_line::x2#11
|
|
|
|
word bitmap_line::x2#2
|
|
|
|
word bitmap_line::x2#3
|
|
|
|
word bitmap_line::x2#4
|
|
|
|
word bitmap_line::x2#5
|
|
|
|
word bitmap_line::x2#6
|
|
|
|
word bitmap_line::x2#7
|
|
|
|
word bitmap_line::x2#8
|
|
|
|
word bitmap_line::x2#9
|
|
|
|
word bitmap_line::y
|
|
|
|
word bitmap_line::y#0
|
|
|
|
word bitmap_line::y#1
|
|
|
|
word bitmap_line::y#10
|
|
|
|
word bitmap_line::y#11
|
|
|
|
word bitmap_line::y#12
|
|
|
|
word bitmap_line::y#13
|
|
|
|
word bitmap_line::y#14
|
|
|
|
word bitmap_line::y#15
|
|
|
|
word bitmap_line::y#16
|
|
|
|
word bitmap_line::y#17
|
|
|
|
word bitmap_line::y#18
|
|
|
|
word bitmap_line::y#19
|
|
|
|
word bitmap_line::y#2
|
|
|
|
word bitmap_line::y#3
|
|
|
|
word bitmap_line::y#4
|
|
|
|
word bitmap_line::y#5
|
|
|
|
word bitmap_line::y#6
|
|
|
|
word bitmap_line::y#7
|
|
|
|
word bitmap_line::y#8
|
|
|
|
word bitmap_line::y#9
|
|
|
|
word bitmap_line::y1
|
|
|
|
word bitmap_line::y1#0
|
|
|
|
word bitmap_line::y1#1
|
|
|
|
word bitmap_line::y1#2
|
|
|
|
word bitmap_line::y1#3
|
|
|
|
word bitmap_line::y1#4
|
|
|
|
word bitmap_line::y1#5
|
|
|
|
word bitmap_line::y2
|
|
|
|
word bitmap_line::y2#0
|
|
|
|
word bitmap_line::y2#1
|
|
|
|
word bitmap_line::y2#10
|
|
|
|
word bitmap_line::y2#11
|
|
|
|
word bitmap_line::y2#2
|
|
|
|
word bitmap_line::y2#3
|
|
|
|
word bitmap_line::y2#4
|
|
|
|
word bitmap_line::y2#5
|
|
|
|
word bitmap_line::y2#6
|
|
|
|
word bitmap_line::y2#7
|
|
|
|
word bitmap_line::y2#8
|
|
|
|
word bitmap_line::y2#9
|
|
|
|
void bitmap_plot(word bitmap_plot::x , byte bitmap_plot::y)
|
|
|
|
number~ bitmap_plot::$0
|
2020-10-05 20:58:02 +00:00
|
|
|
byte~ bitmap_plot::$1
|
|
|
|
byte* bitmap_plot::plotter
|
|
|
|
byte* bitmap_plot::plotter#0
|
2021-02-04 07:53:47 +00:00
|
|
|
byte* bitmap_plot::plotter#1
|
|
|
|
word bitmap_plot::x
|
|
|
|
word bitmap_plot::x#0
|
|
|
|
word bitmap_plot::x#1
|
|
|
|
word bitmap_plot::x#2
|
|
|
|
word bitmap_plot::x#3
|
|
|
|
word bitmap_plot::x#4
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_plot::y
|
|
|
|
byte bitmap_plot::y#0
|
|
|
|
byte bitmap_plot::y#1
|
|
|
|
byte bitmap_plot::y#2
|
|
|
|
byte bitmap_plot::y#3
|
|
|
|
byte bitmap_plot::y#4
|
|
|
|
const to_nomodify byte* bitmap_plot_bit[$100] = { fill( $100, 0) }
|
|
|
|
const to_nomodify byte* bitmap_plot_yhi[$100] = { fill( $100, 0) }
|
|
|
|
const to_nomodify byte* bitmap_plot_ylo[$100] = { fill( $100, 0) }
|
2021-02-04 07:53:47 +00:00
|
|
|
byte* bitmap_screen
|
|
|
|
byte* bitmap_screen#0
|
|
|
|
byte* bitmap_screen#1
|
|
|
|
byte* bitmap_screen#10
|
|
|
|
byte* bitmap_screen#11
|
|
|
|
byte* bitmap_screen#12
|
|
|
|
byte* bitmap_screen#13
|
|
|
|
byte* bitmap_screen#14
|
|
|
|
byte* bitmap_screen#15
|
|
|
|
byte* bitmap_screen#16
|
|
|
|
byte* bitmap_screen#17
|
|
|
|
byte* bitmap_screen#18
|
|
|
|
byte* bitmap_screen#19
|
|
|
|
byte* bitmap_screen#2
|
|
|
|
byte* bitmap_screen#20
|
|
|
|
byte* bitmap_screen#21
|
|
|
|
byte* bitmap_screen#22
|
|
|
|
byte* bitmap_screen#23
|
|
|
|
byte* bitmap_screen#24
|
|
|
|
byte* bitmap_screen#25
|
|
|
|
byte* bitmap_screen#3
|
|
|
|
byte* bitmap_screen#4
|
|
|
|
byte* bitmap_screen#5
|
|
|
|
byte* bitmap_screen#6
|
|
|
|
byte* bitmap_screen#7
|
|
|
|
byte* bitmap_screen#8
|
|
|
|
byte* bitmap_screen#9
|
2020-10-05 20:58:02 +00:00
|
|
|
void init_screen()
|
|
|
|
bool~ init_screen::$0
|
|
|
|
byte* init_screen::c
|
|
|
|
byte* init_screen::c#0
|
|
|
|
byte* init_screen::c#1
|
|
|
|
byte* init_screen::c#2
|
|
|
|
byte* init_screen::c#3
|
|
|
|
void main()
|
2021-02-04 07:53:47 +00:00
|
|
|
void* memset(void* memset::str , byte memset::c , word memset::num)
|
|
|
|
bool~ memset::$0
|
|
|
|
bool~ memset::$1
|
|
|
|
byte*~ memset::$2
|
|
|
|
bool~ memset::$3
|
|
|
|
byte*~ memset::$4
|
|
|
|
byte memset::c
|
|
|
|
byte memset::c#0
|
|
|
|
byte memset::c#1
|
|
|
|
byte memset::c#2
|
|
|
|
byte memset::c#3
|
|
|
|
byte memset::c#4
|
|
|
|
byte memset::c#5
|
|
|
|
byte* memset::dst
|
|
|
|
byte* memset::dst#0
|
|
|
|
byte* memset::dst#1
|
|
|
|
byte* memset::dst#2
|
|
|
|
byte* memset::dst#3
|
|
|
|
byte* memset::end
|
|
|
|
byte* memset::end#0
|
|
|
|
byte* memset::end#1
|
|
|
|
byte* memset::end#2
|
|
|
|
word memset::num
|
|
|
|
word memset::num#0
|
|
|
|
word memset::num#1
|
|
|
|
word memset::num#2
|
|
|
|
word memset::num#3
|
|
|
|
void* memset::return
|
|
|
|
void* memset::return#0
|
|
|
|
void* memset::return#1
|
|
|
|
void* memset::return#2
|
|
|
|
void* memset::return#3
|
|
|
|
void* memset::return#4
|
|
|
|
void* memset::str
|
|
|
|
void* memset::str#0
|
|
|
|
void* memset::str#1
|
|
|
|
void* memset::str#2
|
|
|
|
void* memset::str#3
|
|
|
|
void* memset::str#4
|
|
|
|
void* memset::str#5
|
|
|
|
void* memset::str#6
|
2020-10-05 20:58:02 +00:00
|
|
|
byte next
|
|
|
|
byte next#0
|
|
|
|
byte next#1
|
|
|
|
byte next#10
|
|
|
|
byte next#11
|
|
|
|
byte next#12
|
|
|
|
byte next#13
|
|
|
|
byte next#14
|
|
|
|
byte next#2
|
|
|
|
byte next#3
|
|
|
|
byte next#4
|
|
|
|
byte next#5
|
|
|
|
byte next#6
|
|
|
|
byte next#7
|
|
|
|
byte next#8
|
|
|
|
byte next#9
|
2021-02-04 07:53:47 +00:00
|
|
|
word sgn_u16(word sgn_u16::w)
|
|
|
|
byte~ sgn_u16::$0
|
|
|
|
number~ sgn_u16::$1
|
|
|
|
bool~ sgn_u16::$2
|
|
|
|
word sgn_u16::return
|
|
|
|
word sgn_u16::return#0
|
|
|
|
word sgn_u16::return#1
|
|
|
|
word sgn_u16::return#2
|
|
|
|
word sgn_u16::return#3
|
|
|
|
word sgn_u16::return#4
|
|
|
|
word sgn_u16::return#5
|
|
|
|
word sgn_u16::return#6
|
|
|
|
word sgn_u16::return#7
|
|
|
|
word sgn_u16::w
|
|
|
|
word sgn_u16::w#0
|
|
|
|
word sgn_u16::w#1
|
|
|
|
word sgn_u16::w#2
|
2019-09-18 19:53:32 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
Fixing inline constructor with bitmap_plot::$2 = (byte)bitmap_plot_yhi[bitmap_plot::y#4] w= (byte)bitmap_plot_ylo[bitmap_plot::y#4]
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2FixInlineConstructors
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding number conversion cast (unumber) 0 in memset::$0 = memset::num#2 > 0
|
|
|
|
Adding number conversion cast (unumber) 1 in bitmap_init::bits#1 = bitmap_init::bits#3 >> 1
|
|
|
|
Adding number conversion cast (unumber) 0 in bitmap_init::$0 = bitmap_init::bits#1 == 0
|
2020-10-05 20:58:02 +00:00
|
|
|
Adding number conversion cast (unumber) $80 in bitmap_init::bits#2 = $80
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding number conversion cast (unumber) 7 in bitmap_init::$3 = bitmap_init::y#2 & 7
|
|
|
|
Adding number conversion cast (unumber) bitmap_init::$3 in bitmap_init::$3 = bitmap_init::y#2 & (unumber)7
|
|
|
|
Adding number conversion cast (unumber) bitmap_init::$5 in bitmap_init::$5 = bitmap_init::$3 | bitmap_init::$4
|
|
|
|
Adding number conversion cast (unumber) 7 in bitmap_init::$7 = bitmap_init::y#2 & 7
|
|
|
|
Adding number conversion cast (unumber) bitmap_init::$7 in bitmap_init::$7 = bitmap_init::y#2 & (unumber)7
|
|
|
|
Adding number conversion cast (unumber) 7 in bitmap_init::$8 = bitmap_init::$7 == 7
|
|
|
|
Adding number conversion cast (unumber) $28*8 in bitmap_init::$10 = bitmap_init::yoffs#3 + $28*8
|
|
|
|
Adding number conversion cast (unumber) $10 in bitmap_clear::$0 = bitmap_clear::fgcol#1 * $10
|
|
|
|
Adding number conversion cast (unumber) bitmap_clear::$0 in bitmap_clear::$0 = bitmap_clear::fgcol#1 * (unumber)$10
|
|
|
|
Adding number conversion cast (unumber) bitmap_clear::$1 in bitmap_clear::$1 = bitmap_clear::$0 + bitmap_clear::bgcol#1
|
|
|
|
Adding number conversion cast (unumber) 0 in memset::c#1 = 0
|
|
|
|
Adding number conversion cast (unumber) $fff8 in bitmap_plot::$0 = bitmap_plot::x#4 & $fff8
|
|
|
|
Adding number conversion cast (unumber) bitmap_plot::$0 in bitmap_plot::$0 = bitmap_plot::x#4 & (unumber)$fff8
|
|
|
|
Adding number conversion cast (unumber) 0 in bitmap_line::$4 = bitmap_line::dx#1 == 0
|
|
|
|
Adding number conversion cast (unumber) 0 in bitmap_line::$5 = bitmap_line::dy#0 == 0
|
|
|
|
Adding number conversion cast (unumber) 2 in bitmap_line::$20 = bitmap_line::dy#2 / 2
|
|
|
|
Adding number conversion cast (unumber) bitmap_line::$20 in bitmap_line::$20 = bitmap_line::dy#2 / (unumber)2
|
|
|
|
Adding number conversion cast (unumber) 2 in bitmap_line::$15 = bitmap_line::dx#3 / 2
|
|
|
|
Adding number conversion cast (unumber) bitmap_line::$15 in bitmap_line::$15 = bitmap_line::dx#3 / (unumber)2
|
|
|
|
Adding number conversion cast (unumber) $80 in abs_u16::$1 = abs_u16::$0 & $80
|
|
|
|
Adding number conversion cast (unumber) abs_u16::$1 in abs_u16::$1 = abs_u16::$0 & (unumber)$80
|
|
|
|
Adding number conversion cast (unumber) 0 in abs_u16::$3 = 0 != abs_u16::$1
|
|
|
|
Adding number conversion cast (unumber) $80 in sgn_u16::$1 = sgn_u16::$0 & $80
|
|
|
|
Adding number conversion cast (unumber) sgn_u16::$1 in sgn_u16::$1 = sgn_u16::$0 & (unumber)$80
|
|
|
|
Adding number conversion cast (unumber) 0 in sgn_u16::$2 = 0 != sgn_u16::$1
|
|
|
|
Adding number conversion cast (unumber) -1 in sgn_u16::return#2 = -1
|
|
|
|
Adding number conversion cast (unumber) 1 in sgn_u16::return#3 = 1
|
2020-10-05 20:58:02 +00:00
|
|
|
Adding number conversion cast (unumber) 0 in *BORDER_COLOR = 0
|
|
|
|
Adding number conversion cast (unumber) 0 in *BG_COLOR = 0
|
2020-12-29 18:37:32 +00:00
|
|
|
Adding number conversion cast (unumber) VICII_BMM|VICII_DEN|VICII_RSEL|3 in *D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3
|
|
|
|
Adding number conversion cast (unumber) 3 in *D011 = ((unumber)) VICII_BMM|VICII_DEN|VICII_RSEL|3
|
|
|
|
Adding number conversion cast (unumber) $3fff in *VICII_MEMORY = (byte)(word)SCREEN&$3fff/$40|(word)BITMAP&$3fff/$400
|
|
|
|
Adding number conversion cast (unumber) $3fff in *VICII_MEMORY = (byte)(word)SCREEN&(unumber)$3fff/$40|(word)BITMAP&$3fff/$400
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding number conversion cast (unumber) 0 in bitmap_line::x1#0 = 0
|
|
|
|
Adding number conversion cast (unumber) 0 in bitmap_line::y1#0 = 0
|
|
|
|
Adding number conversion cast (unumber) $64 in bitmap_line::y2#0 = $64
|
2020-10-05 20:58:02 +00:00
|
|
|
Adding number conversion cast (unumber) $400 in init_screen::$0 = init_screen::c#2 != SCREEN+$400
|
|
|
|
Adding number conversion cast (unumber) $14 in *init_screen::c#3 = $14
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization PassNAddNumberTypeConversions
|
2020-12-29 18:37:32 +00:00
|
|
|
Adding number conversion cast (unumber) $40 in *VICII_MEMORY = (byte)(word)SCREEN&(unumber)$3fff/$40|(word)BITMAP&(unumber)$3fff/$400
|
|
|
|
Adding number conversion cast (unumber) $400 in *VICII_MEMORY = (byte)(word)SCREEN&(unumber)$3fff/(unumber)$40|(word)BITMAP&(unumber)$3fff/$400
|
2019-11-03 23:39:09 +00:00
|
|
|
Successful SSA optimization PassNAddNumberTypeConversions
|
2021-02-04 07:53:47 +00:00
|
|
|
Inlining cast memset::dst#0 = (byte*)memset::str#3
|
2020-10-05 20:58:02 +00:00
|
|
|
Inlining cast bitmap_init::bits#2 = (unumber)$80
|
2021-02-04 07:53:47 +00:00
|
|
|
Inlining cast memset::c#1 = (unumber)0
|
|
|
|
Inlining cast sgn_u16::return#2 = (unumber)-1
|
|
|
|
Inlining cast sgn_u16::return#3 = (unumber)1
|
2020-10-05 20:58:02 +00:00
|
|
|
Inlining cast *BORDER_COLOR = (unumber)0
|
|
|
|
Inlining cast *BG_COLOR = (unumber)0
|
2020-12-29 18:37:32 +00:00
|
|
|
Inlining cast *D011 = (unumber)VICII_BMM|VICII_DEN|VICII_RSEL|(unumber)3
|
2021-02-04 07:53:47 +00:00
|
|
|
Inlining cast bitmap_line::x1#0 = (unumber)0
|
|
|
|
Inlining cast bitmap_line::y1#0 = (unumber)0
|
|
|
|
Inlining cast bitmap_line::y2#0 = (unumber)$64
|
2020-10-05 20:58:02 +00:00
|
|
|
Inlining cast *init_screen::c#3 = (unumber)$14
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2InlineCast
|
|
|
|
Simplifying constant pointer cast (byte*) 53280
|
|
|
|
Simplifying constant pointer cast (byte*) 53281
|
|
|
|
Simplifying constant pointer cast (byte*) 53265
|
|
|
|
Simplifying constant pointer cast (byte*) 53272
|
2019-11-03 16:05:55 +00:00
|
|
|
Simplifying constant pointer cast (byte*) 1024
|
|
|
|
Simplifying constant pointer cast (byte*) 8192
|
2021-02-04 07:53:47 +00:00
|
|
|
Simplifying constant integer cast 0
|
2019-09-18 19:53:32 +00:00
|
|
|
Simplifying constant integer cast 1
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast $80
|
|
|
|
Simplifying constant integer cast 7
|
|
|
|
Simplifying constant integer cast 7
|
|
|
|
Simplifying constant integer cast 7
|
2021-02-04 07:53:47 +00:00
|
|
|
Simplifying constant integer cast $10
|
2019-09-18 19:53:32 +00:00
|
|
|
Simplifying constant integer cast 0
|
2020-10-05 20:58:02 +00:00
|
|
|
Simplifying constant integer cast bitmap_plot_yhi[bitmap_plot::y#4]
|
|
|
|
Simplifying constant integer cast bitmap_plot_ylo[bitmap_plot::y#4]
|
2021-02-04 07:53:47 +00:00
|
|
|
Simplifying constant integer cast $fff8
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast 2
|
|
|
|
Simplifying constant integer cast 2
|
|
|
|
Simplifying constant integer cast $80
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast $80
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast -1
|
2019-09-18 19:53:32 +00:00
|
|
|
Simplifying constant integer cast 1
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast 0
|
2020-12-29 18:37:32 +00:00
|
|
|
Simplifying constant integer cast VICII_BMM|VICII_DEN|VICII_RSEL|(unumber)3
|
2019-09-18 19:53:32 +00:00
|
|
|
Simplifying constant integer cast 3
|
|
|
|
Simplifying constant integer cast $3fff
|
|
|
|
Simplifying constant integer cast $40
|
|
|
|
Simplifying constant integer cast $3fff
|
|
|
|
Simplifying constant integer cast $400
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast $64
|
|
|
|
Simplifying constant integer cast $400
|
|
|
|
Simplifying constant integer cast $14
|
|
|
|
Successful SSA optimization PassNCastSimplification
|
2021-02-04 07:53:47 +00:00
|
|
|
Finalized unsigned number type (byte) 0
|
2020-12-11 23:01:15 +00:00
|
|
|
Finalized unsigned number type (byte) 1
|
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) $80
|
|
|
|
Finalized unsigned number type (byte) 7
|
|
|
|
Finalized unsigned number type (byte) 7
|
|
|
|
Finalized unsigned number type (byte) 7
|
2021-02-04 07:53:47 +00:00
|
|
|
Finalized unsigned number type (byte) $10
|
2020-12-11 23:01:15 +00:00
|
|
|
Finalized unsigned number type (byte) 0
|
2021-02-04 07:53:47 +00:00
|
|
|
Finalized unsigned number type (word) $fff8
|
2020-12-11 23:01:15 +00:00
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) 0
|
2021-02-04 07:53:47 +00:00
|
|
|
Finalized unsigned number type (byte) 2
|
|
|
|
Finalized unsigned number type (byte) 2
|
|
|
|
Finalized unsigned number type (byte) $80
|
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) $80
|
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) -1
|
2020-12-11 23:01:15 +00:00
|
|
|
Finalized unsigned number type (byte) 1
|
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) 3
|
|
|
|
Finalized unsigned number type (word) $3fff
|
|
|
|
Finalized unsigned number type (byte) $40
|
|
|
|
Finalized unsigned number type (word) $3fff
|
|
|
|
Finalized unsigned number type (word) $400
|
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) $64
|
|
|
|
Finalized unsigned number type (word) $400
|
|
|
|
Finalized unsigned number type (byte) $14
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization PassNFinalizeNumberTypeConversions
|
2021-02-04 07:53:47 +00:00
|
|
|
Inferred type updated to byte in bitmap_init::$3 = bitmap_init::y#2 & 7
|
|
|
|
Inferred type updated to byte in bitmap_init::$5 = bitmap_init::$3 | bitmap_init::$4
|
|
|
|
Inferred type updated to byte in bitmap_init::$7 = bitmap_init::y#2 & 7
|
|
|
|
Inferred type updated to byte in bitmap_clear::$0 = bitmap_clear::fgcol#1 * $10
|
|
|
|
Inferred type updated to byte in bitmap_clear::$1 = bitmap_clear::$0 + bitmap_clear::bgcol#1
|
|
|
|
Inferred type updated to word in bitmap_plot::$0 = bitmap_plot::x#4 & $fff8
|
|
|
|
Inferred type updated to word in bitmap_line::$20 = bitmap_line::dy#2 / 2
|
|
|
|
Inferred type updated to word in bitmap_line::$15 = bitmap_line::dx#3 / 2
|
|
|
|
Inferred type updated to byte in abs_u16::$1 = abs_u16::$0 & $80
|
|
|
|
Inferred type updated to byte in sgn_u16::$1 = sgn_u16::$0 & $80
|
|
|
|
Adding pointer type conversion cast (byte*) bitmap_plot::$2 in bitmap_plot::$2 = bitmap_plot_yhi[bitmap_plot::y#4] w= bitmap_plot_ylo[bitmap_plot::y#4]
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization PassNAddTypeConversionAssignment
|
2021-02-04 07:53:47 +00:00
|
|
|
Inversing boolean not [2] memset::$1 = memset::num#2 <= 0 from [1] memset::$0 = memset::num#2 > 0
|
|
|
|
Inversing boolean not [29] bitmap_init::$1 = bitmap_init::bits#1 != 0 from [28] bitmap_init::$0 = bitmap_init::bits#1 == 0
|
|
|
|
Inversing boolean not [49] bitmap_init::$9 = bitmap_init::$7 != 7 from [48] bitmap_init::$8 = bitmap_init::$7 == 7
|
|
|
|
Inversing boolean not [145] bitmap_line::$18 = bitmap_line::dy#3 >= bitmap_line::e#1 from [144] bitmap_line::$17 = bitmap_line::dy#3 < bitmap_line::e#1
|
|
|
|
Inversing boolean not [165] bitmap_line::$23 = bitmap_line::dx#5 >= bitmap_line::e1#1 from [164] bitmap_line::$22 = bitmap_line::dx#5 < bitmap_line::e1#1
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2UnaryNotSimplification
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias memset::return#0 = memset::str#2 memset::return#4 memset::return#1
|
|
|
|
Alias memset::str#3 = memset::str#4
|
|
|
|
Alias memset::num#2 = memset::num#3
|
|
|
|
Alias memset::c#4 = memset::c#5
|
|
|
|
Alias memset::end#0 = memset::$2
|
|
|
|
Alias memset::c#2 = memset::c#3
|
|
|
|
Alias memset::dst#2 = memset::dst#3
|
|
|
|
Alias memset::end#1 = memset::end#2
|
|
|
|
Alias memset::str#5 = memset::str#6
|
2020-03-22 21:26:39 +00:00
|
|
|
Alias bitmap_init::x#2 = bitmap_init::x#4
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_init::gfx#4 = bitmap_init::gfx#5
|
|
|
|
Alias bitmap_gfx#25 = bitmap_gfx#26
|
|
|
|
Alias bitmap_screen#24 = bitmap_screen#25
|
|
|
|
Alias bitmap_init::gfx#2 = bitmap_init::gfx#3 bitmap_init::yoffs#0
|
|
|
|
Alias bitmap_gfx#21 = bitmap_gfx#23
|
|
|
|
Alias bitmap_screen#20 = bitmap_screen#22
|
2020-03-22 21:26:39 +00:00
|
|
|
Alias bitmap_init::yoffs#2 = bitmap_init::yoffs#3
|
|
|
|
Alias bitmap_init::y#2 = bitmap_init::y#4
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_gfx#18 = bitmap_gfx#19
|
|
|
|
Alias bitmap_screen#17 = bitmap_screen#18
|
|
|
|
Alias bitmap_init::yoffs#1 = bitmap_init::$10
|
|
|
|
Alias bitmap_gfx#1 = bitmap_gfx#7 bitmap_gfx#13
|
|
|
|
Alias bitmap_screen#1 = bitmap_screen#7 bitmap_screen#13
|
|
|
|
Alias bitmap_clear::col#0 = bitmap_clear::$1
|
|
|
|
Alias bitmap_gfx#14 = bitmap_gfx#8
|
|
|
|
Alias bitmap_plot::plotter#0 = bitmap_plot::$2
|
|
|
|
Alias bitmap_line::x#0 = bitmap_line::x1#1 bitmap_line::x1#4 bitmap_line::x#16 bitmap_line::x1#3 bitmap_line::x#10 bitmap_line::x1#2 bitmap_line::x#19 bitmap_line::x#18 bitmap_line::x#17 bitmap_line::x#3 bitmap_line::x#14 bitmap_line::x#11
|
|
|
|
Alias bitmap_line::y#0 = bitmap_line::y1#1 bitmap_line::y1#2 bitmap_line::y#16 bitmap_line::y#10 bitmap_line::y1#5 bitmap_line::y1#4 bitmap_line::y#19 bitmap_line::y1#3 bitmap_line::y#18 bitmap_line::y#17 bitmap_line::y#3 bitmap_line::y#14 bitmap_line::y#11
|
|
|
|
Alias abs_u16::w#0 = bitmap_line::$0
|
|
|
|
Alias abs_u16::return#0 = abs_u16::return#5
|
|
|
|
Alias bitmap_line::y2#1 = bitmap_line::y2#4 bitmap_line::y2#8 bitmap_line::y2#5 bitmap_line::y2#2 bitmap_line::y2#11 bitmap_line::y2#10
|
|
|
|
Alias bitmap_line::x2#1 = bitmap_line::x2#7 bitmap_line::x2#4 bitmap_line::x2#2 bitmap_line::x2#11 bitmap_line::x2#10 bitmap_line::x2#9
|
|
|
|
Alias bitmap_line::dx#0 = bitmap_line::$1 bitmap_line::dx#1 bitmap_line::dx#10 bitmap_line::dx#7 bitmap_line::dx#2 bitmap_line::dx#13 bitmap_line::dx#3
|
|
|
|
Alias abs_u16::w#1 = bitmap_line::$2
|
|
|
|
Alias abs_u16::return#1 = abs_u16::return#6
|
|
|
|
Alias bitmap_line::dy#0 = bitmap_line::$3 bitmap_line::dy#9 bitmap_line::dy#6 bitmap_line::dy#1 bitmap_line::dy#2 bitmap_line::dy#10
|
|
|
|
Alias sgn_u16::w#0 = bitmap_line::$8
|
|
|
|
Alias sgn_u16::return#0 = sgn_u16::return#5
|
|
|
|
Alias bitmap_line::sx#0 = bitmap_line::$9 bitmap_line::sx#8 bitmap_line::sx#7 bitmap_line::sx#9
|
|
|
|
Alias sgn_u16::w#1 = bitmap_line::$10
|
|
|
|
Alias sgn_u16::return#1 = sgn_u16::return#6
|
|
|
|
Alias bitmap_line::sy#0 = bitmap_line::$11 bitmap_line::sy#10 bitmap_line::sy#5
|
|
|
|
Alias bitmap_line::e1#0 = bitmap_line::$20
|
|
|
|
Alias bitmap_line::e#0 = bitmap_line::$15
|
|
|
|
Alias bitmap_line::y#4 = bitmap_line::y#5
|
|
|
|
Alias bitmap_line::sy#1 = bitmap_line::sy#3 bitmap_line::sy#8
|
|
|
|
Alias bitmap_line::e#3 = bitmap_line::e#5
|
|
|
|
Alias bitmap_line::dx#14 = bitmap_line::dx#4 bitmap_line::dx#8
|
|
|
|
Alias bitmap_line::dy#3 = bitmap_line::dy#7 bitmap_line::dy#4
|
|
|
|
Alias bitmap_line::y2#6 = bitmap_line::y2#9 bitmap_line::y2#7
|
|
|
|
Alias bitmap_line::x#13 = bitmap_line::x#4 bitmap_line::x#5
|
|
|
|
Alias bitmap_line::sx#1 = bitmap_line::sx#3 bitmap_line::sx#5
|
|
|
|
Alias bitmap_line::e#1 = bitmap_line::e#4
|
|
|
|
Alias bitmap_line::y#1 = bitmap_line::y#12
|
|
|
|
Alias bitmap_line::x#7 = bitmap_line::x#8
|
|
|
|
Alias bitmap_line::sx#11 = bitmap_line::sx#2 bitmap_line::sx#4
|
|
|
|
Alias bitmap_line::e1#3 = bitmap_line::e1#5
|
|
|
|
Alias bitmap_line::dy#13 = bitmap_line::dy#5 bitmap_line::dy#8
|
|
|
|
Alias bitmap_line::dx#5 = bitmap_line::dx#9 bitmap_line::dx#6
|
|
|
|
Alias bitmap_line::x2#5 = bitmap_line::x2#6 bitmap_line::x2#8
|
|
|
|
Alias bitmap_line::y#15 = bitmap_line::y#8 bitmap_line::y#9
|
|
|
|
Alias bitmap_line::sy#2 = bitmap_line::sy#4 bitmap_line::sy#7
|
|
|
|
Alias bitmap_line::e1#1 = bitmap_line::e1#4
|
|
|
|
Alias bitmap_line::x#15 = bitmap_line::x#2
|
|
|
|
Alias abs_u16::w#2 = abs_u16::w#3 abs_u16::w#4 abs_u16::return#3
|
|
|
|
Alias abs_u16::return#2 = abs_u16::$2
|
|
|
|
Alias abs_u16::return#4 = abs_u16::return#7
|
|
|
|
Alias sgn_u16::return#4 = sgn_u16::return#7
|
2020-06-27 19:18:00 +00:00
|
|
|
Alias next#10 = next#13 next#14 next#12
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_gfx#2 = bitmap_gfx#9 bitmap_gfx#24 bitmap_gfx#22
|
|
|
|
Alias bitmap_screen#2 = bitmap_screen#9 bitmap_screen#23 bitmap_screen#21
|
2020-06-27 19:18:00 +00:00
|
|
|
Alias next#5 = next#6
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_gfx#10 = bitmap_gfx#16 bitmap_gfx#20 bitmap_gfx#3
|
|
|
|
Alias bitmap_screen#10 = bitmap_screen#15 bitmap_screen#19 bitmap_screen#3
|
2020-06-27 19:18:00 +00:00
|
|
|
Alias next#0 = next#7 next#1
|
2020-03-22 21:26:39 +00:00
|
|
|
Alias init_screen::c#2 = init_screen::c#3
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_gfx#17 = bitmap_gfx#4
|
|
|
|
Alias bitmap_screen#16 = bitmap_screen#4
|
2020-06-27 19:18:00 +00:00
|
|
|
Alias next#11 = next#2
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_gfx#11 = bitmap_gfx#5 bitmap_gfx#12 bitmap_gfx#6
|
|
|
|
Alias bitmap_screen#11 = bitmap_screen#5 bitmap_screen#12 bitmap_screen#6
|
2020-06-27 19:18:00 +00:00
|
|
|
Alias next#3 = next#8 next#9 next#4
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2AliasElimination
|
2020-03-22 21:26:39 +00:00
|
|
|
Alias bitmap_init::x#2 = bitmap_init::x#3
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_init::gfx#2 = bitmap_init::gfx#4
|
|
|
|
Alias bitmap_gfx#21 = bitmap_gfx#25
|
|
|
|
Alias bitmap_screen#20 = bitmap_screen#24
|
2020-03-22 21:26:39 +00:00
|
|
|
Alias bitmap_init::y#2 = bitmap_init::y#3
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_gfx#1 = bitmap_gfx#18
|
|
|
|
Alias bitmap_screen#1 = bitmap_screen#17
|
|
|
|
Alias bitmap_line::y#1 = bitmap_line::y#6
|
|
|
|
Alias bitmap_line::y2#3 = bitmap_line::y2#6
|
|
|
|
Alias bitmap_line::sy#1 = bitmap_line::sy#6
|
|
|
|
Alias bitmap_line::dx#11 = bitmap_line::dx#14
|
|
|
|
Alias bitmap_line::dy#11 = bitmap_line::dy#3
|
|
|
|
Alias bitmap_line::sx#1 = bitmap_line::sx#10
|
|
|
|
Alias bitmap_line::x#15 = bitmap_line::x#9
|
|
|
|
Alias bitmap_line::x2#3 = bitmap_line::x2#5
|
|
|
|
Alias bitmap_line::sx#11 = bitmap_line::sx#6
|
|
|
|
Alias bitmap_line::dy#12 = bitmap_line::dy#13
|
|
|
|
Alias bitmap_line::dx#12 = bitmap_line::dx#5
|
|
|
|
Alias bitmap_line::sy#2 = bitmap_line::sy#9
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2AliasElimination
|
2021-02-04 07:53:47 +00:00
|
|
|
Identical Phi Values memset::end#1 memset::end#0
|
|
|
|
Identical Phi Values memset::str#5 memset::str#3
|
|
|
|
Identical Phi Values memset::c#2 memset::c#4
|
|
|
|
Identical Phi Values bitmap_init::gfx#1 bitmap_init::gfx#0
|
|
|
|
Identical Phi Values bitmap_init::screen#1 bitmap_init::screen#0
|
|
|
|
Identical Phi Values bitmap_init::gfx#2 bitmap_init::gfx#1
|
|
|
|
Identical Phi Values bitmap_gfx#21 bitmap_gfx#0
|
|
|
|
Identical Phi Values bitmap_screen#20 bitmap_screen#0
|
|
|
|
Identical Phi Values bitmap_gfx#1 bitmap_gfx#21
|
|
|
|
Identical Phi Values bitmap_screen#1 bitmap_screen#20
|
|
|
|
Identical Phi Values bitmap_clear::fgcol#1 bitmap_clear::fgcol#0
|
|
|
|
Identical Phi Values bitmap_clear::bgcol#1 bitmap_clear::bgcol#0
|
|
|
|
Identical Phi Values bitmap_screen#8 bitmap_screen#2
|
|
|
|
Identical Phi Values bitmap_gfx#14 bitmap_gfx#2
|
|
|
|
Identical Phi Values bitmap_line::x#0 bitmap_line::x1#0
|
|
|
|
Identical Phi Values bitmap_line::y#0 bitmap_line::y1#0
|
|
|
|
Identical Phi Values bitmap_line::x2#1 bitmap_line::x2#0
|
|
|
|
Identical Phi Values bitmap_line::y2#1 bitmap_line::y2#0
|
|
|
|
Identical Phi Values bitmap_line::sy#1 bitmap_line::sy#0
|
|
|
|
Identical Phi Values bitmap_line::dx#11 bitmap_line::dx#0
|
|
|
|
Identical Phi Values bitmap_line::dy#11 bitmap_line::dy#0
|
|
|
|
Identical Phi Values bitmap_line::y2#3 bitmap_line::y2#1
|
|
|
|
Identical Phi Values bitmap_line::sx#1 bitmap_line::sx#0
|
|
|
|
Identical Phi Values bitmap_line::sx#11 bitmap_line::sx#0
|
|
|
|
Identical Phi Values bitmap_line::dy#12 bitmap_line::dy#0
|
|
|
|
Identical Phi Values bitmap_line::dx#12 bitmap_line::dx#0
|
|
|
|
Identical Phi Values bitmap_line::x2#3 bitmap_line::x2#1
|
|
|
|
Identical Phi Values bitmap_line::sy#2 bitmap_line::sy#0
|
|
|
|
Identical Phi Values bitmap_gfx#15 bitmap_gfx#17
|
|
|
|
Identical Phi Values bitmap_screen#14 bitmap_screen#16
|
2020-10-05 20:58:02 +00:00
|
|
|
Identical Phi Values next#10 next#11
|
2021-02-04 07:53:47 +00:00
|
|
|
Identical Phi Values bitmap_gfx#2 bitmap_gfx#1
|
|
|
|
Identical Phi Values bitmap_screen#2 bitmap_screen#1
|
|
|
|
Identical Phi Values bitmap_gfx#10 bitmap_gfx#2
|
|
|
|
Identical Phi Values bitmap_screen#10 bitmap_screen#2
|
|
|
|
Identical Phi Values bitmap_gfx#11 bitmap_gfx#10
|
|
|
|
Identical Phi Values bitmap_screen#11 bitmap_screen#10
|
2020-10-05 20:58:02 +00:00
|
|
|
Identical Phi Values next#3 next#0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2IdenticalPhiElimination
|
2021-02-04 07:53:47 +00:00
|
|
|
Identical Phi Values memset::return#0 memset::str#3
|
|
|
|
Successful SSA optimization Pass2IdenticalPhiElimination
|
|
|
|
Identified duplicate assignment right side [47] bitmap_init::$7 = bitmap_init::y#2 & 7
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2DuplicateRValueIdentification
|
2021-02-04 07:53:47 +00:00
|
|
|
Simple Condition memset::$1 [2] if(memset::num#2<=0) goto memset::@1
|
|
|
|
Simple Condition memset::$3 [9] if(memset::dst#2!=memset::end#0) goto memset::@4
|
|
|
|
Simple Condition bitmap_init::$1 [22] if(bitmap_init::bits#1!=0) goto bitmap_init::@2
|
|
|
|
Simple Condition bitmap_init::$2 [26] if(bitmap_init::x#1!=rangelast(0,$ff)) goto bitmap_init::@1
|
|
|
|
Simple Condition bitmap_init::$9 [38] if(bitmap_init::$7!=7) goto bitmap_init::@6
|
|
|
|
Simple Condition bitmap_init::$11 [42] if(bitmap_init::y#1!=rangelast(0,$ff)) goto bitmap_init::@5
|
|
|
|
Simple Condition bitmap_line::$12 [90] if(bitmap_line::dx#0>bitmap_line::dy#0) goto bitmap_line::@2
|
|
|
|
Simple Condition bitmap_line::$18 [104] if(bitmap_line::dy#0>=bitmap_line::e#1) goto bitmap_line::@7
|
|
|
|
Simple Condition bitmap_line::$19 [107] if(bitmap_line::y#1!=bitmap_line::y2#0) goto bitmap_line::@6
|
|
|
|
Simple Condition bitmap_line::$23 [121] if(bitmap_line::dx#0>=bitmap_line::e1#1) goto bitmap_line::@10
|
|
|
|
Simple Condition bitmap_line::$24 [124] if(bitmap_line::x#15!=bitmap_line::x2#0) goto bitmap_line::@9
|
|
|
|
Simple Condition abs_u16::$3 [131] if(0!=abs_u16::$1) goto abs_u16::@1
|
|
|
|
Simple Condition sgn_u16::$2 [139] if(0!=sgn_u16::$1) goto sgn_u16::@1
|
|
|
|
Simple Condition init_screen::$0 [169] if(init_screen::c#2!=SCREEN+$400) goto init_screen::@2
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConditionalJumpSimplification
|
2021-02-04 07:53:47 +00:00
|
|
|
Rewriting ! if()-condition to reversed if() [79] bitmap_line::$7 = ! bitmap_line::$6
|
|
|
|
Rewriting && if()-condition to two if()s [78] bitmap_line::$6 = bitmap_line::$4 && bitmap_line::$5
|
|
|
|
Successful SSA optimization Pass2ConditionalAndOrRewriting
|
2020-10-05 20:58:02 +00:00
|
|
|
Constant bitmap_init::bits#0 = $80
|
|
|
|
Constant bitmap_init::x#0 = 0
|
|
|
|
Constant bitmap_init::bits#2 = $80
|
|
|
|
Constant bitmap_init::y#0 = 0
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant memset::num#0 = $3e8
|
|
|
|
Constant memset::c#1 = 0
|
|
|
|
Constant memset::num#1 = $1f40
|
|
|
|
Constant sgn_u16::return#2 = -1
|
|
|
|
Constant sgn_u16::return#3 = 1
|
|
|
|
Constant bitmap_init::gfx#0 = BITMAP
|
|
|
|
Constant bitmap_init::screen#0 = SCREEN
|
|
|
|
Constant bitmap_clear::bgcol#0 = BLACK
|
|
|
|
Constant bitmap_clear::fgcol#0 = WHITE
|
|
|
|
Constant bitmap_line::x1#0 = 0
|
|
|
|
Constant bitmap_line::y1#0 = 0
|
|
|
|
Constant bitmap_line::y2#0 = $64
|
2020-10-05 20:58:02 +00:00
|
|
|
Constant init_screen::c#0 = SCREEN
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant bitmap_screen#16 = (byte*) 0
|
|
|
|
Constant bitmap_gfx#17 = (byte*) 0
|
2020-10-05 20:58:02 +00:00
|
|
|
Constant next#11 = 0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConstantIdentification
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant bitmap_gfx#0 = bitmap_init::gfx#0
|
|
|
|
Constant bitmap_screen#0 = bitmap_init::screen#0
|
|
|
|
Constant bitmap_plot::x#0 = bitmap_line::x1#0
|
|
|
|
Constant bitmap_plot::y#0 = (byte)bitmap_line::y1#0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConstantIdentification
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant memset::str#0 = (void*)bitmap_screen#0
|
|
|
|
Constant memset::str#1 = (void*)bitmap_gfx#0
|
|
|
|
Successful SSA optimization Pass2ConstantIdentification
|
|
|
|
if() condition always true - replacing block destination [164] if(true) goto main::@1
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConstantIfs
|
2021-02-04 07:53:47 +00:00
|
|
|
Resolved ranged next value [24] bitmap_init::x#1 = ++ bitmap_init::x#2 to ++
|
|
|
|
Resolved ranged comparison value [26] if(bitmap_init::x#1!=rangelast(0,$ff)) goto bitmap_init::@1 to 0
|
|
|
|
Resolved ranged next value [40] bitmap_init::y#1 = ++ bitmap_init::y#2 to ++
|
|
|
|
Resolved ranged comparison value [42] if(bitmap_init::y#1!=rangelast(0,$ff)) goto bitmap_init::@5 to 0
|
|
|
|
Simplifying constant evaluating to zero (byte)bitmap_line::y1#0 in
|
|
|
|
Successful SSA optimization PassNSimplifyConstantZero
|
|
|
|
Simplifying expression containing zero bitmap_clear::$0 in [47] bitmap_clear::col#0 = bitmap_clear::$0 + bitmap_clear::bgcol#0
|
|
|
|
Simplifying expression containing zero bitmap_line::x2#0 in [68] abs_u16::w#0 = bitmap_line::x2#0 - bitmap_line::x1#0
|
|
|
|
Simplifying expression containing zero bitmap_line::y2#0 in [72] abs_u16::w#1 = bitmap_line::y2#0 - bitmap_line::y1#0
|
|
|
|
Simplifying expression containing zero bitmap_line::x2#0 in [81] sgn_u16::w#0 = bitmap_line::x2#0 - bitmap_line::x1#0
|
|
|
|
Simplifying expression containing zero bitmap_line::y2#0 in [85] sgn_u16::w#1 = bitmap_line::y2#0 - bitmap_line::y1#0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization PassNSimplifyExpressionWithZero
|
2021-02-04 07:53:47 +00:00
|
|
|
Eliminating unused variable memset::return#2 and assignment [35] memset::return#2 = memset::str#3
|
|
|
|
Eliminating unused variable memset::return#3 and assignment [37] memset::return#3 = memset::str#3
|
|
|
|
Eliminating unused constant bitmap_clear::bgcol#0
|
|
|
|
Eliminating unused constant bitmap_screen#16
|
|
|
|
Eliminating unused constant bitmap_gfx#17
|
|
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
|
|
Eliminating unused constant BLACK
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
|
|
Removing unused block main::@return
|
|
|
|
Successful SSA optimization Pass2EliminateUnusedBlocks
|
2020-06-27 20:36:52 +00:00
|
|
|
Removing unused procedure __start
|
|
|
|
Removing unused procedure block __start
|
|
|
|
Removing unused procedure block __start::__init1
|
|
|
|
Removing unused procedure block __start::@1
|
|
|
|
Removing unused procedure block __start::@2
|
|
|
|
Removing unused procedure block __start::@return
|
2020-06-27 19:18:00 +00:00
|
|
|
Successful SSA optimization PassNEliminateEmptyStart
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding number conversion cast (unumber) 0 in [16] if(bitmap_init::x#1!=0) goto bitmap_init::@1
|
|
|
|
Adding number conversion cast (unumber) 0 in [28] if(bitmap_init::y#1!=0) goto bitmap_init::@5
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization PassNAddNumberTypeConversions
|
2021-02-04 07:53:47 +00:00
|
|
|
Inlining cast [39] bitmap_plot::plotter#0 = (byte*)bitmap_plot::$3
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2InlineCast
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Simplifying constant integer cast 0
|
|
|
|
Successful SSA optimization PassNCastSimplification
|
2020-12-11 23:01:15 +00:00
|
|
|
Finalized unsigned number type (byte) 0
|
|
|
|
Finalized unsigned number type (byte) 0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization PassNFinalizeNumberTypeConversions
|
2021-02-04 07:53:47 +00:00
|
|
|
Alias bitmap_init::$7 = bitmap_init::$3
|
|
|
|
Alias bitmap_clear::col#0 = bitmap_clear::$0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2AliasElimination
|
2021-02-04 07:53:47 +00:00
|
|
|
Simple Condition bitmap_line::$4 [53] if(bitmap_line::dx#0==0) goto bitmap_line::@20
|
|
|
|
Simple Condition bitmap_line::$5 [122] if(bitmap_line::dy#0==0) goto bitmap_line::@4
|
|
|
|
Successful SSA optimization Pass2ConditionalJumpSimplification
|
|
|
|
Negating conditional jump and destination [53] if(bitmap_line::dx#0!=0) goto bitmap_line::@1
|
|
|
|
Successful SSA optimization Pass2ConditionalJumpSequenceImprovement
|
|
|
|
Constant right-side identified [30] bitmap_clear::col#0 = bitmap_clear::fgcol#0 * $10
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConstantRValueConsolidation
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant bitmap_clear::col#0 = bitmap_clear::fgcol#0*$10
|
|
|
|
Constant abs_u16::w#1 = bitmap_line::y2#0
|
|
|
|
Constant sgn_u16::w#1 = bitmap_line::y2#0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConstantIdentification
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant memset::c#0 = bitmap_clear::col#0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConstantIdentification
|
2021-02-04 07:53:47 +00:00
|
|
|
Inlining Noop Cast [2] memset::$4 = (byte*)memset::str#3 keeping memset::str#3
|
|
|
|
Inlining Noop Cast [4] memset::dst#0 = (byte*)memset::str#3 keeping memset::str#3
|
|
|
|
Successful SSA optimization Pass2NopCastInlining
|
|
|
|
Inlining Noop Cast [35] bitmap_plot::plotter#0 = (byte*)bitmap_plot::$3 keeping bitmap_plot::plotter#0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2NopCastInlining
|
2021-02-04 07:53:47 +00:00
|
|
|
Rewriting division to use shift [59] bitmap_line::e1#0 = bitmap_line::dy#0 / 2
|
|
|
|
Rewriting division to use shift [60] bitmap_line::e#0 = bitmap_line::dx#0 / 2
|
|
|
|
Successful SSA optimization Pass2MultiplyToShiftRewriting
|
|
|
|
Inlining constant with var siblings memset::num#0
|
|
|
|
Inlining constant with var siblings memset::c#1
|
|
|
|
Inlining constant with var siblings memset::num#1
|
|
|
|
Inlining constant with var siblings memset::str#0
|
|
|
|
Inlining constant with var siblings memset::str#1
|
|
|
|
Inlining constant with var siblings memset::c#0
|
2020-10-05 20:58:02 +00:00
|
|
|
Inlining constant with var siblings bitmap_init::bits#0
|
|
|
|
Inlining constant with var siblings bitmap_init::x#0
|
|
|
|
Inlining constant with var siblings bitmap_init::bits#2
|
|
|
|
Inlining constant with var siblings bitmap_init::y#0
|
2021-02-04 07:53:47 +00:00
|
|
|
Inlining constant with var siblings bitmap_plot::x#0
|
|
|
|
Inlining constant with var siblings bitmap_plot::y#0
|
|
|
|
Inlining constant with var siblings abs_u16::w#1
|
|
|
|
Inlining constant with var siblings sgn_u16::return#2
|
|
|
|
Inlining constant with var siblings sgn_u16::return#3
|
|
|
|
Inlining constant with var siblings sgn_u16::w#1
|
2020-10-05 20:58:02 +00:00
|
|
|
Inlining constant with var siblings init_screen::c#0
|
|
|
|
Inlining constant with var siblings next#11
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant inlined bitmap_init::screen#0 = SCREEN
|
|
|
|
Constant inlined memset::str#1 = (void*)BITMAP
|
|
|
|
Constant inlined memset::str#0 = (void*)SCREEN
|
|
|
|
Constant inlined bitmap_init::gfx#0 = BITMAP
|
|
|
|
Constant inlined sgn_u16::w#1 = bitmap_line::y2#0
|
|
|
|
Constant inlined next#11 = 0
|
|
|
|
Constant inlined memset::num#1 = $1f40
|
|
|
|
Constant inlined bitmap_clear::fgcol#0 = WHITE
|
|
|
|
Constant inlined bitmap_gfx#0 = BITMAP
|
|
|
|
Constant inlined memset::num#0 = $3e8
|
2020-10-05 20:58:02 +00:00
|
|
|
Constant inlined bitmap_init::bits#0 = $80
|
|
|
|
Constant inlined bitmap_init::bits#2 = $80
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant inlined bitmap_plot::x#0 = bitmap_line::x1#0
|
|
|
|
Constant inlined abs_u16::w#1 = bitmap_line::y2#0
|
|
|
|
Constant inlined bitmap_plot::y#0 = 0
|
|
|
|
Constant inlined bitmap_screen#0 = SCREEN
|
2020-10-05 20:58:02 +00:00
|
|
|
Constant inlined bitmap_init::y#0 = 0
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant inlined sgn_u16::return#3 = 1
|
|
|
|
Constant inlined sgn_u16::return#2 = -1
|
|
|
|
Constant inlined memset::c#0 = bitmap_clear::col#0
|
2020-10-05 20:58:02 +00:00
|
|
|
Constant inlined bitmap_init::x#0 = 0
|
2021-02-04 07:53:47 +00:00
|
|
|
Constant inlined init_screen::c#0 = SCREEN
|
|
|
|
Constant inlined memset::c#1 = 0
|
2019-09-18 19:53:32 +00:00
|
|
|
Successful SSA optimization Pass2ConstantInlining
|
2020-12-11 23:01:15 +00:00
|
|
|
Finalized unsigned number type (word) $100
|
|
|
|
Finalized unsigned number type (word) $100
|
|
|
|
Finalized unsigned number type (word) $100
|
|
|
|
Finalized unsigned number type (word) $100
|
|
|
|
Finalized unsigned number type (word) $100
|
|
|
|
Finalized unsigned number type (word) $100
|
|
|
|
Finalized unsigned number type (byte) $28
|
|
|
|
Finalized unsigned number type (byte) 8
|
|
|
|
Successful SSA optimization PassNFinalizeNumberTypeConversions
|
2020-04-25 18:10:49 +00:00
|
|
|
Added new block during phi lifting bitmap_init::@8(between bitmap_init::@2 and bitmap_init::@1)
|
|
|
|
Added new block during phi lifting bitmap_init::@9(between bitmap_init::@1 and bitmap_init::@2)
|
|
|
|
Added new block during phi lifting bitmap_init::@10(between bitmap_init::@6 and bitmap_init::@5)
|
|
|
|
Added new block during phi lifting bitmap_init::@11(between bitmap_init::@5 and bitmap_init::@6)
|
2021-02-04 07:53:47 +00:00
|
|
|
Added new block during phi lifting bitmap_line::@21(between bitmap_line::@7 and bitmap_line::@6)
|
|
|
|
Added new block during phi lifting bitmap_line::@22(between bitmap_line::@17 and bitmap_line::@7)
|
|
|
|
Added new block during phi lifting bitmap_line::@23(between bitmap_line::@10 and bitmap_line::@3)
|
|
|
|
Added new block during phi lifting bitmap_line::@24(between bitmap_line::@7 and bitmap_line::@3)
|
|
|
|
Added new block during phi lifting bitmap_line::@25(between bitmap_line::@10 and bitmap_line::@9)
|
|
|
|
Added new block during phi lifting bitmap_line::@26(between bitmap_line::@19 and bitmap_line::@10)
|
2020-04-25 18:10:49 +00:00
|
|
|
Adding NOP phi() at start of main::@2
|
2019-09-18 19:53:32 +00:00
|
|
|
Adding NOP phi() at start of main::@3
|
|
|
|
Adding NOP phi() at start of main::@4
|
2020-06-27 21:26:57 +00:00
|
|
|
Adding NOP phi() at start of bitmap_init
|
|
|
|
Adding NOP phi() at start of bitmap_init::@3
|
|
|
|
Adding NOP phi() at start of bitmap_init::@4
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding NOP phi() at start of bitmap_clear
|
|
|
|
Adding NOP phi() at start of bitmap_clear::@1
|
|
|
|
Adding NOP phi() at start of bitmap_clear::@2
|
2020-06-27 21:26:57 +00:00
|
|
|
Adding NOP phi() at start of init_screen
|
2020-04-25 18:10:49 +00:00
|
|
|
Adding NOP phi() at start of bitmap_line::@18
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding NOP phi() at start of bitmap_line::@4
|
|
|
|
Adding NOP phi() at start of bitmap_line::@16
|
|
|
|
Adding NOP phi() at start of memset::@1
|
|
|
|
Adding NOP phi() at start of sgn_u16::@2
|
|
|
|
Adding NOP phi() at start of sgn_u16::@1
|
2019-09-18 19:53:32 +00:00
|
|
|
CALL GRAPH
|
2020-06-27 19:18:00 +00:00
|
|
|
Calls in [main] to bitmap_init:4 bitmap_clear:6 init_screen:8 bitmap_line:12
|
2021-02-04 07:53:47 +00:00
|
|
|
Calls in [bitmap_clear] to memset:46 memset:48
|
|
|
|
Calls in [bitmap_line] to abs_u16:60 abs_u16:63 sgn_u16:70 sgn_u16:73 bitmap_plot:84 bitmap_plot:101 bitmap_plot:116 bitmap_plot:134
|
2019-09-18 19:53:32 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
Created 30 initial phi equivalence classes
|
2020-10-05 20:58:02 +00:00
|
|
|
Coalesced [14] next#15 = next#0
|
2021-02-04 07:53:47 +00:00
|
|
|
Coalesced [34] bitmap_init::yoffs#7 = bitmap_init::yoffs#1
|
|
|
|
Coalesced [39] bitmap_init::y#5 = bitmap_init::y#1
|
|
|
|
Coalesced [40] bitmap_init::yoffs#5 = bitmap_init::yoffs#4
|
|
|
|
Coalesced (already) [41] bitmap_init::yoffs#6 = bitmap_init::yoffs#2
|
|
|
|
Coalesced [42] bitmap_init::bits#5 = bitmap_init::bits#4
|
|
|
|
Coalesced [43] bitmap_init::x#5 = bitmap_init::x#1
|
|
|
|
Coalesced [44] bitmap_init::bits#6 = bitmap_init::bits#1
|
|
|
|
Coalesced [57] init_screen::c#4 = init_screen::c#1
|
|
|
|
Coalesced [59] abs_u16::w#5 = abs_u16::w#0
|
|
|
|
Coalesced [69] sgn_u16::w#3 = sgn_u16::w#0
|
|
|
|
Coalesced [78] bitmap_line::e#7 = bitmap_line::e#0
|
|
|
|
Coalesced [82] bitmap_plot::y#6 = bitmap_plot::y#1
|
|
|
|
Coalesced [83] bitmap_plot::x#6 = bitmap_plot::x#1
|
|
|
|
Coalesced [90] bitmap_line::x#22 = bitmap_line::x#1
|
|
|
|
Coalesced [91] bitmap_line::e#10 = bitmap_line::e#2
|
|
|
|
Coalesced [94] bitmap_line::x#24 = bitmap_line::x#12
|
|
|
|
Coalesced [95] bitmap_line::y#22 = bitmap_line::y#1
|
|
|
|
Coalesced [99] bitmap_plot::y#5 = bitmap_plot::y#2
|
|
|
|
Coalesced [100] bitmap_plot::x#5 = bitmap_plot::x#2
|
|
|
|
Coalesced [104] bitmap_line::x#20 = bitmap_line::x#12
|
|
|
|
Coalesced [105] bitmap_line::y#20 = bitmap_line::y#1
|
|
|
|
Coalesced [106] bitmap_line::e#8 = bitmap_line::e#6
|
|
|
|
Coalesced (already) [107] bitmap_line::x#21 = bitmap_line::x#13
|
|
|
|
Coalesced [108] bitmap_line::e#9 = bitmap_line::e#1
|
|
|
|
Coalesced [110] bitmap_line::e1#8 = bitmap_line::e1#0
|
|
|
|
Coalesced [114] bitmap_plot::y#7 = bitmap_plot::y#3
|
|
|
|
Coalesced [115] bitmap_plot::x#7 = bitmap_plot::x#3
|
|
|
|
Coalesced [122] bitmap_line::y#24 = bitmap_line::y#2
|
|
|
|
Coalesced [123] bitmap_line::e1#9 = bitmap_line::e1#2
|
|
|
|
Coalesced [126] bitmap_line::x#23 = bitmap_line::x#15
|
|
|
|
Coalesced [127] bitmap_line::y#21 = bitmap_line::y#13
|
|
|
|
Coalesced [128] bitmap_line::x#25 = bitmap_line::x#15
|
|
|
|
Coalesced [129] bitmap_line::y#23 = bitmap_line::y#13
|
|
|
|
Coalesced [130] bitmap_line::e1#7 = bitmap_line::e1#6
|
|
|
|
Coalesced (already) [131] bitmap_line::y#25 = bitmap_line::y#15
|
|
|
|
Coalesced [132] bitmap_line::e1#10 = bitmap_line::e1#1
|
|
|
|
Coalesced [146] memset::dst#5 = memset::dst#1
|
|
|
|
Coalesced [151] abs_u16::return#9 = abs_u16::w#2
|
|
|
|
Coalesced [155] abs_u16::return#8 = abs_u16::return#2
|
|
|
|
Coalesced down to 19 phi equivalence classes
|
2020-10-05 20:58:02 +00:00
|
|
|
Culled Empty Block label main::@4
|
|
|
|
Culled Empty Block label bitmap_init::@3
|
|
|
|
Culled Empty Block label bitmap_init::@4
|
|
|
|
Culled Empty Block label bitmap_init::@10
|
|
|
|
Culled Empty Block label bitmap_init::@11
|
|
|
|
Culled Empty Block label bitmap_init::@8
|
2021-02-04 07:53:47 +00:00
|
|
|
Culled Empty Block label bitmap_clear::@2
|
|
|
|
Culled Empty Block label bitmap_line::@24
|
2020-10-05 20:58:02 +00:00
|
|
|
Culled Empty Block label bitmap_line::@18
|
|
|
|
Culled Empty Block label bitmap_line::@21
|
2021-02-04 07:53:47 +00:00
|
|
|
Culled Empty Block label bitmap_line::@22
|
|
|
|
Culled Empty Block label bitmap_line::@23
|
|
|
|
Culled Empty Block label bitmap_line::@25
|
|
|
|
Culled Empty Block label bitmap_line::@26
|
|
|
|
Culled Empty Block label bitmap_line::@16
|
|
|
|
Culled Empty Block label memset::@1
|
|
|
|
Culled Empty Block label abs_u16::@2
|
|
|
|
Culled Empty Block label sgn_u16::@2
|
|
|
|
Renumbering block memset::@2 to memset::@1
|
|
|
|
Renumbering block memset::@3 to memset::@2
|
|
|
|
Renumbering block memset::@4 to memset::@3
|
2019-09-18 19:53:32 +00:00
|
|
|
Renumbering block bitmap_init::@5 to bitmap_init::@3
|
|
|
|
Renumbering block bitmap_init::@6 to bitmap_init::@4
|
|
|
|
Renumbering block bitmap_init::@7 to bitmap_init::@5
|
2020-04-25 18:10:49 +00:00
|
|
|
Renumbering block bitmap_init::@9 to bitmap_init::@6
|
2021-02-04 07:53:47 +00:00
|
|
|
Renumbering block bitmap_line::@17 to bitmap_line::@16
|
|
|
|
Renumbering block bitmap_line::@19 to bitmap_line::@17
|
|
|
|
Renumbering block bitmap_line::@20 to bitmap_line::@18
|
2020-04-25 18:10:49 +00:00
|
|
|
Renumbering block main::@5 to main::@4
|
2019-09-18 19:53:32 +00:00
|
|
|
Adding NOP phi() at start of main::@2
|
|
|
|
Adding NOP phi() at start of main::@3
|
|
|
|
Adding NOP phi() at start of bitmap_init
|
|
|
|
Adding NOP phi() at start of bitmap_init::@6
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding NOP phi() at start of bitmap_clear
|
|
|
|
Adding NOP phi() at start of bitmap_clear::@1
|
2020-06-27 21:26:57 +00:00
|
|
|
Adding NOP phi() at start of init_screen
|
2021-02-04 07:53:47 +00:00
|
|
|
Adding NOP phi() at start of bitmap_line::@4
|
|
|
|
Adding NOP phi() at start of sgn_u16::@1
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
FINAL CONTROL FLOW GRAPH
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2020-10-05 20:58:02 +00:00
|
|
|
void main()
|
2020-06-27 19:18:00 +00:00
|
|
|
main: scope:[main] from
|
2020-10-05 20:58:02 +00:00
|
|
|
[0] *BORDER_COLOR = 0
|
|
|
|
[1] *BG_COLOR = 0
|
2020-12-29 18:37:32 +00:00
|
|
|
[2] *D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3
|
|
|
|
[3] *VICII_MEMORY = (byte)(word)SCREEN&$3fff/$40|(word)BITMAP&$3fff/$400
|
2020-06-27 19:18:00 +00:00
|
|
|
[4] call bitmap_init
|
2019-09-18 19:53:32 +00:00
|
|
|
to:main::@2
|
|
|
|
main::@2: scope:[main] from main
|
2020-06-27 19:18:00 +00:00
|
|
|
[5] phi()
|
|
|
|
[6] call bitmap_clear
|
2019-09-18 19:53:32 +00:00
|
|
|
to:main::@3
|
|
|
|
main::@3: scope:[main] from main::@2
|
2020-06-27 19:18:00 +00:00
|
|
|
[7] phi()
|
|
|
|
[8] call init_screen
|
2019-09-18 19:53:32 +00:00
|
|
|
to:main::@1
|
|
|
|
main::@1: scope:[main] from main::@3 main::@4
|
2020-10-05 20:58:02 +00:00
|
|
|
[9] next#5 = phi( main::@3/0, main::@4/next#0 )
|
2021-02-04 07:53:47 +00:00
|
|
|
[10] bitmap_line::x2#0 = next#5
|
2020-06-27 19:18:00 +00:00
|
|
|
[11] call bitmap_line
|
2019-09-18 19:53:32 +00:00
|
|
|
to:main::@4
|
|
|
|
main::@4: scope:[main] from main::@1
|
2020-10-05 20:58:02 +00:00
|
|
|
[12] next#0 = ++ next#5
|
2019-09-18 19:53:32 +00:00
|
|
|
to:main::@1
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_init(byte* bitmap_init::gfx , byte* bitmap_init::screen)
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_init: scope:[bitmap_init] from main
|
|
|
|
[13] phi()
|
|
|
|
to:bitmap_init::@1
|
|
|
|
bitmap_init::@1: scope:[bitmap_init] from bitmap_init bitmap_init::@2
|
2020-10-05 20:58:02 +00:00
|
|
|
[14] bitmap_init::x#2 = phi( bitmap_init/0, bitmap_init::@2/bitmap_init::x#1 )
|
2021-02-04 07:53:47 +00:00
|
|
|
[14] bitmap_init::bits#3 = phi( bitmap_init/$80, bitmap_init::@2/bitmap_init::bits#4 )
|
|
|
|
[15] bitmap_plot_bit[bitmap_init::x#2] = bitmap_init::bits#3
|
|
|
|
[16] bitmap_init::bits#1 = bitmap_init::bits#3 >> 1
|
|
|
|
[17] if(bitmap_init::bits#1!=0) goto bitmap_init::@6
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_init::@2
|
|
|
|
bitmap_init::@6: scope:[bitmap_init] from bitmap_init::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
[18] phi()
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_init::@2
|
|
|
|
bitmap_init::@2: scope:[bitmap_init] from bitmap_init::@1 bitmap_init::@6
|
2021-02-04 07:53:47 +00:00
|
|
|
[19] bitmap_init::bits#4 = phi( bitmap_init::@6/bitmap_init::bits#1, bitmap_init::@1/$80 )
|
|
|
|
[20] bitmap_init::x#1 = ++ bitmap_init::x#2
|
|
|
|
[21] if(bitmap_init::x#1!=0) goto bitmap_init::@1
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_init::@3
|
|
|
|
bitmap_init::@3: scope:[bitmap_init] from bitmap_init::@2 bitmap_init::@4
|
2021-02-04 07:53:47 +00:00
|
|
|
[22] bitmap_init::yoffs#2 = phi( bitmap_init::@2/BITMAP, bitmap_init::@4/bitmap_init::yoffs#4 )
|
|
|
|
[22] bitmap_init::y#2 = phi( bitmap_init::@2/0, bitmap_init::@4/bitmap_init::y#1 )
|
|
|
|
[23] bitmap_init::$7 = bitmap_init::y#2 & 7
|
|
|
|
[24] bitmap_init::$4 = < bitmap_init::yoffs#2
|
|
|
|
[25] bitmap_init::$5 = bitmap_init::$7 | bitmap_init::$4
|
|
|
|
[26] bitmap_plot_ylo[bitmap_init::y#2] = bitmap_init::$5
|
|
|
|
[27] bitmap_init::$6 = > bitmap_init::yoffs#2
|
|
|
|
[28] bitmap_plot_yhi[bitmap_init::y#2] = bitmap_init::$6
|
|
|
|
[29] if(bitmap_init::$7!=7) goto bitmap_init::@4
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_init::@5
|
|
|
|
bitmap_init::@5: scope:[bitmap_init] from bitmap_init::@3
|
2021-02-04 07:53:47 +00:00
|
|
|
[30] bitmap_init::yoffs#1 = bitmap_init::yoffs#2 + (word)$28*8
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_init::@4
|
|
|
|
bitmap_init::@4: scope:[bitmap_init] from bitmap_init::@3 bitmap_init::@5
|
2021-02-04 07:53:47 +00:00
|
|
|
[31] bitmap_init::yoffs#4 = phi( bitmap_init::@3/bitmap_init::yoffs#2, bitmap_init::@5/bitmap_init::yoffs#1 )
|
|
|
|
[32] bitmap_init::y#1 = ++ bitmap_init::y#2
|
|
|
|
[33] if(bitmap_init::y#1!=0) goto bitmap_init::@3
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_init::@return
|
|
|
|
bitmap_init::@return: scope:[bitmap_init] from bitmap_init::@4
|
2021-02-04 07:53:47 +00:00
|
|
|
[34] return
|
2020-06-27 21:26:57 +00:00
|
|
|
to:@return
|
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_clear(byte bitmap_clear::bgcol , byte bitmap_clear::fgcol)
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_clear: scope:[bitmap_clear] from main::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
[35] phi()
|
|
|
|
[36] call memset
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_clear::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_clear::@1: scope:[bitmap_clear] from bitmap_clear
|
|
|
|
[37] phi()
|
|
|
|
[38] call memset
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_clear::@return
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_clear::@return: scope:[bitmap_clear] from bitmap_clear::@1
|
|
|
|
[39] return
|
2020-06-27 21:26:57 +00:00
|
|
|
to:@return
|
|
|
|
|
2020-10-05 20:58:02 +00:00
|
|
|
void init_screen()
|
2020-06-27 21:26:57 +00:00
|
|
|
init_screen: scope:[init_screen] from main::@3
|
2021-02-04 07:53:47 +00:00
|
|
|
[40] phi()
|
2020-06-27 21:26:57 +00:00
|
|
|
to:init_screen::@1
|
|
|
|
init_screen::@1: scope:[init_screen] from init_screen init_screen::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
[41] init_screen::c#2 = phi( init_screen/SCREEN, init_screen::@2/init_screen::c#1 )
|
|
|
|
[42] if(init_screen::c#2!=SCREEN+$400) goto init_screen::@2
|
2020-06-27 21:26:57 +00:00
|
|
|
to:init_screen::@return
|
|
|
|
init_screen::@return: scope:[init_screen] from init_screen::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
[43] return
|
2020-06-27 21:26:57 +00:00
|
|
|
to:@return
|
|
|
|
init_screen::@2: scope:[init_screen] from init_screen::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
[44] *init_screen::c#2 = $14
|
|
|
|
[45] init_screen::c#1 = ++ init_screen::c#2
|
2020-06-27 21:26:57 +00:00
|
|
|
to:init_screen::@1
|
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_line(word bitmap_line::x1 , word bitmap_line::y1 , word bitmap_line::x2 , word bitmap_line::y2)
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_line: scope:[bitmap_line] from main::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
[46] abs_u16::w#0 = bitmap_line::x2#0
|
|
|
|
[47] call abs_u16
|
|
|
|
[48] abs_u16::return#0 = abs_u16::return#4
|
|
|
|
to:bitmap_line::@12
|
|
|
|
bitmap_line::@12: scope:[bitmap_line] from bitmap_line
|
|
|
|
[49] bitmap_line::dx#0 = abs_u16::return#0
|
|
|
|
[50] call abs_u16
|
|
|
|
[51] abs_u16::return#1 = abs_u16::return#4
|
|
|
|
to:bitmap_line::@13
|
|
|
|
bitmap_line::@13: scope:[bitmap_line] from bitmap_line::@12
|
|
|
|
[52] bitmap_line::dy#0 = abs_u16::return#1
|
|
|
|
[53] if(bitmap_line::dx#0!=0) goto bitmap_line::@1
|
|
|
|
to:bitmap_line::@18
|
|
|
|
bitmap_line::@18: scope:[bitmap_line] from bitmap_line::@13
|
|
|
|
[54] if(bitmap_line::dy#0==0) goto bitmap_line::@4
|
|
|
|
to:bitmap_line::@1
|
|
|
|
bitmap_line::@1: scope:[bitmap_line] from bitmap_line::@13 bitmap_line::@18
|
|
|
|
[55] sgn_u16::w#0 = bitmap_line::x2#0
|
|
|
|
[56] call sgn_u16
|
|
|
|
[57] sgn_u16::return#0 = sgn_u16::return#4
|
|
|
|
to:bitmap_line::@14
|
|
|
|
bitmap_line::@14: scope:[bitmap_line] from bitmap_line::@1
|
|
|
|
[58] bitmap_line::sx#0 = sgn_u16::return#0
|
|
|
|
[59] call sgn_u16
|
|
|
|
[60] sgn_u16::return#1 = sgn_u16::return#4
|
|
|
|
to:bitmap_line::@15
|
|
|
|
bitmap_line::@15: scope:[bitmap_line] from bitmap_line::@14
|
|
|
|
[61] bitmap_line::sy#0 = sgn_u16::return#1
|
|
|
|
[62] if(bitmap_line::dx#0>bitmap_line::dy#0) goto bitmap_line::@2
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_line::@5
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@5: scope:[bitmap_line] from bitmap_line::@15
|
|
|
|
[63] bitmap_line::e#0 = bitmap_line::dx#0 >> 1
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_line::@6
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@6: scope:[bitmap_line] from bitmap_line::@5 bitmap_line::@7
|
|
|
|
[64] bitmap_line::e#3 = phi( bitmap_line::@5/bitmap_line::e#0, bitmap_line::@7/bitmap_line::e#6 )
|
|
|
|
[64] bitmap_line::y#4 = phi( bitmap_line::@5/bitmap_line::y1#0, bitmap_line::@7/bitmap_line::y#1 )
|
|
|
|
[64] bitmap_line::x#13 = phi( bitmap_line::@5/bitmap_line::x1#0, bitmap_line::@7/bitmap_line::x#12 )
|
|
|
|
[65] bitmap_plot::x#1 = bitmap_line::x#13
|
|
|
|
[66] bitmap_plot::y#1 = (byte)bitmap_line::y#4
|
|
|
|
[67] call bitmap_plot
|
|
|
|
to:bitmap_line::@16
|
|
|
|
bitmap_line::@16: scope:[bitmap_line] from bitmap_line::@6
|
|
|
|
[68] bitmap_line::y#1 = bitmap_line::y#4 + bitmap_line::sy#0
|
|
|
|
[69] bitmap_line::e#1 = bitmap_line::e#3 + bitmap_line::dx#0
|
|
|
|
[70] if(bitmap_line::dy#0>=bitmap_line::e#1) goto bitmap_line::@7
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_line::@8
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@8: scope:[bitmap_line] from bitmap_line::@16
|
|
|
|
[71] bitmap_line::x#1 = bitmap_line::x#13 + bitmap_line::sx#0
|
|
|
|
[72] bitmap_line::e#2 = bitmap_line::e#1 - bitmap_line::dy#0
|
|
|
|
to:bitmap_line::@7
|
|
|
|
bitmap_line::@7: scope:[bitmap_line] from bitmap_line::@16 bitmap_line::@8
|
|
|
|
[73] bitmap_line::e#6 = phi( bitmap_line::@16/bitmap_line::e#1, bitmap_line::@8/bitmap_line::e#2 )
|
|
|
|
[73] bitmap_line::x#12 = phi( bitmap_line::@16/bitmap_line::x#13, bitmap_line::@8/bitmap_line::x#1 )
|
|
|
|
[74] if(bitmap_line::y#1!=bitmap_line::y2#0) goto bitmap_line::@6
|
|
|
|
to:bitmap_line::@3
|
|
|
|
bitmap_line::@3: scope:[bitmap_line] from bitmap_line::@10 bitmap_line::@7
|
|
|
|
[75] bitmap_line::y#7 = phi( bitmap_line::@10/bitmap_line::y#13, bitmap_line::@7/bitmap_line::y#1 )
|
|
|
|
[75] bitmap_line::x#6 = phi( bitmap_line::@10/bitmap_line::x#15, bitmap_line::@7/bitmap_line::x#12 )
|
|
|
|
[76] bitmap_plot::x#2 = bitmap_line::x#6
|
|
|
|
[77] bitmap_plot::y#2 = (byte)bitmap_line::y#7
|
|
|
|
[78] call bitmap_plot
|
2019-09-18 19:53:32 +00:00
|
|
|
to:bitmap_line::@return
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@return: scope:[bitmap_line] from bitmap_line::@3 bitmap_line::@4
|
|
|
|
[79] return
|
2019-09-18 19:53:32 +00:00
|
|
|
to:@return
|
2021-02-04 07:53:47 +00:00
|
|
|
bitmap_line::@2: scope:[bitmap_line] from bitmap_line::@15
|
|
|
|
[80] bitmap_line::e1#0 = bitmap_line::dy#0 >> 1
|
|
|
|
to:bitmap_line::@9
|
|
|
|
bitmap_line::@9: scope:[bitmap_line] from bitmap_line::@10 bitmap_line::@2
|
|
|
|
[81] bitmap_line::e1#3 = phi( bitmap_line::@10/bitmap_line::e1#6, bitmap_line::@2/bitmap_line::e1#0 )
|
|
|
|
[81] bitmap_line::y#15 = phi( bitmap_line::@10/bitmap_line::y#13, bitmap_line::@2/bitmap_line::y1#0 )
|
|
|
|
[81] bitmap_line::x#7 = phi( bitmap_line::@10/bitmap_line::x#15, bitmap_line::@2/bitmap_line::x1#0 )
|
|
|
|
[82] bitmap_plot::x#3 = bitmap_line::x#7
|
|
|
|
[83] bitmap_plot::y#3 = (byte)bitmap_line::y#15
|
|
|
|
[84] call bitmap_plot
|
|
|
|
to:bitmap_line::@17
|
|
|
|
bitmap_line::@17: scope:[bitmap_line] from bitmap_line::@9
|
|
|
|
[85] bitmap_line::x#15 = bitmap_line::x#7 + bitmap_line::sx#0
|
|
|
|
[86] bitmap_line::e1#1 = bitmap_line::e1#3 + bitmap_line::dy#0
|
|
|
|
[87] if(bitmap_line::dx#0>=bitmap_line::e1#1) goto bitmap_line::@10
|
|
|
|
to:bitmap_line::@11
|
|
|
|
bitmap_line::@11: scope:[bitmap_line] from bitmap_line::@17
|
|
|
|
[88] bitmap_line::y#2 = bitmap_line::y#15 + bitmap_line::sy#0
|
|
|
|
[89] bitmap_line::e1#2 = bitmap_line::e1#1 - bitmap_line::dx#0
|
|
|
|
to:bitmap_line::@10
|
|
|
|
bitmap_line::@10: scope:[bitmap_line] from bitmap_line::@11 bitmap_line::@17
|
|
|
|
[90] bitmap_line::e1#6 = phi( bitmap_line::@11/bitmap_line::e1#2, bitmap_line::@17/bitmap_line::e1#1 )
|
|
|
|
[90] bitmap_line::y#13 = phi( bitmap_line::@11/bitmap_line::y#2, bitmap_line::@17/bitmap_line::y#15 )
|
|
|
|
[91] if(bitmap_line::x#15!=bitmap_line::x2#0) goto bitmap_line::@9
|
|
|
|
to:bitmap_line::@3
|
|
|
|
bitmap_line::@4: scope:[bitmap_line] from bitmap_line::@18
|
|
|
|
[92] phi()
|
|
|
|
[93] call bitmap_plot
|
|
|
|
to:bitmap_line::@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void* memset(void* memset::str , byte memset::c , word memset::num)
|
|
|
|
memset: scope:[memset] from bitmap_clear bitmap_clear::@1
|
|
|
|
[94] memset::c#4 = phi( bitmap_clear/bitmap_clear::col#0, bitmap_clear::@1/0 )
|
|
|
|
[94] memset::str#3 = phi( bitmap_clear/(void*)SCREEN, bitmap_clear::@1/(void*)BITMAP )
|
|
|
|
[94] memset::num#2 = phi( bitmap_clear/$3e8, bitmap_clear::@1/$1f40 )
|
|
|
|
[95] if(memset::num#2<=0) goto memset::@return
|
|
|
|
to:memset::@1
|
|
|
|
memset::@1: scope:[memset] from memset
|
|
|
|
[96] memset::end#0 = (byte*)memset::str#3 + memset::num#2
|
|
|
|
[97] memset::dst#4 = (byte*)memset::str#3
|
|
|
|
to:memset::@2
|
|
|
|
memset::@2: scope:[memset] from memset::@1 memset::@3
|
|
|
|
[98] memset::dst#2 = phi( memset::@1/memset::dst#4, memset::@3/memset::dst#1 )
|
|
|
|
[99] if(memset::dst#2!=memset::end#0) goto memset::@3
|
|
|
|
to:memset::@return
|
|
|
|
memset::@return: scope:[memset] from memset memset::@2
|
|
|
|
[100] return
|
2019-09-18 19:53:32 +00:00
|
|
|
to:@return
|
2021-02-04 07:53:47 +00:00
|
|
|
memset::@3: scope:[memset] from memset::@2
|
|
|
|
[101] *memset::dst#2 = memset::c#4
|
|
|
|
[102] memset::dst#1 = ++ memset::dst#2
|
|
|
|
to:memset::@2
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
word abs_u16(word abs_u16::w)
|
|
|
|
abs_u16: scope:[abs_u16] from bitmap_line bitmap_line::@12
|
|
|
|
[103] abs_u16::w#2 = phi( bitmap_line/abs_u16::w#0, bitmap_line::@12/bitmap_line::y2#0 )
|
|
|
|
[104] abs_u16::$0 = > abs_u16::w#2
|
|
|
|
[105] abs_u16::$1 = abs_u16::$0 & $80
|
|
|
|
[106] if(0!=abs_u16::$1) goto abs_u16::@1
|
|
|
|
to:abs_u16::@return
|
|
|
|
abs_u16::@1: scope:[abs_u16] from abs_u16
|
|
|
|
[107] abs_u16::return#2 = - abs_u16::w#2
|
|
|
|
to:abs_u16::@return
|
|
|
|
abs_u16::@return: scope:[abs_u16] from abs_u16 abs_u16::@1
|
|
|
|
[108] abs_u16::return#4 = phi( abs_u16::@1/abs_u16::return#2, abs_u16/abs_u16::w#2 )
|
2020-06-27 21:26:57 +00:00
|
|
|
[109] return
|
2019-09-18 19:53:32 +00:00
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
word sgn_u16(word sgn_u16::w)
|
|
|
|
sgn_u16: scope:[sgn_u16] from bitmap_line::@1 bitmap_line::@14
|
|
|
|
[110] sgn_u16::w#2 = phi( bitmap_line::@1/sgn_u16::w#0, bitmap_line::@14/bitmap_line::y2#0 )
|
|
|
|
[111] sgn_u16::$0 = > sgn_u16::w#2
|
|
|
|
[112] sgn_u16::$1 = sgn_u16::$0 & $80
|
|
|
|
[113] if(0!=sgn_u16::$1) goto sgn_u16::@1
|
|
|
|
to:sgn_u16::@return
|
|
|
|
sgn_u16::@1: scope:[sgn_u16] from sgn_u16
|
|
|
|
[114] phi()
|
|
|
|
to:sgn_u16::@return
|
|
|
|
sgn_u16::@return: scope:[sgn_u16] from sgn_u16 sgn_u16::@1
|
|
|
|
[115] sgn_u16::return#4 = phi( sgn_u16::@1/-1, sgn_u16/1 )
|
|
|
|
[116] return
|
2019-09-18 19:53:32 +00:00
|
|
|
to:@return
|
2019-09-18 21:00:30 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_plot(word bitmap_plot::x , byte bitmap_plot::y)
|
|
|
|
bitmap_plot: scope:[bitmap_plot] from bitmap_line::@3 bitmap_line::@4 bitmap_line::@6 bitmap_line::@9
|
|
|
|
[117] bitmap_plot::x#4 = phi( bitmap_line::@3/bitmap_plot::x#2, bitmap_line::@4/bitmap_line::x1#0, bitmap_line::@6/bitmap_plot::x#1, bitmap_line::@9/bitmap_plot::x#3 )
|
|
|
|
[117] bitmap_plot::y#4 = phi( bitmap_line::@3/bitmap_plot::y#2, bitmap_line::@4/0, bitmap_line::@6/bitmap_plot::y#1, bitmap_line::@9/bitmap_plot::y#3 )
|
|
|
|
[118] bitmap_plot::plotter#0 = bitmap_plot_yhi[bitmap_plot::y#4] w= bitmap_plot_ylo[bitmap_plot::y#4]
|
|
|
|
[119] bitmap_plot::$0 = bitmap_plot::x#4 & $fff8
|
|
|
|
[120] bitmap_plot::plotter#1 = (byte*)bitmap_plot::plotter#0 + bitmap_plot::$0
|
|
|
|
[121] bitmap_plot::$1 = < bitmap_plot::x#4
|
|
|
|
[122] *bitmap_plot::plotter#1 = *bitmap_plot::plotter#1 | bitmap_plot_bit[bitmap_plot::$1]
|
2020-06-27 21:26:57 +00:00
|
|
|
to:bitmap_plot::@return
|
|
|
|
bitmap_plot::@return: scope:[bitmap_plot] from bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
[123] return
|
2019-09-18 19:53:32 +00:00
|
|
|
to:@return
|
|
|
|
|
|
|
|
|
|
|
|
VARIABLE REGISTER WEIGHTS
|
2021-02-04 07:53:47 +00:00
|
|
|
word abs_u16(word abs_u16::w)
|
|
|
|
byte~ abs_u16::$0 2002.0
|
|
|
|
byte~ abs_u16::$1 2002.0
|
|
|
|
word abs_u16::return
|
|
|
|
word abs_u16::return#0 202.0
|
|
|
|
word abs_u16::return#1 202.0
|
|
|
|
word abs_u16::return#2 2002.0
|
|
|
|
word abs_u16::return#4 551.0
|
|
|
|
word abs_u16::w
|
|
|
|
word abs_u16::w#0 202.0
|
|
|
|
word abs_u16::w#2 776.0
|
|
|
|
void bitmap_clear(byte bitmap_clear::bgcol , byte bitmap_clear::fgcol)
|
|
|
|
byte bitmap_clear::bgcol
|
|
|
|
byte bitmap_clear::col
|
|
|
|
byte bitmap_clear::fgcol
|
|
|
|
byte* bitmap_gfx
|
|
|
|
void bitmap_init(byte* bitmap_init::gfx , byte* bitmap_init::screen)
|
|
|
|
byte~ bitmap_init::$4 202.0
|
|
|
|
byte~ bitmap_init::$5 202.0
|
|
|
|
byte~ bitmap_init::$6 202.0
|
|
|
|
byte~ bitmap_init::$7 50.5
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::bits
|
|
|
|
byte bitmap_init::bits#1 101.0
|
2021-02-04 07:53:47 +00:00
|
|
|
byte bitmap_init::bits#3 151.5
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::bits#4 67.33333333333333
|
2021-02-04 07:53:47 +00:00
|
|
|
byte* bitmap_init::gfx
|
|
|
|
byte* bitmap_init::screen
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::x
|
|
|
|
byte bitmap_init::x#1 151.5
|
2021-02-04 07:53:47 +00:00
|
|
|
byte bitmap_init::x#2 50.5
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::y
|
|
|
|
byte bitmap_init::y#1 151.5
|
|
|
|
byte bitmap_init::y#2 50.5
|
|
|
|
byte* bitmap_init::yoffs
|
|
|
|
byte* bitmap_init::yoffs#1 202.0
|
|
|
|
byte* bitmap_init::yoffs#2 63.125
|
|
|
|
byte* bitmap_init::yoffs#4 101.0
|
2021-02-04 07:53:47 +00:00
|
|
|
void bitmap_line(word bitmap_line::x1 , word bitmap_line::y1 , word bitmap_line::x2 , word bitmap_line::y2)
|
|
|
|
word bitmap_line::dx
|
|
|
|
word bitmap_line::dx#0 800.1842105263158
|
|
|
|
word bitmap_line::dy
|
|
|
|
word bitmap_line::dy#0 868.7714285714285
|
|
|
|
word bitmap_line::e
|
|
|
|
word bitmap_line::e#0 202.0
|
|
|
|
word bitmap_line::e#1 13334.666666666666
|
|
|
|
word bitmap_line::e#2 20002.0
|
|
|
|
word bitmap_line::e#3 4020.6000000000004
|
|
|
|
word bitmap_line::e#6 15001.5
|
|
|
|
word bitmap_line::e1
|
|
|
|
word bitmap_line::e1#0 202.0
|
|
|
|
word bitmap_line::e1#1 13334.666666666666
|
|
|
|
word bitmap_line::e1#2 20002.0
|
|
|
|
word bitmap_line::e1#3 4020.6000000000004
|
|
|
|
word bitmap_line::e1#6 15001.5
|
|
|
|
word bitmap_line::sx
|
|
|
|
word bitmap_line::sx#0 693.2068965517242
|
|
|
|
word bitmap_line::sy
|
|
|
|
word bitmap_line::sy#0 773.1923076923076
|
|
|
|
word bitmap_line::x
|
|
|
|
word bitmap_line::x#1 10001.0
|
|
|
|
word bitmap_line::x#12 20002.0
|
|
|
|
word bitmap_line::x#13 5714.857142857143
|
|
|
|
word bitmap_line::x#15 5714.857142857143
|
|
|
|
word bitmap_line::x#6 20103.0
|
|
|
|
word bitmap_line::x#7 7500.75
|
|
|
|
word bitmap_line::x1
|
|
|
|
word bitmap_line::x2
|
|
|
|
word bitmap_line::x2#0 340.4666666666667
|
|
|
|
word bitmap_line::y
|
|
|
|
word bitmap_line::y#1 5714.857142857143
|
|
|
|
word bitmap_line::y#13 20002.0
|
|
|
|
word bitmap_line::y#15 4286.142857142857
|
|
|
|
word bitmap_line::y#2 10001.0
|
|
|
|
word bitmap_line::y#4 5000.5
|
|
|
|
word bitmap_line::y#7 10001.0
|
|
|
|
word bitmap_line::y1
|
|
|
|
word bitmap_line::y2
|
|
|
|
void bitmap_plot(word bitmap_plot::x , byte bitmap_plot::y)
|
|
|
|
word~ bitmap_plot::$0 200002.0
|
|
|
|
byte~ bitmap_plot::$1 200002.0
|
2020-10-05 20:58:02 +00:00
|
|
|
byte* bitmap_plot::plotter
|
2021-02-04 07:53:47 +00:00
|
|
|
word bitmap_plot::plotter#0 50000.5
|
|
|
|
byte* bitmap_plot::plotter#1 150001.5
|
|
|
|
word bitmap_plot::x
|
|
|
|
word bitmap_plot::x#1 10001.0
|
|
|
|
word bitmap_plot::x#2 101.0
|
|
|
|
word bitmap_plot::x#3 10001.0
|
|
|
|
word bitmap_plot::x#4 55026.25
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_plot::y
|
2021-02-04 07:53:47 +00:00
|
|
|
byte bitmap_plot::y#1 20002.0
|
|
|
|
byte bitmap_plot::y#2 202.0
|
|
|
|
byte bitmap_plot::y#3 20002.0
|
|
|
|
byte bitmap_plot::y#4 220105.0
|
|
|
|
byte* bitmap_screen
|
2020-10-05 20:58:02 +00:00
|
|
|
void init_screen()
|
|
|
|
byte* init_screen::c
|
|
|
|
byte* init_screen::c#1 202.0
|
|
|
|
byte* init_screen::c#2 134.66666666666666
|
|
|
|
void main()
|
2021-02-04 07:53:47 +00:00
|
|
|
void* memset(void* memset::str , byte memset::c , word memset::num)
|
|
|
|
byte memset::c
|
|
|
|
byte memset::c#4 125.125
|
|
|
|
byte* memset::dst
|
|
|
|
byte* memset::dst#1 2002.0
|
|
|
|
byte* memset::dst#2 1368.3333333333335
|
|
|
|
byte* memset::dst#4 202.0
|
|
|
|
byte* memset::end
|
|
|
|
byte* memset::end#0 183.66666666666669
|
|
|
|
word memset::num
|
|
|
|
word memset::num#2 101.0
|
|
|
|
void* memset::return
|
|
|
|
void* memset::str
|
|
|
|
void* memset::str#3
|
2020-10-05 20:58:02 +00:00
|
|
|
byte next
|
|
|
|
byte next#0 22.0
|
|
|
|
byte next#5 11.0
|
2021-02-04 07:53:47 +00:00
|
|
|
word sgn_u16(word sgn_u16::w)
|
|
|
|
byte~ sgn_u16::$0 2002.0
|
|
|
|
byte~ sgn_u16::$1 2002.0
|
|
|
|
word sgn_u16::return
|
|
|
|
word sgn_u16::return#0 202.0
|
|
|
|
word sgn_u16::return#1 202.0
|
|
|
|
word sgn_u16::return#4 50.5
|
|
|
|
word sgn_u16::w
|
|
|
|
word sgn_u16::w#0 202.0
|
|
|
|
word sgn_u16::w#2 1102.0
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
Initial phi equivalence classes
|
2020-06-27 19:18:00 +00:00
|
|
|
[ next#5 next#0 ]
|
2020-06-27 21:26:57 +00:00
|
|
|
[ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
[ bitmap_init::x#2 bitmap_init::x#1 ]
|
2020-06-27 21:26:57 +00:00
|
|
|
[ bitmap_init::y#2 bitmap_init::y#1 ]
|
|
|
|
[ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
|
|
|
|
[ init_screen::c#2 init_screen::c#1 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
[ bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ]
|
|
|
|
[ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 ]
|
|
|
|
[ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 ]
|
|
|
|
[ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ]
|
|
|
|
[ memset::num#2 ]
|
|
|
|
[ memset::str#3 ]
|
|
|
|
[ memset::c#4 ]
|
|
|
|
[ memset::dst#2 memset::dst#4 memset::dst#1 ]
|
|
|
|
[ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 ]
|
|
|
|
[ sgn_u16::w#2 sgn_u16::w#0 ]
|
|
|
|
[ sgn_u16::return#4 ]
|
|
|
|
[ bitmap_plot::y#4 bitmap_plot::y#2 bitmap_plot::y#1 bitmap_plot::y#3 ]
|
|
|
|
[ bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ]
|
|
|
|
Added variable bitmap_line::x2#0 to live range equivalence class [ bitmap_line::x2#0 ]
|
2020-06-27 21:26:57 +00:00
|
|
|
Added variable bitmap_init::$7 to live range equivalence class [ bitmap_init::$7 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
Added variable bitmap_init::$4 to live range equivalence class [ bitmap_init::$4 ]
|
|
|
|
Added variable bitmap_init::$5 to live range equivalence class [ bitmap_init::$5 ]
|
|
|
|
Added variable bitmap_init::$6 to live range equivalence class [ bitmap_init::$6 ]
|
|
|
|
Added variable abs_u16::return#0 to live range equivalence class [ abs_u16::return#0 ]
|
|
|
|
Added variable bitmap_line::dx#0 to live range equivalence class [ bitmap_line::dx#0 ]
|
|
|
|
Added variable abs_u16::return#1 to live range equivalence class [ abs_u16::return#1 ]
|
|
|
|
Added variable bitmap_line::dy#0 to live range equivalence class [ bitmap_line::dy#0 ]
|
|
|
|
Added variable sgn_u16::return#0 to live range equivalence class [ sgn_u16::return#0 ]
|
|
|
|
Added variable bitmap_line::sx#0 to live range equivalence class [ bitmap_line::sx#0 ]
|
|
|
|
Added variable sgn_u16::return#1 to live range equivalence class [ sgn_u16::return#1 ]
|
|
|
|
Added variable bitmap_line::sy#0 to live range equivalence class [ bitmap_line::sy#0 ]
|
|
|
|
Added variable memset::end#0 to live range equivalence class [ memset::end#0 ]
|
|
|
|
Added variable abs_u16::$0 to live range equivalence class [ abs_u16::$0 ]
|
|
|
|
Added variable abs_u16::$1 to live range equivalence class [ abs_u16::$1 ]
|
|
|
|
Added variable sgn_u16::$0 to live range equivalence class [ sgn_u16::$0 ]
|
|
|
|
Added variable sgn_u16::$1 to live range equivalence class [ sgn_u16::$1 ]
|
2019-12-08 15:04:35 +00:00
|
|
|
Added variable bitmap_plot::plotter#0 to live range equivalence class [ bitmap_plot::plotter#0 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
Added variable bitmap_plot::$0 to live range equivalence class [ bitmap_plot::$0 ]
|
|
|
|
Added variable bitmap_plot::plotter#1 to live range equivalence class [ bitmap_plot::plotter#1 ]
|
2019-12-08 15:04:35 +00:00
|
|
|
Added variable bitmap_plot::$1 to live range equivalence class [ bitmap_plot::$1 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
Complete equivalence classes
|
2020-06-27 19:18:00 +00:00
|
|
|
[ next#5 next#0 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
[ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
[ bitmap_init::x#2 bitmap_init::x#1 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
[ bitmap_init::y#2 bitmap_init::y#1 ]
|
|
|
|
[ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
|
2020-06-27 21:26:57 +00:00
|
|
|
[ init_screen::c#2 init_screen::c#1 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
[ bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ]
|
|
|
|
[ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 ]
|
|
|
|
[ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 ]
|
|
|
|
[ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ]
|
|
|
|
[ memset::num#2 ]
|
|
|
|
[ memset::str#3 ]
|
|
|
|
[ memset::c#4 ]
|
|
|
|
[ memset::dst#2 memset::dst#4 memset::dst#1 ]
|
|
|
|
[ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 ]
|
|
|
|
[ sgn_u16::w#2 sgn_u16::w#0 ]
|
|
|
|
[ sgn_u16::return#4 ]
|
|
|
|
[ bitmap_plot::y#4 bitmap_plot::y#2 bitmap_plot::y#1 bitmap_plot::y#3 ]
|
|
|
|
[ bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ]
|
|
|
|
[ bitmap_line::x2#0 ]
|
2020-06-27 21:26:57 +00:00
|
|
|
[ bitmap_init::$7 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
[ bitmap_init::$4 ]
|
|
|
|
[ bitmap_init::$5 ]
|
|
|
|
[ bitmap_init::$6 ]
|
|
|
|
[ abs_u16::return#0 ]
|
|
|
|
[ bitmap_line::dx#0 ]
|
|
|
|
[ abs_u16::return#1 ]
|
|
|
|
[ bitmap_line::dy#0 ]
|
|
|
|
[ sgn_u16::return#0 ]
|
|
|
|
[ bitmap_line::sx#0 ]
|
|
|
|
[ sgn_u16::return#1 ]
|
|
|
|
[ bitmap_line::sy#0 ]
|
|
|
|
[ memset::end#0 ]
|
|
|
|
[ abs_u16::$0 ]
|
|
|
|
[ abs_u16::$1 ]
|
|
|
|
[ sgn_u16::$0 ]
|
|
|
|
[ sgn_u16::$1 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
[ bitmap_plot::plotter#0 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
[ bitmap_plot::$0 ]
|
|
|
|
[ bitmap_plot::plotter#1 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
[ bitmap_plot::$1 ]
|
2020-06-27 19:18:00 +00:00
|
|
|
Allocated zp[1]:2 [ next#5 next#0 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
Allocated zp[1]:3 [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
|
|
|
|
Allocated zp[1]:4 [ bitmap_init::x#2 bitmap_init::x#1 ]
|
2020-06-27 21:26:57 +00:00
|
|
|
Allocated zp[1]:5 [ bitmap_init::y#2 bitmap_init::y#1 ]
|
|
|
|
Allocated zp[2]:6 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
Allocated zp[2]:8 [ init_screen::c#2 init_screen::c#1 ]
|
|
|
|
Allocated zp[2]:10 [ bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ]
|
|
|
|
Allocated zp[2]:12 [ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 ]
|
|
|
|
Allocated zp[2]:14 [ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 ]
|
|
|
|
Allocated zp[2]:16 [ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ]
|
|
|
|
Allocated zp[2]:18 [ memset::num#2 ]
|
|
|
|
Allocated zp[2]:20 [ memset::str#3 ]
|
|
|
|
Allocated zp[1]:22 [ memset::c#4 ]
|
|
|
|
Allocated zp[2]:23 [ memset::dst#2 memset::dst#4 memset::dst#1 ]
|
|
|
|
Allocated zp[2]:25 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 ]
|
|
|
|
Allocated zp[2]:27 [ sgn_u16::w#2 sgn_u16::w#0 ]
|
|
|
|
Allocated zp[2]:29 [ sgn_u16::return#4 ]
|
|
|
|
Allocated zp[1]:31 [ bitmap_plot::y#4 bitmap_plot::y#2 bitmap_plot::y#1 bitmap_plot::y#3 ]
|
|
|
|
Allocated zp[2]:32 [ bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ]
|
|
|
|
Allocated zp[2]:34 [ bitmap_line::x2#0 ]
|
|
|
|
Allocated zp[1]:36 [ bitmap_init::$7 ]
|
|
|
|
Allocated zp[1]:37 [ bitmap_init::$4 ]
|
|
|
|
Allocated zp[1]:38 [ bitmap_init::$5 ]
|
|
|
|
Allocated zp[1]:39 [ bitmap_init::$6 ]
|
|
|
|
Allocated zp[2]:40 [ abs_u16::return#0 ]
|
|
|
|
Allocated zp[2]:42 [ bitmap_line::dx#0 ]
|
|
|
|
Allocated zp[2]:44 [ abs_u16::return#1 ]
|
|
|
|
Allocated zp[2]:46 [ bitmap_line::dy#0 ]
|
|
|
|
Allocated zp[2]:48 [ sgn_u16::return#0 ]
|
|
|
|
Allocated zp[2]:50 [ bitmap_line::sx#0 ]
|
|
|
|
Allocated zp[2]:52 [ sgn_u16::return#1 ]
|
|
|
|
Allocated zp[2]:54 [ bitmap_line::sy#0 ]
|
|
|
|
Allocated zp[2]:56 [ memset::end#0 ]
|
|
|
|
Allocated zp[1]:58 [ abs_u16::$0 ]
|
|
|
|
Allocated zp[1]:59 [ abs_u16::$1 ]
|
|
|
|
Allocated zp[1]:60 [ sgn_u16::$0 ]
|
|
|
|
Allocated zp[1]:61 [ sgn_u16::$1 ]
|
|
|
|
Allocated zp[2]:62 [ bitmap_plot::plotter#0 ]
|
|
|
|
Allocated zp[2]:64 [ bitmap_plot::$0 ]
|
|
|
|
Allocated zp[2]:66 [ bitmap_plot::plotter#1 ]
|
|
|
|
Allocated zp[1]:68 [ bitmap_plot::$1 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
REGISTER UPLIFT POTENTIAL REGISTERS
|
2021-02-04 07:53:47 +00:00
|
|
|
Equivalence Class zp[1]:37 [ bitmap_init::$4 ] has ALU potential.
|
2020-10-05 20:58:02 +00:00
|
|
|
Statement [0] *BORDER_COLOR = 0 [ ] ( [ ] { } ) always clobbers reg byte a
|
|
|
|
Statement [1] *BG_COLOR = 0 [ ] ( [ ] { } ) always clobbers reg byte a
|
2020-12-29 18:37:32 +00:00
|
|
|
Statement [2] *D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3 [ ] ( [ ] { } ) always clobbers reg byte a
|
|
|
|
Statement [3] *VICII_MEMORY = (byte)(word)SCREEN&$3fff/$40|(word)BITMAP&$3fff/$400 [ ] ( [ ] { } ) always clobbers reg byte a
|
2021-02-04 07:53:47 +00:00
|
|
|
Statement [10] bitmap_line::x2#0 = next#5 [ next#5 bitmap_line::x2#0 ] ( [ next#5 bitmap_line::x2#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
2020-06-27 19:18:00 +00:00
|
|
|
Removing always clobbered register reg byte a as potential for zp[1]:2 [ next#5 next#0 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
Statement [30] bitmap_init::yoffs#1 = bitmap_init::yoffs#2 + (word)$28*8 [ bitmap_init::y#2 bitmap_init::yoffs#1 ] ( bitmap_init:4 [ bitmap_init::y#2 bitmap_init::yoffs#1 ] { } ) always clobbers reg byte a
|
|
|
|
Removing always clobbered register reg byte a as potential for zp[1]:5 [ bitmap_init::y#2 bitmap_init::y#1 ]
|
|
|
|
Statement [42] if(init_screen::c#2!=SCREEN+$400) goto init_screen::@2 [ init_screen::c#2 ] ( init_screen:8 [ init_screen::c#2 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [44] *init_screen::c#2 = $14 [ init_screen::c#2 ] ( init_screen:8 [ init_screen::c#2 ] { } ) always clobbers reg byte a reg byte y
|
|
|
|
Statement [46] abs_u16::w#0 = bitmap_line::x2#0 [ bitmap_line::x2#0 abs_u16::w#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 abs_u16::w#0 ] { { abs_u16::w#0 = abs_u16::w#2 bitmap_line::x2#0 next#5 } { abs_u16::return#0 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [48] abs_u16::return#0 = abs_u16::return#4 [ bitmap_line::x2#0 abs_u16::return#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 abs_u16::return#0 ] { { abs_u16::w#0 = abs_u16::w#2 bitmap_line::x2#0 next#5 } { abs_u16::return#0 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [49] bitmap_line::dx#0 = abs_u16::return#0 [ bitmap_line::x2#0 bitmap_line::dx#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 ] { { next#5 = bitmap_line::x2#0 } { abs_u16::return#1 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [51] abs_u16::return#1 = abs_u16::return#4 [ bitmap_line::x2#0 bitmap_line::dx#0 abs_u16::return#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 abs_u16::return#1 ] { { next#5 = bitmap_line::x2#0 } { abs_u16::return#1 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [52] bitmap_line::dy#0 = abs_u16::return#1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [53] if(bitmap_line::dx#0!=0) goto bitmap_line::@1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [54] if(bitmap_line::dy#0==0) goto bitmap_line::@4 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [55] sgn_u16::w#0 = bitmap_line::x2#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::w#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::w#0 ] { { sgn_u16::w#0 = sgn_u16::w#2 bitmap_line::x2#0 next#5 } { sgn_u16::return#0 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [57] sgn_u16::return#0 = sgn_u16::return#4 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::return#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::return#0 ] { { sgn_u16::w#0 = sgn_u16::w#2 bitmap_line::x2#0 next#5 } { sgn_u16::return#0 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [58] bitmap_line::sx#0 = sgn_u16::return#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 ] { { next#5 = bitmap_line::x2#0 } { sgn_u16::return#1 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [60] sgn_u16::return#1 = sgn_u16::return#4 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 sgn_u16::return#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 sgn_u16::return#1 ] { { next#5 = bitmap_line::x2#0 } { sgn_u16::return#1 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [61] bitmap_line::sy#0 = sgn_u16::return#1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [62] if(bitmap_line::dx#0>bitmap_line::dy#0) goto bitmap_line::@2 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [63] bitmap_line::e#0 = bitmap_line::dx#0 >> 1 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e#0 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [65] bitmap_plot::x#1 = bitmap_line::x#13 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } ) always clobbers reg byte a
|
|
|
|
Statement [66] bitmap_plot::y#1 = (byte)bitmap_line::y#4 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 bitmap_plot::y#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 bitmap_plot::y#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } ) always clobbers reg byte a
|
|
|
|
Statement [68] bitmap_line::y#1 = bitmap_line::y#4 + bitmap_line::sy#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::e#3 bitmap_line::y#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::e#3 bitmap_line::y#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [69] bitmap_line::e#1 = bitmap_line::e#3 + bitmap_line::dx#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [70] if(bitmap_line::dy#0>=bitmap_line::e#1) goto bitmap_line::@7 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [71] bitmap_line::x#1 = bitmap_line::x#13 + bitmap_line::sx#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::e#1 bitmap_line::x#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::e#1 bitmap_line::x#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [72] bitmap_line::e#2 = bitmap_line::e#1 - bitmap_line::dy#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::x#1 bitmap_line::e#2 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::x#1 bitmap_line::e#2 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [74] if(bitmap_line::y#1!=bitmap_line::y2#0) goto bitmap_line::@6 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#12 bitmap_line::y#1 bitmap_line::e#6 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#12 bitmap_line::y#1 bitmap_line::e#6 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [76] bitmap_plot::x#2 = bitmap_line::x#6 [ bitmap_line::y#7 bitmap_plot::x#2 ] ( bitmap_line:11 [ next#5 bitmap_line::y#7 bitmap_plot::x#2 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } ) always clobbers reg byte a
|
|
|
|
Statement [77] bitmap_plot::y#2 = (byte)bitmap_line::y#7 [ bitmap_plot::x#2 bitmap_plot::y#2 ] ( bitmap_line:11 [ next#5 bitmap_plot::x#2 bitmap_plot::y#2 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } ) always clobbers reg byte a
|
|
|
|
Statement [80] bitmap_line::e1#0 = bitmap_line::dy#0 >> 1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e1#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e1#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [82] bitmap_plot::x#3 = bitmap_line::x#7 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } ) always clobbers reg byte a
|
|
|
|
Statement [83] bitmap_plot::y#3 = (byte)bitmap_line::y#15 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 bitmap_plot::y#3 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 bitmap_plot::y#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } ) always clobbers reg byte a
|
|
|
|
Statement [85] bitmap_line::x#15 = bitmap_line::x#7 + bitmap_line::sx#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#3 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#3 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [86] bitmap_line::e1#1 = bitmap_line::e1#3 + bitmap_line::dy#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [87] if(bitmap_line::dx#0>=bitmap_line::e1#1) goto bitmap_line::@10 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [88] bitmap_line::y#2 = bitmap_line::y#15 + bitmap_line::sy#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::e1#1 bitmap_line::y#2 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::e1#1 bitmap_line::y#2 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [89] bitmap_line::e1#2 = bitmap_line::e1#1 - bitmap_line::dx#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#2 bitmap_line::e1#2 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#2 bitmap_line::e1#2 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [91] if(bitmap_line::x#15!=bitmap_line::x2#0) goto bitmap_line::@9 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#13 bitmap_line::e1#6 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#13 bitmap_line::e1#6 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [95] if(memset::num#2<=0) goto memset::@return [ memset::num#2 memset::str#3 memset::c#4 ] ( bitmap_clear:6::memset:36 [ memset::num#2 memset::str#3 memset::c#4 ] { } bitmap_clear:6::memset:38 [ memset::num#2 memset::str#3 memset::c#4 ] { } ) always clobbers reg byte a
|
|
|
|
Removing always clobbered register reg byte a as potential for zp[1]:22 [ memset::c#4 ]
|
|
|
|
Statement [96] memset::end#0 = (byte*)memset::str#3 + memset::num#2 [ memset::str#3 memset::c#4 memset::end#0 ] ( bitmap_clear:6::memset:36 [ memset::str#3 memset::c#4 memset::end#0 ] { } bitmap_clear:6::memset:38 [ memset::str#3 memset::c#4 memset::end#0 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [97] memset::dst#4 = (byte*)memset::str#3 [ memset::c#4 memset::end#0 memset::dst#4 ] ( bitmap_clear:6::memset:36 [ memset::c#4 memset::end#0 memset::dst#4 ] { } bitmap_clear:6::memset:38 [ memset::c#4 memset::end#0 memset::dst#4 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [99] if(memset::dst#2!=memset::end#0) goto memset::@3 [ memset::c#4 memset::end#0 memset::dst#2 ] ( bitmap_clear:6::memset:36 [ memset::c#4 memset::end#0 memset::dst#2 ] { } bitmap_clear:6::memset:38 [ memset::c#4 memset::end#0 memset::dst#2 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [101] *memset::dst#2 = memset::c#4 [ memset::c#4 memset::end#0 memset::dst#2 ] ( bitmap_clear:6::memset:36 [ memset::c#4 memset::end#0 memset::dst#2 ] { } bitmap_clear:6::memset:38 [ memset::c#4 memset::end#0 memset::dst#2 ] { } ) always clobbers reg byte a reg byte y
|
|
|
|
Removing always clobbered register reg byte y as potential for zp[1]:22 [ memset::c#4 ]
|
|
|
|
Statement [107] abs_u16::return#2 = - abs_u16::w#2 [ abs_u16::return#2 ] ( bitmap_line:11::abs_u16:47 [ next#5 bitmap_line::x2#0 abs_u16::return#2 ] { { abs_u16::w#0 = abs_u16::w#2 bitmap_line::x2#0 next#5 } { abs_u16::return#0 = abs_u16::return#4 } } bitmap_line:11::abs_u16:50 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 abs_u16::return#2 ] { { next#5 = bitmap_line::x2#0 } { abs_u16::return#1 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [118] bitmap_plot::plotter#0 = bitmap_plot_yhi[bitmap_plot::y#4] w= bitmap_plot_ylo[bitmap_plot::y#4] [ bitmap_plot::x#4 bitmap_plot::plotter#0 ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [119] bitmap_plot::$0 = bitmap_plot::x#4 & $fff8 [ bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [120] bitmap_plot::plotter#1 = (byte*)bitmap_plot::plotter#0 + bitmap_plot::$0 [ bitmap_plot::x#4 bitmap_plot::plotter#1 ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [122] *bitmap_plot::plotter#1 = *bitmap_plot::plotter#1 | bitmap_plot_bit[bitmap_plot::$1] [ ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a reg byte y
|
2020-06-27 19:18:00 +00:00
|
|
|
Removing always clobbered register reg byte y as potential for zp[1]:2 [ next#5 next#0 ]
|
2020-10-05 20:58:02 +00:00
|
|
|
Statement [0] *BORDER_COLOR = 0 [ ] ( [ ] { } ) always clobbers reg byte a
|
|
|
|
Statement [1] *BG_COLOR = 0 [ ] ( [ ] { } ) always clobbers reg byte a
|
2020-12-29 18:37:32 +00:00
|
|
|
Statement [2] *D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3 [ ] ( [ ] { } ) always clobbers reg byte a
|
|
|
|
Statement [3] *VICII_MEMORY = (byte)(word)SCREEN&$3fff/$40|(word)BITMAP&$3fff/$400 [ ] ( [ ] { } ) always clobbers reg byte a
|
2021-02-04 07:53:47 +00:00
|
|
|
Statement [10] bitmap_line::x2#0 = next#5 [ next#5 bitmap_line::x2#0 ] ( [ next#5 bitmap_line::x2#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [23] bitmap_init::$7 = bitmap_init::y#2 & 7 [ bitmap_init::y#2 bitmap_init::yoffs#2 bitmap_init::$7 ] ( bitmap_init:4 [ bitmap_init::y#2 bitmap_init::yoffs#2 bitmap_init::$7 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [30] bitmap_init::yoffs#1 = bitmap_init::yoffs#2 + (word)$28*8 [ bitmap_init::y#2 bitmap_init::yoffs#1 ] ( bitmap_init:4 [ bitmap_init::y#2 bitmap_init::yoffs#1 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [42] if(init_screen::c#2!=SCREEN+$400) goto init_screen::@2 [ init_screen::c#2 ] ( init_screen:8 [ init_screen::c#2 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [44] *init_screen::c#2 = $14 [ init_screen::c#2 ] ( init_screen:8 [ init_screen::c#2 ] { } ) always clobbers reg byte a reg byte y
|
|
|
|
Statement [46] abs_u16::w#0 = bitmap_line::x2#0 [ bitmap_line::x2#0 abs_u16::w#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 abs_u16::w#0 ] { { abs_u16::w#0 = abs_u16::w#2 bitmap_line::x2#0 next#5 } { abs_u16::return#0 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [48] abs_u16::return#0 = abs_u16::return#4 [ bitmap_line::x2#0 abs_u16::return#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 abs_u16::return#0 ] { { abs_u16::w#0 = abs_u16::w#2 bitmap_line::x2#0 next#5 } { abs_u16::return#0 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [49] bitmap_line::dx#0 = abs_u16::return#0 [ bitmap_line::x2#0 bitmap_line::dx#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 ] { { next#5 = bitmap_line::x2#0 } { abs_u16::return#1 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [51] abs_u16::return#1 = abs_u16::return#4 [ bitmap_line::x2#0 bitmap_line::dx#0 abs_u16::return#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 abs_u16::return#1 ] { { next#5 = bitmap_line::x2#0 } { abs_u16::return#1 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [52] bitmap_line::dy#0 = abs_u16::return#1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [53] if(bitmap_line::dx#0!=0) goto bitmap_line::@1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [54] if(bitmap_line::dy#0==0) goto bitmap_line::@4 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [55] sgn_u16::w#0 = bitmap_line::x2#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::w#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::w#0 ] { { sgn_u16::w#0 = sgn_u16::w#2 bitmap_line::x2#0 next#5 } { sgn_u16::return#0 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [57] sgn_u16::return#0 = sgn_u16::return#4 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::return#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 sgn_u16::return#0 ] { { sgn_u16::w#0 = sgn_u16::w#2 bitmap_line::x2#0 next#5 } { sgn_u16::return#0 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [58] bitmap_line::sx#0 = sgn_u16::return#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 ] { { next#5 = bitmap_line::x2#0 } { sgn_u16::return#1 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [60] sgn_u16::return#1 = sgn_u16::return#4 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 sgn_u16::return#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 sgn_u16::return#1 ] { { next#5 = bitmap_line::x2#0 } { sgn_u16::return#1 = sgn_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [61] bitmap_line::sy#0 = sgn_u16::return#1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [62] if(bitmap_line::dx#0>bitmap_line::dy#0) goto bitmap_line::@2 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [63] bitmap_line::e#0 = bitmap_line::dx#0 >> 1 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e#0 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [65] bitmap_plot::x#1 = bitmap_line::x#13 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } ) always clobbers reg byte a
|
|
|
|
Statement [66] bitmap_plot::y#1 = (byte)bitmap_line::y#4 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 bitmap_plot::y#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#1 bitmap_plot::y#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } ) always clobbers reg byte a
|
|
|
|
Statement [68] bitmap_line::y#1 = bitmap_line::y#4 + bitmap_line::sy#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::e#3 bitmap_line::y#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::e#3 bitmap_line::y#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [69] bitmap_line::e#1 = bitmap_line::e#3 + bitmap_line::dx#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [70] if(bitmap_line::dy#0>=bitmap_line::e#1) goto bitmap_line::@7 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#1 bitmap_line::e#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [71] bitmap_line::x#1 = bitmap_line::x#13 + bitmap_line::sx#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::e#1 bitmap_line::x#1 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::e#1 bitmap_line::x#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [72] bitmap_line::e#2 = bitmap_line::e#1 - bitmap_line::dy#0 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::x#1 bitmap_line::e#2 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::y#1 bitmap_line::x#1 bitmap_line::e#2 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [74] if(bitmap_line::y#1!=bitmap_line::y2#0) goto bitmap_line::@6 [ bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#12 bitmap_line::y#1 bitmap_line::e#6 ] ( bitmap_line:11 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#12 bitmap_line::y#1 bitmap_line::e#6 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [76] bitmap_plot::x#2 = bitmap_line::x#6 [ bitmap_line::y#7 bitmap_plot::x#2 ] ( bitmap_line:11 [ next#5 bitmap_line::y#7 bitmap_plot::x#2 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } ) always clobbers reg byte a
|
|
|
|
Statement [77] bitmap_plot::y#2 = (byte)bitmap_line::y#7 [ bitmap_plot::x#2 bitmap_plot::y#2 ] ( bitmap_line:11 [ next#5 bitmap_plot::x#2 bitmap_plot::y#2 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } ) always clobbers reg byte a
|
|
|
|
Statement [80] bitmap_line::e1#0 = bitmap_line::dy#0 >> 1 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e1#0 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::e1#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [82] bitmap_plot::x#3 = bitmap_line::x#7 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } ) always clobbers reg byte a
|
|
|
|
Statement [83] bitmap_plot::y#3 = (byte)bitmap_line::y#15 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 bitmap_plot::y#3 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#3 bitmap_plot::y#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } ) always clobbers reg byte a
|
|
|
|
Statement [85] bitmap_line::x#15 = bitmap_line::x#7 + bitmap_line::sx#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#3 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#3 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [86] bitmap_line::e1#1 = bitmap_line::e1#3 + bitmap_line::dy#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [87] if(bitmap_line::dx#0>=bitmap_line::e1#1) goto bitmap_line::@10 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#15 bitmap_line::e1#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [88] bitmap_line::y#2 = bitmap_line::y#15 + bitmap_line::sy#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::e1#1 bitmap_line::y#2 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::e1#1 bitmap_line::y#2 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [89] bitmap_line::e1#2 = bitmap_line::e1#1 - bitmap_line::dx#0 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#2 bitmap_line::e1#2 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#2 bitmap_line::e1#2 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [91] if(bitmap_line::x#15!=bitmap_line::x2#0) goto bitmap_line::@9 [ bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#13 bitmap_line::e1#6 ] ( bitmap_line:11 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#15 bitmap_line::y#13 bitmap_line::e1#6 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [95] if(memset::num#2<=0) goto memset::@return [ memset::num#2 memset::str#3 memset::c#4 ] ( bitmap_clear:6::memset:36 [ memset::num#2 memset::str#3 memset::c#4 ] { } bitmap_clear:6::memset:38 [ memset::num#2 memset::str#3 memset::c#4 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [96] memset::end#0 = (byte*)memset::str#3 + memset::num#2 [ memset::str#3 memset::c#4 memset::end#0 ] ( bitmap_clear:6::memset:36 [ memset::str#3 memset::c#4 memset::end#0 ] { } bitmap_clear:6::memset:38 [ memset::str#3 memset::c#4 memset::end#0 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [97] memset::dst#4 = (byte*)memset::str#3 [ memset::c#4 memset::end#0 memset::dst#4 ] ( bitmap_clear:6::memset:36 [ memset::c#4 memset::end#0 memset::dst#4 ] { } bitmap_clear:6::memset:38 [ memset::c#4 memset::end#0 memset::dst#4 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [99] if(memset::dst#2!=memset::end#0) goto memset::@3 [ memset::c#4 memset::end#0 memset::dst#2 ] ( bitmap_clear:6::memset:36 [ memset::c#4 memset::end#0 memset::dst#2 ] { } bitmap_clear:6::memset:38 [ memset::c#4 memset::end#0 memset::dst#2 ] { } ) always clobbers reg byte a
|
|
|
|
Statement [101] *memset::dst#2 = memset::c#4 [ memset::c#4 memset::end#0 memset::dst#2 ] ( bitmap_clear:6::memset:36 [ memset::c#4 memset::end#0 memset::dst#2 ] { } bitmap_clear:6::memset:38 [ memset::c#4 memset::end#0 memset::dst#2 ] { } ) always clobbers reg byte a reg byte y
|
|
|
|
Statement [107] abs_u16::return#2 = - abs_u16::w#2 [ abs_u16::return#2 ] ( bitmap_line:11::abs_u16:47 [ next#5 bitmap_line::x2#0 abs_u16::return#2 ] { { abs_u16::w#0 = abs_u16::w#2 bitmap_line::x2#0 next#5 } { abs_u16::return#0 = abs_u16::return#4 } } bitmap_line:11::abs_u16:50 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 abs_u16::return#2 ] { { next#5 = bitmap_line::x2#0 } { abs_u16::return#1 = abs_u16::return#4 } } ) always clobbers reg byte a
|
|
|
|
Statement [118] bitmap_plot::plotter#0 = bitmap_plot_yhi[bitmap_plot::y#4] w= bitmap_plot_ylo[bitmap_plot::y#4] [ bitmap_plot::x#4 bitmap_plot::plotter#0 ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [119] bitmap_plot::$0 = bitmap_plot::x#4 & $fff8 [ bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#0 bitmap_plot::$0 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [120] bitmap_plot::plotter#1 = (byte*)bitmap_plot::plotter#0 + bitmap_plot::$0 [ bitmap_plot::x#4 bitmap_plot::plotter#1 ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 bitmap_plot::x#4 bitmap_plot::plotter#1 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a
|
|
|
|
Statement [122] *bitmap_plot::plotter#1 = *bitmap_plot::plotter#1 | bitmap_plot_bit[bitmap_plot::$1] [ ] ( bitmap_line:11::bitmap_plot:67 [ next#5 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#13 bitmap_line::y#4 bitmap_line::e#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#1 = bitmap_plot::y#4 } { bitmap_plot::x#1 = bitmap_plot::x#4 bitmap_line::x#13 } } bitmap_line:11::bitmap_plot:78 [ next#5 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#2 = bitmap_plot::y#4 } { bitmap_plot::x#2 = bitmap_plot::x#4 bitmap_line::x#6 } } bitmap_line:11::bitmap_plot:84 [ next#5 bitmap_line::x2#0 bitmap_line::dx#0 bitmap_line::dy#0 bitmap_line::sx#0 bitmap_line::sy#0 bitmap_line::x#7 bitmap_line::y#15 bitmap_line::e1#3 ] { { next#5 = bitmap_line::x2#0 } { bitmap_plot::y#3 = bitmap_plot::y#4 } { bitmap_plot::x#3 = bitmap_plot::x#4 bitmap_line::x#7 } } bitmap_line:11::bitmap_plot:93 [ next#5 ] { { next#5 = bitmap_line::x2#0 } } ) always clobbers reg byte a reg byte y
|
|
|
|
Potential registers zp[1]:2 [ next#5 next#0 ] : zp[1]:2 , reg byte x ,
|
|
|
|
Potential registers zp[1]:3 [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ] : zp[1]:3 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[1]:4 [ bitmap_init::x#2 bitmap_init::x#1 ] : zp[1]:4 , reg byte a , reg byte x , reg byte y ,
|
2020-06-27 21:26:57 +00:00
|
|
|
Potential registers zp[1]:5 [ bitmap_init::y#2 bitmap_init::y#1 ] : zp[1]:5 , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[2]:6 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] : zp[2]:6 ,
|
2021-02-04 07:53:47 +00:00
|
|
|
Potential registers zp[2]:8 [ init_screen::c#2 init_screen::c#1 ] : zp[2]:8 ,
|
|
|
|
Potential registers zp[2]:10 [ bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ] : zp[2]:10 ,
|
|
|
|
Potential registers zp[2]:12 [ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 ] : zp[2]:12 ,
|
|
|
|
Potential registers zp[2]:14 [ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 ] : zp[2]:14 ,
|
|
|
|
Potential registers zp[2]:16 [ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ] : zp[2]:16 ,
|
|
|
|
Potential registers zp[2]:18 [ memset::num#2 ] : zp[2]:18 ,
|
|
|
|
Potential registers zp[2]:20 [ memset::str#3 ] : zp[2]:20 ,
|
|
|
|
Potential registers zp[1]:22 [ memset::c#4 ] : zp[1]:22 , reg byte x ,
|
|
|
|
Potential registers zp[2]:23 [ memset::dst#2 memset::dst#4 memset::dst#1 ] : zp[2]:23 ,
|
|
|
|
Potential registers zp[2]:25 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 ] : zp[2]:25 ,
|
|
|
|
Potential registers zp[2]:27 [ sgn_u16::w#2 sgn_u16::w#0 ] : zp[2]:27 ,
|
|
|
|
Potential registers zp[2]:29 [ sgn_u16::return#4 ] : zp[2]:29 ,
|
|
|
|
Potential registers zp[1]:31 [ bitmap_plot::y#4 bitmap_plot::y#2 bitmap_plot::y#1 bitmap_plot::y#3 ] : zp[1]:31 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[2]:32 [ bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ] : zp[2]:32 ,
|
|
|
|
Potential registers zp[2]:34 [ bitmap_line::x2#0 ] : zp[2]:34 ,
|
|
|
|
Potential registers zp[1]:36 [ bitmap_init::$7 ] : zp[1]:36 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[1]:37 [ bitmap_init::$4 ] : zp[1]:37 , reg byte a , reg byte x , reg byte y , reg byte alu ,
|
|
|
|
Potential registers zp[1]:38 [ bitmap_init::$5 ] : zp[1]:38 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[1]:39 [ bitmap_init::$6 ] : zp[1]:39 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[2]:40 [ abs_u16::return#0 ] : zp[2]:40 ,
|
|
|
|
Potential registers zp[2]:42 [ bitmap_line::dx#0 ] : zp[2]:42 ,
|
|
|
|
Potential registers zp[2]:44 [ abs_u16::return#1 ] : zp[2]:44 ,
|
|
|
|
Potential registers zp[2]:46 [ bitmap_line::dy#0 ] : zp[2]:46 ,
|
|
|
|
Potential registers zp[2]:48 [ sgn_u16::return#0 ] : zp[2]:48 ,
|
|
|
|
Potential registers zp[2]:50 [ bitmap_line::sx#0 ] : zp[2]:50 ,
|
|
|
|
Potential registers zp[2]:52 [ sgn_u16::return#1 ] : zp[2]:52 ,
|
|
|
|
Potential registers zp[2]:54 [ bitmap_line::sy#0 ] : zp[2]:54 ,
|
|
|
|
Potential registers zp[2]:56 [ memset::end#0 ] : zp[2]:56 ,
|
|
|
|
Potential registers zp[1]:58 [ abs_u16::$0 ] : zp[1]:58 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[1]:59 [ abs_u16::$1 ] : zp[1]:59 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[1]:60 [ sgn_u16::$0 ] : zp[1]:60 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[1]:61 [ sgn_u16::$1 ] : zp[1]:61 , reg byte a , reg byte x , reg byte y ,
|
|
|
|
Potential registers zp[2]:62 [ bitmap_plot::plotter#0 ] : zp[2]:62 ,
|
|
|
|
Potential registers zp[2]:64 [ bitmap_plot::$0 ] : zp[2]:64 ,
|
|
|
|
Potential registers zp[2]:66 [ bitmap_plot::plotter#1 ] : zp[2]:66 ,
|
|
|
|
Potential registers zp[1]:68 [ bitmap_plot::$1 ] : zp[1]:68 , reg byte a , reg byte x , reg byte y ,
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
REGISTER UPLIFT SCOPES
|
2021-02-04 07:53:47 +00:00
|
|
|
Uplift Scope [bitmap_plot] 260,311: zp[1]:31 [ bitmap_plot::y#4 bitmap_plot::y#2 bitmap_plot::y#1 bitmap_plot::y#3 ] 200,002: zp[2]:64 [ bitmap_plot::$0 ] 200,002: zp[1]:68 [ bitmap_plot::$1 ] 150,001.5: zp[2]:66 [ bitmap_plot::plotter#1 ] 75,129.25: zp[2]:32 [ bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ] 50,000.5: zp[2]:62 [ bitmap_plot::plotter#0 ]
|
|
|
|
Uplift Scope [bitmap_line] 69,036.46: zp[2]:12 [ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 ] 55,005.5: zp[2]:14 [ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 ] 52,560.77: zp[2]:10 [ bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ] 52,560.77: zp[2]:16 [ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ] 868.77: zp[2]:46 [ bitmap_line::dy#0 ] 800.18: zp[2]:42 [ bitmap_line::dx#0 ] 773.19: zp[2]:54 [ bitmap_line::sy#0 ] 693.21: zp[2]:50 [ bitmap_line::sx#0 ] 340.47: zp[2]:34 [ bitmap_line::x2#0 ]
|
|
|
|
Uplift Scope [abs_u16] 3,531: zp[2]:25 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 ] 2,002: zp[1]:58 [ abs_u16::$0 ] 2,002: zp[1]:59 [ abs_u16::$1 ] 202: zp[2]:40 [ abs_u16::return#0 ] 202: zp[2]:44 [ abs_u16::return#1 ]
|
|
|
|
Uplift Scope [sgn_u16] 2,002: zp[1]:60 [ sgn_u16::$0 ] 2,002: zp[1]:61 [ sgn_u16::$1 ] 1,304: zp[2]:27 [ sgn_u16::w#2 sgn_u16::w#0 ] 202: zp[2]:48 [ sgn_u16::return#0 ] 202: zp[2]:52 [ sgn_u16::return#1 ] 50.5: zp[2]:29 [ sgn_u16::return#4 ]
|
|
|
|
Uplift Scope [memset] 3,572.33: zp[2]:23 [ memset::dst#2 memset::dst#4 memset::dst#1 ] 183.67: zp[2]:56 [ memset::end#0 ] 125.12: zp[1]:22 [ memset::c#4 ] 101: zp[2]:18 [ memset::num#2 ] 0: zp[2]:20 [ memset::str#3 ]
|
|
|
|
Uplift Scope [bitmap_init] 366.12: zp[2]:6 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] 319.83: zp[1]:3 [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ] 202: zp[1]:4 [ bitmap_init::x#2 bitmap_init::x#1 ] 202: zp[1]:5 [ bitmap_init::y#2 bitmap_init::y#1 ] 202: zp[1]:37 [ bitmap_init::$4 ] 202: zp[1]:38 [ bitmap_init::$5 ] 202: zp[1]:39 [ bitmap_init::$6 ] 50.5: zp[1]:36 [ bitmap_init::$7 ]
|
|
|
|
Uplift Scope [init_screen] 336.67: zp[2]:8 [ init_screen::c#2 init_screen::c#1 ]
|
2020-06-27 19:18:00 +00:00
|
|
|
Uplift Scope [] 33: zp[1]:2 [ next#5 next#0 ]
|
2020-04-26 21:30:04 +00:00
|
|
|
Uplift Scope [MOS6526_CIA]
|
2020-04-28 20:58:16 +00:00
|
|
|
Uplift Scope [MOS6569_VICII]
|
2020-04-27 22:30:35 +00:00
|
|
|
Uplift Scope [MOS6581_SID]
|
2021-02-04 07:53:47 +00:00
|
|
|
Uplift Scope [bitmap_clear]
|
2019-09-18 19:53:32 +00:00
|
|
|
Uplift Scope [main]
|
|
|
|
|
2021-02-17 22:35:01 +00:00
|
|
|
Uplifting [bitmap_plot] best 37111 combination reg byte x [ bitmap_plot::y#4 bitmap_plot::y#2 bitmap_plot::y#1 bitmap_plot::y#3 ] zp[2]:64 [ bitmap_plot::$0 ] reg byte x [ bitmap_plot::$1 ] zp[2]:66 [ bitmap_plot::plotter#1 ] zp[2]:32 [ bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ] zp[2]:62 [ bitmap_plot::plotter#0 ]
|
|
|
|
Uplifting [bitmap_line] best 37111 combination zp[2]:12 [ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 ] zp[2]:14 [ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 ] zp[2]:10 [ bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ] zp[2]:16 [ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ] zp[2]:46 [ bitmap_line::dy#0 ] zp[2]:42 [ bitmap_line::dx#0 ] zp[2]:54 [ bitmap_line::sy#0 ] zp[2]:50 [ bitmap_line::sx#0 ] zp[2]:34 [ bitmap_line::x2#0 ]
|
|
|
|
Uplifting [abs_u16] best 37101 combination zp[2]:25 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 ] reg byte a [ abs_u16::$0 ] reg byte a [ abs_u16::$1 ] zp[2]:40 [ abs_u16::return#0 ] zp[2]:44 [ abs_u16::return#1 ]
|
|
|
|
Uplifting [sgn_u16] best 37091 combination reg byte a [ sgn_u16::$0 ] reg byte a [ sgn_u16::$1 ] zp[2]:27 [ sgn_u16::w#2 sgn_u16::w#0 ] zp[2]:48 [ sgn_u16::return#0 ] zp[2]:52 [ sgn_u16::return#1 ] zp[2]:29 [ sgn_u16::return#4 ]
|
|
|
|
Uplifting [memset] best 37075 combination zp[2]:23 [ memset::dst#2 memset::dst#4 memset::dst#1 ] zp[2]:56 [ memset::end#0 ] reg byte x [ memset::c#4 ] zp[2]:18 [ memset::num#2 ] zp[2]:20 [ memset::str#3 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
Uplifting [bitmap_init] best 36625 combination zp[2]:6 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#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 a [ bitmap_init::$4 ] zp[1]:38 [ bitmap_init::$5 ] zp[1]:39 [ bitmap_init::$6 ] zp[1]:36 [ bitmap_init::$7 ]
|
|
|
|
Limited combination testing to 100 combinations of 15360 possible.
|
|
|
|
Uplifting [init_screen] best 36625 combination zp[2]:8 [ init_screen::c#2 init_screen::c#1 ]
|
|
|
|
Uplifting [] best 36625 combination zp[1]:2 [ next#5 next#0 ]
|
|
|
|
Uplifting [MOS6526_CIA] best 36625 combination
|
|
|
|
Uplifting [MOS6569_VICII] best 36625 combination
|
|
|
|
Uplifting [MOS6581_SID] best 36625 combination
|
|
|
|
Uplifting [bitmap_clear] best 36625 combination
|
|
|
|
Uplifting [main] best 36625 combination
|
|
|
|
Attempting to uplift remaining variables inzp[1]:38 [ bitmap_init::$5 ]
|
|
|
|
Uplifting [bitmap_init] best 36565 combination reg byte a [ bitmap_init::$5 ]
|
|
|
|
Attempting to uplift remaining variables inzp[1]:39 [ bitmap_init::$6 ]
|
|
|
|
Uplifting [bitmap_init] best 36505 combination reg byte a [ bitmap_init::$6 ]
|
|
|
|
Attempting to uplift remaining variables inzp[1]:36 [ bitmap_init::$7 ]
|
|
|
|
Uplifting [bitmap_init] best 36505 combination zp[1]:36 [ bitmap_init::$7 ]
|
2020-06-27 19:18:00 +00:00
|
|
|
Attempting to uplift remaining variables inzp[1]:2 [ next#5 next#0 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
Uplifting [] best 36505 combination zp[1]:2 [ next#5 next#0 ]
|
|
|
|
Coalescing zero page register [ zp[2]:12 [ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 ] ] with [ zp[2]:32 [ bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ] ] - score: 3
|
|
|
|
Coalescing zero page register [ zp[2]:18 [ memset::num#2 ] ] with [ zp[2]:56 [ memset::end#0 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:20 [ memset::str#3 ] ] with [ zp[2]:23 [ memset::dst#2 memset::dst#4 memset::dst#1 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:25 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 ] ] with [ zp[2]:40 [ abs_u16::return#0 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:25 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 abs_u16::return#0 ] ] with [ zp[2]:44 [ abs_u16::return#1 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:29 [ sgn_u16::return#4 ] ] with [ zp[2]:48 [ sgn_u16::return#0 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:29 [ sgn_u16::return#4 sgn_u16::return#0 ] ] with [ zp[2]:52 [ sgn_u16::return#1 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:62 [ bitmap_plot::plotter#0 ] ] with [ zp[2]:66 [ bitmap_plot::plotter#1 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:25 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 abs_u16::return#0 abs_u16::return#1 ] ] with [ zp[2]:46 [ bitmap_line::dy#0 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:29 [ sgn_u16::return#4 sgn_u16::return#0 sgn_u16::return#1 ] ] with [ zp[2]:54 [ bitmap_line::sy#0 ] ] - score: 1
|
|
|
|
Coalescing zero page register [ zp[2]:8 [ init_screen::c#2 init_screen::c#1 ] ] with [ zp[2]:6 [ bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] ]
|
|
|
|
Coalescing zero page register [ zp[2]:18 [ memset::num#2 memset::end#0 ] ] with [ zp[2]:10 [ bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ] ]
|
|
|
|
Coalescing zero page register [ zp[2]:20 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 ] ] with [ zp[2]:12 [ bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ] ]
|
|
|
|
Coalescing zero page register [ zp[1]:36 [ bitmap_init::$7 ] ] with [ zp[1]:2 [ next#5 next#0 ] ]
|
|
|
|
Coalescing zero page register [ zp[2]:62 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 ] ] with [ zp[2]:27 [ sgn_u16::w#2 sgn_u16::w#0 ] ]
|
|
|
|
Coalescing zero page register [ zp[2]:14 [ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 ] ] with [ zp[2]:8 [ init_screen::c#2 init_screen::c#1 bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ] ]
|
|
|
|
Allocated (was zp[2]:14) zp[2]:2 [ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 init_screen::c#2 init_screen::c#1 bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
|
|
|
|
Allocated (was zp[2]:16) zp[2]:4 [ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ]
|
|
|
|
Allocated (was zp[2]:18) zp[2]:6 [ memset::num#2 memset::end#0 bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ]
|
|
|
|
Allocated (was zp[2]:20) zp[2]:8 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ]
|
|
|
|
Allocated (was zp[2]:25) zp[2]:10 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 abs_u16::return#0 abs_u16::return#1 bitmap_line::dy#0 ]
|
|
|
|
Allocated (was zp[2]:29) zp[2]:12 [ sgn_u16::return#4 sgn_u16::return#0 sgn_u16::return#1 bitmap_line::sy#0 ]
|
|
|
|
Allocated (was zp[2]:34) zp[2]:14 [ bitmap_line::x2#0 ]
|
|
|
|
Allocated (was zp[1]:36) zp[1]:16 [ bitmap_init::$7 next#5 next#0 ]
|
|
|
|
Allocated (was zp[2]:42) zp[2]:17 [ bitmap_line::dx#0 ]
|
|
|
|
Allocated (was zp[2]:50) zp[2]:19 [ bitmap_line::sx#0 ]
|
|
|
|
Allocated (was zp[2]:62) zp[2]:21 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 sgn_u16::w#2 sgn_u16::w#0 ]
|
|
|
|
Allocated (was zp[2]:64) zp[2]:23 [ bitmap_plot::$0 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
ASSEMBLER BEFORE OPTIMIZATION
|
|
|
|
// File Comments
|
|
|
|
// Illustrates problem with bitmap-draw.kc line()
|
|
|
|
// Reported by Janne Johansson
|
|
|
|
// Upstart
|
2020-12-21 07:57:41 +00:00
|
|
|
// Commodore 64 PRG executable file
|
|
|
|
.file [name="bitmap-line-anim-1.prg", type="prg", segments="Program"]
|
|
|
|
.segmentdef Program [segments="Basic, Code, Data"]
|
|
|
|
.segmentdef Basic [start=$0801]
|
|
|
|
.segmentdef Code [start=$80d]
|
|
|
|
.segmentdef Data [startAfter="Code"]
|
|
|
|
.segment Basic
|
2020-05-11 00:36:37 +00:00
|
|
|
:BasicUpstart(main)
|
2019-09-18 19:53:32 +00:00
|
|
|
// Global Constants & labels
|
2020-12-29 18:37:32 +00:00
|
|
|
.const VICII_BMM = $20
|
|
|
|
.const VICII_DEN = $10
|
|
|
|
.const VICII_RSEL = 8
|
2021-02-04 07:53:47 +00:00
|
|
|
.const WHITE = 1
|
2020-05-02 09:38:51 +00:00
|
|
|
.label BORDER_COLOR = $d020
|
|
|
|
.label BG_COLOR = $d021
|
2020-04-30 20:15:59 +00:00
|
|
|
.label D011 = $d011
|
2020-12-29 18:37:32 +00:00
|
|
|
.label VICII_MEMORY = $d018
|
2019-09-18 19:53:32 +00:00
|
|
|
.label SCREEN = $400
|
|
|
|
.label BITMAP = $2000
|
2021-02-04 07:53:47 +00:00
|
|
|
.label next = $10
|
2020-12-21 07:57:41 +00:00
|
|
|
.segment Code
|
2019-09-18 19:53:32 +00:00
|
|
|
// main
|
|
|
|
main: {
|
2020-10-05 20:58:02 +00:00
|
|
|
// [0] *BORDER_COLOR = 0 -- _deref_pbuc1=vbuc2
|
2019-09-18 19:53:32 +00:00
|
|
|
lda #0
|
2020-05-02 09:38:51 +00:00
|
|
|
sta BORDER_COLOR
|
2020-10-05 20:58:02 +00:00
|
|
|
// [1] *BG_COLOR = 0 -- _deref_pbuc1=vbuc2
|
2019-09-18 19:53:32 +00:00
|
|
|
lda #0
|
2020-05-02 09:38:51 +00:00
|
|
|
sta BG_COLOR
|
2020-12-29 18:37:32 +00:00
|
|
|
// [2] *D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3 -- _deref_pbuc1=vbuc2
|
|
|
|
lda #VICII_BMM|VICII_DEN|VICII_RSEL|3
|
2019-09-18 19:53:32 +00:00
|
|
|
sta D011
|
2020-12-29 18:37:32 +00:00
|
|
|
// [3] *VICII_MEMORY = (byte)(word)SCREEN&$3fff/$40|(word)BITMAP&$3fff/$400 -- _deref_pbuc1=vbuc2
|
2019-09-18 19:53:32 +00:00
|
|
|
lda #(SCREEN&$3fff)/$40|(BITMAP&$3fff)/$400
|
2020-12-29 18:37:32 +00:00
|
|
|
sta VICII_MEMORY
|
2020-06-27 19:18:00 +00:00
|
|
|
// [4] call bitmap_init
|
2020-06-27 21:26:57 +00:00
|
|
|
// [13] phi from main to bitmap_init [phi:main->bitmap_init]
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_init_from_main:
|
|
|
|
jsr bitmap_init
|
2020-06-27 19:18:00 +00:00
|
|
|
// [5] phi from main to main::@2 [phi:main->main::@2]
|
2019-09-29 21:13:37 +00:00
|
|
|
__b2_from_main:
|
|
|
|
jmp __b2
|
2019-09-18 19:53:32 +00:00
|
|
|
// main::@2
|
2019-09-29 21:13:37 +00:00
|
|
|
__b2:
|
2020-06-27 19:18:00 +00:00
|
|
|
// [6] call bitmap_clear
|
2021-02-04 07:53:47 +00:00
|
|
|
// [35] phi from main::@2 to bitmap_clear [phi:main::@2->bitmap_clear]
|
|
|
|
bitmap_clear_from___b2:
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_clear
|
2020-06-27 19:18:00 +00:00
|
|
|
// [7] phi from main::@2 to main::@3 [phi:main::@2->main::@3]
|
2019-09-29 21:13:37 +00:00
|
|
|
__b3_from___b2:
|
|
|
|
jmp __b3
|
2019-09-18 19:53:32 +00:00
|
|
|
// main::@3
|
2019-09-29 21:13:37 +00:00
|
|
|
__b3:
|
2020-06-27 19:18:00 +00:00
|
|
|
// [8] call init_screen
|
2021-02-04 07:53:47 +00:00
|
|
|
// [40] phi from main::@3 to init_screen [phi:main::@3->init_screen]
|
2019-09-29 21:13:37 +00:00
|
|
|
init_screen_from___b3:
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr init_screen
|
2020-06-27 19:18:00 +00:00
|
|
|
// [9] phi from main::@3 to main::@1 [phi:main::@3->main::@1]
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1_from___b3:
|
2020-10-05 20:58:02 +00:00
|
|
|
// [9] phi next#5 = 0 [phi:main::@3->main::@1#0] -- vbuz1=vbuc1
|
2019-09-18 19:53:32 +00:00
|
|
|
lda #0
|
|
|
|
sta.z next
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b1
|
2019-09-18 19:53:32 +00:00
|
|
|
// main::@1
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [10] bitmap_line::x2#0 = next#5 -- vwuz1=vbuz2
|
2020-03-22 21:26:39 +00:00
|
|
|
lda.z next
|
2021-02-04 07:53:47 +00:00
|
|
|
sta.z bitmap_line.x2
|
|
|
|
lda #0
|
|
|
|
sta.z bitmap_line.x2+1
|
2020-06-27 19:18:00 +00:00
|
|
|
// [11] call bitmap_line
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_line
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b4
|
2019-09-18 19:53:32 +00:00
|
|
|
// main::@4
|
2019-09-29 21:13:37 +00:00
|
|
|
__b4:
|
2020-10-05 20:58:02 +00:00
|
|
|
// [12] next#0 = ++ next#5 -- vbuz1=_inc_vbuz1
|
2019-09-18 19:53:32 +00:00
|
|
|
inc.z next
|
2020-06-27 19:18:00 +00:00
|
|
|
// [9] phi from main::@4 to main::@1 [phi:main::@4->main::@1]
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1_from___b4:
|
2020-10-05 20:58:02 +00:00
|
|
|
// [9] phi next#5 = next#0 [phi:main::@4->main::@1#0] -- register_copy
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b1
|
2020-06-27 21:26:57 +00:00
|
|
|
}
|
|
|
|
// bitmap_init
|
2021-02-04 07:53:47 +00:00
|
|
|
// Initialize bitmap plotting tables
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_init: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.label __7 = $10
|
|
|
|
.label yoffs = 2
|
2020-06-27 21:26:57 +00:00
|
|
|
// [14] phi from bitmap_init to bitmap_init::@1 [phi:bitmap_init->bitmap_init::@1]
|
|
|
|
__b1_from_bitmap_init:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [14] phi bitmap_init::x#2 = 0 [phi:bitmap_init->bitmap_init::@1#0] -- vbuxx=vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
ldx #0
|
2021-02-04 07:53:47 +00:00
|
|
|
// [14] phi bitmap_init::bits#3 = $80 [phi:bitmap_init->bitmap_init::@1#1] -- vbuaa=vbuc1
|
|
|
|
lda #$80
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b1
|
|
|
|
// [14] phi from bitmap_init::@2 to bitmap_init::@1 [phi:bitmap_init::@2->bitmap_init::@1]
|
|
|
|
__b1_from___b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [14] phi bitmap_init::x#2 = bitmap_init::x#1 [phi:bitmap_init::@2->bitmap_init::@1#0] -- register_copy
|
|
|
|
// [14] phi bitmap_init::bits#3 = bitmap_init::bits#4 [phi:bitmap_init::@2->bitmap_init::@1#1] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b1
|
|
|
|
// bitmap_init::@1
|
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [15] bitmap_plot_bit[bitmap_init::x#2] = bitmap_init::bits#3 -- pbuc1_derefidx_vbuxx=vbuaa
|
2020-06-27 21:26:57 +00:00
|
|
|
sta bitmap_plot_bit,x
|
2021-02-04 07:53:47 +00:00
|
|
|
// [16] bitmap_init::bits#1 = bitmap_init::bits#3 >> 1 -- vbuaa=vbuaa_ror_1
|
2020-06-27 21:26:57 +00:00
|
|
|
lsr
|
2021-02-04 07:53:47 +00:00
|
|
|
// [17] if(bitmap_init::bits#1!=0) goto bitmap_init::@6 -- vbuaa_neq_0_then_la1
|
|
|
|
cmp #0
|
2020-06-27 21:26:57 +00:00
|
|
|
bne __b6_from___b1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [19] phi from bitmap_init::@1 to bitmap_init::@2 [phi:bitmap_init::@1->bitmap_init::@2]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b2_from___b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [19] phi bitmap_init::bits#4 = $80 [phi:bitmap_init::@1->bitmap_init::@2#0] -- vbuaa=vbuc1
|
|
|
|
lda #$80
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b2
|
2021-02-04 07:53:47 +00:00
|
|
|
// [18] phi from bitmap_init::@1 to bitmap_init::@6 [phi:bitmap_init::@1->bitmap_init::@6]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b6_from___b1:
|
|
|
|
jmp __b6
|
|
|
|
// bitmap_init::@6
|
|
|
|
__b6:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [19] phi from bitmap_init::@6 to bitmap_init::@2 [phi:bitmap_init::@6->bitmap_init::@2]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b2_from___b6:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [19] phi bitmap_init::bits#4 = bitmap_init::bits#1 [phi:bitmap_init::@6->bitmap_init::@2#0] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b2
|
|
|
|
// bitmap_init::@2
|
|
|
|
__b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [20] bitmap_init::x#1 = ++ bitmap_init::x#2 -- vbuxx=_inc_vbuxx
|
2020-06-27 21:26:57 +00:00
|
|
|
inx
|
2021-02-04 07:53:47 +00:00
|
|
|
// [21] if(bitmap_init::x#1!=0) goto bitmap_init::@1 -- vbuxx_neq_0_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
cpx #0
|
|
|
|
bne __b1_from___b2
|
2021-02-04 07:53:47 +00:00
|
|
|
// [22] phi from bitmap_init::@2 to bitmap_init::@3 [phi:bitmap_init::@2->bitmap_init::@3]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b3_from___b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [22] phi bitmap_init::yoffs#2 = BITMAP [phi:bitmap_init::@2->bitmap_init::@3#0] -- pbuz1=pbuc1
|
|
|
|
lda #<BITMAP
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #>BITMAP
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z yoffs+1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [22] phi bitmap_init::y#2 = 0 [phi:bitmap_init::@2->bitmap_init::@3#1] -- vbuxx=vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
ldx #0
|
|
|
|
jmp __b3
|
2021-02-04 07:53:47 +00:00
|
|
|
// [22] phi from bitmap_init::@4 to bitmap_init::@3 [phi:bitmap_init::@4->bitmap_init::@3]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b3_from___b4:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [22] phi bitmap_init::yoffs#2 = bitmap_init::yoffs#4 [phi:bitmap_init::@4->bitmap_init::@3#0] -- register_copy
|
|
|
|
// [22] phi bitmap_init::y#2 = bitmap_init::y#1 [phi:bitmap_init::@4->bitmap_init::@3#1] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b3
|
|
|
|
// bitmap_init::@3
|
|
|
|
__b3:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [23] bitmap_init::$7 = bitmap_init::y#2 & 7 -- vbuz1=vbuxx_band_vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #7
|
2021-02-04 07:53:47 +00:00
|
|
|
sax.z __7
|
|
|
|
// [24] bitmap_init::$4 = < bitmap_init::yoffs#2 -- vbuaa=_lo_pbuz1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
// [25] bitmap_init::$5 = bitmap_init::$7 | bitmap_init::$4 -- vbuaa=vbuz1_bor_vbuaa
|
|
|
|
ora.z __7
|
|
|
|
// [26] bitmap_plot_ylo[bitmap_init::y#2] = bitmap_init::$5 -- pbuc1_derefidx_vbuxx=vbuaa
|
2020-06-27 21:26:57 +00:00
|
|
|
sta bitmap_plot_ylo,x
|
2021-02-04 07:53:47 +00:00
|
|
|
// [27] bitmap_init::$6 = > bitmap_init::yoffs#2 -- vbuaa=_hi_pbuz1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z yoffs+1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [28] bitmap_plot_yhi[bitmap_init::y#2] = bitmap_init::$6 -- pbuc1_derefidx_vbuxx=vbuaa
|
2020-06-27 21:26:57 +00:00
|
|
|
sta bitmap_plot_yhi,x
|
2021-02-04 07:53:47 +00:00
|
|
|
// [29] if(bitmap_init::$7!=7) goto bitmap_init::@4 -- vbuz1_neq_vbuc1_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #7
|
2021-02-04 07:53:47 +00:00
|
|
|
cmp.z __7
|
2020-06-27 21:26:57 +00:00
|
|
|
bne __b4_from___b3
|
|
|
|
jmp __b5
|
|
|
|
// bitmap_init::@5
|
|
|
|
__b5:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [30] bitmap_init::yoffs#1 = bitmap_init::yoffs#2 + (word)$28*8 -- pbuz1=pbuz1_plus_vwuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
clc
|
|
|
|
lda.z yoffs
|
|
|
|
adc #<$28*8
|
|
|
|
sta.z yoffs
|
|
|
|
lda.z yoffs+1
|
|
|
|
adc #>$28*8
|
|
|
|
sta.z yoffs+1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [31] phi from bitmap_init::@3 bitmap_init::@5 to bitmap_init::@4 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b4_from___b3:
|
|
|
|
__b4_from___b5:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [31] phi bitmap_init::yoffs#4 = bitmap_init::yoffs#2 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4#0] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b4
|
|
|
|
// bitmap_init::@4
|
|
|
|
__b4:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [32] bitmap_init::y#1 = ++ bitmap_init::y#2 -- vbuxx=_inc_vbuxx
|
2020-06-27 21:26:57 +00:00
|
|
|
inx
|
2021-02-04 07:53:47 +00:00
|
|
|
// [33] if(bitmap_init::y#1!=0) goto bitmap_init::@3 -- vbuxx_neq_0_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
cpx #0
|
|
|
|
bne __b3_from___b4
|
|
|
|
jmp __breturn
|
|
|
|
// bitmap_init::@return
|
|
|
|
__breturn:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [34] return
|
2020-06-27 21:26:57 +00:00
|
|
|
rts
|
|
|
|
}
|
|
|
|
// bitmap_clear
|
|
|
|
// Clear all graphics on the bitmap
|
2021-02-04 07:53:47 +00:00
|
|
|
// bgcol - the background color to fill the screen with
|
|
|
|
// fgcol - the foreground color to fill the screen with
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_clear: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.const col = WHITE*$10
|
|
|
|
// [36] call memset
|
|
|
|
// [94] phi from bitmap_clear to memset [phi:bitmap_clear->memset]
|
|
|
|
memset_from_bitmap_clear:
|
|
|
|
// [94] phi memset::c#4 = bitmap_clear::col#0 [phi:bitmap_clear->memset#0] -- vbuxx=vbuc1
|
|
|
|
ldx #col
|
|
|
|
// [94] phi memset::str#3 = (void*)SCREEN [phi:bitmap_clear->memset#1] -- pvoz1=pvoc1
|
|
|
|
lda #<SCREEN
|
|
|
|
sta.z memset.str
|
|
|
|
lda #>SCREEN
|
|
|
|
sta.z memset.str+1
|
|
|
|
// [94] phi memset::num#2 = $3e8 [phi:bitmap_clear->memset#2] -- vwuz1=vwuc1
|
|
|
|
lda #<$3e8
|
|
|
|
sta.z memset.num
|
|
|
|
lda #>$3e8
|
|
|
|
sta.z memset.num+1
|
|
|
|
jsr memset
|
|
|
|
// [37] phi from bitmap_clear to bitmap_clear::@1 [phi:bitmap_clear->bitmap_clear::@1]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b1_from_bitmap_clear:
|
|
|
|
jmp __b1
|
|
|
|
// bitmap_clear::@1
|
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [38] call memset
|
|
|
|
// [94] phi from bitmap_clear::@1 to memset [phi:bitmap_clear::@1->memset]
|
|
|
|
memset_from___b1:
|
|
|
|
// [94] phi memset::c#4 = 0 [phi:bitmap_clear::@1->memset#0] -- vbuxx=vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
ldx #0
|
2021-02-04 07:53:47 +00:00
|
|
|
// [94] phi memset::str#3 = (void*)BITMAP [phi:bitmap_clear::@1->memset#1] -- pvoz1=pvoc1
|
|
|
|
lda #<BITMAP
|
|
|
|
sta.z memset.str
|
|
|
|
lda #>BITMAP
|
|
|
|
sta.z memset.str+1
|
|
|
|
// [94] phi memset::num#2 = $1f40 [phi:bitmap_clear::@1->memset#2] -- vwuz1=vwuc1
|
|
|
|
lda #<$1f40
|
|
|
|
sta.z memset.num
|
|
|
|
lda #>$1f40
|
|
|
|
sta.z memset.num+1
|
|
|
|
jsr memset
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __breturn
|
|
|
|
// bitmap_clear::@return
|
|
|
|
__breturn:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [39] return
|
2020-06-27 21:26:57 +00:00
|
|
|
rts
|
|
|
|
}
|
|
|
|
// init_screen
|
|
|
|
init_screen: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.label c = 2
|
|
|
|
// [41] phi from init_screen to init_screen::@1 [phi:init_screen->init_screen::@1]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b1_from_init_screen:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [41] phi init_screen::c#2 = SCREEN [phi:init_screen->init_screen::@1#0] -- pbuz1=pbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #<SCREEN
|
|
|
|
sta.z c
|
|
|
|
lda #>SCREEN
|
|
|
|
sta.z c+1
|
|
|
|
jmp __b1
|
|
|
|
// init_screen::@1
|
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [42] if(init_screen::c#2!=SCREEN+$400) goto init_screen::@2 -- pbuz1_neq_pbuc1_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z c+1
|
|
|
|
cmp #>SCREEN+$400
|
|
|
|
bne __b2
|
|
|
|
lda.z c
|
|
|
|
cmp #<SCREEN+$400
|
|
|
|
bne __b2
|
|
|
|
jmp __breturn
|
|
|
|
// init_screen::@return
|
|
|
|
__breturn:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [43] return
|
2020-06-27 21:26:57 +00:00
|
|
|
rts
|
|
|
|
// init_screen::@2
|
|
|
|
__b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [44] *init_screen::c#2 = $14 -- _deref_pbuz1=vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #$14
|
|
|
|
ldy #0
|
|
|
|
sta (c),y
|
2021-02-04 07:53:47 +00:00
|
|
|
// [45] init_screen::c#1 = ++ init_screen::c#2 -- pbuz1=_inc_pbuz1
|
2020-06-27 21:26:57 +00:00
|
|
|
inc.z c
|
|
|
|
bne !+
|
|
|
|
inc.z c+1
|
|
|
|
!:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [41] phi from init_screen::@2 to init_screen::@1 [phi:init_screen::@2->init_screen::@1]
|
2020-06-27 21:26:57 +00:00
|
|
|
__b1_from___b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [41] phi init_screen::c#2 = init_screen::c#1 [phi:init_screen::@2->init_screen::@1#0] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b1
|
2019-09-18 19:53:32 +00:00
|
|
|
}
|
|
|
|
// bitmap_line
|
2021-02-04 07:53:47 +00:00
|
|
|
// Draw a line on the bitmap using bresenhams algorithm
|
|
|
|
// bitmap_line(word zp($e) x2)
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_line: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.const x1 = 0
|
|
|
|
.const y1 = 0
|
|
|
|
.const y2 = $64
|
|
|
|
.label dx = $11
|
|
|
|
.label dy = $a
|
|
|
|
.label sx = $13
|
|
|
|
.label sy = $c
|
|
|
|
.label e1 = 4
|
|
|
|
.label e = 6
|
|
|
|
.label y = 2
|
|
|
|
.label x = 8
|
|
|
|
.label x2 = $e
|
|
|
|
// [46] abs_u16::w#0 = bitmap_line::x2#0 -- vwuz1=vwuz2
|
|
|
|
lda.z x2
|
|
|
|
sta.z abs_u16.w
|
|
|
|
lda.z x2+1
|
|
|
|
sta.z abs_u16.w+1
|
|
|
|
// [47] call abs_u16
|
|
|
|
// [103] phi from bitmap_line to abs_u16 [phi:bitmap_line->abs_u16]
|
|
|
|
abs_u16_from_bitmap_line:
|
|
|
|
// [103] phi abs_u16::w#2 = abs_u16::w#0 [phi:bitmap_line->abs_u16#0] -- register_copy
|
|
|
|
jsr abs_u16
|
|
|
|
// [48] abs_u16::return#0 = abs_u16::return#4
|
|
|
|
jmp __b12
|
|
|
|
// bitmap_line::@12
|
|
|
|
__b12:
|
|
|
|
// [49] bitmap_line::dx#0 = abs_u16::return#0 -- vwuz1=vwuz2
|
|
|
|
lda.z abs_u16.return
|
|
|
|
sta.z dx
|
|
|
|
lda.z abs_u16.return+1
|
|
|
|
sta.z dx+1
|
|
|
|
// [50] call abs_u16
|
|
|
|
// [103] phi from bitmap_line::@12 to abs_u16 [phi:bitmap_line::@12->abs_u16]
|
|
|
|
abs_u16_from___b12:
|
|
|
|
// [103] phi abs_u16::w#2 = bitmap_line::y2#0 [phi:bitmap_line::@12->abs_u16#0] -- vwuz1=vwuc1
|
|
|
|
lda #<y2
|
|
|
|
sta.z abs_u16.w
|
|
|
|
lda #>y2
|
|
|
|
sta.z abs_u16.w+1
|
|
|
|
jsr abs_u16
|
|
|
|
// [51] abs_u16::return#1 = abs_u16::return#4
|
|
|
|
jmp __b13
|
|
|
|
// bitmap_line::@13
|
|
|
|
__b13:
|
|
|
|
// [52] bitmap_line::dy#0 = abs_u16::return#1
|
|
|
|
// [53] if(bitmap_line::dx#0!=0) goto bitmap_line::@1 -- vwuz1_neq_0_then_la1
|
|
|
|
lda.z dx
|
|
|
|
ora.z dx+1
|
|
|
|
bne __b1
|
|
|
|
jmp __b18
|
|
|
|
// bitmap_line::@18
|
|
|
|
__b18:
|
|
|
|
// [54] if(bitmap_line::dy#0==0) goto bitmap_line::@4 -- vwuz1_eq_0_then_la1
|
|
|
|
lda.z dy
|
|
|
|
ora.z dy+1
|
|
|
|
beq __b4_from___b18
|
|
|
|
jmp __b1
|
|
|
|
// bitmap_line::@1
|
|
|
|
__b1:
|
|
|
|
// [55] sgn_u16::w#0 = bitmap_line::x2#0 -- vwuz1=vwuz2
|
|
|
|
lda.z x2
|
|
|
|
sta.z sgn_u16.w
|
|
|
|
lda.z x2+1
|
|
|
|
sta.z sgn_u16.w+1
|
|
|
|
// [56] call sgn_u16
|
|
|
|
// [110] phi from bitmap_line::@1 to sgn_u16 [phi:bitmap_line::@1->sgn_u16]
|
|
|
|
sgn_u16_from___b1:
|
|
|
|
// [110] phi sgn_u16::w#2 = sgn_u16::w#0 [phi:bitmap_line::@1->sgn_u16#0] -- register_copy
|
|
|
|
jsr sgn_u16
|
|
|
|
// [57] sgn_u16::return#0 = sgn_u16::return#4
|
|
|
|
jmp __b14
|
|
|
|
// bitmap_line::@14
|
|
|
|
__b14:
|
|
|
|
// [58] bitmap_line::sx#0 = sgn_u16::return#0 -- vwuz1=vwuz2
|
|
|
|
lda.z sgn_u16.return
|
|
|
|
sta.z sx
|
|
|
|
lda.z sgn_u16.return+1
|
|
|
|
sta.z sx+1
|
|
|
|
// [59] call sgn_u16
|
|
|
|
// [110] phi from bitmap_line::@14 to sgn_u16 [phi:bitmap_line::@14->sgn_u16]
|
|
|
|
sgn_u16_from___b14:
|
|
|
|
// [110] phi sgn_u16::w#2 = bitmap_line::y2#0 [phi:bitmap_line::@14->sgn_u16#0] -- vwuz1=vwuc1
|
|
|
|
lda #<y2
|
|
|
|
sta.z sgn_u16.w
|
|
|
|
lda #>y2
|
|
|
|
sta.z sgn_u16.w+1
|
|
|
|
jsr sgn_u16
|
|
|
|
// [60] sgn_u16::return#1 = sgn_u16::return#4
|
|
|
|
jmp __b15
|
|
|
|
// bitmap_line::@15
|
|
|
|
__b15:
|
|
|
|
// [61] bitmap_line::sy#0 = sgn_u16::return#1
|
|
|
|
// [62] if(bitmap_line::dx#0>bitmap_line::dy#0) goto bitmap_line::@2 -- vwuz1_gt_vwuz2_then_la1
|
|
|
|
lda.z dy+1
|
|
|
|
cmp.z dx+1
|
|
|
|
bcc __b2
|
|
|
|
bne !+
|
|
|
|
lda.z dy
|
|
|
|
cmp.z dx
|
|
|
|
bcc __b2
|
2019-09-18 19:53:32 +00:00
|
|
|
!:
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b5
|
2019-09-18 19:53:32 +00:00
|
|
|
// bitmap_line::@5
|
2019-09-29 21:13:37 +00:00
|
|
|
__b5:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [63] bitmap_line::e#0 = bitmap_line::dx#0 >> 1 -- vwuz1=vwuz2_ror_1
|
|
|
|
lda.z dx+1
|
|
|
|
lsr
|
|
|
|
sta.z e+1
|
|
|
|
lda.z dx
|
|
|
|
ror
|
|
|
|
sta.z e
|
|
|
|
// [64] phi from bitmap_line::@5 to bitmap_line::@6 [phi:bitmap_line::@5->bitmap_line::@6]
|
|
|
|
__b6_from___b5:
|
|
|
|
// [64] phi bitmap_line::e#3 = bitmap_line::e#0 [phi:bitmap_line::@5->bitmap_line::@6#0] -- register_copy
|
|
|
|
// [64] phi bitmap_line::y#4 = bitmap_line::y1#0 [phi:bitmap_line::@5->bitmap_line::@6#1] -- vwuz1=vwuc1
|
|
|
|
lda #<y1
|
|
|
|
sta.z y
|
|
|
|
lda #>y1
|
|
|
|
sta.z y+1
|
|
|
|
// [64] phi bitmap_line::x#13 = bitmap_line::x1#0 [phi:bitmap_line::@5->bitmap_line::@6#2] -- vwuz1=vwuc1
|
|
|
|
lda #<x1
|
|
|
|
sta.z x
|
|
|
|
lda #>x1
|
|
|
|
sta.z x+1
|
|
|
|
jmp __b6
|
|
|
|
// [64] phi from bitmap_line::@7 to bitmap_line::@6 [phi:bitmap_line::@7->bitmap_line::@6]
|
|
|
|
__b6_from___b7:
|
|
|
|
// [64] phi bitmap_line::e#3 = bitmap_line::e#6 [phi:bitmap_line::@7->bitmap_line::@6#0] -- register_copy
|
|
|
|
// [64] phi bitmap_line::y#4 = bitmap_line::y#1 [phi:bitmap_line::@7->bitmap_line::@6#1] -- register_copy
|
|
|
|
// [64] phi bitmap_line::x#13 = bitmap_line::x#12 [phi:bitmap_line::@7->bitmap_line::@6#2] -- register_copy
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b6
|
2019-09-18 19:53:32 +00:00
|
|
|
// bitmap_line::@6
|
2019-09-29 21:13:37 +00:00
|
|
|
__b6:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [65] bitmap_plot::x#1 = bitmap_line::x#13
|
|
|
|
// [66] bitmap_plot::y#1 = (byte)bitmap_line::y#4 -- vbuxx=_byte_vwuz1
|
|
|
|
lda.z y
|
|
|
|
tax
|
|
|
|
// [67] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@6 to bitmap_plot [phi:bitmap_line::@6->bitmap_plot]
|
|
|
|
bitmap_plot_from___b6:
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_plot::x#1 [phi:bitmap_line::@6->bitmap_plot#0] -- register_copy
|
|
|
|
// [117] phi bitmap_plot::y#4 = bitmap_plot::y#1 [phi:bitmap_line::@6->bitmap_plot#1] -- register_copy
|
|
|
|
jsr bitmap_plot
|
|
|
|
jmp __b16
|
|
|
|
// bitmap_line::@16
|
|
|
|
__b16:
|
|
|
|
// [68] bitmap_line::y#1 = bitmap_line::y#4 + bitmap_line::sy#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z y
|
|
|
|
clc
|
|
|
|
adc.z sy
|
|
|
|
sta.z y
|
|
|
|
lda.z y+1
|
|
|
|
adc.z sy+1
|
|
|
|
sta.z y+1
|
|
|
|
// [69] bitmap_line::e#1 = bitmap_line::e#3 + bitmap_line::dx#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z e
|
|
|
|
clc
|
|
|
|
adc.z dx
|
|
|
|
sta.z e
|
|
|
|
lda.z e+1
|
|
|
|
adc.z dx+1
|
|
|
|
sta.z e+1
|
|
|
|
// [70] if(bitmap_line::dy#0>=bitmap_line::e#1) goto bitmap_line::@7 -- vwuz1_ge_vwuz2_then_la1
|
|
|
|
lda.z e+1
|
|
|
|
cmp.z dy+1
|
|
|
|
bne !+
|
|
|
|
lda.z e
|
|
|
|
cmp.z dy
|
|
|
|
beq __b7_from___b16
|
2019-09-18 19:53:32 +00:00
|
|
|
!:
|
2021-02-04 07:53:47 +00:00
|
|
|
bcc __b7_from___b16
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b8
|
2019-09-18 19:53:32 +00:00
|
|
|
// bitmap_line::@8
|
2019-09-29 21:13:37 +00:00
|
|
|
__b8:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [71] bitmap_line::x#1 = bitmap_line::x#13 + bitmap_line::sx#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z x
|
|
|
|
clc
|
|
|
|
adc.z sx
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z x
|
2021-02-04 07:53:47 +00:00
|
|
|
lda.z x+1
|
|
|
|
adc.z sx+1
|
|
|
|
sta.z x+1
|
|
|
|
// [72] bitmap_line::e#2 = bitmap_line::e#1 - bitmap_line::dy#0 -- vwuz1=vwuz1_minus_vwuz2
|
2019-09-18 19:53:32 +00:00
|
|
|
lda.z e
|
2021-02-04 07:53:47 +00:00
|
|
|
sec
|
|
|
|
sbc.z dy
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z e
|
2021-02-04 07:53:47 +00:00
|
|
|
lda.z e+1
|
|
|
|
sbc.z dy+1
|
|
|
|
sta.z e+1
|
|
|
|
// [73] phi from bitmap_line::@16 bitmap_line::@8 to bitmap_line::@7 [phi:bitmap_line::@16/bitmap_line::@8->bitmap_line::@7]
|
|
|
|
__b7_from___b16:
|
|
|
|
__b7_from___b8:
|
|
|
|
// [73] phi bitmap_line::e#6 = bitmap_line::e#1 [phi:bitmap_line::@16/bitmap_line::@8->bitmap_line::@7#0] -- register_copy
|
|
|
|
// [73] phi bitmap_line::x#12 = bitmap_line::x#13 [phi:bitmap_line::@16/bitmap_line::@8->bitmap_line::@7#1] -- register_copy
|
|
|
|
jmp __b7
|
|
|
|
// bitmap_line::@7
|
|
|
|
__b7:
|
|
|
|
// [74] if(bitmap_line::y#1!=bitmap_line::y2#0) goto bitmap_line::@6 -- vwuz1_neq_vwuc1_then_la1
|
|
|
|
lda.z y+1
|
|
|
|
cmp #>y2
|
|
|
|
bne __b6_from___b7
|
|
|
|
lda.z y
|
|
|
|
cmp #<y2
|
|
|
|
bne __b6_from___b7
|
|
|
|
// [75] phi from bitmap_line::@10 bitmap_line::@7 to bitmap_line::@3 [phi:bitmap_line::@10/bitmap_line::@7->bitmap_line::@3]
|
|
|
|
__b3_from___b10:
|
|
|
|
__b3_from___b7:
|
|
|
|
// [75] phi bitmap_line::y#7 = bitmap_line::y#13 [phi:bitmap_line::@10/bitmap_line::@7->bitmap_line::@3#0] -- register_copy
|
|
|
|
// [75] phi bitmap_line::x#6 = bitmap_line::x#15 [phi:bitmap_line::@10/bitmap_line::@7->bitmap_line::@3#1] -- register_copy
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b3
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@3
|
2019-09-29 21:13:37 +00:00
|
|
|
__b3:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [76] bitmap_plot::x#2 = bitmap_line::x#6
|
|
|
|
// [77] bitmap_plot::y#2 = (byte)bitmap_line::y#7 -- vbuxx=_byte_vwuz1
|
|
|
|
lda.z y
|
|
|
|
tax
|
|
|
|
// [78] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@3 to bitmap_plot [phi:bitmap_line::@3->bitmap_plot]
|
|
|
|
bitmap_plot_from___b3:
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_plot::x#2 [phi:bitmap_line::@3->bitmap_plot#0] -- register_copy
|
|
|
|
// [117] phi bitmap_plot::y#4 = bitmap_plot::y#2 [phi:bitmap_line::@3->bitmap_plot#1] -- register_copy
|
|
|
|
jsr bitmap_plot
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __breturn
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@return
|
2019-09-29 21:13:37 +00:00
|
|
|
__breturn:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [79] return
|
2019-09-18 19:53:32 +00:00
|
|
|
rts
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@2
|
|
|
|
__b2:
|
|
|
|
// [80] bitmap_line::e1#0 = bitmap_line::dy#0 >> 1 -- vwuz1=vwuz2_ror_1
|
|
|
|
lda.z dy+1
|
|
|
|
lsr
|
|
|
|
sta.z e1+1
|
|
|
|
lda.z dy
|
|
|
|
ror
|
|
|
|
sta.z e1
|
|
|
|
// [81] phi from bitmap_line::@2 to bitmap_line::@9 [phi:bitmap_line::@2->bitmap_line::@9]
|
|
|
|
__b9_from___b2:
|
|
|
|
// [81] phi bitmap_line::e1#3 = bitmap_line::e1#0 [phi:bitmap_line::@2->bitmap_line::@9#0] -- register_copy
|
|
|
|
// [81] phi bitmap_line::y#15 = bitmap_line::y1#0 [phi:bitmap_line::@2->bitmap_line::@9#1] -- vwuz1=vwuc1
|
|
|
|
lda #<y1
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z y
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #>y1
|
|
|
|
sta.z y+1
|
|
|
|
// [81] phi bitmap_line::x#7 = bitmap_line::x1#0 [phi:bitmap_line::@2->bitmap_line::@9#2] -- vwuz1=vwuc1
|
|
|
|
lda #<x1
|
|
|
|
sta.z x
|
|
|
|
lda #>x1
|
|
|
|
sta.z x+1
|
|
|
|
jmp __b9
|
|
|
|
// [81] phi from bitmap_line::@10 to bitmap_line::@9 [phi:bitmap_line::@10->bitmap_line::@9]
|
|
|
|
__b9_from___b10:
|
|
|
|
// [81] phi bitmap_line::e1#3 = bitmap_line::e1#6 [phi:bitmap_line::@10->bitmap_line::@9#0] -- register_copy
|
|
|
|
// [81] phi bitmap_line::y#15 = bitmap_line::y#13 [phi:bitmap_line::@10->bitmap_line::@9#1] -- register_copy
|
|
|
|
// [81] phi bitmap_line::x#7 = bitmap_line::x#15 [phi:bitmap_line::@10->bitmap_line::@9#2] -- register_copy
|
|
|
|
jmp __b9
|
|
|
|
// bitmap_line::@9
|
|
|
|
__b9:
|
|
|
|
// [82] bitmap_plot::x#3 = bitmap_line::x#7
|
|
|
|
// [83] bitmap_plot::y#3 = (byte)bitmap_line::y#15 -- vbuxx=_byte_vwuz1
|
|
|
|
lda.z y
|
|
|
|
tax
|
|
|
|
// [84] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@9 to bitmap_plot [phi:bitmap_line::@9->bitmap_plot]
|
|
|
|
bitmap_plot_from___b9:
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_plot::x#3 [phi:bitmap_line::@9->bitmap_plot#0] -- register_copy
|
|
|
|
// [117] phi bitmap_plot::y#4 = bitmap_plot::y#3 [phi:bitmap_line::@9->bitmap_plot#1] -- register_copy
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
jmp __b17
|
|
|
|
// bitmap_line::@17
|
|
|
|
__b17:
|
|
|
|
// [85] bitmap_line::x#15 = bitmap_line::x#7 + bitmap_line::sx#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z x
|
|
|
|
clc
|
|
|
|
adc.z sx
|
|
|
|
sta.z x
|
|
|
|
lda.z x+1
|
|
|
|
adc.z sx+1
|
|
|
|
sta.z x+1
|
|
|
|
// [86] bitmap_line::e1#1 = bitmap_line::e1#3 + bitmap_line::dy#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z e1
|
|
|
|
clc
|
|
|
|
adc.z dy
|
|
|
|
sta.z e1
|
|
|
|
lda.z e1+1
|
|
|
|
adc.z dy+1
|
|
|
|
sta.z e1+1
|
|
|
|
// [87] if(bitmap_line::dx#0>=bitmap_line::e1#1) goto bitmap_line::@10 -- vwuz1_ge_vwuz2_then_la1
|
|
|
|
lda.z e1+1
|
|
|
|
cmp.z dx+1
|
|
|
|
bne !+
|
|
|
|
lda.z e1
|
|
|
|
cmp.z dx
|
|
|
|
beq __b10_from___b17
|
|
|
|
!:
|
|
|
|
bcc __b10_from___b17
|
|
|
|
jmp __b11
|
|
|
|
// bitmap_line::@11
|
|
|
|
__b11:
|
|
|
|
// [88] bitmap_line::y#2 = bitmap_line::y#15 + bitmap_line::sy#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z y
|
|
|
|
clc
|
|
|
|
adc.z sy
|
|
|
|
sta.z y
|
|
|
|
lda.z y+1
|
|
|
|
adc.z sy+1
|
|
|
|
sta.z y+1
|
|
|
|
// [89] bitmap_line::e1#2 = bitmap_line::e1#1 - bitmap_line::dx#0 -- vwuz1=vwuz1_minus_vwuz2
|
|
|
|
lda.z e1
|
|
|
|
sec
|
|
|
|
sbc.z dx
|
|
|
|
sta.z e1
|
|
|
|
lda.z e1+1
|
|
|
|
sbc.z dx+1
|
|
|
|
sta.z e1+1
|
|
|
|
// [90] phi from bitmap_line::@11 bitmap_line::@17 to bitmap_line::@10 [phi:bitmap_line::@11/bitmap_line::@17->bitmap_line::@10]
|
|
|
|
__b10_from___b11:
|
|
|
|
__b10_from___b17:
|
|
|
|
// [90] phi bitmap_line::e1#6 = bitmap_line::e1#2 [phi:bitmap_line::@11/bitmap_line::@17->bitmap_line::@10#0] -- register_copy
|
|
|
|
// [90] phi bitmap_line::y#13 = bitmap_line::y#2 [phi:bitmap_line::@11/bitmap_line::@17->bitmap_line::@10#1] -- register_copy
|
|
|
|
jmp __b10
|
|
|
|
// bitmap_line::@10
|
|
|
|
__b10:
|
|
|
|
// [91] if(bitmap_line::x#15!=bitmap_line::x2#0) goto bitmap_line::@9 -- vwuz1_neq_vwuz2_then_la1
|
|
|
|
lda.z x+1
|
|
|
|
cmp.z x2+1
|
|
|
|
bne __b9_from___b10
|
|
|
|
lda.z x
|
|
|
|
cmp.z x2
|
|
|
|
bne __b9_from___b10
|
|
|
|
jmp __b3_from___b10
|
|
|
|
// [92] phi from bitmap_line::@18 to bitmap_line::@4 [phi:bitmap_line::@18->bitmap_line::@4]
|
|
|
|
__b4_from___b18:
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b4
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@4
|
2019-09-29 21:13:37 +00:00
|
|
|
__b4:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [93] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@4 to bitmap_plot [phi:bitmap_line::@4->bitmap_plot]
|
|
|
|
bitmap_plot_from___b4:
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_line::x1#0 [phi:bitmap_line::@4->bitmap_plot#0] -- vwuz1=vwuc1
|
|
|
|
lda #<x1
|
|
|
|
sta.z bitmap_plot.x
|
|
|
|
lda #>x1
|
|
|
|
sta.z bitmap_plot.x+1
|
|
|
|
// [117] phi bitmap_plot::y#4 = 0 [phi:bitmap_line::@4->bitmap_plot#1] -- vbuxx=vbuc1
|
|
|
|
ldx #0
|
|
|
|
jsr bitmap_plot
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __breturn
|
2019-09-18 19:53:32 +00:00
|
|
|
}
|
2021-02-04 07:53:47 +00:00
|
|
|
// memset
|
|
|
|
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
|
|
|
|
// memset(void* zp(8) str, byte register(X) c, word zp(6) num)
|
|
|
|
memset: {
|
|
|
|
.label end = 6
|
|
|
|
.label dst = 8
|
|
|
|
.label num = 6
|
|
|
|
.label str = 8
|
|
|
|
// [95] if(memset::num#2<=0) goto memset::@return -- vwuz1_le_0_then_la1
|
|
|
|
lda.z num
|
|
|
|
bne !+
|
|
|
|
lda.z num+1
|
|
|
|
beq __breturn
|
|
|
|
!:
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b1
|
2021-02-04 07:53:47 +00:00
|
|
|
// memset::@1
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [96] memset::end#0 = (byte*)memset::str#3 + memset::num#2 -- pbuz1=pbuz2_plus_vwuz1
|
|
|
|
lda.z end
|
2019-09-18 19:53:32 +00:00
|
|
|
clc
|
2021-02-04 07:53:47 +00:00
|
|
|
adc.z str
|
|
|
|
sta.z end
|
|
|
|
lda.z end+1
|
|
|
|
adc.z str+1
|
|
|
|
sta.z end+1
|
|
|
|
// [97] memset::dst#4 = (byte*)memset::str#3
|
|
|
|
// [98] phi from memset::@1 memset::@3 to memset::@2 [phi:memset::@1/memset::@3->memset::@2]
|
|
|
|
__b2_from___b1:
|
2019-09-29 21:13:37 +00:00
|
|
|
__b2_from___b3:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [98] phi memset::dst#2 = memset::dst#4 [phi:memset::@1/memset::@3->memset::@2#0] -- register_copy
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b2
|
2021-02-04 07:53:47 +00:00
|
|
|
// memset::@2
|
2019-09-29 21:13:37 +00:00
|
|
|
__b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [99] if(memset::dst#2!=memset::end#0) goto memset::@3 -- pbuz1_neq_pbuz2_then_la1
|
|
|
|
lda.z dst+1
|
|
|
|
cmp.z end+1
|
|
|
|
bne __b3
|
|
|
|
lda.z dst
|
|
|
|
cmp.z end
|
|
|
|
bne __b3
|
|
|
|
jmp __breturn
|
|
|
|
// memset::@return
|
|
|
|
__breturn:
|
|
|
|
// [100] return
|
|
|
|
rts
|
|
|
|
// memset::@3
|
|
|
|
__b3:
|
|
|
|
// [101] *memset::dst#2 = memset::c#4 -- _deref_pbuz1=vbuxx
|
|
|
|
txa
|
|
|
|
ldy #0
|
|
|
|
sta (dst),y
|
|
|
|
// [102] memset::dst#1 = ++ memset::dst#2 -- pbuz1=_inc_pbuz1
|
|
|
|
inc.z dst
|
|
|
|
bne !+
|
|
|
|
inc.z dst+1
|
|
|
|
!:
|
|
|
|
jmp __b2_from___b3
|
|
|
|
}
|
|
|
|
// abs_u16
|
|
|
|
// Get the absolute value of a 16-bit unsigned number treated as a signed number.
|
|
|
|
// abs_u16(word zp($a) w)
|
|
|
|
abs_u16: {
|
|
|
|
.label w = $a
|
|
|
|
.label return = $a
|
|
|
|
// [104] abs_u16::$0 = > abs_u16::w#2 -- vbuaa=_hi_vwuz1
|
|
|
|
lda.z w+1
|
|
|
|
// [105] abs_u16::$1 = abs_u16::$0 & $80 -- vbuaa=vbuaa_band_vbuc1
|
|
|
|
and #$80
|
|
|
|
// [106] if(0!=abs_u16::$1) goto abs_u16::@1 -- 0_neq_vbuaa_then_la1
|
|
|
|
cmp #0
|
|
|
|
bne __b1
|
|
|
|
// [108] phi from abs_u16 abs_u16::@1 to abs_u16::@return [phi:abs_u16/abs_u16::@1->abs_u16::@return]
|
|
|
|
__breturn_from_abs_u16:
|
|
|
|
__breturn_from___b1:
|
|
|
|
// [108] phi abs_u16::return#4 = abs_u16::w#2 [phi:abs_u16/abs_u16::@1->abs_u16::@return#0] -- register_copy
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __breturn
|
2021-02-04 07:53:47 +00:00
|
|
|
// abs_u16::@1
|
|
|
|
__b1:
|
|
|
|
// [107] abs_u16::return#2 = - abs_u16::w#2 -- vwuz1=_neg_vwuz1
|
|
|
|
sec
|
|
|
|
lda #0
|
|
|
|
sbc.z return
|
|
|
|
sta.z return
|
|
|
|
lda #0
|
|
|
|
sbc.z return+1
|
|
|
|
sta.z return+1
|
|
|
|
jmp __breturn_from___b1
|
|
|
|
// abs_u16::@return
|
2019-09-29 21:13:37 +00:00
|
|
|
__breturn:
|
2020-06-27 21:26:57 +00:00
|
|
|
// [109] return
|
2019-09-18 19:53:32 +00:00
|
|
|
rts
|
|
|
|
}
|
2021-02-04 07:53:47 +00:00
|
|
|
// sgn_u16
|
|
|
|
// Get the sign of a 16-bit unsigned number treated as a signed number.
|
|
|
|
// Returns unsigned -1 if the number is
|
|
|
|
// sgn_u16(word zp($15) w)
|
|
|
|
sgn_u16: {
|
|
|
|
.label w = $15
|
|
|
|
.label return = $c
|
|
|
|
// [111] sgn_u16::$0 = > sgn_u16::w#2 -- vbuaa=_hi_vwuz1
|
|
|
|
lda.z w+1
|
|
|
|
// [112] sgn_u16::$1 = sgn_u16::$0 & $80 -- vbuaa=vbuaa_band_vbuc1
|
|
|
|
and #$80
|
|
|
|
// [113] if(0!=sgn_u16::$1) goto sgn_u16::@1 -- 0_neq_vbuaa_then_la1
|
|
|
|
cmp #0
|
|
|
|
bne __b1_from_sgn_u16
|
|
|
|
// [115] phi from sgn_u16 to sgn_u16::@return [phi:sgn_u16->sgn_u16::@return]
|
|
|
|
__breturn_from_sgn_u16:
|
|
|
|
// [115] phi sgn_u16::return#4 = 1 [phi:sgn_u16->sgn_u16::@return#0] -- vwuz1=vbuc1
|
|
|
|
lda #<1
|
|
|
|
sta.z return
|
|
|
|
lda #>1
|
|
|
|
sta.z return+1
|
|
|
|
jmp __breturn
|
|
|
|
// [114] phi from sgn_u16 to sgn_u16::@1 [phi:sgn_u16->sgn_u16::@1]
|
|
|
|
__b1_from_sgn_u16:
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b1
|
2021-02-04 07:53:47 +00:00
|
|
|
// sgn_u16::@1
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [115] phi from sgn_u16::@1 to sgn_u16::@return [phi:sgn_u16::@1->sgn_u16::@return]
|
|
|
|
__breturn_from___b1:
|
|
|
|
// [115] phi sgn_u16::return#4 = -1 [phi:sgn_u16::@1->sgn_u16::@return#0] -- vwuz1=vbuc1
|
|
|
|
lda #<-1
|
|
|
|
sta.z return
|
|
|
|
lda #>-1
|
|
|
|
sta.z return+1
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __breturn
|
2021-02-04 07:53:47 +00:00
|
|
|
// sgn_u16::@return
|
2020-06-27 21:26:57 +00:00
|
|
|
__breturn:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [116] return
|
2020-06-27 21:26:57 +00:00
|
|
|
rts
|
|
|
|
}
|
|
|
|
// bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
// Plot a single dot in the bitmap
|
|
|
|
// bitmap_plot(word zp(8) x, byte register(X) y)
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_plot: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.label __0 = $17
|
|
|
|
.label plotter = $15
|
|
|
|
.label x = 8
|
|
|
|
// [118] bitmap_plot::plotter#0 = bitmap_plot_yhi[bitmap_plot::y#4] w= bitmap_plot_ylo[bitmap_plot::y#4] -- vwuz1=pbuc1_derefidx_vbuxx_word_pbuc2_derefidx_vbuxx
|
|
|
|
lda bitmap_plot_yhi,x
|
|
|
|
sta.z plotter+1
|
|
|
|
lda bitmap_plot_ylo,x
|
|
|
|
sta.z plotter
|
|
|
|
// [119] bitmap_plot::$0 = bitmap_plot::x#4 & $fff8 -- vwuz1=vwuz2_band_vwuc1
|
|
|
|
lda.z x
|
|
|
|
and #<$fff8
|
|
|
|
sta.z __0
|
|
|
|
lda.z x+1
|
|
|
|
and #>$fff8
|
|
|
|
sta.z __0+1
|
|
|
|
// [120] bitmap_plot::plotter#1 = (byte*)bitmap_plot::plotter#0 + bitmap_plot::$0 -- pbuz1=pbuz1_plus_vwuz2
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z plotter
|
2019-09-18 19:53:32 +00:00
|
|
|
clc
|
2021-02-04 07:53:47 +00:00
|
|
|
adc.z __0
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z plotter
|
|
|
|
lda.z plotter+1
|
2021-02-04 07:53:47 +00:00
|
|
|
adc.z __0+1
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z plotter+1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [121] bitmap_plot::$1 = < bitmap_plot::x#4 -- vbuxx=_lo_vwuz1
|
|
|
|
ldx.z x
|
|
|
|
// [122] *bitmap_plot::plotter#1 = *bitmap_plot::plotter#1 | bitmap_plot_bit[bitmap_plot::$1] -- _deref_pbuz1=_deref_pbuz1_bor_pbuc1_derefidx_vbuxx
|
2020-06-27 21:26:57 +00:00
|
|
|
lda bitmap_plot_bit,x
|
|
|
|
ldy #0
|
|
|
|
ora (plotter),y
|
|
|
|
ldy #0
|
|
|
|
sta (plotter),y
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __breturn
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_plot::@return
|
2019-09-29 21:13:37 +00:00
|
|
|
__breturn:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [123] return
|
2019-09-18 19:53:32 +00:00
|
|
|
rts
|
|
|
|
}
|
|
|
|
// File Data
|
2020-12-21 07:57:41 +00:00
|
|
|
.segment Data
|
2021-02-04 07:53:47 +00:00
|
|
|
// Tables for the plotter - initialized by calling bitmap_init();
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_plot_ylo: .fill $100, 0
|
|
|
|
bitmap_plot_yhi: .fill $100, 0
|
|
|
|
bitmap_plot_bit: .fill $100, 0
|
|
|
|
|
|
|
|
ASSEMBLER OPTIMIZATIONS
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __b2
|
|
|
|
Removing instruction jmp __b3
|
|
|
|
Removing instruction jmp __b1
|
|
|
|
Removing instruction jmp __b4
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction jmp __b1
|
|
|
|
Removing instruction jmp __b6
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __b2
|
|
|
|
Removing instruction jmp __b3
|
|
|
|
Removing instruction jmp __b5
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction jmp __b4
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __breturn
|
|
|
|
Removing instruction jmp __b1
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction jmp __breturn
|
|
|
|
Removing instruction jmp __b1
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __breturn
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction jmp __b12
|
|
|
|
Removing instruction jmp __b13
|
|
|
|
Removing instruction jmp __b18
|
|
|
|
Removing instruction jmp __b1
|
|
|
|
Removing instruction jmp __b14
|
|
|
|
Removing instruction jmp __b15
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction jmp __b5
|
|
|
|
Removing instruction jmp __b6
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction jmp __b16
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction jmp __b8
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction jmp __b7
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __b3
|
|
|
|
Removing instruction jmp __breturn
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction jmp __b9
|
|
|
|
Removing instruction jmp __b17
|
|
|
|
Removing instruction jmp __b11
|
|
|
|
Removing instruction jmp __b10
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __b4
|
|
|
|
Removing instruction jmp __b1
|
|
|
|
Removing instruction jmp __b2
|
|
|
|
Removing instruction jmp __breturn
|
|
|
|
Removing instruction jmp __b1
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction jmp __breturn
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __breturn
|
2019-09-18 19:53:32 +00:00
|
|
|
Succesful ASM optimization Pass5NextJumpElimination
|
|
|
|
Removing instruction lda #0
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction lda.z e+1
|
|
|
|
Removing instruction lda.z e1+1
|
|
|
|
Removing instruction lda #>-1
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction ldy #0
|
2019-09-18 19:53:32 +00:00
|
|
|
Succesful ASM optimization Pass5UnnecesaryLoadElimination
|
2020-06-27 21:26:57 +00:00
|
|
|
Replacing label __b6_from___b1 with __b2
|
2019-09-29 21:13:37 +00:00
|
|
|
Replacing label __b1_from___b2 with __b1
|
2020-06-27 21:26:57 +00:00
|
|
|
Replacing label __b4_from___b3 with __b4
|
|
|
|
Replacing label __b3_from___b4 with __b3
|
2021-02-04 07:53:47 +00:00
|
|
|
Replacing label __b4_from___b18 with __b4
|
|
|
|
Replacing label __b7_from___b16 with __b7
|
|
|
|
Replacing label __b7_from___b16 with __b7
|
|
|
|
Replacing label __b6_from___b7 with __b6
|
|
|
|
Replacing label __b6_from___b7 with __b6
|
|
|
|
Replacing label __b10_from___b17 with __b10
|
|
|
|
Replacing label __b10_from___b17 with __b10
|
|
|
|
Replacing label __b9_from___b10 with __b9
|
|
|
|
Replacing label __b9_from___b10 with __b9
|
|
|
|
Replacing label __b3_from___b10 with __b3
|
|
|
|
Replacing label __b2_from___b3 with __b2
|
|
|
|
Replacing label __b1_from_sgn_u16 with __b1
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction __b2_from_main:
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction bitmap_clear_from___b2:
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction __b3_from___b2:
|
|
|
|
Removing instruction init_screen_from___b3:
|
|
|
|
Removing instruction __b1_from___b2:
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction __b6_from___b1:
|
|
|
|
Removing instruction __b6:
|
|
|
|
Removing instruction __b2_from___b6:
|
|
|
|
Removing instruction __b3_from___b4:
|
|
|
|
Removing instruction __b4_from___b3:
|
|
|
|
Removing instruction __b4_from___b5:
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction __b1_from_bitmap_clear:
|
|
|
|
Removing instruction memset_from___b1:
|
|
|
|
Removing instruction __b6_from___b7:
|
|
|
|
Removing instruction __b7_from___b16:
|
|
|
|
Removing instruction __b7_from___b8:
|
|
|
|
Removing instruction __b3_from___b10:
|
|
|
|
Removing instruction __b3_from___b7:
|
|
|
|
Removing instruction __b9_from___b10:
|
|
|
|
Removing instruction __b10_from___b11:
|
|
|
|
Removing instruction __b10_from___b17:
|
|
|
|
Removing instruction __b4_from___b18:
|
|
|
|
Removing instruction bitmap_plot_from___b4:
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction __b2_from___b1:
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction __b2_from___b3:
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction __breturn_from_abs_u16:
|
|
|
|
Removing instruction __b1_from_sgn_u16:
|
|
|
|
Removing instruction __breturn_from___b1:
|
2019-09-18 19:53:32 +00:00
|
|
|
Succesful ASM optimization Pass5RedundantLabelElimination
|
|
|
|
Removing instruction bitmap_init_from_main:
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction __b2:
|
|
|
|
Removing instruction __b3:
|
|
|
|
Removing instruction __b1_from___b3:
|
|
|
|
Removing instruction __b4:
|
|
|
|
Removing instruction __b1_from___b4:
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction __b1_from_bitmap_init:
|
|
|
|
Removing instruction __b2_from___b1:
|
|
|
|
Removing instruction __b3_from___b2:
|
|
|
|
Removing instruction __b5:
|
|
|
|
Removing instruction __breturn:
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction memset_from_bitmap_clear:
|
|
|
|
Removing instruction __b1:
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction __breturn:
|
|
|
|
Removing instruction __b1_from_init_screen:
|
|
|
|
Removing instruction __breturn:
|
|
|
|
Removing instruction __b1_from___b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction abs_u16_from_bitmap_line:
|
|
|
|
Removing instruction __b12:
|
|
|
|
Removing instruction abs_u16_from___b12:
|
|
|
|
Removing instruction __b13:
|
|
|
|
Removing instruction __b18:
|
|
|
|
Removing instruction sgn_u16_from___b1:
|
|
|
|
Removing instruction __b14:
|
|
|
|
Removing instruction sgn_u16_from___b14:
|
|
|
|
Removing instruction __b15:
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction __b5:
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction __b6_from___b5:
|
|
|
|
Removing instruction bitmap_plot_from___b6:
|
|
|
|
Removing instruction __b16:
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction __b8:
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction bitmap_plot_from___b3:
|
|
|
|
Removing instruction __b9_from___b2:
|
|
|
|
Removing instruction bitmap_plot_from___b9:
|
|
|
|
Removing instruction __b17:
|
|
|
|
Removing instruction __b11:
|
|
|
|
Removing instruction __b1:
|
|
|
|
Removing instruction __breturn_from_sgn_u16:
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction __breturn:
|
2019-09-18 19:53:32 +00:00
|
|
|
Succesful ASM optimization Pass5UnusedLabelElimination
|
2019-09-29 21:13:37 +00:00
|
|
|
Replacing jump to rts with rts in jmp __breturn
|
|
|
|
Replacing jump to rts with rts in jmp __breturn
|
2021-02-04 07:53:47 +00:00
|
|
|
Skipping double jump to __breturn in jmp __breturn_from___b1
|
2019-09-29 21:13:37 +00:00
|
|
|
Replacing jump to rts with rts in jmp __breturn
|
2019-09-18 19:53:32 +00:00
|
|
|
Succesful ASM optimization Pass5DoubleJumpElimination
|
2021-02-04 07:53:47 +00:00
|
|
|
Relabelling long label __breturn_from___b1 to __b2
|
|
|
|
Succesful ASM optimization Pass5RelabelLongLabels
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction jmp __b1
|
2020-06-27 21:26:57 +00:00
|
|
|
Removing instruction jmp __b2
|
|
|
|
Removing instruction jmp __b3
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction jmp __b6
|
|
|
|
Removing instruction jmp __b9
|
|
|
|
Removing instruction jmp __breturn
|
2019-09-18 19:53:32 +00:00
|
|
|
Succesful ASM optimization Pass5NextJumpElimination
|
2021-02-04 07:53:47 +00:00
|
|
|
Removing instruction __breturn:
|
|
|
|
Removing instruction __b2:
|
|
|
|
Removing instruction __breturn:
|
2019-09-29 21:13:37 +00:00
|
|
|
Removing instruction __breturn:
|
2019-09-18 19:53:32 +00:00
|
|
|
Succesful ASM optimization Pass5UnusedLabelElimination
|
2021-02-04 07:53:47 +00:00
|
|
|
Fixing long branch [174] beq __b4 to bne
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
FINAL SYMBOL TABLE
|
2020-10-05 20:58:02 +00:00
|
|
|
const nomodify byte* BG_COLOR = (byte*) 53281
|
|
|
|
const nomodify byte* BITMAP = (byte*) 8192
|
|
|
|
const nomodify byte* BORDER_COLOR = (byte*) 53280
|
|
|
|
const nomodify byte* D011 = (byte*) 53265
|
|
|
|
const nomodify byte* SCREEN = (byte*) 1024
|
2020-12-29 18:37:32 +00:00
|
|
|
const nomodify byte VICII_BMM = $20
|
|
|
|
const nomodify byte VICII_DEN = $10
|
|
|
|
const nomodify byte* VICII_MEMORY = (byte*) 53272
|
|
|
|
const nomodify byte VICII_RSEL = 8
|
2021-02-04 07:53:47 +00:00
|
|
|
const nomodify byte WHITE = 1
|
|
|
|
word abs_u16(word abs_u16::w)
|
|
|
|
byte~ abs_u16::$0 reg byte a 2002.0
|
|
|
|
byte~ abs_u16::$1 reg byte a 2002.0
|
|
|
|
word abs_u16::return
|
|
|
|
word abs_u16::return#0 return zp[2]:10 202.0
|
|
|
|
word abs_u16::return#1 return zp[2]:10 202.0
|
|
|
|
word abs_u16::return#2 return zp[2]:10 2002.0
|
|
|
|
word abs_u16::return#4 return zp[2]:10 551.0
|
|
|
|
word abs_u16::w
|
|
|
|
word abs_u16::w#0 w zp[2]:10 202.0
|
|
|
|
word abs_u16::w#2 w zp[2]:10 776.0
|
|
|
|
void bitmap_clear(byte bitmap_clear::bgcol , byte bitmap_clear::fgcol)
|
|
|
|
byte bitmap_clear::bgcol
|
|
|
|
byte bitmap_clear::col
|
|
|
|
const byte bitmap_clear::col#0 col = WHITE*$10
|
|
|
|
byte bitmap_clear::fgcol
|
|
|
|
byte* bitmap_gfx
|
|
|
|
void bitmap_init(byte* bitmap_init::gfx , byte* bitmap_init::screen)
|
|
|
|
byte~ bitmap_init::$4 reg byte a 202.0
|
|
|
|
byte~ bitmap_init::$5 reg byte a 202.0
|
|
|
|
byte~ bitmap_init::$6 reg byte a 202.0
|
|
|
|
byte~ bitmap_init::$7 zp[1]:16 50.5
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::bits
|
2021-02-04 07:53:47 +00:00
|
|
|
byte bitmap_init::bits#1 reg byte a 101.0
|
|
|
|
byte bitmap_init::bits#3 reg byte a 151.5
|
|
|
|
byte bitmap_init::bits#4 reg byte a 67.33333333333333
|
|
|
|
byte* bitmap_init::gfx
|
|
|
|
byte* bitmap_init::screen
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::x
|
|
|
|
byte bitmap_init::x#1 reg byte x 151.5
|
2021-02-04 07:53:47 +00:00
|
|
|
byte bitmap_init::x#2 reg byte x 50.5
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_init::y
|
|
|
|
byte bitmap_init::y#1 reg byte x 151.5
|
|
|
|
byte bitmap_init::y#2 reg byte x 50.5
|
|
|
|
byte* bitmap_init::yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
byte* bitmap_init::yoffs#1 yoffs zp[2]:2 202.0
|
|
|
|
byte* bitmap_init::yoffs#2 yoffs zp[2]:2 63.125
|
|
|
|
byte* bitmap_init::yoffs#4 yoffs zp[2]:2 101.0
|
|
|
|
void bitmap_line(word bitmap_line::x1 , word bitmap_line::y1 , word bitmap_line::x2 , word bitmap_line::y2)
|
|
|
|
word bitmap_line::dx
|
|
|
|
word bitmap_line::dx#0 dx zp[2]:17 800.1842105263158
|
|
|
|
word bitmap_line::dy
|
|
|
|
word bitmap_line::dy#0 dy zp[2]:10 868.7714285714285
|
|
|
|
word bitmap_line::e
|
|
|
|
word bitmap_line::e#0 e zp[2]:6 202.0
|
|
|
|
word bitmap_line::e#1 e zp[2]:6 13334.666666666666
|
|
|
|
word bitmap_line::e#2 e zp[2]:6 20002.0
|
|
|
|
word bitmap_line::e#3 e zp[2]:6 4020.6000000000004
|
|
|
|
word bitmap_line::e#6 e zp[2]:6 15001.5
|
|
|
|
word bitmap_line::e1
|
|
|
|
word bitmap_line::e1#0 e1 zp[2]:4 202.0
|
|
|
|
word bitmap_line::e1#1 e1 zp[2]:4 13334.666666666666
|
|
|
|
word bitmap_line::e1#2 e1 zp[2]:4 20002.0
|
|
|
|
word bitmap_line::e1#3 e1 zp[2]:4 4020.6000000000004
|
|
|
|
word bitmap_line::e1#6 e1 zp[2]:4 15001.5
|
|
|
|
word bitmap_line::sx
|
|
|
|
word bitmap_line::sx#0 sx zp[2]:19 693.2068965517242
|
|
|
|
word bitmap_line::sy
|
|
|
|
word bitmap_line::sy#0 sy zp[2]:12 773.1923076923076
|
|
|
|
word bitmap_line::x
|
|
|
|
word bitmap_line::x#1 x zp[2]:8 10001.0
|
|
|
|
word bitmap_line::x#12 x zp[2]:8 20002.0
|
|
|
|
word bitmap_line::x#13 x zp[2]:8 5714.857142857143
|
|
|
|
word bitmap_line::x#15 x zp[2]:8 5714.857142857143
|
|
|
|
word bitmap_line::x#6 x zp[2]:8 20103.0
|
|
|
|
word bitmap_line::x#7 x zp[2]:8 7500.75
|
|
|
|
word bitmap_line::x1
|
|
|
|
const word bitmap_line::x1#0 x1 = 0
|
|
|
|
word bitmap_line::x2
|
|
|
|
word bitmap_line::x2#0 x2 zp[2]:14 340.4666666666667
|
|
|
|
word bitmap_line::y
|
|
|
|
word bitmap_line::y#1 y zp[2]:2 5714.857142857143
|
|
|
|
word bitmap_line::y#13 y zp[2]:2 20002.0
|
|
|
|
word bitmap_line::y#15 y zp[2]:2 4286.142857142857
|
|
|
|
word bitmap_line::y#2 y zp[2]:2 10001.0
|
|
|
|
word bitmap_line::y#4 y zp[2]:2 5000.5
|
|
|
|
word bitmap_line::y#7 y zp[2]:2 10001.0
|
|
|
|
word bitmap_line::y1
|
|
|
|
const word bitmap_line::y1#0 y1 = 0
|
|
|
|
word bitmap_line::y2
|
|
|
|
const word bitmap_line::y2#0 y2 = $64
|
|
|
|
void bitmap_plot(word bitmap_plot::x , byte bitmap_plot::y)
|
|
|
|
word~ bitmap_plot::$0 zp[2]:23 200002.0
|
|
|
|
byte~ bitmap_plot::$1 reg byte x 200002.0
|
2020-10-05 20:58:02 +00:00
|
|
|
byte* bitmap_plot::plotter
|
2021-02-04 07:53:47 +00:00
|
|
|
word bitmap_plot::plotter#0 plotter zp[2]:21 50000.5
|
|
|
|
byte* bitmap_plot::plotter#1 plotter zp[2]:21 150001.5
|
|
|
|
word bitmap_plot::x
|
|
|
|
word bitmap_plot::x#1 x zp[2]:8 10001.0
|
|
|
|
word bitmap_plot::x#2 x zp[2]:8 101.0
|
|
|
|
word bitmap_plot::x#3 x zp[2]:8 10001.0
|
|
|
|
word bitmap_plot::x#4 x zp[2]:8 55026.25
|
2020-10-05 20:58:02 +00:00
|
|
|
byte bitmap_plot::y
|
2021-02-04 07:53:47 +00:00
|
|
|
byte bitmap_plot::y#1 reg byte x 20002.0
|
|
|
|
byte bitmap_plot::y#2 reg byte x 202.0
|
|
|
|
byte bitmap_plot::y#3 reg byte x 20002.0
|
|
|
|
byte bitmap_plot::y#4 reg byte x 220105.0
|
2020-10-05 20:58:02 +00:00
|
|
|
const to_nomodify byte* bitmap_plot_bit[$100] = { fill( $100, 0) }
|
|
|
|
const to_nomodify byte* bitmap_plot_yhi[$100] = { fill( $100, 0) }
|
|
|
|
const to_nomodify byte* bitmap_plot_ylo[$100] = { fill( $100, 0) }
|
2021-02-04 07:53:47 +00:00
|
|
|
byte* bitmap_screen
|
2020-10-05 20:58:02 +00:00
|
|
|
void init_screen()
|
|
|
|
byte* init_screen::c
|
2021-02-04 07:53:47 +00:00
|
|
|
byte* init_screen::c#1 c zp[2]:2 202.0
|
|
|
|
byte* init_screen::c#2 c zp[2]:2 134.66666666666666
|
2020-10-05 20:58:02 +00:00
|
|
|
void main()
|
2021-02-04 07:53:47 +00:00
|
|
|
void* memset(void* memset::str , byte memset::c , word memset::num)
|
|
|
|
byte memset::c
|
|
|
|
byte memset::c#4 reg byte x 125.125
|
|
|
|
byte* memset::dst
|
|
|
|
byte* memset::dst#1 dst zp[2]:8 2002.0
|
|
|
|
byte* memset::dst#2 dst zp[2]:8 1368.3333333333335
|
|
|
|
byte* memset::dst#4 dst zp[2]:8 202.0
|
|
|
|
byte* memset::end
|
|
|
|
byte* memset::end#0 end zp[2]:6 183.66666666666669
|
|
|
|
word memset::num
|
|
|
|
word memset::num#2 num zp[2]:6 101.0
|
|
|
|
void* memset::return
|
|
|
|
void* memset::str
|
|
|
|
void* memset::str#3 str zp[2]:8
|
2020-10-05 20:58:02 +00:00
|
|
|
byte next
|
2021-02-04 07:53:47 +00:00
|
|
|
byte next#0 next zp[1]:16 22.0
|
|
|
|
byte next#5 next zp[1]:16 11.0
|
|
|
|
word sgn_u16(word sgn_u16::w)
|
|
|
|
byte~ sgn_u16::$0 reg byte a 2002.0
|
|
|
|
byte~ sgn_u16::$1 reg byte a 2002.0
|
|
|
|
word sgn_u16::return
|
|
|
|
word sgn_u16::return#0 return zp[2]:12 202.0
|
|
|
|
word sgn_u16::return#1 return zp[2]:12 202.0
|
|
|
|
word sgn_u16::return#4 return zp[2]:12 50.5
|
|
|
|
word sgn_u16::w
|
|
|
|
word sgn_u16::w#0 w zp[2]:21 202.0
|
|
|
|
word sgn_u16::w#2 w zp[2]:21 1102.0
|
2019-09-18 19:53:32 +00:00
|
|
|
|
2021-02-04 07:53:47 +00:00
|
|
|
reg byte a [ bitmap_init::bits#3 bitmap_init::bits#4 bitmap_init::bits#1 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
reg byte x [ bitmap_init::x#2 bitmap_init::x#1 ]
|
|
|
|
reg byte x [ bitmap_init::y#2 bitmap_init::y#1 ]
|
2021-02-04 07:53:47 +00:00
|
|
|
zp[2]:2 [ bitmap_line::y#15 bitmap_line::y#7 bitmap_line::y#13 bitmap_line::y#4 bitmap_line::y#1 bitmap_line::y#2 init_screen::c#2 init_screen::c#1 bitmap_init::yoffs#2 bitmap_init::yoffs#4 bitmap_init::yoffs#1 ]
|
|
|
|
zp[2]:4 [ bitmap_line::e1#3 bitmap_line::e1#6 bitmap_line::e1#0 bitmap_line::e1#2 bitmap_line::e1#1 ]
|
|
|
|
zp[2]:6 [ memset::num#2 memset::end#0 bitmap_line::e#3 bitmap_line::e#0 bitmap_line::e#6 bitmap_line::e#1 bitmap_line::e#2 ]
|
|
|
|
zp[2]:8 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 bitmap_line::x#7 bitmap_line::x#6 bitmap_line::x#15 bitmap_line::x#13 bitmap_line::x#12 bitmap_line::x#1 bitmap_plot::x#4 bitmap_plot::x#2 bitmap_plot::x#1 bitmap_plot::x#3 ]
|
|
|
|
reg byte x [ memset::c#4 ]
|
|
|
|
zp[2]:10 [ abs_u16::return#4 abs_u16::return#2 abs_u16::w#2 abs_u16::w#0 abs_u16::return#0 abs_u16::return#1 bitmap_line::dy#0 ]
|
|
|
|
zp[2]:12 [ sgn_u16::return#4 sgn_u16::return#0 sgn_u16::return#1 bitmap_line::sy#0 ]
|
|
|
|
reg byte x [ bitmap_plot::y#4 bitmap_plot::y#2 bitmap_plot::y#1 bitmap_plot::y#3 ]
|
|
|
|
zp[2]:14 [ bitmap_line::x2#0 ]
|
|
|
|
zp[1]:16 [ bitmap_init::$7 next#5 next#0 ]
|
|
|
|
reg byte a [ bitmap_init::$4 ]
|
|
|
|
reg byte a [ bitmap_init::$5 ]
|
|
|
|
reg byte a [ bitmap_init::$6 ]
|
|
|
|
zp[2]:17 [ bitmap_line::dx#0 ]
|
|
|
|
zp[2]:19 [ bitmap_line::sx#0 ]
|
|
|
|
reg byte a [ abs_u16::$0 ]
|
|
|
|
reg byte a [ abs_u16::$1 ]
|
|
|
|
reg byte a [ sgn_u16::$0 ]
|
|
|
|
reg byte a [ sgn_u16::$1 ]
|
|
|
|
zp[2]:21 [ bitmap_plot::plotter#0 bitmap_plot::plotter#1 sgn_u16::w#2 sgn_u16::w#0 ]
|
|
|
|
zp[2]:23 [ bitmap_plot::$0 ]
|
|
|
|
reg byte x [ bitmap_plot::$1 ]
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
|
|
|
|
FINAL ASSEMBLER
|
2021-02-04 07:53:47 +00:00
|
|
|
Score: 30472
|
2019-09-18 19:53:32 +00:00
|
|
|
|
|
|
|
// File Comments
|
|
|
|
// Illustrates problem with bitmap-draw.kc line()
|
|
|
|
// Reported by Janne Johansson
|
|
|
|
// Upstart
|
2020-12-21 07:57:41 +00:00
|
|
|
// Commodore 64 PRG executable file
|
|
|
|
.file [name="bitmap-line-anim-1.prg", type="prg", segments="Program"]
|
|
|
|
.segmentdef Program [segments="Basic, Code, Data"]
|
|
|
|
.segmentdef Basic [start=$0801]
|
|
|
|
.segmentdef Code [start=$80d]
|
|
|
|
.segmentdef Data [startAfter="Code"]
|
|
|
|
.segment Basic
|
2019-09-18 19:53:32 +00:00
|
|
|
:BasicUpstart(main)
|
|
|
|
// Global Constants & labels
|
2020-12-29 18:37:32 +00:00
|
|
|
.const VICII_BMM = $20
|
|
|
|
.const VICII_DEN = $10
|
|
|
|
.const VICII_RSEL = 8
|
2021-02-04 07:53:47 +00:00
|
|
|
.const WHITE = 1
|
2020-05-02 09:38:51 +00:00
|
|
|
.label BORDER_COLOR = $d020
|
|
|
|
.label BG_COLOR = $d021
|
2020-04-30 20:15:59 +00:00
|
|
|
.label D011 = $d011
|
2020-12-29 18:37:32 +00:00
|
|
|
.label VICII_MEMORY = $d018
|
2019-09-18 19:53:32 +00:00
|
|
|
.label SCREEN = $400
|
|
|
|
.label BITMAP = $2000
|
2021-02-04 07:53:47 +00:00
|
|
|
.label next = $10
|
2020-12-21 07:57:41 +00:00
|
|
|
.segment Code
|
2019-09-18 19:53:32 +00:00
|
|
|
// main
|
|
|
|
main: {
|
2020-05-02 09:38:51 +00:00
|
|
|
// *BORDER_COLOR = 0
|
2020-10-05 20:58:02 +00:00
|
|
|
// [0] *BORDER_COLOR = 0 -- _deref_pbuc1=vbuc2
|
2019-09-18 19:53:32 +00:00
|
|
|
lda #0
|
2020-05-02 09:38:51 +00:00
|
|
|
sta BORDER_COLOR
|
|
|
|
// *BG_COLOR = 0
|
2020-10-05 20:58:02 +00:00
|
|
|
// [1] *BG_COLOR = 0 -- _deref_pbuc1=vbuc2
|
2020-05-02 09:38:51 +00:00
|
|
|
sta BG_COLOR
|
2020-12-29 18:37:32 +00:00
|
|
|
// *D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3
|
|
|
|
// [2] *D011 = VICII_BMM|VICII_DEN|VICII_RSEL|3 -- _deref_pbuc1=vbuc2
|
|
|
|
lda #VICII_BMM|VICII_DEN|VICII_RSEL|3
|
2019-09-18 19:53:32 +00:00
|
|
|
sta D011
|
2020-12-29 18:37:32 +00:00
|
|
|
// *VICII_MEMORY = (byte)((((word)SCREEN&$3fff)/$40)|(((word)BITMAP&$3fff)/$400))
|
|
|
|
// [3] *VICII_MEMORY = (byte)(word)SCREEN&$3fff/$40|(word)BITMAP&$3fff/$400 -- _deref_pbuc1=vbuc2
|
2019-09-18 19:53:32 +00:00
|
|
|
lda #(SCREEN&$3fff)/$40|(BITMAP&$3fff)/$400
|
2020-12-29 18:37:32 +00:00
|
|
|
sta VICII_MEMORY
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_init(BITMAP, SCREEN)
|
2020-06-27 19:18:00 +00:00
|
|
|
// [4] call bitmap_init
|
2020-06-27 21:26:57 +00:00
|
|
|
// [13] phi from main to bitmap_init [phi:main->bitmap_init]
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_init
|
2020-06-27 19:18:00 +00:00
|
|
|
// [5] phi from main to main::@2 [phi:main->main::@2]
|
2019-09-18 19:53:32 +00:00
|
|
|
// main::@2
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_clear(BLACK, WHITE)
|
2020-06-27 19:18:00 +00:00
|
|
|
// [6] call bitmap_clear
|
2021-02-04 07:53:47 +00:00
|
|
|
// [35] phi from main::@2 to bitmap_clear [phi:main::@2->bitmap_clear]
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_clear
|
2020-06-27 19:18:00 +00:00
|
|
|
// [7] phi from main::@2 to main::@3 [phi:main::@2->main::@3]
|
2019-09-18 19:53:32 +00:00
|
|
|
// main::@3
|
|
|
|
// init_screen()
|
2020-06-27 19:18:00 +00:00
|
|
|
// [8] call init_screen
|
2021-02-04 07:53:47 +00:00
|
|
|
// [40] phi from main::@3 to init_screen [phi:main::@3->init_screen]
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr init_screen
|
2020-06-27 19:18:00 +00:00
|
|
|
// [9] phi from main::@3 to main::@1 [phi:main::@3->main::@1]
|
2020-10-05 20:58:02 +00:00
|
|
|
// [9] phi next#5 = 0 [phi:main::@3->main::@1#0] -- vbuz1=vbuc1
|
2019-09-18 19:53:32 +00:00
|
|
|
lda #0
|
|
|
|
sta.z next
|
|
|
|
// main::@1
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line(0,0,next,100)
|
|
|
|
// [10] bitmap_line::x2#0 = next#5 -- vwuz1=vbuz2
|
2020-03-22 21:26:39 +00:00
|
|
|
lda.z next
|
2021-02-04 07:53:47 +00:00
|
|
|
sta.z bitmap_line.x2
|
|
|
|
lda #0
|
|
|
|
sta.z bitmap_line.x2+1
|
2020-06-27 19:18:00 +00:00
|
|
|
// [11] call bitmap_line
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_line
|
|
|
|
// main::@4
|
|
|
|
// next++;
|
2020-10-05 20:58:02 +00:00
|
|
|
// [12] next#0 = ++ next#5 -- vbuz1=_inc_vbuz1
|
2019-09-18 19:53:32 +00:00
|
|
|
inc.z next
|
2020-06-27 19:18:00 +00:00
|
|
|
// [9] phi from main::@4 to main::@1 [phi:main::@4->main::@1]
|
2020-10-05 20:58:02 +00:00
|
|
|
// [9] phi next#5 = next#0 [phi:main::@4->main::@1#0] -- register_copy
|
2019-09-29 21:13:37 +00:00
|
|
|
jmp __b1
|
2020-06-27 21:26:57 +00:00
|
|
|
}
|
|
|
|
// bitmap_init
|
2021-02-04 07:53:47 +00:00
|
|
|
// Initialize bitmap plotting tables
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_init: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.label __7 = $10
|
|
|
|
.label yoffs = 2
|
2020-06-27 21:26:57 +00:00
|
|
|
// [14] phi from bitmap_init to bitmap_init::@1 [phi:bitmap_init->bitmap_init::@1]
|
2021-02-04 07:53:47 +00:00
|
|
|
// [14] phi bitmap_init::x#2 = 0 [phi:bitmap_init->bitmap_init::@1#0] -- vbuxx=vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
ldx #0
|
2021-02-04 07:53:47 +00:00
|
|
|
// [14] phi bitmap_init::bits#3 = $80 [phi:bitmap_init->bitmap_init::@1#1] -- vbuaa=vbuc1
|
|
|
|
lda #$80
|
2020-06-27 21:26:57 +00:00
|
|
|
// [14] phi from bitmap_init::@2 to bitmap_init::@1 [phi:bitmap_init::@2->bitmap_init::@1]
|
2021-02-04 07:53:47 +00:00
|
|
|
// [14] phi bitmap_init::x#2 = bitmap_init::x#1 [phi:bitmap_init::@2->bitmap_init::@1#0] -- register_copy
|
|
|
|
// [14] phi bitmap_init::bits#3 = bitmap_init::bits#4 [phi:bitmap_init::@2->bitmap_init::@1#1] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_init::@1
|
|
|
|
__b1:
|
|
|
|
// bitmap_plot_bit[x] = bits
|
2021-02-04 07:53:47 +00:00
|
|
|
// [15] bitmap_plot_bit[bitmap_init::x#2] = bitmap_init::bits#3 -- pbuc1_derefidx_vbuxx=vbuaa
|
2020-06-27 21:26:57 +00:00
|
|
|
sta bitmap_plot_bit,x
|
2021-02-04 07:53:47 +00:00
|
|
|
// bits >>= 1
|
|
|
|
// [16] bitmap_init::bits#1 = bitmap_init::bits#3 >> 1 -- vbuaa=vbuaa_ror_1
|
2020-06-27 21:26:57 +00:00
|
|
|
lsr
|
|
|
|
// if(bits==0)
|
2021-02-04 07:53:47 +00:00
|
|
|
// [17] if(bitmap_init::bits#1!=0) goto bitmap_init::@6 -- vbuaa_neq_0_then_la1
|
|
|
|
cmp #0
|
2020-06-27 21:26:57 +00:00
|
|
|
bne __b2
|
2021-02-04 07:53:47 +00:00
|
|
|
// [19] phi from bitmap_init::@1 to bitmap_init::@2 [phi:bitmap_init::@1->bitmap_init::@2]
|
|
|
|
// [19] phi bitmap_init::bits#4 = $80 [phi:bitmap_init::@1->bitmap_init::@2#0] -- vbuaa=vbuc1
|
|
|
|
lda #$80
|
|
|
|
// [18] phi from bitmap_init::@1 to bitmap_init::@6 [phi:bitmap_init::@1->bitmap_init::@6]
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_init::@6
|
2021-02-04 07:53:47 +00:00
|
|
|
// [19] phi from bitmap_init::@6 to bitmap_init::@2 [phi:bitmap_init::@6->bitmap_init::@2]
|
|
|
|
// [19] phi bitmap_init::bits#4 = bitmap_init::bits#1 [phi:bitmap_init::@6->bitmap_init::@2#0] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_init::@2
|
|
|
|
__b2:
|
|
|
|
// for(char x : 0..255)
|
2021-02-04 07:53:47 +00:00
|
|
|
// [20] bitmap_init::x#1 = ++ bitmap_init::x#2 -- vbuxx=_inc_vbuxx
|
2020-06-27 21:26:57 +00:00
|
|
|
inx
|
2021-02-04 07:53:47 +00:00
|
|
|
// [21] if(bitmap_init::x#1!=0) goto bitmap_init::@1 -- vbuxx_neq_0_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
cpx #0
|
|
|
|
bne __b1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [22] phi from bitmap_init::@2 to bitmap_init::@3 [phi:bitmap_init::@2->bitmap_init::@3]
|
|
|
|
// [22] phi bitmap_init::yoffs#2 = BITMAP [phi:bitmap_init::@2->bitmap_init::@3#0] -- pbuz1=pbuc1
|
|
|
|
lda #<BITMAP
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #>BITMAP
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z yoffs+1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [22] phi bitmap_init::y#2 = 0 [phi:bitmap_init::@2->bitmap_init::@3#1] -- vbuxx=vbuc1
|
|
|
|
ldx #0
|
|
|
|
// [22] phi from bitmap_init::@4 to bitmap_init::@3 [phi:bitmap_init::@4->bitmap_init::@3]
|
|
|
|
// [22] phi bitmap_init::yoffs#2 = bitmap_init::yoffs#4 [phi:bitmap_init::@4->bitmap_init::@3#0] -- register_copy
|
|
|
|
// [22] phi bitmap_init::y#2 = bitmap_init::y#1 [phi:bitmap_init::@4->bitmap_init::@3#1] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_init::@3
|
|
|
|
__b3:
|
|
|
|
// y&$7
|
2021-02-04 07:53:47 +00:00
|
|
|
// [23] bitmap_init::$7 = bitmap_init::y#2 & 7 -- vbuz1=vbuxx_band_vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #7
|
2021-02-04 07:53:47 +00:00
|
|
|
sax.z __7
|
2020-06-27 21:26:57 +00:00
|
|
|
// <yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
// [24] bitmap_init::$4 = < bitmap_init::yoffs#2 -- vbuaa=_lo_pbuz1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z yoffs
|
|
|
|
// y&$7 | <yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
// [25] bitmap_init::$5 = bitmap_init::$7 | bitmap_init::$4 -- vbuaa=vbuz1_bor_vbuaa
|
|
|
|
ora.z __7
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_plot_ylo[y] = y&$7 | <yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
// [26] bitmap_plot_ylo[bitmap_init::y#2] = bitmap_init::$5 -- pbuc1_derefidx_vbuxx=vbuaa
|
2020-06-27 21:26:57 +00:00
|
|
|
sta bitmap_plot_ylo,x
|
|
|
|
// >yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
// [27] bitmap_init::$6 = > bitmap_init::yoffs#2 -- vbuaa=_hi_pbuz1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z yoffs+1
|
|
|
|
// bitmap_plot_yhi[y] = >yoffs
|
2021-02-04 07:53:47 +00:00
|
|
|
// [28] bitmap_plot_yhi[bitmap_init::y#2] = bitmap_init::$6 -- pbuc1_derefidx_vbuxx=vbuaa
|
2020-06-27 21:26:57 +00:00
|
|
|
sta bitmap_plot_yhi,x
|
|
|
|
// if((y&$7)==7)
|
2021-02-04 07:53:47 +00:00
|
|
|
// [29] if(bitmap_init::$7!=7) goto bitmap_init::@4 -- vbuz1_neq_vbuc1_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #7
|
2021-02-04 07:53:47 +00:00
|
|
|
cmp.z __7
|
2020-06-27 21:26:57 +00:00
|
|
|
bne __b4
|
|
|
|
// bitmap_init::@5
|
|
|
|
// yoffs = yoffs + 40*8
|
2021-02-04 07:53:47 +00:00
|
|
|
// [30] bitmap_init::yoffs#1 = bitmap_init::yoffs#2 + (word)$28*8 -- pbuz1=pbuz1_plus_vwuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
clc
|
|
|
|
lda.z yoffs
|
|
|
|
adc #<$28*8
|
|
|
|
sta.z yoffs
|
|
|
|
lda.z yoffs+1
|
|
|
|
adc #>$28*8
|
|
|
|
sta.z yoffs+1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [31] phi from bitmap_init::@3 bitmap_init::@5 to bitmap_init::@4 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4]
|
|
|
|
// [31] phi bitmap_init::yoffs#4 = bitmap_init::yoffs#2 [phi:bitmap_init::@3/bitmap_init::@5->bitmap_init::@4#0] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_init::@4
|
|
|
|
__b4:
|
|
|
|
// for(char y : 0..255)
|
2021-02-04 07:53:47 +00:00
|
|
|
// [32] bitmap_init::y#1 = ++ bitmap_init::y#2 -- vbuxx=_inc_vbuxx
|
2020-06-27 21:26:57 +00:00
|
|
|
inx
|
2021-02-04 07:53:47 +00:00
|
|
|
// [33] if(bitmap_init::y#1!=0) goto bitmap_init::@3 -- vbuxx_neq_0_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
cpx #0
|
|
|
|
bne __b3
|
|
|
|
// bitmap_init::@return
|
|
|
|
// }
|
2021-02-04 07:53:47 +00:00
|
|
|
// [34] return
|
2020-06-27 21:26:57 +00:00
|
|
|
rts
|
|
|
|
}
|
|
|
|
// bitmap_clear
|
|
|
|
// Clear all graphics on the bitmap
|
2021-02-04 07:53:47 +00:00
|
|
|
// bgcol - the background color to fill the screen with
|
|
|
|
// fgcol - the foreground color to fill the screen with
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_clear: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.const col = WHITE*$10
|
|
|
|
// memset(bitmap_screen, col, 1000uw)
|
|
|
|
// [36] call memset
|
|
|
|
// [94] phi from bitmap_clear to memset [phi:bitmap_clear->memset]
|
|
|
|
// [94] phi memset::c#4 = bitmap_clear::col#0 [phi:bitmap_clear->memset#0] -- vbuxx=vbuc1
|
|
|
|
ldx #col
|
|
|
|
// [94] phi memset::str#3 = (void*)SCREEN [phi:bitmap_clear->memset#1] -- pvoz1=pvoc1
|
|
|
|
lda #<SCREEN
|
|
|
|
sta.z memset.str
|
|
|
|
lda #>SCREEN
|
|
|
|
sta.z memset.str+1
|
|
|
|
// [94] phi memset::num#2 = $3e8 [phi:bitmap_clear->memset#2] -- vwuz1=vwuc1
|
|
|
|
lda #<$3e8
|
|
|
|
sta.z memset.num
|
|
|
|
lda #>$3e8
|
|
|
|
sta.z memset.num+1
|
|
|
|
jsr memset
|
|
|
|
// [37] phi from bitmap_clear to bitmap_clear::@1 [phi:bitmap_clear->bitmap_clear::@1]
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_clear::@1
|
2021-02-04 07:53:47 +00:00
|
|
|
// memset(bitmap_gfx, 0, 8000uw)
|
|
|
|
// [38] call memset
|
|
|
|
// [94] phi from bitmap_clear::@1 to memset [phi:bitmap_clear::@1->memset]
|
|
|
|
// [94] phi memset::c#4 = 0 [phi:bitmap_clear::@1->memset#0] -- vbuxx=vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
ldx #0
|
2021-02-04 07:53:47 +00:00
|
|
|
// [94] phi memset::str#3 = (void*)BITMAP [phi:bitmap_clear::@1->memset#1] -- pvoz1=pvoc1
|
|
|
|
lda #<BITMAP
|
|
|
|
sta.z memset.str
|
|
|
|
lda #>BITMAP
|
|
|
|
sta.z memset.str+1
|
|
|
|
// [94] phi memset::num#2 = $1f40 [phi:bitmap_clear::@1->memset#2] -- vwuz1=vwuc1
|
|
|
|
lda #<$1f40
|
|
|
|
sta.z memset.num
|
|
|
|
lda #>$1f40
|
|
|
|
sta.z memset.num+1
|
|
|
|
jsr memset
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_clear::@return
|
|
|
|
// }
|
2021-02-04 07:53:47 +00:00
|
|
|
// [39] return
|
2020-06-27 21:26:57 +00:00
|
|
|
rts
|
|
|
|
}
|
|
|
|
// init_screen
|
|
|
|
init_screen: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.label c = 2
|
|
|
|
// [41] phi from init_screen to init_screen::@1 [phi:init_screen->init_screen::@1]
|
|
|
|
// [41] phi init_screen::c#2 = SCREEN [phi:init_screen->init_screen::@1#0] -- pbuz1=pbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #<SCREEN
|
|
|
|
sta.z c
|
|
|
|
lda #>SCREEN
|
|
|
|
sta.z c+1
|
|
|
|
// init_screen::@1
|
|
|
|
__b1:
|
|
|
|
// for(byte* c = SCREEN; c!=SCREEN+$400;c++)
|
2021-02-04 07:53:47 +00:00
|
|
|
// [42] if(init_screen::c#2!=SCREEN+$400) goto init_screen::@2 -- pbuz1_neq_pbuc1_then_la1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z c+1
|
|
|
|
cmp #>SCREEN+$400
|
|
|
|
bne __b2
|
|
|
|
lda.z c
|
|
|
|
cmp #<SCREEN+$400
|
|
|
|
bne __b2
|
|
|
|
// init_screen::@return
|
|
|
|
// }
|
2021-02-04 07:53:47 +00:00
|
|
|
// [43] return
|
2020-06-27 21:26:57 +00:00
|
|
|
rts
|
|
|
|
// init_screen::@2
|
|
|
|
__b2:
|
|
|
|
// *c = $14
|
2021-02-04 07:53:47 +00:00
|
|
|
// [44] *init_screen::c#2 = $14 -- _deref_pbuz1=vbuc1
|
2020-06-27 21:26:57 +00:00
|
|
|
lda #$14
|
|
|
|
ldy #0
|
|
|
|
sta (c),y
|
|
|
|
// for(byte* c = SCREEN; c!=SCREEN+$400;c++)
|
2021-02-04 07:53:47 +00:00
|
|
|
// [45] init_screen::c#1 = ++ init_screen::c#2 -- pbuz1=_inc_pbuz1
|
2020-06-27 21:26:57 +00:00
|
|
|
inc.z c
|
|
|
|
bne !+
|
|
|
|
inc.z c+1
|
|
|
|
!:
|
2021-02-04 07:53:47 +00:00
|
|
|
// [41] phi from init_screen::@2 to init_screen::@1 [phi:init_screen::@2->init_screen::@1]
|
|
|
|
// [41] phi init_screen::c#2 = init_screen::c#1 [phi:init_screen::@2->init_screen::@1#0] -- register_copy
|
2020-06-27 21:26:57 +00:00
|
|
|
jmp __b1
|
2019-09-18 19:53:32 +00:00
|
|
|
}
|
|
|
|
// bitmap_line
|
2021-02-04 07:53:47 +00:00
|
|
|
// Draw a line on the bitmap using bresenhams algorithm
|
|
|
|
// bitmap_line(word zp($e) x2)
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_line: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.const x1 = 0
|
|
|
|
.const y1 = 0
|
|
|
|
.const y2 = $64
|
|
|
|
.label dx = $11
|
|
|
|
.label dy = $a
|
|
|
|
.label sx = $13
|
|
|
|
.label sy = $c
|
|
|
|
.label e1 = 4
|
|
|
|
.label e = 6
|
|
|
|
.label y = 2
|
|
|
|
.label x = 8
|
|
|
|
.label x2 = $e
|
|
|
|
// abs_u16(x2-x1)
|
|
|
|
// [46] abs_u16::w#0 = bitmap_line::x2#0 -- vwuz1=vwuz2
|
|
|
|
lda.z x2
|
|
|
|
sta.z abs_u16.w
|
|
|
|
lda.z x2+1
|
|
|
|
sta.z abs_u16.w+1
|
|
|
|
// [47] call abs_u16
|
|
|
|
// [103] phi from bitmap_line to abs_u16 [phi:bitmap_line->abs_u16]
|
|
|
|
// [103] phi abs_u16::w#2 = abs_u16::w#0 [phi:bitmap_line->abs_u16#0] -- register_copy
|
|
|
|
jsr abs_u16
|
|
|
|
// abs_u16(x2-x1)
|
|
|
|
// [48] abs_u16::return#0 = abs_u16::return#4
|
|
|
|
// bitmap_line::@12
|
|
|
|
// dx = abs_u16(x2-x1)
|
|
|
|
// [49] bitmap_line::dx#0 = abs_u16::return#0 -- vwuz1=vwuz2
|
|
|
|
lda.z abs_u16.return
|
|
|
|
sta.z dx
|
|
|
|
lda.z abs_u16.return+1
|
|
|
|
sta.z dx+1
|
|
|
|
// abs_u16(y2-y1)
|
|
|
|
// [50] call abs_u16
|
|
|
|
// [103] phi from bitmap_line::@12 to abs_u16 [phi:bitmap_line::@12->abs_u16]
|
|
|
|
// [103] phi abs_u16::w#2 = bitmap_line::y2#0 [phi:bitmap_line::@12->abs_u16#0] -- vwuz1=vwuc1
|
|
|
|
lda #<y2
|
|
|
|
sta.z abs_u16.w
|
|
|
|
lda #>y2
|
|
|
|
sta.z abs_u16.w+1
|
|
|
|
jsr abs_u16
|
|
|
|
// abs_u16(y2-y1)
|
|
|
|
// [51] abs_u16::return#1 = abs_u16::return#4
|
|
|
|
// bitmap_line::@13
|
|
|
|
// dy = abs_u16(y2-y1)
|
|
|
|
// [52] bitmap_line::dy#0 = abs_u16::return#1
|
|
|
|
// if(dx==0 && dy==0)
|
|
|
|
// [53] if(bitmap_line::dx#0!=0) goto bitmap_line::@1 -- vwuz1_neq_0_then_la1
|
|
|
|
lda.z dx
|
|
|
|
ora.z dx+1
|
|
|
|
bne __b1
|
|
|
|
// bitmap_line::@18
|
|
|
|
// [54] if(bitmap_line::dy#0==0) goto bitmap_line::@4 -- vwuz1_eq_0_then_la1
|
|
|
|
lda.z dy
|
|
|
|
ora.z dy+1
|
|
|
|
bne !__b4+
|
|
|
|
jmp __b4
|
|
|
|
!__b4:
|
2019-09-18 19:53:32 +00:00
|
|
|
// bitmap_line::@1
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// sgn_u16(x2-x1)
|
|
|
|
// [55] sgn_u16::w#0 = bitmap_line::x2#0 -- vwuz1=vwuz2
|
|
|
|
lda.z x2
|
|
|
|
sta.z sgn_u16.w
|
|
|
|
lda.z x2+1
|
|
|
|
sta.z sgn_u16.w+1
|
|
|
|
// [56] call sgn_u16
|
|
|
|
// [110] phi from bitmap_line::@1 to sgn_u16 [phi:bitmap_line::@1->sgn_u16]
|
|
|
|
// [110] phi sgn_u16::w#2 = sgn_u16::w#0 [phi:bitmap_line::@1->sgn_u16#0] -- register_copy
|
|
|
|
jsr sgn_u16
|
|
|
|
// sgn_u16(x2-x1)
|
|
|
|
// [57] sgn_u16::return#0 = sgn_u16::return#4
|
|
|
|
// bitmap_line::@14
|
|
|
|
// sx = sgn_u16(x2-x1)
|
|
|
|
// [58] bitmap_line::sx#0 = sgn_u16::return#0 -- vwuz1=vwuz2
|
|
|
|
lda.z sgn_u16.return
|
|
|
|
sta.z sx
|
|
|
|
lda.z sgn_u16.return+1
|
|
|
|
sta.z sx+1
|
|
|
|
// sgn_u16(y2-y1)
|
|
|
|
// [59] call sgn_u16
|
|
|
|
// [110] phi from bitmap_line::@14 to sgn_u16 [phi:bitmap_line::@14->sgn_u16]
|
|
|
|
// [110] phi sgn_u16::w#2 = bitmap_line::y2#0 [phi:bitmap_line::@14->sgn_u16#0] -- vwuz1=vwuc1
|
|
|
|
lda #<y2
|
|
|
|
sta.z sgn_u16.w
|
|
|
|
lda #>y2
|
|
|
|
sta.z sgn_u16.w+1
|
|
|
|
jsr sgn_u16
|
|
|
|
// sgn_u16(y2-y1)
|
|
|
|
// [60] sgn_u16::return#1 = sgn_u16::return#4
|
|
|
|
// bitmap_line::@15
|
|
|
|
// sy = sgn_u16(y2-y1)
|
|
|
|
// [61] bitmap_line::sy#0 = sgn_u16::return#1
|
|
|
|
// if(dx > dy)
|
|
|
|
// [62] if(bitmap_line::dx#0>bitmap_line::dy#0) goto bitmap_line::@2 -- vwuz1_gt_vwuz2_then_la1
|
|
|
|
lda.z dy+1
|
|
|
|
cmp.z dx+1
|
|
|
|
bcc __b2
|
|
|
|
bne !+
|
|
|
|
lda.z dy
|
|
|
|
cmp.z dx
|
|
|
|
bcc __b2
|
2019-09-18 19:53:32 +00:00
|
|
|
!:
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@5
|
|
|
|
// e = dx/2
|
|
|
|
// [63] bitmap_line::e#0 = bitmap_line::dx#0 >> 1 -- vwuz1=vwuz2_ror_1
|
|
|
|
lda.z dx+1
|
2019-09-18 19:53:32 +00:00
|
|
|
lsr
|
2021-02-04 07:53:47 +00:00
|
|
|
sta.z e+1
|
|
|
|
lda.z dx
|
|
|
|
ror
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z e
|
2021-02-04 07:53:47 +00:00
|
|
|
// [64] phi from bitmap_line::@5 to bitmap_line::@6 [phi:bitmap_line::@5->bitmap_line::@6]
|
|
|
|
// [64] phi bitmap_line::e#3 = bitmap_line::e#0 [phi:bitmap_line::@5->bitmap_line::@6#0] -- register_copy
|
|
|
|
// [64] phi bitmap_line::y#4 = bitmap_line::y1#0 [phi:bitmap_line::@5->bitmap_line::@6#1] -- vwuz1=vwuc1
|
|
|
|
lda #<y1
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z y
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #>y1
|
|
|
|
sta.z y+1
|
|
|
|
// [64] phi bitmap_line::x#13 = bitmap_line::x1#0 [phi:bitmap_line::@5->bitmap_line::@6#2] -- vwuz1=vwuc1
|
|
|
|
lda #<x1
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z x
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #>x1
|
|
|
|
sta.z x+1
|
|
|
|
// [64] phi from bitmap_line::@7 to bitmap_line::@6 [phi:bitmap_line::@7->bitmap_line::@6]
|
|
|
|
// [64] phi bitmap_line::e#3 = bitmap_line::e#6 [phi:bitmap_line::@7->bitmap_line::@6#0] -- register_copy
|
|
|
|
// [64] phi bitmap_line::y#4 = bitmap_line::y#1 [phi:bitmap_line::@7->bitmap_line::@6#1] -- register_copy
|
|
|
|
// [64] phi bitmap_line::x#13 = bitmap_line::x#12 [phi:bitmap_line::@7->bitmap_line::@6#2] -- register_copy
|
|
|
|
// bitmap_line::@6
|
|
|
|
__b6:
|
|
|
|
// bitmap_plot(x,(char)y)
|
|
|
|
// [65] bitmap_plot::x#1 = bitmap_line::x#13
|
|
|
|
// [66] bitmap_plot::y#1 = (byte)bitmap_line::y#4 -- vbuxx=_byte_vwuz1
|
|
|
|
lda.z y
|
|
|
|
tax
|
|
|
|
// [67] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@6 to bitmap_plot [phi:bitmap_line::@6->bitmap_plot]
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_plot::x#1 [phi:bitmap_line::@6->bitmap_plot#0] -- register_copy
|
|
|
|
// [117] phi bitmap_plot::y#4 = bitmap_plot::y#1 [phi:bitmap_line::@6->bitmap_plot#1] -- register_copy
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@16
|
|
|
|
// y += sy
|
|
|
|
// [68] bitmap_line::y#1 = bitmap_line::y#4 + bitmap_line::sy#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z y
|
|
|
|
clc
|
|
|
|
adc.z sy
|
|
|
|
sta.z y
|
|
|
|
lda.z y+1
|
|
|
|
adc.z sy+1
|
|
|
|
sta.z y+1
|
|
|
|
// e += dx
|
|
|
|
// [69] bitmap_line::e#1 = bitmap_line::e#3 + bitmap_line::dx#0 -- vwuz1=vwuz1_plus_vwuz2
|
2019-09-18 19:53:32 +00:00
|
|
|
lda.z e
|
|
|
|
clc
|
2021-02-04 07:53:47 +00:00
|
|
|
adc.z dx
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z e
|
2021-02-04 07:53:47 +00:00
|
|
|
lda.z e+1
|
|
|
|
adc.z dx+1
|
|
|
|
sta.z e+1
|
|
|
|
// if(dy<e)
|
|
|
|
// [70] if(bitmap_line::dy#0>=bitmap_line::e#1) goto bitmap_line::@7 -- vwuz1_ge_vwuz2_then_la1
|
|
|
|
cmp.z dy+1
|
|
|
|
bne !+
|
|
|
|
lda.z e
|
|
|
|
cmp.z dy
|
|
|
|
beq __b7
|
|
|
|
!:
|
|
|
|
bcc __b7
|
|
|
|
// bitmap_line::@8
|
|
|
|
// x += sx
|
|
|
|
// [71] bitmap_line::x#1 = bitmap_line::x#13 + bitmap_line::sx#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z x
|
|
|
|
clc
|
|
|
|
adc.z sx
|
|
|
|
sta.z x
|
|
|
|
lda.z x+1
|
|
|
|
adc.z sx+1
|
|
|
|
sta.z x+1
|
|
|
|
// e -= dy
|
|
|
|
// [72] bitmap_line::e#2 = bitmap_line::e#1 - bitmap_line::dy#0 -- vwuz1=vwuz1_minus_vwuz2
|
|
|
|
lda.z e
|
2019-09-18 19:53:32 +00:00
|
|
|
sec
|
2021-02-04 07:53:47 +00:00
|
|
|
sbc.z dy
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z e
|
2021-02-04 07:53:47 +00:00
|
|
|
lda.z e+1
|
|
|
|
sbc.z dy+1
|
|
|
|
sta.z e+1
|
|
|
|
// [73] phi from bitmap_line::@16 bitmap_line::@8 to bitmap_line::@7 [phi:bitmap_line::@16/bitmap_line::@8->bitmap_line::@7]
|
|
|
|
// [73] phi bitmap_line::e#6 = bitmap_line::e#1 [phi:bitmap_line::@16/bitmap_line::@8->bitmap_line::@7#0] -- register_copy
|
|
|
|
// [73] phi bitmap_line::x#12 = bitmap_line::x#13 [phi:bitmap_line::@16/bitmap_line::@8->bitmap_line::@7#1] -- register_copy
|
|
|
|
// bitmap_line::@7
|
|
|
|
__b7:
|
|
|
|
// while (y != y2)
|
|
|
|
// [74] if(bitmap_line::y#1!=bitmap_line::y2#0) goto bitmap_line::@6 -- vwuz1_neq_vwuc1_then_la1
|
|
|
|
lda.z y+1
|
|
|
|
cmp #>y2
|
|
|
|
bne __b6
|
|
|
|
lda.z y
|
|
|
|
cmp #<y2
|
|
|
|
bne __b6
|
|
|
|
// [75] phi from bitmap_line::@10 bitmap_line::@7 to bitmap_line::@3 [phi:bitmap_line::@10/bitmap_line::@7->bitmap_line::@3]
|
|
|
|
// [75] phi bitmap_line::y#7 = bitmap_line::y#13 [phi:bitmap_line::@10/bitmap_line::@7->bitmap_line::@3#0] -- register_copy
|
|
|
|
// [75] phi bitmap_line::x#6 = bitmap_line::x#15 [phi:bitmap_line::@10/bitmap_line::@7->bitmap_line::@3#1] -- register_copy
|
|
|
|
// bitmap_line::@3
|
|
|
|
__b3:
|
|
|
|
// bitmap_plot(x,(char)y)
|
|
|
|
// [76] bitmap_plot::x#2 = bitmap_line::x#6
|
|
|
|
// [77] bitmap_plot::y#2 = (byte)bitmap_line::y#7 -- vbuxx=_byte_vwuz1
|
|
|
|
lda.z y
|
|
|
|
tax
|
|
|
|
// [78] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@3 to bitmap_plot [phi:bitmap_line::@3->bitmap_plot]
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_plot::x#2 [phi:bitmap_line::@3->bitmap_plot#0] -- register_copy
|
|
|
|
// [117] phi bitmap_plot::y#4 = bitmap_plot::y#2 [phi:bitmap_line::@3->bitmap_plot#1] -- register_copy
|
|
|
|
jsr bitmap_plot
|
|
|
|
// bitmap_line::@return
|
2019-09-18 19:53:32 +00:00
|
|
|
// }
|
2021-02-04 07:53:47 +00:00
|
|
|
// [79] return
|
2019-09-18 19:53:32 +00:00
|
|
|
rts
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@2
|
|
|
|
__b2:
|
|
|
|
// e = dy/2
|
|
|
|
// [80] bitmap_line::e1#0 = bitmap_line::dy#0 >> 1 -- vwuz1=vwuz2_ror_1
|
|
|
|
lda.z dy+1
|
2019-09-18 19:53:32 +00:00
|
|
|
lsr
|
2021-02-04 07:53:47 +00:00
|
|
|
sta.z e1+1
|
|
|
|
lda.z dy
|
|
|
|
ror
|
|
|
|
sta.z e1
|
|
|
|
// [81] phi from bitmap_line::@2 to bitmap_line::@9 [phi:bitmap_line::@2->bitmap_line::@9]
|
|
|
|
// [81] phi bitmap_line::e1#3 = bitmap_line::e1#0 [phi:bitmap_line::@2->bitmap_line::@9#0] -- register_copy
|
|
|
|
// [81] phi bitmap_line::y#15 = bitmap_line::y1#0 [phi:bitmap_line::@2->bitmap_line::@9#1] -- vwuz1=vwuc1
|
|
|
|
lda #<y1
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z y
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #>y1
|
|
|
|
sta.z y+1
|
|
|
|
// [81] phi bitmap_line::x#7 = bitmap_line::x1#0 [phi:bitmap_line::@2->bitmap_line::@9#2] -- vwuz1=vwuc1
|
|
|
|
lda #<x1
|
2019-09-18 19:53:32 +00:00
|
|
|
sta.z x
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #>x1
|
|
|
|
sta.z x+1
|
|
|
|
// [81] phi from bitmap_line::@10 to bitmap_line::@9 [phi:bitmap_line::@10->bitmap_line::@9]
|
|
|
|
// [81] phi bitmap_line::e1#3 = bitmap_line::e1#6 [phi:bitmap_line::@10->bitmap_line::@9#0] -- register_copy
|
|
|
|
// [81] phi bitmap_line::y#15 = bitmap_line::y#13 [phi:bitmap_line::@10->bitmap_line::@9#1] -- register_copy
|
|
|
|
// [81] phi bitmap_line::x#7 = bitmap_line::x#15 [phi:bitmap_line::@10->bitmap_line::@9#2] -- register_copy
|
|
|
|
// bitmap_line::@9
|
|
|
|
__b9:
|
|
|
|
// bitmap_plot(x,(char)y)
|
|
|
|
// [82] bitmap_plot::x#3 = bitmap_line::x#7
|
|
|
|
// [83] bitmap_plot::y#3 = (byte)bitmap_line::y#15 -- vbuxx=_byte_vwuz1
|
|
|
|
lda.z y
|
|
|
|
tax
|
|
|
|
// [84] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@9 to bitmap_plot [phi:bitmap_line::@9->bitmap_plot]
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_plot::x#3 [phi:bitmap_line::@9->bitmap_plot#0] -- register_copy
|
|
|
|
// [117] phi bitmap_plot::y#4 = bitmap_plot::y#3 [phi:bitmap_line::@9->bitmap_plot#1] -- register_copy
|
2019-09-18 19:53:32 +00:00
|
|
|
jsr bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
// bitmap_line::@17
|
|
|
|
// x += sx
|
|
|
|
// [85] bitmap_line::x#15 = bitmap_line::x#7 + bitmap_line::sx#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z x
|
2019-09-18 19:53:32 +00:00
|
|
|
clc
|
2021-02-04 07:53:47 +00:00
|
|
|
adc.z sx
|
|
|
|
sta.z x
|
|
|
|
lda.z x+1
|
|
|
|
adc.z sx+1
|
|
|
|
sta.z x+1
|
|
|
|
// e += dy
|
|
|
|
// [86] bitmap_line::e1#1 = bitmap_line::e1#3 + bitmap_line::dy#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z e1
|
|
|
|
clc
|
|
|
|
adc.z dy
|
|
|
|
sta.z e1
|
|
|
|
lda.z e1+1
|
|
|
|
adc.z dy+1
|
|
|
|
sta.z e1+1
|
|
|
|
// if(dx < e)
|
|
|
|
// [87] if(bitmap_line::dx#0>=bitmap_line::e1#1) goto bitmap_line::@10 -- vwuz1_ge_vwuz2_then_la1
|
|
|
|
cmp.z dx+1
|
|
|
|
bne !+
|
|
|
|
lda.z e1
|
|
|
|
cmp.z dx
|
|
|
|
beq __b10
|
|
|
|
!:
|
|
|
|
bcc __b10
|
|
|
|
// bitmap_line::@11
|
|
|
|
// y += sy
|
|
|
|
// [88] bitmap_line::y#2 = bitmap_line::y#15 + bitmap_line::sy#0 -- vwuz1=vwuz1_plus_vwuz2
|
|
|
|
lda.z y
|
|
|
|
clc
|
|
|
|
adc.z sy
|
|
|
|
sta.z y
|
|
|
|
lda.z y+1
|
|
|
|
adc.z sy+1
|
|
|
|
sta.z y+1
|
|
|
|
// e -= dx
|
|
|
|
// [89] bitmap_line::e1#2 = bitmap_line::e1#1 - bitmap_line::dx#0 -- vwuz1=vwuz1_minus_vwuz2
|
|
|
|
lda.z e1
|
|
|
|
sec
|
|
|
|
sbc.z dx
|
|
|
|
sta.z e1
|
|
|
|
lda.z e1+1
|
|
|
|
sbc.z dx+1
|
|
|
|
sta.z e1+1
|
|
|
|
// [90] phi from bitmap_line::@11 bitmap_line::@17 to bitmap_line::@10 [phi:bitmap_line::@11/bitmap_line::@17->bitmap_line::@10]
|
|
|
|
// [90] phi bitmap_line::e1#6 = bitmap_line::e1#2 [phi:bitmap_line::@11/bitmap_line::@17->bitmap_line::@10#0] -- register_copy
|
|
|
|
// [90] phi bitmap_line::y#13 = bitmap_line::y#2 [phi:bitmap_line::@11/bitmap_line::@17->bitmap_line::@10#1] -- register_copy
|
|
|
|
// bitmap_line::@10
|
|
|
|
__b10:
|
|
|
|
// while (x != x2)
|
|
|
|
// [91] if(bitmap_line::x#15!=bitmap_line::x2#0) goto bitmap_line::@9 -- vwuz1_neq_vwuz2_then_la1
|
|
|
|
lda.z x+1
|
|
|
|
cmp.z x2+1
|
|
|
|
bne __b9
|
|
|
|
lda.z x
|
|
|
|
cmp.z x2
|
|
|
|
bne __b9
|
|
|
|
jmp __b3
|
|
|
|
// [92] phi from bitmap_line::@18 to bitmap_line::@4 [phi:bitmap_line::@18->bitmap_line::@4]
|
|
|
|
// bitmap_line::@4
|
|
|
|
__b4:
|
|
|
|
// bitmap_plot(x,(char)y)
|
|
|
|
// [93] call bitmap_plot
|
|
|
|
// [117] phi from bitmap_line::@4 to bitmap_plot [phi:bitmap_line::@4->bitmap_plot]
|
|
|
|
// [117] phi bitmap_plot::x#4 = bitmap_line::x1#0 [phi:bitmap_line::@4->bitmap_plot#0] -- vwuz1=vwuc1
|
|
|
|
lda #<x1
|
|
|
|
sta.z bitmap_plot.x
|
|
|
|
lda #>x1
|
|
|
|
sta.z bitmap_plot.x+1
|
|
|
|
// [117] phi bitmap_plot::y#4 = 0 [phi:bitmap_line::@4->bitmap_plot#1] -- vbuxx=vbuc1
|
|
|
|
ldx #0
|
|
|
|
jsr bitmap_plot
|
|
|
|
rts
|
|
|
|
}
|
|
|
|
// memset
|
|
|
|
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
|
|
|
|
// memset(void* zp(8) str, byte register(X) c, word zp(6) num)
|
|
|
|
memset: {
|
|
|
|
.label end = 6
|
|
|
|
.label dst = 8
|
|
|
|
.label num = 6
|
|
|
|
.label str = 8
|
|
|
|
// if(num>0)
|
|
|
|
// [95] if(memset::num#2<=0) goto memset::@return -- vwuz1_le_0_then_la1
|
|
|
|
lda.z num
|
|
|
|
bne !+
|
|
|
|
lda.z num+1
|
|
|
|
beq __breturn
|
|
|
|
!:
|
|
|
|
// memset::@1
|
|
|
|
// end = (char*)str + num
|
|
|
|
// [96] memset::end#0 = (byte*)memset::str#3 + memset::num#2 -- pbuz1=pbuz2_plus_vwuz1
|
|
|
|
lda.z end
|
|
|
|
clc
|
|
|
|
adc.z str
|
|
|
|
sta.z end
|
|
|
|
lda.z end+1
|
|
|
|
adc.z str+1
|
|
|
|
sta.z end+1
|
|
|
|
// [97] memset::dst#4 = (byte*)memset::str#3
|
|
|
|
// [98] phi from memset::@1 memset::@3 to memset::@2 [phi:memset::@1/memset::@3->memset::@2]
|
|
|
|
// [98] phi memset::dst#2 = memset::dst#4 [phi:memset::@1/memset::@3->memset::@2#0] -- register_copy
|
|
|
|
// memset::@2
|
2019-09-29 21:13:37 +00:00
|
|
|
__b2:
|
2021-02-04 07:53:47 +00:00
|
|
|
// for(char* dst = str; dst!=end; dst++)
|
|
|
|
// [99] if(memset::dst#2!=memset::end#0) goto memset::@3 -- pbuz1_neq_pbuz2_then_la1
|
|
|
|
lda.z dst+1
|
|
|
|
cmp.z end+1
|
|
|
|
bne __b3
|
|
|
|
lda.z dst
|
|
|
|
cmp.z end
|
|
|
|
bne __b3
|
|
|
|
// memset::@return
|
|
|
|
__breturn:
|
2019-09-18 19:53:32 +00:00
|
|
|
// }
|
2021-02-04 07:53:47 +00:00
|
|
|
// [100] return
|
2019-09-18 19:53:32 +00:00
|
|
|
rts
|
2021-02-04 07:53:47 +00:00
|
|
|
// memset::@3
|
|
|
|
__b3:
|
|
|
|
// *dst = c
|
|
|
|
// [101] *memset::dst#2 = memset::c#4 -- _deref_pbuz1=vbuxx
|
|
|
|
txa
|
|
|
|
ldy #0
|
|
|
|
sta (dst),y
|
|
|
|
// for(char* dst = str; dst!=end; dst++)
|
|
|
|
// [102] memset::dst#1 = ++ memset::dst#2 -- pbuz1=_inc_pbuz1
|
|
|
|
inc.z dst
|
|
|
|
bne !+
|
|
|
|
inc.z dst+1
|
|
|
|
!:
|
|
|
|
jmp __b2
|
2019-09-18 19:53:32 +00:00
|
|
|
}
|
2021-02-04 07:53:47 +00:00
|
|
|
// abs_u16
|
|
|
|
// Get the absolute value of a 16-bit unsigned number treated as a signed number.
|
|
|
|
// abs_u16(word zp($a) w)
|
|
|
|
abs_u16: {
|
|
|
|
.label w = $a
|
|
|
|
.label return = $a
|
|
|
|
// >w
|
|
|
|
// [104] abs_u16::$0 = > abs_u16::w#2 -- vbuaa=_hi_vwuz1
|
|
|
|
lda.z w+1
|
|
|
|
// >w&0x80
|
|
|
|
// [105] abs_u16::$1 = abs_u16::$0 & $80 -- vbuaa=vbuaa_band_vbuc1
|
|
|
|
and #$80
|
|
|
|
// if(>w&0x80)
|
|
|
|
// [106] if(0!=abs_u16::$1) goto abs_u16::@1 -- 0_neq_vbuaa_then_la1
|
|
|
|
cmp #0
|
|
|
|
bne __b1
|
|
|
|
// [108] phi from abs_u16 abs_u16::@1 to abs_u16::@return [phi:abs_u16/abs_u16::@1->abs_u16::@return]
|
|
|
|
// [108] phi abs_u16::return#4 = abs_u16::w#2 [phi:abs_u16/abs_u16::@1->abs_u16::@return#0] -- register_copy
|
|
|
|
rts
|
|
|
|
// abs_u16::@1
|
2019-09-29 21:13:37 +00:00
|
|
|
__b1:
|
2021-02-04 07:53:47 +00:00
|
|
|
// return -w;
|
|
|
|
// [107] abs_u16::return#2 = - abs_u16::w#2 -- vwuz1=_neg_vwuz1
|
2020-06-27 21:26:57 +00:00
|
|
|
sec
|
2021-02-04 07:53:47 +00:00
|
|
|
lda #0
|
|
|
|
sbc.z return
|
|
|
|
sta.z return
|
|
|
|
lda #0
|
|
|
|
sbc.z return+1
|
|
|
|
sta.z return+1
|
|
|
|
// abs_u16::@return
|
|
|
|
// }
|
|
|
|
// [109] return
|
|
|
|
rts
|
|
|
|
}
|
|
|
|
// sgn_u16
|
|
|
|
// Get the sign of a 16-bit unsigned number treated as a signed number.
|
|
|
|
// Returns unsigned -1 if the number is
|
|
|
|
// sgn_u16(word zp($15) w)
|
|
|
|
sgn_u16: {
|
|
|
|
.label w = $15
|
|
|
|
.label return = $c
|
|
|
|
// >w
|
|
|
|
// [111] sgn_u16::$0 = > sgn_u16::w#2 -- vbuaa=_hi_vwuz1
|
|
|
|
lda.z w+1
|
|
|
|
// >w&0x80
|
|
|
|
// [112] sgn_u16::$1 = sgn_u16::$0 & $80 -- vbuaa=vbuaa_band_vbuc1
|
|
|
|
and #$80
|
|
|
|
// if(>w&0x80)
|
|
|
|
// [113] if(0!=sgn_u16::$1) goto sgn_u16::@1 -- 0_neq_vbuaa_then_la1
|
|
|
|
cmp #0
|
2019-09-29 21:13:37 +00:00
|
|
|
bne __b1
|
2021-02-04 07:53:47 +00:00
|
|
|
// [115] phi from sgn_u16 to sgn_u16::@return [phi:sgn_u16->sgn_u16::@return]
|
|
|
|
// [115] phi sgn_u16::return#4 = 1 [phi:sgn_u16->sgn_u16::@return#0] -- vwuz1=vbuc1
|
|
|
|
lda #<1
|
|
|
|
sta.z return
|
|
|
|
lda #>1
|
|
|
|
sta.z return+1
|
|
|
|
rts
|
|
|
|
// [114] phi from sgn_u16 to sgn_u16::@1 [phi:sgn_u16->sgn_u16::@1]
|
|
|
|
// sgn_u16::@1
|
|
|
|
__b1:
|
|
|
|
// [115] phi from sgn_u16::@1 to sgn_u16::@return [phi:sgn_u16::@1->sgn_u16::@return]
|
|
|
|
// [115] phi sgn_u16::return#4 = -1 [phi:sgn_u16::@1->sgn_u16::@return#0] -- vwuz1=vbuc1
|
|
|
|
lda #<-1
|
|
|
|
sta.z return
|
|
|
|
sta.z return+1
|
|
|
|
// sgn_u16::@return
|
2019-09-18 19:53:32 +00:00
|
|
|
// }
|
2021-02-04 07:53:47 +00:00
|
|
|
// [116] return
|
2019-09-18 19:53:32 +00:00
|
|
|
rts
|
|
|
|
}
|
2020-06-27 21:26:57 +00:00
|
|
|
// bitmap_plot
|
2021-02-04 07:53:47 +00:00
|
|
|
// Plot a single dot in the bitmap
|
|
|
|
// bitmap_plot(word zp(8) x, byte register(X) y)
|
2020-06-27 21:26:57 +00:00
|
|
|
bitmap_plot: {
|
2021-02-04 07:53:47 +00:00
|
|
|
.label __0 = $17
|
|
|
|
.label plotter = $15
|
|
|
|
.label x = 8
|
|
|
|
// plotter = (char*) { bitmap_plot_yhi[y], bitmap_plot_ylo[y] }
|
|
|
|
// [118] bitmap_plot::plotter#0 = bitmap_plot_yhi[bitmap_plot::y#4] w= bitmap_plot_ylo[bitmap_plot::y#4] -- vwuz1=pbuc1_derefidx_vbuxx_word_pbuc2_derefidx_vbuxx
|
|
|
|
lda bitmap_plot_yhi,x
|
|
|
|
sta.z plotter+1
|
|
|
|
lda bitmap_plot_ylo,x
|
|
|
|
sta.z plotter
|
|
|
|
// x & $fff8
|
|
|
|
// [119] bitmap_plot::$0 = bitmap_plot::x#4 & $fff8 -- vwuz1=vwuz2_band_vwuc1
|
|
|
|
lda.z x
|
|
|
|
and #<$fff8
|
|
|
|
sta.z __0
|
|
|
|
lda.z x+1
|
|
|
|
and #>$fff8
|
|
|
|
sta.z __0+1
|
|
|
|
// plotter += ( x & $fff8 )
|
|
|
|
// [120] bitmap_plot::plotter#1 = (byte*)bitmap_plot::plotter#0 + bitmap_plot::$0 -- pbuz1=pbuz1_plus_vwuz2
|
2020-06-27 21:26:57 +00:00
|
|
|
lda.z plotter
|
2019-09-18 19:53:32 +00:00
|
|
|
clc
|
2021-02-04 07:53:47 +00:00
|
|
|
adc.z __0
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z plotter
|
|
|
|
lda.z plotter+1
|
2021-02-04 07:53:47 +00:00
|
|
|
adc.z __0+1
|
2020-06-27 21:26:57 +00:00
|
|
|
sta.z plotter+1
|
2021-02-04 07:53:47 +00:00
|
|
|
// <x
|
|
|
|
// [121] bitmap_plot::$1 = < bitmap_plot::x#4 -- vbuxx=_lo_vwuz1
|
|
|
|
ldx.z x
|
|
|
|
// *plotter |= bitmap_plot_bit[<x]
|
|
|
|
// [122] *bitmap_plot::plotter#1 = *bitmap_plot::plotter#1 | bitmap_plot_bit[bitmap_plot::$1] -- _deref_pbuz1=_deref_pbuz1_bor_pbuc1_derefidx_vbuxx
|
2020-06-27 21:26:57 +00:00
|
|
|
lda bitmap_plot_bit,x
|
|
|
|
ldy #0
|
|
|
|
ora (plotter),y
|
|
|
|
sta (plotter),y
|
|
|
|
// bitmap_plot::@return
|
2019-09-18 19:53:32 +00:00
|
|
|
// }
|
2021-02-04 07:53:47 +00:00
|
|
|
// [123] return
|
2019-09-18 19:53:32 +00:00
|
|
|
rts
|
|
|
|
}
|
|
|
|
// File Data
|
2020-12-21 07:57:41 +00:00
|
|
|
.segment Data
|
2021-02-04 07:53:47 +00:00
|
|
|
// Tables for the plotter - initialized by calling bitmap_init();
|
2019-09-18 19:53:32 +00:00
|
|
|
bitmap_plot_ylo: .fill $100, 0
|
|
|
|
bitmap_plot_yhi: .fill $100, 0
|
|
|
|
bitmap_plot_bit: .fill $100, 0
|
|
|
|
|