1
0
mirror of https://gitlab.com/camelot/kickc.git synced 2024-12-28 01:29:44 +00:00

Updated test data.

This commit is contained in:
jespergravgaard 2021-01-16 23:51:52 +01:00
parent 2577fae6ad
commit 3bed5e1aee
9 changed files with 2108 additions and 2109 deletions

View File

@ -468,7 +468,6 @@ public class TestPrograms {
compileAndCompare("examples/cx16/cx16-tilemap.c");
}
@Test
public void testCx16Sprites() throws IOException, URISyntaxException {
compileAndCompare("examples/cx16/cx16-sprites.c");

View File

@ -1362,8 +1362,8 @@ vera_get_layer_mapbase: {
// - layer: Value of 0 or 1.
// vera_get_layer_map_width(byte register(A) layer)
vera_get_layer_map_width: {
.label return = $3e
.label config = $43
.label return = $3e
// config = vera_layer_config[layer]
asl
tay
@ -1392,8 +1392,8 @@ vera_get_layer_map_width: {
}
// vera_get_layer_map_height(byte register(A) layer)
vera_get_layer_map_height: {
.label return = $3a
.label config = $43
.label return = $3a
// config = vera_layer_config[layer]
asl
tay
@ -1597,7 +1597,7 @@ cputc: {
// - return: an 8 bit value with bit 7:4 containing the back color and bit 3:0 containing the front color.
// This will only work when the VERA is in 16 color mode!
// Note that on the VERA, the transparent color has value 0.
// vera_get_layer_color(byte register(A) layer)
// vera_get_layer_color(byte register(X) layer)
vera_get_layer_color: {
// layer &= $1
and #1
@ -1925,16 +1925,6 @@ memcpy_in_vram: {
jmp __b1
}
.segment Data
// The number of bytes on the screen
// The current cursor x-position
conio_cursor_x: .byte 0, 0
// The current cursor y-position
conio_cursor_y: .byte 0, 0
// The current text cursor line start
conio_line_text: .word 0, 0
// Is scrolling enabled when outputting beyond the end of the screen (1: yes, 0: no).
// If disabled the cursor just moves back to (0,0) instead
conio_scroll_enable: .byte 1, 1
// --- VERA layer management ---
vera_layer_config: .word VERA_L0_CONFIG, VERA_L1_CONFIG
vera_layer_enable: .byte VERA_LAYER0_ENABLE, VERA_LAYER1_ENABLE
@ -1948,3 +1938,13 @@ memcpy_in_vram: {
vera_layer_backcolor: .byte BLUE, BLUE
VERA_CONFIG_WIDTH: .word $20, $40, $80, $100
VERA_CONFIG_HEIGHT: .word $20, $40, $80, $100
// The number of bytes on the screen
// The current cursor x-position
conio_cursor_x: .byte 0, 0
// The current cursor y-position
conio_cursor_y: .byte 0, 0
// The current text cursor line start
conio_line_text: .word 0, 0
// Is scrolling enabled when outputting beyond the end of the screen (1: yes, 0: no).
// If disabled the cursor just moves back to (0,0) instead
conio_scroll_enable: .byte 1, 1

View File

@ -355,30 +355,30 @@ screenlayer: scope:[screenlayer] from conio_x16_init::@3 main::@13 main::@19 ma
[177] screenlayer::layer#6 = phi( conio_x16_init::@3/1, main::@9/1, main::@13/1, main::@19/0, main::@3/0 )
[178] screenlayer::layer#1 = screenlayer::layer#6 & 1
[179] conio_screen_layer = screenlayer::layer#1
[180] vera_get_layer_mapbase::layer#0 = screenlayer::layer#1
[180] vera_get_layer_mapbase::layer#1 = screenlayer::layer#1
[181] call vera_get_layer_mapbase
[182] vera_get_layer_mapbase::return#0 = vera_get_layer_mapbase::return#1
[182] vera_get_layer_mapbase::return#2 = vera_get_layer_mapbase::return#0
to:screenlayer::@1
screenlayer::@1: scope:[screenlayer] from screenlayer
[183] screenlayer::addr#0 = vera_get_layer_mapbase::return#0
[183] screenlayer::addr#0 = vera_get_layer_mapbase::return#2
[184] screenlayer::addr_i#0 = screenlayer::addr#0 << 1
[185] CONIO_SCREEN_BANK#17 = > screenlayer::addr_i#0
[186] CONIO_SCREEN_TEXT#19 = screenlayer::addr_i#0 << 8
[187] vera_get_layer_map_width::layer#0 = conio_screen_layer
[188] call vera_get_layer_map_width
[189] vera_get_layer_map_width::return#0 = vera_get_layer_map_width::return#1
[189] vera_get_layer_map_width::return#2 = vera_get_layer_map_width::return#0
to:screenlayer::@2
screenlayer::@2: scope:[screenlayer] from screenlayer::@1
[190] screenlayer::$4 = vera_get_layer_map_width::return#0
[190] screenlayer::$4 = vera_get_layer_map_width::return#2
[191] conio_width = screenlayer::$4
[192] screenlayer::$5 = conio_width >> 4
[193] conio_skip = (byte)screenlayer::$5
[194] vera_get_layer_map_height::layer#0 = conio_screen_layer
[195] call vera_get_layer_map_height
[196] vera_get_layer_map_height::return#0 = vera_get_layer_map_height::return#1
[196] vera_get_layer_map_height::return#2 = vera_get_layer_map_height::return#0
to:screenlayer::@3
screenlayer::@3: scope:[screenlayer] from screenlayer::@2
[197] screenlayer::$6 = vera_get_layer_map_height::return#0
[197] screenlayer::$6 = vera_get_layer_map_height::return#2
[198] conio_height = screenlayer::$6
to:screenlayer::@return
screenlayer::@return: scope:[screenlayer] from screenlayer::@3
@ -389,8 +389,8 @@ byte vera_set_layer_textcolor(byte vera_set_layer_textcolor::layer , byte vera_s
vera_set_layer_textcolor: scope:[vera_set_layer_textcolor] from conio_x16_init::@4 main::textcolor1 main::textcolor2 main::textcolor3 main::textcolor4 main::textcolor5 main::textcolor6
[200] vera_set_layer_textcolor::color#7 = phi( conio_x16_init::@4/WHITE, main::textcolor1/WHITE, main::textcolor2/WHITE, main::textcolor3/GREY, main::textcolor4/WHITE, main::textcolor5/YELLOW, main::textcolor6/DARK_GREY )
[200] vera_set_layer_textcolor::layer#8 = phi( conio_x16_init::@4/1, main::textcolor1/vera_set_layer_textcolor::layer#2, main::textcolor2/vera_set_layer_textcolor::layer#3, main::textcolor3/vera_set_layer_textcolor::layer#4, main::textcolor4/vera_set_layer_textcolor::layer#5, main::textcolor5/vera_set_layer_textcolor::layer#6, main::textcolor6/vera_set_layer_textcolor::layer#7 )
[201] vera_set_layer_textcolor::layer#1 = vera_set_layer_textcolor::layer#8 & 1
[202] vera_layer_textcolor[vera_set_layer_textcolor::layer#1] = vera_set_layer_textcolor::color#7
[201] vera_set_layer_textcolor::layer#0 = vera_set_layer_textcolor::layer#8 & 1
[202] vera_layer_textcolor[vera_set_layer_textcolor::layer#0] = vera_set_layer_textcolor::color#7
to:vera_set_layer_textcolor::@return
vera_set_layer_textcolor::@return: scope:[vera_set_layer_textcolor] from vera_set_layer_textcolor
[203] return
@ -400,8 +400,8 @@ byte vera_set_layer_backcolor(byte vera_set_layer_backcolor::layer , byte vera_s
vera_set_layer_backcolor: scope:[vera_set_layer_backcolor] from conio_x16_init::@5 main::bgcolor1 main::bgcolor2 main::bgcolor3 main::bgcolor4 main::bgcolor5
[204] vera_set_layer_backcolor::color#6 = phi( conio_x16_init::@5/BLUE, main::bgcolor1/BLACK, main::bgcolor2/GREEN, main::bgcolor3/GREEN, main::bgcolor4/BLACK, main::bgcolor5/BLACK )
[204] vera_set_layer_backcolor::layer#7 = phi( conio_x16_init::@5/1, main::bgcolor1/vera_set_layer_backcolor::layer#2, main::bgcolor2/vera_set_layer_backcolor::layer#3, main::bgcolor3/vera_set_layer_backcolor::layer#4, main::bgcolor4/vera_set_layer_backcolor::layer#5, main::bgcolor5/vera_set_layer_backcolor::layer#6 )
[205] vera_set_layer_backcolor::layer#1 = vera_set_layer_backcolor::layer#7 & 1
[206] vera_layer_backcolor[vera_set_layer_backcolor::layer#1] = vera_set_layer_backcolor::color#6
[205] vera_set_layer_backcolor::layer#0 = vera_set_layer_backcolor::layer#7 & 1
[206] vera_layer_backcolor[vera_set_layer_backcolor::layer#0] = vera_set_layer_backcolor::color#6
to:vera_set_layer_backcolor::@return
vera_set_layer_backcolor::@return: scope:[vera_set_layer_backcolor] from vera_set_layer_backcolor
[207] return
@ -411,8 +411,8 @@ void vera_set_layer_mapbase(byte vera_set_layer_mapbase::layer , byte vera_set_l
vera_set_layer_mapbase: scope:[vera_set_layer_mapbase] from conio_x16_init::@6 conio_x16_init::@7 main::@14
[208] vera_set_layer_mapbase::mapbase#3 = phi( conio_x16_init::@6/$20, conio_x16_init::@7/0, main::@14/$80 )
[208] vera_set_layer_mapbase::layer#4 = phi( conio_x16_init::@6/0, conio_x16_init::@7/1, main::@14/0 )
[209] vera_set_layer_mapbase::layer#2 = vera_set_layer_mapbase::layer#4 & 1
[210] vera_set_layer_mapbase::$0 = vera_set_layer_mapbase::layer#2 << 1
[209] vera_set_layer_mapbase::layer#0 = vera_set_layer_mapbase::layer#4 & 1
[210] vera_set_layer_mapbase::$0 = vera_set_layer_mapbase::layer#0 << 1
[211] vera_set_layer_mapbase::addr#0 = vera_layer_mapbase[vera_set_layer_mapbase::$0]
[212] *vera_set_layer_mapbase::addr#0 = vera_set_layer_mapbase::mapbase#3
to:vera_set_layer_mapbase::@return
@ -451,19 +451,19 @@ void clrscr()
clrscr: scope:[clrscr] from draw_characters main::@4
[227] clrscr::line_text#0 = (byte*)CONIO_SCREEN_TEXT#19
[228] clrscr::skip#0 = 1 << conio_skip
[229] vera_get_layer_backcolor::layer#0 = conio_screen_layer
[229] vera_get_layer_backcolor::layer#1 = conio_screen_layer
[230] call vera_get_layer_backcolor
[231] vera_get_layer_backcolor::return#0 = vera_get_layer_backcolor::return#1
[231] vera_get_layer_backcolor::return#2 = vera_get_layer_backcolor::return#0
to:clrscr::@7
clrscr::@7: scope:[clrscr] from clrscr
[232] clrscr::$1 = vera_get_layer_backcolor::return#0
[232] clrscr::$1 = vera_get_layer_backcolor::return#2
[233] clrscr::$2 = clrscr::$1 << 4
[234] vera_get_layer_textcolor::layer#0 = conio_screen_layer
[234] vera_get_layer_textcolor::layer#1 = conio_screen_layer
[235] call vera_get_layer_textcolor
[236] vera_get_layer_textcolor::return#0 = vera_get_layer_textcolor::return#1
[236] vera_get_layer_textcolor::return#2 = vera_get_layer_textcolor::return#0
to:clrscr::@8
clrscr::@8: scope:[clrscr] from clrscr::@7
[237] clrscr::$3 = vera_get_layer_textcolor::return#0
[237] clrscr::$3 = vera_get_layer_textcolor::return#2
[238] clrscr::color#0 = clrscr::$2 | clrscr::$3
to:clrscr::@1
clrscr::@1: scope:[clrscr] from clrscr::@6 clrscr::@8
@ -679,10 +679,10 @@ cputs::@2: scope:[cputs] from cputs::@1
byte vera_get_layer_mapbase(byte vera_get_layer_mapbase::layer)
vera_get_layer_mapbase: scope:[vera_get_layer_mapbase] from screenlayer
[323] vera_get_layer_mapbase::layer#1 = vera_get_layer_mapbase::layer#0 & 1
[324] vera_get_layer_mapbase::$0 = vera_get_layer_mapbase::layer#1 << 1
[323] vera_get_layer_mapbase::layer#0 = vera_get_layer_mapbase::layer#1 & 1
[324] vera_get_layer_mapbase::$0 = vera_get_layer_mapbase::layer#0 << 1
[325] vera_get_layer_mapbase::mapbase#0 = vera_layer_mapbase[vera_get_layer_mapbase::$0]
[326] vera_get_layer_mapbase::return#1 = *vera_get_layer_mapbase::mapbase#0
[326] vera_get_layer_mapbase::return#0 = *vera_get_layer_mapbase::mapbase#0
to:vera_get_layer_mapbase::@return
vera_get_layer_mapbase::@return: scope:[vera_get_layer_mapbase] from vera_get_layer_mapbase
[327] return
@ -695,7 +695,7 @@ vera_get_layer_map_width: scope:[vera_get_layer_map_width] from screenlayer::@1
[330] vera_get_layer_map_width::$0 = *vera_get_layer_map_width::config#0 & VERA_CONFIG_WIDTH_MASK
[331] vera_get_layer_map_width::$1 = vera_get_layer_map_width::$0 >> 4
[332] vera_get_layer_map_width::$3 = vera_get_layer_map_width::$1 << 1
[333] vera_get_layer_map_width::return#1 = VERA_CONFIG_WIDTH[vera_get_layer_map_width::$3]
[333] vera_get_layer_map_width::return#0 = VERA_CONFIG_WIDTH[vera_get_layer_map_width::$3]
to:vera_get_layer_map_width::@return
vera_get_layer_map_width::@return: scope:[vera_get_layer_map_width] from vera_get_layer_map_width
[334] return
@ -708,7 +708,7 @@ vera_get_layer_map_height: scope:[vera_get_layer_map_height] from screenlayer::
[337] vera_get_layer_map_height::$0 = *vera_get_layer_map_height::config#0 & VERA_CONFIG_HEIGHT_MASK
[338] vera_get_layer_map_height::$1 = vera_get_layer_map_height::$0 >> 6
[339] vera_get_layer_map_height::$3 = vera_get_layer_map_height::$1 << 1
[340] vera_get_layer_map_height::return#1 = VERA_CONFIG_HEIGHT[vera_get_layer_map_height::$3]
[340] vera_get_layer_map_height::return#0 = VERA_CONFIG_HEIGHT[vera_get_layer_map_height::$3]
to:vera_get_layer_map_height::@return
vera_get_layer_map_height::@return: scope:[vera_get_layer_map_height] from vera_get_layer_map_height
[341] return
@ -716,8 +716,8 @@ vera_get_layer_map_height::@return: scope:[vera_get_layer_map_height] from vera
byte vera_get_layer_backcolor(byte vera_get_layer_backcolor::layer)
vera_get_layer_backcolor: scope:[vera_get_layer_backcolor] from clrscr
[342] vera_get_layer_backcolor::layer#1 = vera_get_layer_backcolor::layer#0 & 1
[343] vera_get_layer_backcolor::return#1 = vera_layer_backcolor[vera_get_layer_backcolor::layer#1]
[342] vera_get_layer_backcolor::layer#0 = vera_get_layer_backcolor::layer#1 & 1
[343] vera_get_layer_backcolor::return#0 = vera_layer_backcolor[vera_get_layer_backcolor::layer#0]
to:vera_get_layer_backcolor::@return
vera_get_layer_backcolor::@return: scope:[vera_get_layer_backcolor] from vera_get_layer_backcolor
[344] return
@ -725,8 +725,8 @@ vera_get_layer_backcolor::@return: scope:[vera_get_layer_backcolor] from vera_g
byte vera_get_layer_textcolor(byte vera_get_layer_textcolor::layer)
vera_get_layer_textcolor: scope:[vera_get_layer_textcolor] from clrscr::@7
[345] vera_get_layer_textcolor::layer#1 = vera_get_layer_textcolor::layer#0 & 1
[346] vera_get_layer_textcolor::return#1 = vera_layer_textcolor[vera_get_layer_textcolor::layer#1]
[345] vera_get_layer_textcolor::layer#0 = vera_get_layer_textcolor::layer#1 & 1
[346] vera_get_layer_textcolor::return#0 = vera_layer_textcolor[vera_get_layer_textcolor::layer#0]
to:vera_get_layer_textcolor::@return
vera_get_layer_textcolor::@return: scope:[vera_get_layer_textcolor] from vera_get_layer_textcolor
[347] return
@ -751,12 +751,12 @@ vera_vram_address0::@return: scope:[vera_vram_address0] from vera_vram_address0
void cputc(byte cputc::c)
cputc: scope:[cputc] from cputs::@2 draw_characters::@6
[358] cputc::c#2 = phi( cputs::@2/cputc::c#0, draw_characters::@6/cputc::c#1 )
[359] vera_get_layer_color::layer#0 = conio_screen_layer
[359] vera_get_layer_color::layer#1 = conio_screen_layer
[360] call vera_get_layer_color
[361] vera_get_layer_color::return#0 = vera_get_layer_color::return#2
[361] vera_get_layer_color::return#2 = vera_get_layer_color::return#0
to:cputc::@7
cputc::@7: scope:[cputc] from cputc
[362] cputc::color#0 = vera_get_layer_color::return#0
[362] cputc::color#0 = vera_get_layer_color::return#2
[363] cputc::$15 = conio_screen_layer << 1
[364] cputc::conio_addr#0 = (byte*)CONIO_SCREEN_TEXT#19 + conio_line_text[cputc::$15]
[365] cputc::$2 = conio_cursor_x[conio_screen_layer] << 1
@ -803,10 +803,10 @@ cputc::@1: scope:[cputc] from cputc::@7
byte vera_get_layer_color(byte vera_get_layer_color::layer)
vera_get_layer_color: scope:[vera_get_layer_color] from clearline cputc
[390] vera_get_layer_color::layer#3 = phi( clearline/vera_get_layer_color::layer#1, cputc/vera_get_layer_color::layer#0 )
[391] vera_get_layer_color::layer#2 = vera_get_layer_color::layer#3 & 1
[392] vera_get_layer_color::$0 = vera_layer_backcolor[vera_get_layer_color::layer#2] << 4
[393] vera_get_layer_color::return#2 = vera_get_layer_color::$0 | vera_layer_textcolor[vera_get_layer_color::layer#2]
[390] vera_get_layer_color::layer#3 = phi( clearline/vera_get_layer_color::layer#2, cputc/vera_get_layer_color::layer#1 )
[391] vera_get_layer_color::layer#0 = vera_get_layer_color::layer#3 & 1
[392] vera_get_layer_color::$0 = vera_layer_backcolor[vera_get_layer_color::layer#0] << 4
[393] vera_get_layer_color::return#0 = vera_get_layer_color::$0 | vera_layer_textcolor[vera_get_layer_color::layer#0]
to:vera_get_layer_color::@return
vera_get_layer_color::@return: scope:[vera_get_layer_color] from vera_get_layer_color
[394] return
@ -893,12 +893,12 @@ clearline: scope:[clearline] from insertup::@3
[435] clearline::$2 = > clearline::addr#0
[436] *VERA_ADDRX_M = clearline::$2
[437] *VERA_ADDRX_H = VERA_INC_1
[438] vera_get_layer_color::layer#1 = conio_screen_layer
[438] vera_get_layer_color::layer#2 = conio_screen_layer
[439] call vera_get_layer_color
[440] vera_get_layer_color::return#1 = vera_get_layer_color::return#2
[440] vera_get_layer_color::return#3 = vera_get_layer_color::return#0
to:clearline::@4
clearline::@4: scope:[clearline] from clearline
[441] clearline::color#0 = vera_get_layer_color::return#1
[441] clearline::color#0 = vera_get_layer_color::return#3
to:clearline::@1
clearline::@1: scope:[clearline] from clearline::@2 clearline::@4
[442] clearline::c#2 = phi( clearline::@2/clearline::c#1, clearline::@4/0 )

File diff suppressed because one or more lines are too long

View File

@ -319,22 +319,22 @@ volatile signed word scroll_y loadstore zp[2]:29 0.7
volatile signed word speed loadstore zp[2]:35 0.5882352941176471
byte vera_get_layer_backcolor(byte vera_get_layer_backcolor::layer)
byte vera_get_layer_backcolor::layer
byte vera_get_layer_backcolor::layer#0 reg byte a 11002.0
byte vera_get_layer_backcolor::layer#1 reg byte a 20002.0
byte vera_get_layer_backcolor::layer#0 reg byte a 20002.0
byte vera_get_layer_backcolor::layer#1 reg byte a 11002.0
byte vera_get_layer_backcolor::return
byte vera_get_layer_backcolor::return#0 reg byte a 2002.0
byte vera_get_layer_backcolor::return#1 reg byte a 3667.333333333333
byte vera_get_layer_backcolor::return#0 reg byte a 3667.333333333333
byte vera_get_layer_backcolor::return#2 reg byte a 2002.0
byte vera_get_layer_color(byte vera_get_layer_color::layer)
byte~ vera_get_layer_color::$0 reg byte a 2.000000000002E12
byte vera_get_layer_color::layer
byte vera_get_layer_color::layer#0 reg byte a 2.0000002E7
byte vera_get_layer_color::layer#1 reg byte a 2.00000000002E11
byte vera_get_layer_color::layer#2 reg byte x 1.5000000000015E12
byte vera_get_layer_color::layer#0 reg byte x 1.5000000000015E12
byte vera_get_layer_color::layer#1 reg byte a 2.0000002E7
byte vera_get_layer_color::layer#2 reg byte a 2.00000000002E11
byte vera_get_layer_color::layer#3 reg byte a 1.100010000003E12
byte vera_get_layer_color::return
byte vera_get_layer_color::return#0 reg byte a 2.0000002E7
byte vera_get_layer_color::return#1 reg byte a 2.00000000002E11
byte vera_get_layer_color::return#2 reg byte a 2.7500250000075E11
byte vera_get_layer_color::return#0 reg byte a 2.7500250000075E11
byte vera_get_layer_color::return#2 reg byte a 2.0000002E7
byte vera_get_layer_color::return#3 reg byte a 2.00000000002E11
byte vera_get_layer_config(byte vera_get_layer_config::layer)
byte* vera_get_layer_config::config
byte* vera_get_layer_config::config#0 config zp[2]:73 202.0
@ -352,8 +352,8 @@ byte* vera_get_layer_map_height::config#0 config zp[2]:67 2002.0
byte vera_get_layer_map_height::layer
byte vera_get_layer_map_height::layer#0 reg byte a 1102.0
word vera_get_layer_map_height::return
word vera_get_layer_map_height::return#0 return zp[2]:58 202.0
word vera_get_layer_map_height::return#1 return zp[2]:58 367.33333333333337
word vera_get_layer_map_height::return#0 return zp[2]:58 367.33333333333337
word vera_get_layer_map_height::return#2 return zp[2]:58 202.0
word vera_get_layer_map_width(byte vera_get_layer_map_width::layer)
byte~ vera_get_layer_map_width::$0 reg byte a 2002.0
byte~ vera_get_layer_map_width::$1 reg byte a 2002.0
@ -364,25 +364,25 @@ byte* vera_get_layer_map_width::config#0 config zp[2]:67 2002.0
byte vera_get_layer_map_width::layer
byte vera_get_layer_map_width::layer#0 reg byte a 1102.0
word vera_get_layer_map_width::return
word vera_get_layer_map_width::return#0 return zp[2]:62 202.0
word vera_get_layer_map_width::return#1 return zp[2]:62 367.33333333333337
word vera_get_layer_map_width::return#0 return zp[2]:62 367.33333333333337
word vera_get_layer_map_width::return#2 return zp[2]:62 202.0
byte vera_get_layer_mapbase(byte vera_get_layer_mapbase::layer)
byte~ vera_get_layer_mapbase::$0 reg byte a 2002.0
byte vera_get_layer_mapbase::layer
byte vera_get_layer_mapbase::layer#0 reg byte a 1102.0
byte vera_get_layer_mapbase::layer#1 reg byte a 2002.0
byte vera_get_layer_mapbase::layer#0 reg byte a 2002.0
byte vera_get_layer_mapbase::layer#1 reg byte a 1102.0
byte* vera_get_layer_mapbase::mapbase
byte* vera_get_layer_mapbase::mapbase#0 mapbase zp[2]:67 2002.0
byte vera_get_layer_mapbase::return
byte vera_get_layer_mapbase::return#0 reg byte a 202.0
byte vera_get_layer_mapbase::return#1 reg byte a 367.33333333333337
byte vera_get_layer_mapbase::return#0 reg byte a 367.33333333333337
byte vera_get_layer_mapbase::return#2 reg byte a 202.0
byte vera_get_layer_textcolor(byte vera_get_layer_textcolor::layer)
byte vera_get_layer_textcolor::layer
byte vera_get_layer_textcolor::layer#0 reg byte a 11002.0
byte vera_get_layer_textcolor::layer#1 reg byte a 20002.0
byte vera_get_layer_textcolor::layer#0 reg byte a 20002.0
byte vera_get_layer_textcolor::layer#1 reg byte a 11002.0
byte vera_get_layer_textcolor::return
byte vera_get_layer_textcolor::return#0 reg byte a 2002.0
byte vera_get_layer_textcolor::return#1 reg byte a 3667.333333333333
byte vera_get_layer_textcolor::return#0 reg byte a 3667.333333333333
byte vera_get_layer_textcolor::return#2 reg byte a 2002.0
byte vera_get_layer_tilebase(byte vera_get_layer_tilebase::layer)
byte vera_get_layer_tilebase::layer
byte vera_get_layer_tilebase::return
@ -415,7 +415,7 @@ byte vera_set_layer_backcolor(byte vera_set_layer_backcolor::layer , byte vera_s
byte vera_set_layer_backcolor::color
byte vera_set_layer_backcolor::color#6 reg byte x 50.5
byte vera_set_layer_backcolor::layer
byte vera_set_layer_backcolor::layer#1 reg byte a 202.0
byte vera_set_layer_backcolor::layer#0 reg byte a 202.0
byte vera_set_layer_backcolor::layer#2 reg byte a 22.0
byte vera_set_layer_backcolor::layer#3 reg byte a 22.0
byte vera_set_layer_backcolor::layer#4 reg byte a 22.0
@ -435,7 +435,7 @@ byte~ vera_set_layer_mapbase::$0 reg byte a 202.0
byte* vera_set_layer_mapbase::addr
byte* vera_set_layer_mapbase::addr#0 addr zp[2]:60 202.0
byte vera_set_layer_mapbase::layer
byte vera_set_layer_mapbase::layer#2 reg byte a 202.0
byte vera_set_layer_mapbase::layer#0 reg byte a 202.0
byte vera_set_layer_mapbase::layer#4 reg byte a 101.0
byte vera_set_layer_mapbase::mapbase
byte vera_set_layer_mapbase::mapbase#3 reg byte x 25.25
@ -443,7 +443,7 @@ byte vera_set_layer_textcolor(byte vera_set_layer_textcolor::layer , byte vera_s
byte vera_set_layer_textcolor::color
byte vera_set_layer_textcolor::color#7 reg byte x 50.5
byte vera_set_layer_textcolor::layer
byte vera_set_layer_textcolor::layer#1 reg byte a 202.0
byte vera_set_layer_textcolor::layer#0 reg byte a 202.0
byte vera_set_layer_textcolor::layer#2 reg byte a 22.0
byte vera_set_layer_textcolor::layer#3 reg byte a 22.0
byte vera_set_layer_textcolor::layer#4 reg byte a 22.0
@ -489,7 +489,7 @@ zp[1]:12 [ draw_characters::r#11 draw_characters::r#1 ]
zp[4]:13 [ draw_characters::tilecolumn#10 draw_characters::tilecolumn#13 draw_characters::tilecolumn#2 vera_vram_address0::bankaddr#0 ]
zp[1]:17 [ draw_characters::x#8 draw_characters::x#1 ]
zp[1]:18 [ draw_characters::b#2 draw_characters::b#1 ]
reg byte a [ vera_get_layer_color::layer#3 vera_get_layer_color::layer#1 vera_get_layer_color::layer#0 ]
reg byte a [ vera_get_layer_color::layer#3 vera_get_layer_color::layer#2 vera_get_layer_color::layer#1 ]
reg byte x [ insertup::i#2 insertup::i#1 ]
zp[1]:19 [ conio_screen_width ]
zp[1]:20 [ conio_screen_height ]
@ -528,28 +528,28 @@ reg byte a [ screensize::$1 ]
reg byte a [ screensize::vscale#0 ]
reg byte a [ screensize::$3 ]
reg byte a [ screenlayer::layer#1 ]
reg byte a [ vera_get_layer_mapbase::layer#0 ]
reg byte a [ vera_get_layer_mapbase::return#0 ]
reg byte a [ vera_get_layer_mapbase::layer#1 ]
reg byte a [ vera_get_layer_mapbase::return#2 ]
reg byte a [ screenlayer::addr#0 ]
zp[1]:53 [ CONIO_SCREEN_BANK#17 ]
zp[2]:54 [ CONIO_SCREEN_TEXT#19 ]
reg byte a [ vera_get_layer_map_width::layer#0 ]
zp[2]:56 [ screenlayer::$5 ]
reg byte a [ vera_get_layer_map_height::layer#0 ]
zp[2]:58 [ vera_get_layer_map_height::return#0 screenlayer::$6 vera_get_layer_map_height::return#1 ]
reg byte a [ vera_set_layer_textcolor::layer#1 ]
reg byte a [ vera_set_layer_backcolor::layer#1 ]
reg byte a [ vera_set_layer_mapbase::layer#2 ]
zp[2]:58 [ vera_get_layer_map_height::return#2 screenlayer::$6 vera_get_layer_map_height::return#0 ]
reg byte a [ vera_set_layer_textcolor::layer#0 ]
reg byte a [ vera_set_layer_backcolor::layer#0 ]
reg byte a [ vera_set_layer_mapbase::layer#0 ]
reg byte a [ vera_set_layer_mapbase::$0 ]
zp[2]:60 [ vera_set_layer_mapbase::addr#0 screenlayer::addr_i#0 ]
zp[2]:62 [ gotoxy::$6 gotoxy::line_offset#0 vera_get_layer_map_width::return#0 screenlayer::$4 vera_get_layer_map_width::return#1 ]
zp[2]:62 [ gotoxy::$6 gotoxy::line_offset#0 vera_get_layer_map_width::return#2 screenlayer::$4 vera_get_layer_map_width::return#0 ]
reg byte a [ gotoxy::$5 ]
reg byte a [ vera_get_layer_backcolor::layer#0 ]
reg byte a [ vera_get_layer_backcolor::return#0 ]
reg byte a [ vera_get_layer_backcolor::layer#1 ]
reg byte a [ vera_get_layer_backcolor::return#2 ]
reg byte a [ clrscr::$1 ]
zp[1]:64 [ clrscr::$2 clrscr::color#0 cputc::c#2 cputc::c#0 cputc::c#1 ]
reg byte a [ vera_get_layer_textcolor::layer#0 ]
reg byte a [ vera_get_layer_textcolor::return#0 ]
reg byte a [ vera_get_layer_textcolor::layer#1 ]
reg byte a [ vera_get_layer_textcolor::return#2 ]
reg byte a [ clrscr::$3 ]
reg byte a [ clrscr::$10 ]
reg byte a [ clrscr::$6 ]
@ -566,9 +566,9 @@ zp[1]:66 [ kbhit::ch ]
reg byte a [ kbhit::return#0 ]
reg byte a [ kbhit::return#1 ]
reg byte a [ cputs::c#1 ]
reg byte a [ vera_get_layer_mapbase::layer#1 ]
reg byte a [ vera_get_layer_mapbase::layer#0 ]
reg byte a [ vera_get_layer_mapbase::$0 ]
reg byte a [ vera_get_layer_mapbase::return#1 ]
reg byte a [ vera_get_layer_mapbase::return#0 ]
reg byte a [ vera_get_layer_map_width::$2 ]
reg byte a [ vera_get_layer_map_width::$0 ]
reg byte a [ vera_get_layer_map_width::$1 ]
@ -578,16 +578,16 @@ zp[2]:67 [ vera_get_layer_map_height::config#0 vera_get_layer_map_width::config#
reg byte a [ vera_get_layer_map_height::$0 ]
reg byte a [ vera_get_layer_map_height::$1 ]
reg byte a [ vera_get_layer_map_height::$3 ]
reg byte a [ vera_get_layer_backcolor::layer#1 ]
reg byte a [ vera_get_layer_backcolor::return#1 ]
reg byte a [ vera_get_layer_textcolor::layer#1 ]
reg byte a [ vera_get_layer_textcolor::return#1 ]
reg byte a [ vera_get_layer_backcolor::layer#0 ]
reg byte a [ vera_get_layer_backcolor::return#0 ]
reg byte a [ vera_get_layer_textcolor::layer#0 ]
reg byte a [ vera_get_layer_textcolor::return#0 ]
zp[2]:69 [ vera_vram_address0::$0 ]
zp[2]:71 [ vera_vram_address0::$1 ]
reg byte a [ vera_vram_address0::$2 ]
reg byte a [ vera_vram_address0::$3 ]
reg byte a [ vera_vram_address0::$5 ]
reg byte a [ vera_get_layer_color::return#0 ]
reg byte a [ vera_get_layer_color::return#2 ]
reg byte x [ cputc::color#0 ]
reg byte a [ cputc::$15 ]
zp[2]:73 [ cputc::conio_addr#0 cputc::conio_addr#1 vera_set_layer_tilebase::addr#0 vera_get_layer_tilebase::tilebase#0 vera_set_layer_config::addr#0 vera_get_layer_config::config#0 clrscr::skip#0 ]
@ -597,9 +597,9 @@ reg byte a [ cputc::$5 ]
reg byte a [ cputc::$6 ]
reg byte a [ cputc::scroll_enable#0 ]
zp[2]:75 [ cputc::$16 ]
reg byte x [ vera_get_layer_color::layer#2 ]
reg byte x [ vera_get_layer_color::layer#0 ]
reg byte a [ vera_get_layer_color::$0 ]
reg byte a [ vera_get_layer_color::return#2 ]
reg byte a [ vera_get_layer_color::return#0 ]
reg byte a [ cputln::$3 ]
zp[2]:77 [ cputln::temp#0 cputln::temp#1 ]
zp[2]:79 [ cputln::$5 ]
@ -613,7 +613,7 @@ reg byte a [ clearline::$5 ]
zp[2]:87 [ clearline::addr#0 memcpy_in_vram::num#0 ]
reg byte a [ clearline::$1 ]
reg byte a [ clearline::$2 ]
reg byte a [ vera_get_layer_color::return#1 ]
reg byte a [ vera_get_layer_color::return#3 ]
reg byte x [ clearline::color#0 ]
reg byte a [ memcpy_in_vram::$0 ]
reg byte a [ memcpy_in_vram::$1 ]

View File

@ -1470,8 +1470,8 @@ vera_set_layer_tilebase: {
// - layer: Value of 0 or 1.
// vera_get_layer_map_width(byte register(A) layer)
vera_get_layer_map_width: {
.label return = $1a
.label config = $23
.label return = $1a
// config = vera_layer_config[layer]
asl
tay
@ -1500,8 +1500,8 @@ vera_get_layer_map_width: {
}
// vera_get_layer_map_height(byte register(A) layer)
vera_get_layer_map_height: {
.label return = $16
.label config = $23
.label return = $16
// config = vera_layer_config[layer]
asl
tay
@ -1563,7 +1563,7 @@ vera_get_layer_textcolor: {
// - return: an 8 bit value with bit 7:4 containing the back color and bit 3:0 containing the front color.
// This will only work when the VERA is in 16 color mode!
// Note that on the VERA, the transparent color has value 0.
// vera_get_layer_color(byte register(A) layer)
// vera_get_layer_color(byte register(X) layer)
vera_get_layer_color: {
// layer &= $1
and #1
@ -2009,6 +2009,15 @@ memcpy_in_vram: {
jmp __b1
}
.segment Data
// --- VERA layer management ---
vera_layer_config: .word VERA_L0_CONFIG, VERA_L1_CONFIG
vera_layer_enable: .byte VERA_LAYER0_ENABLE, VERA_LAYER1_ENABLE
vera_layer_mapbase: .word VERA_L0_MAPBASE, VERA_L1_MAPBASE
vera_layer_tilebase: .word VERA_L0_TILEBASE, VERA_L1_TILEBASE
vera_layer_textcolor: .byte WHITE, WHITE
vera_layer_backcolor: .byte BLUE, BLUE
VERA_CONFIG_WIDTH: .word $20, $40, $80, $100
VERA_CONFIG_HEIGHT: .word $20, $40, $80, $100
// The number of bytes on the screen
// The current cursor x-position
conio_cursor_x: .byte 0, 0
@ -2029,14 +2038,5 @@ memcpy_in_vram: {
RADIX_DECIMAL_VALUES_CHAR: .byte $64, $a
// Values of hexadecimal digits
RADIX_HEXADECIMAL_VALUES_CHAR: .byte $10
// --- VERA layer management ---
vera_layer_config: .word VERA_L0_CONFIG, VERA_L1_CONFIG
vera_layer_enable: .byte VERA_LAYER0_ENABLE, VERA_LAYER1_ENABLE
vera_layer_mapbase: .word VERA_L0_MAPBASE, VERA_L1_MAPBASE
vera_layer_tilebase: .word VERA_L0_TILEBASE, VERA_L1_TILEBASE
vera_layer_textcolor: .byte WHITE, WHITE
vera_layer_backcolor: .byte BLUE, BLUE
VERA_CONFIG_WIDTH: .word $20, $40, $80, $100
VERA_CONFIG_HEIGHT: .word $20, $40, $80, $100
// Buffer used for stringified number being printed
printf_buffer: .fill SIZEOF_STRUCT_PRINTF_BUFFER_NUMBER, 0

View File

@ -188,7 +188,7 @@ main::@42: scope:[main] from main::@41
main::@43: scope:[main] from main::@42
[91] phi()
[92] call vera_get_layer_mapbase
[93] vera_get_layer_mapbase::return#3 = vera_get_layer_mapbase::return#1
[93] vera_get_layer_mapbase::return#3 = vera_get_layer_mapbase::return#0
to:main::@44
main::@44: scope:[main] from main::@43
[94] main::mapbase#0 = vera_get_layer_mapbase::return#3
@ -303,7 +303,7 @@ main::@63: scope:[main] from main::@62
main::@64: scope:[main] from main::@63
[152] phi()
[153] call vera_get_layer_mapbase
[154] vera_get_layer_mapbase::return#4 = vera_get_layer_mapbase::return#1
[154] vera_get_layer_mapbase::return#4 = vera_get_layer_mapbase::return#0
to:main::@65
main::@65: scope:[main] from main::@64
[155] main::mapbase#1 = vera_get_layer_mapbase::return#4
@ -568,30 +568,30 @@ screenlayer: scope:[screenlayer] from conio_x16_init::@3 main::@26 main::@71 ma
[286] screenlayer::layer#5 = phi( conio_x16_init::@3/1, main::@77/1, main::@26/1, main::@71/0 )
[287] screenlayer::layer#1 = screenlayer::layer#5 & 1
[288] conio_screen_layer = screenlayer::layer#1
[289] vera_get_layer_mapbase::layer#0 = screenlayer::layer#1
[289] vera_get_layer_mapbase::layer#1 = screenlayer::layer#1
[290] call vera_get_layer_mapbase
[291] vera_get_layer_mapbase::return#0 = vera_get_layer_mapbase::return#1
[291] vera_get_layer_mapbase::return#2 = vera_get_layer_mapbase::return#0
to:screenlayer::@1
screenlayer::@1: scope:[screenlayer] from screenlayer
[292] screenlayer::addr#0 = vera_get_layer_mapbase::return#0
[292] screenlayer::addr#0 = vera_get_layer_mapbase::return#2
[293] screenlayer::addr_i#0 = screenlayer::addr#0 << 1
[294] CONIO_SCREEN_BANK#16 = > screenlayer::addr_i#0
[295] CONIO_SCREEN_TEXT#18 = screenlayer::addr_i#0 << 8
[296] vera_get_layer_map_width::layer#0 = conio_screen_layer
[297] call vera_get_layer_map_width
[298] vera_get_layer_map_width::return#0 = vera_get_layer_map_width::return#1
[298] vera_get_layer_map_width::return#2 = vera_get_layer_map_width::return#0
to:screenlayer::@2
screenlayer::@2: scope:[screenlayer] from screenlayer::@1
[299] screenlayer::$4 = vera_get_layer_map_width::return#0
[299] screenlayer::$4 = vera_get_layer_map_width::return#2
[300] conio_width = screenlayer::$4
[301] screenlayer::$5 = conio_width >> 4
[302] conio_skip = (byte)screenlayer::$5
[303] vera_get_layer_map_height::layer#0 = conio_screen_layer
[304] call vera_get_layer_map_height
[305] vera_get_layer_map_height::return#0 = vera_get_layer_map_height::return#1
[305] vera_get_layer_map_height::return#2 = vera_get_layer_map_height::return#0
to:screenlayer::@3
screenlayer::@3: scope:[screenlayer] from screenlayer::@2
[306] screenlayer::$6 = vera_get_layer_map_height::return#0
[306] screenlayer::$6 = vera_get_layer_map_height::return#2
[307] conio_height = screenlayer::$6
to:screenlayer::@return
screenlayer::@return: scope:[screenlayer] from screenlayer::@3
@ -602,8 +602,8 @@ byte vera_set_layer_textcolor(byte vera_set_layer_textcolor::layer , byte vera_s
vera_set_layer_textcolor: scope:[vera_set_layer_textcolor] from conio_x16_init::@4 main::textcolor1 main::textcolor10 main::textcolor11 main::textcolor12 main::textcolor2 main::textcolor3 main::textcolor4 main::textcolor5 main::textcolor6 main::textcolor7 main::textcolor8 main::textcolor9
[309] vera_set_layer_textcolor::color#13 = phi( conio_x16_init::@4/WHITE, main::textcolor1/WHITE, main::textcolor10/WHITE, main::textcolor11/YELLOW, main::textcolor12/RED, main::textcolor2/YELLOW, main::textcolor3/GREEN, main::textcolor4/YELLOW, main::textcolor5/WHITE, main::textcolor6/BLUE, main::textcolor7/YELLOW, main::textcolor8/WHITE, main::textcolor9/YELLOW )
[309] vera_set_layer_textcolor::layer#14 = phi( conio_x16_init::@4/1, main::textcolor1/vera_set_layer_textcolor::layer#2, main::textcolor10/vera_set_layer_textcolor::layer#11, main::textcolor11/vera_set_layer_textcolor::layer#12, main::textcolor12/vera_set_layer_textcolor::layer#13, main::textcolor2/vera_set_layer_textcolor::layer#3, main::textcolor3/vera_set_layer_textcolor::layer#4, main::textcolor4/vera_set_layer_textcolor::layer#5, main::textcolor5/vera_set_layer_textcolor::layer#6, main::textcolor6/vera_set_layer_textcolor::layer#7, main::textcolor7/vera_set_layer_textcolor::layer#8, main::textcolor8/vera_set_layer_textcolor::layer#9, main::textcolor9/vera_set_layer_textcolor::layer#10 )
[310] vera_set_layer_textcolor::layer#1 = vera_set_layer_textcolor::layer#14 & 1
[311] vera_layer_textcolor[vera_set_layer_textcolor::layer#1] = vera_set_layer_textcolor::color#13
[310] vera_set_layer_textcolor::layer#0 = vera_set_layer_textcolor::layer#14 & 1
[311] vera_layer_textcolor[vera_set_layer_textcolor::layer#0] = vera_set_layer_textcolor::color#13
to:vera_set_layer_textcolor::@return
vera_set_layer_textcolor::@return: scope:[vera_set_layer_textcolor] from vera_set_layer_textcolor
[312] return
@ -613,8 +613,8 @@ byte vera_set_layer_backcolor(byte vera_set_layer_backcolor::layer , byte vera_s
vera_set_layer_backcolor: scope:[vera_set_layer_backcolor] from conio_x16_init::@5 main::bgcolor1 main::bgcolor2 main::bgcolor3 main::bgcolor4 main::bgcolor5 main::bgcolor6 main::bgcolor7 main::bgcolor8 main::bgcolor9
[313] vera_set_layer_backcolor::color#10 = phi( conio_x16_init::@5/BLUE, main::bgcolor1/BLACK, main::bgcolor2/BLACK, main::bgcolor3/WHITE, main::bgcolor4/BLACK, main::bgcolor5/BLACK, main::bgcolor6/BLACK, main::bgcolor7/BLACK, main::bgcolor8/BLACK, main::bgcolor9/WHITE )
[313] vera_set_layer_backcolor::layer#11 = phi( conio_x16_init::@5/1, main::bgcolor1/vera_set_layer_backcolor::layer#2, main::bgcolor2/vera_set_layer_backcolor::layer#3, main::bgcolor3/vera_set_layer_backcolor::layer#4, main::bgcolor4/vera_set_layer_backcolor::layer#5, main::bgcolor5/vera_set_layer_backcolor::layer#6, main::bgcolor6/vera_set_layer_backcolor::layer#7, main::bgcolor7/vera_set_layer_backcolor::layer#8, main::bgcolor8/vera_set_layer_backcolor::layer#9, main::bgcolor9/vera_set_layer_backcolor::layer#10 )
[314] vera_set_layer_backcolor::layer#1 = vera_set_layer_backcolor::layer#11 & 1
[315] vera_layer_backcolor[vera_set_layer_backcolor::layer#1] = vera_set_layer_backcolor::color#10
[314] vera_set_layer_backcolor::layer#0 = vera_set_layer_backcolor::layer#11 & 1
[315] vera_layer_backcolor[vera_set_layer_backcolor::layer#0] = vera_set_layer_backcolor::color#10
to:vera_set_layer_backcolor::@return
vera_set_layer_backcolor::@return: scope:[vera_set_layer_backcolor] from vera_set_layer_backcolor
[316] return
@ -624,8 +624,8 @@ void vera_set_layer_mapbase(byte vera_set_layer_mapbase::layer , byte vera_set_l
vera_set_layer_mapbase: scope:[vera_set_layer_mapbase] from conio_x16_init::@6 conio_x16_init::@7 main::@51
[317] vera_set_layer_mapbase::mapbase#3 = phi( conio_x16_init::@6/$20, conio_x16_init::@7/0, main::@51/$80 )
[317] vera_set_layer_mapbase::layer#4 = phi( conio_x16_init::@6/0, conio_x16_init::@7/1, main::@51/0 )
[318] vera_set_layer_mapbase::layer#2 = vera_set_layer_mapbase::layer#4 & 1
[319] vera_set_layer_mapbase::$0 = vera_set_layer_mapbase::layer#2 << 1
[318] vera_set_layer_mapbase::layer#0 = vera_set_layer_mapbase::layer#4 & 1
[319] vera_set_layer_mapbase::$0 = vera_set_layer_mapbase::layer#0 << 1
[320] vera_set_layer_mapbase::addr#0 = vera_layer_mapbase[vera_set_layer_mapbase::$0]
[321] *vera_set_layer_mapbase::addr#0 = vera_set_layer_mapbase::mapbase#3
to:vera_set_layer_mapbase::@return
@ -666,19 +666,19 @@ void clrscr()
clrscr: scope:[clrscr] from main::@11 main::@17 main::@87
[337] clrscr::line_text#0 = (byte*)CONIO_SCREEN_TEXT#18
[338] clrscr::skip#0 = 1 << conio_skip
[339] vera_get_layer_backcolor::layer#0 = conio_screen_layer
[339] vera_get_layer_backcolor::layer#1 = conio_screen_layer
[340] call vera_get_layer_backcolor
[341] vera_get_layer_backcolor::return#0 = vera_get_layer_backcolor::return#1
[341] vera_get_layer_backcolor::return#2 = vera_get_layer_backcolor::return#0
to:clrscr::@7
clrscr::@7: scope:[clrscr] from clrscr
[342] clrscr::$1 = vera_get_layer_backcolor::return#0
[342] clrscr::$1 = vera_get_layer_backcolor::return#2
[343] clrscr::$2 = clrscr::$1 << 4
[344] vera_get_layer_textcolor::layer#0 = conio_screen_layer
[344] vera_get_layer_textcolor::layer#1 = conio_screen_layer
[345] call vera_get_layer_textcolor
[346] vera_get_layer_textcolor::return#0 = vera_get_layer_textcolor::return#1
[346] vera_get_layer_textcolor::return#2 = vera_get_layer_textcolor::return#0
to:clrscr::@8
clrscr::@8: scope:[clrscr] from clrscr::@7
[347] clrscr::$3 = vera_get_layer_textcolor::return#0
[347] clrscr::$3 = vera_get_layer_textcolor::return#2
[348] clrscr::color#0 = clrscr::$2 | clrscr::$3
to:clrscr::@1
clrscr::@1: scope:[clrscr] from clrscr::@6 clrscr::@8
@ -785,12 +785,12 @@ clearline: scope:[clearline] from insertup::@3 main::@10 main::@2 main::@4 main
[388] clearline::$2 = > clearline::addr#0
[389] *VERA_ADDRX_M = clearline::$2
[390] *VERA_ADDRX_H = VERA_INC_1
[391] vera_get_layer_color::layer#1 = conio_screen_layer
[391] vera_get_layer_color::layer#2 = conio_screen_layer
[392] call vera_get_layer_color
[393] vera_get_layer_color::return#1 = vera_get_layer_color::return#2
[393] vera_get_layer_color::return#3 = vera_get_layer_color::return#0
to:clearline::@4
clearline::@4: scope:[clearline] from clearline
[394] clearline::color#0 = vera_get_layer_color::return#1
[394] clearline::color#0 = vera_get_layer_color::return#3
to:clearline::@1
clearline::@1: scope:[clearline] from clearline::@2 clearline::@4
[395] clearline::c#2 = phi( clearline::@2/clearline::c#1, clearline::@4/0 )
@ -852,12 +852,12 @@ vera_is_layer_shown::@return: scope:[vera_is_layer_shown] from vera_is_layer_sh
void cputc(byte cputc::c)
cputc: scope:[cputc] from cputs::@2 main::@41 printf_number_buffer::@3
[420] cputc::c#4 = phi( cputs::@2/cputc::c#0, main::@41/cputc::c#3, printf_number_buffer::@3/cputc::c#2 )
[421] vera_get_layer_color::layer#0 = conio_screen_layer
[421] vera_get_layer_color::layer#1 = conio_screen_layer
[422] call vera_get_layer_color
[423] vera_get_layer_color::return#0 = vera_get_layer_color::return#2
[423] vera_get_layer_color::return#2 = vera_get_layer_color::return#0
to:cputc::@7
cputc::@7: scope:[cputc] from cputc
[424] cputc::color#0 = vera_get_layer_color::return#0
[424] cputc::color#0 = vera_get_layer_color::return#2
[425] cputc::$15 = conio_screen_layer << 1
[426] cputc::conio_addr#0 = (byte*)CONIO_SCREEN_TEXT#18 + conio_line_text[cputc::$15]
[427] cputc::$2 = conio_cursor_x[conio_screen_layer] << 1
@ -904,11 +904,11 @@ cputc::@1: scope:[cputc] from cputc::@7
byte vera_get_layer_mapbase(byte vera_get_layer_mapbase::layer)
vera_get_layer_mapbase: scope:[vera_get_layer_mapbase] from main::@43 main::@64 screenlayer
[452] vera_get_layer_mapbase::layer#4 = phi( main::@43/1, main::@64/0, screenlayer/vera_get_layer_mapbase::layer#0 )
[453] vera_get_layer_mapbase::layer#1 = vera_get_layer_mapbase::layer#4 & 1
[454] vera_get_layer_mapbase::$0 = vera_get_layer_mapbase::layer#1 << 1
[452] vera_get_layer_mapbase::layer#4 = phi( main::@43/1, main::@64/0, screenlayer/vera_get_layer_mapbase::layer#1 )
[453] vera_get_layer_mapbase::layer#0 = vera_get_layer_mapbase::layer#4 & 1
[454] vera_get_layer_mapbase::$0 = vera_get_layer_mapbase::layer#0 << 1
[455] vera_get_layer_mapbase::mapbase#0 = vera_layer_mapbase[vera_get_layer_mapbase::$0]
[456] vera_get_layer_mapbase::return#1 = *vera_get_layer_mapbase::mapbase#0
[456] vera_get_layer_mapbase::return#0 = *vera_get_layer_mapbase::mapbase#0
to:vera_get_layer_mapbase::@return
vera_get_layer_mapbase::@return: scope:[vera_get_layer_mapbase] from vera_get_layer_mapbase
[457] return
@ -951,7 +951,7 @@ vera_get_layer_map_width: scope:[vera_get_layer_map_width] from screenlayer::@1
[472] vera_get_layer_map_width::$0 = *vera_get_layer_map_width::config#0 & VERA_CONFIG_WIDTH_MASK
[473] vera_get_layer_map_width::$1 = vera_get_layer_map_width::$0 >> 4
[474] vera_get_layer_map_width::$3 = vera_get_layer_map_width::$1 << 1
[475] vera_get_layer_map_width::return#1 = VERA_CONFIG_WIDTH[vera_get_layer_map_width::$3]
[475] vera_get_layer_map_width::return#0 = VERA_CONFIG_WIDTH[vera_get_layer_map_width::$3]
to:vera_get_layer_map_width::@return
vera_get_layer_map_width::@return: scope:[vera_get_layer_map_width] from vera_get_layer_map_width
[476] return
@ -964,7 +964,7 @@ vera_get_layer_map_height: scope:[vera_get_layer_map_height] from screenlayer::
[479] vera_get_layer_map_height::$0 = *vera_get_layer_map_height::config#0 & VERA_CONFIG_HEIGHT_MASK
[480] vera_get_layer_map_height::$1 = vera_get_layer_map_height::$0 >> 6
[481] vera_get_layer_map_height::$3 = vera_get_layer_map_height::$1 << 1
[482] vera_get_layer_map_height::return#1 = VERA_CONFIG_HEIGHT[vera_get_layer_map_height::$3]
[482] vera_get_layer_map_height::return#0 = VERA_CONFIG_HEIGHT[vera_get_layer_map_height::$3]
to:vera_get_layer_map_height::@return
vera_get_layer_map_height::@return: scope:[vera_get_layer_map_height] from vera_get_layer_map_height
[483] return
@ -972,8 +972,8 @@ vera_get_layer_map_height::@return: scope:[vera_get_layer_map_height] from vera
byte vera_get_layer_backcolor(byte vera_get_layer_backcolor::layer)
vera_get_layer_backcolor: scope:[vera_get_layer_backcolor] from clrscr
[484] vera_get_layer_backcolor::layer#1 = vera_get_layer_backcolor::layer#0 & 1
[485] vera_get_layer_backcolor::return#1 = vera_layer_backcolor[vera_get_layer_backcolor::layer#1]
[484] vera_get_layer_backcolor::layer#0 = vera_get_layer_backcolor::layer#1 & 1
[485] vera_get_layer_backcolor::return#0 = vera_layer_backcolor[vera_get_layer_backcolor::layer#0]
to:vera_get_layer_backcolor::@return
vera_get_layer_backcolor::@return: scope:[vera_get_layer_backcolor] from vera_get_layer_backcolor
[486] return
@ -981,8 +981,8 @@ vera_get_layer_backcolor::@return: scope:[vera_get_layer_backcolor] from vera_g
byte vera_get_layer_textcolor(byte vera_get_layer_textcolor::layer)
vera_get_layer_textcolor: scope:[vera_get_layer_textcolor] from clrscr::@7
[487] vera_get_layer_textcolor::layer#1 = vera_get_layer_textcolor::layer#0 & 1
[488] vera_get_layer_textcolor::return#1 = vera_layer_textcolor[vera_get_layer_textcolor::layer#1]
[487] vera_get_layer_textcolor::layer#0 = vera_get_layer_textcolor::layer#1 & 1
[488] vera_get_layer_textcolor::return#0 = vera_layer_textcolor[vera_get_layer_textcolor::layer#0]
to:vera_get_layer_textcolor::@return
vera_get_layer_textcolor::@return: scope:[vera_get_layer_textcolor] from vera_get_layer_textcolor
[489] return
@ -990,10 +990,10 @@ vera_get_layer_textcolor::@return: scope:[vera_get_layer_textcolor] from vera_g
byte vera_get_layer_color(byte vera_get_layer_color::layer)
vera_get_layer_color: scope:[vera_get_layer_color] from clearline cputc
[490] vera_get_layer_color::layer#3 = phi( clearline/vera_get_layer_color::layer#1, cputc/vera_get_layer_color::layer#0 )
[491] vera_get_layer_color::layer#2 = vera_get_layer_color::layer#3 & 1
[492] vera_get_layer_color::$0 = vera_layer_backcolor[vera_get_layer_color::layer#2] << 4
[493] vera_get_layer_color::return#2 = vera_get_layer_color::$0 | vera_layer_textcolor[vera_get_layer_color::layer#2]
[490] vera_get_layer_color::layer#3 = phi( clearline/vera_get_layer_color::layer#2, cputc/vera_get_layer_color::layer#1 )
[491] vera_get_layer_color::layer#0 = vera_get_layer_color::layer#3 & 1
[492] vera_get_layer_color::$0 = vera_layer_backcolor[vera_get_layer_color::layer#0] << 4
[493] vera_get_layer_color::return#0 = vera_get_layer_color::$0 | vera_layer_textcolor[vera_get_layer_color::layer#0]
to:vera_get_layer_color::@return
vera_get_layer_color::@return: scope:[vera_get_layer_color] from vera_get_layer_color
[494] return

File diff suppressed because one or more lines are too long

View File

@ -365,22 +365,22 @@ byte uctoa_append::value#1 reg byte x 2.0000002E7
byte uctoa_append::value#2 reg byte x 5018334.166666666
byte vera_get_layer_backcolor(byte vera_get_layer_backcolor::layer)
byte vera_get_layer_backcolor::layer
byte vera_get_layer_backcolor::layer#0 reg byte a 1102.0
byte vera_get_layer_backcolor::layer#1 reg byte a 2002.0
byte vera_get_layer_backcolor::layer#0 reg byte a 2002.0
byte vera_get_layer_backcolor::layer#1 reg byte a 1102.0
byte vera_get_layer_backcolor::return
byte vera_get_layer_backcolor::return#0 reg byte a 202.0
byte vera_get_layer_backcolor::return#1 reg byte a 367.33333333333337
byte vera_get_layer_backcolor::return#0 reg byte a 367.33333333333337
byte vera_get_layer_backcolor::return#2 reg byte a 202.0
byte vera_get_layer_color(byte vera_get_layer_color::layer)
byte~ vera_get_layer_color::$0 reg byte a 2.00000000002E11
byte vera_get_layer_color::layer
byte vera_get_layer_color::layer#0 reg byte a 2000002.0
byte vera_get_layer_color::layer#1 reg byte a 2.0000000002E10
byte vera_get_layer_color::layer#2 reg byte x 1.500000000015E11
byte vera_get_layer_color::layer#0 reg byte x 1.500000000015E11
byte vera_get_layer_color::layer#1 reg byte a 2000002.0
byte vera_get_layer_color::layer#2 reg byte a 2.0000000002E10
byte vera_get_layer_color::layer#3 reg byte a 1.10001000003E11
byte vera_get_layer_color::return
byte vera_get_layer_color::return#0 reg byte a 2000002.0
byte vera_get_layer_color::return#1 reg byte a 2.0000000002E10
byte vera_get_layer_color::return#2 reg byte a 2.750025000075E10
byte vera_get_layer_color::return#0 reg byte a 2.750025000075E10
byte vera_get_layer_color::return#2 reg byte a 2000002.0
byte vera_get_layer_color::return#3 reg byte a 2.0000000002E10
byte vera_get_layer_config(byte vera_get_layer_config::layer)
byte~ vera_get_layer_config::$0 reg byte a 202.0
byte* vera_get_layer_config::config
@ -403,8 +403,8 @@ byte* vera_get_layer_map_height::config#0 config zp[2]:35 2002.0
byte vera_get_layer_map_height::layer
byte vera_get_layer_map_height::layer#0 reg byte a 1102.0
word vera_get_layer_map_height::return
word vera_get_layer_map_height::return#0 return zp[2]:22 202.0
word vera_get_layer_map_height::return#1 return zp[2]:22 367.33333333333337
word vera_get_layer_map_height::return#0 return zp[2]:22 367.33333333333337
word vera_get_layer_map_height::return#2 return zp[2]:22 202.0
word vera_get_layer_map_width(byte vera_get_layer_map_width::layer)
byte~ vera_get_layer_map_width::$0 reg byte a 2002.0
byte~ vera_get_layer_map_width::$1 reg byte a 2002.0
@ -415,28 +415,28 @@ byte* vera_get_layer_map_width::config#0 config zp[2]:35 2002.0
byte vera_get_layer_map_width::layer
byte vera_get_layer_map_width::layer#0 reg byte a 1102.0
word vera_get_layer_map_width::return
word vera_get_layer_map_width::return#0 return zp[2]:26 202.0
word vera_get_layer_map_width::return#1 return zp[2]:26 367.33333333333337
word vera_get_layer_map_width::return#0 return zp[2]:26 367.33333333333337
word vera_get_layer_map_width::return#2 return zp[2]:26 202.0
byte vera_get_layer_mapbase(byte vera_get_layer_mapbase::layer)
byte~ vera_get_layer_mapbase::$0 reg byte a 2002.0
byte vera_get_layer_mapbase::layer
byte vera_get_layer_mapbase::layer#0 reg byte a 202.0
byte vera_get_layer_mapbase::layer#1 reg byte a 2002.0
byte vera_get_layer_mapbase::layer#0 reg byte a 2002.0
byte vera_get_layer_mapbase::layer#1 reg byte a 202.0
byte vera_get_layer_mapbase::layer#4 reg byte a 1102.0
byte* vera_get_layer_mapbase::mapbase
byte* vera_get_layer_mapbase::mapbase#0 mapbase zp[2]:35 2002.0
byte vera_get_layer_mapbase::return
byte vera_get_layer_mapbase::return#0 reg byte a 202.0
byte vera_get_layer_mapbase::return#1 reg byte a 224.79999999999998
byte vera_get_layer_mapbase::return#0 reg byte a 224.79999999999998
byte vera_get_layer_mapbase::return#2 reg byte a 202.0
byte vera_get_layer_mapbase::return#3 reg byte a 22.0
byte vera_get_layer_mapbase::return#4 reg byte a 22.0
byte vera_get_layer_textcolor(byte vera_get_layer_textcolor::layer)
byte vera_get_layer_textcolor::layer
byte vera_get_layer_textcolor::layer#0 reg byte a 1102.0
byte vera_get_layer_textcolor::layer#1 reg byte a 2002.0
byte vera_get_layer_textcolor::layer#0 reg byte a 2002.0
byte vera_get_layer_textcolor::layer#1 reg byte a 1102.0
byte vera_get_layer_textcolor::return
byte vera_get_layer_textcolor::return#0 reg byte a 202.0
byte vera_get_layer_textcolor::return#1 reg byte a 367.33333333333337
byte vera_get_layer_textcolor::return#0 reg byte a 367.33333333333337
byte vera_get_layer_textcolor::return#2 reg byte a 202.0
byte vera_get_layer_tilebase(byte vera_get_layer_tilebase::layer)
byte~ vera_get_layer_tilebase::$0 reg byte a 202.0
byte vera_get_layer_tilebase::layer
@ -469,7 +469,7 @@ byte vera_set_layer_backcolor(byte vera_set_layer_backcolor::layer , byte vera_s
byte vera_set_layer_backcolor::color
byte vera_set_layer_backcolor::color#10 reg byte x 50.5
byte vera_set_layer_backcolor::layer
byte vera_set_layer_backcolor::layer#1 reg byte a 202.0
byte vera_set_layer_backcolor::layer#0 reg byte a 202.0
byte vera_set_layer_backcolor::layer#10 reg byte a 22.0
byte vera_set_layer_backcolor::layer#11 reg byte a 200.0
byte vera_set_layer_backcolor::layer#2 reg byte a 22.0
@ -493,7 +493,7 @@ byte~ vera_set_layer_mapbase::$0 reg byte a 202.0
byte* vera_set_layer_mapbase::addr
byte* vera_set_layer_mapbase::addr#0 addr zp[2]:24 202.0
byte vera_set_layer_mapbase::layer
byte vera_set_layer_mapbase::layer#2 reg byte a 202.0
byte vera_set_layer_mapbase::layer#0 reg byte a 202.0
byte vera_set_layer_mapbase::layer#4 reg byte a 101.0
byte vera_set_layer_mapbase::mapbase
byte vera_set_layer_mapbase::mapbase#3 reg byte x 25.25
@ -501,7 +501,7 @@ byte vera_set_layer_textcolor(byte vera_set_layer_textcolor::layer , byte vera_s
byte vera_set_layer_textcolor::color
byte vera_set_layer_textcolor::color#13 reg byte x 50.5
byte vera_set_layer_textcolor::layer
byte vera_set_layer_textcolor::layer#1 reg byte a 202.0
byte vera_set_layer_textcolor::layer#0 reg byte a 202.0
byte vera_set_layer_textcolor::layer#10 reg byte a 22.0
byte vera_set_layer_textcolor::layer#11 reg byte a 22.0
byte vera_set_layer_textcolor::layer#12 reg byte a 22.0
@ -540,9 +540,9 @@ zp[1]:3 [ printf_uchar::uvalue#12 printf_uchar::uvalue#10 printf_uchar::uvalue#1
reg byte y [ printf_uchar::format_radix#12 ]
reg byte a [ vera_get_layer_config::layer#5 ]
reg byte a [ vera_is_layer_shown::layer#5 ]
reg byte a [ vera_get_layer_mapbase::layer#4 vera_get_layer_mapbase::layer#0 ]
reg byte a [ vera_get_layer_mapbase::layer#4 vera_get_layer_mapbase::layer#1 ]
reg byte a [ vera_get_layer_tilebase::layer#4 ]
reg byte a [ vera_get_layer_color::layer#3 vera_get_layer_color::layer#1 vera_get_layer_color::layer#0 ]
reg byte a [ vera_get_layer_color::layer#3 vera_get_layer_color::layer#2 vera_get_layer_color::layer#1 ]
zp[1]:4 [ uctoa::max_digits#7 cputc::c#4 cputc::c#0 cputc::c#3 cputc::c#2 ]
reg byte x [ uctoa::value#2 uctoa::value#6 uctoa::value#1 uctoa::value#0 ]
reg byte x [ uctoa_append::value#2 uctoa_append::value#0 uctoa_append::value#1 ]
@ -588,26 +588,26 @@ reg byte a [ screensize::$1 ]
reg byte a [ screensize::vscale#0 ]
reg byte a [ screensize::$3 ]
reg byte a [ screenlayer::layer#1 ]
reg byte a [ vera_get_layer_mapbase::return#0 ]
reg byte a [ vera_get_layer_mapbase::return#2 ]
reg byte a [ screenlayer::addr#0 ]
zp[1]:17 [ CONIO_SCREEN_BANK#16 ]
zp[2]:18 [ CONIO_SCREEN_TEXT#18 ]
reg byte a [ vera_get_layer_map_width::layer#0 ]
zp[2]:20 [ screenlayer::$5 ]
reg byte a [ vera_get_layer_map_height::layer#0 ]
zp[2]:22 [ vera_get_layer_map_height::return#0 screenlayer::$6 vera_get_layer_map_height::return#1 ]
reg byte a [ vera_set_layer_textcolor::layer#1 ]
reg byte a [ vera_set_layer_backcolor::layer#1 ]
reg byte a [ vera_set_layer_mapbase::layer#2 ]
zp[2]:22 [ vera_get_layer_map_height::return#2 screenlayer::$6 vera_get_layer_map_height::return#0 ]
reg byte a [ vera_set_layer_textcolor::layer#0 ]
reg byte a [ vera_set_layer_backcolor::layer#0 ]
reg byte a [ vera_set_layer_mapbase::layer#0 ]
reg byte a [ vera_set_layer_mapbase::$0 ]
zp[2]:24 [ vera_set_layer_mapbase::addr#0 screenlayer::addr_i#0 ]
zp[2]:26 [ gotoxy::$6 gotoxy::line_offset#0 vera_get_layer_map_width::return#0 screenlayer::$4 vera_get_layer_map_width::return#1 ]
zp[2]:26 [ gotoxy::$6 gotoxy::line_offset#0 vera_get_layer_map_width::return#2 screenlayer::$4 vera_get_layer_map_width::return#0 ]
reg byte a [ gotoxy::$5 ]
reg byte a [ vera_get_layer_backcolor::layer#0 ]
reg byte a [ vera_get_layer_backcolor::return#0 ]
reg byte a [ vera_get_layer_backcolor::layer#1 ]
reg byte a [ vera_get_layer_backcolor::return#2 ]
reg byte a [ clrscr::$1 ]
reg byte a [ vera_get_layer_textcolor::layer#0 ]
reg byte a [ vera_get_layer_textcolor::return#0 ]
reg byte a [ vera_get_layer_textcolor::layer#1 ]
reg byte a [ vera_get_layer_textcolor::return#2 ]
reg byte a [ clrscr::$3 ]
reg byte a [ clrscr::$10 ]
reg byte a [ clrscr::$6 ]
@ -620,7 +620,7 @@ reg byte a [ kbhit::return#1 ]
reg byte a [ clearline::$5 ]
reg byte a [ clearline::$1 ]
reg byte a [ clearline::$2 ]
reg byte a [ vera_get_layer_color::return#1 ]
reg byte a [ vera_get_layer_color::return#3 ]
reg byte x [ clearline::color#0 ]
reg byte y [ uctoa::radix#0 ]
reg byte a [ printf_number_buffer::buffer_sign#0 ]
@ -629,7 +629,7 @@ reg byte a [ vera_get_layer_config::$0 ]
reg byte a [ vera_get_layer_config::return#0 ]
reg byte a [ vera_is_layer_shown::layer#0 ]
reg byte a [ vera_is_layer_shown::return#0 ]
reg byte a [ vera_get_layer_color::return#0 ]
reg byte a [ vera_get_layer_color::return#2 ]
reg byte x [ cputc::color#0 ]
reg byte a [ cputc::$15 ]
zp[2]:29 [ cputc::conio_addr#0 cputc::conio_addr#1 vera_get_layer_config::config#0 uctoa::digit_values#8 clearline::c#2 clearline::c#1 ]
@ -638,9 +638,9 @@ reg byte a [ cputc::$4 ]
reg byte a [ cputc::$5 ]
reg byte a [ cputc::$6 ]
reg byte a [ cputc::scroll_enable#0 ]
reg byte a [ vera_get_layer_mapbase::layer#1 ]
reg byte a [ vera_get_layer_mapbase::layer#0 ]
reg byte a [ vera_get_layer_mapbase::$0 ]
reg byte a [ vera_get_layer_mapbase::return#1 ]
reg byte a [ vera_get_layer_mapbase::return#0 ]
reg byte a [ vera_get_layer_tilebase::layer#0 ]
reg byte a [ vera_get_layer_tilebase::$0 ]
zp[2]:31 [ vera_get_layer_tilebase::tilebase#0 cputc::$16 clearline::addr#0 clrscr::skip#0 memcpy_in_vram::i#2 memcpy_in_vram::i#1 uctoa::buffer#11 uctoa::buffer#14 uctoa::buffer#4 uctoa::buffer#3 uctoa_append::buffer#0 ]
@ -655,13 +655,13 @@ zp[2]:35 [ vera_get_layer_map_height::config#0 vera_get_layer_map_width::config#
reg byte a [ vera_get_layer_map_height::$0 ]
reg byte a [ vera_get_layer_map_height::$1 ]
reg byte a [ vera_get_layer_map_height::$3 ]
reg byte a [ vera_get_layer_backcolor::layer#1 ]
reg byte a [ vera_get_layer_backcolor::return#1 ]
reg byte a [ vera_get_layer_textcolor::layer#1 ]
reg byte a [ vera_get_layer_textcolor::return#1 ]
reg byte x [ vera_get_layer_color::layer#2 ]
reg byte a [ vera_get_layer_backcolor::layer#0 ]
reg byte a [ vera_get_layer_backcolor::return#0 ]
reg byte a [ vera_get_layer_textcolor::layer#0 ]
reg byte a [ vera_get_layer_textcolor::return#0 ]
reg byte x [ vera_get_layer_color::layer#0 ]
reg byte a [ vera_get_layer_color::$0 ]
reg byte a [ vera_get_layer_color::return#2 ]
reg byte a [ vera_get_layer_color::return#0 ]
reg byte a [ uctoa::$4 ]
reg byte y [ uctoa::digit_value#0 ]
reg byte x [ uctoa_append::return#0 ]