diff --git a/src/test/kc/examples/tetris/test-sprites.kc b/src/test/kc/examples/tetris/test-sprites.kc index eb999a9de..3d179259c 100644 --- a/src/test/kc/examples/tetris/test-sprites.kc +++ b/src/test/kc/examples/tetris/test-sprites.kc @@ -1,11 +1,11 @@ import "tetris-sprites" void main() { - vicSelectGfxBank(PLAYFIELD_SCREEN); - *D018 = toD018(PLAYFIELD_SCREEN, PLAYFIELD_CHARSET); + vicSelectGfxBank(PLAYFIELD_SCREEN_1); + *D018 = toD018(PLAYFIELD_SCREEN_1, PLAYFIELD_CHARSET); sprites_init(); sprites_irq_init(); while(true) { - (*PLAYFIELD_SCREEN)++; + (*PLAYFIELD_SCREEN_1)++; } } diff --git a/src/test/kc/examples/tetris/tetris-data.kc b/src/test/kc/examples/tetris/tetris-data.kc index 3c965f7c0..f5a2c16a5 100644 --- a/src/test/kc/examples/tetris/tetris-data.kc +++ b/src/test/kc/examples/tetris/tetris-data.kc @@ -1,9 +1,15 @@ // Memory Layout and Shared Data -// Address of the screen -const byte* PLAYFIELD_SCREEN = $0400; -// Screen Sprite pointers -const byte* PLAYFIELD_SPRITE_PTRS = (PLAYFIELD_SCREEN+SPRITE_PTRS); +// Address of the first screen +const byte* PLAYFIELD_SCREEN_1 = $0400; +// Address of the second screen +const byte* PLAYFIELD_SCREEN_2 = $2c00; +// Screen Sprite pointers on screen 1 +const byte* PLAYFIELD_SPRITE_PTRS_1 = (PLAYFIELD_SCREEN_1+SPRITE_PTRS); +// Screen Sprite pointers on screen 2 +const byte* PLAYFIELD_SPRITE_PTRS_2 = (PLAYFIELD_SCREEN_2+SPRITE_PTRS); +// Address of the original playscreen chars +const byte* PLAYFIELD_SCREEN_ORIGINAL = $1800; // Address of the sprites covering the playfield const byte* PLAYFIELD_SPRITES = $2000; // Address of the charset diff --git a/src/test/kc/examples/tetris/tetris-render.kc b/src/test/kc/examples/tetris/tetris-render.kc index d20ecdd33..0774122e7 100644 --- a/src/test/kc/examples/tetris/tetris-render.kc +++ b/src/test/kc/examples/tetris/tetris-render.kc @@ -6,35 +6,35 @@ kickasm(pc PLAYFIELD_CHARSET, resource "nes-screen.imap") {{ }} const byte PLAYFIELD_SCREEN_ORIGINAL_WIDTH=32; -const byte* PLAYFIELD_SCREEN_ORIGINAL = $2c00; // Address of the screen data original kickasm(pc PLAYFIELD_SCREEN_ORIGINAL, resource "nes-screen.iscr") {{ .import binary "nes-screen.iscr" }} - // Pointers to the screen address for rendering each playfield line -byte*[PLAYFIELD_LINES] screen_lines; +// The lines for screen 1 is aligned with $80 and screen 2 with $40 - so XOR'ing with $40 gives screen 2 lines. +align($80) byte*[PLAYFIELD_LINES] screen_lines_1; +align($40) byte*[PLAYFIELD_LINES] screen_lines_2; + +// The screen currently being showed to the user. $00 for screen 1 / $40 for screen 2. +byte render_screen_show; +// The screen currently being rendered to. $00 for screen 1 / $40 for screen 2. +byte render_screen_render; // Initialize rendering void render_init() { - vicSelectGfxBank(PLAYFIELD_SCREEN); - *D018 = toD018(PLAYFIELD_SCREEN, PLAYFIELD_CHARSET); + vicSelectGfxBank(PLAYFIELD_CHARSET); // Enable Extended Background Color Mode *D011 = VIC_ECM | VIC_DEN | VIC_RSEL | 3; *BGCOL1 = BLACK; *BGCOL2 = BLUE; *BGCOL3 = CYAN; *BGCOL4 = GREY; - fill(COLS,1000,DARK_GREY); - render_screen_original(PLAYFIELD_SCREEN); - // Initialize the screen line pointers; - byte* li = PLAYFIELD_SCREEN + 2*40 + 16; - for(byte i:0..PLAYFIELD_LINES-1) { - screen_lines[i<<1] = li; - li += 40; - } + // Setup chars on the screens + render_screen_original(PLAYFIELD_SCREEN_1); + render_screen_original(PLAYFIELD_SCREEN_2); + fill(COLS,1000,DARK_GREY); // Fill the playfield frame with the white background color byte* line = COLS + 4*40 + 16; @@ -45,6 +45,36 @@ void render_init() { line +=40; } + // Initialize the screen line pointers; + byte* li_1 = PLAYFIELD_SCREEN_1 + 2*40 + 16; + byte* li_2 = PLAYFIELD_SCREEN_2 + 2*40 + 16; + for(byte i:0..PLAYFIELD_LINES-1) { + screen_lines_1[i<<1] = li_1; + screen_lines_2[i<<1] = li_2; + li_1 += 40; + li_2 += 40; + } + + // Show showing screen 1 and rendering to screen 2 + render_screen_show = 0; + render_screen_render = $40; +} + +// Update $D018 to show the current screen (used for double buffering) +void render_show() { + byte d018val = 0; + if(render_screen_show==0) { + d018val = toD018(PLAYFIELD_SCREEN_1, PLAYFIELD_CHARSET); + } else { + d018val = toD018(PLAYFIELD_SCREEN_2, PLAYFIELD_CHARSET); + } + *D018 = d018val; +} + +// Swap rendering to the other screen (used for double buffering) +void render_screen_swap() { + render_screen_render ^= $40; + render_screen_show ^= $40; } // Copy the original screen data to the passed screen @@ -75,7 +105,7 @@ void render_playfield() { // Do not render the top 2 lines. byte i = PLAYFIELD_COLS*2; for(byte l:2..PLAYFIELD_LINES-1) { - byte* screen_line = screen_lines[l<<1]; + byte* screen_line = screen_lines_1[render_screen_render+l<<1]; for(byte c:0..PLAYFIELD_COLS-1) { *(screen_line++) = playfield[i++]; } @@ -88,7 +118,7 @@ void render_current() { byte ypos2 = current_ypos<<1; for(byte l:0..3) { if(ypos2>2 && ypos2<2*PLAYFIELD_LINES) { - byte* screen_line = screen_lines[ypos2]; + byte* screen_line = screen_lines_1[render_screen_render+ypos2]; byte xpos = current_xpos; for(byte c:0..3) { byte current_cell = current_piece_gfx[i++]; @@ -104,4 +134,5 @@ void render_current() { } ypos2 += 2; } -} \ No newline at end of file +} + diff --git a/src/test/kc/examples/tetris/tetris-sprites.kc b/src/test/kc/examples/tetris/tetris-sprites.kc index 89626dda0..ea8c65700 100644 --- a/src/test/kc/examples/tetris/tetris-sprites.kc +++ b/src/test/kc/examples/tetris/tetris-sprites.kc @@ -80,10 +80,14 @@ interrupt(hardware_clobber) void irq() { } while(*RASTER!=irq_sprite_ypos); byte ptr = irq_sprite_ptr; - PLAYFIELD_SPRITE_PTRS[0] = ptr++; - PLAYFIELD_SPRITE_PTRS[1] = ptr; - PLAYFIELD_SPRITE_PTRS[2] = ptr++; - PLAYFIELD_SPRITE_PTRS[3] = ptr; + PLAYFIELD_SPRITE_PTRS_1[0] = ptr; + PLAYFIELD_SPRITE_PTRS_2[0] = ptr++; + PLAYFIELD_SPRITE_PTRS_1[1] = ptr; + PLAYFIELD_SPRITE_PTRS_2[1] = ptr; + PLAYFIELD_SPRITE_PTRS_1[2] = ptr; + PLAYFIELD_SPRITE_PTRS_2[2] = ptr++; + PLAYFIELD_SPRITE_PTRS_1[3] = ptr; + PLAYFIELD_SPRITE_PTRS_2[3] = ptr; // Find next raster line / sprite positions if(++irq_cnt==10) { diff --git a/src/test/kc/examples/tetris/tetris.kc b/src/test/kc/examples/tetris/tetris.kc index fefbcd8ce..7e19588b6 100644 --- a/src/test/kc/examples/tetris/tetris.kc +++ b/src/test/kc/examples/tetris/tetris.kc @@ -21,8 +21,9 @@ void main() { while(true) { // Wait for a frame to pass while(*RASTER!=$ff) {} - while(*RASTER!=$fe) {} - (*BORDERCOL)++; + *BORDERCOL = render_screen_show>>4; + // Update D018 to show the selected screen + render_show(); // Scan keyboard events keyboard_event_scan(); byte key_event = keyboard_event_get(); @@ -33,7 +34,8 @@ void main() { if(render!=0) { render_playfield(); render_current(); + render_screen_swap(); } - (*BORDERCOL)--; + *BORDERCOL = 0; } } diff --git a/src/test/ref/examples/tetris/test-sprites.asm b/src/test/ref/examples/tetris/test-sprites.asm index 4c924ba54..671750c2e 100644 --- a/src/test/ref/examples/tetris/test-sprites.asm +++ b/src/test/ref/examples/tetris/test-sprites.asm @@ -27,13 +27,15 @@ .label HARDWARE_IRQ = $fffe .const BLACK = 0 .const DARK_GREY = $b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a .const IRQ_RASTER_FIRST = $31 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 .label irq_raster_next = 3 .label irq_sprite_ypos = 4 @@ -50,8 +52,8 @@ bbegin: sta irq_cnt jsr main main: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN_1)>>6 + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f lda #3 sta CIA2_PORT_A_DDR lda #vicSelectGfxBank1_toDd001_return @@ -61,7 +63,7 @@ main: { jsr sprites_init jsr sprites_irq_init b2: - inc PLAYFIELD_SCREEN + inc PLAYFIELD_SCREEN_1 jmp b2 } sprites_irq_init: { @@ -133,13 +135,17 @@ irq: { cmp irq_sprite_ypos bne b1 lda irq_sprite_ptr - sta PLAYFIELD_SPRITE_PTRS + sta PLAYFIELD_SPRITE_PTRS_1 + sta PLAYFIELD_SPRITE_PTRS_2 tax inx - stx PLAYFIELD_SPRITE_PTRS+1 - stx PLAYFIELD_SPRITE_PTRS+2 + stx PLAYFIELD_SPRITE_PTRS_1+1 + stx PLAYFIELD_SPRITE_PTRS_2+1 + stx PLAYFIELD_SPRITE_PTRS_1+2 + stx PLAYFIELD_SPRITE_PTRS_2+2 inx - stx PLAYFIELD_SPRITE_PTRS+3 + stx PLAYFIELD_SPRITE_PTRS_1+3 + stx PLAYFIELD_SPRITE_PTRS_2+3 inc irq_cnt lda irq_cnt cmp #$a diff --git a/src/test/ref/examples/tetris/test-sprites.cfg b/src/test/ref/examples/tetris/test-sprites.cfg index b7e874991..75cb4d475 100644 --- a/src/test/ref/examples/tetris/test-sprites.cfg +++ b/src/test/ref/examples/tetris/test-sprites.cfg @@ -56,7 +56,7 @@ main::@9: scope:[main] from main::@8 [18] call sprites_irq_init to:main::@2 main::@2: scope:[main] from main::@2 main::@9 - [19] *((const byte*) PLAYFIELD_SCREEN#0) ← ++ *((const byte*) PLAYFIELD_SCREEN#0) + [19] *((const byte*) PLAYFIELD_SCREEN_1#0) ← ++ *((const byte*) PLAYFIELD_SCREEN_1#0) to:main::@2 sprites_irq_init: scope:[sprites_irq_init] from main::@9 asm { sei } @@ -106,46 +106,50 @@ irq::@1: scope:[irq] from irq irq::@1 to:irq::@5 irq::@5: scope:[irq] from irq::@1 [51] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 - [52] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 - [53] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 - [54] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 - [55] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 - [56] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 - [57] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 - [58] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 - [59] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 + [52] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 + [53] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 + [54] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 + [55] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [56] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [57] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [58] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [59] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 + [60] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [61] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [62] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 + [63] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 to:irq::@6 irq::@6: scope:[irq] from irq::@5 - [60] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [61] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [62] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 + [64] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [65] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [66] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 to:irq::@3 irq::@3: scope:[irq] from irq::@6 irq::@9 - [63] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) - [64] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 - [65] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 - [66] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 + [67] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) + [68] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 + [69] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [70] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 to:irq::@8 irq::@8: scope:[irq] from irq::@3 - [67] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 + [71] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 to:irq::@4 irq::@4: scope:[irq] from irq::@3 irq::@8 - [68] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) - [69] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 - [70] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 - [71] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 + [72] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) + [73] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 + [74] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 + [75] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 to:irq::@return irq::@return: scope:[irq] from irq::@4 - [72] return + [76] return to:@return irq::@2: scope:[irq] from irq::@5 - [73] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [74] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 - [75] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 + [77] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [78] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 + [79] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 to:irq::toSpritePtr2 irq::toSpritePtr2: scope:[irq] from irq::@2 - [76] phi() + [80] phi() to:irq::@9 irq::@9: scope:[irq] from irq::toSpritePtr2 - [77] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 + [81] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 to:irq::@3 diff --git a/src/test/ref/examples/tetris/test-sprites.log b/src/test/ref/examples/tetris/test-sprites.log index 124eb7384..220212acf 100644 --- a/src/test/ref/examples/tetris/test-sprites.log +++ b/src/test/ref/examples/tetris/test-sprites.log @@ -1,9 +1,9 @@ Resolved forward reference irq to interrupt(HARDWARE_CLOBBER)(void()) irq() Inlined call (byte~) vicSelectGfxBank::$0 ← call toDd00 (byte*) vicSelectGfxBank::gfx -Inlined call (byte~) $2 ← call toSpritePtr (byte*) PLAYFIELD_SPRITES +Inlined call (byte~) $3 ← call toSpritePtr (byte*) PLAYFIELD_SPRITES Inlined call (byte~) irq::$2 ← call toSpritePtr (byte*) PLAYFIELD_SPRITES -Inlined call call vicSelectGfxBank (byte*) PLAYFIELD_SCREEN -Inlined call (byte~) main::$1 ← call toD018 (byte*) PLAYFIELD_SCREEN (byte*) PLAYFIELD_CHARSET +Inlined call call vicSelectGfxBank (byte*) PLAYFIELD_SCREEN_1 +Inlined call (byte~) main::$1 ← call toD018 (byte*) PLAYFIELD_SCREEN_1 (byte*) PLAYFIELD_CHARSET CONTROL FLOW GRAPH SSA @begin: scope:[] from @@ -88,19 +88,19 @@ CONTROL FLOW GRAPH SSA (byte) LIGHT_GREY#0 ← (byte/signed byte/word/signed word/dword/signed dword) 15 to:@4 @4: scope:[] from @begin - (byte*) PLAYFIELD_SCREEN#0 ← ((byte*)) (word/signed word/dword/signed dword) 1024 - (byte*~) $0 ← (byte*) PLAYFIELD_SCREEN#0 + (word) SPRITE_PTRS#0 - (byte*) PLAYFIELD_SPRITE_PTRS#0 ← (byte*~) $0 + (byte*) PLAYFIELD_SCREEN_1#0 ← ((byte*)) (word/signed word/dword/signed dword) 1024 + (byte*) PLAYFIELD_SCREEN_2#0 ← ((byte*)) (word/signed word/dword/signed dword) 11264 + (byte*~) $0 ← (byte*) PLAYFIELD_SCREEN_1#0 + (word) SPRITE_PTRS#0 + (byte*) PLAYFIELD_SPRITE_PTRS_1#0 ← (byte*~) $0 + (byte*~) $1 ← (byte*) PLAYFIELD_SCREEN_2#0 + (word) SPRITE_PTRS#0 + (byte*) PLAYFIELD_SPRITE_PTRS_2#0 ← (byte*~) $1 + (byte*) PLAYFIELD_SCREEN_ORIGINAL#0 ← ((byte*)) (word/signed word/dword/signed dword) 6144 (byte*) PLAYFIELD_SPRITES#0 ← ((byte*)) (word/signed word/dword/signed dword) 8192 (byte*) PLAYFIELD_CHARSET#0 ← ((byte*)) (word/signed word/dword/signed dword) 10240 (byte) PLAYFIELD_LINES#0 ← (byte/signed byte/word/signed word/dword/signed dword) 22 (byte) PLAYFIELD_COLS#0 ← (byte/signed byte/word/signed word/dword/signed dword) 10 - (byte~) $1 ← (byte) PLAYFIELD_LINES#0 * (byte) PLAYFIELD_COLS#0 - (byte[$1]) playfield#0 ← { fill( $1, 0) } - (byte*) current_piece_gfx#0 ← ((byte*)) (byte/signed byte/word/signed word/dword/signed dword) 0 - (byte) current_piece_char#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - (byte) current_xpos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 3 - (byte) current_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) $2 ← (byte) PLAYFIELD_LINES#0 * (byte) PLAYFIELD_COLS#0 + (byte[$2]) playfield#0 ← { fill( $2, 0) } kickasm(location (byte*) PLAYFIELD_SPRITES#0) {{ .var sprites = LoadPicture("nes-playfield.png", List().add($010101, $000000)) .for(var sy=0;sy<10;sy++) { .for(var sx=0;sx<3;sx++) { @@ -165,8 +165,8 @@ toSpritePtr1_@return: scope:[] from toSpritePtr1 (byte) irq_raster_next#16 ← phi( toSpritePtr1_@return/(byte) irq_raster_next#17 ) (byte) irq_sprite_ypos#13 ← phi( toSpritePtr1_@return/(byte) irq_sprite_ypos#14 ) (byte) toSpritePtr1_return#3 ← phi( toSpritePtr1_@return/(byte) toSpritePtr1_return#1 ) - (byte~) $2 ← (byte) toSpritePtr1_return#3 - (byte) irq_sprite_ptr#0 ← (byte~) $2 + (byte~) $3 ← (byte) toSpritePtr1_return#3 + (byte) irq_sprite_ptr#0 ← (byte~) $3 (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:@8 sprites_irq_init: scope:[sprites_irq_init] from main::@9 @@ -212,12 +212,16 @@ irq::@5: scope:[irq] from irq::@1 (byte) irq_cnt#4 ← phi( irq::@1/(byte) irq_cnt#6 ) (byte) irq_sprite_ptr#4 ← phi( irq::@1/(byte) irq_sprite_ptr#7 ) (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#4 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 0) ← (byte) irq::ptr#0 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 0) ← (byte) irq::ptr#0 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 0) ← (byte) irq::ptr#0 (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 (byte) irq_cnt#1 ← ++ (byte) irq_cnt#4 (bool~) irq::$1 ← (byte) irq_cnt#1 == (byte/signed byte/word/signed word/dword/signed dword) 10 if((bool~) irq::$1) goto irq::@2 @@ -303,7 +307,7 @@ irq::@return: scope:[irq] from irq::@4 return to:@return main: scope:[main] from @8 - (byte*) main::vicSelectGfxBank1_gfx#0 ← (byte*) PLAYFIELD_SCREEN#0 + (byte*) main::vicSelectGfxBank1_gfx#0 ← (byte*) PLAYFIELD_SCREEN_1#0 to:main::vicSelectGfxBank1 main::vicSelectGfxBank1: scope:[main] from main (byte*) main::vicSelectGfxBank1_gfx#1 ← phi( main/(byte*) main::vicSelectGfxBank1_gfx#0 ) @@ -328,7 +332,7 @@ main::vicSelectGfxBank1_@1: scope:[main] from main::vicSelectGfxBank1_toDd001_@ *((byte*) CIA2_PORT_A#0) ← (byte) main::vicSelectGfxBank1_$0#0 to:main::@7 main::@7: scope:[main] from main::vicSelectGfxBank1_@1 - (byte*) main::toD0181_screen#0 ← (byte*) PLAYFIELD_SCREEN#0 + (byte*) main::toD0181_screen#0 ← (byte*) PLAYFIELD_SCREEN_1#0 (byte*) main::toD0181_gfx#0 ← (byte*) PLAYFIELD_CHARSET#0 to:main::toD0181 main::toD0181: scope:[main] from main::@7 @@ -364,7 +368,7 @@ main::@1: scope:[main] from main::@10 main::@2 if(true) goto main::@2 to:main::@return main::@2: scope:[main] from main::@1 - *((byte*) PLAYFIELD_SCREEN#0) ← ++ *((byte*) PLAYFIELD_SCREEN#0) + *((byte*) PLAYFIELD_SCREEN_1#0) ← ++ *((byte*) PLAYFIELD_SCREEN_1#0) to:main::@1 main::@return: scope:[main] from main::@1 return @@ -382,8 +386,9 @@ main::@return: scope:[main] from main::@1 SYMBOL TABLE SSA (byte*~) $0 -(byte~) $1 +(byte*~) $1 (byte~) $2 +(byte~) $3 (label) @10 (label) @4 (label) @5 @@ -487,12 +492,18 @@ SYMBOL TABLE SSA (byte) PLAYFIELD_COLS#0 (byte) PLAYFIELD_LINES (byte) PLAYFIELD_LINES#0 -(byte*) PLAYFIELD_SCREEN -(byte*) PLAYFIELD_SCREEN#0 +(byte*) PLAYFIELD_SCREEN_1 +(byte*) PLAYFIELD_SCREEN_1#0 +(byte*) PLAYFIELD_SCREEN_2 +(byte*) PLAYFIELD_SCREEN_2#0 +(byte*) PLAYFIELD_SCREEN_ORIGINAL +(byte*) PLAYFIELD_SCREEN_ORIGINAL#0 (byte*) PLAYFIELD_SPRITES (byte*) PLAYFIELD_SPRITES#0 -(byte*) PLAYFIELD_SPRITE_PTRS -(byte*) PLAYFIELD_SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(byte*) PLAYFIELD_SPRITE_PTRS_1#0 +(byte*) PLAYFIELD_SPRITE_PTRS_2 +(byte*) PLAYFIELD_SPRITE_PTRS_2#0 (byte*) PROCPORT (byte*) PROCPORT#0 (byte) PROCPORT_BASIC_KERNEL_IO @@ -564,13 +575,9 @@ SYMBOL TABLE SSA (byte) YELLOW (byte) YELLOW#0 (byte) current_piece_char -(byte) current_piece_char#0 (byte*) current_piece_gfx -(byte*) current_piece_gfx#0 (byte) current_xpos -(byte) current_xpos#0 (byte) current_ypos -(byte) current_ypos#0 interrupt(HARDWARE_CLOBBER)(void()) irq() (bool~) irq::$0 (bool~) irq::$1 @@ -750,8 +757,8 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) main::vicSelectGfxBank1_toDd001_return#1 (byte) main::vicSelectGfxBank1_toDd001_return#2 (byte) main::vicSelectGfxBank1_toDd001_return#3 -(byte[$1]) playfield -(byte[$1]) playfield#0 +(byte[$2]) playfield +(byte[$2]) playfield#0 (void()) sprites_init() (byte/signed byte/word/signed word/dword/signed dword~) sprites_init::$0 (byte/signed word/word/dword/signed dword/signed byte~) sprites_init::$1 @@ -796,9 +803,10 @@ Successful SSA optimization Pass2CullEmptyBlocks Inversing boolean not (bool~) irq::$5 ← (byte~) irq::$3 != (byte/signed byte/word/signed word/dword/signed dword) 3 from (bool~) irq::$4 ← (byte~) irq::$3 == (byte/signed byte/word/signed word/dword/signed dword) 3 Successful SSA optimization Pass2UnaryNotSimplification Alias candidate removed (volatile)(byte) IRQ_RASTER_FIRST#0 = (byte) irq_raster_next#0 (byte) irq_raster_next#18 (byte) irq_raster_next#17 (byte) irq_raster_next#16 (byte) irq_raster_next#15 -Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $2 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#12 +Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $3 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#12 Alias candidate removed (volatile)(byte) irq::toSpritePtr2_return#0 = (byte) irq::toSpritePtr2_$2#0 (byte) irq::toSpritePtr2_return#2 (byte) irq::toSpritePtr2_return#1 (byte) irq::toSpritePtr2_return#3 (byte~) irq::$2 (byte) irq_sprite_ptr#1 -Alias (byte*) PLAYFIELD_SPRITE_PTRS#0 = (byte*~) $0 +Alias (byte*) PLAYFIELD_SPRITE_PTRS_1#0 = (byte*~) $0 +Alias (byte*) PLAYFIELD_SPRITE_PTRS_2#0 = (byte*~) $1 Alias (byte) sprites_init::xpos#0 = (byte/signed word/word/dword/signed dword/signed byte~) sprites_init::$1 Alias (byte) sprites_init::s2#0 = (byte~) sprites_init::$2 Alias (byte) sprites_init::xpos#1 = (byte/signed word/word/dword/signed dword~) sprites_init::$3 @@ -830,7 +838,7 @@ Alias (byte) main::toD0181_return#0 = (byte) main::toD0181_$8#0 (byte) main::toD Alias (byte) irq_cnt#0 = (byte) irq_cnt#11 Successful SSA optimization Pass2AliasElimination Alias candidate removed (volatile)(byte) IRQ_RASTER_FIRST#0 = (byte) irq_raster_next#0 (byte) irq_raster_next#18 (byte) irq_raster_next#17 (byte) irq_raster_next#16 (byte) irq_raster_next#15 -Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $2 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#12 +Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $3 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#12 Alias candidate removed (volatile)(byte) irq::toSpritePtr2_return#0 = (byte) irq::toSpritePtr2_$2#0 (byte) irq::toSpritePtr2_return#2 (byte) irq::toSpritePtr2_return#1 (byte) irq::toSpritePtr2_return#3 (byte~) irq::$2 (byte) irq_sprite_ptr#1 Alias (byte) irq_cnt#10 = (byte) irq_cnt#3 Alias (byte) irq_raster_next#12 = (byte) irq_raster_next#3 @@ -838,7 +846,7 @@ Alias (byte) irq_sprite_ypos#10 = (byte) irq_sprite_ypos#11 Alias (byte) irq_sprite_ptr#10 = (byte) irq_sprite_ptr#3 Successful SSA optimization Pass2AliasElimination Alias candidate removed (volatile)(byte) IRQ_RASTER_FIRST#0 = (byte) irq_raster_next#0 (byte) irq_raster_next#18 (byte) irq_raster_next#17 (byte) irq_raster_next#16 (byte) irq_raster_next#15 -Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $2 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#12 +Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $3 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#12 Alias candidate removed (volatile)(byte) irq::toSpritePtr2_return#0 = (byte) irq::toSpritePtr2_$2#0 (byte) irq::toSpritePtr2_return#2 (byte) irq::toSpritePtr2_return#1 (byte) irq::toSpritePtr2_return#3 (byte~) irq::$2 (byte) irq_sprite_ptr#1 Self Phi Eliminated (byte) irq_sprite_ypos#5 Self Phi Eliminated (byte) irq_sprite_ptr#4 @@ -947,30 +955,29 @@ Constant (const byte) GREY#0 = 12 Constant (const byte) LIGHT_GREEN#0 = 13 Constant (const byte) LIGHT_BLUE#0 = 14 Constant (const byte) LIGHT_GREY#0 = 15 -Constant (const byte*) PLAYFIELD_SCREEN#0 = ((byte*))1024 +Constant (const byte*) PLAYFIELD_SCREEN_1#0 = ((byte*))1024 +Constant (const byte*) PLAYFIELD_SCREEN_2#0 = ((byte*))11264 +Constant (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0 = ((byte*))6144 Constant (const byte*) PLAYFIELD_SPRITES#0 = ((byte*))8192 Constant (const byte*) PLAYFIELD_CHARSET#0 = ((byte*))10240 Constant (const byte) PLAYFIELD_LINES#0 = 22 Constant (const byte) PLAYFIELD_COLS#0 = 10 -Constant (const byte*) current_piece_gfx#0 = ((byte*))0 -Constant (const byte) current_piece_char#0 = 0 -Constant (const byte) current_xpos#0 = 3 -Constant (const byte) current_ypos#0 = 0 Constant (const byte/signed byte/word/signed word/dword/signed dword) sprites_init::$0 = 15*8 Constant (const byte) sprites_init::s#0 = 0 Constant (const byte) IRQ_RASTER_FIRST#0 = 49 Constant (const void()*) sprites_irq_init::$0 = &irq Successful SSA optimization Pass2ConstantIdentification -Constant (const byte*) PLAYFIELD_SPRITE_PTRS#0 = PLAYFIELD_SCREEN#0+SPRITE_PTRS#0 -Constant (const byte) $1 = PLAYFIELD_LINES#0*PLAYFIELD_COLS#0 +Constant (const byte*) PLAYFIELD_SPRITE_PTRS_1#0 = PLAYFIELD_SCREEN_1#0+SPRITE_PTRS#0 +Constant (const byte*) PLAYFIELD_SPRITE_PTRS_2#0 = PLAYFIELD_SCREEN_2#0+SPRITE_PTRS#0 +Constant (const byte) $2 = PLAYFIELD_LINES#0*PLAYFIELD_COLS#0 Constant (const byte) sprites_init::xpos#0 = 24+sprites_init::$0 Constant (const word) toSpritePtr1_$0#0 = ((word))PLAYFIELD_SPRITES#0 Constant (const byte*) irq::toSpritePtr2_sprite#0 = PLAYFIELD_SPRITES#0 -Constant (const byte*) main::vicSelectGfxBank1_gfx#0 = PLAYFIELD_SCREEN#0 -Constant (const byte*) main::toD0181_screen#0 = PLAYFIELD_SCREEN#0 +Constant (const byte*) main::vicSelectGfxBank1_gfx#0 = PLAYFIELD_SCREEN_1#0 +Constant (const byte*) main::toD0181_screen#0 = PLAYFIELD_SCREEN_1#0 Constant (const byte*) main::toD0181_gfx#0 = PLAYFIELD_CHARSET#0 Successful SSA optimization Pass2ConstantIdentification -Constant (const byte[$1]) playfield#0 = { fill( $1, 0) } +Constant (const byte[$2]) playfield#0 = { fill( $2, 0) } Constant (const word) toSpritePtr1_$1#0 = toSpritePtr1_$0#0>>6 Constant (const word) irq::toSpritePtr2_$0#0 = ((word))irq::toSpritePtr2_sprite#0 Constant (const word) main::vicSelectGfxBank1_toDd001_$0#0 = ((word))main::vicSelectGfxBank1_gfx#0 @@ -995,7 +1002,7 @@ Constant (const byte) main::vicSelectGfxBank1_toDd001_return#0 = 3^main::vicSele Constant (const byte) main::toD0181_$3#0 = >main::toD0181_$2#0 Constant (const byte) main::toD0181_$7#0 = main::toD0181_$6#0&15 Successful SSA optimization Pass2ConstantIdentification -Constant (const byte) $2 = toSpritePtr1_return#1 +Constant (const byte) $3 = toSpritePtr1_return#1 Constant (const byte) irq::toSpritePtr2_return#1 = irq::toSpritePtr2_return#0 Constant (const byte) main::toD0181_return#0 = main::toD0181_$3#0|main::toD0181_$7#0 Successful SSA optimization Pass2ConstantIdentification @@ -1005,10 +1012,14 @@ Consolidated array index constant in *(SPRITES_YPOS#0+0) Consolidated array index constant in *(SPRITES_YPOS#0+2) Consolidated array index constant in *(SPRITES_YPOS#0+4) Consolidated array index constant in *(SPRITES_YPOS#0+6) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+0) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+1) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+2) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+3) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+0) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+0) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+1) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+1) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+2) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+2) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+3) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+3) Successful SSA optimization Pass2ConstantAdditionElimination if() condition always true - replacing block destination if(true) goto main::@2 Successful SSA optimization Pass2ConstantIfs @@ -1028,28 +1039,28 @@ Inlining constant with var siblings (const byte) sprites_init::s#0 Inlining constant with var siblings (const byte) sprites_init::xpos#0 Inlining constant with different constant siblings (const byte) irq::toSpritePtr2_return#1 Inlining constant with different constant siblings (const byte) toSpritePtr1_return#1 -Constant inlined main::toD0181_screen#0 = (const byte*) PLAYFIELD_SCREEN#0 +Constant inlined main::toD0181_screen#0 = (const byte*) PLAYFIELD_SCREEN_1#0 Constant inlined main::toD0181_gfx#0 = (const byte*) PLAYFIELD_CHARSET#0 Constant inlined sprites_init::xpos#0 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 -Constant inlined $1 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0 -Constant inlined $2 = (const byte) toSpritePtr1_return#0 +Constant inlined $2 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0 +Constant inlined $3 = (const byte) toSpritePtr1_return#0 Constant inlined irq::toSpritePtr2_sprite#0 = (const byte*) PLAYFIELD_SPRITES#0 Constant inlined irq::toSpritePtr2_return#1 = (const byte) irq::toSpritePtr2_return#0 Constant inlined sprites_init::s#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined main::vicSelectGfxBank1_toDd001_$2#0 = >((word))(const byte*) PLAYFIELD_SCREEN#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 -Constant inlined main::vicSelectGfxBank1_toDd001_$1#0 = >((word))(const byte*) PLAYFIELD_SCREEN#0 +Constant inlined main::vicSelectGfxBank1_toDd001_$2#0 = >((word))(const byte*) PLAYFIELD_SCREEN_1#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 +Constant inlined main::vicSelectGfxBank1_toDd001_$1#0 = >((word))(const byte*) PLAYFIELD_SCREEN_1#0 Constant inlined sprites_irq_init::$0 = &interrupt(HARDWARE_CLOBBER)(void()) irq() -Constant inlined main::vicSelectGfxBank1_toDd001_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0 -Constant inlined main::toD0181_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0 -Constant inlined main::toD0181_$1#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383 +Constant inlined main::vicSelectGfxBank1_toDd001_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN_1#0 +Constant inlined main::toD0181_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN_1#0 +Constant inlined main::toD0181_$1#0 = ((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383 Constant inlined main::toD0181_$6#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined main::toD0181_$7#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 -Constant inlined main::toD0181_$2#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 -Constant inlined main::toD0181_$3#0 = >((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 +Constant inlined main::toD0181_$2#0 = ((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 +Constant inlined main::toD0181_$3#0 = >((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined main::toD0181_$4#0 = ((word))(const byte*) PLAYFIELD_CHARSET#0 Constant inlined main::toD0181_$5#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0 Constant inlined toSpritePtr1_$1#0 = ((word))(const byte*) PLAYFIELD_SPRITES#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 -Constant inlined main::vicSelectGfxBank1_gfx#0 = (const byte*) PLAYFIELD_SCREEN#0 +Constant inlined main::vicSelectGfxBank1_gfx#0 = (const byte*) PLAYFIELD_SCREEN_1#0 Constant inlined toSpritePtr1_$2#0 = (const byte) toSpritePtr1_return#0 Constant inlined sprites_init::$0 = (byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 Constant inlined toSpritePtr1_$0#0 = ((word))(const byte*) PLAYFIELD_SPRITES#0 @@ -1060,7 +1071,8 @@ Constant inlined irq::toSpritePtr2_$0#0 = ((word))(const byte*) PLAYFIELD_SPRITE Constant inlined irq::toSpritePtr2_$2#0 = (const byte) irq::toSpritePtr2_return#0 Successful SSA optimization Pass2ConstantInlining Simplifying constant plus zero SPRITES_YPOS#0+0 -Simplifying constant plus zero PLAYFIELD_SPRITE_PTRS#0+0 +Simplifying constant plus zero PLAYFIELD_SPRITE_PTRS_1#0+0 +Simplifying constant plus zero PLAYFIELD_SPRITE_PTRS_2#0+0 Added new block during phi lifting sprites_init::@3(between sprites_init::@1 and sprites_init::@1) Added new block during phi lifting irq::@10(between irq::@3 and irq::@4) Adding NOP phi() at start of @begin @@ -1079,10 +1091,10 @@ Calls in [main] to sprites_init:16 sprites_irq_init:18 Created 4 initial phi equivalence classes Coalesced [44] sprites_init::s#3 ← sprites_init::s#1 Coalesced [45] sprites_init::xpos#3 ← sprites_init::xpos#1 -Coalesced [65] irq_raster_next#19 ← irq_raster_next#2 -Coalesced [71] irq::raster_next#5 ← irq::raster_next#1 -Coalesced [77] irq::raster_next#4 ← irq::raster_next#0 -Coalesced [83] irq_raster_next#20 ← irq_raster_next#1 +Coalesced [69] irq_raster_next#19 ← irq_raster_next#2 +Coalesced [75] irq::raster_next#5 ← irq::raster_next#1 +Coalesced [81] irq::raster_next#4 ← irq::raster_next#0 +Coalesced [87] irq_raster_next#20 ← irq_raster_next#1 Coalesced down to 4 phi equivalence classes Culled Empty Block (label) sprites_init::@3 Culled Empty Block (label) irq::@10 @@ -1155,7 +1167,7 @@ main::@9: scope:[main] from main::@8 [18] call sprites_irq_init to:main::@2 main::@2: scope:[main] from main::@2 main::@9 - [19] *((const byte*) PLAYFIELD_SCREEN#0) ← ++ *((const byte*) PLAYFIELD_SCREEN#0) + [19] *((const byte*) PLAYFIELD_SCREEN_1#0) ← ++ *((const byte*) PLAYFIELD_SCREEN_1#0) to:main::@2 sprites_irq_init: scope:[sprites_irq_init] from main::@9 asm { sei } @@ -1205,48 +1217,52 @@ irq::@1: scope:[irq] from irq irq::@1 to:irq::@5 irq::@5: scope:[irq] from irq::@1 [51] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 - [52] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 - [53] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 - [54] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 - [55] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 - [56] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 - [57] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 - [58] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 - [59] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 + [52] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 + [53] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 + [54] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 + [55] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [56] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [57] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [58] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [59] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 + [60] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [61] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [62] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 + [63] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 to:irq::@6 irq::@6: scope:[irq] from irq::@5 - [60] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [61] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [62] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 + [64] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [65] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [66] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 to:irq::@3 irq::@3: scope:[irq] from irq::@6 irq::@9 - [63] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) - [64] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 - [65] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 - [66] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 + [67] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) + [68] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 + [69] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [70] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 to:irq::@8 irq::@8: scope:[irq] from irq::@3 - [67] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 + [71] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 to:irq::@4 irq::@4: scope:[irq] from irq::@3 irq::@8 - [68] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) - [69] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 - [70] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 - [71] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 + [72] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) + [73] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 + [74] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 + [75] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 to:irq::@return irq::@return: scope:[irq] from irq::@4 - [72] return + [76] return to:@return irq::@2: scope:[irq] from irq::@5 - [73] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [74] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 - [75] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 + [77] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [78] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 + [79] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 to:irq::toSpritePtr2 irq::toSpritePtr2: scope:[irq] from irq::@2 - [76] phi() + [80] phi() to:irq::@9 irq::@9: scope:[irq] from irq::toSpritePtr2 - [77] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 + [81] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 to:irq::@3 @@ -1299,9 +1315,12 @@ VARIABLE REGISTER WEIGHTS (byte*) PLAYFIELD_CHARSET (byte) PLAYFIELD_COLS (byte) PLAYFIELD_LINES -(byte*) PLAYFIELD_SCREEN +(byte*) PLAYFIELD_SCREEN_1 +(byte*) PLAYFIELD_SCREEN_2 +(byte*) PLAYFIELD_SCREEN_ORIGINAL (byte*) PLAYFIELD_SPRITES -(byte*) PLAYFIELD_SPRITE_PTRS +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(byte*) PLAYFIELD_SPRITE_PTRS_2 (byte*) PROCPORT (byte) PROCPORT_BASIC_KERNEL_IO (byte*) PROCPORT_DDR @@ -1344,9 +1363,9 @@ VARIABLE REGISTER WEIGHTS interrupt(HARDWARE_CLOBBER)(void()) irq() (byte~) irq::$3 4.0 (byte) irq::ptr -(byte) irq::ptr#0 3.0 -(byte) irq::ptr#1 2.6666666666666665 -(byte) irq::ptr#2 4.0 +(byte) irq::ptr#0 2.6666666666666665 +(byte) irq::ptr#1 2.4 +(byte) irq::ptr#2 3.0 (byte) irq::raster_next (byte) irq::raster_next#0 2.6666666666666665 (byte) irq::raster_next#1 4.0 @@ -1359,20 +1378,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) irq::ypos (byte) irq::ypos#0 2.5 (byte) irq_cnt -(byte) irq_cnt#0 0.2857142857142857 +(byte) irq_cnt#0 0.2222222222222222 (byte) irq_cnt#1 4.0 (byte) irq_cnt#13 20.0 (byte) irq_raster_next -(byte) irq_raster_next#0 0.25 +(byte) irq_raster_next#0 0.2 (byte) irq_raster_next#1 1.0 (byte) irq_raster_next#12 6.0 (byte) irq_raster_next#2 1.3333333333333333 (byte) irq_sprite_ptr -(byte) irq_sprite_ptr#0 0.3333333333333333 +(byte) irq_sprite_ptr#0 0.2727272727272727 (byte) irq_sprite_ptr#1 20.0 (byte) irq_sprite_ptr#2 20.0 (byte) irq_sprite_ypos -(byte) irq_sprite_ypos#0 1.0 +(byte) irq_sprite_ypos#0 0.8095238095238095 (byte) irq_sprite_ypos#1 20.0 (byte) irq_sprite_ypos#2 20.0 (void()) main() @@ -1508,13 +1527,15 @@ INITIAL ASM .label HARDWARE_IRQ = $fffe .const BLACK = 0 .const DARK_GREY = $b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a .const IRQ_RASTER_FIRST = $31 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 .label irq_raster_next = 6 .label irq_sprite_ypos = 7 @@ -1574,8 +1595,8 @@ bend_from_b8: bend: //SEG19 main main: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN_1)>>6 + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f jmp vicSelectGfxBank1 //SEG20 main::vicSelectGfxBank1 vicSelectGfxBank1: @@ -1616,8 +1637,8 @@ main: { jmp b2 //SEG34 main::@2 b2: - //SEG35 [19] *((const byte*) PLAYFIELD_SCREEN#0) ← ++ *((const byte*) PLAYFIELD_SCREEN#0) -- _deref_pbuc1=_inc__deref_pbuc1 - inc PLAYFIELD_SCREEN + //SEG35 [19] *((const byte*) PLAYFIELD_SCREEN_1#0) ← ++ *((const byte*) PLAYFIELD_SCREEN_1#0) -- _deref_pbuc1=_inc__deref_pbuc1 + inc PLAYFIELD_SCREEN_1 jmp b2 } //SEG36 sprites_irq_init @@ -1767,95 +1788,107 @@ irq: { //SEG81 [51] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuz1=vbuz2 lda irq_sprite_ptr sta ptr - //SEG82 [52] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuz1 + //SEG82 [52] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuz1 lda ptr - sta PLAYFIELD_SPRITE_PTRS - //SEG83 [53] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuz1=_inc_vbuz2 + sta PLAYFIELD_SPRITE_PTRS_1 + //SEG83 [53] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuz1 + lda ptr + sta PLAYFIELD_SPRITE_PTRS_2 + //SEG84 [54] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuz1=_inc_vbuz2 ldy ptr iny sty ptr_1 - //SEG84 [54] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + //SEG85 [55] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 lda ptr_1 - sta PLAYFIELD_SPRITE_PTRS+1 - //SEG85 [55] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + sta PLAYFIELD_SPRITE_PTRS_1+1 + //SEG86 [56] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 lda ptr_1 - sta PLAYFIELD_SPRITE_PTRS+2 - //SEG86 [56] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuz1=_inc_vbuz2 + sta PLAYFIELD_SPRITE_PTRS_2+1 + //SEG87 [57] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + lda ptr_1 + sta PLAYFIELD_SPRITE_PTRS_1+2 + //SEG88 [58] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + lda ptr_1 + sta PLAYFIELD_SPRITE_PTRS_2+2 + //SEG89 [59] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuz1=_inc_vbuz2 ldy ptr_1 iny sty ptr_2 - //SEG87 [57] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuz1 + //SEG90 [60] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuz1 lda ptr_2 - sta PLAYFIELD_SPRITE_PTRS+3 - //SEG88 [58] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz2 + sta PLAYFIELD_SPRITE_PTRS_1+3 + //SEG91 [61] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuz1 + lda ptr_2 + sta PLAYFIELD_SPRITE_PTRS_2+3 + //SEG92 [62] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz2 ldy irq_cnt iny sty irq_cnt_1 - //SEG89 [59] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG93 [63] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 lda irq_cnt_1 cmp #$a beq b2 jmp b6 - //SEG90 irq::@6 + //SEG94 irq::@6 b6: - //SEG91 [60] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 + //SEG95 [64] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 lda #$15 clc adc irq_raster_next sta irq_raster_next_2 - //SEG92 [61] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 + //SEG96 [65] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 lda #$15 clc adc irq_sprite_ypos sta irq_sprite_ypos_2 - //SEG93 [62] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 + //SEG97 [66] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 lda #3 clc adc irq_sprite_ptr sta irq_sprite_ptr_2 - //SEG94 [63] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] + //SEG98 [67] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] b3_from_b6: b3_from_b9: - //SEG95 [63] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy + //SEG99 [67] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy jmp b3 - //SEG96 irq::@3 + //SEG100 irq::@3 b3: - //SEG97 [64] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuz1=vbuz2 + //SEG101 [68] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuz1=vbuz2 lda irq_raster_next_12 sta raster_next - //SEG98 [65] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 + //SEG102 [69] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 lda #7 and raster_next sta _3 - //SEG99 [66] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuz1_neq_vbuc1_then_la1 + //SEG103 [70] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuz1_neq_vbuc1_then_la1 lda _3 cmp #3 bne b4_from_b3 jmp b8 - //SEG100 irq::@8 + //SEG104 irq::@8 b8: - //SEG101 [67] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_minus_1 + //SEG105 [71] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_minus_1 dec raster_next - //SEG102 [68] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] + //SEG106 [72] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] b4_from_b3: b4_from_b8: - //SEG103 [68] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy + //SEG107 [72] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy jmp b4 - //SEG104 irq::@4 + //SEG108 irq::@4 b4: - //SEG105 [69] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuz1 + //SEG109 [73] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuz1 lda raster_next sta RASTER - //SEG106 [70] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG110 [74] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG107 [71] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG111 [75] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BORDERCOL jmp breturn - //SEG108 irq::@return + //SEG112 irq::@return breturn: - //SEG109 [72] return - exit interrupt(HARDWARE_CLOBBER) + //SEG113 [76] return - exit interrupt(HARDWARE_CLOBBER) rega: lda #00 regx: @@ -1863,26 +1896,26 @@ irq: { regy: ldy #00 rti - //SEG110 irq::@2 + //SEG114 irq::@2 b2: - //SEG111 [73] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 + //SEG115 [77] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt_13 - //SEG112 [74] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 + //SEG116 [78] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next_1 - //SEG113 [75] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 + //SEG117 [79] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos_1 - //SEG114 [76] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] + //SEG118 [80] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] toSpritePtr2_from_b2: jmp toSpritePtr2 - //SEG115 irq::toSpritePtr2 + //SEG119 irq::toSpritePtr2 toSpritePtr2: jmp b9 - //SEG116 irq::@9 + //SEG120 irq::@9 b9: - //SEG117 [77] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 + //SEG121 [81] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 lda #toSpritePtr2_return sta irq_sprite_ptr_1 jmp b3_from_b9 @@ -1930,20 +1963,20 @@ Statement [39] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (c Statement [40] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 [ sprites_init::s#2 sprites_init::xpos#1 ] ( main:8::sprites_init:16 [ sprites_init::s#2 sprites_init::xpos#1 ] ) always clobbers reg byte a Statement [44] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a Statement [50] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a -Statement [58] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y -Statement [59] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a -Statement [60] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [61] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [62] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a -Statement [65] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a +Statement [62] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y +Statement [63] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a +Statement [64] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [65] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [66] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a +Statement [69] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a Removing always clobbered register reg byte a as potential for zp ZP_BYTE:5 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] -Statement [70] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [71] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [72] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y -Statement [73] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a -Statement [74] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [75] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [77] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [74] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [75] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [76] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y +Statement [77] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a +Statement [78] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [79] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [81] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a Statement [2] (byte) irq_raster_next#0 ← (const byte) IRQ_RASTER_FIRST#0 [ ] ( ) always clobbers reg byte a Statement [3] (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ ] ( ) always clobbers reg byte a Statement [5] (byte) irq_sprite_ptr#0 ← (const byte) toSpritePtr1_return#0 [ ] ( ) always clobbers reg byte a @@ -1970,19 +2003,19 @@ Statement [39] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (c Statement [40] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 [ sprites_init::s#2 sprites_init::xpos#1 ] ( main:8::sprites_init:16 [ sprites_init::s#2 sprites_init::xpos#1 ] ) always clobbers reg byte a Statement [44] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a Statement [50] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a -Statement [58] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y -Statement [59] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a -Statement [60] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [61] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [62] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a -Statement [65] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a -Statement [70] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [71] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [72] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y -Statement [73] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a -Statement [74] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [75] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [77] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [62] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y +Statement [63] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a +Statement [64] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [65] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [66] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a +Statement [69] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a +Statement [74] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [75] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [76] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y +Statement [77] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a +Statement [78] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [79] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [81] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a Potential registers zp ZP_BYTE:2 [ sprites_init::s#2 sprites_init::s#1 ] : zp ZP_BYTE:2 , reg byte x , reg byte y , Potential registers zp ZP_BYTE:3 [ sprites_init::xpos#2 sprites_init::xpos#1 ] : zp ZP_BYTE:3 , reg byte x , reg byte y , Potential registers zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] : zp ZP_BYTE:4 , @@ -2005,46 +2038,46 @@ Potential registers zp ZP_BYTE:20 [ irq_sprite_ypos#1 ] : zp ZP_BYTE:20 , Potential registers zp ZP_BYTE:21 [ irq_sprite_ptr#1 ] : zp ZP_BYTE:21 , REGISTER UPLIFT SCOPES -Uplift Scope [] 20: zp ZP_BYTE:16 [ irq_sprite_ypos#2 ] 20: zp ZP_BYTE:17 [ irq_sprite_ptr#2 ] 20: zp ZP_BYTE:19 [ irq_cnt#13 ] 20: zp ZP_BYTE:20 [ irq_sprite_ypos#1 ] 20: zp ZP_BYTE:21 [ irq_sprite_ptr#1 ] 8.33: zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] 4: zp ZP_BYTE:15 [ irq_cnt#1 ] 1: zp ZP_BYTE:7 [ irq_sprite_ypos#0 ] 0.33: zp ZP_BYTE:8 [ irq_sprite_ptr#0 ] 0.29: zp ZP_BYTE:9 [ irq_cnt#0 ] 0.25: zp ZP_BYTE:6 [ irq_raster_next#0 ] +Uplift Scope [] 20: zp ZP_BYTE:16 [ irq_sprite_ypos#2 ] 20: zp ZP_BYTE:17 [ irq_sprite_ptr#2 ] 20: zp ZP_BYTE:19 [ irq_cnt#13 ] 20: zp ZP_BYTE:20 [ irq_sprite_ypos#1 ] 20: zp ZP_BYTE:21 [ irq_sprite_ptr#1 ] 8.33: zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] 4: zp ZP_BYTE:15 [ irq_cnt#1 ] 0.81: zp ZP_BYTE:7 [ irq_sprite_ypos#0 ] 0.27: zp ZP_BYTE:8 [ irq_sprite_ptr#0 ] 0.22: zp ZP_BYTE:9 [ irq_cnt#0 ] 0.2: zp ZP_BYTE:6 [ irq_raster_next#0 ] Uplift Scope [sprites_init] 25.3: zp ZP_BYTE:2 [ sprites_init::s#2 sprites_init::s#1 ] 22: zp ZP_BYTE:10 [ sprites_init::s2#0 ] 15.58: zp ZP_BYTE:3 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Uplift Scope [irq] 12.67: zp ZP_BYTE:5 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] 4: zp ZP_BYTE:14 [ irq::ptr#2 ] 4: zp ZP_BYTE:18 [ irq::$3 ] 3: zp ZP_BYTE:12 [ irq::ptr#0 ] 2.67: zp ZP_BYTE:13 [ irq::ptr#1 ] 2.5: zp ZP_BYTE:11 [ irq::ypos#0 ] +Uplift Scope [irq] 12.67: zp ZP_BYTE:5 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] 4: zp ZP_BYTE:18 [ irq::$3 ] 3: zp ZP_BYTE:14 [ irq::ptr#2 ] 2.67: zp ZP_BYTE:12 [ irq::ptr#0 ] 2.5: zp ZP_BYTE:11 [ irq::ypos#0 ] 2.4: zp ZP_BYTE:13 [ irq::ptr#1 ] Uplift Scope [sprites_irq_init] Uplift Scope [main] -Uplifting [] best 1901 combination zp ZP_BYTE:16 [ irq_sprite_ypos#2 ] zp ZP_BYTE:17 [ irq_sprite_ptr#2 ] zp ZP_BYTE:19 [ irq_cnt#13 ] zp ZP_BYTE:20 [ irq_sprite_ypos#1 ] zp ZP_BYTE:21 [ irq_sprite_ptr#1 ] zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] zp ZP_BYTE:15 [ irq_cnt#1 ] zp ZP_BYTE:7 [ irq_sprite_ypos#0 ] zp ZP_BYTE:8 [ irq_sprite_ptr#0 ] zp ZP_BYTE:9 [ irq_cnt#0 ] zp ZP_BYTE:6 [ irq_raster_next#0 ] -Uplifting [sprites_init] best 1731 combination reg byte x [ sprites_init::s#2 sprites_init::s#1 ] reg byte a [ sprites_init::s2#0 ] zp ZP_BYTE:3 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Uplifting [irq] best 1702 combination reg byte x [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] reg byte x [ irq::ptr#2 ] reg byte a [ irq::$3 ] reg byte a [ irq::ptr#0 ] zp ZP_BYTE:13 [ irq::ptr#1 ] zp ZP_BYTE:11 [ irq::ypos#0 ] +Uplifting [] best 1929 combination zp ZP_BYTE:16 [ irq_sprite_ypos#2 ] zp ZP_BYTE:17 [ irq_sprite_ptr#2 ] zp ZP_BYTE:19 [ irq_cnt#13 ] zp ZP_BYTE:20 [ irq_sprite_ypos#1 ] zp ZP_BYTE:21 [ irq_sprite_ptr#1 ] zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] zp ZP_BYTE:15 [ irq_cnt#1 ] zp ZP_BYTE:7 [ irq_sprite_ypos#0 ] zp ZP_BYTE:8 [ irq_sprite_ptr#0 ] zp ZP_BYTE:9 [ irq_cnt#0 ] zp ZP_BYTE:6 [ irq_raster_next#0 ] +Uplifting [sprites_init] best 1759 combination reg byte x [ sprites_init::s#2 sprites_init::s#1 ] reg byte a [ sprites_init::s2#0 ] zp ZP_BYTE:3 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Uplifting [irq] best 1724 combination reg byte x [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] reg byte a [ irq::$3 ] reg byte x [ irq::ptr#2 ] reg byte a [ irq::ptr#0 ] zp ZP_BYTE:11 [ irq::ypos#0 ] zp ZP_BYTE:13 [ irq::ptr#1 ] Limited combination testing to 100 combinations of 3072 possible. -Uplifting [sprites_irq_init] best 1702 combination -Uplifting [main] best 1702 combination +Uplifting [sprites_irq_init] best 1724 combination +Uplifting [main] best 1724 combination Attempting to uplift remaining variables inzp ZP_BYTE:16 [ irq_sprite_ypos#2 ] -Uplifting [] best 1702 combination zp ZP_BYTE:16 [ irq_sprite_ypos#2 ] +Uplifting [] best 1724 combination zp ZP_BYTE:16 [ irq_sprite_ypos#2 ] Attempting to uplift remaining variables inzp ZP_BYTE:17 [ irq_sprite_ptr#2 ] -Uplifting [] best 1702 combination zp ZP_BYTE:17 [ irq_sprite_ptr#2 ] +Uplifting [] best 1724 combination zp ZP_BYTE:17 [ irq_sprite_ptr#2 ] Attempting to uplift remaining variables inzp ZP_BYTE:19 [ irq_cnt#13 ] -Uplifting [] best 1702 combination zp ZP_BYTE:19 [ irq_cnt#13 ] +Uplifting [] best 1724 combination zp ZP_BYTE:19 [ irq_cnt#13 ] Attempting to uplift remaining variables inzp ZP_BYTE:20 [ irq_sprite_ypos#1 ] -Uplifting [] best 1702 combination zp ZP_BYTE:20 [ irq_sprite_ypos#1 ] +Uplifting [] best 1724 combination zp ZP_BYTE:20 [ irq_sprite_ypos#1 ] Attempting to uplift remaining variables inzp ZP_BYTE:21 [ irq_sprite_ptr#1 ] -Uplifting [] best 1702 combination zp ZP_BYTE:21 [ irq_sprite_ptr#1 ] +Uplifting [] best 1724 combination zp ZP_BYTE:21 [ irq_sprite_ptr#1 ] Attempting to uplift remaining variables inzp ZP_BYTE:3 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Uplifting [sprites_init] best 1702 combination zp ZP_BYTE:3 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Uplifting [sprites_init] best 1724 combination zp ZP_BYTE:3 [ sprites_init::xpos#2 sprites_init::xpos#1 ] Attempting to uplift remaining variables inzp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] -Uplifting [] best 1702 combination zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] +Uplifting [] best 1724 combination zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] Attempting to uplift remaining variables inzp ZP_BYTE:15 [ irq_cnt#1 ] -Uplifting [] best 1702 combination zp ZP_BYTE:15 [ irq_cnt#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:13 [ irq::ptr#1 ] -Uplifting [irq] best 1690 combination reg byte x [ irq::ptr#1 ] +Uplifting [] best 1724 combination zp ZP_BYTE:15 [ irq_cnt#1 ] Attempting to uplift remaining variables inzp ZP_BYTE:11 [ irq::ypos#0 ] -Uplifting [irq] best 1675 combination reg byte a [ irq::ypos#0 ] +Uplifting [irq] best 1709 combination reg byte a [ irq::ypos#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:13 [ irq::ptr#1 ] +Uplifting [irq] best 1691 combination reg byte x [ irq::ptr#1 ] Attempting to uplift remaining variables inzp ZP_BYTE:7 [ irq_sprite_ypos#0 ] -Uplifting [] best 1675 combination zp ZP_BYTE:7 [ irq_sprite_ypos#0 ] +Uplifting [] best 1691 combination zp ZP_BYTE:7 [ irq_sprite_ypos#0 ] Attempting to uplift remaining variables inzp ZP_BYTE:8 [ irq_sprite_ptr#0 ] -Uplifting [] best 1675 combination zp ZP_BYTE:8 [ irq_sprite_ptr#0 ] +Uplifting [] best 1691 combination zp ZP_BYTE:8 [ irq_sprite_ptr#0 ] Attempting to uplift remaining variables inzp ZP_BYTE:9 [ irq_cnt#0 ] -Uplifting [] best 1675 combination zp ZP_BYTE:9 [ irq_cnt#0 ] +Uplifting [] best 1691 combination zp ZP_BYTE:9 [ irq_cnt#0 ] Attempting to uplift remaining variables inzp ZP_BYTE:6 [ irq_raster_next#0 ] -Uplifting [] best 1675 combination zp ZP_BYTE:6 [ irq_raster_next#0 ] +Uplifting [] best 1691 combination zp ZP_BYTE:6 [ irq_raster_next#0 ] Coalescing zero page register with common assignment [ zp ZP_BYTE:4 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] ] with [ zp ZP_BYTE:6 [ irq_raster_next#0 ] ] - score: 1 Coalescing zero page register with common assignment [ zp ZP_BYTE:7 [ irq_sprite_ypos#0 ] ] with [ zp ZP_BYTE:16 [ irq_sprite_ypos#2 ] ] - score: 1 Coalescing zero page register with common assignment [ zp ZP_BYTE:8 [ irq_sprite_ptr#0 ] ] with [ zp ZP_BYTE:17 [ irq_sprite_ptr#2 ] ] - score: 1 @@ -2059,8 +2092,8 @@ Allocated (was zp ZP_BYTE:8) zp ZP_BYTE:5 [ irq_sprite_ptr#0 irq_sprite_ptr#2 ir Allocated (was zp ZP_BYTE:9) zp ZP_BYTE:6 [ irq_cnt#0 irq_cnt#1 irq_cnt#13 ] Interrupt procedure irq clobbers AXCNZV Removing interrupt register storage sty regy+1 in SEG71 entry interrupt(HARDWARE_CLOBBER) -Removing interrupt register storage regy: in SEG109 [72] return - exit interrupt(HARDWARE_CLOBBER) -Removing interrupt register storage ldy #00 in SEG109 [72] return - exit interrupt(HARDWARE_CLOBBER) +Removing interrupt register storage regy: in SEG113 [76] return - exit interrupt(HARDWARE_CLOBBER) +Removing interrupt register storage ldy #00 in SEG113 [76] return - exit interrupt(HARDWARE_CLOBBER) ASSEMBLER BEFORE OPTIMIZATION //SEG0 Basic Upstart @@ -2094,13 +2127,15 @@ ASSEMBLER BEFORE OPTIMIZATION .label HARDWARE_IRQ = $fffe .const BLACK = 0 .const DARK_GREY = $b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a .const IRQ_RASTER_FIRST = $31 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 .label irq_raster_next = 3 .label irq_sprite_ypos = 4 @@ -2151,8 +2186,8 @@ bend_from_b8: bend: //SEG19 main main: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN_1)>>6 + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f jmp vicSelectGfxBank1 //SEG20 main::vicSelectGfxBank1 vicSelectGfxBank1: @@ -2193,8 +2228,8 @@ main: { jmp b2 //SEG34 main::@2 b2: - //SEG35 [19] *((const byte*) PLAYFIELD_SCREEN#0) ← ++ *((const byte*) PLAYFIELD_SCREEN#0) -- _deref_pbuc1=_inc__deref_pbuc1 - inc PLAYFIELD_SCREEN + //SEG35 [19] *((const byte*) PLAYFIELD_SCREEN_1#0) ← ++ *((const byte*) PLAYFIELD_SCREEN_1#0) -- _deref_pbuc1=_inc__deref_pbuc1 + inc PLAYFIELD_SCREEN_1 jmp b2 } //SEG36 sprites_irq_init @@ -2325,107 +2360,115 @@ irq: { b5: //SEG81 [51] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuaa=vbuz1 lda irq_sprite_ptr - //SEG82 [52] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa - sta PLAYFIELD_SPRITE_PTRS - //SEG83 [53] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa + //SEG82 [52] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_1 + //SEG83 [53] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_2 + //SEG84 [54] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa tax inx - //SEG84 [54] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+1 - //SEG85 [55] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+2 - //SEG86 [56] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx + //SEG85 [55] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+1 + //SEG86 [56] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+1 + //SEG87 [57] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+2 + //SEG88 [58] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+2 + //SEG89 [59] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx inx - //SEG87 [57] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+3 - //SEG88 [58] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 + //SEG90 [60] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+3 + //SEG91 [61] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+3 + //SEG92 [62] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 inc irq_cnt - //SEG89 [59] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG93 [63] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 lda irq_cnt cmp #$a beq b2 jmp b6 - //SEG90 irq::@6 + //SEG94 irq::@6 b6: - //SEG91 [60] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG95 [64] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_raster_next sta irq_raster_next - //SEG92 [61] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG96 [65] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_sprite_ypos sta irq_sprite_ypos - //SEG93 [62] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 + //SEG97 [66] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lda #3 clc adc irq_sprite_ptr sta irq_sprite_ptr - //SEG94 [63] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] + //SEG98 [67] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] b3_from_b6: b3_from_b9: - //SEG95 [63] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy + //SEG99 [67] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy jmp b3 - //SEG96 irq::@3 + //SEG100 irq::@3 b3: - //SEG97 [64] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 + //SEG101 [68] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 ldx irq_raster_next - //SEG98 [65] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 + //SEG102 [69] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 txa and #7 - //SEG99 [66] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 + //SEG103 [70] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 cmp #3 bne b4_from_b3 jmp b8 - //SEG100 irq::@8 + //SEG104 irq::@8 b8: - //SEG101 [67] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 + //SEG105 [71] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 dex - //SEG102 [68] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] + //SEG106 [72] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] b4_from_b3: b4_from_b8: - //SEG103 [68] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy + //SEG107 [72] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy jmp b4 - //SEG104 irq::@4 + //SEG108 irq::@4 b4: - //SEG105 [69] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx + //SEG109 [73] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx stx RASTER - //SEG106 [70] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG110 [74] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG107 [71] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG111 [75] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BORDERCOL jmp breturn - //SEG108 irq::@return + //SEG112 irq::@return breturn: - //SEG109 [72] return - exit interrupt(HARDWARE_CLOBBER) + //SEG113 [76] return - exit interrupt(HARDWARE_CLOBBER) rega: lda #00 regx: ldx #00 rti - //SEG110 irq::@2 + //SEG114 irq::@2 b2: - //SEG111 [73] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 + //SEG115 [77] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt - //SEG112 [74] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 + //SEG116 [78] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next - //SEG113 [75] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 + //SEG117 [79] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos - //SEG114 [76] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] + //SEG118 [80] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] toSpritePtr2_from_b2: jmp toSpritePtr2 - //SEG115 irq::toSpritePtr2 + //SEG119 irq::toSpritePtr2 toSpritePtr2: jmp b9 - //SEG116 irq::@9 + //SEG120 irq::@9 b9: - //SEG117 [77] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 + //SEG121 [81] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 lda #toSpritePtr2_return sta irq_sprite_ptr jmp b3_from_b9 @@ -2587,12 +2630,17 @@ FINAL SYMBOL TABLE (const byte) PLAYFIELD_COLS#0 PLAYFIELD_COLS = (byte/signed byte/word/signed word/dword/signed dword) 10 (byte) PLAYFIELD_LINES (const byte) PLAYFIELD_LINES#0 PLAYFIELD_LINES = (byte/signed byte/word/signed word/dword/signed dword) 22 -(byte*) PLAYFIELD_SCREEN -(const byte*) PLAYFIELD_SCREEN#0 PLAYFIELD_SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_1 +(const byte*) PLAYFIELD_SCREEN_1#0 PLAYFIELD_SCREEN_1 = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_2 +(const byte*) PLAYFIELD_SCREEN_2#0 PLAYFIELD_SCREEN_2 = ((byte*))(word/signed word/dword/signed dword) 11264 +(byte*) PLAYFIELD_SCREEN_ORIGINAL (byte*) PLAYFIELD_SPRITES (const byte*) PLAYFIELD_SPRITES#0 PLAYFIELD_SPRITES = ((byte*))(word/signed word/dword/signed dword) 8192 -(byte*) PLAYFIELD_SPRITE_PTRS -(const byte*) PLAYFIELD_SPRITE_PTRS#0 PLAYFIELD_SPRITE_PTRS = (const byte*) PLAYFIELD_SCREEN#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(const byte*) PLAYFIELD_SPRITE_PTRS_1#0 PLAYFIELD_SPRITE_PTRS_1 = (const byte*) PLAYFIELD_SCREEN_1#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_2 +(const byte*) PLAYFIELD_SPRITE_PTRS_2#0 PLAYFIELD_SPRITE_PTRS_2 = (const byte*) PLAYFIELD_SCREEN_2#0+(const word) SPRITE_PTRS#0 (byte*) PROCPORT (const byte*) PROCPORT#0 PROCPORT = ((byte*))(byte/signed byte/word/signed word/dword/signed dword) 1 (byte) PROCPORT_BASIC_KERNEL_IO @@ -2658,9 +2706,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) irq::@9 (label) irq::@return (byte) irq::ptr -(byte) irq::ptr#0 reg byte a 3.0 -(byte) irq::ptr#1 reg byte x 2.6666666666666665 -(byte) irq::ptr#2 reg byte x 4.0 +(byte) irq::ptr#0 reg byte a 2.6666666666666665 +(byte) irq::ptr#1 reg byte x 2.4 +(byte) irq::ptr#2 reg byte x 3.0 (byte) irq::raster_next (byte) irq::raster_next#0 reg byte x 2.6666666666666665 (byte) irq::raster_next#1 reg byte x 4.0 @@ -2675,20 +2723,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) irq::ypos (byte) irq::ypos#0 reg byte a 2.5 (byte) irq_cnt -(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:6 0.2857142857142857 +(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:6 0.2222222222222222 (byte) irq_cnt#1 irq_cnt zp ZP_BYTE:6 4.0 (byte) irq_cnt#13 irq_cnt zp ZP_BYTE:6 20.0 (byte) irq_raster_next -(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:3 0.25 +(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:3 0.2 (byte) irq_raster_next#1 irq_raster_next zp ZP_BYTE:3 1.0 (byte) irq_raster_next#12 irq_raster_next zp ZP_BYTE:3 6.0 (byte) irq_raster_next#2 irq_raster_next zp ZP_BYTE:3 1.3333333333333333 (byte) irq_sprite_ptr -(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:5 0.3333333333333333 +(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:5 0.2727272727272727 (byte) irq_sprite_ptr#1 irq_sprite_ptr zp ZP_BYTE:5 20.0 (byte) irq_sprite_ptr#2 irq_sprite_ptr zp ZP_BYTE:5 20.0 (byte) irq_sprite_ypos -(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:4 1.0 +(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:4 0.8095238095238095 (byte) irq_sprite_ypos#1 irq_sprite_ypos zp ZP_BYTE:4 20.0 (byte) irq_sprite_ypos#2 irq_sprite_ypos zp ZP_BYTE:4 20.0 (void()) main() @@ -2707,7 +2755,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte~) main::toD0181_$8 (byte*) main::toD0181_gfx (byte) main::toD0181_return -(const byte) main::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 +(const byte) main::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 (byte*) main::toD0181_screen (label) main::vicSelectGfxBank1 (byte~) main::vicSelectGfxBank1_$0 @@ -2720,7 +2768,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte/word/dword~) main::vicSelectGfxBank1_toDd001_$3 (byte*) main::vicSelectGfxBank1_toDd001_gfx (byte) main::vicSelectGfxBank1_toDd001_return -(const byte) main::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_SCREEN#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 +(const byte) main::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_SCREEN_1#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 (byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield (void()) sprites_init() (label) sprites_init::@1 @@ -2759,7 +2807,7 @@ reg byte a [ irq::$3 ] FINAL ASSEMBLER -Score: 1274 +Score: 1290 //SEG0 Basic Upstart .pc = $801 "Basic" @@ -2792,13 +2840,15 @@ Score: 1274 .label HARDWARE_IRQ = $fffe .const BLACK = 0 .const DARK_GREY = $b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a .const IRQ_RASTER_FIRST = $31 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 .label irq_raster_next = 3 .label irq_sprite_ypos = 4 @@ -2833,8 +2883,8 @@ bbegin: //SEG18 @end //SEG19 main main: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN_1)>>6 + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f //SEG20 main::vicSelectGfxBank1 //SEG21 [11] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 lda #3 @@ -2859,8 +2909,8 @@ main: { jsr sprites_irq_init //SEG34 main::@2 b2: - //SEG35 [19] *((const byte*) PLAYFIELD_SCREEN#0) ← ++ *((const byte*) PLAYFIELD_SCREEN#0) -- _deref_pbuc1=_inc__deref_pbuc1 - inc PLAYFIELD_SCREEN + //SEG35 [19] *((const byte*) PLAYFIELD_SCREEN_1#0) ← ++ *((const byte*) PLAYFIELD_SCREEN_1#0) -- _deref_pbuc1=_inc__deref_pbuc1 + inc PLAYFIELD_SCREEN_1 jmp b2 } //SEG36 sprites_irq_init @@ -2978,90 +3028,98 @@ irq: { //SEG80 irq::@5 //SEG81 [51] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuaa=vbuz1 lda irq_sprite_ptr - //SEG82 [52] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa - sta PLAYFIELD_SPRITE_PTRS - //SEG83 [53] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa + //SEG82 [52] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_1 + //SEG83 [53] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_2 + //SEG84 [54] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa tax inx - //SEG84 [54] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+1 - //SEG85 [55] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+2 - //SEG86 [56] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx + //SEG85 [55] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+1 + //SEG86 [56] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+1 + //SEG87 [57] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+2 + //SEG88 [58] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+2 + //SEG89 [59] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx inx - //SEG87 [57] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+3 - //SEG88 [58] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 + //SEG90 [60] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+3 + //SEG91 [61] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+3 + //SEG92 [62] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 inc irq_cnt - //SEG89 [59] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG93 [63] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 lda irq_cnt cmp #$a beq b2 - //SEG90 irq::@6 - //SEG91 [60] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG94 irq::@6 + //SEG95 [64] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_raster_next sta irq_raster_next - //SEG92 [61] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG96 [65] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_sprite_ypos sta irq_sprite_ypos - //SEG93 [62] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 + //SEG97 [66] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lda #3 clc adc irq_sprite_ptr sta irq_sprite_ptr - //SEG94 [63] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] - //SEG95 [63] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy - //SEG96 irq::@3 + //SEG98 [67] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] + //SEG99 [67] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy + //SEG100 irq::@3 b3: - //SEG97 [64] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 + //SEG101 [68] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 ldx irq_raster_next - //SEG98 [65] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 + //SEG102 [69] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 txa and #7 - //SEG99 [66] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 + //SEG103 [70] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 cmp #3 bne b4 - //SEG100 irq::@8 - //SEG101 [67] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 + //SEG104 irq::@8 + //SEG105 [71] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 dex - //SEG102 [68] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] - //SEG103 [68] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy - //SEG104 irq::@4 + //SEG106 [72] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] + //SEG107 [72] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy + //SEG108 irq::@4 b4: - //SEG105 [69] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx + //SEG109 [73] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx stx RASTER - //SEG106 [70] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG110 [74] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG107 [71] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG111 [75] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BORDERCOL - //SEG108 irq::@return - //SEG109 [72] return - exit interrupt(HARDWARE_CLOBBER) + //SEG112 irq::@return + //SEG113 [76] return - exit interrupt(HARDWARE_CLOBBER) rega: lda #00 regx: ldx #00 rti - //SEG110 irq::@2 + //SEG114 irq::@2 b2: - //SEG111 [73] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 + //SEG115 [77] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt - //SEG112 [74] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 + //SEG116 [78] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next - //SEG113 [75] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 + //SEG117 [79] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos - //SEG114 [76] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] - //SEG115 irq::toSpritePtr2 - //SEG116 irq::@9 - //SEG117 [77] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 + //SEG118 [80] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] + //SEG119 irq::toSpritePtr2 + //SEG120 irq::@9 + //SEG121 [81] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 lda #toSpritePtr2_return sta irq_sprite_ptr jmp b3 diff --git a/src/test/ref/examples/tetris/test-sprites.sym b/src/test/ref/examples/tetris/test-sprites.sym index 78230e8bd..78f4f1431 100644 --- a/src/test/ref/examples/tetris/test-sprites.sym +++ b/src/test/ref/examples/tetris/test-sprites.sym @@ -68,12 +68,17 @@ (const byte) PLAYFIELD_COLS#0 PLAYFIELD_COLS = (byte/signed byte/word/signed word/dword/signed dword) 10 (byte) PLAYFIELD_LINES (const byte) PLAYFIELD_LINES#0 PLAYFIELD_LINES = (byte/signed byte/word/signed word/dword/signed dword) 22 -(byte*) PLAYFIELD_SCREEN -(const byte*) PLAYFIELD_SCREEN#0 PLAYFIELD_SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_1 +(const byte*) PLAYFIELD_SCREEN_1#0 PLAYFIELD_SCREEN_1 = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_2 +(const byte*) PLAYFIELD_SCREEN_2#0 PLAYFIELD_SCREEN_2 = ((byte*))(word/signed word/dword/signed dword) 11264 +(byte*) PLAYFIELD_SCREEN_ORIGINAL (byte*) PLAYFIELD_SPRITES (const byte*) PLAYFIELD_SPRITES#0 PLAYFIELD_SPRITES = ((byte*))(word/signed word/dword/signed dword) 8192 -(byte*) PLAYFIELD_SPRITE_PTRS -(const byte*) PLAYFIELD_SPRITE_PTRS#0 PLAYFIELD_SPRITE_PTRS = (const byte*) PLAYFIELD_SCREEN#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(const byte*) PLAYFIELD_SPRITE_PTRS_1#0 PLAYFIELD_SPRITE_PTRS_1 = (const byte*) PLAYFIELD_SCREEN_1#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_2 +(const byte*) PLAYFIELD_SPRITE_PTRS_2#0 PLAYFIELD_SPRITE_PTRS_2 = (const byte*) PLAYFIELD_SCREEN_2#0+(const word) SPRITE_PTRS#0 (byte*) PROCPORT (const byte*) PROCPORT#0 PROCPORT = ((byte*))(byte/signed byte/word/signed word/dword/signed dword) 1 (byte) PROCPORT_BASIC_KERNEL_IO @@ -139,9 +144,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) irq::@9 (label) irq::@return (byte) irq::ptr -(byte) irq::ptr#0 reg byte a 3.0 -(byte) irq::ptr#1 reg byte x 2.6666666666666665 -(byte) irq::ptr#2 reg byte x 4.0 +(byte) irq::ptr#0 reg byte a 2.6666666666666665 +(byte) irq::ptr#1 reg byte x 2.4 +(byte) irq::ptr#2 reg byte x 3.0 (byte) irq::raster_next (byte) irq::raster_next#0 reg byte x 2.6666666666666665 (byte) irq::raster_next#1 reg byte x 4.0 @@ -156,20 +161,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) irq::ypos (byte) irq::ypos#0 reg byte a 2.5 (byte) irq_cnt -(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:6 0.2857142857142857 +(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:6 0.2222222222222222 (byte) irq_cnt#1 irq_cnt zp ZP_BYTE:6 4.0 (byte) irq_cnt#13 irq_cnt zp ZP_BYTE:6 20.0 (byte) irq_raster_next -(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:3 0.25 +(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:3 0.2 (byte) irq_raster_next#1 irq_raster_next zp ZP_BYTE:3 1.0 (byte) irq_raster_next#12 irq_raster_next zp ZP_BYTE:3 6.0 (byte) irq_raster_next#2 irq_raster_next zp ZP_BYTE:3 1.3333333333333333 (byte) irq_sprite_ptr -(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:5 0.3333333333333333 +(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:5 0.2727272727272727 (byte) irq_sprite_ptr#1 irq_sprite_ptr zp ZP_BYTE:5 20.0 (byte) irq_sprite_ptr#2 irq_sprite_ptr zp ZP_BYTE:5 20.0 (byte) irq_sprite_ypos -(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:4 1.0 +(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:4 0.8095238095238095 (byte) irq_sprite_ypos#1 irq_sprite_ypos zp ZP_BYTE:4 20.0 (byte) irq_sprite_ypos#2 irq_sprite_ypos zp ZP_BYTE:4 20.0 (void()) main() @@ -188,7 +193,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte~) main::toD0181_$8 (byte*) main::toD0181_gfx (byte) main::toD0181_return -(const byte) main::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 +(const byte) main::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 (byte*) main::toD0181_screen (label) main::vicSelectGfxBank1 (byte~) main::vicSelectGfxBank1_$0 @@ -201,7 +206,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte/word/dword~) main::vicSelectGfxBank1_toDd001_$3 (byte*) main::vicSelectGfxBank1_toDd001_gfx (byte) main::vicSelectGfxBank1_toDd001_return -(const byte) main::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_SCREEN#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 +(const byte) main::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_SCREEN_1#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 (byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield (void()) sprites_init() (label) sprites_init::@1 diff --git a/src/test/ref/examples/tetris/tetris.asm b/src/test/ref/examples/tetris/tetris.asm index 16dca18a7..e3adc5d54 100644 --- a/src/test/ref/examples/tetris/tetris.asm +++ b/src/test/ref/examples/tetris/tetris.asm @@ -59,12 +59,13 @@ .label SID_VOICE3_CONTROL = $d412 .const SID_CONTROL_NOISE = $80 .label SID_VOICE3_OSC = $d41b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 + .label PLAYFIELD_SCREEN_ORIGINAL = $1800 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a - .label PLAYFIELD_SCREEN_ORIGINAL = $2c00 .const IRQ_RASTER_FIRST = $31 .const current_movedown_slow = $32 .const current_movedown_fast = 5 @@ -73,34 +74,39 @@ .const COLLISION_BOTTOM = 2 .const COLLISION_LEFT = 4 .const COLLISION_RIGHT = 8 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 - .label keyboard_events_size = $13 - .label irq_raster_next = $14 - .label irq_sprite_ypos = $15 - .label irq_sprite_ptr = $16 - .label irq_cnt = $17 - .label current_movedown_counter = 2 - .label current_ypos = $b - .label current_piece_gfx = $f - .label current_xpos = $11 - .label current_piece_char = $12 - .label current_orientation = $e - .label current_piece = $c - .label current_piece_12 = 4 - .label current_xpos_47 = 3 - .label current_piece_gfx_52 = 4 - .label current_piece_char_62 = 6 - .label current_xpos_109 = 3 - .label current_xpos_110 = 3 - .label current_piece_gfx_99 = 4 - .label current_piece_gfx_100 = 4 - .label current_piece_char_87 = 6 - .label current_piece_char_88 = 6 - .label current_piece_73 = 4 - .label current_piece_74 = 4 - .label current_piece_75 = 4 - .label current_piece_76 = 4 + .label keyboard_events_size = $16 + .label irq_raster_next = $17 + .label irq_sprite_ypos = $18 + .label irq_sprite_ptr = $19 + .label irq_cnt = $1a + .label current_movedown_counter = 4 + .label current_ypos = $e + .label current_piece_gfx = $12 + .label current_xpos = $14 + .label current_piece_char = $15 + .label current_orientation = $11 + .label render_screen_render = 3 + .label render_screen_show = 2 + .label current_piece = $f + .label current_piece_12 = 7 + .label render_screen_render_27 = 5 + .label current_xpos_47 = 6 + .label current_piece_gfx_52 = 7 + .label current_piece_char_62 = 9 + .label render_screen_render_68 = 5 + .label current_xpos_109 = 6 + .label current_xpos_110 = 6 + .label current_piece_gfx_99 = 7 + .label current_piece_gfx_100 = 7 + .label current_piece_char_87 = 9 + .label current_piece_char_88 = 9 + .label current_piece_73 = 7 + .label current_piece_74 = 7 + .label current_piece_75 = 7 + .label current_piece_76 = 7 bbegin: lda #IRQ_RASTER_FIRST sta irq_raster_next @@ -112,8 +118,8 @@ bbegin: sta irq_cnt jsr main main: { - .label key_event = $18 - .label render = $19 + .label key_event = $d + .label render = $1b jsr sid_rnd_init sei jsr render_init @@ -121,6 +127,7 @@ main: { jsr sprites_irq_init jsr play_init jsr play_spawn_current + ldx #$40 jsr render_playfield ldx current_ypos lda current_xpos @@ -131,6 +138,8 @@ main: { sta current_piece_gfx_99+1 lda current_piece_char sta current_piece_char_87 + lda #$40 + sta render_screen_render_27 jsr render_current ldy play_spawn_current._3 lda PIECES,y @@ -141,15 +150,21 @@ main: { sta current_movedown_counter sta keyboard_events_size sta current_orientation + lda #$40 + sta render_screen_render + lda #0 + sta render_screen_show b4: lda RASTER cmp #$ff bne b4 - b7: - lda RASTER - cmp #$fe - bne b7 - inc BORDERCOL + lda render_screen_show + lsr + lsr + lsr + lsr + sta BORDERCOL + jsr render_show jsr keyboard_event_scan jsr keyboard_event_get sta key_event @@ -168,9 +183,12 @@ main: { clc adc render cmp #0 - beq b10 + beq b7 + ldx render_screen_render jsr render_playfield ldx current_ypos + lda render_screen_render + sta render_screen_render_68 lda current_xpos sta current_xpos_110 lda current_piece_gfx @@ -180,16 +198,27 @@ main: { lda current_piece_char sta current_piece_char_88 jsr render_current - b10: - dec BORDERCOL + jsr render_screen_swap + b7: + lda #0 + sta BORDERCOL jmp b4 } +render_screen_swap: { + lda render_screen_render + eor #$40 + sta render_screen_render + lda render_screen_show + eor #$40 + sta render_screen_show + rts +} render_current: { - .label ypos2 = 7 - .label screen_line = $1a - .label xpos = $a - .label i = 9 - .label l = 8 + .label ypos2 = $a + .label screen_line = $1c + .label xpos = $d + .label i = $c + .label l = $b txa asl sta ypos2 @@ -223,10 +252,13 @@ render_current: { bcc b2 jmp b7 b2: - ldy ypos2 - lda screen_lines,y + lda render_screen_render_27 + clc + adc ypos2 + tay + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 lda current_xpos_47 sta xpos @@ -251,9 +283,10 @@ render_current: { jmp b3 } render_playfield: { - .label screen_line = 4 + .label screen_line = 7 .label i = 6 - .label l = 3 + .label c = 9 + .label l = 5 lda #PLAYFIELD_COLS*2 sta i lda #2 @@ -261,12 +294,16 @@ render_playfield: { b1: lda l asl + stx $ff + clc + adc $ff tay - lda screen_lines,y + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 - ldx #0 + lda #0 + sta c b2: ldy i lda playfield,y @@ -277,8 +314,9 @@ render_playfield: { inc screen_line+1 !: inc i - inx - cpx #PLAYFIELD_COLS-1+1 + inc c + lda c + cmp #PLAYFIELD_COLS-1+1 bne b2 inc l lda l @@ -287,7 +325,7 @@ render_playfield: { rts } play_move_rotate: { - .label orientation = 3 + .label orientation = 5 cmp #KEY_Z beq b1 cmp #KEY_X @@ -334,16 +372,16 @@ play_move_rotate: { } play_collision: { .label xpos = 6 - .label piece_gfx = 4 - .label ypos2 = 7 - .label playfield_line = $1a - .label i = $1c - .label col = $a - .label l = 8 - .label i_2 = 9 - .label i_3 = 9 - .label i_11 = 9 - .label i_13 = 9 + .label piece_gfx = 7 + .label ypos2 = 9 + .label playfield_line = $1c + .label i = $1e + .label col = $c + .label l = $a + .label i_2 = $b + .label i_3 = $b + .label i_11 = $b + .label i_13 = $b txa clc adc piece_gfx @@ -527,7 +565,7 @@ play_move_down: { jmp b7 } play_spawn_current: { - .label _3 = 2 + .label _3 = 4 ldx #7 b1: cpx #7 @@ -558,9 +596,9 @@ sid_rnd: { rts } play_remove_lines: { - .label c = 7 - .label x = 3 - .label y = 2 + .label c = 9 + .label x = 5 + .label y = 4 .label full = 6 lda #0 sta y @@ -610,15 +648,15 @@ play_remove_lines: { jmp b5 } play_lock_current: { - .label ypos2 = $b - .label playfield_line = 4 + .label ypos2 = $e + .label playfield_line = 7 .label col = 6 - .label i = 7 - .label l = 2 - .label i_2 = 3 - .label i_3 = 3 - .label i_7 = 3 - .label i_9 = 3 + .label i = 9 + .label l = 4 + .label i_2 = 5 + .label i_3 = 5 + .label i_7 = 5 + .label i_9 = 5 asl ypos2 lda #0 sta l @@ -668,7 +706,7 @@ play_lock_current: { } keyboard_event_pressed: { .label row_bits = 6 - .label keycode = 3 + .label keycode = 5 lda keycode lsr lsr @@ -697,9 +735,9 @@ keyboard_event_get: { rts } keyboard_event_scan: { - .label row_scan = 7 + .label row_scan = 9 .label keycode = 6 - .label row = 3 + .label row = 5 lda #0 sta keycode sta row @@ -800,8 +838,22 @@ keyboard_matrix_read: { eor #$ff rts } +render_show: { + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const toD0182_return = (>(PLAYFIELD_SCREEN_2&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + lda render_screen_show + cmp #0 + beq toD0181 + lda #toD0182_return + b2: + sta D018 + rts + toD0181: + lda #toD0181_return + jmp b2 +} play_init: { - .label pli = 4 + .label pli = 7 .label idx = 2 lda #0 sta idx @@ -892,18 +944,16 @@ sprites_init: { rts } render_init: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f - .label _18 = $c - .label li = 4 - .label line = 4 + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_CHARSET)>>6 + .label _12 = $f + .label line = 7 .label l = 2 + .label li_1 = 7 + .label li_2 = $f lda #3 sta CIA2_PORT_A_DDR lda #vicSelectGfxBank1_toDd001_return sta CIA2_PORT_A - lda #toD0181_return - sta D018 lda #VIC_ECM|VIC_DEN|VIC_RSEL|3 sta D011 lda #BLACK @@ -914,53 +964,39 @@ render_init: { sta BGCOL3 lda #GREY sta BGCOL4 - jsr fill + lda #PLAYFIELD_SCREEN_1 + sta render_screen_original.screen+1 jsr render_screen_original - lda #PLAYFIELD_SCREEN+2*$28+$10 - sta li+1 - ldx #0 - b1: - txa - asl - tay - lda li - sta screen_lines,y - lda li+1 - sta screen_lines+1,y - lda li - clc - adc #$28 - sta li - bcc !+ - inc li+1 - !: - inx - cpx #PLAYFIELD_LINES-1+1 - bne b1 + lda #PLAYFIELD_SCREEN_2 + sta render_screen_original.screen+1 + jsr render_screen_original + jsr fill lda #2 sta l lda #COLS+4*$28+$10 sta line+1 - b2: + b1: ldx #0 - b3: + b2: txa clc adc line - sta _18 + sta _12 lda #0 adc line+1 - sta _18+1 + sta _12+1 lda #WHITE ldy #0 - sta (_18),y + sta (_12),y inx cpx #PLAYFIELD_COLS-1+1 - bne b3 + bne b2 lda line clc adc #$28 @@ -971,13 +1007,78 @@ render_init: { inc l lda l cmp #PLAYFIELD_LINES-1+1 - bne b2 + bne b1 + lda #PLAYFIELD_SCREEN_2+2*$28+$10 + sta li_2+1 + lda #PLAYFIELD_SCREEN_1+2*$28+$10 + sta li_1+1 + ldx #0 + b3: + txa + asl + tay + lda li_1 + sta screen_lines_1,y + lda li_1+1 + sta screen_lines_1+1,y + txa + asl + tay + lda li_2 + sta screen_lines_2,y + lda li_2+1 + sta screen_lines_2+1,y + lda li_1 + clc + adc #$28 + sta li_1 + bcc !+ + inc li_1+1 + !: + lda li_2 + clc + adc #$28 + sta li_2 + bcc !+ + inc li_2+1 + !: + inx + cpx #PLAYFIELD_LINES-1+1 + bne b3 + rts +} +fill: { + .const size = $3e8 + .label end = COLS+size + .label addr = 7 + lda #COLS + sta addr+1 + b1: + lda #DARK_GREY + ldy #0 + sta (addr),y + inc addr + bne !+ + inc addr+1 + !: + lda addr+1 + cmp #>end + bne b1 + lda addr + cmp #PLAYFIELD_SCREEN_ORIGINAL+$20*2 sta orig+1 - lda #PLAYFIELD_SCREEN - sta screen+1 b1: ldx #0 b2: @@ -1053,30 +1150,6 @@ render_screen_original: { tay jmp b4 } -fill: { - .const size = $3e8 - .label end = COLS+size - .label addr = 4 - lda #COLS - sta addr+1 - b1: - lda #DARK_GREY - ldy #0 - sta (addr),y - inc addr - bne !+ - inc addr+1 - !: - lda addr+1 - cmp #>end - bne b1 - lda addr - cmp #> (byte/signed byte/word/signed word/dword/signed dword) 4 + [35] *((const byte*) BORDERCOL#0) ← (byte~) main::$9 + [36] call render_show + to:main::@23 +main::@23: scope:[main] from main::@6 [37] phi() - [38] call keyboard_event_get - [39] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 + [38] call keyboard_event_scan + to:main::@24 +main::@24: scope:[main] from main::@23 + [39] phi() + [40] call keyboard_event_get + [41] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 + to:main::@25 +main::@25: scope:[main] from main::@24 + [42] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 + [43] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 + [44] call play_move_down + [45] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 + to:main::@26 +main::@26: scope:[main] from main::@25 + [46] (byte~) main::$13 ← (byte) play_move_down::return#3 + [47] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$13 + [48] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 + [49] call play_move_leftright + [50] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 + to:main::@27 +main::@27: scope:[main] from main::@26 + [51] (byte~) main::$14 ← (byte) play_move_leftright::return#4 + [52] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$14 + [53] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 + [54] call play_move_rotate + [55] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 + to:main::@28 +main::@28: scope:[main] from main::@27 + [56] (byte~) main::$15 ← (byte) play_move_rotate::return#4 + [57] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$15 + [58] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@7 + to:main::@13 +main::@13: scope:[main] from main::@28 + [59] (byte~) render_screen_render#69 ← (byte) render_screen_render#15 + [60] call render_playfield + to:main::@29 +main::@29: scope:[main] from main::@13 + [61] (byte~) current_ypos#84 ← (byte) current_ypos#13 + [62] (byte~) render_screen_render#68 ← (byte) render_screen_render#15 + [63] (byte~) current_xpos#110 ← (byte) current_xpos#19 + [64] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 + [65] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 + [66] call render_current to:main::@30 main::@30: scope:[main] from main::@29 - [40] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 - [41] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 - [42] call play_move_down - [43] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 - to:main::@31 -main::@31: scope:[main] from main::@30 - [44] (byte~) main::$12 ← (byte) play_move_down::return#3 - [45] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$12 - [46] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 - [47] call play_move_leftright - [48] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 - to:main::@32 -main::@32: scope:[main] from main::@31 - [49] (byte~) main::$13 ← (byte) play_move_leftright::return#4 - [50] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$13 - [51] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 - [52] call play_move_rotate - [53] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 - to:main::@33 -main::@33: scope:[main] from main::@32 - [54] (byte~) main::$14 ← (byte) play_move_rotate::return#4 - [55] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$14 - [56] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@10 - to:main::@19 -main::@19: scope:[main] from main::@33 - [57] phi() - [58] call render_playfield - to:main::@34 -main::@34: scope:[main] from main::@19 - [59] (byte~) current_ypos#84 ← (byte) current_ypos#13 - [60] (byte~) current_xpos#110 ← (byte) current_xpos#19 - [61] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 - [62] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 - [63] call render_current - to:main::@10 -main::@10: scope:[main] from main::@33 main::@34 - [64] *((const byte*) BORDERCOL#0) ← -- *((const byte*) BORDERCOL#0) + [67] phi() + [68] call render_screen_swap + to:main::@7 +main::@7: scope:[main] from main::@28 main::@30 + [69] (byte) render_screen_render#31 ← phi( main::@28/(byte) render_screen_render#15 main::@30/(byte) render_screen_render#10 ) + [69] (byte) render_screen_show#24 ← phi( main::@28/(byte) render_screen_show#15 main::@30/(byte) render_screen_show#11 ) + [70] *((const byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:main::@1 -render_current: scope:[render_current] from main::@27 main::@34 - [65] (byte) current_piece_char#62 ← phi( main::@27/(byte~) current_piece_char#87 main::@34/(byte~) current_piece_char#88 ) - [65] (byte*) current_piece_gfx#52 ← phi( main::@27/(byte*~) current_piece_gfx#99 main::@34/(byte*~) current_piece_gfx#100 ) - [65] (byte) current_xpos#47 ← phi( main::@27/(byte~) current_xpos#109 main::@34/(byte~) current_xpos#110 ) - [65] (byte) current_ypos#9 ← phi( main::@27/(byte~) current_ypos#83 main::@34/(byte~) current_ypos#84 ) - [66] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 +render_screen_swap: scope:[render_screen_swap] from main::@30 + [71] (byte) render_screen_render#10 ← (byte) render_screen_render#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 + [72] (byte) render_screen_show#11 ← (byte) render_screen_show#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 + to:render_screen_swap::@return +render_screen_swap::@return: scope:[render_screen_swap] from render_screen_swap + [73] return + to:@return +render_current: scope:[render_current] from main::@21 main::@29 + [74] (byte) current_piece_char#62 ← phi( main::@21/(byte~) current_piece_char#87 main::@29/(byte~) current_piece_char#88 ) + [74] (byte*) current_piece_gfx#52 ← phi( main::@21/(byte*~) current_piece_gfx#99 main::@29/(byte*~) current_piece_gfx#100 ) + [74] (byte) current_xpos#47 ← phi( main::@21/(byte~) current_xpos#109 main::@29/(byte~) current_xpos#110 ) + [74] (byte) render_screen_render#27 ← phi( main::@21/(byte/signed byte/word/signed word/dword/signed dword) 64 main::@29/(byte~) render_screen_render#68 ) + [74] (byte) current_ypos#9 ← phi( main::@21/(byte~) current_ypos#83 main::@29/(byte~) current_ypos#84 ) + [75] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 to:render_current::@1 render_current::@1: scope:[render_current] from render_current render_current::@3 - [67] (byte) render_current::l#4 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::l#1 ) - [67] (byte) render_current::i#3 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::i#8 ) - [67] (byte) render_current::ypos2#2 ← phi( render_current/(byte) render_current::ypos2#0 render_current::@3/(byte) render_current::ypos2#1 ) - [68] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 + [76] (byte) render_current::l#4 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::l#1 ) + [76] (byte) render_current::i#3 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::i#8 ) + [76] (byte) render_current::ypos2#2 ← phi( render_current/(byte) render_current::ypos2#0 render_current::@3/(byte) render_current::ypos2#1 ) + [77] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 to:render_current::@7 render_current::@7: scope:[render_current] from render_current::@1 render_current::@13 - [69] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 + [78] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 to:render_current::@3 render_current::@3: scope:[render_current] from render_current::@5 render_current::@7 - [70] (byte) render_current::i#8 ← phi( render_current::@5/(byte) render_current::i#10 render_current::@7/(byte) render_current::i#1 ) - [71] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 - [72] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 - [73] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 + [79] (byte) render_current::i#8 ← phi( render_current::@5/(byte) render_current::i#10 render_current::@7/(byte) render_current::i#1 ) + [80] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 + [81] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 + [82] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 to:render_current::@return render_current::@return: scope:[render_current] from render_current::@3 - [74] return + [83] return to:@return render_current::@13: scope:[render_current] from render_current::@1 - [75] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 + [84] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 to:render_current::@7 render_current::@2: scope:[render_current] from render_current::@13 - [76] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#2) - [77] (byte) render_current::xpos#0 ← (byte) current_xpos#47 + [85] (byte~) render_current::$5 ← (byte) render_screen_render#27 + (byte) render_current::ypos2#2 + [86] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) + [87] (byte) render_current::xpos#0 ← (byte) current_xpos#47 to:render_current::@4 render_current::@4: scope:[render_current] from render_current::@2 render_current::@5 - [78] (byte) render_current::c#2 ← phi( render_current::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@5/(byte) render_current::c#1 ) - [78] (byte) render_current::xpos#2 ← phi( render_current::@2/(byte) render_current::xpos#0 render_current::@5/(byte) render_current::xpos#1 ) - [78] (byte) render_current::i#4 ← phi( render_current::@2/(byte) render_current::i#3 render_current::@5/(byte) render_current::i#10 ) - [79] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) - [80] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 - [81] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 + [88] (byte) render_current::c#2 ← phi( render_current::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@5/(byte) render_current::c#1 ) + [88] (byte) render_current::xpos#2 ← phi( render_current::@2/(byte) render_current::xpos#0 render_current::@5/(byte) render_current::xpos#1 ) + [88] (byte) render_current::i#4 ← phi( render_current::@2/(byte) render_current::i#3 render_current::@5/(byte) render_current::i#10 ) + [89] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) + [90] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 + [91] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 to:render_current::@9 render_current::@9: scope:[render_current] from render_current::@4 - [82] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 + [92] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 to:render_current::@10 render_current::@10: scope:[render_current] from render_current::@9 - [83] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 + [93] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 to:render_current::@5 render_current::@5: scope:[render_current] from render_current::@10 render_current::@4 render_current::@9 - [84] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 - [85] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 - [86] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 + [94] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 + [95] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 + [96] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 to:render_current::@3 -render_playfield: scope:[render_playfield] from main::@19 main::@26 - [87] phi() +render_playfield: scope:[render_playfield] from main::@13 main::@20 + [97] (byte) render_screen_render#18 ← phi( main::@13/(byte~) render_screen_render#69 main::@20/(byte/signed byte/word/signed word/dword/signed dword) 64 ) to:render_playfield::@1 render_playfield::@1: scope:[render_playfield] from render_playfield render_playfield::@3 - [88] (byte) render_playfield::i#3 ← phi( render_playfield/(const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::i#1 ) - [88] (byte) render_playfield::l#2 ← phi( render_playfield/(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::l#1 ) - [89] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [90] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) + [98] (byte) render_playfield::i#3 ← phi( render_playfield/(const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::i#1 ) + [98] (byte) render_playfield::l#2 ← phi( render_playfield/(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::l#1 ) + [99] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [100] (byte~) render_playfield::$3 ← (byte) render_screen_render#18 + (byte~) render_playfield::$2 + [101] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) to:render_playfield::@2 render_playfield::@2: scope:[render_playfield] from render_playfield::@1 render_playfield::@2 - [91] (byte) render_playfield::c#2 ← phi( render_playfield::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_playfield::@2/(byte) render_playfield::c#1 ) - [91] (byte*) render_playfield::screen_line#2 ← phi( render_playfield::@1/(byte*) render_playfield::screen_line#0 render_playfield::@2/(byte*) render_playfield::screen_line#1 ) - [91] (byte) render_playfield::i#2 ← phi( render_playfield::@1/(byte) render_playfield::i#3 render_playfield::@2/(byte) render_playfield::i#1 ) - [92] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) - [93] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 - [94] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 - [95] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 - [96] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 + [102] (byte) render_playfield::c#2 ← phi( render_playfield::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_playfield::@2/(byte) render_playfield::c#1 ) + [102] (byte*) render_playfield::screen_line#2 ← phi( render_playfield::@1/(byte*) render_playfield::screen_line#0 render_playfield::@2/(byte*) render_playfield::screen_line#1 ) + [102] (byte) render_playfield::i#2 ← phi( render_playfield::@1/(byte) render_playfield::i#3 render_playfield::@2/(byte) render_playfield::i#1 ) + [103] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) + [104] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 + [105] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 + [106] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 + [107] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 to:render_playfield::@3 render_playfield::@3: scope:[render_playfield] from render_playfield::@2 - [97] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 - [98] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 + [108] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 + [109] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 to:render_playfield::@return render_playfield::@return: scope:[render_playfield] from render_playfield::@3 - [99] return + [110] return to:@return -play_move_rotate: scope:[play_move_rotate] from main::@32 - [100] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 +play_move_rotate: scope:[play_move_rotate] from main::@27 + [111] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 to:play_move_rotate::@6 play_move_rotate::@6: scope:[play_move_rotate] from play_move_rotate - [101] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 + [112] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 to:play_move_rotate::@return play_move_rotate::@return: scope:[play_move_rotate] from play_move_rotate::@11 play_move_rotate::@14 play_move_rotate::@6 - [102] (byte*) current_piece_gfx#14 ← phi( play_move_rotate::@11/(byte*) current_piece_gfx#3 play_move_rotate::@14/(byte*) current_piece_gfx#1 play_move_rotate::@6/(byte*) current_piece_gfx#1 ) - [102] (byte) current_orientation#19 ← phi( play_move_rotate::@11/(byte) current_orientation#4 play_move_rotate::@14/(byte) current_orientation#14 play_move_rotate::@6/(byte) current_orientation#14 ) - [102] (byte) play_move_rotate::return#1 ← phi( play_move_rotate::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_rotate::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_rotate::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [103] return + [113] (byte*) current_piece_gfx#14 ← phi( play_move_rotate::@11/(byte*) current_piece_gfx#3 play_move_rotate::@14/(byte*) current_piece_gfx#1 play_move_rotate::@6/(byte*) current_piece_gfx#1 ) + [113] (byte) current_orientation#19 ← phi( play_move_rotate::@11/(byte) current_orientation#4 play_move_rotate::@14/(byte) current_orientation#14 play_move_rotate::@6/(byte) current_orientation#14 ) + [113] (byte) play_move_rotate::return#1 ← phi( play_move_rotate::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_rotate::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_rotate::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [114] return to:@return play_move_rotate::@2: scope:[play_move_rotate] from play_move_rotate::@6 - [104] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 - [105] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 + [115] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 + [116] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 to:play_move_rotate::@4 play_move_rotate::@4: scope:[play_move_rotate] from play_move_rotate::@1 play_move_rotate::@2 - [106] (byte) play_move_rotate::orientation#3 ← phi( play_move_rotate::@1/(byte) play_move_rotate::orientation#1 play_move_rotate::@2/(byte) play_move_rotate::orientation#2 ) - [107] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 - [108] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 - [109] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 - [110] (byte*~) current_piece#76 ← (byte*) current_piece#10 - [111] call play_collision - [112] (byte) play_collision::return#13 ← (byte) play_collision::return#14 + [117] (byte) play_move_rotate::orientation#3 ← phi( play_move_rotate::@1/(byte) play_move_rotate::orientation#1 play_move_rotate::@2/(byte) play_move_rotate::orientation#2 ) + [118] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 + [119] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 + [120] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 + [121] (byte*~) current_piece#76 ← (byte*) current_piece#10 + [122] call play_collision + [123] (byte) play_collision::return#13 ← (byte) play_collision::return#14 to:play_move_rotate::@14 play_move_rotate::@14: scope:[play_move_rotate] from play_move_rotate::@4 - [113] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 - [114] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return + [124] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 + [125] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return to:play_move_rotate::@11 play_move_rotate::@11: scope:[play_move_rotate] from play_move_rotate::@14 - [115] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 - [116] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 + [126] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 + [127] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 to:play_move_rotate::@return play_move_rotate::@1: scope:[play_move_rotate] from play_move_rotate - [117] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 - [118] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 + [128] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 + [129] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 to:play_move_rotate::@4 play_collision: scope:[play_collision] from play_move_down::@12 play_move_leftright::@1 play_move_leftright::@7 play_move_rotate::@4 - [119] (byte) play_collision::xpos#5 ← phi( play_move_down::@12/(byte) play_collision::xpos#0 play_move_leftright::@1/(byte) play_collision::xpos#1 play_move_leftright::@7/(byte) play_collision::xpos#2 play_move_rotate::@4/(byte) play_collision::xpos#3 ) - [119] (byte) play_collision::ypos#4 ← phi( play_move_down::@12/(byte) play_collision::ypos#0 play_move_leftright::@1/(byte) play_collision::ypos#1 play_move_leftright::@7/(byte) play_collision::ypos#2 play_move_rotate::@4/(byte) play_collision::ypos#3 ) - [119] (byte) play_collision::orientation#4 ← phi( play_move_down::@12/(byte) play_collision::orientation#0 play_move_leftright::@1/(byte) play_collision::orientation#1 play_move_leftright::@7/(byte) play_collision::orientation#2 play_move_rotate::@4/(byte) play_collision::orientation#3 ) - [119] (byte*) current_piece#12 ← phi( play_move_down::@12/(byte*~) current_piece#73 play_move_leftright::@1/(byte*~) current_piece#74 play_move_leftright::@7/(byte*~) current_piece#75 play_move_rotate::@4/(byte*~) current_piece#76 ) - [120] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 - [121] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [130] (byte) play_collision::xpos#5 ← phi( play_move_down::@12/(byte) play_collision::xpos#0 play_move_leftright::@1/(byte) play_collision::xpos#1 play_move_leftright::@7/(byte) play_collision::xpos#2 play_move_rotate::@4/(byte) play_collision::xpos#3 ) + [130] (byte) play_collision::ypos#4 ← phi( play_move_down::@12/(byte) play_collision::ypos#0 play_move_leftright::@1/(byte) play_collision::ypos#1 play_move_leftright::@7/(byte) play_collision::ypos#2 play_move_rotate::@4/(byte) play_collision::ypos#3 ) + [130] (byte) play_collision::orientation#4 ← phi( play_move_down::@12/(byte) play_collision::orientation#0 play_move_leftright::@1/(byte) play_collision::orientation#1 play_move_leftright::@7/(byte) play_collision::orientation#2 play_move_rotate::@4/(byte) play_collision::orientation#3 ) + [130] (byte*) current_piece#12 ← phi( play_move_down::@12/(byte*~) current_piece#73 play_move_leftright::@1/(byte*~) current_piece#74 play_move_leftright::@7/(byte*~) current_piece#75 play_move_rotate::@4/(byte*~) current_piece#76 ) + [131] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 + [132] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 to:play_collision::@1 play_collision::@1: scope:[play_collision] from play_collision play_collision::@20 - [122] (byte) play_collision::l#6 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte) play_collision::l#1 ) - [122] (byte) play_collision::i#3 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte~) play_collision::i#11 ) - [122] (byte) play_collision::ypos2#2 ← phi( play_collision/(byte) play_collision::ypos2#0 play_collision::@20/(byte) play_collision::ypos2#1 ) - [123] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) - [124] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 + [133] (byte) play_collision::l#6 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte) play_collision::l#1 ) + [133] (byte) play_collision::i#3 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte~) play_collision::i#11 ) + [133] (byte) play_collision::ypos2#2 ← phi( play_collision/(byte) play_collision::ypos2#0 play_collision::@20/(byte) play_collision::ypos2#1 ) + [134] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) + [135] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 to:play_collision::@2 play_collision::@2: scope:[play_collision] from play_collision::@1 play_collision::@21 - [125] (byte) play_collision::c#2 ← phi( play_collision::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@21/(byte) play_collision::c#1 ) - [125] (byte) play_collision::col#2 ← phi( play_collision::@1/(byte~) play_collision::col#9 play_collision::@21/(byte) play_collision::col#1 ) - [125] (byte) play_collision::i#2 ← phi( play_collision::@1/(byte) play_collision::i#3 play_collision::@21/(byte~) play_collision::i#13 ) - [126] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 - [127] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 + [136] (byte) play_collision::c#2 ← phi( play_collision::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@21/(byte) play_collision::c#1 ) + [136] (byte) play_collision::col#2 ← phi( play_collision::@1/(byte~) play_collision::col#9 play_collision::@21/(byte) play_collision::col#1 ) + [136] (byte) play_collision::i#2 ← phi( play_collision::@1/(byte) play_collision::i#3 play_collision::@21/(byte~) play_collision::i#13 ) + [137] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 + [138] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 to:play_collision::@8 play_collision::@8: scope:[play_collision] from play_collision::@2 - [128] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 + [139] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 to:play_collision::@return play_collision::@return: scope:[play_collision] from play_collision::@17 play_collision::@4 play_collision::@5 play_collision::@6 play_collision::@8 - [129] (byte) play_collision::return#14 ← phi( play_collision::@4/(const byte) COLLISION_LEFT#0 play_collision::@5/(const byte) COLLISION_RIGHT#0 play_collision::@6/(const byte) COLLISION_PLAYFIELD#0 play_collision::@17/(const byte) COLLISION_NONE#0 play_collision::@8/(const byte) COLLISION_BOTTOM#0 ) - [130] return + [140] (byte) play_collision::return#14 ← phi( play_collision::@4/(const byte) COLLISION_LEFT#0 play_collision::@5/(const byte) COLLISION_RIGHT#0 play_collision::@6/(const byte) COLLISION_PLAYFIELD#0 play_collision::@17/(const byte) COLLISION_NONE#0 play_collision::@8/(const byte) COLLISION_BOTTOM#0 ) + [141] return to:@return play_collision::@4: scope:[play_collision] from play_collision::@8 - [131] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 - [132] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 + [142] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 + [143] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 to:play_collision::@return play_collision::@5: scope:[play_collision] from play_collision::@4 - [133] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 + [144] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 to:play_collision::@return play_collision::@6: scope:[play_collision] from play_collision::@5 - [134] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 + [145] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 to:play_collision::@return play_collision::@3: scope:[play_collision] from play_collision::@2 play_collision::@6 - [135] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 - [136] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 - [137] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 + [146] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 + [147] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 + [148] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 to:play_collision::@17 play_collision::@17: scope:[play_collision] from play_collision::@3 - [138] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 - [139] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 - [140] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 + [149] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 + [150] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 + [151] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 to:play_collision::@return play_collision::@20: scope:[play_collision] from play_collision::@17 - [141] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 + [152] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 to:play_collision::@1 play_collision::@21: scope:[play_collision] from play_collision::@3 - [142] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 + [153] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 to:play_collision::@2 -play_move_leftright: scope:[play_move_leftright] from main::@31 - [143] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 +play_move_leftright: scope:[play_move_leftright] from main::@26 + [154] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 to:play_move_leftright::@6 play_move_leftright::@6: scope:[play_move_leftright] from play_move_leftright - [144] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return + [155] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return to:play_move_leftright::@7 play_move_leftright::@7: scope:[play_move_leftright] from play_move_leftright::@6 - [145] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 - [146] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 - [147] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 - [148] (byte*~) current_piece#75 ← (byte*) current_piece#10 - [149] call play_collision - [150] (byte) play_collision::return#12 ← (byte) play_collision::return#14 + [156] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 + [157] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 + [158] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 + [159] (byte*~) current_piece#75 ← (byte*) current_piece#10 + [160] call play_collision + [161] (byte) play_collision::return#12 ← (byte) play_collision::return#14 to:play_move_leftright::@15 play_move_leftright::@15: scope:[play_move_leftright] from play_move_leftright::@7 - [151] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 - [152] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return + [162] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 + [163] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return to:play_move_leftright::@8 play_move_leftright::@8: scope:[play_move_leftright] from play_move_leftright::@15 - [153] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 + [164] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 to:play_move_leftright::@return play_move_leftright::@return: scope:[play_move_leftright] from play_move_leftright::@11 play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 play_move_leftright::@8 - [154] (byte) current_xpos#19 ← phi( play_move_leftright::@11/(byte) current_xpos#4 play_move_leftright::@15/(byte) current_xpos#1 play_move_leftright::@8/(byte) current_xpos#2 play_move_leftright::@14/(byte) current_xpos#1 play_move_leftright::@6/(byte) current_xpos#1 ) - [154] (byte) play_move_leftright::return#1 ← phi( play_move_leftright::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@15/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [155] return + [165] (byte) current_xpos#19 ← phi( play_move_leftright::@11/(byte) current_xpos#4 play_move_leftright::@15/(byte) current_xpos#1 play_move_leftright::@8/(byte) current_xpos#2 play_move_leftright::@14/(byte) current_xpos#1 play_move_leftright::@6/(byte) current_xpos#1 ) + [165] (byte) play_move_leftright::return#1 ← phi( play_move_leftright::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@15/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [166] return to:@return play_move_leftright::@1: scope:[play_move_leftright] from play_move_leftright - [156] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 - [157] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 - [158] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 - [159] (byte*~) current_piece#74 ← (byte*) current_piece#10 - [160] call play_collision - [161] (byte) play_collision::return#1 ← (byte) play_collision::return#14 + [167] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 + [168] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 + [169] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 + [170] (byte*~) current_piece#74 ← (byte*) current_piece#10 + [171] call play_collision + [172] (byte) play_collision::return#1 ← (byte) play_collision::return#14 to:play_move_leftright::@14 play_move_leftright::@14: scope:[play_move_leftright] from play_move_leftright::@1 - [162] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 - [163] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return + [173] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 + [174] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return to:play_move_leftright::@11 play_move_leftright::@11: scope:[play_move_leftright] from play_move_leftright::@14 - [164] (byte) current_xpos#4 ← -- (byte) current_xpos#1 + [175] (byte) current_xpos#4 ← -- (byte) current_xpos#1 to:play_move_leftright::@return -play_move_down: scope:[play_move_down] from main::@30 - [165] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 - [166] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 +play_move_down: scope:[play_move_down] from main::@25 + [176] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 + [177] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 to:play_move_down::@8 play_move_down::@8: scope:[play_move_down] from play_move_down - [167] phi() + [178] phi() to:play_move_down::@1 play_move_down::@1: scope:[play_move_down] from play_move_down play_move_down::@8 - [168] (byte) play_move_down::movedown#10 ← phi( play_move_down/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 ) - [169] call keyboard_event_pressed - [170] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 + [179] (byte) play_move_down::movedown#10 ← phi( play_move_down/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 ) + [180] call keyboard_event_pressed + [181] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 to:play_move_down::@17 play_move_down::@17: scope:[play_move_down] from play_move_down::@1 - [171] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 - [172] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 + [182] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 + [183] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 to:play_move_down::@9 play_move_down::@9: scope:[play_move_down] from play_move_down::@17 - [173] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 + [184] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 to:play_move_down::@10 play_move_down::@10: scope:[play_move_down] from play_move_down::@9 - [174] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 + [185] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 to:play_move_down::@2 play_move_down::@2: scope:[play_move_down] from play_move_down::@10 play_move_down::@17 play_move_down::@9 - [175] (byte) play_move_down::movedown#7 ← phi( play_move_down::@10/(byte) play_move_down::movedown#2 play_move_down::@17/(byte) play_move_down::movedown#10 play_move_down::@9/(byte) play_move_down::movedown#10 ) - [176] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 + [186] (byte) play_move_down::movedown#7 ← phi( play_move_down::@10/(byte) play_move_down::movedown#2 play_move_down::@17/(byte) play_move_down::movedown#10 play_move_down::@9/(byte) play_move_down::movedown#10 ) + [187] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 to:play_move_down::@11 play_move_down::@11: scope:[play_move_down] from play_move_down::@2 - [177] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 + [188] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 to:play_move_down::@4 play_move_down::@4: scope:[play_move_down] from play_move_down::@11 play_move_down::@2 - [178] (byte) play_move_down::movedown#6 ← phi( play_move_down::@11/(byte) play_move_down::movedown#3 play_move_down::@2/(byte) play_move_down::movedown#7 ) - [179] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return + [189] (byte) play_move_down::movedown#6 ← phi( play_move_down::@11/(byte) play_move_down::movedown#3 play_move_down::@2/(byte) play_move_down::movedown#7 ) + [190] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return to:play_move_down::@12 play_move_down::@12: scope:[play_move_down] from play_move_down::@4 - [180] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 - [181] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 - [182] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 - [183] (byte*~) current_piece#73 ← (byte*) current_piece#16 - [184] call play_collision - [185] (byte) play_collision::return#0 ← (byte) play_collision::return#14 + [191] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 + [192] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 + [193] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 + [194] (byte*~) current_piece#73 ← (byte*) current_piece#16 + [195] call play_collision + [196] (byte) play_collision::return#0 ← (byte) play_collision::return#14 to:play_move_down::@18 play_move_down::@18: scope:[play_move_down] from play_move_down::@12 - [186] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 - [187] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 + [197] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 + [198] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 to:play_move_down::@13 play_move_down::@13: scope:[play_move_down] from play_move_down::@18 - [188] phi() - [189] call play_lock_current + [199] phi() + [200] call play_lock_current to:play_move_down::@19 play_move_down::@19: scope:[play_move_down] from play_move_down::@13 - [190] phi() - [191] call play_remove_lines + [201] phi() + [202] call play_remove_lines to:play_move_down::@20 play_move_down::@20: scope:[play_move_down] from play_move_down::@19 - [192] phi() - [193] call play_spawn_current - [194] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + [203] phi() + [204] call play_spawn_current + [205] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) to:play_move_down::@7 play_move_down::@7: scope:[play_move_down] from play_move_down::@20 play_move_down::@6 - [195] (byte) current_piece_char#20 ← phi( play_move_down::@20/(byte) current_piece_char#12 play_move_down::@6/(byte) current_piece_char#15 ) - [195] (byte) current_xpos#33 ← phi( play_move_down::@20/(byte) current_xpos#23 play_move_down::@6/(byte) current_xpos#10 ) - [195] (byte*) current_piece_gfx#26 ← phi( play_move_down::@20/(byte*) current_piece_gfx#16 play_move_down::@6/(byte*) current_piece_gfx#20 ) - [195] (byte) current_orientation#29 ← phi( play_move_down::@20/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@6/(byte) current_orientation#10 ) - [195] (byte*) current_piece#20 ← phi( play_move_down::@20/(byte*~) current_piece#77 play_move_down::@6/(byte*) current_piece#16 ) - [195] (byte) current_ypos#29 ← phi( play_move_down::@20/(byte) current_ypos#18 play_move_down::@6/(byte) current_ypos#0 ) + [206] (byte) current_piece_char#20 ← phi( play_move_down::@20/(byte) current_piece_char#12 play_move_down::@6/(byte) current_piece_char#15 ) + [206] (byte) current_xpos#33 ← phi( play_move_down::@20/(byte) current_xpos#23 play_move_down::@6/(byte) current_xpos#10 ) + [206] (byte*) current_piece_gfx#26 ← phi( play_move_down::@20/(byte*) current_piece_gfx#16 play_move_down::@6/(byte*) current_piece_gfx#20 ) + [206] (byte) current_orientation#29 ← phi( play_move_down::@20/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@6/(byte) current_orientation#10 ) + [206] (byte*) current_piece#20 ← phi( play_move_down::@20/(byte*~) current_piece#77 play_move_down::@6/(byte*) current_piece#16 ) + [206] (byte) current_ypos#29 ← phi( play_move_down::@20/(byte) current_ypos#18 play_move_down::@6/(byte) current_ypos#0 ) to:play_move_down::@return play_move_down::@return: scope:[play_move_down] from play_move_down::@4 play_move_down::@7 - [196] (byte) current_piece_char#1 ← phi( play_move_down::@4/(byte) current_piece_char#15 play_move_down::@7/(byte) current_piece_char#20 ) - [196] (byte) current_xpos#1 ← phi( play_move_down::@4/(byte) current_xpos#10 play_move_down::@7/(byte) current_xpos#33 ) - [196] (byte*) current_piece_gfx#1 ← phi( play_move_down::@4/(byte*) current_piece_gfx#20 play_move_down::@7/(byte*) current_piece_gfx#26 ) - [196] (byte) current_orientation#14 ← phi( play_move_down::@4/(byte) current_orientation#10 play_move_down::@7/(byte) current_orientation#29 ) - [196] (byte*) current_piece#10 ← phi( play_move_down::@4/(byte*) current_piece#16 play_move_down::@7/(byte*) current_piece#20 ) - [196] (byte) current_ypos#13 ← phi( play_move_down::@4/(byte) current_ypos#21 play_move_down::@7/(byte) current_ypos#29 ) - [196] (byte) current_movedown_counter#10 ← phi( play_move_down::@4/(byte) current_movedown_counter#1 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [196] (byte) play_move_down::return#2 ← phi( play_move_down::@4/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 1 ) - [197] return + [207] (byte) current_piece_char#1 ← phi( play_move_down::@4/(byte) current_piece_char#15 play_move_down::@7/(byte) current_piece_char#20 ) + [207] (byte) current_xpos#1 ← phi( play_move_down::@4/(byte) current_xpos#10 play_move_down::@7/(byte) current_xpos#33 ) + [207] (byte*) current_piece_gfx#1 ← phi( play_move_down::@4/(byte*) current_piece_gfx#20 play_move_down::@7/(byte*) current_piece_gfx#26 ) + [207] (byte) current_orientation#14 ← phi( play_move_down::@4/(byte) current_orientation#10 play_move_down::@7/(byte) current_orientation#29 ) + [207] (byte*) current_piece#10 ← phi( play_move_down::@4/(byte*) current_piece#16 play_move_down::@7/(byte*) current_piece#20 ) + [207] (byte) current_ypos#13 ← phi( play_move_down::@4/(byte) current_ypos#21 play_move_down::@7/(byte) current_ypos#29 ) + [207] (byte) current_movedown_counter#10 ← phi( play_move_down::@4/(byte) current_movedown_counter#1 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [207] (byte) play_move_down::return#2 ← phi( play_move_down::@4/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 1 ) + [208] return to:@return play_move_down::@6: scope:[play_move_down] from play_move_down::@18 - [198] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 + [209] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 to:play_move_down::@7 -play_spawn_current: scope:[play_spawn_current] from main::@25 play_move_down::@20 - [199] phi() +play_spawn_current: scope:[play_spawn_current] from main::@19 play_move_down::@20 + [210] phi() to:play_spawn_current::@1 play_spawn_current::@1: scope:[play_spawn_current] from play_spawn_current play_spawn_current::@7 - [200] (byte) play_spawn_current::piece_idx#2 ← phi( play_spawn_current/(byte/signed byte/word/signed word/dword/signed dword) 7 play_spawn_current::@7/(byte) play_spawn_current::piece_idx#1 ) - [201] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 + [211] (byte) play_spawn_current::piece_idx#2 ← phi( play_spawn_current/(byte/signed byte/word/signed word/dword/signed dword) 7 play_spawn_current::@7/(byte) play_spawn_current::piece_idx#1 ) + [212] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 to:play_spawn_current::@3 play_spawn_current::@3: scope:[play_spawn_current] from play_spawn_current::@1 - [202] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [203] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 - [204] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) - [205] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) - [206] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) + [213] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [214] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 + [215] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) + [216] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) + [217] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) to:play_spawn_current::@return play_spawn_current::@return: scope:[play_spawn_current] from play_spawn_current::@3 - [207] return + [218] return to:@return play_spawn_current::@2: scope:[play_spawn_current] from play_spawn_current::@1 - [208] phi() - [209] call sid_rnd - [210] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 + [219] phi() + [220] call sid_rnd + [221] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 to:play_spawn_current::@7 play_spawn_current::@7: scope:[play_spawn_current] from play_spawn_current::@2 - [211] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 - [212] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [222] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 + [223] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 to:play_spawn_current::@1 sid_rnd: scope:[sid_rnd] from play_spawn_current::@2 - [213] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) + [224] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) to:sid_rnd::@return sid_rnd::@return: scope:[sid_rnd] from sid_rnd - [214] return + [225] return to:@return play_remove_lines: scope:[play_remove_lines] from play_move_down::@19 - [215] phi() + [226] phi() to:play_remove_lines::@1 play_remove_lines::@1: scope:[play_remove_lines] from play_remove_lines play_remove_lines::@4 - [216] (byte) play_remove_lines::y#8 ← phi( play_remove_lines/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@4/(byte) play_remove_lines::y#1 ) - [216] (byte) play_remove_lines::w#12 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::w#11 ) - [216] (byte) play_remove_lines::r#3 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::r#1 ) + [227] (byte) play_remove_lines::y#8 ← phi( play_remove_lines/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@4/(byte) play_remove_lines::y#1 ) + [227] (byte) play_remove_lines::w#12 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::w#11 ) + [227] (byte) play_remove_lines::r#3 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::r#1 ) to:play_remove_lines::@2 play_remove_lines::@2: scope:[play_remove_lines] from play_remove_lines::@1 play_remove_lines::@3 - [217] (byte) play_remove_lines::full#4 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@3/(byte) play_remove_lines::full#2 ) - [217] (byte) play_remove_lines::x#2 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@3/(byte) play_remove_lines::x#1 ) - [217] (byte) play_remove_lines::w#4 ← phi( play_remove_lines::@1/(byte) play_remove_lines::w#12 play_remove_lines::@3/(byte) play_remove_lines::w#1 ) - [217] (byte) play_remove_lines::r#2 ← phi( play_remove_lines::@1/(byte) play_remove_lines::r#3 play_remove_lines::@3/(byte) play_remove_lines::r#1 ) - [218] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) - [219] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 - [220] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 + [228] (byte) play_remove_lines::full#4 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@3/(byte) play_remove_lines::full#2 ) + [228] (byte) play_remove_lines::x#2 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@3/(byte) play_remove_lines::x#1 ) + [228] (byte) play_remove_lines::w#4 ← phi( play_remove_lines::@1/(byte) play_remove_lines::w#12 play_remove_lines::@3/(byte) play_remove_lines::w#1 ) + [228] (byte) play_remove_lines::r#2 ← phi( play_remove_lines::@1/(byte) play_remove_lines::r#3 play_remove_lines::@3/(byte) play_remove_lines::r#1 ) + [229] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) + [230] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 + [231] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 to:play_remove_lines::@3 play_remove_lines::@3: scope:[play_remove_lines] from play_remove_lines::@17 play_remove_lines::@2 - [221] (byte) play_remove_lines::full#2 ← phi( play_remove_lines::@17/(byte) play_remove_lines::full#4 play_remove_lines::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [222] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 - [223] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 - [224] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 - [225] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 + [232] (byte) play_remove_lines::full#2 ← phi( play_remove_lines::@17/(byte) play_remove_lines::full#4 play_remove_lines::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [233] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 + [234] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 + [235] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 + [236] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 to:play_remove_lines::@9 play_remove_lines::@9: scope:[play_remove_lines] from play_remove_lines::@3 - [226] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 + [237] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 to:play_remove_lines::@10 play_remove_lines::@10: scope:[play_remove_lines] from play_remove_lines::@9 - [227] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 + [238] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 to:play_remove_lines::@4 play_remove_lines::@4: scope:[play_remove_lines] from play_remove_lines::@10 play_remove_lines::@9 - [228] (byte) play_remove_lines::w#11 ← phi( play_remove_lines::@10/(byte) play_remove_lines::w#2 play_remove_lines::@9/(byte) play_remove_lines::w#1 ) - [229] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 - [230] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 + [239] (byte) play_remove_lines::w#11 ← phi( play_remove_lines::@10/(byte) play_remove_lines::w#2 play_remove_lines::@9/(byte) play_remove_lines::w#1 ) + [240] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 + [241] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 to:play_remove_lines::@5 play_remove_lines::@5: scope:[play_remove_lines] from play_remove_lines::@4 play_remove_lines::@6 - [231] (byte) play_remove_lines::w#6 ← phi( play_remove_lines::@4/(byte) play_remove_lines::w#11 play_remove_lines::@6/(byte) play_remove_lines::w#3 ) - [232] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 + [242] (byte) play_remove_lines::w#6 ← phi( play_remove_lines::@4/(byte) play_remove_lines::w#11 play_remove_lines::@6/(byte) play_remove_lines::w#3 ) + [243] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 to:play_remove_lines::@return play_remove_lines::@return: scope:[play_remove_lines] from play_remove_lines::@5 - [233] return + [244] return to:@return play_remove_lines::@6: scope:[play_remove_lines] from play_remove_lines::@5 - [234] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [235] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 + [245] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [246] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 to:play_remove_lines::@5 play_remove_lines::@17: scope:[play_remove_lines] from play_remove_lines::@2 - [236] phi() + [247] phi() to:play_remove_lines::@3 play_lock_current: scope:[play_lock_current] from play_move_down::@13 - [237] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [248] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 to:play_lock_current::@1 play_lock_current::@1: scope:[play_lock_current] from play_lock_current play_lock_current::@7 - [238] (byte) play_lock_current::l#6 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte) play_lock_current::l#1 ) - [238] (byte) play_lock_current::i#3 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte~) play_lock_current::i#7 ) - [238] (byte) play_lock_current::ypos2#2 ← phi( play_lock_current/(byte) play_lock_current::ypos2#0 play_lock_current::@7/(byte) play_lock_current::ypos2#1 ) - [239] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) - [240] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 + [249] (byte) play_lock_current::l#6 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte) play_lock_current::l#1 ) + [249] (byte) play_lock_current::i#3 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte~) play_lock_current::i#7 ) + [249] (byte) play_lock_current::ypos2#2 ← phi( play_lock_current/(byte) play_lock_current::ypos2#0 play_lock_current::@7/(byte) play_lock_current::ypos2#1 ) + [250] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) + [251] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 to:play_lock_current::@2 play_lock_current::@2: scope:[play_lock_current] from play_lock_current::@1 play_lock_current::@8 - [241] (byte) play_lock_current::c#2 ← phi( play_lock_current::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@8/(byte) play_lock_current::c#1 ) - [241] (byte) play_lock_current::col#2 ← phi( play_lock_current::@1/(byte) play_lock_current::col#0 play_lock_current::@8/(byte) play_lock_current::col#1 ) - [241] (byte) play_lock_current::i#2 ← phi( play_lock_current::@1/(byte) play_lock_current::i#3 play_lock_current::@8/(byte~) play_lock_current::i#9 ) - [242] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 - [243] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 + [252] (byte) play_lock_current::c#2 ← phi( play_lock_current::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@8/(byte) play_lock_current::c#1 ) + [252] (byte) play_lock_current::col#2 ← phi( play_lock_current::@1/(byte) play_lock_current::col#0 play_lock_current::@8/(byte) play_lock_current::col#1 ) + [252] (byte) play_lock_current::i#2 ← phi( play_lock_current::@1/(byte) play_lock_current::i#3 play_lock_current::@8/(byte~) play_lock_current::i#9 ) + [253] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 + [254] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 to:play_lock_current::@4 play_lock_current::@4: scope:[play_lock_current] from play_lock_current::@2 - [244] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 + [255] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 to:play_lock_current::@3 play_lock_current::@3: scope:[play_lock_current] from play_lock_current::@2 play_lock_current::@4 - [245] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 - [246] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 - [247] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 + [256] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 + [257] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 + [258] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 to:play_lock_current::@5 play_lock_current::@5: scope:[play_lock_current] from play_lock_current::@3 - [248] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 - [249] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 - [250] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 + [259] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 + [260] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 + [261] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 to:play_lock_current::@return play_lock_current::@return: scope:[play_lock_current] from play_lock_current::@5 - [251] return + [262] return to:@return play_lock_current::@7: scope:[play_lock_current] from play_lock_current::@5 - [252] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 + [263] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 to:play_lock_current::@1 play_lock_current::@8: scope:[play_lock_current] from play_lock_current::@3 - [253] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 + [264] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 to:play_lock_current::@2 keyboard_event_pressed: scope:[keyboard_event_pressed] from keyboard_event_scan::@10 keyboard_event_scan::@11 keyboard_event_scan::@20 keyboard_event_scan::@9 play_move_down::@1 - [254] (byte) keyboard_event_pressed::keycode#5 ← phi( keyboard_event_scan::@10/(const byte) KEY_CTRL#0 keyboard_event_scan::@11/(const byte) KEY_COMMODORE#0 keyboard_event_scan::@20/(const byte) KEY_LSHIFT#0 keyboard_event_scan::@9/(const byte) KEY_RSHIFT#0 play_move_down::@1/(const byte) KEY_SPACE#0 ) - [255] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 - [256] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) - [257] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 - [258] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) + [265] (byte) keyboard_event_pressed::keycode#5 ← phi( keyboard_event_scan::@10/(const byte) KEY_CTRL#0 keyboard_event_scan::@11/(const byte) KEY_COMMODORE#0 keyboard_event_scan::@20/(const byte) KEY_LSHIFT#0 keyboard_event_scan::@9/(const byte) KEY_RSHIFT#0 play_move_down::@1/(const byte) KEY_SPACE#0 ) + [266] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 + [267] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) + [268] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [269] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) to:keyboard_event_pressed::@return keyboard_event_pressed::@return: scope:[keyboard_event_pressed] from keyboard_event_pressed - [259] return + [270] return to:@return -keyboard_event_get: scope:[keyboard_event_get] from main::@29 - [260] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return +keyboard_event_get: scope:[keyboard_event_get] from main::@24 + [271] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return to:keyboard_event_get::@3 keyboard_event_get::@3: scope:[keyboard_event_get] from keyboard_event_get - [261] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 - [262] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) + [272] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 + [273] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) to:keyboard_event_get::@return keyboard_event_get::@return: scope:[keyboard_event_get] from keyboard_event_get keyboard_event_get::@3 - [263] (byte) keyboard_events_size#16 ← phi( keyboard_event_get/(byte) keyboard_events_size#13 keyboard_event_get::@3/(byte) keyboard_events_size#4 ) - [263] (byte) keyboard_event_get::return#2 ← phi( keyboard_event_get/(byte/word/signed word/dword/signed dword) 255 keyboard_event_get::@3/(byte) keyboard_event_get::return#1 ) - [264] return + [274] (byte) keyboard_events_size#16 ← phi( keyboard_event_get/(byte) keyboard_events_size#13 keyboard_event_get::@3/(byte) keyboard_events_size#4 ) + [274] (byte) keyboard_event_get::return#2 ← phi( keyboard_event_get/(byte/word/signed word/dword/signed dword) 255 keyboard_event_get::@3/(byte) keyboard_event_get::return#1 ) + [275] return to:@return -keyboard_event_scan: scope:[keyboard_event_scan] from main::@9 - [265] phi() +keyboard_event_scan: scope:[keyboard_event_scan] from main::@23 + [276] phi() to:keyboard_event_scan::@1 keyboard_event_scan::@1: scope:[keyboard_event_scan] from keyboard_event_scan keyboard_event_scan::@3 - [266] (byte) keyboard_events_size#29 ← phi( keyboard_event_scan/(byte) keyboard_events_size#19 keyboard_event_scan::@3/(byte) keyboard_events_size#13 ) - [266] (byte) keyboard_event_scan::keycode#11 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::keycode#14 ) - [266] (byte) keyboard_event_scan::row#2 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::row#1 ) - [267] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 - [268] call keyboard_matrix_read - [269] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 + [277] (byte) keyboard_events_size#29 ← phi( keyboard_event_scan/(byte) keyboard_events_size#19 keyboard_event_scan::@3/(byte) keyboard_events_size#13 ) + [277] (byte) keyboard_event_scan::keycode#11 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::keycode#14 ) + [277] (byte) keyboard_event_scan::row#2 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::row#1 ) + [278] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 + [279] call keyboard_matrix_read + [280] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 to:keyboard_event_scan::@25 keyboard_event_scan::@25: scope:[keyboard_event_scan] from keyboard_event_scan::@1 - [270] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 - [271] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 + [281] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 + [282] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 to:keyboard_event_scan::@13 keyboard_event_scan::@13: scope:[keyboard_event_scan] from keyboard_event_scan::@25 - [272] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 + [283] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 to:keyboard_event_scan::@3 keyboard_event_scan::@3: scope:[keyboard_event_scan] from keyboard_event_scan::@13 keyboard_event_scan::@19 - [273] (byte) keyboard_events_size#13 ← phi( keyboard_event_scan::@13/(byte) keyboard_events_size#29 keyboard_event_scan::@19/(byte) keyboard_events_size#30 ) - [273] (byte) keyboard_event_scan::keycode#14 ← phi( keyboard_event_scan::@13/(byte) keyboard_event_scan::keycode#1 keyboard_event_scan::@19/(byte) keyboard_event_scan::keycode#15 ) - [274] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 - [275] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 + [284] (byte) keyboard_events_size#13 ← phi( keyboard_event_scan::@13/(byte) keyboard_events_size#29 keyboard_event_scan::@19/(byte) keyboard_events_size#30 ) + [284] (byte) keyboard_event_scan::keycode#14 ← phi( keyboard_event_scan::@13/(byte) keyboard_event_scan::keycode#1 keyboard_event_scan::@19/(byte) keyboard_event_scan::keycode#15 ) + [285] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 + [286] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 to:keyboard_event_scan::@20 keyboard_event_scan::@20: scope:[keyboard_event_scan] from keyboard_event_scan::@3 - [276] phi() - [277] call keyboard_event_pressed - [278] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 + [287] phi() + [288] call keyboard_event_pressed + [289] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@26 keyboard_event_scan::@26: scope:[keyboard_event_scan] from keyboard_event_scan::@20 - [279] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 - [280] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 + [290] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 + [291] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 to:keyboard_event_scan::@21 keyboard_event_scan::@21: scope:[keyboard_event_scan] from keyboard_event_scan::@26 - [281] phi() + [292] phi() to:keyboard_event_scan::@9 keyboard_event_scan::@9: scope:[keyboard_event_scan] from keyboard_event_scan::@21 keyboard_event_scan::@26 - [282] (byte) keyboard_modifiers#11 ← phi( keyboard_event_scan::@21/(byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 keyboard_event_scan::@26/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [283] call keyboard_event_pressed - [284] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 + [293] (byte) keyboard_modifiers#11 ← phi( keyboard_event_scan::@21/(byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 keyboard_event_scan::@26/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [294] call keyboard_event_pressed + [295] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@27 keyboard_event_scan::@27: scope:[keyboard_event_scan] from keyboard_event_scan::@9 - [285] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 - [286] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 + [296] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 + [297] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 to:keyboard_event_scan::@22 keyboard_event_scan::@22: scope:[keyboard_event_scan] from keyboard_event_scan::@27 - [287] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 + [298] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 to:keyboard_event_scan::@10 keyboard_event_scan::@10: scope:[keyboard_event_scan] from keyboard_event_scan::@22 keyboard_event_scan::@27 - [288] (byte) keyboard_modifiers#12 ← phi( keyboard_event_scan::@22/(byte) keyboard_modifiers#3 keyboard_event_scan::@27/(byte) keyboard_modifiers#11 ) - [289] call keyboard_event_pressed - [290] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 + [299] (byte) keyboard_modifiers#12 ← phi( keyboard_event_scan::@22/(byte) keyboard_modifiers#3 keyboard_event_scan::@27/(byte) keyboard_modifiers#11 ) + [300] call keyboard_event_pressed + [301] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@28 keyboard_event_scan::@28: scope:[keyboard_event_scan] from keyboard_event_scan::@10 - [291] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 - [292] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 + [302] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 + [303] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 to:keyboard_event_scan::@23 keyboard_event_scan::@23: scope:[keyboard_event_scan] from keyboard_event_scan::@28 - [293] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 + [304] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 to:keyboard_event_scan::@11 keyboard_event_scan::@11: scope:[keyboard_event_scan] from keyboard_event_scan::@23 keyboard_event_scan::@28 - [294] (byte) keyboard_modifiers#13 ← phi( keyboard_event_scan::@23/(byte) keyboard_modifiers#4 keyboard_event_scan::@28/(byte) keyboard_modifiers#12 ) - [295] call keyboard_event_pressed - [296] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 + [305] (byte) keyboard_modifiers#13 ← phi( keyboard_event_scan::@23/(byte) keyboard_modifiers#4 keyboard_event_scan::@28/(byte) keyboard_modifiers#12 ) + [306] call keyboard_event_pressed + [307] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@29 keyboard_event_scan::@29: scope:[keyboard_event_scan] from keyboard_event_scan::@11 - [297] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 - [298] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return + [308] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 + [309] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return to:keyboard_event_scan::@24 keyboard_event_scan::@24: scope:[keyboard_event_scan] from keyboard_event_scan::@29 - [299] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 + [310] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 to:keyboard_event_scan::@return keyboard_event_scan::@return: scope:[keyboard_event_scan] from keyboard_event_scan::@24 keyboard_event_scan::@29 - [300] return + [311] return to:@return keyboard_event_scan::@4: scope:[keyboard_event_scan] from keyboard_event_scan::@25 keyboard_event_scan::@5 - [301] (byte) keyboard_events_size#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_events_size#29 keyboard_event_scan::@5/(byte) keyboard_events_size#30 ) - [301] (byte) keyboard_event_scan::keycode#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_event_scan::keycode#11 keyboard_event_scan::@5/(byte) keyboard_event_scan::keycode#15 ) - [301] (byte) keyboard_event_scan::col#2 ← phi( keyboard_event_scan::@25/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@5/(byte) keyboard_event_scan::col#1 ) - [302] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) - [303] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) - [304] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 + [312] (byte) keyboard_events_size#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_events_size#29 keyboard_event_scan::@5/(byte) keyboard_events_size#30 ) + [312] (byte) keyboard_event_scan::keycode#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_event_scan::keycode#11 keyboard_event_scan::@5/(byte) keyboard_event_scan::keycode#15 ) + [312] (byte) keyboard_event_scan::col#2 ← phi( keyboard_event_scan::@25/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@5/(byte) keyboard_event_scan::col#1 ) + [313] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) + [314] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) + [315] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 to:keyboard_event_scan::@15 keyboard_event_scan::@15: scope:[keyboard_event_scan] from keyboard_event_scan::@4 - [305] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 + [316] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 to:keyboard_event_scan::@16 keyboard_event_scan::@16: scope:[keyboard_event_scan] from keyboard_event_scan::@15 - [306] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) - [307] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 + [317] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) + [318] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 to:keyboard_event_scan::@17 keyboard_event_scan::@17: scope:[keyboard_event_scan] from keyboard_event_scan::@16 - [308] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 - [309] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 + [319] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 + [320] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 to:keyboard_event_scan::@5 keyboard_event_scan::@5: scope:[keyboard_event_scan] from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 - [310] (byte) keyboard_events_size#30 ← phi( keyboard_event_scan::@17/(byte) keyboard_events_size#2 keyboard_event_scan::@4/(byte) keyboard_events_size#10 keyboard_event_scan::@15/(byte) keyboard_events_size#10 keyboard_event_scan::@7/(byte) keyboard_events_size#1 ) - [311] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 - [312] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 - [313] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 + [321] (byte) keyboard_events_size#30 ← phi( keyboard_event_scan::@17/(byte) keyboard_events_size#2 keyboard_event_scan::@4/(byte) keyboard_events_size#10 keyboard_event_scan::@15/(byte) keyboard_events_size#10 keyboard_event_scan::@7/(byte) keyboard_events_size#1 ) + [322] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 + [323] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 + [324] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 to:keyboard_event_scan::@19 keyboard_event_scan::@19: scope:[keyboard_event_scan] from keyboard_event_scan::@5 - [314] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 + [325] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 to:keyboard_event_scan::@3 keyboard_event_scan::@7: scope:[keyboard_event_scan] from keyboard_event_scan::@16 - [315] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 - [316] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 - [317] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 + [326] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 + [327] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 + [328] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 to:keyboard_event_scan::@5 keyboard_matrix_read: scope:[keyboard_matrix_read] from keyboard_event_scan::@1 - [318] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) - [319] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) + [329] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) + [330] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) to:keyboard_matrix_read::@return keyboard_matrix_read::@return: scope:[keyboard_matrix_read] from keyboard_matrix_read - [320] return - to:@return -play_init: scope:[play_init] from main::@24 - [321] phi() - to:play_init::@1 -play_init::@1: scope:[play_init] from play_init play_init::@1 - [322] (byte) play_init::idx#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::idx#1 ) - [322] (byte*) play_init::pli#2 ← phi( play_init/(const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 play_init::@1/(byte*) play_init::pli#1 ) - [322] (byte) play_init::j#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::j#1 ) - [323] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [324] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 - [325] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 - [326] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 - [327] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 - [328] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 - [329] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 - to:play_init::@2 -play_init::@2: scope:[play_init] from play_init::@1 - [330] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 - to:play_init::@return -play_init::@return: scope:[play_init] from play_init::@2 [331] return to:@return -sprites_irq_init: scope:[sprites_irq_init] from main::@23 +render_show: scope:[render_show] from main::@6 + [332] if((byte) render_screen_show#15==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_show::toD0181 + to:render_show::toD0182 +render_show::toD0182: scope:[render_show] from render_show + [333] phi() + to:render_show::@2 +render_show::@2: scope:[render_show] from render_show::toD0181 render_show::toD0182 + [334] (byte) render_show::d018val#3 ← phi( render_show::toD0181/(const byte) render_show::toD0181_return#0 render_show::toD0182/(const byte) render_show::toD0182_return#0 ) + [335] *((const byte*) D018#0) ← (byte) render_show::d018val#3 + to:render_show::@return +render_show::@return: scope:[render_show] from render_show::@2 + [336] return + to:@return +render_show::toD0181: scope:[render_show] from render_show + [337] phi() + to:render_show::@2 +play_init: scope:[play_init] from main::@18 + [338] phi() + to:play_init::@1 +play_init::@1: scope:[play_init] from play_init play_init::@1 + [339] (byte) play_init::idx#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::idx#1 ) + [339] (byte*) play_init::pli#2 ← phi( play_init/(const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 play_init::@1/(byte*) play_init::pli#1 ) + [339] (byte) play_init::j#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::j#1 ) + [340] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [341] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 + [342] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 + [343] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 + [344] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 + [345] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 + [346] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 + to:play_init::@2 +play_init::@2: scope:[play_init] from play_init::@1 + [347] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 + to:play_init::@return +play_init::@return: scope:[play_init] from play_init::@2 + [348] return + to:@return +sprites_irq_init: scope:[sprites_irq_init] from main::@17 asm { sei } - [333] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 + [350] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 asm { ldaCIA1_INTERRUPT } - [335] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 - [336] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 - [337] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 - [338] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 - [339] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 - [340] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 - [341] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() + [352] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 + [353] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 + [354] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 + [355] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 + [356] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 + [357] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 + [358] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() asm { cli } to:sprites_irq_init::@return sprites_irq_init::@return: scope:[sprites_irq_init] from sprites_irq_init - [343] return + [360] return to:@return -sprites_init: scope:[sprites_init] from main::@22 - [344] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 - [345] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [346] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) - [347] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) +sprites_init: scope:[sprites_init] from main::@16 + [361] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 + [362] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [363] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) + [364] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) to:sprites_init::@1 sprites_init::@1: scope:[sprites_init] from sprites_init sprites_init::@1 - [348] (byte) sprites_init::xpos#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 sprites_init::@1/(byte) sprites_init::xpos#1 ) - [348] (byte) sprites_init::s#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 0 sprites_init::@1/(byte) sprites_init::s#1 ) - [349] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [350] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 - [351] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 - [352] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 - [353] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 - [354] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 + [365] (byte) sprites_init::xpos#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 sprites_init::@1/(byte) sprites_init::xpos#1 ) + [365] (byte) sprites_init::s#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 0 sprites_init::@1/(byte) sprites_init::s#1 ) + [366] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [367] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 + [368] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 + [369] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 + [370] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 + [371] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 to:sprites_init::@return sprites_init::@return: scope:[sprites_init] from sprites_init::@1 - [355] return + [372] return to:@return -render_init: scope:[render_init] from main::@21 - [356] phi() +render_init: scope:[render_init] from main::@15 + [373] phi() to:render_init::vicSelectGfxBank1 render_init::vicSelectGfxBank1: scope:[render_init] from render_init - [357] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 + [374] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 to:render_init::vicSelectGfxBank1_toDd001 render_init::vicSelectGfxBank1_toDd001: scope:[render_init] from render_init::vicSelectGfxBank1 - [358] phi() + [375] phi() to:render_init::vicSelectGfxBank1_@1 render_init::vicSelectGfxBank1_@1: scope:[render_init] from render_init::vicSelectGfxBank1_toDd001 - [359] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 - to:render_init::toD0181 -render_init::toD0181: scope:[render_init] from render_init::vicSelectGfxBank1_@1 - [360] phi() + [376] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 + to:render_init::@7 +render_init::@7: scope:[render_init] from render_init::vicSelectGfxBank1_@1 + [377] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 + [378] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 + [379] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 + [380] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 + [381] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 + [382] call render_screen_original to:render_init::@8 -render_init::@8: scope:[render_init] from render_init::toD0181 - [361] *((const byte*) D018#0) ← (const byte) render_init::toD0181_return#0 - [362] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 - [363] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 - [364] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 - [365] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 - [366] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 - [367] call fill +render_init::@8: scope:[render_init] from render_init::@7 + [383] phi() + [384] call render_screen_original to:render_init::@9 render_init::@9: scope:[render_init] from render_init::@8 - [368] phi() - [369] call render_screen_original + [385] phi() + [386] call fill to:render_init::@1 -render_init::@1: scope:[render_init] from render_init::@1 render_init::@9 - [370] (byte*) render_init::li#2 ← phi( render_init::@1/(byte*) render_init::li#1 render_init::@9/(const byte*) PLAYFIELD_SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 ) - [370] (byte) render_init::i#2 ← phi( render_init::@1/(byte) render_init::i#1 render_init::@9/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [371] (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [372] *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 - [373] (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 - [374] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 - [375] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 +render_init::@1: scope:[render_init] from render_init::@4 render_init::@9 + [387] (byte) render_init::l#4 ← phi( render_init::@9/(byte/signed byte/word/signed word/dword/signed dword) 2 render_init::@4/(byte) render_init::l#1 ) + [387] (byte*) render_init::line#4 ← phi( render_init::@9/(const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 render_init::@4/(byte*) render_init::line#1 ) to:render_init::@2 -render_init::@2: scope:[render_init] from render_init::@1 render_init::@5 - [376] (byte) render_init::l#4 ← phi( render_init::@1/(byte/signed byte/word/signed word/dword/signed dword) 2 render_init::@5/(byte) render_init::l#1 ) - [376] (byte*) render_init::line#4 ← phi( render_init::@1/(const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 render_init::@5/(byte*) render_init::line#1 ) +render_init::@2: scope:[render_init] from render_init::@1 render_init::@2 + [388] (byte) render_init::c#2 ← phi( render_init::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_init::@2/(byte) render_init::c#1 ) + [389] (byte*~) render_init::$12 ← (byte*) render_init::line#4 + (byte) render_init::c#2 + [390] *((byte*~) render_init::$12) ← (const byte) WHITE#0 + [391] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 + [392] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 + to:render_init::@4 +render_init::@4: scope:[render_init] from render_init::@2 + [393] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 + [394] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 + [395] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 to:render_init::@3 -render_init::@3: scope:[render_init] from render_init::@2 render_init::@3 - [377] (byte) render_init::c#2 ← phi( render_init::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 render_init::@3/(byte) render_init::c#1 ) - [378] (byte*~) render_init::$18 ← (byte*) render_init::line#4 + (byte) render_init::c#2 - [379] *((byte*~) render_init::$18) ← (const byte) WHITE#0 - [380] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 - [381] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 - to:render_init::@5 -render_init::@5: scope:[render_init] from render_init::@3 - [382] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 - [383] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 - [384] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 +render_init::@3: scope:[render_init] from render_init::@3 render_init::@4 + [396] (byte*) render_init::li_2#2 ← phi( render_init::@3/(byte*) render_init::li_2#1 render_init::@4/(const byte*) PLAYFIELD_SCREEN_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 ) + [396] (byte*) render_init::li_1#2 ← phi( render_init::@3/(byte*) render_init::li_1#1 render_init::@4/(const byte*) PLAYFIELD_SCREEN_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 ) + [396] (byte) render_init::i#2 ← phi( render_init::@3/(byte) render_init::i#1 render_init::@4/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [397] (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [398] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 + [399] (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [400] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 + [401] (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 + [402] (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 + [403] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 + [404] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 to:render_init::@return -render_init::@return: scope:[render_init] from render_init::@5 - [385] return +render_init::@return: scope:[render_init] from render_init::@3 + [405] return to:@return -render_screen_original: scope:[render_screen_original] from render_init::@9 - [386] phi() - to:render_screen_original::@1 -render_screen_original::@1: scope:[render_screen_original] from render_screen_original render_screen_original::@9 - [387] (byte) render_screen_original::y#8 ← phi( render_screen_original/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@9/(byte) render_screen_original::y#1 ) - [387] (byte*) render_screen_original::orig#5 ← phi( render_screen_original/(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 render_screen_original::@9/(byte*) render_screen_original::orig#1 ) - [387] (byte*) render_screen_original::screen#7 ← phi( render_screen_original/(const byte*) PLAYFIELD_SCREEN#0 render_screen_original::@9/(byte*) render_screen_original::screen#11 ) - to:render_screen_original::@2 -render_screen_original::@2: scope:[render_screen_original] from render_screen_original::@1 render_screen_original::@2 - [388] (byte) render_screen_original::x#4 ← phi( render_screen_original::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@2/(byte) render_screen_original::x#1 ) - [388] (byte*) render_screen_original::screen#4 ← phi( render_screen_original::@1/(byte*) render_screen_original::screen#7 render_screen_original::@2/(byte*) render_screen_original::screen#1 ) - [389] *((byte*) render_screen_original::screen#4) ← (const byte) render_screen_original::SPACE#0 - [390] (byte*) render_screen_original::screen#1 ← ++ (byte*) render_screen_original::screen#4 - [391] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 - [392] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 - to:render_screen_original::@3 -render_screen_original::@3: scope:[render_screen_original] from render_screen_original::@2 render_screen_original::@4 - [393] (byte*) render_screen_original::screen#5 ← phi( render_screen_original::@2/(byte*) render_screen_original::screen#1 render_screen_original::@4/(byte*) render_screen_original::screen#2 ) - [393] (byte) render_screen_original::x#5 ← phi( render_screen_original::@2/(byte) render_screen_original::x#1 render_screen_original::@4/(byte) render_screen_original::x#2 ) - [393] (byte*) render_screen_original::orig#2 ← phi( render_screen_original::@2/(byte*) render_screen_original::orig#5 render_screen_original::@4/(byte*) render_screen_original::orig#1 ) - [394] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 - [395] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 - [396] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 - to:render_screen_original::@4 -render_screen_original::@4: scope:[render_screen_original] from render_screen_original::@11 render_screen_original::@3 render_screen_original::@7 - [397] (byte) render_screen_original::c#2 ← phi( render_screen_original::@3/(byte) render_screen_original::c#0 render_screen_original::@7/(byte) render_screen_original::c#1 ) - [398] *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 - [399] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 - [400] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 - [401] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 - to:render_screen_original::@5 -render_screen_original::@5: scope:[render_screen_original] from render_screen_original::@4 render_screen_original::@5 - [402] (byte) render_screen_original::x#7 ← phi( render_screen_original::@4/(byte) render_screen_original::x#2 render_screen_original::@5/(byte) render_screen_original::x#3 ) - [402] (byte*) render_screen_original::screen#6 ← phi( render_screen_original::@4/(byte*) render_screen_original::screen#2 render_screen_original::@5/(byte*) render_screen_original::screen#11 ) - [403] *((byte*) render_screen_original::screen#6) ← (const byte) render_screen_original::SPACE#0 - [404] (byte*) render_screen_original::screen#11 ← ++ (byte*) render_screen_original::screen#6 - [405] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 - [406] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 - to:render_screen_original::@9 -render_screen_original::@9: scope:[render_screen_original] from render_screen_original::@5 - [407] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 - [408] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 - to:render_screen_original::@return -render_screen_original::@return: scope:[render_screen_original] from render_screen_original::@9 - [409] return - to:@return -render_screen_original::@11: scope:[render_screen_original] from render_screen_original::@3 - [410] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 - to:render_screen_original::@4 -render_screen_original::@7: scope:[render_screen_original] from render_screen_original::@11 - [411] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 - to:render_screen_original::@4 -fill: scope:[fill] from render_init::@8 - [412] phi() +fill: scope:[fill] from render_init::@9 + [406] phi() to:fill::@1 fill::@1: scope:[fill] from fill fill::@1 - [413] (byte*) fill::addr#2 ← phi( fill/(const byte*) COLS#0 fill::@1/(byte*) fill::addr#1 ) - [414] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 - [415] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 - [416] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 + [407] (byte*) fill::addr#2 ← phi( fill/(const byte*) COLS#0 fill::@1/(byte*) fill::addr#1 ) + [408] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 + [409] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 + [410] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 to:fill::@return fill::@return: scope:[fill] from fill::@1 - [417] return + [411] return to:@return +render_screen_original: scope:[render_screen_original] from render_init::@7 render_init::@8 + [412] (byte*) render_screen_original::screen#11 ← phi( render_init::@7/(const byte*) PLAYFIELD_SCREEN_1#0 render_init::@8/(const byte*) PLAYFIELD_SCREEN_2#0 ) + to:render_screen_original::@1 +render_screen_original::@1: scope:[render_screen_original] from render_screen_original render_screen_original::@9 + [413] (byte) render_screen_original::y#8 ← phi( render_screen_original/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@9/(byte) render_screen_original::y#1 ) + [413] (byte*) render_screen_original::orig#5 ← phi( render_screen_original/(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 render_screen_original::@9/(byte*) render_screen_original::orig#1 ) + [413] (byte*) render_screen_original::screen#8 ← phi( render_screen_original/(byte*) render_screen_original::screen#11 render_screen_original::@9/(byte*) render_screen_original::screen#12 ) + to:render_screen_original::@2 +render_screen_original::@2: scope:[render_screen_original] from render_screen_original::@1 render_screen_original::@2 + [414] (byte) render_screen_original::x#4 ← phi( render_screen_original::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@2/(byte) render_screen_original::x#1 ) + [414] (byte*) render_screen_original::screen#5 ← phi( render_screen_original::@1/(byte*) render_screen_original::screen#8 render_screen_original::@2/(byte*) render_screen_original::screen#2 ) + [415] *((byte*) render_screen_original::screen#5) ← (const byte) render_screen_original::SPACE#0 + [416] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 + [417] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 + [418] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 + to:render_screen_original::@3 +render_screen_original::@3: scope:[render_screen_original] from render_screen_original::@2 render_screen_original::@4 + [419] (byte*) render_screen_original::screen#10 ← phi( render_screen_original::@2/(byte*) render_screen_original::screen#2 render_screen_original::@4/(byte*) render_screen_original::screen#3 ) + [419] (byte) render_screen_original::x#5 ← phi( render_screen_original::@2/(byte) render_screen_original::x#1 render_screen_original::@4/(byte) render_screen_original::x#2 ) + [419] (byte*) render_screen_original::orig#2 ← phi( render_screen_original::@2/(byte*) render_screen_original::orig#5 render_screen_original::@4/(byte*) render_screen_original::orig#1 ) + [420] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 + [421] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 + [422] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 + to:render_screen_original::@4 +render_screen_original::@4: scope:[render_screen_original] from render_screen_original::@11 render_screen_original::@3 render_screen_original::@7 + [423] (byte) render_screen_original::c#2 ← phi( render_screen_original::@3/(byte) render_screen_original::c#0 render_screen_original::@7/(byte) render_screen_original::c#1 ) + [424] *((byte*) render_screen_original::screen#10) ← (byte) render_screen_original::c#2 + [425] (byte*) render_screen_original::screen#3 ← ++ (byte*) render_screen_original::screen#10 + [426] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 + [427] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 + to:render_screen_original::@5 +render_screen_original::@5: scope:[render_screen_original] from render_screen_original::@4 render_screen_original::@5 + [428] (byte) render_screen_original::x#7 ← phi( render_screen_original::@4/(byte) render_screen_original::x#2 render_screen_original::@5/(byte) render_screen_original::x#3 ) + [428] (byte*) render_screen_original::screen#7 ← phi( render_screen_original::@4/(byte*) render_screen_original::screen#3 render_screen_original::@5/(byte*) render_screen_original::screen#12 ) + [429] *((byte*) render_screen_original::screen#7) ← (const byte) render_screen_original::SPACE#0 + [430] (byte*) render_screen_original::screen#12 ← ++ (byte*) render_screen_original::screen#7 + [431] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 + [432] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 + to:render_screen_original::@9 +render_screen_original::@9: scope:[render_screen_original] from render_screen_original::@5 + [433] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 + [434] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 + to:render_screen_original::@return +render_screen_original::@return: scope:[render_screen_original] from render_screen_original::@9 + [435] return + to:@return +render_screen_original::@11: scope:[render_screen_original] from render_screen_original::@3 + [436] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 + to:render_screen_original::@4 +render_screen_original::@7: scope:[render_screen_original] from render_screen_original::@11 + [437] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 + to:render_screen_original::@4 sid_rnd_init: scope:[sid_rnd_init] from main - [418] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 - [419] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 + [438] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 + [439] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 to:sid_rnd_init::@return sid_rnd_init::@return: scope:[sid_rnd_init] from sid_rnd_init - [420] return + [440] return to:@return irq: scope:[irq] from - [421] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 - [422] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 - [423] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 - [424] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 - [425] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 - [426] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 + [441] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 + [442] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 + [443] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 + [444] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 + [445] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 + [446] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 to:irq::@1 irq::@1: scope:[irq] from irq irq::@1 - [427] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 + [447] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 to:irq::@5 irq::@5: scope:[irq] from irq::@1 - [428] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 - [429] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 - [430] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 - [431] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 - [432] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 - [433] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 - [434] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 - [435] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 - [436] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 + [448] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 + [449] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 + [450] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 + [451] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 + [452] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [453] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [454] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [455] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [456] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 + [457] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [458] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [459] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 + [460] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 to:irq::@6 irq::@6: scope:[irq] from irq::@5 - [437] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [438] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [439] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 + [461] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [462] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [463] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 to:irq::@3 irq::@3: scope:[irq] from irq::@6 irq::@9 - [440] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) - [441] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 - [442] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 - [443] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 + [464] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) + [465] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 + [466] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [467] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 to:irq::@8 irq::@8: scope:[irq] from irq::@3 - [444] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 + [468] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 to:irq::@4 irq::@4: scope:[irq] from irq::@3 irq::@8 - [445] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) - [446] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 - [447] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 - [448] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 + [469] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) + [470] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 + [471] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 + [472] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 to:irq::@return irq::@return: scope:[irq] from irq::@4 - [449] return + [473] return to:@return irq::@2: scope:[irq] from irq::@5 - [450] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [451] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 - [452] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 + [474] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [475] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 + [476] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 to:irq::toSpritePtr2 irq::toSpritePtr2: scope:[irq] from irq::@2 - [453] phi() + [477] phi() to:irq::@9 irq::@9: scope:[irq] from irq::toSpritePtr2 - [454] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 + [478] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 to:irq::@3 diff --git a/src/test/ref/examples/tetris/tetris.log b/src/test/ref/examples/tetris/tetris.log index 10bf0fc48..b92ec9e11 100644 --- a/src/test/ref/examples/tetris/tetris.log +++ b/src/test/ref/examples/tetris/tetris.log @@ -4,9 +4,10 @@ Resolved forward reference COLLISION_NONE to (byte) COLLISION_NONE Resolved forward reference COLLISION_NONE to (byte) COLLISION_NONE Resolved forward reference COLLISION_NONE to (byte) COLLISION_NONE Inlined call (byte~) vicSelectGfxBank::$0 ← call toDd00 (byte*) vicSelectGfxBank::gfx -Inlined call call vicSelectGfxBank (byte*) PLAYFIELD_SCREEN -Inlined call (byte~) render_init::$1 ← call toD018 (byte*) PLAYFIELD_SCREEN (byte*) PLAYFIELD_CHARSET -Inlined call (byte~) $3 ← call toSpritePtr (byte*) PLAYFIELD_SPRITES +Inlined call call vicSelectGfxBank (byte*) PLAYFIELD_CHARSET +Inlined call (byte~) render_show::$2 ← call toD018 (byte*) PLAYFIELD_SCREEN_1 (byte*) PLAYFIELD_CHARSET +Inlined call (byte~) render_show::$1 ← call toD018 (byte*) PLAYFIELD_SCREEN_2 (byte*) PLAYFIELD_CHARSET +Inlined call (byte~) $4 ← call toSpritePtr (byte*) PLAYFIELD_SPRITES Inlined call (byte~) irq::$2 ← call toSpritePtr (byte*) PLAYFIELD_SPRITES CONTROL FLOW GRAPH SSA @@ -15,6 +16,8 @@ CONTROL FLOW GRAPH SSA (byte) current_ypos#80 ← phi( ) (byte) current_xpos#106 ← phi( ) (byte*) current_piece_gfx#96 ← phi( ) + (byte) render_screen_render#64 ← phi( ) + (byte) render_screen_show#51 ← phi( ) (byte*) PROCPORT_DDR#0 ← ((byte*)) (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) PROCPORT_DDR_MEMORY_MASK#0 ← (byte/signed byte/word/signed word/dword/signed dword) 7 (byte*) PROCPORT#0 ← ((byte*)) (byte/signed byte/word/signed word/dword/signed dword) 1 @@ -95,10 +98,10 @@ CONTROL FLOW GRAPH SSA (byte) LIGHT_BLUE#0 ← (byte/signed byte/word/signed word/dword/signed dword) 14 (byte) LIGHT_GREY#0 ← (byte/signed byte/word/signed word/dword/signed dword) 15 to:@5 -fill: scope:[fill] from render_init::@8 - (byte) fill::val#2 ← phi( render_init::@8/(byte) fill::val#0 ) - (word) fill::size#1 ← phi( render_init::@8/(word) fill::size#0 ) - (byte*) fill::start#1 ← phi( render_init::@8/(byte*) fill::start#0 ) +fill: scope:[fill] from render_init::@9 + (byte) fill::val#2 ← phi( render_init::@9/(byte) fill::val#0 ) + (word) fill::size#1 ← phi( render_init::@9/(word) fill::size#0 ) + (byte*) fill::start#1 ← phi( render_init::@9/(byte*) fill::start#0 ) (byte*~) fill::$0 ← (byte*) fill::start#1 + (word) fill::size#1 (byte*) fill::end#0 ← (byte*~) fill::$0 (byte*) fill::addr#0 ← (byte*) fill::start#1 @@ -120,6 +123,8 @@ fill::@return: scope:[fill] from fill::@1 (byte) current_ypos#79 ← phi( @begin/(byte) current_ypos#80 ) (byte) current_xpos#105 ← phi( @begin/(byte) current_xpos#106 ) (byte*) current_piece_gfx#95 ← phi( @begin/(byte*) current_piece_gfx#96 ) + (byte) render_screen_render#63 ← phi( @begin/(byte) render_screen_render#64 ) + (byte) render_screen_show#50 ← phi( @begin/(byte) render_screen_show#51 ) (byte) KEY_DEL#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) KEY_RETURN#0 ← (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) KEY_CRSR_RIGHT#0 ← (byte/signed byte/word/signed word/dword/signed dword) 2 @@ -205,6 +210,8 @@ keyboard_matrix_read::@return: scope:[keyboard_matrix_read] from keyboard_matri (byte) current_ypos#78 ← phi( @5/(byte) current_ypos#79 ) (byte) current_xpos#104 ← phi( @5/(byte) current_xpos#105 ) (byte*) current_piece_gfx#94 ← phi( @5/(byte*) current_piece_gfx#95 ) + (byte) render_screen_render#60 ← phi( @5/(byte) render_screen_render#63 ) + (byte) render_screen_show#49 ← phi( @5/(byte) render_screen_show#50 ) (byte[8]) keyboard_events#0 ← { fill( 8, 0) } (byte) keyboard_events_size#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) keyboard_modifiers#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 @@ -216,13 +223,13 @@ keyboard_matrix_read::@return: scope:[keyboard_matrix_read] from keyboard_matri (byte) KEY_MODIFIER_SHIFT#0 ← (byte~) $0 (byte[8]) keyboard_scan_values#0 ← { fill( 8, 0) } to:@12 -keyboard_event_scan: scope:[keyboard_event_scan] from main::@9 - (byte) keyboard_events_size#54 ← phi( main::@9/(byte) keyboard_events_size#26 ) +keyboard_event_scan: scope:[keyboard_event_scan] from main::@23 + (byte) keyboard_events_size#53 ← phi( main::@23/(byte) keyboard_events_size#26 ) (byte) keyboard_event_scan::keycode#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) keyboard_event_scan::row#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:keyboard_event_scan::@1 keyboard_event_scan::@1: scope:[keyboard_event_scan] from keyboard_event_scan keyboard_event_scan::@3 - (byte) keyboard_events_size#45 ← phi( keyboard_event_scan/(byte) keyboard_events_size#54 keyboard_event_scan::@3/(byte) keyboard_events_size#55 ) + (byte) keyboard_events_size#44 ← phi( keyboard_event_scan/(byte) keyboard_events_size#53 keyboard_event_scan::@3/(byte) keyboard_events_size#54 ) (byte) keyboard_event_scan::keycode#11 ← phi( keyboard_event_scan/(byte) keyboard_event_scan::keycode#0 keyboard_event_scan::@3/(byte) keyboard_event_scan::keycode#14 ) (byte) keyboard_event_scan::row#2 ← phi( keyboard_event_scan/(byte) keyboard_event_scan::row#0 keyboard_event_scan::@3/(byte) keyboard_event_scan::row#1 ) (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 @@ -230,7 +237,7 @@ keyboard_event_scan::@1: scope:[keyboard_event_scan] from keyboard_event_scan k (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#1 to:keyboard_event_scan::@25 keyboard_event_scan::@25: scope:[keyboard_event_scan] from keyboard_event_scan::@1 - (byte) keyboard_events_size#36 ← phi( keyboard_event_scan::@1/(byte) keyboard_events_size#45 ) + (byte) keyboard_events_size#36 ← phi( keyboard_event_scan::@1/(byte) keyboard_events_size#44 ) (byte) keyboard_event_scan::keycode#7 ← phi( keyboard_event_scan::@1/(byte) keyboard_event_scan::keycode#11 ) (byte) keyboard_event_scan::row#3 ← phi( keyboard_event_scan::@1/(byte) keyboard_event_scan::row#2 ) (byte) keyboard_matrix_read::return#4 ← phi( keyboard_event_scan::@1/(byte) keyboard_matrix_read::return#2 ) @@ -247,14 +254,14 @@ keyboard_event_scan::@2: scope:[keyboard_event_scan] from keyboard_event_scan:: (byte) keyboard_event_scan::col#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:keyboard_event_scan::@4 keyboard_event_scan::@13: scope:[keyboard_event_scan] from keyboard_event_scan::@25 - (byte) keyboard_events_size#61 ← phi( keyboard_event_scan::@25/(byte) keyboard_events_size#36 ) + (byte) keyboard_events_size#60 ← phi( keyboard_event_scan::@25/(byte) keyboard_events_size#36 ) (byte) keyboard_event_scan::row#7 ← phi( keyboard_event_scan::@25/(byte) keyboard_event_scan::row#3 ) (byte) keyboard_event_scan::keycode#3 ← phi( keyboard_event_scan::@25/(byte) keyboard_event_scan::keycode#7 ) (byte/signed word/word/dword/signed dword~) keyboard_event_scan::$2 ← (byte) keyboard_event_scan::keycode#3 + (byte/signed byte/word/signed word/dword/signed dword) 8 (byte) keyboard_event_scan::keycode#1 ← (byte/signed word/word/dword/signed dword~) keyboard_event_scan::$2 to:keyboard_event_scan::@3 keyboard_event_scan::@3: scope:[keyboard_event_scan] from keyboard_event_scan::@13 keyboard_event_scan::@19 - (byte) keyboard_events_size#55 ← phi( keyboard_event_scan::@13/(byte) keyboard_events_size#61 keyboard_event_scan::@19/(byte) keyboard_events_size#62 ) + (byte) keyboard_events_size#54 ← phi( keyboard_event_scan::@13/(byte) keyboard_events_size#60 keyboard_event_scan::@19/(byte) keyboard_events_size#61 ) (byte) keyboard_event_scan::keycode#14 ← phi( keyboard_event_scan::@13/(byte) keyboard_event_scan::keycode#1 keyboard_event_scan::@19/(byte) keyboard_event_scan::keycode#15 ) (byte) keyboard_event_scan::row#4 ← phi( keyboard_event_scan::@13/(byte) keyboard_event_scan::row#7 keyboard_event_scan::@19/(byte) keyboard_event_scan::row#6 ) (byte) keyboard_event_scan::row#1 ← (byte) keyboard_event_scan::row#4 + rangenext(0,7) @@ -332,14 +339,14 @@ keyboard_event_scan::@17: scope:[keyboard_event_scan] from keyboard_event_scan: (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#12 to:keyboard_event_scan::@5 keyboard_event_scan::@19: scope:[keyboard_event_scan] from keyboard_event_scan::@5 - (byte) keyboard_events_size#62 ← phi( keyboard_event_scan::@5/(byte) keyboard_events_size#30 ) + (byte) keyboard_events_size#61 ← phi( keyboard_event_scan::@5/(byte) keyboard_events_size#30 ) (byte) keyboard_event_scan::keycode#15 ← phi( keyboard_event_scan::@5/(byte) keyboard_event_scan::keycode#2 ) (byte) keyboard_event_scan::row#6 ← phi( keyboard_event_scan::@5/(byte) keyboard_event_scan::row#9 ) (byte) keyboard_event_scan::row_scan#3 ← phi( keyboard_event_scan::@5/(byte) keyboard_event_scan::row_scan#5 ) *((byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#6) ← (byte) keyboard_event_scan::row_scan#3 to:keyboard_event_scan::@3 keyboard_event_scan::@20: scope:[keyboard_event_scan] from keyboard_event_scan::@3 - (byte) keyboard_events_size#74 ← phi( keyboard_event_scan::@3/(byte) keyboard_events_size#55 ) + (byte) keyboard_events_size#74 ← phi( keyboard_event_scan::@3/(byte) keyboard_events_size#54 ) (byte) keyboard_modifiers#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) keyboard_event_pressed::keycode#0 ← (byte) KEY_LSHIFT#0 call keyboard_event_pressed @@ -362,7 +369,7 @@ keyboard_event_scan::@9: scope:[keyboard_event_scan] from keyboard_event_scan:: (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#5 to:keyboard_event_scan::@27 keyboard_event_scan::@27: scope:[keyboard_event_scan] from keyboard_event_scan::@9 - (byte) keyboard_events_size#64 ← phi( keyboard_event_scan::@9/(byte) keyboard_events_size#67 ) + (byte) keyboard_events_size#63 ← phi( keyboard_event_scan::@9/(byte) keyboard_events_size#67 ) (byte) keyboard_modifiers#19 ← phi( keyboard_event_scan::@9/(byte) keyboard_modifiers#26 ) (byte) keyboard_event_pressed::return#8 ← phi( keyboard_event_scan::@9/(byte) keyboard_event_pressed::return#1 ) (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#8 @@ -377,14 +384,14 @@ keyboard_event_scan::@21: scope:[keyboard_event_scan] from keyboard_event_scan: (byte) keyboard_modifiers#2 ← (byte~) keyboard_event_scan::$17 to:keyboard_event_scan::@9 keyboard_event_scan::@10: scope:[keyboard_event_scan] from keyboard_event_scan::@22 keyboard_event_scan::@27 - (byte) keyboard_events_size#56 ← phi( keyboard_event_scan::@22/(byte) keyboard_events_size#63 keyboard_event_scan::@27/(byte) keyboard_events_size#64 ) + (byte) keyboard_events_size#55 ← phi( keyboard_event_scan::@22/(byte) keyboard_events_size#62 keyboard_event_scan::@27/(byte) keyboard_events_size#63 ) (byte) keyboard_modifiers#27 ← phi( keyboard_event_scan::@22/(byte) keyboard_modifiers#3 keyboard_event_scan::@27/(byte) keyboard_modifiers#19 ) (byte) keyboard_event_pressed::keycode#2 ← (byte) KEY_CTRL#0 call keyboard_event_pressed (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#5 to:keyboard_event_scan::@28 keyboard_event_scan::@28: scope:[keyboard_event_scan] from keyboard_event_scan::@10 - (byte) keyboard_events_size#47 ← phi( keyboard_event_scan::@10/(byte) keyboard_events_size#56 ) + (byte) keyboard_events_size#46 ← phi( keyboard_event_scan::@10/(byte) keyboard_events_size#55 ) (byte) keyboard_modifiers#20 ← phi( keyboard_event_scan::@10/(byte) keyboard_modifiers#27 ) (byte) keyboard_event_pressed::return#9 ← phi( keyboard_event_scan::@10/(byte) keyboard_event_pressed::return#2 ) (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#9 @@ -393,13 +400,13 @@ keyboard_event_scan::@28: scope:[keyboard_event_scan] from keyboard_event_scan: if((bool~) keyboard_event_scan::$24) goto keyboard_event_scan::@11 to:keyboard_event_scan::@23 keyboard_event_scan::@22: scope:[keyboard_event_scan] from keyboard_event_scan::@27 - (byte) keyboard_events_size#63 ← phi( keyboard_event_scan::@27/(byte) keyboard_events_size#64 ) + (byte) keyboard_events_size#62 ← phi( keyboard_event_scan::@27/(byte) keyboard_events_size#63 ) (byte) keyboard_modifiers#11 ← phi( keyboard_event_scan::@27/(byte) keyboard_modifiers#19 ) (byte~) keyboard_event_scan::$21 ← (byte) keyboard_modifiers#11 | (byte) KEY_MODIFIER_RSHIFT#0 (byte) keyboard_modifiers#3 ← (byte~) keyboard_event_scan::$21 to:keyboard_event_scan::@10 keyboard_event_scan::@11: scope:[keyboard_event_scan] from keyboard_event_scan::@23 keyboard_event_scan::@28 - (byte) keyboard_events_size#38 ← phi( keyboard_event_scan::@23/(byte) keyboard_events_size#46 keyboard_event_scan::@28/(byte) keyboard_events_size#47 ) + (byte) keyboard_events_size#38 ← phi( keyboard_event_scan::@23/(byte) keyboard_events_size#45 keyboard_event_scan::@28/(byte) keyboard_events_size#46 ) (byte) keyboard_modifiers#28 ← phi( keyboard_event_scan::@23/(byte) keyboard_modifiers#4 keyboard_event_scan::@28/(byte) keyboard_modifiers#20 ) (byte) keyboard_event_pressed::keycode#3 ← (byte) KEY_COMMODORE#0 call keyboard_event_pressed @@ -415,7 +422,7 @@ keyboard_event_scan::@29: scope:[keyboard_event_scan] from keyboard_event_scan: if((bool~) keyboard_event_scan::$28) goto keyboard_event_scan::@12 to:keyboard_event_scan::@24 keyboard_event_scan::@23: scope:[keyboard_event_scan] from keyboard_event_scan::@28 - (byte) keyboard_events_size#46 ← phi( keyboard_event_scan::@28/(byte) keyboard_events_size#47 ) + (byte) keyboard_events_size#45 ← phi( keyboard_event_scan::@28/(byte) keyboard_events_size#46 ) (byte) keyboard_modifiers#12 ← phi( keyboard_event_scan::@28/(byte) keyboard_modifiers#20 ) (byte~) keyboard_event_scan::$25 ← (byte) keyboard_modifiers#12 | (byte) KEY_MODIFIER_CTRL#0 (byte) keyboard_modifiers#4 ← (byte~) keyboard_event_scan::$25 @@ -450,8 +457,8 @@ keyboard_event_pressed::@return: scope:[keyboard_event_pressed] from keyboard_e (byte) keyboard_event_pressed::return#5 ← (byte) keyboard_event_pressed::return#11 return to:@return -keyboard_event_get: scope:[keyboard_event_get] from main::@29 - (byte) keyboard_events_size#14 ← phi( main::@29/(byte) keyboard_events_size#6 ) +keyboard_event_get: scope:[keyboard_event_get] from main::@24 + (byte) keyboard_events_size#14 ← phi( main::@24/(byte) keyboard_events_size#6 ) (bool~) keyboard_event_get::$0 ← (byte) keyboard_events_size#14 == (byte/signed byte/word/signed word/dword/signed dword) 0 if((bool~) keyboard_event_get::$0) goto keyboard_event_get::@1 to:keyboard_event_get::@3 @@ -478,6 +485,8 @@ keyboard_event_get::@return: scope:[keyboard_event_get] from keyboard_event_get (byte) current_ypos#77 ← phi( @9/(byte) current_ypos#78 ) (byte) current_xpos#103 ← phi( @9/(byte) current_xpos#104 ) (byte*) current_piece_gfx#93 ← phi( @9/(byte*) current_piece_gfx#94 ) + (byte) render_screen_render#58 ← phi( @9/(byte) render_screen_render#60 ) + (byte) render_screen_show#48 ← phi( @9/(byte) render_screen_show#49 ) (word*) SID_VOICE3_FREQ#0 ← ((word*)) (word/dword/signed dword) 54286 (byte*) SID_VOICE3_FREQ_LOW#0 ← ((byte*)) (word/dword/signed dword) 54286 (byte*) SID_VOICE3_FREQ_HIGH#0 ← ((byte*)) (word/dword/signed dword) 54287 @@ -514,26 +523,32 @@ sid_rnd::@return: scope:[sid_rnd] from sid_rnd (byte) current_ypos#76 ← phi( @12/(byte) current_ypos#77 ) (byte) current_xpos#102 ← phi( @12/(byte) current_xpos#103 ) (byte*) current_piece_gfx#92 ← phi( @12/(byte*) current_piece_gfx#93 ) - (byte*) PLAYFIELD_SCREEN#0 ← ((byte*)) (word/signed word/dword/signed dword) 1024 - (byte*~) $1 ← (byte*) PLAYFIELD_SCREEN#0 + (word) SPRITE_PTRS#0 - (byte*) PLAYFIELD_SPRITE_PTRS#0 ← (byte*~) $1 + (byte) render_screen_render#56 ← phi( @12/(byte) render_screen_render#58 ) + (byte) render_screen_show#47 ← phi( @12/(byte) render_screen_show#48 ) + (byte*) PLAYFIELD_SCREEN_1#0 ← ((byte*)) (word/signed word/dword/signed dword) 1024 + (byte*) PLAYFIELD_SCREEN_2#0 ← ((byte*)) (word/signed word/dword/signed dword) 11264 + (byte*~) $1 ← (byte*) PLAYFIELD_SCREEN_1#0 + (word) SPRITE_PTRS#0 + (byte*) PLAYFIELD_SPRITE_PTRS_1#0 ← (byte*~) $1 + (byte*~) $2 ← (byte*) PLAYFIELD_SCREEN_2#0 + (word) SPRITE_PTRS#0 + (byte*) PLAYFIELD_SPRITE_PTRS_2#0 ← (byte*~) $2 + (byte*) PLAYFIELD_SCREEN_ORIGINAL#0 ← ((byte*)) (word/signed word/dword/signed dword) 6144 (byte*) PLAYFIELD_SPRITES#0 ← ((byte*)) (word/signed word/dword/signed dword) 8192 (byte*) PLAYFIELD_CHARSET#0 ← ((byte*)) (word/signed word/dword/signed dword) 10240 (byte) PLAYFIELD_LINES#0 ← (byte/signed byte/word/signed word/dword/signed dword) 22 (byte) PLAYFIELD_COLS#0 ← (byte/signed byte/word/signed word/dword/signed dword) 10 - (byte~) $2 ← (byte) PLAYFIELD_LINES#0 * (byte) PLAYFIELD_COLS#0 - (byte[$2]) playfield#0 ← { fill( $2, 0) } + (byte~) $3 ← (byte) PLAYFIELD_LINES#0 * (byte) PLAYFIELD_COLS#0 + (byte[$3]) playfield#0 ← { fill( $3, 0) } kickasm(location (byte*) PLAYFIELD_CHARSET#0) {{ .fill 8,$00 // Place a filled char at the start of the charset .import binary "nes-screen.imap" }} (byte) PLAYFIELD_SCREEN_ORIGINAL_WIDTH#0 ← (byte/signed byte/word/signed word/dword/signed dword) 32 - (byte*) PLAYFIELD_SCREEN_ORIGINAL#0 ← ((byte*)) (word/signed word/dword/signed dword) 11264 kickasm(location (byte*) PLAYFIELD_SCREEN_ORIGINAL#0) {{ .import binary "nes-screen.iscr" }} - (byte*[PLAYFIELD_LINES#0]) screen_lines#0 ← { fill( PLAYFIELD_LINES#0, 0) } - to:@18 -render_init: scope:[render_init] from main::@21 - (byte*) render_init::vicSelectGfxBank1_gfx#0 ← (byte*) PLAYFIELD_SCREEN#0 + (byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 ← { fill( PLAYFIELD_LINES#0, 0) } + (byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 ← { fill( PLAYFIELD_LINES#0, 0) } + to:@20 +render_init: scope:[render_init] from main::@15 + (byte*) render_init::vicSelectGfxBank1_gfx#0 ← (byte*) PLAYFIELD_CHARSET#0 to:render_init::vicSelectGfxBank1 render_init::vicSelectGfxBank1: scope:[render_init] from render_init (byte*) render_init::vicSelectGfxBank1_gfx#1 ← phi( render_init/(byte*) render_init::vicSelectGfxBank1_gfx#0 ) @@ -558,103 +573,178 @@ render_init::vicSelectGfxBank1_@1: scope:[render_init] from render_init::vicSel *((byte*) CIA2_PORT_A#0) ← (byte) render_init::vicSelectGfxBank1_$0#0 to:render_init::@7 render_init::@7: scope:[render_init] from render_init::vicSelectGfxBank1_@1 - (byte*) render_init::toD0181_screen#0 ← (byte*) PLAYFIELD_SCREEN#0 - (byte*) render_init::toD0181_gfx#0 ← (byte*) PLAYFIELD_CHARSET#0 - to:render_init::toD0181 -render_init::toD0181: scope:[render_init] from render_init::@7 - (byte*) render_init::toD0181_gfx#1 ← phi( render_init::@7/(byte*) render_init::toD0181_gfx#0 ) - (byte*) render_init::toD0181_screen#1 ← phi( render_init::@7/(byte*) render_init::toD0181_screen#0 ) - (word) render_init::toD0181_$0#0 ← ((word)) (byte*) render_init::toD0181_screen#1 - (word) render_init::toD0181_$1#0 ← (word) render_init::toD0181_$0#0 & (word/signed word/dword/signed dword) 16383 - (word) render_init::toD0181_$2#0 ← (word) render_init::toD0181_$1#0 << (byte/signed byte/word/signed word/dword/signed dword) 2 - (byte) render_init::toD0181_$3#0 ← > (word) render_init::toD0181_$2#0 - (word) render_init::toD0181_$4#0 ← ((word)) (byte*) render_init::toD0181_gfx#1 - (byte) render_init::toD0181_$5#0 ← > (word) render_init::toD0181_$4#0 - (byte) render_init::toD0181_$6#0 ← (byte) render_init::toD0181_$5#0 >> (byte/signed byte/word/signed word/dword/signed dword) 2 - (byte) render_init::toD0181_$7#0 ← (byte) render_init::toD0181_$6#0 & (byte/signed byte/word/signed word/dword/signed dword) 15 - (byte) render_init::toD0181_$8#0 ← (byte) render_init::toD0181_$3#0 | (byte) render_init::toD0181_$7#0 - (byte) render_init::toD0181_return#0 ← (byte) render_init::toD0181_$8#0 - to:render_init::toD0181_@return -render_init::toD0181_@return: scope:[render_init] from render_init::toD0181 - (byte) render_init::toD0181_return#2 ← phi( render_init::toD0181/(byte) render_init::toD0181_return#0 ) - (byte) render_init::toD0181_return#1 ← (byte) render_init::toD0181_return#2 - to:render_init::@8 -render_init::@8: scope:[render_init] from render_init::toD0181_@return - (byte) render_init::toD0181_return#3 ← phi( render_init::toD0181_@return/(byte) render_init::toD0181_return#1 ) - (byte~) render_init::$1 ← (byte) render_init::toD0181_return#3 - *((byte*) D018#0) ← (byte~) render_init::$1 - (byte~) render_init::$2 ← (byte) VIC_ECM#0 | (byte) VIC_DEN#0 - (byte~) render_init::$3 ← (byte~) render_init::$2 | (byte) VIC_RSEL#0 - (byte/word/dword~) render_init::$4 ← (byte~) render_init::$3 | (byte/signed byte/word/signed word/dword/signed dword) 3 - *((byte*) D011#0) ← (byte/word/dword~) render_init::$4 + (byte~) render_init::$1 ← (byte) VIC_ECM#0 | (byte) VIC_DEN#0 + (byte~) render_init::$2 ← (byte~) render_init::$1 | (byte) VIC_RSEL#0 + (byte/word/dword~) render_init::$3 ← (byte~) render_init::$2 | (byte/signed byte/word/signed word/dword/signed dword) 3 + *((byte*) D011#0) ← (byte/word/dword~) render_init::$3 *((byte*) BGCOL1#0) ← (byte) BLACK#0 *((byte*) BGCOL2#0) ← (byte) BLUE#0 *((byte*) BGCOL3#0) ← (byte) CYAN#0 *((byte*) BGCOL4#0) ← (byte) GREY#0 + (byte*) render_screen_original::screen#0 ← (byte*) PLAYFIELD_SCREEN_1#0 + call render_screen_original + to:render_init::@8 +render_init::@8: scope:[render_init] from render_init::@7 + (byte*) render_screen_original::screen#1 ← (byte*) PLAYFIELD_SCREEN_2#0 + call render_screen_original + to:render_init::@9 +render_init::@9: scope:[render_init] from render_init::@8 (byte*) fill::start#0 ← (byte*) COLS#0 (word) fill::size#0 ← (word/signed word/dword/signed dword) 1000 (byte) fill::val#0 ← (byte) DARK_GREY#0 call fill - to:render_init::@9 -render_init::@9: scope:[render_init] from render_init::@8 - (byte*) render_screen_original::screen#0 ← (byte*) PLAYFIELD_SCREEN#0 - call render_screen_original to:render_init::@10 render_init::@10: scope:[render_init] from render_init::@9 - (byte/signed byte/word/signed word/dword/signed dword~) render_init::$7 ← (byte/signed byte/word/signed word/dword/signed dword) 2 * (byte/signed byte/word/signed word/dword/signed dword) 40 - (byte*~) render_init::$8 ← (byte*) PLAYFIELD_SCREEN#0 + (byte/signed byte/word/signed word/dword/signed dword~) render_init::$7 + (byte/word/signed word/dword/signed dword~) render_init::$7 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 40 + (byte*~) render_init::$8 ← (byte*) COLS#0 + (byte/word/signed word/dword/signed dword~) render_init::$7 (byte*~) render_init::$9 ← (byte*~) render_init::$8 + (byte/signed byte/word/signed word/dword/signed dword) 16 - (byte*) render_init::li#0 ← (byte*~) render_init::$9 + (byte*) render_init::line#0 ← (byte*~) render_init::$9 (byte/signed word/word/dword/signed dword~) render_init::$10 ← (byte) PLAYFIELD_LINES#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 - (byte) render_init::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - to:render_init::@1 -render_init::@1: scope:[render_init] from render_init::@1 render_init::@10 - (byte*) render_init::li#2 ← phi( render_init::@1/(byte*) render_init::li#1 render_init::@10/(byte*) render_init::li#0 ) - (byte) render_init::i#2 ← phi( render_init::@1/(byte) render_init::i#1 render_init::@10/(byte) render_init::i#0 ) - (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - *((byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 - (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 - (byte) render_init::i#1 ← (byte) render_init::i#2 + rangenext(0,render_init::$10) - (bool~) render_init::$12 ← (byte) render_init::i#1 != rangelast(0,render_init::$10) - if((bool~) render_init::$12) goto render_init::@1 - to:render_init::@4 -render_init::@4: scope:[render_init] from render_init::@1 - (byte/word/signed word/dword/signed dword~) render_init::$13 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 40 - (byte*~) render_init::$14 ← (byte*) COLS#0 + (byte/word/signed word/dword/signed dword~) render_init::$13 - (byte*~) render_init::$15 ← (byte*~) render_init::$14 + (byte/signed byte/word/signed word/dword/signed dword) 16 - (byte*) render_init::line#0 ← (byte*~) render_init::$15 - (byte/signed word/word/dword/signed dword~) render_init::$16 ← (byte) PLAYFIELD_LINES#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) render_init::l#0 ← (byte/signed byte/word/signed word/dword/signed dword) 2 - to:render_init::@2 -render_init::@2: scope:[render_init] from render_init::@4 render_init::@5 - (byte) render_init::l#4 ← phi( render_init::@4/(byte) render_init::l#0 render_init::@5/(byte) render_init::l#1 ) - (byte*) render_init::line#4 ← phi( render_init::@4/(byte*) render_init::line#0 render_init::@5/(byte*) render_init::line#1 ) - (byte/signed word/word/dword/signed dword~) render_init::$17 ← (byte) PLAYFIELD_COLS#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 + to:render_init::@1 +render_init::@1: scope:[render_init] from render_init::@10 render_init::@4 + (byte) render_init::l#4 ← phi( render_init::@10/(byte) render_init::l#0 render_init::@4/(byte) render_init::l#1 ) + (byte*) render_init::line#4 ← phi( render_init::@10/(byte*) render_init::line#0 render_init::@4/(byte*) render_init::line#1 ) + (byte/signed word/word/dword/signed dword~) render_init::$11 ← (byte) PLAYFIELD_COLS#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) render_init::c#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - to:render_init::@3 -render_init::@3: scope:[render_init] from render_init::@2 render_init::@3 - (byte) render_init::l#3 ← phi( render_init::@2/(byte) render_init::l#4 render_init::@3/(byte) render_init::l#3 ) - (byte) render_init::c#2 ← phi( render_init::@2/(byte) render_init::c#0 render_init::@3/(byte) render_init::c#1 ) - (byte*) render_init::line#2 ← phi( render_init::@2/(byte*) render_init::line#4 render_init::@3/(byte*) render_init::line#2 ) - (byte*~) render_init::$18 ← (byte*) render_init::line#2 + (byte) render_init::c#2 - *((byte*~) render_init::$18) ← (byte) WHITE#0 - (byte) render_init::c#1 ← (byte) render_init::c#2 + rangenext(0,render_init::$17) - (bool~) render_init::$19 ← (byte) render_init::c#1 != rangelast(0,render_init::$17) - if((bool~) render_init::$19) goto render_init::@3 - to:render_init::@5 -render_init::@5: scope:[render_init] from render_init::@3 - (byte) render_init::l#2 ← phi( render_init::@3/(byte) render_init::l#3 ) - (byte*) render_init::line#3 ← phi( render_init::@3/(byte*) render_init::line#2 ) + to:render_init::@2 +render_init::@2: scope:[render_init] from render_init::@1 render_init::@2 + (byte) render_init::l#3 ← phi( render_init::@1/(byte) render_init::l#4 render_init::@2/(byte) render_init::l#3 ) + (byte) render_init::c#2 ← phi( render_init::@1/(byte) render_init::c#0 render_init::@2/(byte) render_init::c#1 ) + (byte*) render_init::line#2 ← phi( render_init::@1/(byte*) render_init::line#4 render_init::@2/(byte*) render_init::line#2 ) + (byte*~) render_init::$12 ← (byte*) render_init::line#2 + (byte) render_init::c#2 + *((byte*~) render_init::$12) ← (byte) WHITE#0 + (byte) render_init::c#1 ← (byte) render_init::c#2 + rangenext(0,render_init::$11) + (bool~) render_init::$13 ← (byte) render_init::c#1 != rangelast(0,render_init::$11) + if((bool~) render_init::$13) goto render_init::@2 + to:render_init::@4 +render_init::@4: scope:[render_init] from render_init::@2 + (byte) render_init::l#2 ← phi( render_init::@2/(byte) render_init::l#3 ) + (byte*) render_init::line#3 ← phi( render_init::@2/(byte*) render_init::line#2 ) (byte*) render_init::line#1 ← (byte*) render_init::line#3 + (byte/signed byte/word/signed word/dword/signed dword) 40 - (byte) render_init::l#1 ← (byte) render_init::l#2 + rangenext(2,render_init::$16) - (bool~) render_init::$20 ← (byte) render_init::l#1 != rangelast(2,render_init::$16) - if((bool~) render_init::$20) goto render_init::@2 + (byte) render_init::l#1 ← (byte) render_init::l#2 + rangenext(2,render_init::$10) + (bool~) render_init::$14 ← (byte) render_init::l#1 != rangelast(2,render_init::$10) + if((bool~) render_init::$14) goto render_init::@1 + to:render_init::@5 +render_init::@5: scope:[render_init] from render_init::@4 + (byte/signed byte/word/signed word/dword/signed dword~) render_init::$15 ← (byte/signed byte/word/signed word/dword/signed dword) 2 * (byte/signed byte/word/signed word/dword/signed dword) 40 + (byte*~) render_init::$16 ← (byte*) PLAYFIELD_SCREEN_1#0 + (byte/signed byte/word/signed word/dword/signed dword~) render_init::$15 + (byte*~) render_init::$17 ← (byte*~) render_init::$16 + (byte/signed byte/word/signed word/dword/signed dword) 16 + (byte*) render_init::li_1#0 ← (byte*~) render_init::$17 + (byte/signed byte/word/signed word/dword/signed dword~) render_init::$18 ← (byte/signed byte/word/signed word/dword/signed dword) 2 * (byte/signed byte/word/signed word/dword/signed dword) 40 + (byte*~) render_init::$19 ← (byte*) PLAYFIELD_SCREEN_2#0 + (byte/signed byte/word/signed word/dword/signed dword~) render_init::$18 + (byte*~) render_init::$20 ← (byte*~) render_init::$19 + (byte/signed byte/word/signed word/dword/signed dword) 16 + (byte*) render_init::li_2#0 ← (byte*~) render_init::$20 + (byte/signed word/word/dword/signed dword~) render_init::$21 ← (byte) PLAYFIELD_LINES#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 + (byte) render_init::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + to:render_init::@3 +render_init::@3: scope:[render_init] from render_init::@3 render_init::@5 + (byte*) render_init::li_2#2 ← phi( render_init::@3/(byte*) render_init::li_2#1 render_init::@5/(byte*) render_init::li_2#0 ) + (byte*) render_init::li_1#2 ← phi( render_init::@3/(byte*) render_init::li_1#1 render_init::@5/(byte*) render_init::li_1#0 ) + (byte) render_init::i#2 ← phi( render_init::@3/(byte) render_init::i#1 render_init::@5/(byte) render_init::i#0 ) + (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + *((byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 + (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + *((byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 + (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 + (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 + (byte) render_init::i#1 ← (byte) render_init::i#2 + rangenext(0,render_init::$21) + (bool~) render_init::$24 ← (byte) render_init::i#1 != rangelast(0,render_init::$21) + if((bool~) render_init::$24) goto render_init::@3 + to:render_init::@6 +render_init::@6: scope:[render_init] from render_init::@3 + (byte) render_screen_show#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte) render_screen_render#0 ← (byte/signed byte/word/signed word/dword/signed dword) 64 to:render_init::@return -render_init::@return: scope:[render_init] from render_init::@5 +render_init::@return: scope:[render_init] from render_init::@6 + (byte) render_screen_render#8 ← phi( render_init::@6/(byte) render_screen_render#0 ) + (byte) render_screen_show#8 ← phi( render_init::@6/(byte) render_screen_show#0 ) + (byte) render_screen_show#1 ← (byte) render_screen_show#8 + (byte) render_screen_render#1 ← (byte) render_screen_render#8 return to:@return -render_screen_original: scope:[render_screen_original] from render_init::@9 - (byte*) render_screen_original::screen#10 ← phi( render_init::@9/(byte*) render_screen_original::screen#0 ) +render_show: scope:[render_show] from main::@6 + (byte) render_screen_show#9 ← phi( main::@6/(byte) render_screen_show#13 ) + (byte) render_show::d018val#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (bool~) render_show::$0 ← (byte) render_screen_show#9 == (byte/signed byte/word/signed word/dword/signed dword) 0 + if((bool~) render_show::$0) goto render_show::@1 + to:render_show::@3 +render_show::@1: scope:[render_show] from render_show + (byte*) render_show::toD0181_screen#0 ← (byte*) PLAYFIELD_SCREEN_1#0 + (byte*) render_show::toD0181_gfx#0 ← (byte*) PLAYFIELD_CHARSET#0 + to:render_show::toD0181 +render_show::toD0181: scope:[render_show] from render_show::@1 + (byte*) render_show::toD0181_gfx#1 ← phi( render_show::@1/(byte*) render_show::toD0181_gfx#0 ) + (byte*) render_show::toD0181_screen#1 ← phi( render_show::@1/(byte*) render_show::toD0181_screen#0 ) + (word) render_show::toD0181_$0#0 ← ((word)) (byte*) render_show::toD0181_screen#1 + (word) render_show::toD0181_$1#0 ← (word) render_show::toD0181_$0#0 & (word/signed word/dword/signed dword) 16383 + (word) render_show::toD0181_$2#0 ← (word) render_show::toD0181_$1#0 << (byte/signed byte/word/signed word/dword/signed dword) 2 + (byte) render_show::toD0181_$3#0 ← > (word) render_show::toD0181_$2#0 + (word) render_show::toD0181_$4#0 ← ((word)) (byte*) render_show::toD0181_gfx#1 + (byte) render_show::toD0181_$5#0 ← > (word) render_show::toD0181_$4#0 + (byte) render_show::toD0181_$6#0 ← (byte) render_show::toD0181_$5#0 >> (byte/signed byte/word/signed word/dword/signed dword) 2 + (byte) render_show::toD0181_$7#0 ← (byte) render_show::toD0181_$6#0 & (byte/signed byte/word/signed word/dword/signed dword) 15 + (byte) render_show::toD0181_$8#0 ← (byte) render_show::toD0181_$3#0 | (byte) render_show::toD0181_$7#0 + (byte) render_show::toD0181_return#0 ← (byte) render_show::toD0181_$8#0 + to:render_show::toD0181_@return +render_show::toD0181_@return: scope:[render_show] from render_show::toD0181 + (byte) render_show::toD0181_return#2 ← phi( render_show::toD0181/(byte) render_show::toD0181_return#0 ) + (byte) render_show::toD0181_return#1 ← (byte) render_show::toD0181_return#2 + to:render_show::@5 +render_show::@5: scope:[render_show] from render_show::toD0181_@return + (byte) render_show::toD0181_return#3 ← phi( render_show::toD0181_@return/(byte) render_show::toD0181_return#1 ) + (byte~) render_show::$2 ← (byte) render_show::toD0181_return#3 + (byte) render_show::d018val#1 ← (byte~) render_show::$2 + to:render_show::@2 +render_show::@3: scope:[render_show] from render_show + (byte*) render_show::toD0182_screen#0 ← (byte*) PLAYFIELD_SCREEN_2#0 + (byte*) render_show::toD0182_gfx#0 ← (byte*) PLAYFIELD_CHARSET#0 + to:render_show::toD0182 +render_show::toD0182: scope:[render_show] from render_show::@3 + (byte*) render_show::toD0182_gfx#1 ← phi( render_show::@3/(byte*) render_show::toD0182_gfx#0 ) + (byte*) render_show::toD0182_screen#1 ← phi( render_show::@3/(byte*) render_show::toD0182_screen#0 ) + (word) render_show::toD0182_$0#0 ← ((word)) (byte*) render_show::toD0182_screen#1 + (word) render_show::toD0182_$1#0 ← (word) render_show::toD0182_$0#0 & (word/signed word/dword/signed dword) 16383 + (word) render_show::toD0182_$2#0 ← (word) render_show::toD0182_$1#0 << (byte/signed byte/word/signed word/dword/signed dword) 2 + (byte) render_show::toD0182_$3#0 ← > (word) render_show::toD0182_$2#0 + (word) render_show::toD0182_$4#0 ← ((word)) (byte*) render_show::toD0182_gfx#1 + (byte) render_show::toD0182_$5#0 ← > (word) render_show::toD0182_$4#0 + (byte) render_show::toD0182_$6#0 ← (byte) render_show::toD0182_$5#0 >> (byte/signed byte/word/signed word/dword/signed dword) 2 + (byte) render_show::toD0182_$7#0 ← (byte) render_show::toD0182_$6#0 & (byte/signed byte/word/signed word/dword/signed dword) 15 + (byte) render_show::toD0182_$8#0 ← (byte) render_show::toD0182_$3#0 | (byte) render_show::toD0182_$7#0 + (byte) render_show::toD0182_return#0 ← (byte) render_show::toD0182_$8#0 + to:render_show::toD0182_@return +render_show::toD0182_@return: scope:[render_show] from render_show::toD0182 + (byte) render_show::toD0182_return#2 ← phi( render_show::toD0182/(byte) render_show::toD0182_return#0 ) + (byte) render_show::toD0182_return#1 ← (byte) render_show::toD0182_return#2 + to:render_show::@6 +render_show::@6: scope:[render_show] from render_show::toD0182_@return + (byte) render_show::toD0182_return#3 ← phi( render_show::toD0182_@return/(byte) render_show::toD0182_return#1 ) + (byte~) render_show::$1 ← (byte) render_show::toD0182_return#3 + (byte) render_show::d018val#2 ← (byte~) render_show::$1 + to:render_show::@2 +render_show::@2: scope:[render_show] from render_show::@5 render_show::@6 + (byte) render_show::d018val#3 ← phi( render_show::@5/(byte) render_show::d018val#1 render_show::@6/(byte) render_show::d018val#2 ) + *((byte*) D018#0) ← (byte) render_show::d018val#3 + to:render_show::@return +render_show::@return: scope:[render_show] from render_show::@2 + return + to:@return +render_screen_swap: scope:[render_screen_swap] from main::@30 + (byte) render_screen_show#10 ← phi( main::@30/(byte) render_screen_show#17 ) + (byte) render_screen_render#9 ← phi( main::@30/(byte) render_screen_render#17 ) + (byte) render_screen_render#2 ← (byte) render_screen_render#9 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 + (byte) render_screen_show#2 ← (byte) render_screen_show#10 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 + to:render_screen_swap::@return +render_screen_swap::@return: scope:[render_screen_swap] from render_screen_swap + (byte) render_screen_show#11 ← phi( render_screen_swap/(byte) render_screen_show#2 ) + (byte) render_screen_render#10 ← phi( render_screen_swap/(byte) render_screen_render#2 ) + (byte) render_screen_render#3 ← (byte) render_screen_render#10 + (byte) render_screen_show#3 ← (byte) render_screen_show#11 + return + to:@return +render_screen_original: scope:[render_screen_original] from render_init::@7 render_init::@8 + (byte*) render_screen_original::screen#11 ← phi( render_init::@7/(byte*) render_screen_original::screen#0 render_init::@8/(byte*) render_screen_original::screen#1 ) (byte) render_screen_original::SPACE#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte/signed byte/word/signed word/dword/signed dword~) render_screen_original::$0 ← (byte/signed byte/word/signed word/dword/signed dword) 32 * (byte/signed byte/word/signed word/dword/signed dword) 2 (byte*~) render_screen_original::$1 ← (byte*) PLAYFIELD_SCREEN_ORIGINAL#0 + (byte/signed byte/word/signed word/dword/signed dword~) render_screen_original::$0 @@ -664,7 +754,7 @@ render_screen_original: scope:[render_screen_original] from render_init::@9 render_screen_original::@1: scope:[render_screen_original] from render_screen_original render_screen_original::@9 (byte) render_screen_original::y#8 ← phi( render_screen_original/(byte) render_screen_original::y#0 render_screen_original::@9/(byte) render_screen_original::y#1 ) (byte*) render_screen_original::orig#5 ← phi( render_screen_original/(byte*) render_screen_original::orig#0 render_screen_original::@9/(byte*) render_screen_original::orig#7 ) - (byte*) render_screen_original::screen#7 ← phi( render_screen_original/(byte*) render_screen_original::screen#10 render_screen_original::@9/(byte*) render_screen_original::screen#11 ) + (byte*) render_screen_original::screen#8 ← phi( render_screen_original/(byte*) render_screen_original::screen#11 render_screen_original::@9/(byte*) render_screen_original::screen#12 ) (byte) render_screen_original::SPACE#3 ← phi( render_screen_original/(byte) render_screen_original::SPACE#0 render_screen_original::@9/(byte) render_screen_original::SPACE#5 ) (byte) render_screen_original::x#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:render_screen_original::@2 @@ -672,10 +762,10 @@ render_screen_original::@2: scope:[render_screen_original] from render_screen_o (byte) render_screen_original::y#7 ← phi( render_screen_original::@1/(byte) render_screen_original::y#8 render_screen_original::@2/(byte) render_screen_original::y#7 ) (byte*) render_screen_original::orig#3 ← phi( render_screen_original::@1/(byte*) render_screen_original::orig#5 render_screen_original::@2/(byte*) render_screen_original::orig#3 ) (byte) render_screen_original::x#4 ← phi( render_screen_original::@1/(byte) render_screen_original::x#0 render_screen_original::@2/(byte) render_screen_original::x#1 ) - (byte*) render_screen_original::screen#4 ← phi( render_screen_original::@1/(byte*) render_screen_original::screen#7 render_screen_original::@2/(byte*) render_screen_original::screen#1 ) + (byte*) render_screen_original::screen#5 ← phi( render_screen_original::@1/(byte*) render_screen_original::screen#8 render_screen_original::@2/(byte*) render_screen_original::screen#2 ) (byte) render_screen_original::SPACE#1 ← phi( render_screen_original::@1/(byte) render_screen_original::SPACE#3 render_screen_original::@2/(byte) render_screen_original::SPACE#1 ) - *((byte*) render_screen_original::screen#4) ← (byte) render_screen_original::SPACE#1 - (byte*) render_screen_original::screen#1 ← ++ (byte*) render_screen_original::screen#4 + *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::SPACE#1 + (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 (bool~) render_screen_original::$2 ← (byte) render_screen_original::x#1 != (byte/signed byte/word/signed word/dword/signed dword) 4 if((bool~) render_screen_original::$2) goto render_screen_original::@2 @@ -683,7 +773,7 @@ render_screen_original::@2: scope:[render_screen_original] from render_screen_o render_screen_original::@3: scope:[render_screen_original] from render_screen_original::@2 render_screen_original::@4 (byte) render_screen_original::y#5 ← phi( render_screen_original::@2/(byte) render_screen_original::y#7 render_screen_original::@4/(byte) render_screen_original::y#4 ) (byte) render_screen_original::SPACE#6 ← phi( render_screen_original::@2/(byte) render_screen_original::SPACE#1 render_screen_original::@4/(byte) render_screen_original::SPACE#4 ) - (byte*) render_screen_original::screen#8 ← phi( render_screen_original::@2/(byte*) render_screen_original::screen#1 render_screen_original::@4/(byte*) render_screen_original::screen#2 ) + (byte*) render_screen_original::screen#9 ← phi( render_screen_original::@2/(byte*) render_screen_original::screen#2 render_screen_original::@4/(byte*) render_screen_original::screen#3 ) (byte) render_screen_original::x#5 ← phi( render_screen_original::@2/(byte) render_screen_original::x#1 render_screen_original::@4/(byte) render_screen_original::x#2 ) (byte*) render_screen_original::orig#2 ← phi( render_screen_original::@2/(byte*) render_screen_original::orig#3 render_screen_original::@4/(byte*) render_screen_original::orig#4 ) (byte/signed word/word/dword/signed dword~) render_screen_original::$3 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 @@ -700,10 +790,10 @@ render_screen_original::@4: scope:[render_screen_original] from render_screen_o (byte) render_screen_original::SPACE#4 ← phi( render_screen_original::@3/(byte) render_screen_original::SPACE#6 render_screen_original::@7/(byte) render_screen_original::SPACE#7 ) (byte*) render_screen_original::orig#4 ← phi( render_screen_original::@3/(byte*) render_screen_original::orig#1 render_screen_original::@7/(byte*) render_screen_original::orig#6 ) (byte) render_screen_original::x#6 ← phi( render_screen_original::@3/(byte) render_screen_original::x#5 render_screen_original::@7/(byte) render_screen_original::x#8 ) - (byte*) render_screen_original::screen#5 ← phi( render_screen_original::@3/(byte*) render_screen_original::screen#8 render_screen_original::@7/(byte*) render_screen_original::screen#9 ) + (byte*) render_screen_original::screen#6 ← phi( render_screen_original::@3/(byte*) render_screen_original::screen#9 render_screen_original::@7/(byte*) render_screen_original::screen#10 ) (byte) render_screen_original::c#2 ← phi( render_screen_original::@3/(byte) render_screen_original::c#0 render_screen_original::@7/(byte) render_screen_original::c#1 ) - *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 - (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 + *((byte*) render_screen_original::screen#6) ← (byte) render_screen_original::c#2 + (byte*) render_screen_original::screen#3 ← ++ (byte*) render_screen_original::screen#6 (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#6 (bool~) render_screen_original::$8 ← (byte) render_screen_original::x#2 != (byte/signed byte/word/signed word/dword/signed dword) 36 if((bool~) render_screen_original::$8) goto render_screen_original::@3 @@ -713,7 +803,7 @@ render_screen_original::@7: scope:[render_screen_original] from render_screen_o (byte) render_screen_original::SPACE#7 ← phi( render_screen_original::@3/(byte) render_screen_original::SPACE#6 ) (byte*) render_screen_original::orig#6 ← phi( render_screen_original::@3/(byte*) render_screen_original::orig#1 ) (byte) render_screen_original::x#8 ← phi( render_screen_original::@3/(byte) render_screen_original::x#5 ) - (byte*) render_screen_original::screen#9 ← phi( render_screen_original::@3/(byte*) render_screen_original::screen#8 ) + (byte*) render_screen_original::screen#10 ← phi( render_screen_original::@3/(byte*) render_screen_original::screen#9 ) (byte) render_screen_original::c#3 ← phi( render_screen_original::@3/(byte) render_screen_original::c#0 ) (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#3 | (byte/word/signed word/dword/signed dword) 192 to:render_screen_original::@4 @@ -721,17 +811,17 @@ render_screen_original::@5: scope:[render_screen_original] from render_screen_o (byte*) render_screen_original::orig#8 ← phi( render_screen_original::@4/(byte*) render_screen_original::orig#4 render_screen_original::@5/(byte*) render_screen_original::orig#8 ) (byte) render_screen_original::y#3 ← phi( render_screen_original::@4/(byte) render_screen_original::y#4 render_screen_original::@5/(byte) render_screen_original::y#3 ) (byte) render_screen_original::x#7 ← phi( render_screen_original::@4/(byte) render_screen_original::x#2 render_screen_original::@5/(byte) render_screen_original::x#3 ) - (byte*) render_screen_original::screen#6 ← phi( render_screen_original::@4/(byte*) render_screen_original::screen#2 render_screen_original::@5/(byte*) render_screen_original::screen#3 ) + (byte*) render_screen_original::screen#7 ← phi( render_screen_original::@4/(byte*) render_screen_original::screen#3 render_screen_original::@5/(byte*) render_screen_original::screen#4 ) (byte) render_screen_original::SPACE#2 ← phi( render_screen_original::@4/(byte) render_screen_original::SPACE#4 render_screen_original::@5/(byte) render_screen_original::SPACE#2 ) - *((byte*) render_screen_original::screen#6) ← (byte) render_screen_original::SPACE#2 - (byte*) render_screen_original::screen#3 ← ++ (byte*) render_screen_original::screen#6 + *((byte*) render_screen_original::screen#7) ← (byte) render_screen_original::SPACE#2 + (byte*) render_screen_original::screen#4 ← ++ (byte*) render_screen_original::screen#7 (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 (bool~) render_screen_original::$9 ← (byte) render_screen_original::x#3 != (byte/signed byte/word/signed word/dword/signed dword) 40 if((bool~) render_screen_original::$9) goto render_screen_original::@5 to:render_screen_original::@9 render_screen_original::@9: scope:[render_screen_original] from render_screen_original::@5 (byte*) render_screen_original::orig#7 ← phi( render_screen_original::@5/(byte*) render_screen_original::orig#8 ) - (byte*) render_screen_original::screen#11 ← phi( render_screen_original::@5/(byte*) render_screen_original::screen#3 ) + (byte*) render_screen_original::screen#12 ← phi( render_screen_original::@5/(byte*) render_screen_original::screen#4 ) (byte) render_screen_original::SPACE#5 ← phi( render_screen_original::@5/(byte) render_screen_original::SPACE#2 ) (byte) render_screen_original::y#2 ← phi( render_screen_original::@5/(byte) render_screen_original::y#3 ) (byte) render_screen_original::y#1 ← (byte) render_screen_original::y#2 + rangenext(0,24) @@ -741,7 +831,8 @@ render_screen_original::@9: scope:[render_screen_original] from render_screen_o render_screen_original::@return: scope:[render_screen_original] from render_screen_original::@9 return to:@return -render_playfield: scope:[render_playfield] from main::@19 main::@26 +render_playfield: scope:[render_playfield] from main::@13 main::@20 + (byte) render_screen_render#18 ← phi( main::@13/(byte) render_screen_render#24 main::@20/(byte) render_screen_render#25 ) (byte/signed word/word/dword/signed dword~) render_playfield::$0 ← (byte) PLAYFIELD_COLS#0 * (byte/signed byte/word/signed word/dword/signed dword) 2 (byte) render_playfield::i#0 ← (byte/signed word/word/dword/signed dword~) render_playfield::$0 (byte/signed word/word/dword/signed dword~) render_playfield::$1 ← (byte) PLAYFIELD_LINES#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 @@ -749,39 +840,44 @@ render_playfield: scope:[render_playfield] from main::@19 main::@26 to:render_playfield::@1 render_playfield::@1: scope:[render_playfield] from render_playfield render_playfield::@3 (byte) render_playfield::i#3 ← phi( render_playfield/(byte) render_playfield::i#0 render_playfield::@3/(byte) render_playfield::i#4 ) + (byte) render_screen_render#11 ← phi( render_playfield/(byte) render_screen_render#18 render_playfield::@3/(byte) render_screen_render#19 ) (byte) render_playfield::l#2 ← phi( render_playfield/(byte) render_playfield::l#0 render_playfield::@3/(byte) render_playfield::l#1 ) (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - (byte*) render_playfield::screen_line#0 ← *((byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) - (byte/signed word/word/dword/signed dword~) render_playfield::$3 ← (byte) PLAYFIELD_COLS#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 + (byte~) render_playfield::$3 ← (byte) render_screen_render#11 + (byte~) render_playfield::$2 + (byte*) render_playfield::screen_line#0 ← *((byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) + (byte/signed word/word/dword/signed dword~) render_playfield::$4 ← (byte) PLAYFIELD_COLS#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) render_playfield::c#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:render_playfield::@2 render_playfield::@2: scope:[render_playfield] from render_playfield::@1 render_playfield::@2 + (byte) render_screen_render#26 ← phi( render_playfield::@1/(byte) render_screen_render#11 render_playfield::@2/(byte) render_screen_render#26 ) (byte) render_playfield::l#4 ← phi( render_playfield::@1/(byte) render_playfield::l#2 render_playfield::@2/(byte) render_playfield::l#4 ) (byte) render_playfield::c#2 ← phi( render_playfield::@1/(byte) render_playfield::c#0 render_playfield::@2/(byte) render_playfield::c#1 ) (byte*) render_playfield::screen_line#2 ← phi( render_playfield::@1/(byte*) render_playfield::screen_line#0 render_playfield::@2/(byte*) render_playfield::screen_line#1 ) (byte) render_playfield::i#2 ← phi( render_playfield::@1/(byte) render_playfield::i#3 render_playfield::@2/(byte) render_playfield::i#1 ) - *((byte*) render_playfield::screen_line#2) ← *((byte[$2]) playfield#0 + (byte) render_playfield::i#2) + *((byte*) render_playfield::screen_line#2) ← *((byte[$3]) playfield#0 + (byte) render_playfield::i#2) (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 - (byte) render_playfield::c#1 ← (byte) render_playfield::c#2 + rangenext(0,render_playfield::$3) - (bool~) render_playfield::$4 ← (byte) render_playfield::c#1 != rangelast(0,render_playfield::$3) - if((bool~) render_playfield::$4) goto render_playfield::@2 + (byte) render_playfield::c#1 ← (byte) render_playfield::c#2 + rangenext(0,render_playfield::$4) + (bool~) render_playfield::$5 ← (byte) render_playfield::c#1 != rangelast(0,render_playfield::$4) + if((bool~) render_playfield::$5) goto render_playfield::@2 to:render_playfield::@3 render_playfield::@3: scope:[render_playfield] from render_playfield::@2 (byte) render_playfield::i#4 ← phi( render_playfield::@2/(byte) render_playfield::i#1 ) + (byte) render_screen_render#19 ← phi( render_playfield::@2/(byte) render_screen_render#26 ) (byte) render_playfield::l#3 ← phi( render_playfield::@2/(byte) render_playfield::l#4 ) (byte) render_playfield::l#1 ← (byte) render_playfield::l#3 + rangenext(2,render_playfield::$1) - (bool~) render_playfield::$5 ← (byte) render_playfield::l#1 != rangelast(2,render_playfield::$1) - if((bool~) render_playfield::$5) goto render_playfield::@1 + (bool~) render_playfield::$6 ← (byte) render_playfield::l#1 != rangelast(2,render_playfield::$1) + if((bool~) render_playfield::$6) goto render_playfield::@1 to:render_playfield::@return render_playfield::@return: scope:[render_playfield] from render_playfield::@3 return to:@return -render_current: scope:[render_current] from main::@27 main::@34 - (byte) current_piece_char#62 ← phi( main::@27/(byte) current_piece_char#47 main::@34/(byte) current_piece_char#61 ) - (byte*) current_piece_gfx#52 ← phi( main::@27/(byte*) current_piece_gfx#63 main::@34/(byte*) current_piece_gfx#66 ) - (byte) current_xpos#47 ← phi( main::@27/(byte) current_xpos#65 main::@34/(byte) current_xpos#66 ) - (byte) current_ypos#9 ← phi( main::@27/(byte) current_ypos#23 main::@34/(byte) current_ypos#24 ) +render_current: scope:[render_current] from main::@21 main::@29 + (byte) current_piece_char#62 ← phi( main::@21/(byte) current_piece_char#47 main::@29/(byte) current_piece_char#69 ) + (byte*) current_piece_gfx#52 ← phi( main::@21/(byte*) current_piece_gfx#63 main::@29/(byte*) current_piece_gfx#66 ) + (byte) current_xpos#47 ← phi( main::@21/(byte) current_xpos#65 main::@29/(byte) current_xpos#66 ) + (byte) render_screen_render#27 ← phi( main::@21/(byte) render_screen_render#34 main::@29/(byte) render_screen_render#32 ) + (byte) current_ypos#9 ← phi( main::@21/(byte) current_ypos#23 main::@29/(byte) current_ypos#24 ) (byte) render_current::i#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte~) render_current::$0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) render_current::ypos2#0 ← (byte~) render_current::$0 @@ -793,6 +889,7 @@ render_current::@1: scope:[render_current] from render_current render_current:: (byte*) current_piece_gfx#36 ← phi( render_current/(byte*) current_piece_gfx#52 render_current::@3/(byte*) current_piece_gfx#53 ) (byte) render_current::i#5 ← phi( render_current/(byte) render_current::i#0 render_current::@3/(byte) render_current::i#8 ) (byte) current_xpos#29 ← phi( render_current/(byte) current_xpos#47 render_current::@3/(byte) current_xpos#48 ) + (byte) render_screen_render#20 ← phi( render_current/(byte) render_screen_render#27 render_current::@3/(byte) render_screen_render#28 ) (byte) render_current::ypos2#2 ← phi( render_current/(byte) render_current::ypos2#0 render_current::@3/(byte) render_current::ypos2#1 ) (bool~) render_current::$1 ← (byte) render_current::ypos2#2 > (byte/signed byte/word/signed word/dword/signed dword) 2 (byte/signed word/word/dword/signed dword~) render_current::$2 ← (byte/signed byte/word/signed word/dword/signed dword) 2 * (byte) PLAYFIELD_LINES#0 @@ -807,33 +904,38 @@ render_current::@2: scope:[render_current] from render_current::@1 (byte*) current_piece_gfx#22 ← phi( render_current::@1/(byte*) current_piece_gfx#36 ) (byte) current_xpos#12 ← phi( render_current::@1/(byte) current_xpos#29 ) (byte) render_current::ypos2#3 ← phi( render_current::@1/(byte) render_current::ypos2#2 ) - (byte*) render_current::screen_line#0 ← *((byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#3) + (byte) render_screen_render#12 ← phi( render_current::@1/(byte) render_screen_render#20 ) + (byte~) render_current::$5 ← (byte) render_screen_render#12 + (byte) render_current::ypos2#3 + (byte*) render_current::screen_line#0 ← *((byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) (byte) render_current::xpos#0 ← (byte) current_xpos#12 (byte) render_current::c#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:render_current::@4 render_current::@7: scope:[render_current] from render_current::@1 - (byte) current_piece_char#71 ← phi( render_current::@1/(byte) current_piece_char#51 ) + (byte) current_piece_char#70 ← phi( render_current::@1/(byte) current_piece_char#51 ) (byte*) current_piece_gfx#67 ← phi( render_current::@1/(byte*) current_piece_gfx#36 ) (byte) current_xpos#68 ← phi( render_current::@1/(byte) current_xpos#29 ) + (byte) render_screen_render#36 ← phi( render_current::@1/(byte) render_screen_render#20 ) (byte) render_current::l#4 ← phi( render_current::@1/(byte) render_current::l#5 ) (byte) render_current::ypos2#6 ← phi( render_current::@1/(byte) render_current::ypos2#2 ) (byte) render_current::i#3 ← phi( render_current::@1/(byte) render_current::i#5 ) (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 to:render_current::@3 render_current::@3: scope:[render_current] from render_current::@5 render_current::@7 - (byte) current_piece_char#63 ← phi( render_current::@5/(byte) current_piece_char#38 render_current::@7/(byte) current_piece_char#71 ) + (byte) current_piece_char#63 ← phi( render_current::@5/(byte) current_piece_char#38 render_current::@7/(byte) current_piece_char#70 ) (byte*) current_piece_gfx#53 ← phi( render_current::@5/(byte*) current_piece_gfx#23 render_current::@7/(byte*) current_piece_gfx#67 ) (byte) render_current::i#8 ← phi( render_current::@5/(byte) render_current::i#7 render_current::@7/(byte) render_current::i#1 ) (byte) current_xpos#48 ← phi( render_current::@5/(byte) current_xpos#67 render_current::@7/(byte) current_xpos#68 ) + (byte) render_screen_render#28 ← phi( render_current::@5/(byte) render_screen_render#35 render_current::@7/(byte) render_screen_render#36 ) (byte) render_current::l#2 ← phi( render_current::@5/(byte) render_current::l#3 render_current::@7/(byte) render_current::l#4 ) (byte) render_current::ypos2#4 ← phi( render_current::@5/(byte) render_current::ypos2#5 render_current::@7/(byte) render_current::ypos2#6 ) (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#4 + (byte/signed byte/word/signed word/dword/signed dword) 2 (byte) render_current::l#1 ← (byte) render_current::l#2 + rangenext(0,3) - (bool~) render_current::$10 ← (byte) render_current::l#1 != rangelast(0,3) - if((bool~) render_current::$10) goto render_current::@1 + (bool~) render_current::$11 ← (byte) render_current::l#1 != rangelast(0,3) + if((bool~) render_current::$11) goto render_current::@1 to:render_current::@return render_current::@4: scope:[render_current] from render_current::@2 render_current::@5 (byte) current_xpos#81 ← phi( render_current::@2/(byte) current_xpos#12 render_current::@5/(byte) current_xpos#67 ) + (byte) render_screen_render#41 ← phi( render_current::@2/(byte) render_screen_render#12 render_current::@5/(byte) render_screen_render#35 ) (byte*) render_current::screen_line#3 ← phi( render_current::@2/(byte*) render_current::screen_line#0 render_current::@5/(byte*) render_current::screen_line#4 ) (byte) current_piece_char#26 ← phi( render_current::@2/(byte) current_piece_char#37 render_current::@5/(byte) current_piece_char#38 ) (byte) render_current::l#7 ← phi( render_current::@2/(byte) render_current::l#9 render_current::@5/(byte) render_current::l#3 ) @@ -844,14 +946,15 @@ render_current::@4: scope:[render_current] from render_current::@2 render_curre (byte*) current_piece_gfx#11 ← phi( render_current::@2/(byte*) current_piece_gfx#22 render_current::@5/(byte*) current_piece_gfx#23 ) (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#11 + (byte) render_current::i#4) (byte) render_current::i#2 ← ++ (byte) render_current::i#4 - (bool~) render_current::$5 ← (byte) render_current::current_cell#0 != (byte/signed byte/word/signed word/dword/signed dword) 0 - (bool~) render_current::$6 ← ! (bool~) render_current::$5 - if((bool~) render_current::$6) goto render_current::@5 + (bool~) render_current::$6 ← (byte) render_current::current_cell#0 != (byte/signed byte/word/signed word/dword/signed dword) 0 + (bool~) render_current::$7 ← ! (bool~) render_current::$6 + if((bool~) render_current::$7) goto render_current::@5 to:render_current::@9 render_current::@5: scope:[render_current] from render_current::@10 render_current::@4 render_current::@6 (byte*) render_current::screen_line#4 ← phi( render_current::@10/(byte*) render_current::screen_line#1 render_current::@4/(byte*) render_current::screen_line#3 render_current::@6/(byte*) render_current::screen_line#5 ) (byte) current_piece_char#38 ← phi( render_current::@10/(byte) current_piece_char#8 render_current::@4/(byte) current_piece_char#26 render_current::@6/(byte) current_piece_char#52 ) (byte) current_xpos#67 ← phi( render_current::@10/(byte) current_xpos#80 render_current::@4/(byte) current_xpos#81 render_current::@6/(byte) current_xpos#82 ) + (byte) render_screen_render#35 ← phi( render_current::@10/(byte) render_screen_render#40 render_current::@4/(byte) render_screen_render#41 render_current::@6/(byte) render_screen_render#42 ) (byte) render_current::i#7 ← phi( render_current::@10/(byte) render_current::i#9 render_current::@4/(byte) render_current::i#2 render_current::@6/(byte) render_current::i#10 ) (byte*) current_piece_gfx#23 ← phi( render_current::@10/(byte*) current_piece_gfx#37 render_current::@4/(byte*) current_piece_gfx#11 render_current::@6/(byte*) current_piece_gfx#38 ) (byte) render_current::l#3 ← phi( render_current::@10/(byte) render_current::l#6 render_current::@4/(byte) render_current::l#7 render_current::@6/(byte) render_current::l#8 ) @@ -860,11 +963,12 @@ render_current::@5: scope:[render_current] from render_current::@10 render_curr (byte) render_current::xpos#2 ← phi( render_current::@10/(byte) render_current::xpos#4 render_current::@4/(byte) render_current::xpos#5 render_current::@6/(byte) render_current::xpos#6 ) (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 (byte) render_current::c#1 ← (byte) render_current::c#2 + rangenext(0,3) - (bool~) render_current::$9 ← (byte) render_current::c#1 != rangelast(0,3) - if((bool~) render_current::$9) goto render_current::@4 + (bool~) render_current::$10 ← (byte) render_current::c#1 != rangelast(0,3) + if((bool~) render_current::$10) goto render_current::@4 to:render_current::@3 render_current::@9: scope:[render_current] from render_current::@4 - (byte) current_xpos#89 ← phi( render_current::@4/(byte) current_xpos#81 ) + (byte) current_xpos#90 ← phi( render_current::@4/(byte) current_xpos#81 ) + (byte) render_screen_render#46 ← phi( render_current::@4/(byte) render_screen_render#41 ) (byte) render_current::i#11 ← phi( render_current::@4/(byte) render_current::i#2 ) (byte*) current_piece_gfx#54 ← phi( render_current::@4/(byte*) current_piece_gfx#11 ) (byte) render_current::l#10 ← phi( render_current::@4/(byte) render_current::l#7 ) @@ -873,14 +977,15 @@ render_current::@9: scope:[render_current] from render_current::@4 (byte*) render_current::screen_line#2 ← phi( render_current::@4/(byte*) render_current::screen_line#3 ) (byte) current_piece_char#17 ← phi( render_current::@4/(byte) current_piece_char#26 ) (byte) render_current::xpos#3 ← phi( render_current::@4/(byte) render_current::xpos#5 ) - (bool~) render_current::$7 ← (byte) render_current::xpos#3 < (byte) PLAYFIELD_COLS#0 - (bool~) render_current::$8 ← ! (bool~) render_current::$7 - if((bool~) render_current::$8) goto render_current::@6 + (bool~) render_current::$8 ← (byte) render_current::xpos#3 < (byte) PLAYFIELD_COLS#0 + (bool~) render_current::$9 ← ! (bool~) render_current::$8 + if((bool~) render_current::$9) goto render_current::@6 to:render_current::@10 render_current::@6: scope:[render_current] from render_current::@9 (byte*) render_current::screen_line#5 ← phi( render_current::@9/(byte*) render_current::screen_line#2 ) (byte) current_piece_char#52 ← phi( render_current::@9/(byte) current_piece_char#17 ) - (byte) current_xpos#82 ← phi( render_current::@9/(byte) current_xpos#89 ) + (byte) current_xpos#82 ← phi( render_current::@9/(byte) current_xpos#90 ) + (byte) render_screen_render#42 ← phi( render_current::@9/(byte) render_screen_render#46 ) (byte) render_current::i#10 ← phi( render_current::@9/(byte) render_current::i#11 ) (byte*) current_piece_gfx#38 ← phi( render_current::@9/(byte*) current_piece_gfx#54 ) (byte) render_current::l#8 ← phi( render_current::@9/(byte) render_current::l#10 ) @@ -889,7 +994,8 @@ render_current::@6: scope:[render_current] from render_current::@9 (byte) render_current::xpos#6 ← phi( render_current::@9/(byte) render_current::xpos#3 ) to:render_current::@5 render_current::@10: scope:[render_current] from render_current::@9 - (byte) current_xpos#80 ← phi( render_current::@9/(byte) current_xpos#89 ) + (byte) current_xpos#80 ← phi( render_current::@9/(byte) current_xpos#90 ) + (byte) render_screen_render#40 ← phi( render_current::@9/(byte) render_screen_render#46 ) (byte) render_current::i#9 ← phi( render_current::@9/(byte) render_current::i#11 ) (byte*) current_piece_gfx#37 ← phi( render_current::@9/(byte*) current_piece_gfx#54 ) (byte) render_current::l#6 ← phi( render_current::@9/(byte) render_current::l#10 ) @@ -903,13 +1009,15 @@ render_current::@10: scope:[render_current] from render_current::@9 render_current::@return: scope:[render_current] from render_current::@3 return to:@return -@18: scope:[] from @14 +@20: scope:[] from @14 (byte) keyboard_modifiers#54 ← phi( @14/(byte) keyboard_modifiers#56 ) (byte) keyboard_events_size#72 ← phi( @14/(byte) keyboard_events_size#75 ) (byte) current_piece_char#79 ← phi( @14/(byte) current_piece_char#80 ) (byte) current_ypos#75 ← phi( @14/(byte) current_ypos#76 ) (byte) current_xpos#101 ← phi( @14/(byte) current_xpos#102 ) (byte*) current_piece_gfx#91 ← phi( @14/(byte*) current_piece_gfx#92 ) + (byte) render_screen_render#54 ← phi( @14/(byte) render_screen_render#56 ) + (byte) render_screen_show#45 ← phi( @14/(byte) render_screen_show#47 ) kickasm(location (byte*) PLAYFIELD_SPRITES#0) {{ .var sprites = LoadPicture("nes-playfield.png", List().add($010101, $000000)) .for(var sy=0;sy<10;sy++) { .for(var sx=0;sx<3;sx++) { @@ -922,8 +1030,8 @@ render_current::@return: scope:[render_current] from render_current::@3 } } }} - to:@19 -sprites_init: scope:[sprites_init] from main::@22 + to:@21 +sprites_init: scope:[sprites_init] from main::@16 *((byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 *((byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 *((byte*) SPRITES_EXPAND_Y#0) ← *((byte*) SPRITES_MC#0) @@ -949,28 +1057,32 @@ sprites_init::@1: scope:[sprites_init] from sprites_init sprites_init::@1 sprites_init::@return: scope:[sprites_init] from sprites_init::@1 return to:@return -@19: scope:[] from @18 - (byte) keyboard_modifiers#52 ← phi( @18/(byte) keyboard_modifiers#54 ) - (byte) keyboard_events_size#68 ← phi( @18/(byte) keyboard_events_size#72 ) - (byte) current_piece_char#78 ← phi( @18/(byte) current_piece_char#79 ) - (byte) current_ypos#74 ← phi( @18/(byte) current_ypos#75 ) - (byte) current_xpos#100 ← phi( @18/(byte) current_xpos#101 ) - (byte*) current_piece_gfx#90 ← phi( @18/(byte*) current_piece_gfx#91 ) +@21: scope:[] from @20 + (byte) keyboard_modifiers#52 ← phi( @20/(byte) keyboard_modifiers#54 ) + (byte) keyboard_events_size#68 ← phi( @20/(byte) keyboard_events_size#72 ) + (byte) current_piece_char#78 ← phi( @20/(byte) current_piece_char#79 ) + (byte) current_ypos#74 ← phi( @20/(byte) current_ypos#75 ) + (byte) current_xpos#100 ← phi( @20/(byte) current_xpos#101 ) + (byte*) current_piece_gfx#90 ← phi( @20/(byte*) current_piece_gfx#91 ) + (byte) render_screen_render#52 ← phi( @20/(byte) render_screen_render#54 ) + (byte) render_screen_show#42 ← phi( @20/(byte) render_screen_show#45 ) (byte) IRQ_RASTER_FIRST#0 ← (byte/signed byte/word/signed word/dword/signed dword) 49 (byte) irq_raster_next#0 ← (byte) IRQ_RASTER_FIRST#0 (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 (byte*) toSpritePtr1_sprite#0 ← (byte*) PLAYFIELD_SPRITES#0 to:toSpritePtr1 -toSpritePtr1: scope:[] from @19 - (byte) irq_raster_next#20 ← phi( @19/(byte) irq_raster_next#0 ) - (byte) keyboard_modifiers#49 ← phi( @19/(byte) keyboard_modifiers#52 ) - (byte) keyboard_events_size#65 ← phi( @19/(byte) keyboard_events_size#68 ) - (byte) current_piece_char#72 ← phi( @19/(byte) current_piece_char#78 ) - (byte) current_ypos#70 ← phi( @19/(byte) current_ypos#74 ) - (byte) current_xpos#96 ← phi( @19/(byte) current_xpos#100 ) - (byte*) current_piece_gfx#84 ← phi( @19/(byte*) current_piece_gfx#90 ) - (byte) irq_sprite_ypos#20 ← phi( @19/(byte) irq_sprite_ypos#0 ) - (byte*) toSpritePtr1_sprite#1 ← phi( @19/(byte*) toSpritePtr1_sprite#0 ) +toSpritePtr1: scope:[] from @21 + (byte) irq_raster_next#20 ← phi( @21/(byte) irq_raster_next#0 ) + (byte) keyboard_modifiers#48 ← phi( @21/(byte) keyboard_modifiers#52 ) + (byte) keyboard_events_size#64 ← phi( @21/(byte) keyboard_events_size#68 ) + (byte) current_piece_char#71 ← phi( @21/(byte) current_piece_char#78 ) + (byte) current_ypos#70 ← phi( @21/(byte) current_ypos#74 ) + (byte) current_xpos#96 ← phi( @21/(byte) current_xpos#100 ) + (byte*) current_piece_gfx#84 ← phi( @21/(byte*) current_piece_gfx#90 ) + (byte) render_screen_render#50 ← phi( @21/(byte) render_screen_render#52 ) + (byte) render_screen_show#39 ← phi( @21/(byte) render_screen_show#42 ) + (byte) irq_sprite_ypos#20 ← phi( @21/(byte) irq_sprite_ypos#0 ) + (byte*) toSpritePtr1_sprite#1 ← phi( @21/(byte*) toSpritePtr1_sprite#0 ) (word) toSpritePtr1_$0#0 ← ((word)) (byte*) toSpritePtr1_sprite#1 (word) toSpritePtr1_$1#0 ← (word) toSpritePtr1_$0#0 >> (byte/signed byte/word/signed word/dword/signed dword) 6 (byte) toSpritePtr1_$2#0 ← ((byte)) (word) toSpritePtr1_$1#0 @@ -978,31 +1090,35 @@ toSpritePtr1: scope:[] from @19 to:toSpritePtr1_@return toSpritePtr1_@return: scope:[] from toSpritePtr1 (byte) irq_raster_next#19 ← phi( toSpritePtr1/(byte) irq_raster_next#20 ) - (byte) keyboard_modifiers#45 ← phi( toSpritePtr1/(byte) keyboard_modifiers#49 ) - (byte) keyboard_events_size#57 ← phi( toSpritePtr1/(byte) keyboard_events_size#65 ) - (byte) current_piece_char#64 ← phi( toSpritePtr1/(byte) current_piece_char#72 ) - (byte) current_ypos#64 ← phi( toSpritePtr1/(byte) current_ypos#70 ) - (byte) current_xpos#90 ← phi( toSpritePtr1/(byte) current_xpos#96 ) - (byte*) current_piece_gfx#77 ← phi( toSpritePtr1/(byte*) current_piece_gfx#84 ) + (byte) keyboard_modifiers#44 ← phi( toSpritePtr1/(byte) keyboard_modifiers#48 ) + (byte) keyboard_events_size#56 ← phi( toSpritePtr1/(byte) keyboard_events_size#64 ) + (byte) current_piece_char#64 ← phi( toSpritePtr1/(byte) current_piece_char#71 ) + (byte) current_ypos#65 ← phi( toSpritePtr1/(byte) current_ypos#70 ) + (byte) current_xpos#91 ← phi( toSpritePtr1/(byte) current_xpos#96 ) + (byte*) current_piece_gfx#78 ← phi( toSpritePtr1/(byte*) current_piece_gfx#84 ) + (byte) render_screen_render#47 ← phi( toSpritePtr1/(byte) render_screen_render#50 ) + (byte) render_screen_show#36 ← phi( toSpritePtr1/(byte) render_screen_show#39 ) (byte) irq_sprite_ypos#18 ← phi( toSpritePtr1/(byte) irq_sprite_ypos#20 ) (byte) toSpritePtr1_return#2 ← phi( toSpritePtr1/(byte) toSpritePtr1_return#0 ) (byte) toSpritePtr1_return#1 ← (byte) toSpritePtr1_return#2 - to:@31 -@31: scope:[] from toSpritePtr1_@return + to:@33 +@33: scope:[] from toSpritePtr1_@return (byte) irq_raster_next#18 ← phi( toSpritePtr1_@return/(byte) irq_raster_next#19 ) - (byte) keyboard_modifiers#39 ← phi( toSpritePtr1_@return/(byte) keyboard_modifiers#45 ) - (byte) keyboard_events_size#48 ← phi( toSpritePtr1_@return/(byte) keyboard_events_size#57 ) + (byte) keyboard_modifiers#38 ← phi( toSpritePtr1_@return/(byte) keyboard_modifiers#44 ) + (byte) keyboard_events_size#47 ← phi( toSpritePtr1_@return/(byte) keyboard_events_size#56 ) (byte) current_piece_char#53 ← phi( toSpritePtr1_@return/(byte) current_piece_char#64 ) - (byte) current_ypos#59 ← phi( toSpritePtr1_@return/(byte) current_ypos#64 ) - (byte) current_xpos#83 ← phi( toSpritePtr1_@return/(byte) current_xpos#90 ) - (byte*) current_piece_gfx#68 ← phi( toSpritePtr1_@return/(byte*) current_piece_gfx#77 ) + (byte) current_ypos#59 ← phi( toSpritePtr1_@return/(byte) current_ypos#65 ) + (byte) current_xpos#83 ← phi( toSpritePtr1_@return/(byte) current_xpos#91 ) + (byte*) current_piece_gfx#68 ← phi( toSpritePtr1_@return/(byte*) current_piece_gfx#78 ) + (byte) render_screen_render#43 ← phi( toSpritePtr1_@return/(byte) render_screen_render#47 ) + (byte) render_screen_show#33 ← phi( toSpritePtr1_@return/(byte) render_screen_show#36 ) (byte) irq_sprite_ypos#17 ← phi( toSpritePtr1_@return/(byte) irq_sprite_ypos#18 ) (byte) toSpritePtr1_return#3 ← phi( toSpritePtr1_@return/(byte) toSpritePtr1_return#1 ) - (byte~) $3 ← (byte) toSpritePtr1_return#3 - (byte) irq_sprite_ptr#0 ← (byte~) $3 + (byte~) $4 ← (byte) toSpritePtr1_return#3 + (byte) irq_sprite_ptr#0 ← (byte~) $4 (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - to:@21 -sprites_irq_init: scope:[sprites_irq_init] from main::@23 + to:@23 +sprites_irq_init: scope:[sprites_irq_init] from main::@17 asm { sei } *((byte*) IRQ_STATUS#0) ← (byte) IRQ_RASTER#0 asm { ldaCIA1_INTERRUPT } @@ -1020,10 +1136,10 @@ sprites_irq_init::@return: scope:[sprites_irq_init] from sprites_irq_init return to:@return irq: scope:[irq] from - (byte) irq_raster_next#13 ← phi( @30/(byte) irq_raster_next#15 ) - (byte) irq_cnt#8 ← phi( @30/(byte) irq_cnt#11 ) - (byte) irq_sprite_ptr#9 ← phi( @30/(byte) irq_sprite_ptr#12 ) - (byte) irq_sprite_ypos#4 ← phi( @30/(byte) irq_sprite_ypos#8 ) + (byte) irq_raster_next#13 ← phi( @32/(byte) irq_raster_next#15 ) + (byte) irq_cnt#8 ← phi( @32/(byte) irq_cnt#11 ) + (byte) irq_sprite_ptr#9 ← phi( @32/(byte) irq_sprite_ptr#12 ) + (byte) irq_sprite_ypos#4 ← phi( @32/(byte) irq_sprite_ypos#8 ) *((byte*) BORDERCOL#0) ← (byte) DARK_GREY#0 (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#4 *((byte*) SPRITES_YPOS#0 + (byte/signed byte/word/signed word/dword/signed dword) 0) ← (byte) irq::ypos#0 @@ -1045,12 +1161,16 @@ irq::@5: scope:[irq] from irq::@1 (byte) irq_cnt#4 ← phi( irq::@1/(byte) irq_cnt#6 ) (byte) irq_sprite_ptr#4 ← phi( irq::@1/(byte) irq_sprite_ptr#7 ) (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#4 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 0) ← (byte) irq::ptr#0 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 0) ← (byte) irq::ptr#0 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 0) ← (byte) irq::ptr#0 (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 - *((byte*) PLAYFIELD_SPRITE_PTRS#0 + (byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + *((byte*) PLAYFIELD_SPRITE_PTRS_1#0 + (byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + *((byte*) PLAYFIELD_SPRITE_PTRS_2#0 + (byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 (byte) irq_cnt#1 ← ++ (byte) irq_cnt#4 (bool~) irq::$1 ← (byte) irq_cnt#1 == (byte/signed byte/word/signed word/dword/signed dword) 10 if((bool~) irq::$1) goto irq::@2 @@ -1135,67 +1255,69 @@ irq::@return: scope:[irq] from irq::@4 (byte) irq_sprite_ptr#3 ← (byte) irq_sprite_ptr#6 return to:@return -@21: scope:[] from @31 - (byte) irq_raster_next#17 ← phi( @31/(byte) irq_raster_next#18 ) - (byte) irq_cnt#17 ← phi( @31/(byte) irq_cnt#0 ) - (byte) irq_sprite_ptr#14 ← phi( @31/(byte) irq_sprite_ptr#0 ) - (byte) keyboard_modifiers#33 ← phi( @31/(byte) keyboard_modifiers#39 ) - (byte) keyboard_events_size#39 ← phi( @31/(byte) keyboard_events_size#48 ) - (byte) current_piece_char#43 ← phi( @31/(byte) current_piece_char#53 ) - (byte) current_ypos#54 ← phi( @31/(byte) current_ypos#59 ) - (byte) current_xpos#73 ← phi( @31/(byte) current_xpos#83 ) - (byte*) current_piece_gfx#61 ← phi( @31/(byte*) current_piece_gfx#68 ) - (byte) irq_sprite_ypos#15 ← phi( @31/(byte) irq_sprite_ypos#17 ) - (byte/signed byte/word/signed word/dword/signed dword~) $4 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte/signed word/word/dword/signed dword/signed byte~) $5 ← (byte/signed byte/word/signed word/dword/signed dword~) $4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte[$5]) PIECE_T#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } - (byte/signed byte/word/signed word/dword/signed dword~) $6 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte/signed word/word/dword/signed dword/signed byte~) $7 ← (byte/signed byte/word/signed word/dword/signed dword~) $6 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte[$7]) PIECE_S#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } - (byte/signed byte/word/signed word/dword/signed dword~) $8 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte/signed word/word/dword/signed dword/signed byte~) $9 ← (byte/signed byte/word/signed word/dword/signed dword~) $8 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte[$9]) PIECE_Z#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } - (byte/signed byte/word/signed word/dword/signed dword~) $10 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte/signed word/word/dword/signed dword/signed byte~) $11 ← (byte/signed byte/word/signed word/dword/signed dword~) $10 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte[$11]) PIECE_L#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } - (byte/signed byte/word/signed word/dword/signed dword~) $12 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte/signed word/word/dword/signed dword/signed byte~) $13 ← (byte/signed byte/word/signed word/dword/signed dword~) $12 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte[$13]) PIECE_J#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } - (byte/signed byte/word/signed word/dword/signed dword~) $14 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte/signed word/word/dword/signed dword/signed byte~) $15 ← (byte/signed byte/word/signed word/dword/signed dword~) $14 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte[$15]) PIECE_O#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } - (byte/signed byte/word/signed word/dword/signed dword~) $16 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte/signed word/word/dword/signed dword/signed byte~) $17 ← (byte/signed byte/word/signed word/dword/signed dword~) $16 * (byte/signed byte/word/signed word/dword/signed dword) 4 - (byte[$17]) PIECE_I#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } - (word~) $18 ← ((word)) (byte[$5]) PIECE_T#0 - (word~) $19 ← ((word)) (byte[$7]) PIECE_S#0 - (word~) $20 ← ((word)) (byte[$9]) PIECE_Z#0 - (word~) $21 ← ((word)) (byte[$13]) PIECE_J#0 - (word~) $22 ← ((word)) (byte[$15]) PIECE_O#0 - (word~) $23 ← ((word)) (byte[$17]) PIECE_I#0 - (word~) $24 ← ((word)) (byte[$11]) PIECE_L#0 - (word[]) PIECES#0 ← { (word~) $18, (word~) $19, (word~) $20, (word~) $21, (word~) $22, (word~) $23, (word~) $24 } +@23: scope:[] from @33 + (byte) irq_raster_next#17 ← phi( @33/(byte) irq_raster_next#18 ) + (byte) irq_cnt#17 ← phi( @33/(byte) irq_cnt#0 ) + (byte) irq_sprite_ptr#14 ← phi( @33/(byte) irq_sprite_ptr#0 ) + (byte) keyboard_modifiers#33 ← phi( @33/(byte) keyboard_modifiers#38 ) + (byte) keyboard_events_size#39 ← phi( @33/(byte) keyboard_events_size#47 ) + (byte) current_piece_char#43 ← phi( @33/(byte) current_piece_char#53 ) + (byte) current_ypos#54 ← phi( @33/(byte) current_ypos#59 ) + (byte) current_xpos#73 ← phi( @33/(byte) current_xpos#83 ) + (byte*) current_piece_gfx#61 ← phi( @33/(byte*) current_piece_gfx#68 ) + (byte) render_screen_render#37 ← phi( @33/(byte) render_screen_render#43 ) + (byte) render_screen_show#29 ← phi( @33/(byte) render_screen_show#33 ) + (byte) irq_sprite_ypos#15 ← phi( @33/(byte) irq_sprite_ypos#17 ) + (byte/signed byte/word/signed word/dword/signed dword~) $5 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte/signed word/word/dword/signed dword/signed byte~) $6 ← (byte/signed byte/word/signed word/dword/signed dword~) $5 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte[$6]) PIECE_T#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } + (byte/signed byte/word/signed word/dword/signed dword~) $7 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte/signed word/word/dword/signed dword/signed byte~) $8 ← (byte/signed byte/word/signed word/dword/signed dword~) $7 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte[$8]) PIECE_S#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } + (byte/signed byte/word/signed word/dword/signed dword~) $9 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte/signed word/word/dword/signed dword/signed byte~) $10 ← (byte/signed byte/word/signed word/dword/signed dword~) $9 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte[$10]) PIECE_Z#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } + (byte/signed byte/word/signed word/dword/signed dword~) $11 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte/signed word/word/dword/signed dword/signed byte~) $12 ← (byte/signed byte/word/signed word/dword/signed dword~) $11 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte[$12]) PIECE_L#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } + (byte/signed byte/word/signed word/dword/signed dword~) $13 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte/signed word/word/dword/signed dword/signed byte~) $14 ← (byte/signed byte/word/signed word/dword/signed dword~) $13 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte[$14]) PIECE_J#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } + (byte/signed byte/word/signed word/dword/signed dword~) $15 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte/signed word/word/dword/signed dword/signed byte~) $16 ← (byte/signed byte/word/signed word/dword/signed dword~) $15 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte[$16]) PIECE_O#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } + (byte/signed byte/word/signed word/dword/signed dword~) $17 ← (byte/signed byte/word/signed word/dword/signed dword) 4 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte/signed word/word/dword/signed dword/signed byte~) $18 ← (byte/signed byte/word/signed word/dword/signed dword~) $17 * (byte/signed byte/word/signed word/dword/signed dword) 4 + (byte[$18]) PIECE_I#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 0 } + (word~) $19 ← ((word)) (byte[$6]) PIECE_T#0 + (word~) $20 ← ((word)) (byte[$8]) PIECE_S#0 + (word~) $21 ← ((word)) (byte[$10]) PIECE_Z#0 + (word~) $22 ← ((word)) (byte[$14]) PIECE_J#0 + (word~) $23 ← ((word)) (byte[$16]) PIECE_O#0 + (word~) $24 ← ((word)) (byte[$18]) PIECE_I#0 + (word~) $25 ← ((word)) (byte[$12]) PIECE_L#0 + (word[]) PIECES#0 ← { (word~) $19, (word~) $20, (word~) $21, (word~) $22, (word~) $23, (word~) $24, (word~) $25 } (byte[]) PIECES_CHARS#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 88, (byte/signed byte/word/signed word/dword/signed dword) 89, (byte/word/signed word/dword/signed dword) 153, (byte/signed byte/word/signed word/dword/signed dword) 89, (byte/signed byte/word/signed word/dword/signed dword) 88, (byte/signed byte/word/signed word/dword/signed dword) 88, (byte/word/signed word/dword/signed dword) 153 } (byte[]) PIECES_START_X#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 4, (byte/signed byte/word/signed word/dword/signed dword) 4, (byte/signed byte/word/signed word/dword/signed dword) 4, (byte/signed byte/word/signed word/dword/signed dword) 4, (byte/signed byte/word/signed word/dword/signed dword) 4, (byte/signed byte/word/signed word/dword/signed dword) 3, (byte/signed byte/word/signed word/dword/signed dword) 4 } (byte[]) PIECES_START_Y#0 ← { (byte/signed byte/word/signed word/dword/signed dword) 2, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 2, (byte/signed byte/word/signed word/dword/signed dword) 0, (byte/signed byte/word/signed word/dword/signed dword) 1 } (byte*[PLAYFIELD_LINES#0]) playfield_lines#0 ← { fill( PLAYFIELD_LINES#0, 0) } - (byte/signed word/word/dword/signed dword~) $25 ← (byte) PLAYFIELD_LINES#0 + (byte/signed byte/word/signed word/dword/signed dword) 1 - (byte[$25]) playfield_lines_idx#0 ← { fill( $25, 0) } + (byte/signed word/word/dword/signed dword~) $26 ← (byte) PLAYFIELD_LINES#0 + (byte/signed byte/word/signed word/dword/signed dword) 1 + (byte[$26]) playfield_lines_idx#0 ← { fill( $26, 0) } (byte*) current_piece#0 ← ((byte*)) (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) current_orientation#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) current_movedown_slow#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 (byte) current_movedown_fast#0 ← (byte/signed byte/word/signed word/dword/signed dword) 5 (byte) current_movedown_counter#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - to:@24 -play_move_down: scope:[play_move_down] from main::@30 - (byte) current_piece_char#73 ← phi( main::@30/(byte) current_piece_char#23 ) - (byte*) current_piece_gfx#85 ← phi( main::@30/(byte*) current_piece_gfx#32 ) - (byte*) current_piece#66 ← phi( main::@30/(byte*) current_piece#27 ) - (byte) current_orientation#66 ← phi( main::@30/(byte) current_orientation#37 ) - (byte) current_xpos#91 ← phi( main::@30/(byte) current_xpos#44 ) - (byte) current_ypos#65 ← phi( main::@30/(byte) current_ypos#36 ) - (byte) play_move_down::key_event#1 ← phi( main::@30/(byte) play_move_down::key_event#0 ) - (byte) current_movedown_counter#7 ← phi( main::@30/(byte) current_movedown_counter#14 ) + to:@26 +play_move_down: scope:[play_move_down] from main::@25 + (byte) current_piece_char#72 ← phi( main::@25/(byte) current_piece_char#23 ) + (byte*) current_piece_gfx#85 ← phi( main::@25/(byte*) current_piece_gfx#32 ) + (byte*) current_piece#65 ← phi( main::@25/(byte*) current_piece#27 ) + (byte) current_orientation#66 ← phi( main::@25/(byte) current_orientation#37 ) + (byte) current_xpos#92 ← phi( main::@25/(byte) current_xpos#44 ) + (byte) current_ypos#66 ← phi( main::@25/(byte) current_ypos#36 ) + (byte) play_move_down::key_event#1 ← phi( main::@25/(byte) play_move_down::key_event#0 ) + (byte) current_movedown_counter#7 ← phi( main::@25/(byte) current_movedown_counter#14 ) (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#7 (byte) play_move_down::movedown#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (bool~) play_move_down::$0 ← (byte) play_move_down::key_event#1 == (byte) KEY_SPACE#0 @@ -1203,12 +1325,12 @@ play_move_down: scope:[play_move_down] from main::@30 if((bool~) play_move_down::$1) goto play_move_down::@1 to:play_move_down::@8 play_move_down::@1: scope:[play_move_down] from play_move_down play_move_down::@8 - (byte) current_piece_char#65 ← phi( play_move_down/(byte) current_piece_char#73 play_move_down::@8/(byte) current_piece_char#74 ) - (byte*) current_piece_gfx#78 ← phi( play_move_down/(byte*) current_piece_gfx#85 play_move_down::@8/(byte*) current_piece_gfx#86 ) - (byte*) current_piece#60 ← phi( play_move_down/(byte*) current_piece#66 play_move_down::@8/(byte*) current_piece#67 ) + (byte) current_piece_char#65 ← phi( play_move_down/(byte) current_piece_char#72 play_move_down::@8/(byte) current_piece_char#73 ) + (byte*) current_piece_gfx#79 ← phi( play_move_down/(byte*) current_piece_gfx#85 play_move_down::@8/(byte*) current_piece_gfx#86 ) + (byte*) current_piece#60 ← phi( play_move_down/(byte*) current_piece#65 play_move_down::@8/(byte*) current_piece#66 ) (byte) current_orientation#61 ← phi( play_move_down/(byte) current_orientation#66 play_move_down::@8/(byte) current_orientation#67 ) - (byte) current_xpos#84 ← phi( play_move_down/(byte) current_xpos#91 play_move_down::@8/(byte) current_xpos#92 ) - (byte) current_ypos#60 ← phi( play_move_down/(byte) current_ypos#65 play_move_down::@8/(byte) current_ypos#66 ) + (byte) current_xpos#84 ← phi( play_move_down/(byte) current_xpos#92 play_move_down::@8/(byte) current_xpos#93 ) + (byte) current_ypos#60 ← phi( play_move_down/(byte) current_ypos#66 play_move_down::@8/(byte) current_ypos#67 ) (byte) play_move_down::movedown#12 ← phi( play_move_down/(byte) play_move_down::movedown#0 play_move_down::@8/(byte) play_move_down::movedown#1 ) (byte) current_movedown_counter#21 ← phi( play_move_down/(byte) current_movedown_counter#1 play_move_down::@8/(byte) current_movedown_counter#27 ) (byte) keyboard_event_pressed::keycode#4 ← (byte) KEY_SPACE#0 @@ -1217,7 +1339,7 @@ play_move_down::@1: scope:[play_move_down] from play_move_down play_move_down:: to:play_move_down::@17 play_move_down::@17: scope:[play_move_down] from play_move_down::@1 (byte) current_piece_char#55 ← phi( play_move_down::@1/(byte) current_piece_char#65 ) - (byte*) current_piece_gfx#70 ← phi( play_move_down::@1/(byte*) current_piece_gfx#78 ) + (byte*) current_piece_gfx#70 ← phi( play_move_down::@1/(byte*) current_piece_gfx#79 ) (byte*) current_piece#54 ← phi( play_move_down::@1/(byte*) current_piece#60 ) (byte) current_orientation#52 ← phi( play_move_down::@1/(byte) current_orientation#61 ) (byte) current_xpos#70 ← phi( play_move_down::@1/(byte) current_xpos#84 ) @@ -1231,12 +1353,12 @@ play_move_down::@17: scope:[play_move_down] from play_move_down::@1 if((bool~) play_move_down::$4) goto play_move_down::@2 to:play_move_down::@9 play_move_down::@8: scope:[play_move_down] from play_move_down - (byte) current_piece_char#74 ← phi( play_move_down/(byte) current_piece_char#73 ) + (byte) current_piece_char#73 ← phi( play_move_down/(byte) current_piece_char#72 ) (byte*) current_piece_gfx#86 ← phi( play_move_down/(byte*) current_piece_gfx#85 ) - (byte*) current_piece#67 ← phi( play_move_down/(byte*) current_piece#66 ) + (byte*) current_piece#66 ← phi( play_move_down/(byte*) current_piece#65 ) (byte) current_orientation#67 ← phi( play_move_down/(byte) current_orientation#66 ) - (byte) current_xpos#92 ← phi( play_move_down/(byte) current_xpos#91 ) - (byte) current_ypos#66 ← phi( play_move_down/(byte) current_ypos#65 ) + (byte) current_xpos#93 ← phi( play_move_down/(byte) current_xpos#92 ) + (byte) current_ypos#67 ← phi( play_move_down/(byte) current_ypos#66 ) (byte) current_movedown_counter#27 ← phi( play_move_down/(byte) current_movedown_counter#1 ) (byte) play_move_down::movedown#4 ← phi( play_move_down/(byte) play_move_down::movedown#0 ) (byte) play_move_down::movedown#1 ← ++ (byte) play_move_down::movedown#4 @@ -1256,7 +1378,7 @@ play_move_down::@2: scope:[play_move_down] from play_move_down::@10 play_move_d to:play_move_down::@11 play_move_down::@9: scope:[play_move_down] from play_move_down::@17 (byte) current_piece_char#66 ← phi( play_move_down::@17/(byte) current_piece_char#55 ) - (byte*) current_piece_gfx#79 ← phi( play_move_down::@17/(byte*) current_piece_gfx#70 ) + (byte*) current_piece_gfx#80 ← phi( play_move_down::@17/(byte*) current_piece_gfx#70 ) (byte*) current_piece#61 ← phi( play_move_down::@17/(byte*) current_piece#54 ) (byte) current_orientation#62 ← phi( play_move_down::@17/(byte) current_orientation#52 ) (byte) current_xpos#85 ← phi( play_move_down::@17/(byte) current_xpos#70 ) @@ -1269,7 +1391,7 @@ play_move_down::@9: scope:[play_move_down] from play_move_down::@17 to:play_move_down::@10 play_move_down::@3: scope:[play_move_down] from play_move_down::@9 (byte) current_piece_char#56 ← phi( play_move_down::@9/(byte) current_piece_char#66 ) - (byte*) current_piece_gfx#71 ← phi( play_move_down::@9/(byte*) current_piece_gfx#79 ) + (byte*) current_piece_gfx#71 ← phi( play_move_down::@9/(byte*) current_piece_gfx#80 ) (byte*) current_piece#55 ← phi( play_move_down::@9/(byte*) current_piece#61 ) (byte) current_orientation#53 ← phi( play_move_down::@9/(byte) current_orientation#62 ) (byte) current_xpos#71 ← phi( play_move_down::@9/(byte) current_xpos#85 ) @@ -1279,7 +1401,7 @@ play_move_down::@3: scope:[play_move_down] from play_move_down::@9 to:play_move_down::@2 play_move_down::@10: scope:[play_move_down] from play_move_down::@9 (byte) current_piece_char#54 ← phi( play_move_down::@9/(byte) current_piece_char#66 ) - (byte*) current_piece_gfx#69 ← phi( play_move_down::@9/(byte*) current_piece_gfx#79 ) + (byte*) current_piece_gfx#69 ← phi( play_move_down::@9/(byte*) current_piece_gfx#80 ) (byte*) current_piece#53 ← phi( play_move_down::@9/(byte*) current_piece#61 ) (byte) current_orientation#51 ← phi( play_move_down::@9/(byte) current_orientation#62 ) (byte) current_xpos#69 ← phi( play_move_down::@9/(byte) current_xpos#85 ) @@ -1427,12 +1549,12 @@ play_move_down::@return: scope:[play_move_down] from play_move_down::@5 play_mo (byte) current_piece_char#1 ← (byte) current_piece_char#10 return to:@return -play_move_leftright: scope:[play_move_leftright] from main::@31 - (byte*) current_piece#33 ← phi( main::@31/(byte*) current_piece#6 ) - (byte) current_orientation#30 ← phi( main::@31/(byte) current_orientation#8 ) - (byte) current_ypos#30 ← phi( main::@31/(byte) current_ypos#6 ) - (byte) current_xpos#34 ← phi( main::@31/(byte) current_xpos#8 ) - (byte) play_move_leftright::key_event#1 ← phi( main::@31/(byte) play_move_leftright::key_event#0 ) +play_move_leftright: scope:[play_move_leftright] from main::@26 + (byte*) current_piece#33 ← phi( main::@26/(byte*) current_piece#6 ) + (byte) current_orientation#30 ← phi( main::@26/(byte) current_orientation#8 ) + (byte) current_ypos#30 ← phi( main::@26/(byte) current_ypos#6 ) + (byte) current_xpos#34 ← phi( main::@26/(byte) current_xpos#8 ) + (byte) play_move_leftright::key_event#1 ← phi( main::@26/(byte) play_move_leftright::key_event#0 ) (bool~) play_move_leftright::$0 ← (byte) play_move_leftright::key_event#1 == (byte) KEY_COMMA#0 if((bool~) play_move_leftright::$0) goto play_move_leftright::@1 to:play_move_leftright::@6 @@ -1516,13 +1638,13 @@ play_move_leftright::@11: scope:[play_move_leftright] from play_move_leftright: (byte) current_xpos#4 ← -- (byte) current_xpos#20 (byte) play_move_leftright::return#3 ← (byte/signed byte/word/signed word/dword/signed dword) 1 to:play_move_leftright::@return -play_move_rotate: scope:[play_move_rotate] from main::@32 - (byte*) current_piece_gfx#59 ← phi( main::@32/(byte*) current_piece_gfx#33 ) - (byte*) current_piece#46 ← phi( main::@32/(byte*) current_piece#56 ) - (byte) current_ypos#42 ← phi( main::@32/(byte) current_ypos#53 ) - (byte) current_xpos#56 ← phi( main::@32/(byte) current_xpos#9 ) - (byte) current_orientation#32 ← phi( main::@32/(byte) current_orientation#38 ) - (byte) play_move_rotate::key_event#1 ← phi( main::@32/(byte) play_move_rotate::key_event#0 ) +play_move_rotate: scope:[play_move_rotate] from main::@27 + (byte*) current_piece_gfx#59 ← phi( main::@27/(byte*) current_piece_gfx#33 ) + (byte*) current_piece#46 ← phi( main::@27/(byte*) current_piece#56 ) + (byte) current_ypos#42 ← phi( main::@27/(byte) current_ypos#53 ) + (byte) current_xpos#56 ← phi( main::@27/(byte) current_xpos#9 ) + (byte) current_orientation#32 ← phi( main::@27/(byte) current_orientation#38 ) + (byte) play_move_rotate::key_event#1 ← phi( main::@27/(byte) play_move_rotate::key_event#0 ) (byte) play_move_rotate::orientation#0 ← (byte/word/signed word/dword/signed dword) 128 (bool~) play_move_rotate::$0 ← (byte) play_move_rotate::key_event#1 == (byte) KEY_Z#0 if((bool~) play_move_rotate::$0) goto play_move_rotate::@1 @@ -1608,26 +1730,28 @@ play_move_rotate::@11: scope:[play_move_rotate] from play_move_rotate::@14 (byte*) current_piece_gfx#3 ← (byte*~) play_move_rotate::$9 (byte) play_move_rotate::return#3 ← (byte/signed byte/word/signed word/dword/signed dword) 1 to:play_move_rotate::@return -@24: scope:[] from @21 - (byte) irq_raster_next#16 ← phi( @21/(byte) irq_raster_next#17 ) - (byte) irq_cnt#15 ← phi( @21/(byte) irq_cnt#17 ) - (byte) irq_sprite_ptr#13 ← phi( @21/(byte) irq_sprite_ptr#14 ) - (byte) current_movedown_counter#26 ← phi( @21/(byte) current_movedown_counter#0 ) - (byte) keyboard_modifiers#32 ← phi( @21/(byte) keyboard_modifiers#33 ) - (byte) keyboard_events_size#35 ← phi( @21/(byte) keyboard_events_size#39 ) - (byte) current_piece_char#36 ← phi( @21/(byte) current_piece_char#43 ) - (byte) current_ypos#49 ← phi( @21/(byte) current_ypos#54 ) - (byte) current_xpos#64 ← phi( @21/(byte) current_xpos#73 ) - (byte*) current_piece_gfx#51 ← phi( @21/(byte*) current_piece_gfx#61 ) - (byte) current_orientation#50 ← phi( @21/(byte) current_orientation#0 ) - (byte*) current_piece#41 ← phi( @21/(byte*) current_piece#0 ) - (byte) irq_sprite_ypos#13 ← phi( @21/(byte) irq_sprite_ypos#15 ) +@26: scope:[] from @23 + (byte) irq_raster_next#16 ← phi( @23/(byte) irq_raster_next#17 ) + (byte) irq_cnt#15 ← phi( @23/(byte) irq_cnt#17 ) + (byte) irq_sprite_ptr#13 ← phi( @23/(byte) irq_sprite_ptr#14 ) + (byte) current_movedown_counter#26 ← phi( @23/(byte) current_movedown_counter#0 ) + (byte) keyboard_modifiers#32 ← phi( @23/(byte) keyboard_modifiers#33 ) + (byte) keyboard_events_size#35 ← phi( @23/(byte) keyboard_events_size#39 ) + (byte) current_piece_char#36 ← phi( @23/(byte) current_piece_char#43 ) + (byte) current_ypos#49 ← phi( @23/(byte) current_ypos#54 ) + (byte) current_xpos#64 ← phi( @23/(byte) current_xpos#73 ) + (byte*) current_piece_gfx#51 ← phi( @23/(byte*) current_piece_gfx#61 ) + (byte) current_orientation#50 ← phi( @23/(byte) current_orientation#0 ) + (byte*) current_piece#41 ← phi( @23/(byte*) current_piece#0 ) + (byte) render_screen_render#33 ← phi( @23/(byte) render_screen_render#37 ) + (byte) render_screen_show#28 ← phi( @23/(byte) render_screen_show#29 ) + (byte) irq_sprite_ypos#13 ← phi( @23/(byte) irq_sprite_ypos#15 ) (byte) COLLISION_NONE#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) COLLISION_PLAYFIELD#0 ← (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) COLLISION_BOTTOM#0 ← (byte/signed byte/word/signed word/dword/signed dword) 2 (byte) COLLISION_LEFT#0 ← (byte/signed byte/word/signed word/dword/signed dword) 4 (byte) COLLISION_RIGHT#0 ← (byte/signed byte/word/signed word/dword/signed dword) 8 - to:@30 + to:@32 play_collision: scope:[play_collision] from play_move_down::@12 play_move_leftright::@1 play_move_leftright::@7 play_move_rotate::@4 (byte) play_collision::xpos#5 ← phi( play_move_down::@12/(byte) play_collision::xpos#0 play_move_leftright::@1/(byte) play_collision::xpos#1 play_move_leftright::@7/(byte) play_collision::xpos#2 play_move_rotate::@4/(byte) play_collision::xpos#3 ) (byte) play_collision::ypos#4 ← phi( play_move_down::@12/(byte) play_collision::ypos#0 play_move_leftright::@1/(byte) play_collision::ypos#1 play_move_leftright::@7/(byte) play_collision::ypos#2 play_move_rotate::@4/(byte) play_collision::ypos#3 ) @@ -1851,7 +1975,7 @@ play_lock_current::@5: scope:[play_lock_current] from play_lock_current::@3 play_lock_current::@return: scope:[play_lock_current] from play_lock_current::@5 return to:@return -play_spawn_current: scope:[play_spawn_current] from main::@25 play_move_down::@20 +play_spawn_current: scope:[play_spawn_current] from main::@19 play_move_down::@20 (byte) play_spawn_current::piece_idx#0 ← (byte/signed byte/word/signed word/dword/signed dword) 7 to:play_spawn_current::@1 play_spawn_current::@1: scope:[play_spawn_current] from play_spawn_current play_spawn_current::@7 @@ -1919,7 +2043,7 @@ play_remove_lines::@2: scope:[play_remove_lines] from play_remove_lines::@1 pla (byte) play_remove_lines::x#3 ← phi( play_remove_lines::@1/(byte) play_remove_lines::x#0 play_remove_lines::@3/(byte) play_remove_lines::x#1 ) (byte) play_remove_lines::w#8 ← phi( play_remove_lines::@1/(byte) play_remove_lines::w#12 play_remove_lines::@3/(byte) play_remove_lines::w#1 ) (byte) play_remove_lines::r#2 ← phi( play_remove_lines::@1/(byte) play_remove_lines::r#3 play_remove_lines::@3/(byte) play_remove_lines::r#4 ) - (byte) play_remove_lines::c#0 ← *((byte[$2]) playfield#0 + (byte) play_remove_lines::r#2) + (byte) play_remove_lines::c#0 ← *((byte[$3]) playfield#0 + (byte) play_remove_lines::r#2) (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 (bool~) play_remove_lines::$6 ← (byte) play_remove_lines::c#0 == (byte/signed byte/word/signed word/dword/signed dword) 0 (bool~) play_remove_lines::$7 ← ! (bool~) play_remove_lines::$6 @@ -1932,7 +2056,7 @@ play_remove_lines::@3: scope:[play_remove_lines] from play_remove_lines::@2 pla (byte) play_remove_lines::x#2 ← phi( play_remove_lines::@2/(byte) play_remove_lines::x#3 play_remove_lines::@8/(byte) play_remove_lines::x#4 ) (byte) play_remove_lines::w#4 ← phi( play_remove_lines::@2/(byte) play_remove_lines::w#8 play_remove_lines::@8/(byte) play_remove_lines::w#9 ) (byte) play_remove_lines::c#1 ← phi( play_remove_lines::@2/(byte) play_remove_lines::c#0 play_remove_lines::@8/(byte) play_remove_lines::c#2 ) - *((byte[$2]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#1 + *((byte[$3]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#1 (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 (byte) play_remove_lines::x#1 ← (byte) play_remove_lines::x#2 + rangenext(0,play_remove_lines::$5) (bool~) play_remove_lines::$8 ← (byte) play_remove_lines::x#1 != rangelast(0,play_remove_lines::$5) @@ -1977,15 +2101,15 @@ play_remove_lines::@5: scope:[play_remove_lines] from play_remove_lines::@4 pla to:play_remove_lines::@return play_remove_lines::@6: scope:[play_remove_lines] from play_remove_lines::@5 (byte) play_remove_lines::w#7 ← phi( play_remove_lines::@5/(byte) play_remove_lines::w#6 ) - *((byte[$2]) playfield#0 + (byte) play_remove_lines::w#7) ← (byte/signed byte/word/signed word/dword/signed dword) 0 + *((byte[$3]) playfield#0 + (byte) play_remove_lines::w#7) ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#7 to:play_remove_lines::@5 play_remove_lines::@return: scope:[play_remove_lines] from play_remove_lines::@5 return to:@return -play_init: scope:[play_init] from main::@24 +play_init: scope:[play_init] from main::@18 (byte) play_init::idx#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - (byte*) play_init::pli#0 ← (byte[$2]) playfield#0 + (byte*) play_init::pli#0 ← (byte[$3]) playfield#0 (byte/signed word/word/dword/signed dword~) play_init::$0 ← (byte) PLAYFIELD_LINES#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) play_init::j#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:play_init::@1 @@ -1995,7 +2119,7 @@ play_init::@1: scope:[play_init] from play_init play_init::@1 (byte) play_init::j#2 ← phi( play_init/(byte) play_init::j#0 play_init::@1/(byte) play_init::j#1 ) (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 *((byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 - *((byte[$25]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 + *((byte[$26]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (byte) PLAYFIELD_COLS#0 (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (byte) PLAYFIELD_COLS#0 (byte) play_init::j#1 ← (byte) play_init::j#2 + rangenext(0,play_init::$0) @@ -2004,94 +2128,110 @@ play_init::@1: scope:[play_init] from play_init play_init::@1 to:play_init::@2 play_init::@2: scope:[play_init] from play_init::@1 (byte~) play_init::$3 ← (byte) PLAYFIELD_COLS#0 * (byte) PLAYFIELD_LINES#0 - *((byte[$25]) playfield_lines_idx#0 + (byte) PLAYFIELD_LINES#0) ← (byte~) play_init::$3 + *((byte[$26]) playfield_lines_idx#0 + (byte) PLAYFIELD_LINES#0) ← (byte~) play_init::$3 to:play_init::@return play_init::@return: scope:[play_init] from play_init::@2 return to:@return -main: scope:[main] from @30 - (byte) current_movedown_counter#47 ← phi( @30/(byte) current_movedown_counter#20 ) - (byte) keyboard_modifiers#59 ← phi( @30/(byte) keyboard_modifiers#25 ) - (byte) keyboard_events_size#78 ← phi( @30/(byte) keyboard_events_size#28 ) - (byte) current_piece_char#75 ← phi( @30/(byte) current_piece_char#25 ) - (byte) current_ypos#71 ← phi( @30/(byte) current_ypos#38 ) - (byte) current_xpos#97 ← phi( @30/(byte) current_xpos#46 ) - (byte*) current_piece_gfx#87 ← phi( @30/(byte*) current_piece_gfx#35 ) - (byte) current_orientation#72 ← phi( @30/(byte) current_orientation#40 ) - (byte*) current_piece#68 ← phi( @30/(byte*) current_piece#29 ) +main: scope:[main] from @32 + (byte) current_movedown_counter#47 ← phi( @32/(byte) current_movedown_counter#20 ) + (byte) keyboard_modifiers#59 ← phi( @32/(byte) keyboard_modifiers#25 ) + (byte) keyboard_events_size#78 ← phi( @32/(byte) keyboard_events_size#28 ) + (byte) current_piece_char#74 ← phi( @32/(byte) current_piece_char#25 ) + (byte) current_ypos#71 ← phi( @32/(byte) current_ypos#38 ) + (byte) current_xpos#97 ← phi( @32/(byte) current_xpos#46 ) + (byte*) current_piece_gfx#87 ← phi( @32/(byte*) current_piece_gfx#35 ) + (byte) current_orientation#71 ← phi( @32/(byte) current_orientation#40 ) + (byte*) current_piece#67 ← phi( @32/(byte*) current_piece#29 ) + (byte) render_screen_render#29 ← phi( @32/(byte) render_screen_render#23 ) + (byte) render_screen_show#22 ← phi( @32/(byte) render_screen_show#21 ) call sid_rnd_init - to:main::@21 -main::@21: scope:[main] from main + to:main::@15 +main::@15: scope:[main] from main (byte) current_movedown_counter#46 ← phi( main/(byte) current_movedown_counter#47 ) (byte) keyboard_modifiers#57 ← phi( main/(byte) keyboard_modifiers#59 ) (byte) keyboard_events_size#76 ← phi( main/(byte) keyboard_events_size#78 ) - (byte) current_piece_char#67 ← phi( main/(byte) current_piece_char#75 ) - (byte) current_ypos#67 ← phi( main/(byte) current_ypos#71 ) - (byte) current_xpos#93 ← phi( main/(byte) current_xpos#97 ) - (byte*) current_piece_gfx#80 ← phi( main/(byte*) current_piece_gfx#87 ) - (byte) current_orientation#68 ← phi( main/(byte) current_orientation#72 ) - (byte*) current_piece#62 ← phi( main/(byte*) current_piece#68 ) + (byte) current_piece_char#67 ← phi( main/(byte) current_piece_char#74 ) + (byte) current_ypos#68 ← phi( main/(byte) current_ypos#71 ) + (byte) current_xpos#94 ← phi( main/(byte) current_xpos#97 ) + (byte*) current_piece_gfx#81 ← phi( main/(byte*) current_piece_gfx#87 ) + (byte) current_orientation#68 ← phi( main/(byte) current_orientation#71 ) + (byte*) current_piece#62 ← phi( main/(byte*) current_piece#67 ) + (byte) render_screen_render#21 ← phi( main/(byte) render_screen_render#29 ) + (byte) render_screen_show#18 ← phi( main/(byte) render_screen_show#22 ) asm { sei } call render_init - to:main::@22 -main::@22: scope:[main] from main::@21 - (byte) current_movedown_counter#45 ← phi( main::@21/(byte) current_movedown_counter#46 ) - (byte) keyboard_modifiers#55 ← phi( main::@21/(byte) keyboard_modifiers#57 ) - (byte) keyboard_events_size#73 ← phi( main::@21/(byte) keyboard_events_size#76 ) - (byte) current_piece_char#58 ← phi( main::@21/(byte) current_piece_char#67 ) - (byte) current_ypos#62 ← phi( main::@21/(byte) current_ypos#67 ) - (byte) current_xpos#86 ← phi( main::@21/(byte) current_xpos#93 ) - (byte*) current_piece_gfx#75 ← phi( main::@21/(byte*) current_piece_gfx#80 ) - (byte) current_orientation#63 ← phi( main::@21/(byte) current_orientation#68 ) - (byte*) current_piece#57 ← phi( main::@21/(byte*) current_piece#62 ) + to:main::@16 +main::@16: scope:[main] from main::@15 + (byte) current_movedown_counter#45 ← phi( main::@15/(byte) current_movedown_counter#46 ) + (byte) keyboard_modifiers#55 ← phi( main::@15/(byte) keyboard_modifiers#57 ) + (byte) keyboard_events_size#73 ← phi( main::@15/(byte) keyboard_events_size#76 ) + (byte) current_piece_char#58 ← phi( main::@15/(byte) current_piece_char#67 ) + (byte) current_ypos#62 ← phi( main::@15/(byte) current_ypos#68 ) + (byte) current_xpos#86 ← phi( main::@15/(byte) current_xpos#94 ) + (byte*) current_piece_gfx#75 ← phi( main::@15/(byte*) current_piece_gfx#81 ) + (byte) current_orientation#63 ← phi( main::@15/(byte) current_orientation#68 ) + (byte*) current_piece#57 ← phi( main::@15/(byte*) current_piece#62 ) + (byte) render_screen_render#13 ← phi( main::@15/(byte) render_screen_render#1 ) + (byte) render_screen_show#12 ← phi( main::@15/(byte) render_screen_show#1 ) + (byte) render_screen_show#4 ← (byte) render_screen_show#12 + (byte) render_screen_render#4 ← (byte) render_screen_render#13 call sprites_init - to:main::@23 -main::@23: scope:[main] from main::@22 - (byte) current_movedown_counter#44 ← phi( main::@22/(byte) current_movedown_counter#45 ) - (byte) keyboard_modifiers#53 ← phi( main::@22/(byte) keyboard_modifiers#55 ) - (byte) keyboard_events_size#69 ← phi( main::@22/(byte) keyboard_events_size#73 ) - (byte) current_piece_char#46 ← phi( main::@22/(byte) current_piece_char#58 ) - (byte) current_ypos#55 ← phi( main::@22/(byte) current_ypos#62 ) - (byte) current_xpos#76 ← phi( main::@22/(byte) current_xpos#86 ) - (byte*) current_piece_gfx#62 ← phi( main::@22/(byte*) current_piece_gfx#75 ) - (byte) current_orientation#57 ← phi( main::@22/(byte) current_orientation#63 ) - (byte*) current_piece#48 ← phi( main::@22/(byte*) current_piece#57 ) + to:main::@17 +main::@17: scope:[main] from main::@16 + (byte) current_movedown_counter#44 ← phi( main::@16/(byte) current_movedown_counter#45 ) + (byte) keyboard_modifiers#53 ← phi( main::@16/(byte) keyboard_modifiers#55 ) + (byte) keyboard_events_size#69 ← phi( main::@16/(byte) keyboard_events_size#73 ) + (byte) render_screen_show#43 ← phi( main::@16/(byte) render_screen_show#4 ) + (byte) render_screen_render#48 ← phi( main::@16/(byte) render_screen_render#4 ) + (byte) current_piece_char#46 ← phi( main::@16/(byte) current_piece_char#58 ) + (byte) current_ypos#55 ← phi( main::@16/(byte) current_ypos#62 ) + (byte) current_xpos#76 ← phi( main::@16/(byte) current_xpos#86 ) + (byte*) current_piece_gfx#62 ← phi( main::@16/(byte*) current_piece_gfx#75 ) + (byte) current_orientation#57 ← phi( main::@16/(byte) current_orientation#63 ) + (byte*) current_piece#48 ← phi( main::@16/(byte*) current_piece#57 ) call sprites_irq_init - to:main::@24 -main::@24: scope:[main] from main::@23 - (byte) current_movedown_counter#41 ← phi( main::@23/(byte) current_movedown_counter#44 ) - (byte) keyboard_modifiers#50 ← phi( main::@23/(byte) keyboard_modifiers#53 ) - (byte) keyboard_events_size#66 ← phi( main::@23/(byte) keyboard_events_size#69 ) - (byte) current_piece_char#32 ← phi( main::@23/(byte) current_piece_char#46 ) - (byte) current_ypos#44 ← phi( main::@23/(byte) current_ypos#55 ) - (byte) current_xpos#60 ← phi( main::@23/(byte) current_xpos#76 ) - (byte*) current_piece_gfx#47 ← phi( main::@23/(byte*) current_piece_gfx#62 ) - (byte) current_orientation#46 ← phi( main::@23/(byte) current_orientation#57 ) - (byte*) current_piece#37 ← phi( main::@23/(byte*) current_piece#48 ) + to:main::@18 +main::@18: scope:[main] from main::@17 + (byte) current_movedown_counter#40 ← phi( main::@17/(byte) current_movedown_counter#44 ) + (byte) keyboard_modifiers#49 ← phi( main::@17/(byte) keyboard_modifiers#53 ) + (byte) keyboard_events_size#65 ← phi( main::@17/(byte) keyboard_events_size#69 ) + (byte) render_screen_show#40 ← phi( main::@17/(byte) render_screen_show#43 ) + (byte) render_screen_render#44 ← phi( main::@17/(byte) render_screen_render#48 ) + (byte) current_piece_char#32 ← phi( main::@17/(byte) current_piece_char#46 ) + (byte) current_ypos#44 ← phi( main::@17/(byte) current_ypos#55 ) + (byte) current_xpos#60 ← phi( main::@17/(byte) current_xpos#76 ) + (byte*) current_piece_gfx#47 ← phi( main::@17/(byte*) current_piece_gfx#62 ) + (byte) current_orientation#46 ← phi( main::@17/(byte) current_orientation#57 ) + (byte*) current_piece#37 ← phi( main::@17/(byte*) current_piece#48 ) call play_init - to:main::@25 -main::@25: scope:[main] from main::@24 - (byte) current_movedown_counter#37 ← phi( main::@24/(byte) current_movedown_counter#41 ) - (byte) keyboard_modifiers#46 ← phi( main::@24/(byte) keyboard_modifiers#50 ) - (byte) keyboard_events_size#58 ← phi( main::@24/(byte) keyboard_events_size#66 ) - (byte) current_piece_char#22 ← phi( main::@24/(byte) current_piece_char#32 ) - (byte) current_ypos#35 ← phi( main::@24/(byte) current_ypos#44 ) - (byte) current_xpos#43 ← phi( main::@24/(byte) current_xpos#60 ) - (byte*) current_piece_gfx#31 ← phi( main::@24/(byte*) current_piece_gfx#47 ) - (byte) current_orientation#36 ← phi( main::@24/(byte) current_orientation#46 ) - (byte*) current_piece#26 ← phi( main::@24/(byte*) current_piece#37 ) + to:main::@19 +main::@19: scope:[main] from main::@18 + (byte) current_movedown_counter#37 ← phi( main::@18/(byte) current_movedown_counter#40 ) + (byte) keyboard_modifiers#45 ← phi( main::@18/(byte) keyboard_modifiers#49 ) + (byte) keyboard_events_size#57 ← phi( main::@18/(byte) keyboard_events_size#65 ) + (byte) render_screen_show#37 ← phi( main::@18/(byte) render_screen_show#40 ) + (byte) render_screen_render#38 ← phi( main::@18/(byte) render_screen_render#44 ) + (byte) current_piece_char#22 ← phi( main::@18/(byte) current_piece_char#32 ) + (byte) current_ypos#35 ← phi( main::@18/(byte) current_ypos#44 ) + (byte) current_xpos#43 ← phi( main::@18/(byte) current_xpos#60 ) + (byte*) current_piece_gfx#31 ← phi( main::@18/(byte*) current_piece_gfx#47 ) + (byte) current_orientation#36 ← phi( main::@18/(byte) current_orientation#46 ) + (byte*) current_piece#26 ← phi( main::@18/(byte*) current_piece#37 ) call play_spawn_current - to:main::@26 -main::@26: scope:[main] from main::@25 - (byte) current_movedown_counter#33 ← phi( main::@25/(byte) current_movedown_counter#37 ) - (byte) keyboard_modifiers#40 ← phi( main::@25/(byte) keyboard_modifiers#46 ) - (byte) keyboard_events_size#49 ← phi( main::@25/(byte) keyboard_events_size#58 ) - (byte) current_piece_char#13 ← phi( main::@25/(byte) current_piece_char#3 ) - (byte) current_ypos#19 ← phi( main::@25/(byte) current_ypos#4 ) - (byte) current_xpos#24 ← phi( main::@25/(byte) current_xpos#6 ) - (byte*) current_piece_gfx#17 ← phi( main::@25/(byte*) current_piece_gfx#5 ) - (byte) current_orientation#21 ← phi( main::@25/(byte) current_orientation#6 ) - (byte*) current_piece#14 ← phi( main::@25/(byte*) current_piece#4 ) + to:main::@20 +main::@20: scope:[main] from main::@19 + (byte) current_movedown_counter#33 ← phi( main::@19/(byte) current_movedown_counter#37 ) + (byte) keyboard_modifiers#39 ← phi( main::@19/(byte) keyboard_modifiers#45 ) + (byte) keyboard_events_size#48 ← phi( main::@19/(byte) keyboard_events_size#57 ) + (byte) render_screen_show#34 ← phi( main::@19/(byte) render_screen_show#37 ) + (byte) render_screen_render#25 ← phi( main::@19/(byte) render_screen_render#38 ) + (byte) current_piece_char#13 ← phi( main::@19/(byte) current_piece_char#3 ) + (byte) current_ypos#19 ← phi( main::@19/(byte) current_ypos#4 ) + (byte) current_xpos#24 ← phi( main::@19/(byte) current_xpos#6 ) + (byte*) current_piece_gfx#17 ← phi( main::@19/(byte*) current_piece_gfx#5 ) + (byte) current_orientation#21 ← phi( main::@19/(byte) current_orientation#6 ) + (byte*) current_piece#14 ← phi( main::@19/(byte*) current_piece#4 ) (byte*) current_piece#5 ← (byte*) current_piece#14 (byte) current_orientation#7 ← (byte) current_orientation#21 (byte*) current_piece_gfx#6 ← (byte*) current_piece_gfx#17 @@ -2099,162 +2239,173 @@ main::@26: scope:[main] from main::@25 (byte) current_ypos#5 ← (byte) current_ypos#19 (byte) current_piece_char#4 ← (byte) current_piece_char#13 call render_playfield - to:main::@27 -main::@27: scope:[main] from main::@26 - (byte) current_movedown_counter#29 ← phi( main::@26/(byte) current_movedown_counter#33 ) - (byte) keyboard_modifiers#34 ← phi( main::@26/(byte) keyboard_modifiers#40 ) - (byte) keyboard_events_size#40 ← phi( main::@26/(byte) keyboard_events_size#49 ) - (byte) current_piece_char#47 ← phi( main::@26/(byte) current_piece_char#4 ) - (byte*) current_piece_gfx#63 ← phi( main::@26/(byte*) current_piece_gfx#6 ) - (byte) current_orientation#58 ← phi( main::@26/(byte) current_orientation#7 ) - (byte*) current_piece#49 ← phi( main::@26/(byte*) current_piece#5 ) - (byte) current_xpos#65 ← phi( main::@26/(byte) current_xpos#7 ) - (byte) current_ypos#23 ← phi( main::@26/(byte) current_ypos#5 ) + to:main::@21 +main::@21: scope:[main] from main::@20 + (byte) current_movedown_counter#29 ← phi( main::@20/(byte) current_movedown_counter#33 ) + (byte) keyboard_modifiers#34 ← phi( main::@20/(byte) keyboard_modifiers#39 ) + (byte) keyboard_events_size#40 ← phi( main::@20/(byte) keyboard_events_size#48 ) + (byte) current_piece_char#47 ← phi( main::@20/(byte) current_piece_char#4 ) + (byte*) current_piece_gfx#63 ← phi( main::@20/(byte*) current_piece_gfx#6 ) + (byte) current_orientation#58 ← phi( main::@20/(byte) current_orientation#7 ) + (byte*) current_piece#49 ← phi( main::@20/(byte*) current_piece#5 ) + (byte) render_screen_show#30 ← phi( main::@20/(byte) render_screen_show#34 ) + (byte) current_xpos#65 ← phi( main::@20/(byte) current_xpos#7 ) + (byte) render_screen_render#34 ← phi( main::@20/(byte) render_screen_render#25 ) + (byte) current_ypos#23 ← phi( main::@20/(byte) current_ypos#5 ) call render_current - to:main::@28 -main::@28: scope:[main] from main::@27 - (byte) current_movedown_counter#24 ← phi( main::@27/(byte) current_movedown_counter#29 ) - (byte) keyboard_modifiers#30 ← phi( main::@27/(byte) keyboard_modifiers#34 ) - (byte) keyboard_events_size#33 ← phi( main::@27/(byte) keyboard_events_size#40 ) - (byte) current_piece_char#34 ← phi( main::@27/(byte) current_piece_char#47 ) - (byte) current_ypos#46 ← phi( main::@27/(byte) current_ypos#23 ) - (byte) current_xpos#62 ← phi( main::@27/(byte) current_xpos#65 ) - (byte*) current_piece_gfx#49 ← phi( main::@27/(byte*) current_piece_gfx#63 ) - (byte) current_orientation#48 ← phi( main::@27/(byte) current_orientation#58 ) - (byte*) current_piece#39 ← phi( main::@27/(byte*) current_piece#49 ) + to:main::@22 +main::@22: scope:[main] from main::@21 + (byte) current_movedown_counter#23 ← phi( main::@21/(byte) current_movedown_counter#29 ) + (byte) keyboard_modifiers#29 ← phi( main::@21/(byte) keyboard_modifiers#34 ) + (byte) keyboard_events_size#32 ← phi( main::@21/(byte) keyboard_events_size#40 ) + (byte) current_piece_char#33 ← phi( main::@21/(byte) current_piece_char#47 ) + (byte) current_ypos#45 ← phi( main::@21/(byte) current_ypos#23 ) + (byte) current_xpos#61 ← phi( main::@21/(byte) current_xpos#65 ) + (byte*) current_piece_gfx#48 ← phi( main::@21/(byte*) current_piece_gfx#63 ) + (byte) current_orientation#47 ← phi( main::@21/(byte) current_orientation#58 ) + (byte*) current_piece#38 ← phi( main::@21/(byte*) current_piece#49 ) + (byte) render_screen_render#30 ← phi( main::@21/(byte) render_screen_render#34 ) + (byte) render_screen_show#23 ← phi( main::@21/(byte) render_screen_show#30 ) to:main::@1 -main::@1: scope:[main] from main::@10 main::@28 - (byte) current_movedown_counter#19 ← phi( main::@10/(byte) current_movedown_counter#23 main::@28/(byte) current_movedown_counter#24 ) - (byte) keyboard_modifiers#24 ← phi( main::@10/(byte) keyboard_modifiers#29 main::@28/(byte) keyboard_modifiers#30 ) - (byte) keyboard_events_size#27 ← phi( main::@10/(byte) keyboard_events_size#32 main::@28/(byte) keyboard_events_size#33 ) - (byte) current_piece_char#24 ← phi( main::@10/(byte) current_piece_char#33 main::@28/(byte) current_piece_char#34 ) - (byte) current_ypos#37 ← phi( main::@10/(byte) current_ypos#45 main::@28/(byte) current_ypos#46 ) - (byte) current_xpos#45 ← phi( main::@10/(byte) current_xpos#61 main::@28/(byte) current_xpos#62 ) - (byte*) current_piece_gfx#34 ← phi( main::@10/(byte*) current_piece_gfx#48 main::@28/(byte*) current_piece_gfx#49 ) - (byte) current_orientation#39 ← phi( main::@10/(byte) current_orientation#47 main::@28/(byte) current_orientation#48 ) - (byte*) current_piece#28 ← phi( main::@10/(byte*) current_piece#38 main::@28/(byte*) current_piece#39 ) +main::@1: scope:[main] from main::@22 main::@7 + (byte) current_movedown_counter#19 ← phi( main::@22/(byte) current_movedown_counter#23 main::@7/(byte) current_movedown_counter#24 ) + (byte) keyboard_modifiers#24 ← phi( main::@22/(byte) keyboard_modifiers#29 main::@7/(byte) keyboard_modifiers#30 ) + (byte) keyboard_events_size#27 ← phi( main::@22/(byte) keyboard_events_size#32 main::@7/(byte) keyboard_events_size#33 ) + (byte) current_piece_char#24 ← phi( main::@22/(byte) current_piece_char#33 main::@7/(byte) current_piece_char#34 ) + (byte) current_ypos#37 ← phi( main::@22/(byte) current_ypos#45 main::@7/(byte) current_ypos#46 ) + (byte) current_xpos#45 ← phi( main::@22/(byte) current_xpos#61 main::@7/(byte) current_xpos#62 ) + (byte*) current_piece_gfx#34 ← phi( main::@22/(byte*) current_piece_gfx#48 main::@7/(byte*) current_piece_gfx#49 ) + (byte) current_orientation#39 ← phi( main::@22/(byte) current_orientation#47 main::@7/(byte) current_orientation#48 ) + (byte*) current_piece#28 ← phi( main::@22/(byte*) current_piece#38 main::@7/(byte*) current_piece#39 ) + (byte) render_screen_render#22 ← phi( main::@22/(byte) render_screen_render#30 main::@7/(byte) render_screen_render#31 ) + (byte) render_screen_show#20 ← phi( main::@22/(byte) render_screen_show#23 main::@7/(byte) render_screen_show#24 ) if(true) goto main::@2 to:main::@return main::@2: scope:[main] from main::@1 - (byte) current_piece_char#76 ← phi( main::@1/(byte) current_piece_char#24 ) + (byte) render_screen_render#61 ← phi( main::@1/(byte) render_screen_render#22 ) + (byte) current_piece_char#75 ← phi( main::@1/(byte) current_piece_char#24 ) (byte) current_xpos#98 ← phi( main::@1/(byte) current_xpos#45 ) (byte*) current_piece_gfx#88 ← phi( main::@1/(byte*) current_piece_gfx#34 ) - (byte) current_orientation#73 ← phi( main::@1/(byte) current_orientation#39 ) - (byte*) current_piece#69 ← phi( main::@1/(byte*) current_piece#28 ) + (byte) current_orientation#72 ← phi( main::@1/(byte) current_orientation#39 ) + (byte*) current_piece#68 ← phi( main::@1/(byte*) current_piece#28 ) (byte) current_ypos#72 ← phi( main::@1/(byte) current_ypos#37 ) - (byte) current_movedown_counter#42 ← phi( main::@1/(byte) current_movedown_counter#19 ) - (byte) keyboard_modifiers#41 ← phi( main::@1/(byte) keyboard_modifiers#24 ) - (byte) keyboard_events_size#50 ← phi( main::@1/(byte) keyboard_events_size#27 ) + (byte) current_movedown_counter#41 ← phi( main::@1/(byte) current_movedown_counter#19 ) + (byte) keyboard_modifiers#40 ← phi( main::@1/(byte) keyboard_modifiers#24 ) + (byte) keyboard_events_size#49 ← phi( main::@1/(byte) keyboard_events_size#27 ) + (byte) render_screen_show#25 ← phi( main::@1/(byte) render_screen_show#20 ) to:main::@4 main::@4: scope:[main] from main::@2 main::@5 - (byte) current_piece_char#68 ← phi( main::@2/(byte) current_piece_char#76 main::@5/(byte) current_piece_char#77 ) - (byte) current_xpos#94 ← phi( main::@2/(byte) current_xpos#98 main::@5/(byte) current_xpos#99 ) - (byte*) current_piece_gfx#81 ← phi( main::@2/(byte*) current_piece_gfx#88 main::@5/(byte*) current_piece_gfx#89 ) - (byte) current_orientation#69 ← phi( main::@2/(byte) current_orientation#73 main::@5/(byte) current_orientation#74 ) - (byte*) current_piece#63 ← phi( main::@2/(byte*) current_piece#69 main::@5/(byte*) current_piece#70 ) - (byte) current_ypos#68 ← phi( main::@2/(byte) current_ypos#72 main::@5/(byte) current_ypos#73 ) - (byte) current_movedown_counter#38 ← phi( main::@2/(byte) current_movedown_counter#42 main::@5/(byte) current_movedown_counter#43 ) - (byte) keyboard_modifiers#35 ← phi( main::@2/(byte) keyboard_modifiers#41 main::@5/(byte) keyboard_modifiers#42 ) - (byte) keyboard_events_size#41 ← phi( main::@2/(byte) keyboard_events_size#50 main::@5/(byte) keyboard_events_size#51 ) + (byte) render_screen_render#59 ← phi( main::@2/(byte) render_screen_render#61 main::@5/(byte) render_screen_render#62 ) + (byte) current_piece_char#68 ← phi( main::@2/(byte) current_piece_char#75 main::@5/(byte) current_piece_char#76 ) + (byte) current_xpos#95 ← phi( main::@2/(byte) current_xpos#98 main::@5/(byte) current_xpos#99 ) + (byte*) current_piece_gfx#82 ← phi( main::@2/(byte*) current_piece_gfx#88 main::@5/(byte*) current_piece_gfx#89 ) + (byte) current_orientation#69 ← phi( main::@2/(byte) current_orientation#72 main::@5/(byte) current_orientation#73 ) + (byte*) current_piece#63 ← phi( main::@2/(byte*) current_piece#68 main::@5/(byte*) current_piece#69 ) + (byte) current_ypos#69 ← phi( main::@2/(byte) current_ypos#72 main::@5/(byte) current_ypos#73 ) + (byte) current_movedown_counter#38 ← phi( main::@2/(byte) current_movedown_counter#41 main::@5/(byte) current_movedown_counter#42 ) + (byte) keyboard_modifiers#35 ← phi( main::@2/(byte) keyboard_modifiers#40 main::@5/(byte) keyboard_modifiers#41 ) + (byte) keyboard_events_size#41 ← phi( main::@2/(byte) keyboard_events_size#49 main::@5/(byte) keyboard_events_size#50 ) + (byte) render_screen_show#19 ← phi( main::@2/(byte) render_screen_show#25 main::@5/(byte) render_screen_show#26 ) (bool~) main::$8 ← *((byte*) RASTER#0) != (byte/word/signed word/dword/signed dword) 255 if((bool~) main::$8) goto main::@5 - to:main::@7 + to:main::@6 main::@5: scope:[main] from main::@4 - (byte) current_piece_char#77 ← phi( main::@4/(byte) current_piece_char#68 ) - (byte) current_xpos#99 ← phi( main::@4/(byte) current_xpos#94 ) - (byte*) current_piece_gfx#89 ← phi( main::@4/(byte*) current_piece_gfx#81 ) - (byte) current_orientation#74 ← phi( main::@4/(byte) current_orientation#69 ) - (byte*) current_piece#70 ← phi( main::@4/(byte*) current_piece#63 ) - (byte) current_ypos#73 ← phi( main::@4/(byte) current_ypos#68 ) - (byte) current_movedown_counter#43 ← phi( main::@4/(byte) current_movedown_counter#38 ) - (byte) keyboard_modifiers#42 ← phi( main::@4/(byte) keyboard_modifiers#35 ) - (byte) keyboard_events_size#51 ← phi( main::@4/(byte) keyboard_events_size#41 ) + (byte) render_screen_render#62 ← phi( main::@4/(byte) render_screen_render#59 ) + (byte) current_piece_char#76 ← phi( main::@4/(byte) current_piece_char#68 ) + (byte) current_xpos#99 ← phi( main::@4/(byte) current_xpos#95 ) + (byte*) current_piece_gfx#89 ← phi( main::@4/(byte*) current_piece_gfx#82 ) + (byte) current_orientation#73 ← phi( main::@4/(byte) current_orientation#69 ) + (byte*) current_piece#69 ← phi( main::@4/(byte*) current_piece#63 ) + (byte) current_ypos#73 ← phi( main::@4/(byte) current_ypos#69 ) + (byte) current_movedown_counter#42 ← phi( main::@4/(byte) current_movedown_counter#38 ) + (byte) keyboard_modifiers#41 ← phi( main::@4/(byte) keyboard_modifiers#35 ) + (byte) keyboard_events_size#50 ← phi( main::@4/(byte) keyboard_events_size#41 ) + (byte) render_screen_show#26 ← phi( main::@4/(byte) render_screen_show#19 ) to:main::@4 -main::@7: scope:[main] from main::@4 main::@8 - (byte) current_piece_char#59 ← phi( main::@4/(byte) current_piece_char#68 main::@8/(byte) current_piece_char#69 ) - (byte) current_xpos#87 ← phi( main::@4/(byte) current_xpos#94 main::@8/(byte) current_xpos#95 ) - (byte*) current_piece_gfx#76 ← phi( main::@4/(byte*) current_piece_gfx#81 main::@8/(byte*) current_piece_gfx#82 ) - (byte) current_orientation#64 ← phi( main::@4/(byte) current_orientation#69 main::@8/(byte) current_orientation#70 ) - (byte*) current_piece#58 ← phi( main::@4/(byte*) current_piece#63 main::@8/(byte*) current_piece#64 ) - (byte) current_ypos#63 ← phi( main::@4/(byte) current_ypos#68 main::@8/(byte) current_ypos#69 ) - (byte) current_movedown_counter#34 ← phi( main::@4/(byte) current_movedown_counter#38 main::@8/(byte) current_movedown_counter#39 ) - (byte) keyboard_modifiers#31 ← phi( main::@4/(byte) keyboard_modifiers#35 main::@8/(byte) keyboard_modifiers#36 ) - (byte) keyboard_events_size#34 ← phi( main::@4/(byte) keyboard_events_size#41 main::@8/(byte) keyboard_events_size#42 ) - (bool~) main::$9 ← *((byte*) RASTER#0) != (byte/word/signed word/dword/signed dword) 254 - if((bool~) main::$9) goto main::@8 - to:main::@9 -main::@8: scope:[main] from main::@7 - (byte) current_piece_char#69 ← phi( main::@7/(byte) current_piece_char#59 ) - (byte) current_xpos#95 ← phi( main::@7/(byte) current_xpos#87 ) - (byte*) current_piece_gfx#82 ← phi( main::@7/(byte*) current_piece_gfx#76 ) - (byte) current_orientation#70 ← phi( main::@7/(byte) current_orientation#64 ) - (byte*) current_piece#64 ← phi( main::@7/(byte*) current_piece#58 ) - (byte) current_ypos#69 ← phi( main::@7/(byte) current_ypos#63 ) - (byte) current_movedown_counter#39 ← phi( main::@7/(byte) current_movedown_counter#34 ) - (byte) keyboard_modifiers#36 ← phi( main::@7/(byte) keyboard_modifiers#31 ) - (byte) keyboard_events_size#42 ← phi( main::@7/(byte) keyboard_events_size#34 ) - to:main::@7 -main::@9: scope:[main] from main::@7 - (byte) current_piece_char#48 ← phi( main::@7/(byte) current_piece_char#59 ) - (byte) current_xpos#77 ← phi( main::@7/(byte) current_xpos#87 ) - (byte*) current_piece_gfx#64 ← phi( main::@7/(byte*) current_piece_gfx#76 ) - (byte) current_orientation#59 ← phi( main::@7/(byte) current_orientation#64 ) - (byte*) current_piece#50 ← phi( main::@7/(byte*) current_piece#58 ) - (byte) current_ypos#56 ← phi( main::@7/(byte) current_ypos#63 ) - (byte) current_movedown_counter#30 ← phi( main::@7/(byte) current_movedown_counter#34 ) - (byte) keyboard_modifiers#23 ← phi( main::@7/(byte) keyboard_modifiers#31 ) - (byte) keyboard_events_size#26 ← phi( main::@7/(byte) keyboard_events_size#34 ) - *((byte*) BORDERCOL#0) ← ++ *((byte*) BORDERCOL#0) +main::@6: scope:[main] from main::@4 + (byte) render_screen_render#57 ← phi( main::@4/(byte) render_screen_render#59 ) + (byte) current_piece_char#59 ← phi( main::@4/(byte) current_piece_char#68 ) + (byte) current_xpos#87 ← phi( main::@4/(byte) current_xpos#95 ) + (byte*) current_piece_gfx#76 ← phi( main::@4/(byte*) current_piece_gfx#82 ) + (byte) current_orientation#64 ← phi( main::@4/(byte) current_orientation#69 ) + (byte*) current_piece#58 ← phi( main::@4/(byte*) current_piece#63 ) + (byte) current_ypos#63 ← phi( main::@4/(byte) current_ypos#69 ) + (byte) current_movedown_counter#34 ← phi( main::@4/(byte) current_movedown_counter#38 ) + (byte) keyboard_modifiers#31 ← phi( main::@4/(byte) keyboard_modifiers#35 ) + (byte) keyboard_events_size#34 ← phi( main::@4/(byte) keyboard_events_size#41 ) + (byte) render_screen_show#13 ← phi( main::@4/(byte) render_screen_show#19 ) + (byte~) main::$9 ← (byte) render_screen_show#13 >> (byte/signed byte/word/signed word/dword/signed dword) 4 + *((byte*) BORDERCOL#0) ← (byte~) main::$9 + call render_show + to:main::@23 +main::@23: scope:[main] from main::@6 + (byte) render_screen_render#55 ← phi( main::@6/(byte) render_screen_render#57 ) + (byte) render_screen_show#46 ← phi( main::@6/(byte) render_screen_show#13 ) + (byte) current_piece_char#48 ← phi( main::@6/(byte) current_piece_char#59 ) + (byte) current_xpos#77 ← phi( main::@6/(byte) current_xpos#87 ) + (byte*) current_piece_gfx#64 ← phi( main::@6/(byte*) current_piece_gfx#76 ) + (byte) current_orientation#59 ← phi( main::@6/(byte) current_orientation#64 ) + (byte*) current_piece#50 ← phi( main::@6/(byte*) current_piece#58 ) + (byte) current_ypos#56 ← phi( main::@6/(byte) current_ypos#63 ) + (byte) current_movedown_counter#30 ← phi( main::@6/(byte) current_movedown_counter#34 ) + (byte) keyboard_modifiers#23 ← phi( main::@6/(byte) keyboard_modifiers#31 ) + (byte) keyboard_events_size#26 ← phi( main::@6/(byte) keyboard_events_size#34 ) call keyboard_event_scan - to:main::@29 -main::@29: scope:[main] from main::@9 - (byte) current_piece_char#35 ← phi( main::@9/(byte) current_piece_char#48 ) - (byte) current_xpos#63 ← phi( main::@9/(byte) current_xpos#77 ) - (byte*) current_piece_gfx#50 ← phi( main::@9/(byte*) current_piece_gfx#64 ) - (byte) current_orientation#49 ← phi( main::@9/(byte) current_orientation#59 ) - (byte*) current_piece#40 ← phi( main::@9/(byte*) current_piece#50 ) - (byte) current_ypos#47 ← phi( main::@9/(byte) current_ypos#56 ) - (byte) current_movedown_counter#25 ← phi( main::@9/(byte) current_movedown_counter#30 ) - (byte) keyboard_modifiers#15 ← phi( main::@9/(byte) keyboard_modifiers#6 ) - (byte) keyboard_events_size#17 ← phi( main::@9/(byte) keyboard_events_size#3 ) + to:main::@24 +main::@24: scope:[main] from main::@23 + (byte) render_screen_render#53 ← phi( main::@23/(byte) render_screen_render#55 ) + (byte) render_screen_show#44 ← phi( main::@23/(byte) render_screen_show#46 ) + (byte) current_piece_char#35 ← phi( main::@23/(byte) current_piece_char#48 ) + (byte) current_xpos#63 ← phi( main::@23/(byte) current_xpos#77 ) + (byte*) current_piece_gfx#50 ← phi( main::@23/(byte*) current_piece_gfx#64 ) + (byte) current_orientation#49 ← phi( main::@23/(byte) current_orientation#59 ) + (byte*) current_piece#40 ← phi( main::@23/(byte*) current_piece#50 ) + (byte) current_ypos#47 ← phi( main::@23/(byte) current_ypos#56 ) + (byte) current_movedown_counter#25 ← phi( main::@23/(byte) current_movedown_counter#30 ) + (byte) keyboard_modifiers#15 ← phi( main::@23/(byte) keyboard_modifiers#6 ) + (byte) keyboard_events_size#17 ← phi( main::@23/(byte) keyboard_events_size#3 ) (byte) keyboard_events_size#6 ← (byte) keyboard_events_size#17 (byte) keyboard_modifiers#7 ← (byte) keyboard_modifiers#15 call keyboard_event_get (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 - to:main::@30 -main::@30: scope:[main] from main::@29 - (byte) keyboard_modifiers#51 ← phi( main::@29/(byte) keyboard_modifiers#7 ) - (byte) current_piece_char#23 ← phi( main::@29/(byte) current_piece_char#35 ) - (byte) current_xpos#44 ← phi( main::@29/(byte) current_xpos#63 ) - (byte*) current_piece_gfx#32 ← phi( main::@29/(byte*) current_piece_gfx#50 ) - (byte) current_orientation#37 ← phi( main::@29/(byte) current_orientation#49 ) - (byte*) current_piece#27 ← phi( main::@29/(byte*) current_piece#40 ) - (byte) current_ypos#36 ← phi( main::@29/(byte) current_ypos#47 ) - (byte) current_movedown_counter#14 ← phi( main::@29/(byte) current_movedown_counter#25 ) - (byte) keyboard_events_size#18 ← phi( main::@29/(byte) keyboard_events_size#5 ) - (byte) keyboard_event_get::return#5 ← phi( main::@29/(byte) keyboard_event_get::return#3 ) - (byte~) main::$11 ← (byte) keyboard_event_get::return#5 + to:main::@25 +main::@25: scope:[main] from main::@24 + (byte) keyboard_modifiers#50 ← phi( main::@24/(byte) keyboard_modifiers#7 ) + (byte) render_screen_render#51 ← phi( main::@24/(byte) render_screen_render#53 ) + (byte) render_screen_show#41 ← phi( main::@24/(byte) render_screen_show#44 ) + (byte) current_piece_char#23 ← phi( main::@24/(byte) current_piece_char#35 ) + (byte) current_xpos#44 ← phi( main::@24/(byte) current_xpos#63 ) + (byte*) current_piece_gfx#32 ← phi( main::@24/(byte*) current_piece_gfx#50 ) + (byte) current_orientation#37 ← phi( main::@24/(byte) current_orientation#49 ) + (byte*) current_piece#27 ← phi( main::@24/(byte*) current_piece#40 ) + (byte) current_ypos#36 ← phi( main::@24/(byte) current_ypos#47 ) + (byte) current_movedown_counter#14 ← phi( main::@24/(byte) current_movedown_counter#25 ) + (byte) keyboard_events_size#18 ← phi( main::@24/(byte) keyboard_events_size#5 ) + (byte) keyboard_event_get::return#5 ← phi( main::@24/(byte) keyboard_event_get::return#3 ) + (byte~) main::$12 ← (byte) keyboard_event_get::return#5 (byte) keyboard_events_size#7 ← (byte) keyboard_events_size#18 - (byte) main::key_event#0 ← (byte~) main::$11 + (byte) main::key_event#0 ← (byte~) main::$12 (byte) main::render#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 call play_move_down (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 - to:main::@31 -main::@31: scope:[main] from main::@30 - (byte) keyboard_modifiers#47 ← phi( main::@30/(byte) keyboard_modifiers#51 ) - (byte) keyboard_events_size#59 ← phi( main::@30/(byte) keyboard_events_size#7 ) - (byte) main::key_event#1 ← phi( main::@30/(byte) main::key_event#0 ) - (byte) main::render#4 ← phi( main::@30/(byte) main::render#0 ) - (byte) current_piece_char#14 ← phi( main::@30/(byte) current_piece_char#1 ) - (byte) current_xpos#25 ← phi( main::@30/(byte) current_xpos#1 ) - (byte*) current_piece_gfx#18 ← phi( main::@30/(byte*) current_piece_gfx#1 ) - (byte) current_orientation#22 ← phi( main::@30/(byte) current_orientation#2 ) - (byte*) current_piece#15 ← phi( main::@30/(byte*) current_piece#2 ) - (byte) current_ypos#20 ← phi( main::@30/(byte) current_ypos#2 ) - (byte) current_movedown_counter#11 ← phi( main::@30/(byte) current_movedown_counter#3 ) - (byte) play_move_down::return#5 ← phi( main::@30/(byte) play_move_down::return#3 ) - (byte~) main::$12 ← (byte) play_move_down::return#5 + to:main::@26 +main::@26: scope:[main] from main::@25 + (byte) keyboard_modifiers#46 ← phi( main::@25/(byte) keyboard_modifiers#50 ) + (byte) keyboard_events_size#58 ← phi( main::@25/(byte) keyboard_events_size#7 ) + (byte) render_screen_render#49 ← phi( main::@25/(byte) render_screen_render#51 ) + (byte) render_screen_show#38 ← phi( main::@25/(byte) render_screen_show#41 ) + (byte) main::key_event#1 ← phi( main::@25/(byte) main::key_event#0 ) + (byte) main::render#4 ← phi( main::@25/(byte) main::render#0 ) + (byte) current_piece_char#14 ← phi( main::@25/(byte) current_piece_char#1 ) + (byte) current_xpos#25 ← phi( main::@25/(byte) current_xpos#1 ) + (byte*) current_piece_gfx#18 ← phi( main::@25/(byte*) current_piece_gfx#1 ) + (byte) current_orientation#22 ← phi( main::@25/(byte) current_orientation#2 ) + (byte*) current_piece#15 ← phi( main::@25/(byte*) current_piece#2 ) + (byte) current_ypos#20 ← phi( main::@25/(byte) current_ypos#2 ) + (byte) current_movedown_counter#11 ← phi( main::@25/(byte) current_movedown_counter#3 ) + (byte) play_move_down::return#5 ← phi( main::@25/(byte) play_move_down::return#3 ) + (byte~) main::$13 ← (byte) play_move_down::return#5 (byte) current_movedown_counter#4 ← (byte) current_movedown_counter#11 (byte) current_ypos#6 ← (byte) current_ypos#20 (byte*) current_piece#6 ← (byte*) current_piece#15 @@ -2262,98 +2413,126 @@ main::@31: scope:[main] from main::@30 (byte*) current_piece_gfx#7 ← (byte*) current_piece_gfx#18 (byte) current_xpos#8 ← (byte) current_xpos#25 (byte) current_piece_char#5 ← (byte) current_piece_char#14 - (byte) main::render#1 ← (byte) main::render#4 + (byte~) main::$12 + (byte) main::render#1 ← (byte) main::render#4 + (byte~) main::$13 (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#1 call play_move_leftright (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 - to:main::@32 -main::@32: scope:[main] from main::@31 - (byte) current_movedown_counter#35 ← phi( main::@31/(byte) current_movedown_counter#4 ) - (byte) keyboard_modifiers#43 ← phi( main::@31/(byte) keyboard_modifiers#47 ) - (byte) keyboard_events_size#52 ← phi( main::@31/(byte) keyboard_events_size#59 ) - (byte) current_piece_char#60 ← phi( main::@31/(byte) current_piece_char#5 ) - (byte*) current_piece#56 ← phi( main::@31/(byte*) current_piece#6 ) - (byte) current_ypos#53 ← phi( main::@31/(byte) current_ypos#6 ) - (byte*) current_piece_gfx#33 ← phi( main::@31/(byte*) current_piece_gfx#7 ) - (byte) current_orientation#38 ← phi( main::@31/(byte) current_orientation#8 ) - (byte) main::key_event#2 ← phi( main::@31/(byte) main::key_event#1 ) - (byte) main::render#5 ← phi( main::@31/(byte) main::render#1 ) - (byte) current_xpos#26 ← phi( main::@31/(byte) current_xpos#3 ) - (byte) play_move_leftright::return#6 ← phi( main::@31/(byte) play_move_leftright::return#4 ) - (byte~) main::$13 ← (byte) play_move_leftright::return#6 + to:main::@27 +main::@27: scope:[main] from main::@26 + (byte) current_movedown_counter#35 ← phi( main::@26/(byte) current_movedown_counter#4 ) + (byte) keyboard_modifiers#42 ← phi( main::@26/(byte) keyboard_modifiers#46 ) + (byte) keyboard_events_size#51 ← phi( main::@26/(byte) keyboard_events_size#58 ) + (byte) current_piece_char#60 ← phi( main::@26/(byte) current_piece_char#5 ) + (byte) render_screen_render#45 ← phi( main::@26/(byte) render_screen_render#49 ) + (byte) render_screen_show#35 ← phi( main::@26/(byte) render_screen_show#38 ) + (byte*) current_piece#56 ← phi( main::@26/(byte*) current_piece#6 ) + (byte) current_ypos#53 ← phi( main::@26/(byte) current_ypos#6 ) + (byte*) current_piece_gfx#33 ← phi( main::@26/(byte*) current_piece_gfx#7 ) + (byte) current_orientation#38 ← phi( main::@26/(byte) current_orientation#8 ) + (byte) main::key_event#2 ← phi( main::@26/(byte) main::key_event#1 ) + (byte) main::render#5 ← phi( main::@26/(byte) main::render#1 ) + (byte) current_xpos#26 ← phi( main::@26/(byte) current_xpos#3 ) + (byte) play_move_leftright::return#6 ← phi( main::@26/(byte) play_move_leftright::return#4 ) + (byte~) main::$14 ← (byte) play_move_leftright::return#6 (byte) current_xpos#9 ← (byte) current_xpos#26 - (byte) main::render#2 ← (byte) main::render#5 + (byte~) main::$13 + (byte) main::render#2 ← (byte) main::render#5 + (byte~) main::$14 (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#2 call play_move_rotate (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 - to:main::@33 -main::@33: scope:[main] from main::@32 - (byte) current_movedown_counter#31 ← phi( main::@32/(byte) current_movedown_counter#35 ) - (byte) keyboard_modifiers#37 ← phi( main::@32/(byte) keyboard_modifiers#43 ) - (byte) keyboard_events_size#43 ← phi( main::@32/(byte) keyboard_events_size#52 ) - (byte) current_piece_char#49 ← phi( main::@32/(byte) current_piece_char#60 ) - (byte) current_ypos#57 ← phi( main::@32/(byte) current_ypos#53 ) - (byte) current_xpos#78 ← phi( main::@32/(byte) current_xpos#9 ) - (byte*) current_piece#51 ← phi( main::@32/(byte*) current_piece#56 ) - (byte) main::render#6 ← phi( main::@32/(byte) main::render#2 ) - (byte*) current_piece_gfx#19 ← phi( main::@32/(byte*) current_piece_gfx#2 ) - (byte) current_orientation#23 ← phi( main::@32/(byte) current_orientation#3 ) - (byte) play_move_rotate::return#6 ← phi( main::@32/(byte) play_move_rotate::return#4 ) - (byte~) main::$14 ← (byte) play_move_rotate::return#6 + to:main::@28 +main::@28: scope:[main] from main::@27 + (byte) current_movedown_counter#31 ← phi( main::@27/(byte) current_movedown_counter#35 ) + (byte) keyboard_modifiers#36 ← phi( main::@27/(byte) keyboard_modifiers#42 ) + (byte) keyboard_events_size#42 ← phi( main::@27/(byte) keyboard_events_size#51 ) + (byte) current_piece_char#49 ← phi( main::@27/(byte) current_piece_char#60 ) + (byte) current_ypos#57 ← phi( main::@27/(byte) current_ypos#53 ) + (byte) current_xpos#78 ← phi( main::@27/(byte) current_xpos#9 ) + (byte*) current_piece#51 ← phi( main::@27/(byte*) current_piece#56 ) + (byte) render_screen_render#39 ← phi( main::@27/(byte) render_screen_render#45 ) + (byte) render_screen_show#31 ← phi( main::@27/(byte) render_screen_show#35 ) + (byte) main::render#6 ← phi( main::@27/(byte) main::render#2 ) + (byte*) current_piece_gfx#19 ← phi( main::@27/(byte*) current_piece_gfx#2 ) + (byte) current_orientation#23 ← phi( main::@27/(byte) current_orientation#3 ) + (byte) play_move_rotate::return#6 ← phi( main::@27/(byte) play_move_rotate::return#4 ) + (byte~) main::$15 ← (byte) play_move_rotate::return#6 (byte) current_orientation#9 ← (byte) current_orientation#23 (byte*) current_piece_gfx#8 ← (byte*) current_piece_gfx#19 - (byte) main::render#3 ← (byte) main::render#6 + (byte~) main::$14 - (bool~) main::$15 ← (byte) main::render#3 != (byte/signed byte/word/signed word/dword/signed dword) 0 - (bool~) main::$16 ← ! (bool~) main::$15 - if((bool~) main::$16) goto main::@10 - to:main::@19 -main::@10: scope:[main] from main::@33 main::@35 - (byte) current_movedown_counter#23 ← phi( main::@33/(byte) current_movedown_counter#31 main::@35/(byte) current_movedown_counter#32 ) - (byte) keyboard_modifiers#29 ← phi( main::@33/(byte) keyboard_modifiers#37 main::@35/(byte) keyboard_modifiers#38 ) - (byte) keyboard_events_size#32 ← phi( main::@33/(byte) keyboard_events_size#43 main::@35/(byte) keyboard_events_size#44 ) - (byte) current_piece_char#33 ← phi( main::@33/(byte) current_piece_char#49 main::@35/(byte) current_piece_char#50 ) - (byte) current_ypos#45 ← phi( main::@33/(byte) current_ypos#57 main::@35/(byte) current_ypos#58 ) - (byte) current_xpos#61 ← phi( main::@33/(byte) current_xpos#78 main::@35/(byte) current_xpos#79 ) - (byte*) current_piece_gfx#48 ← phi( main::@33/(byte*) current_piece_gfx#8 main::@35/(byte*) current_piece_gfx#65 ) - (byte) current_orientation#47 ← phi( main::@33/(byte) current_orientation#9 main::@35/(byte) current_orientation#60 ) - (byte*) current_piece#38 ← phi( main::@33/(byte*) current_piece#51 main::@35/(byte*) current_piece#52 ) - *((byte*) BORDERCOL#0) ← -- *((byte*) BORDERCOL#0) + (byte) main::render#3 ← (byte) main::render#6 + (byte~) main::$15 + (bool~) main::$16 ← (byte) main::render#3 != (byte/signed byte/word/signed word/dword/signed dword) 0 + (bool~) main::$17 ← ! (bool~) main::$16 + if((bool~) main::$17) goto main::@7 + to:main::@13 +main::@7: scope:[main] from main::@28 main::@31 + (byte) current_movedown_counter#24 ← phi( main::@28/(byte) current_movedown_counter#31 main::@31/(byte) current_movedown_counter#32 ) + (byte) keyboard_modifiers#30 ← phi( main::@28/(byte) keyboard_modifiers#36 main::@31/(byte) keyboard_modifiers#37 ) + (byte) keyboard_events_size#33 ← phi( main::@28/(byte) keyboard_events_size#42 main::@31/(byte) keyboard_events_size#43 ) + (byte) current_piece_char#34 ← phi( main::@28/(byte) current_piece_char#49 main::@31/(byte) current_piece_char#50 ) + (byte) current_ypos#46 ← phi( main::@28/(byte) current_ypos#57 main::@31/(byte) current_ypos#58 ) + (byte) current_xpos#62 ← phi( main::@28/(byte) current_xpos#78 main::@31/(byte) current_xpos#79 ) + (byte*) current_piece_gfx#49 ← phi( main::@28/(byte*) current_piece_gfx#8 main::@31/(byte*) current_piece_gfx#65 ) + (byte) current_orientation#48 ← phi( main::@28/(byte) current_orientation#9 main::@31/(byte) current_orientation#60 ) + (byte*) current_piece#39 ← phi( main::@28/(byte*) current_piece#51 main::@31/(byte*) current_piece#52 ) + (byte) render_screen_render#31 ← phi( main::@28/(byte) render_screen_render#39 main::@31/(byte) render_screen_render#5 ) + (byte) render_screen_show#24 ← phi( main::@28/(byte) render_screen_show#31 main::@31/(byte) render_screen_show#5 ) + *((byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:main::@1 -main::@19: scope:[main] from main::@33 - (byte) current_movedown_counter#40 ← phi( main::@33/(byte) current_movedown_counter#31 ) - (byte) keyboard_modifiers#48 ← phi( main::@33/(byte) keyboard_modifiers#37 ) - (byte) keyboard_events_size#60 ← phi( main::@33/(byte) keyboard_events_size#43 ) - (byte) current_piece_char#70 ← phi( main::@33/(byte) current_piece_char#49 ) - (byte) current_orientation#71 ← phi( main::@33/(byte) current_orientation#9 ) - (byte*) current_piece#65 ← phi( main::@33/(byte*) current_piece#51 ) - (byte*) current_piece_gfx#83 ← phi( main::@33/(byte*) current_piece_gfx#8 ) - (byte) current_xpos#88 ← phi( main::@33/(byte) current_xpos#78 ) - (byte) current_ypos#48 ← phi( main::@33/(byte) current_ypos#57 ) +main::@13: scope:[main] from main::@28 + (byte) current_movedown_counter#43 ← phi( main::@28/(byte) current_movedown_counter#31 ) + (byte) keyboard_modifiers#51 ← phi( main::@28/(byte) keyboard_modifiers#36 ) + (byte) keyboard_events_size#66 ← phi( main::@28/(byte) keyboard_events_size#42 ) + (byte) current_piece_char#77 ← phi( main::@28/(byte) current_piece_char#49 ) + (byte) current_orientation#74 ← phi( main::@28/(byte) current_orientation#9 ) + (byte*) current_piece#70 ← phi( main::@28/(byte*) current_piece#51 ) + (byte*) current_piece_gfx#83 ← phi( main::@28/(byte*) current_piece_gfx#8 ) + (byte) current_xpos#88 ← phi( main::@28/(byte) current_xpos#78 ) + (byte) render_screen_show#32 ← phi( main::@28/(byte) render_screen_show#31 ) + (byte) current_ypos#48 ← phi( main::@28/(byte) current_ypos#57 ) + (byte) render_screen_render#24 ← phi( main::@28/(byte) render_screen_render#39 ) call render_playfield - to:main::@34 -main::@34: scope:[main] from main::@19 - (byte) current_movedown_counter#36 ← phi( main::@19/(byte) current_movedown_counter#40 ) - (byte) keyboard_modifiers#44 ← phi( main::@19/(byte) keyboard_modifiers#48 ) - (byte) keyboard_events_size#53 ← phi( main::@19/(byte) keyboard_events_size#60 ) - (byte) current_piece_char#61 ← phi( main::@19/(byte) current_piece_char#70 ) - (byte) current_orientation#65 ← phi( main::@19/(byte) current_orientation#71 ) - (byte*) current_piece#59 ← phi( main::@19/(byte*) current_piece#65 ) - (byte*) current_piece_gfx#66 ← phi( main::@19/(byte*) current_piece_gfx#83 ) - (byte) current_xpos#66 ← phi( main::@19/(byte) current_xpos#88 ) - (byte) current_ypos#24 ← phi( main::@19/(byte) current_ypos#48 ) + to:main::@29 +main::@29: scope:[main] from main::@13 + (byte) current_movedown_counter#39 ← phi( main::@13/(byte) current_movedown_counter#43 ) + (byte) keyboard_modifiers#47 ← phi( main::@13/(byte) keyboard_modifiers#51 ) + (byte) keyboard_events_size#59 ← phi( main::@13/(byte) keyboard_events_size#66 ) + (byte) current_piece_char#69 ← phi( main::@13/(byte) current_piece_char#77 ) + (byte) current_orientation#70 ← phi( main::@13/(byte) current_orientation#74 ) + (byte*) current_piece#64 ← phi( main::@13/(byte*) current_piece#70 ) + (byte*) current_piece_gfx#66 ← phi( main::@13/(byte*) current_piece_gfx#83 ) + (byte) current_xpos#66 ← phi( main::@13/(byte) current_xpos#88 ) + (byte) render_screen_show#27 ← phi( main::@13/(byte) render_screen_show#32 ) + (byte) render_screen_render#32 ← phi( main::@13/(byte) render_screen_render#24 ) + (byte) current_ypos#24 ← phi( main::@13/(byte) current_ypos#48 ) call render_current - to:main::@35 -main::@35: scope:[main] from main::@34 - (byte) current_movedown_counter#32 ← phi( main::@34/(byte) current_movedown_counter#36 ) - (byte) keyboard_modifiers#38 ← phi( main::@34/(byte) keyboard_modifiers#44 ) - (byte) keyboard_events_size#44 ← phi( main::@34/(byte) keyboard_events_size#53 ) - (byte) current_piece_char#50 ← phi( main::@34/(byte) current_piece_char#61 ) - (byte) current_ypos#58 ← phi( main::@34/(byte) current_ypos#24 ) - (byte) current_xpos#79 ← phi( main::@34/(byte) current_xpos#66 ) - (byte*) current_piece_gfx#65 ← phi( main::@34/(byte*) current_piece_gfx#66 ) - (byte) current_orientation#60 ← phi( main::@34/(byte) current_orientation#65 ) - (byte*) current_piece#52 ← phi( main::@34/(byte*) current_piece#59 ) - to:main::@10 + to:main::@30 +main::@30: scope:[main] from main::@29 + (byte) current_movedown_counter#36 ← phi( main::@29/(byte) current_movedown_counter#39 ) + (byte) keyboard_modifiers#43 ← phi( main::@29/(byte) keyboard_modifiers#47 ) + (byte) keyboard_events_size#52 ← phi( main::@29/(byte) keyboard_events_size#59 ) + (byte) current_piece_char#61 ← phi( main::@29/(byte) current_piece_char#69 ) + (byte) current_ypos#64 ← phi( main::@29/(byte) current_ypos#24 ) + (byte) current_xpos#89 ← phi( main::@29/(byte) current_xpos#66 ) + (byte*) current_piece_gfx#77 ← phi( main::@29/(byte*) current_piece_gfx#66 ) + (byte) current_orientation#65 ← phi( main::@29/(byte) current_orientation#70 ) + (byte*) current_piece#59 ← phi( main::@29/(byte*) current_piece#64 ) + (byte) render_screen_show#17 ← phi( main::@29/(byte) render_screen_show#27 ) + (byte) render_screen_render#17 ← phi( main::@29/(byte) render_screen_render#32 ) + call render_screen_swap + to:main::@31 +main::@31: scope:[main] from main::@30 + (byte) current_movedown_counter#32 ← phi( main::@30/(byte) current_movedown_counter#36 ) + (byte) keyboard_modifiers#37 ← phi( main::@30/(byte) keyboard_modifiers#43 ) + (byte) keyboard_events_size#43 ← phi( main::@30/(byte) keyboard_events_size#52 ) + (byte) current_piece_char#50 ← phi( main::@30/(byte) current_piece_char#61 ) + (byte) current_ypos#58 ← phi( main::@30/(byte) current_ypos#64 ) + (byte) current_xpos#79 ← phi( main::@30/(byte) current_xpos#89 ) + (byte*) current_piece_gfx#65 ← phi( main::@30/(byte*) current_piece_gfx#77 ) + (byte) current_orientation#60 ← phi( main::@30/(byte) current_orientation#65 ) + (byte*) current_piece#52 ← phi( main::@30/(byte*) current_piece#59 ) + (byte) render_screen_show#14 ← phi( main::@30/(byte) render_screen_show#3 ) + (byte) render_screen_render#14 ← phi( main::@30/(byte) render_screen_render#3 ) + (byte) render_screen_render#5 ← (byte) render_screen_render#14 + (byte) render_screen_show#5 ← (byte) render_screen_show#14 + to:main::@7 main::@return: scope:[main] from main::@1 (byte) current_movedown_counter#12 ← phi( main::@1/(byte) current_movedown_counter#19 ) (byte) keyboard_modifiers#16 ← phi( main::@1/(byte) keyboard_modifiers#24 ) @@ -2364,6 +2543,10 @@ main::@return: scope:[main] from main::@1 (byte*) current_piece_gfx#20 ← phi( main::@1/(byte*) current_piece_gfx#34 ) (byte) current_orientation#24 ← phi( main::@1/(byte) current_orientation#39 ) (byte*) current_piece#16 ← phi( main::@1/(byte*) current_piece#28 ) + (byte) render_screen_render#15 ← phi( main::@1/(byte) render_screen_render#22 ) + (byte) render_screen_show#15 ← phi( main::@1/(byte) render_screen_show#20 ) + (byte) render_screen_show#6 ← (byte) render_screen_show#15 + (byte) render_screen_render#6 ← (byte) render_screen_render#15 (byte*) current_piece#7 ← (byte*) current_piece#16 (byte) current_orientation#10 ← (byte) current_orientation#24 (byte*) current_piece_gfx#9 ← (byte*) current_piece_gfx#20 @@ -2375,32 +2558,38 @@ main::@return: scope:[main] from main::@1 (byte) current_movedown_counter#5 ← (byte) current_movedown_counter#12 return to:@return -@30: scope:[] from @24 - (byte) irq_raster_next#15 ← phi( @24/(byte) irq_raster_next#16 ) - (byte) irq_cnt#11 ← phi( @24/(byte) irq_cnt#15 ) - (byte) irq_sprite_ptr#12 ← phi( @24/(byte) irq_sprite_ptr#13 ) - (byte) current_movedown_counter#20 ← phi( @24/(byte) current_movedown_counter#26 ) - (byte) keyboard_modifiers#25 ← phi( @24/(byte) keyboard_modifiers#32 ) - (byte) keyboard_events_size#28 ← phi( @24/(byte) keyboard_events_size#35 ) - (byte) current_piece_char#25 ← phi( @24/(byte) current_piece_char#36 ) - (byte) current_ypos#38 ← phi( @24/(byte) current_ypos#49 ) - (byte) current_xpos#46 ← phi( @24/(byte) current_xpos#64 ) - (byte*) current_piece_gfx#35 ← phi( @24/(byte*) current_piece_gfx#51 ) - (byte) current_orientation#40 ← phi( @24/(byte) current_orientation#50 ) - (byte*) current_piece#29 ← phi( @24/(byte*) current_piece#41 ) - (byte) irq_sprite_ypos#8 ← phi( @24/(byte) irq_sprite_ypos#13 ) +@32: scope:[] from @26 + (byte) irq_raster_next#15 ← phi( @26/(byte) irq_raster_next#16 ) + (byte) irq_cnt#11 ← phi( @26/(byte) irq_cnt#15 ) + (byte) irq_sprite_ptr#12 ← phi( @26/(byte) irq_sprite_ptr#13 ) + (byte) current_movedown_counter#20 ← phi( @26/(byte) current_movedown_counter#26 ) + (byte) keyboard_modifiers#25 ← phi( @26/(byte) keyboard_modifiers#32 ) + (byte) keyboard_events_size#28 ← phi( @26/(byte) keyboard_events_size#35 ) + (byte) current_piece_char#25 ← phi( @26/(byte) current_piece_char#36 ) + (byte) current_ypos#38 ← phi( @26/(byte) current_ypos#49 ) + (byte) current_xpos#46 ← phi( @26/(byte) current_xpos#64 ) + (byte*) current_piece_gfx#35 ← phi( @26/(byte*) current_piece_gfx#51 ) + (byte) current_orientation#40 ← phi( @26/(byte) current_orientation#50 ) + (byte*) current_piece#29 ← phi( @26/(byte*) current_piece#41 ) + (byte) render_screen_render#23 ← phi( @26/(byte) render_screen_render#33 ) + (byte) render_screen_show#21 ← phi( @26/(byte) render_screen_show#28 ) + (byte) irq_sprite_ypos#8 ← phi( @26/(byte) irq_sprite_ypos#13 ) call main - to:@32 -@32: scope:[] from @30 - (byte) current_movedown_counter#13 ← phi( @30/(byte) current_movedown_counter#5 ) - (byte) keyboard_modifiers#17 ← phi( @30/(byte) keyboard_modifiers#8 ) - (byte) keyboard_events_size#20 ← phi( @30/(byte) keyboard_events_size#8 ) - (byte) current_piece_char#16 ← phi( @30/(byte) current_piece_char#6 ) - (byte) current_ypos#22 ← phi( @30/(byte) current_ypos#7 ) - (byte) current_xpos#28 ← phi( @30/(byte) current_xpos#10 ) - (byte*) current_piece_gfx#21 ← phi( @30/(byte*) current_piece_gfx#9 ) - (byte) current_orientation#25 ← phi( @30/(byte) current_orientation#10 ) - (byte*) current_piece#17 ← phi( @30/(byte*) current_piece#7 ) + to:@34 +@34: scope:[] from @32 + (byte) current_movedown_counter#13 ← phi( @32/(byte) current_movedown_counter#5 ) + (byte) keyboard_modifiers#17 ← phi( @32/(byte) keyboard_modifiers#8 ) + (byte) keyboard_events_size#20 ← phi( @32/(byte) keyboard_events_size#8 ) + (byte) current_piece_char#16 ← phi( @32/(byte) current_piece_char#6 ) + (byte) current_ypos#22 ← phi( @32/(byte) current_ypos#7 ) + (byte) current_xpos#28 ← phi( @32/(byte) current_xpos#10 ) + (byte*) current_piece_gfx#21 ← phi( @32/(byte*) current_piece_gfx#9 ) + (byte) current_orientation#25 ← phi( @32/(byte) current_orientation#10 ) + (byte*) current_piece#17 ← phi( @32/(byte*) current_piece#7 ) + (byte) render_screen_render#16 ← phi( @32/(byte) render_screen_render#6 ) + (byte) render_screen_show#16 ← phi( @32/(byte) render_screen_show#6 ) + (byte) render_screen_show#7 ← (byte) render_screen_show#16 + (byte) render_screen_render#7 ← (byte) render_screen_render#16 (byte*) current_piece#8 ← (byte*) current_piece#17 (byte) current_orientation#11 ← (byte) current_orientation#25 (byte*) current_piece_gfx#10 ← (byte*) current_piece_gfx#21 @@ -2411,44 +2600,45 @@ main::@return: scope:[main] from main::@1 (byte) keyboard_modifiers#9 ← (byte) keyboard_modifiers#17 (byte) current_movedown_counter#6 ← (byte) current_movedown_counter#13 to:@end -@end: scope:[] from @32 +@end: scope:[] from @34 SYMBOL TABLE SSA (byte~) $0 (byte*~) $1 -(byte/signed byte/word/signed word/dword/signed dword~) $10 -(byte/signed word/word/dword/signed dword/signed byte~) $11 -(byte/signed byte/word/signed word/dword/signed dword~) $12 -(byte/signed word/word/dword/signed dword/signed byte~) $13 -(byte/signed byte/word/signed word/dword/signed dword~) $14 -(byte/signed word/word/dword/signed dword/signed byte~) $15 -(byte/signed byte/word/signed word/dword/signed dword~) $16 -(byte/signed word/word/dword/signed dword/signed byte~) $17 -(word~) $18 +(byte/signed word/word/dword/signed dword/signed byte~) $10 +(byte/signed byte/word/signed word/dword/signed dword~) $11 +(byte/signed word/word/dword/signed dword/signed byte~) $12 +(byte/signed byte/word/signed word/dword/signed dword~) $13 +(byte/signed word/word/dword/signed dword/signed byte~) $14 +(byte/signed byte/word/signed word/dword/signed dword~) $15 +(byte/signed word/word/dword/signed dword/signed byte~) $16 +(byte/signed byte/word/signed word/dword/signed dword~) $17 +(byte/signed word/word/dword/signed dword/signed byte~) $18 (word~) $19 -(byte~) $2 +(byte*~) $2 (word~) $20 (word~) $21 (word~) $22 (word~) $23 (word~) $24 -(byte/signed word/word/dword/signed dword~) $25 +(word~) $25 +(byte/signed word/word/dword/signed dword~) $26 (byte~) $3 -(byte/signed byte/word/signed word/dword/signed dword~) $4 -(byte/signed word/word/dword/signed dword/signed byte~) $5 -(byte/signed byte/word/signed word/dword/signed dword~) $6 -(byte/signed word/word/dword/signed dword/signed byte~) $7 -(byte/signed byte/word/signed word/dword/signed dword~) $8 -(byte/signed word/word/dword/signed dword/signed byte~) $9 +(byte~) $4 +(byte/signed byte/word/signed word/dword/signed dword~) $5 +(byte/signed word/word/dword/signed dword/signed byte~) $6 +(byte/signed byte/word/signed word/dword/signed dword~) $7 +(byte/signed word/word/dword/signed dword/signed byte~) $8 +(byte/signed byte/word/signed word/dword/signed dword~) $9 (label) @12 (label) @14 -(label) @18 -(label) @19 +(label) @20 (label) @21 -(label) @24 -(label) @30 -(label) @31 +(label) @23 +(label) @26 (label) @32 +(label) @33 +(label) @34 (label) @5 (label) @9 (label) @begin @@ -2697,20 +2887,20 @@ SYMBOL TABLE SSA (byte[]) PIECES_START_X#0 (byte[]) PIECES_START_Y (byte[]) PIECES_START_Y#0 -(byte[$17]) PIECE_I -(byte[$17]) PIECE_I#0 -(byte[$13]) PIECE_J -(byte[$13]) PIECE_J#0 -(byte[$11]) PIECE_L -(byte[$11]) PIECE_L#0 -(byte[$15]) PIECE_O -(byte[$15]) PIECE_O#0 -(byte[$7]) PIECE_S -(byte[$7]) PIECE_S#0 -(byte[$5]) PIECE_T -(byte[$5]) PIECE_T#0 -(byte[$9]) PIECE_Z -(byte[$9]) PIECE_Z#0 +(byte[$18]) PIECE_I +(byte[$18]) PIECE_I#0 +(byte[$14]) PIECE_J +(byte[$14]) PIECE_J#0 +(byte[$12]) PIECE_L +(byte[$12]) PIECE_L#0 +(byte[$16]) PIECE_O +(byte[$16]) PIECE_O#0 +(byte[$8]) PIECE_S +(byte[$8]) PIECE_S#0 +(byte[$6]) PIECE_T +(byte[$6]) PIECE_T#0 +(byte[$10]) PIECE_Z +(byte[$10]) PIECE_Z#0 (byte) PINK (byte) PINK#0 (byte*) PLAYFIELD_CHARSET @@ -2719,16 +2909,20 @@ SYMBOL TABLE SSA (byte) PLAYFIELD_COLS#0 (byte) PLAYFIELD_LINES (byte) PLAYFIELD_LINES#0 -(byte*) PLAYFIELD_SCREEN -(byte*) PLAYFIELD_SCREEN#0 +(byte*) PLAYFIELD_SCREEN_1 +(byte*) PLAYFIELD_SCREEN_1#0 +(byte*) PLAYFIELD_SCREEN_2 +(byte*) PLAYFIELD_SCREEN_2#0 (byte*) PLAYFIELD_SCREEN_ORIGINAL (byte*) PLAYFIELD_SCREEN_ORIGINAL#0 (byte) PLAYFIELD_SCREEN_ORIGINAL_WIDTH (byte) PLAYFIELD_SCREEN_ORIGINAL_WIDTH#0 (byte*) PLAYFIELD_SPRITES (byte*) PLAYFIELD_SPRITES#0 -(byte*) PLAYFIELD_SPRITE_PTRS -(byte*) PLAYFIELD_SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(byte*) PLAYFIELD_SPRITE_PTRS_1#0 +(byte*) PLAYFIELD_SPRITE_PTRS_2 +(byte*) PLAYFIELD_SPRITE_PTRS_2#0 (byte*) PROCPORT (byte*) PROCPORT#0 (byte) PROCPORT_BASIC_KERNEL_IO @@ -3864,18 +4058,23 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte[8]) keyboard_scan_values (byte[8]) keyboard_scan_values#0 (void()) main() -(byte~) main::$11 (byte~) main::$12 (byte~) main::$13 (byte~) main::$14 -(bool~) main::$15 +(byte~) main::$15 (bool~) main::$16 +(bool~) main::$17 (bool~) main::$8 -(bool~) main::$9 +(byte~) main::$9 (label) main::@1 -(label) main::@10 +(label) main::@13 +(label) main::@15 +(label) main::@16 +(label) main::@17 +(label) main::@18 (label) main::@19 (label) main::@2 +(label) main::@20 (label) main::@21 (label) main::@22 (label) main::@23 @@ -3887,15 +4086,10 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) main::@29 (label) main::@30 (label) main::@31 -(label) main::@32 -(label) main::@33 -(label) main::@34 -(label) main::@35 (label) main::@4 (label) main::@5 +(label) main::@6 (label) main::@7 -(label) main::@8 -(label) main::@9 (label) main::@return (byte) main::key_event (byte) main::key_event#0 @@ -4357,20 +4551,21 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_spawn_current::piece_idx#1 (byte) play_spawn_current::piece_idx#2 (byte) play_spawn_current::piece_idx#3 -(byte[$2]) playfield -(byte[$2]) playfield#0 +(byte[$3]) playfield +(byte[$3]) playfield#0 (byte*[PLAYFIELD_LINES#0]) playfield_lines (byte*[PLAYFIELD_LINES#0]) playfield_lines#0 -(byte[$25]) playfield_lines_idx -(byte[$25]) playfield_lines_idx#0 +(byte[$26]) playfield_lines_idx +(byte[$26]) playfield_lines_idx#0 (void()) render_current() (byte~) render_current::$0 (bool~) render_current::$1 (bool~) render_current::$10 +(bool~) render_current::$11 (byte/signed word/word/dword/signed dword~) render_current::$2 (bool~) render_current::$3 (bool~) render_current::$4 -(bool~) render_current::$5 +(byte~) render_current::$5 (bool~) render_current::$6 (bool~) render_current::$7 (bool~) render_current::$8 @@ -4450,20 +4645,23 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (void()) render_init() (byte~) render_init::$1 (byte/signed word/word/dword/signed dword~) render_init::$10 -(byte~) render_init::$11 -(bool~) render_init::$12 -(byte/word/signed word/dword/signed dword~) render_init::$13 -(byte*~) render_init::$14 -(byte*~) render_init::$15 -(byte/signed word/word/dword/signed dword~) render_init::$16 -(byte/signed word/word/dword/signed dword~) render_init::$17 -(byte*~) render_init::$18 -(bool~) render_init::$19 +(byte/signed word/word/dword/signed dword~) render_init::$11 +(byte*~) render_init::$12 +(bool~) render_init::$13 +(bool~) render_init::$14 +(byte/signed byte/word/signed word/dword/signed dword~) render_init::$15 +(byte*~) render_init::$16 +(byte*~) render_init::$17 +(byte/signed byte/word/signed word/dword/signed dword~) render_init::$18 +(byte*~) render_init::$19 (byte~) render_init::$2 -(bool~) render_init::$20 -(byte~) render_init::$3 -(byte/word/dword~) render_init::$4 -(byte/signed byte/word/signed word/dword/signed dword~) render_init::$7 +(byte*~) render_init::$20 +(byte/signed word/word/dword/signed dword~) render_init::$21 +(byte~) render_init::$22 +(byte~) render_init::$23 +(bool~) render_init::$24 +(byte/word/dword~) render_init::$3 +(byte/word/signed word/dword/signed dword~) render_init::$7 (byte*~) render_init::$8 (byte*~) render_init::$9 (label) render_init::@1 @@ -4472,6 +4670,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) render_init::@3 (label) render_init::@4 (label) render_init::@5 +(label) render_init::@6 (label) render_init::@7 (label) render_init::@8 (label) render_init::@9 @@ -4490,47 +4689,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_init::l#2 (byte) render_init::l#3 (byte) render_init::l#4 -(byte*) render_init::li -(byte*) render_init::li#0 -(byte*) render_init::li#1 -(byte*) render_init::li#2 +(byte*) render_init::li_1 +(byte*) render_init::li_1#0 +(byte*) render_init::li_1#1 +(byte*) render_init::li_1#2 +(byte*) render_init::li_2 +(byte*) render_init::li_2#0 +(byte*) render_init::li_2#1 +(byte*) render_init::li_2#2 (byte*) render_init::line (byte*) render_init::line#0 (byte*) render_init::line#1 (byte*) render_init::line#2 (byte*) render_init::line#3 (byte*) render_init::line#4 -(label) render_init::toD0181 -(word~) render_init::toD0181_$0 -(word) render_init::toD0181_$0#0 -(word~) render_init::toD0181_$1 -(word) render_init::toD0181_$1#0 -(word~) render_init::toD0181_$2 -(word) render_init::toD0181_$2#0 -(byte~) render_init::toD0181_$3 -(byte) render_init::toD0181_$3#0 -(word~) render_init::toD0181_$4 -(word) render_init::toD0181_$4#0 -(byte~) render_init::toD0181_$5 -(byte) render_init::toD0181_$5#0 -(byte~) render_init::toD0181_$6 -(byte) render_init::toD0181_$6#0 -(byte~) render_init::toD0181_$7 -(byte) render_init::toD0181_$7#0 -(byte~) render_init::toD0181_$8 -(byte) render_init::toD0181_$8#0 -(label) render_init::toD0181_@return -(byte*) render_init::toD0181_gfx -(byte*) render_init::toD0181_gfx#0 -(byte*) render_init::toD0181_gfx#1 -(byte) render_init::toD0181_return -(byte) render_init::toD0181_return#0 -(byte) render_init::toD0181_return#1 -(byte) render_init::toD0181_return#2 -(byte) render_init::toD0181_return#3 -(byte*) render_init::toD0181_screen -(byte*) render_init::toD0181_screen#0 -(byte*) render_init::toD0181_screen#1 (label) render_init::vicSelectGfxBank1 (byte~) render_init::vicSelectGfxBank1_$0 (byte) render_init::vicSelectGfxBank1_$0#0 @@ -4560,9 +4732,10 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte/signed word/word/dword/signed dword~) render_playfield::$0 (byte/signed word/word/dword/signed dword~) render_playfield::$1 (byte~) render_playfield::$2 -(byte/signed word/word/dword/signed dword~) render_playfield::$3 -(bool~) render_playfield::$4 +(byte~) render_playfield::$3 +(byte/signed word/word/dword/signed dword~) render_playfield::$4 (bool~) render_playfield::$5 +(bool~) render_playfield::$6 (label) render_playfield::@1 (label) render_playfield::@2 (label) render_playfield::@3 @@ -4636,6 +4809,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte*) render_screen_original::screen#1 (byte*) render_screen_original::screen#10 (byte*) render_screen_original::screen#11 +(byte*) render_screen_original::screen#12 (byte*) render_screen_original::screen#2 (byte*) render_screen_original::screen#3 (byte*) render_screen_original::screen#4 @@ -4664,8 +4838,208 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_screen_original::y#6 (byte) render_screen_original::y#7 (byte) render_screen_original::y#8 -(byte*[PLAYFIELD_LINES#0]) screen_lines -(byte*[PLAYFIELD_LINES#0]) screen_lines#0 +(byte) render_screen_render +(byte) render_screen_render#0 +(byte) render_screen_render#1 +(byte) render_screen_render#10 +(byte) render_screen_render#11 +(byte) render_screen_render#12 +(byte) render_screen_render#13 +(byte) render_screen_render#14 +(byte) render_screen_render#15 +(byte) render_screen_render#16 +(byte) render_screen_render#17 +(byte) render_screen_render#18 +(byte) render_screen_render#19 +(byte) render_screen_render#2 +(byte) render_screen_render#20 +(byte) render_screen_render#21 +(byte) render_screen_render#22 +(byte) render_screen_render#23 +(byte) render_screen_render#24 +(byte) render_screen_render#25 +(byte) render_screen_render#26 +(byte) render_screen_render#27 +(byte) render_screen_render#28 +(byte) render_screen_render#29 +(byte) render_screen_render#3 +(byte) render_screen_render#30 +(byte) render_screen_render#31 +(byte) render_screen_render#32 +(byte) render_screen_render#33 +(byte) render_screen_render#34 +(byte) render_screen_render#35 +(byte) render_screen_render#36 +(byte) render_screen_render#37 +(byte) render_screen_render#38 +(byte) render_screen_render#39 +(byte) render_screen_render#4 +(byte) render_screen_render#40 +(byte) render_screen_render#41 +(byte) render_screen_render#42 +(byte) render_screen_render#43 +(byte) render_screen_render#44 +(byte) render_screen_render#45 +(byte) render_screen_render#46 +(byte) render_screen_render#47 +(byte) render_screen_render#48 +(byte) render_screen_render#49 +(byte) render_screen_render#5 +(byte) render_screen_render#50 +(byte) render_screen_render#51 +(byte) render_screen_render#52 +(byte) render_screen_render#53 +(byte) render_screen_render#54 +(byte) render_screen_render#55 +(byte) render_screen_render#56 +(byte) render_screen_render#57 +(byte) render_screen_render#58 +(byte) render_screen_render#59 +(byte) render_screen_render#6 +(byte) render_screen_render#60 +(byte) render_screen_render#61 +(byte) render_screen_render#62 +(byte) render_screen_render#63 +(byte) render_screen_render#64 +(byte) render_screen_render#7 +(byte) render_screen_render#8 +(byte) render_screen_render#9 +(byte) render_screen_show +(byte) render_screen_show#0 +(byte) render_screen_show#1 +(byte) render_screen_show#10 +(byte) render_screen_show#11 +(byte) render_screen_show#12 +(byte) render_screen_show#13 +(byte) render_screen_show#14 +(byte) render_screen_show#15 +(byte) render_screen_show#16 +(byte) render_screen_show#17 +(byte) render_screen_show#18 +(byte) render_screen_show#19 +(byte) render_screen_show#2 +(byte) render_screen_show#20 +(byte) render_screen_show#21 +(byte) render_screen_show#22 +(byte) render_screen_show#23 +(byte) render_screen_show#24 +(byte) render_screen_show#25 +(byte) render_screen_show#26 +(byte) render_screen_show#27 +(byte) render_screen_show#28 +(byte) render_screen_show#29 +(byte) render_screen_show#3 +(byte) render_screen_show#30 +(byte) render_screen_show#31 +(byte) render_screen_show#32 +(byte) render_screen_show#33 +(byte) render_screen_show#34 +(byte) render_screen_show#35 +(byte) render_screen_show#36 +(byte) render_screen_show#37 +(byte) render_screen_show#38 +(byte) render_screen_show#39 +(byte) render_screen_show#4 +(byte) render_screen_show#40 +(byte) render_screen_show#41 +(byte) render_screen_show#42 +(byte) render_screen_show#43 +(byte) render_screen_show#44 +(byte) render_screen_show#45 +(byte) render_screen_show#46 +(byte) render_screen_show#47 +(byte) render_screen_show#48 +(byte) render_screen_show#49 +(byte) render_screen_show#5 +(byte) render_screen_show#50 +(byte) render_screen_show#51 +(byte) render_screen_show#6 +(byte) render_screen_show#7 +(byte) render_screen_show#8 +(byte) render_screen_show#9 +(void()) render_screen_swap() +(label) render_screen_swap::@return +(void()) render_show() +(bool~) render_show::$0 +(byte~) render_show::$1 +(byte~) render_show::$2 +(label) render_show::@1 +(label) render_show::@2 +(label) render_show::@3 +(label) render_show::@5 +(label) render_show::@6 +(label) render_show::@return +(byte) render_show::d018val +(byte) render_show::d018val#0 +(byte) render_show::d018val#1 +(byte) render_show::d018val#2 +(byte) render_show::d018val#3 +(label) render_show::toD0181 +(word~) render_show::toD0181_$0 +(word) render_show::toD0181_$0#0 +(word~) render_show::toD0181_$1 +(word) render_show::toD0181_$1#0 +(word~) render_show::toD0181_$2 +(word) render_show::toD0181_$2#0 +(byte~) render_show::toD0181_$3 +(byte) render_show::toD0181_$3#0 +(word~) render_show::toD0181_$4 +(word) render_show::toD0181_$4#0 +(byte~) render_show::toD0181_$5 +(byte) render_show::toD0181_$5#0 +(byte~) render_show::toD0181_$6 +(byte) render_show::toD0181_$6#0 +(byte~) render_show::toD0181_$7 +(byte) render_show::toD0181_$7#0 +(byte~) render_show::toD0181_$8 +(byte) render_show::toD0181_$8#0 +(label) render_show::toD0181_@return +(byte*) render_show::toD0181_gfx +(byte*) render_show::toD0181_gfx#0 +(byte*) render_show::toD0181_gfx#1 +(byte) render_show::toD0181_return +(byte) render_show::toD0181_return#0 +(byte) render_show::toD0181_return#1 +(byte) render_show::toD0181_return#2 +(byte) render_show::toD0181_return#3 +(byte*) render_show::toD0181_screen +(byte*) render_show::toD0181_screen#0 +(byte*) render_show::toD0181_screen#1 +(label) render_show::toD0182 +(word~) render_show::toD0182_$0 +(word) render_show::toD0182_$0#0 +(word~) render_show::toD0182_$1 +(word) render_show::toD0182_$1#0 +(word~) render_show::toD0182_$2 +(word) render_show::toD0182_$2#0 +(byte~) render_show::toD0182_$3 +(byte) render_show::toD0182_$3#0 +(word~) render_show::toD0182_$4 +(word) render_show::toD0182_$4#0 +(byte~) render_show::toD0182_$5 +(byte) render_show::toD0182_$5#0 +(byte~) render_show::toD0182_$6 +(byte) render_show::toD0182_$6#0 +(byte~) render_show::toD0182_$7 +(byte) render_show::toD0182_$7#0 +(byte~) render_show::toD0182_$8 +(byte) render_show::toD0182_$8#0 +(label) render_show::toD0182_@return +(byte*) render_show::toD0182_gfx +(byte*) render_show::toD0182_gfx#0 +(byte*) render_show::toD0182_gfx#1 +(byte) render_show::toD0182_return +(byte) render_show::toD0182_return#0 +(byte) render_show::toD0182_return#1 +(byte) render_show::toD0182_return#2 +(byte) render_show::toD0182_return#3 +(byte*) render_show::toD0182_screen +(byte*) render_show::toD0182_screen#0 +(byte*) render_show::toD0182_screen#1 +(byte*[PLAYFIELD_LINES#0]) screen_lines_1 +(byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 +(byte*[PLAYFIELD_LINES#0]) screen_lines_2 +(byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 (byte()) sid_rnd() (label) sid_rnd::@return (byte) sid_rnd::return @@ -4720,8 +5094,8 @@ Inversing boolean not (bool~) keyboard_event_scan::$16 ← (byte~) keyboard_even Inversing boolean not (bool~) keyboard_event_scan::$20 ← (byte~) keyboard_event_scan::$18 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) keyboard_event_scan::$19 ← (byte~) keyboard_event_scan::$18 != (byte/signed byte/word/signed word/dword/signed dword) 0 Inversing boolean not (bool~) keyboard_event_scan::$24 ← (byte~) keyboard_event_scan::$22 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) keyboard_event_scan::$23 ← (byte~) keyboard_event_scan::$22 != (byte/signed byte/word/signed word/dword/signed dword) 0 Inversing boolean not (bool~) keyboard_event_scan::$28 ← (byte~) keyboard_event_scan::$26 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) keyboard_event_scan::$27 ← (byte~) keyboard_event_scan::$26 != (byte/signed byte/word/signed word/dword/signed dword) 0 -Inversing boolean not (bool~) render_current::$6 ← (byte) render_current::current_cell#0 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) render_current::$5 ← (byte) render_current::current_cell#0 != (byte/signed byte/word/signed word/dword/signed dword) 0 -Inversing boolean not (bool~) render_current::$8 ← (byte) render_current::xpos#3 >= (byte) PLAYFIELD_COLS#0 from (bool~) render_current::$7 ← (byte) render_current::xpos#3 < (byte) PLAYFIELD_COLS#0 +Inversing boolean not (bool~) render_current::$7 ← (byte) render_current::current_cell#0 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) render_current::$6 ← (byte) render_current::current_cell#0 != (byte/signed byte/word/signed word/dword/signed dword) 0 +Inversing boolean not (bool~) render_current::$9 ← (byte) render_current::xpos#3 >= (byte) PLAYFIELD_COLS#0 from (bool~) render_current::$8 ← (byte) render_current::xpos#3 < (byte) PLAYFIELD_COLS#0 Inversing boolean not (bool~) irq::$5 ← (byte~) irq::$3 != (byte/signed byte/word/signed word/dword/signed dword) 3 from (bool~) irq::$4 ← (byte~) irq::$3 == (byte/signed byte/word/signed word/dword/signed dword) 3 Inversing boolean not (bool~) play_move_down::$1 ← (byte) play_move_down::key_event#1 != (byte) KEY_SPACE#0 from (bool~) play_move_down::$0 ← (byte) play_move_down::key_event#1 == (byte) KEY_SPACE#0 Inversing boolean not (bool~) play_move_down::$4 ← (byte~) play_move_down::$2 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) play_move_down::$3 ← (byte~) play_move_down::$2 != (byte/signed byte/word/signed word/dword/signed dword) 0 @@ -4740,23 +5114,25 @@ Inversing boolean not (bool~) play_collision::$13 ← *((byte*) play_collision:: Inversing boolean not (bool~) play_lock_current::$2 ← *((byte*) current_piece_gfx#15 + (byte) play_lock_current::i#2) == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) play_lock_current::$1 ← *((byte*) current_piece_gfx#15 + (byte) play_lock_current::i#2) != (byte/signed byte/word/signed word/dword/signed dword) 0 Inversing boolean not (bool~) play_remove_lines::$7 ← (byte) play_remove_lines::c#0 != (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) play_remove_lines::$6 ← (byte) play_remove_lines::c#0 == (byte/signed byte/word/signed word/dword/signed dword) 0 Inversing boolean not (bool~) play_remove_lines::$10 ← (byte) play_remove_lines::full#2 != (byte/signed byte/word/signed word/dword/signed dword) 1 from (bool~) play_remove_lines::$9 ← (byte) play_remove_lines::full#2 == (byte/signed byte/word/signed word/dword/signed dword) 1 -Inversing boolean not (bool~) main::$16 ← (byte) main::render#3 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) main::$15 ← (byte) main::render#3 != (byte/signed byte/word/signed word/dword/signed dword) 0 +Inversing boolean not (bool~) main::$17 ← (byte) main::render#3 == (byte/signed byte/word/signed word/dword/signed dword) 0 from (bool~) main::$16 ← (byte) main::render#3 != (byte/signed byte/word/signed word/dword/signed dword) 0 Successful SSA optimization Pass2UnaryNotSimplification Alias candidate removed (volatile)(byte) IRQ_RASTER_FIRST#0 = (byte) irq_raster_next#0 (byte) irq_raster_next#20 (byte) irq_raster_next#19 (byte) irq_raster_next#18 (byte) irq_raster_next#17 (byte) irq_raster_next#16 (byte) irq_raster_next#15 -Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $3 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#14 (byte) irq_sprite_ptr#13 (byte) irq_sprite_ptr#12 +Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $4 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#14 (byte) irq_sprite_ptr#13 (byte) irq_sprite_ptr#12 Alias candidate removed (volatile)(byte) irq::toSpritePtr2_return#0 = (byte) irq::toSpritePtr2_$2#0 (byte) irq::toSpritePtr2_return#2 (byte) irq::toSpritePtr2_return#1 (byte) irq::toSpritePtr2_return#3 (byte~) irq::$2 (byte) irq_sprite_ptr#1 Alias (byte*) fill::end#0 = (byte*~) fill::$0 Alias (byte*) fill::addr#0 = (byte*) fill::start#1 -Alias (byte*) current_piece_gfx#35 = (byte*) current_piece_gfx#95 (byte*) current_piece_gfx#96 (byte*) current_piece_gfx#94 (byte*) current_piece_gfx#93 (byte*) current_piece_gfx#92 (byte*) current_piece_gfx#91 (byte*) current_piece_gfx#90 (byte*) current_piece_gfx#84 (byte*) current_piece_gfx#77 (byte*) current_piece_gfx#68 (byte*) current_piece_gfx#61 (byte*) current_piece_gfx#51 -Alias (byte) current_xpos#100 = (byte) current_xpos#105 (byte) current_xpos#106 (byte) current_xpos#104 (byte) current_xpos#103 (byte) current_xpos#102 (byte) current_xpos#101 (byte) current_xpos#96 (byte) current_xpos#90 (byte) current_xpos#83 (byte) current_xpos#73 (byte) current_xpos#64 (byte) current_xpos#46 -Alias (byte) current_ypos#38 = (byte) current_ypos#79 (byte) current_ypos#80 (byte) current_ypos#78 (byte) current_ypos#77 (byte) current_ypos#76 (byte) current_ypos#75 (byte) current_ypos#74 (byte) current_ypos#70 (byte) current_ypos#64 (byte) current_ypos#59 (byte) current_ypos#54 (byte) current_ypos#49 -Alias (byte) current_piece_char#25 = (byte) current_piece_char#83 (byte) current_piece_char#84 (byte) current_piece_char#82 (byte) current_piece_char#81 (byte) current_piece_char#80 (byte) current_piece_char#79 (byte) current_piece_char#78 (byte) current_piece_char#72 (byte) current_piece_char#64 (byte) current_piece_char#53 (byte) current_piece_char#43 (byte) current_piece_char#36 +Alias (byte) render_screen_show#21 = (byte) render_screen_show#50 (byte) render_screen_show#51 (byte) render_screen_show#49 (byte) render_screen_show#48 (byte) render_screen_show#47 (byte) render_screen_show#45 (byte) render_screen_show#42 (byte) render_screen_show#39 (byte) render_screen_show#36 (byte) render_screen_show#33 (byte) render_screen_show#29 (byte) render_screen_show#28 +Alias (byte) render_screen_render#23 = (byte) render_screen_render#63 (byte) render_screen_render#64 (byte) render_screen_render#60 (byte) render_screen_render#58 (byte) render_screen_render#56 (byte) render_screen_render#54 (byte) render_screen_render#52 (byte) render_screen_render#50 (byte) render_screen_render#47 (byte) render_screen_render#43 (byte) render_screen_render#37 (byte) render_screen_render#33 +Alias (byte*) current_piece_gfx#35 = (byte*) current_piece_gfx#95 (byte*) current_piece_gfx#96 (byte*) current_piece_gfx#94 (byte*) current_piece_gfx#93 (byte*) current_piece_gfx#92 (byte*) current_piece_gfx#91 (byte*) current_piece_gfx#90 (byte*) current_piece_gfx#84 (byte*) current_piece_gfx#78 (byte*) current_piece_gfx#68 (byte*) current_piece_gfx#61 (byte*) current_piece_gfx#51 +Alias (byte) current_xpos#100 = (byte) current_xpos#105 (byte) current_xpos#106 (byte) current_xpos#104 (byte) current_xpos#103 (byte) current_xpos#102 (byte) current_xpos#101 (byte) current_xpos#96 (byte) current_xpos#91 (byte) current_xpos#83 (byte) current_xpos#73 (byte) current_xpos#64 (byte) current_xpos#46 +Alias (byte) current_ypos#38 = (byte) current_ypos#79 (byte) current_ypos#80 (byte) current_ypos#78 (byte) current_ypos#77 (byte) current_ypos#76 (byte) current_ypos#75 (byte) current_ypos#74 (byte) current_ypos#70 (byte) current_ypos#65 (byte) current_ypos#59 (byte) current_ypos#54 (byte) current_ypos#49 +Alias (byte) current_piece_char#25 = (byte) current_piece_char#83 (byte) current_piece_char#84 (byte) current_piece_char#82 (byte) current_piece_char#81 (byte) current_piece_char#80 (byte) current_piece_char#79 (byte) current_piece_char#78 (byte) current_piece_char#71 (byte) current_piece_char#64 (byte) current_piece_char#53 (byte) current_piece_char#43 (byte) current_piece_char#36 Alias (byte) keyboard_matrix_read::return#0 = (byte) keyboard_matrix_read::row_pressed_bits#0 (byte~) keyboard_matrix_read::$0 (byte) keyboard_matrix_read::return#3 (byte) keyboard_matrix_read::return#1 Alias (byte) KEY_MODIFIER_SHIFT#0 = (byte~) $0 Alias (byte) keyboard_matrix_read::return#2 = (byte) keyboard_matrix_read::return#4 Alias (byte) keyboard_event_scan::row#2 = (byte) keyboard_event_scan::row#3 (byte) keyboard_event_scan::row#8 (byte) keyboard_event_scan::row#7 Alias (byte) keyboard_event_scan::keycode#11 = (byte) keyboard_event_scan::keycode#7 (byte) keyboard_event_scan::keycode#12 (byte) keyboard_event_scan::keycode#3 -Alias (byte) keyboard_events_size#29 = (byte) keyboard_events_size#36 (byte) keyboard_events_size#45 (byte) keyboard_events_size#61 +Alias (byte) keyboard_events_size#29 = (byte) keyboard_events_size#36 (byte) keyboard_events_size#44 (byte) keyboard_events_size#60 Alias (byte) keyboard_event_scan::row_scan#0 = (byte~) keyboard_event_scan::$0 (byte) keyboard_event_scan::row_scan#4 Alias (byte) keyboard_event_scan::keycode#1 = (byte/signed word/word/dword/signed dword~) keyboard_event_scan::$2 Alias (byte) keyboard_events_size#10 = (byte) keyboard_events_size#21 (byte) keyboard_events_size#37 (byte) keyboard_events_size#22 (byte) keyboard_events_size#11 (byte) keyboard_events_size#12 @@ -4768,17 +5144,17 @@ Alias (byte) keyboard_event_scan::event_type#0 = (byte~) keyboard_event_scan::$9 Alias (byte) keyboard_event_scan::row_scan#3 = (byte) keyboard_event_scan::row_scan#5 Alias (byte) keyboard_event_scan::row#6 = (byte) keyboard_event_scan::row#9 Alias (byte) keyboard_event_scan::keycode#15 = (byte) keyboard_event_scan::keycode#2 -Alias (byte) keyboard_events_size#30 = (byte) keyboard_events_size#62 -Alias (byte) keyboard_events_size#55 = (byte) keyboard_events_size#74 (byte) keyboard_events_size#71 (byte) keyboard_events_size#70 +Alias (byte) keyboard_events_size#30 = (byte) keyboard_events_size#61 +Alias (byte) keyboard_events_size#54 = (byte) keyboard_events_size#74 (byte) keyboard_events_size#71 (byte) keyboard_events_size#70 Alias (byte) keyboard_event_pressed::return#0 = (byte) keyboard_event_pressed::return#7 Alias (byte) keyboard_modifiers#1 = (byte) keyboard_modifiers#18 (byte) keyboard_modifiers#10 Alias (byte) keyboard_event_pressed::return#1 = (byte) keyboard_event_pressed::return#8 Alias (byte) keyboard_modifiers#11 = (byte) keyboard_modifiers#19 (byte) keyboard_modifiers#26 -Alias (byte) keyboard_events_size#63 = (byte) keyboard_events_size#64 (byte) keyboard_events_size#67 +Alias (byte) keyboard_events_size#62 = (byte) keyboard_events_size#63 (byte) keyboard_events_size#67 Alias (byte) keyboard_modifiers#2 = (byte~) keyboard_event_scan::$17 Alias (byte) keyboard_event_pressed::return#2 = (byte) keyboard_event_pressed::return#9 Alias (byte) keyboard_modifiers#12 = (byte) keyboard_modifiers#20 (byte) keyboard_modifiers#27 -Alias (byte) keyboard_events_size#46 = (byte) keyboard_events_size#47 (byte) keyboard_events_size#56 +Alias (byte) keyboard_events_size#45 = (byte) keyboard_events_size#46 (byte) keyboard_events_size#55 Alias (byte) keyboard_modifiers#3 = (byte~) keyboard_event_scan::$21 Alias (byte) keyboard_event_pressed::return#10 = (byte) keyboard_event_pressed::return#3 Alias (byte) keyboard_modifiers#13 = (byte) keyboard_modifiers#21 (byte) keyboard_modifiers#28 (byte) keyboard_modifiers#22 @@ -4791,40 +5167,51 @@ Alias (byte) keyboard_event_pressed::return#11 = (byte) keyboard_event_pressed:: Alias (byte) keyboard_events_size#14 = (byte) keyboard_events_size#25 (byte) keyboard_events_size#15 Alias (byte) keyboard_event_get::return#2 = (byte) keyboard_event_get::return#4 Alias (byte) keyboard_events_size#16 = (byte) keyboard_events_size#5 -Alias (byte) keyboard_events_size#0 = (byte) keyboard_events_size#77 (byte) keyboard_events_size#75 (byte) keyboard_events_size#72 (byte) keyboard_events_size#68 (byte) keyboard_events_size#65 (byte) keyboard_events_size#57 (byte) keyboard_events_size#48 (byte) keyboard_events_size#39 (byte) keyboard_events_size#35 (byte) keyboard_events_size#28 -Alias (byte) keyboard_modifiers#0 = (byte) keyboard_modifiers#58 (byte) keyboard_modifiers#56 (byte) keyboard_modifiers#54 (byte) keyboard_modifiers#52 (byte) keyboard_modifiers#49 (byte) keyboard_modifiers#45 (byte) keyboard_modifiers#39 (byte) keyboard_modifiers#33 (byte) keyboard_modifiers#32 (byte) keyboard_modifiers#25 +Alias (byte) keyboard_events_size#0 = (byte) keyboard_events_size#77 (byte) keyboard_events_size#75 (byte) keyboard_events_size#72 (byte) keyboard_events_size#68 (byte) keyboard_events_size#64 (byte) keyboard_events_size#56 (byte) keyboard_events_size#47 (byte) keyboard_events_size#39 (byte) keyboard_events_size#35 (byte) keyboard_events_size#28 +Alias (byte) keyboard_modifiers#0 = (byte) keyboard_modifiers#58 (byte) keyboard_modifiers#56 (byte) keyboard_modifiers#54 (byte) keyboard_modifiers#52 (byte) keyboard_modifiers#48 (byte) keyboard_modifiers#44 (byte) keyboard_modifiers#38 (byte) keyboard_modifiers#33 (byte) keyboard_modifiers#32 (byte) keyboard_modifiers#25 Alias (byte) sid_rnd::return#0 = (byte) sid_rnd::return#3 (byte) sid_rnd::return#1 -Alias (byte*) PLAYFIELD_SPRITE_PTRS#0 = (byte*~) $1 +Alias (byte*) PLAYFIELD_SPRITE_PTRS_1#0 = (byte*~) $1 +Alias (byte*) PLAYFIELD_SPRITE_PTRS_2#0 = (byte*~) $2 Alias (byte*) render_init::vicSelectGfxBank1_gfx#0 = (byte*) render_init::vicSelectGfxBank1_gfx#1 (byte*) render_init::vicSelectGfxBank1_toDd001_gfx#0 (byte*) render_init::vicSelectGfxBank1_toDd001_gfx#1 Alias (byte) render_init::vicSelectGfxBank1_toDd001_return#0 = (byte/word/dword) render_init::vicSelectGfxBank1_toDd001_$3#0 (byte) render_init::vicSelectGfxBank1_toDd001_return#2 (byte) render_init::vicSelectGfxBank1_toDd001_return#1 (byte) render_init::vicSelectGfxBank1_toDd001_return#3 (byte) render_init::vicSelectGfxBank1_$0#0 -Alias (byte*) render_init::toD0181_screen#0 = (byte*) render_init::toD0181_screen#1 -Alias (byte*) render_init::toD0181_gfx#0 = (byte*) render_init::toD0181_gfx#1 -Alias (byte) render_init::toD0181_return#0 = (byte) render_init::toD0181_$8#0 (byte) render_init::toD0181_return#2 (byte) render_init::toD0181_return#1 (byte) render_init::toD0181_return#3 (byte~) render_init::$1 -Alias (byte*) render_init::li#0 = (byte*~) render_init::$9 -Alias (byte*) render_init::line#0 = (byte*~) render_init::$15 +Alias (byte*) render_init::line#0 = (byte*~) render_init::$9 Alias (byte*) render_init::line#2 = (byte*) render_init::line#3 Alias (byte) render_init::l#2 = (byte) render_init::l#3 +Alias (byte*) render_init::li_1#0 = (byte*~) render_init::$17 +Alias (byte*) render_init::li_2#0 = (byte*~) render_init::$20 +Alias (byte) render_screen_show#0 = (byte) render_screen_show#8 (byte) render_screen_show#1 +Alias (byte) render_screen_render#0 = (byte) render_screen_render#8 (byte) render_screen_render#1 +Alias (byte*) render_show::toD0181_screen#0 = (byte*) render_show::toD0181_screen#1 +Alias (byte*) render_show::toD0181_gfx#0 = (byte*) render_show::toD0181_gfx#1 +Alias (byte) render_show::toD0181_return#0 = (byte) render_show::toD0181_$8#0 (byte) render_show::toD0181_return#2 (byte) render_show::toD0181_return#1 (byte) render_show::toD0181_return#3 (byte~) render_show::$2 (byte) render_show::d018val#1 +Alias (byte*) render_show::toD0182_screen#0 = (byte*) render_show::toD0182_screen#1 +Alias (byte*) render_show::toD0182_gfx#0 = (byte*) render_show::toD0182_gfx#1 +Alias (byte) render_show::toD0182_return#0 = (byte) render_show::toD0182_$8#0 (byte) render_show::toD0182_return#2 (byte) render_show::toD0182_return#1 (byte) render_show::toD0182_return#3 (byte~) render_show::$1 (byte) render_show::d018val#2 +Alias (byte) render_screen_render#10 = (byte) render_screen_render#2 (byte) render_screen_render#3 +Alias (byte) render_screen_show#11 = (byte) render_screen_show#2 (byte) render_screen_show#3 Alias (byte*) render_screen_original::orig#0 = (byte*~) render_screen_original::$1 Alias (byte) render_screen_original::c#0 = (byte/signed word/word/dword/signed dword~) render_screen_original::$3 (byte) render_screen_original::c#3 -Alias (byte*) render_screen_original::screen#8 = (byte*) render_screen_original::screen#9 +Alias (byte*) render_screen_original::screen#10 = (byte*) render_screen_original::screen#9 Alias (byte) render_screen_original::x#5 = (byte) render_screen_original::x#8 Alias (byte*) render_screen_original::orig#1 = (byte*) render_screen_original::orig#6 Alias (byte) render_screen_original::SPACE#6 = (byte) render_screen_original::SPACE#7 Alias (byte) render_screen_original::y#5 = (byte) render_screen_original::y#6 Alias (byte) render_screen_original::y#2 = (byte) render_screen_original::y#3 Alias (byte) render_screen_original::SPACE#2 = (byte) render_screen_original::SPACE#5 -Alias (byte*) render_screen_original::screen#11 = (byte*) render_screen_original::screen#3 +Alias (byte*) render_screen_original::screen#12 = (byte*) render_screen_original::screen#4 Alias (byte*) render_screen_original::orig#7 = (byte*) render_screen_original::orig#8 Alias (byte) render_playfield::i#0 = (byte/signed word/word/dword/signed dword~) render_playfield::$0 Alias (byte) render_playfield::l#3 = (byte) render_playfield::l#4 +Alias (byte) render_screen_render#19 = (byte) render_screen_render#26 Alias (byte) render_playfield::i#1 = (byte) render_playfield::i#4 Alias (byte) render_current::ypos2#0 = (byte~) render_current::$0 +Alias (byte) render_screen_render#12 = (byte) render_screen_render#20 (byte) render_screen_render#36 Alias (byte) render_current::ypos2#2 = (byte) render_current::ypos2#3 (byte) render_current::ypos2#6 Alias (byte) current_xpos#12 = (byte) current_xpos#29 (byte) current_xpos#68 Alias (byte*) current_piece_gfx#22 = (byte*) current_piece_gfx#36 (byte*) current_piece_gfx#67 Alias (byte) render_current::i#3 = (byte) render_current::i#6 (byte) render_current::i#5 Alias (byte) render_current::l#4 = (byte) render_current::l#9 (byte) render_current::l#5 -Alias (byte) current_piece_char#37 = (byte) current_piece_char#51 (byte) current_piece_char#71 +Alias (byte) current_piece_char#37 = (byte) current_piece_char#51 (byte) current_piece_char#70 Alias (byte) render_current::xpos#3 = (byte) render_current::xpos#5 (byte) render_current::xpos#6 (byte) render_current::xpos#4 Alias (byte) current_piece_char#17 = (byte) current_piece_char#26 (byte) current_piece_char#52 (byte) current_piece_char#8 Alias (byte*) render_current::screen_line#1 = (byte*) render_current::screen_line#2 (byte*) render_current::screen_line#3 (byte*) render_current::screen_line#5 @@ -4833,7 +5220,8 @@ Alias (byte) render_current::ypos2#10 = (byte) render_current::ypos2#8 (byte) re Alias (byte) render_current::l#10 = (byte) render_current::l#7 (byte) render_current::l#8 (byte) render_current::l#6 Alias (byte*) current_piece_gfx#11 = (byte*) current_piece_gfx#54 (byte*) current_piece_gfx#38 (byte*) current_piece_gfx#37 Alias (byte) render_current::i#10 = (byte) render_current::i#11 (byte) render_current::i#2 (byte) render_current::i#9 -Alias (byte) current_xpos#80 = (byte) current_xpos#89 (byte) current_xpos#81 (byte) current_xpos#82 +Alias (byte) render_screen_render#40 = (byte) render_screen_render#46 (byte) render_screen_render#41 (byte) render_screen_render#42 +Alias (byte) current_xpos#80 = (byte) current_xpos#90 (byte) current_xpos#81 (byte) current_xpos#82 Alias (byte) sprites_init::xpos#0 = (byte/signed word/word/dword/signed dword/signed byte~) sprites_init::$1 Alias (byte) sprites_init::s2#0 = (byte~) sprites_init::$2 Alias (byte) sprites_init::xpos#1 = (byte/signed word/word/dword/signed dword~) sprites_init::$3 @@ -4865,16 +5253,16 @@ Alias (byte) current_ypos#50 = (byte) current_ypos#51 (byte) current_ypos#60 (by Alias (byte) current_xpos#69 = (byte) current_xpos#70 (byte) current_xpos#84 (byte) current_xpos#85 (byte) current_xpos#71 Alias (byte) current_orientation#51 = (byte) current_orientation#52 (byte) current_orientation#61 (byte) current_orientation#62 (byte) current_orientation#53 Alias (byte*) current_piece#53 = (byte*) current_piece#54 (byte*) current_piece#60 (byte*) current_piece#61 (byte*) current_piece#55 -Alias (byte*) current_piece_gfx#69 = (byte*) current_piece_gfx#70 (byte*) current_piece_gfx#78 (byte*) current_piece_gfx#79 (byte*) current_piece_gfx#71 +Alias (byte*) current_piece_gfx#69 = (byte*) current_piece_gfx#70 (byte*) current_piece_gfx#79 (byte*) current_piece_gfx#80 (byte*) current_piece_gfx#71 Alias (byte) current_piece_char#54 = (byte) current_piece_char#55 (byte) current_piece_char#65 (byte) current_piece_char#66 (byte) current_piece_char#56 Alias (byte) play_move_down::movedown#0 = (byte) play_move_down::movedown#4 Alias (byte) current_movedown_counter#1 = (byte) current_movedown_counter#27 -Alias (byte) current_ypos#65 = (byte) current_ypos#66 -Alias (byte) current_xpos#91 = (byte) current_xpos#92 +Alias (byte) current_ypos#66 = (byte) current_ypos#67 +Alias (byte) current_xpos#92 = (byte) current_xpos#93 Alias (byte) current_orientation#66 = (byte) current_orientation#67 -Alias (byte*) current_piece#66 = (byte*) current_piece#67 +Alias (byte*) current_piece#65 = (byte*) current_piece#66 Alias (byte*) current_piece_gfx#85 = (byte*) current_piece_gfx#86 -Alias (byte) current_piece_char#73 = (byte) current_piece_char#74 +Alias (byte) current_piece_char#72 = (byte) current_piece_char#73 Alias (byte) play_move_down::movedown#7 = (byte) play_move_down::movedown#9 Alias (byte) current_ypos#39 = (byte) current_ypos#40 Alias (byte) current_xpos#49 = (byte) current_xpos#50 @@ -4992,69 +5380,72 @@ Alias (byte) play_remove_lines::w#1 = (byte) play_remove_lines::w#10 (byte) play Alias (byte) play_remove_lines::r#4 = (byte) play_remove_lines::r#8 (byte) play_remove_lines::r#7 Alias (byte) play_remove_lines::w#2 = (byte~) play_remove_lines::$11 Alias (byte) play_remove_lines::w#6 = (byte) play_remove_lines::w#7 -Alias (byte*) current_piece#26 = (byte*) current_piece#62 (byte*) current_piece#68 (byte*) current_piece#57 (byte*) current_piece#48 (byte*) current_piece#37 -Alias (byte) current_orientation#36 = (byte) current_orientation#68 (byte) current_orientation#72 (byte) current_orientation#63 (byte) current_orientation#57 (byte) current_orientation#46 -Alias (byte*) current_piece_gfx#31 = (byte*) current_piece_gfx#80 (byte*) current_piece_gfx#87 (byte*) current_piece_gfx#75 (byte*) current_piece_gfx#62 (byte*) current_piece_gfx#47 -Alias (byte) current_xpos#43 = (byte) current_xpos#93 (byte) current_xpos#97 (byte) current_xpos#86 (byte) current_xpos#76 (byte) current_xpos#60 -Alias (byte) current_ypos#35 = (byte) current_ypos#67 (byte) current_ypos#71 (byte) current_ypos#62 (byte) current_ypos#55 (byte) current_ypos#44 -Alias (byte) current_piece_char#22 = (byte) current_piece_char#67 (byte) current_piece_char#75 (byte) current_piece_char#58 (byte) current_piece_char#46 (byte) current_piece_char#32 -Alias (byte) keyboard_events_size#33 = (byte) keyboard_events_size#76 (byte) keyboard_events_size#78 (byte) keyboard_events_size#73 (byte) keyboard_events_size#69 (byte) keyboard_events_size#66 (byte) keyboard_events_size#58 (byte) keyboard_events_size#49 (byte) keyboard_events_size#40 -Alias (byte) keyboard_modifiers#30 = (byte) keyboard_modifiers#57 (byte) keyboard_modifiers#59 (byte) keyboard_modifiers#55 (byte) keyboard_modifiers#53 (byte) keyboard_modifiers#50 (byte) keyboard_modifiers#46 (byte) keyboard_modifiers#40 (byte) keyboard_modifiers#34 -Alias (byte) current_movedown_counter#24 = (byte) current_movedown_counter#46 (byte) current_movedown_counter#47 (byte) current_movedown_counter#45 (byte) current_movedown_counter#44 (byte) current_movedown_counter#41 (byte) current_movedown_counter#37 (byte) current_movedown_counter#33 (byte) current_movedown_counter#29 -Alias (byte*) current_piece#14 = (byte*) current_piece#5 (byte*) current_piece#49 (byte*) current_piece#39 -Alias (byte) current_orientation#21 = (byte) current_orientation#7 (byte) current_orientation#58 (byte) current_orientation#48 -Alias (byte*) current_piece_gfx#17 = (byte*) current_piece_gfx#6 (byte*) current_piece_gfx#63 (byte*) current_piece_gfx#49 -Alias (byte) current_xpos#24 = (byte) current_xpos#7 (byte) current_xpos#65 (byte) current_xpos#62 -Alias (byte) current_ypos#19 = (byte) current_ypos#5 (byte) current_ypos#23 (byte) current_ypos#46 -Alias (byte) current_piece_char#13 = (byte) current_piece_char#4 (byte) current_piece_char#47 (byte) current_piece_char#34 -Alias (byte) keyboard_events_size#19 = (byte) keyboard_events_size#50 (byte) keyboard_events_size#27 (byte) keyboard_events_size#8 -Alias (byte) keyboard_modifiers#16 = (byte) keyboard_modifiers#41 (byte) keyboard_modifiers#24 (byte) keyboard_modifiers#8 -Alias (byte) current_movedown_counter#12 = (byte) current_movedown_counter#42 (byte) current_movedown_counter#19 (byte) current_movedown_counter#5 +Alias (byte) render_screen_show#18 = (byte) render_screen_show#22 +Alias (byte) render_screen_render#21 = (byte) render_screen_render#29 +Alias (byte*) current_piece#26 = (byte*) current_piece#62 (byte*) current_piece#67 (byte*) current_piece#57 (byte*) current_piece#48 (byte*) current_piece#37 +Alias (byte) current_orientation#36 = (byte) current_orientation#68 (byte) current_orientation#71 (byte) current_orientation#63 (byte) current_orientation#57 (byte) current_orientation#46 +Alias (byte*) current_piece_gfx#31 = (byte*) current_piece_gfx#81 (byte*) current_piece_gfx#87 (byte*) current_piece_gfx#75 (byte*) current_piece_gfx#62 (byte*) current_piece_gfx#47 +Alias (byte) current_xpos#43 = (byte) current_xpos#94 (byte) current_xpos#97 (byte) current_xpos#86 (byte) current_xpos#76 (byte) current_xpos#60 +Alias (byte) current_ypos#35 = (byte) current_ypos#68 (byte) current_ypos#71 (byte) current_ypos#62 (byte) current_ypos#55 (byte) current_ypos#44 +Alias (byte) current_piece_char#22 = (byte) current_piece_char#67 (byte) current_piece_char#74 (byte) current_piece_char#58 (byte) current_piece_char#46 (byte) current_piece_char#32 +Alias (byte) keyboard_events_size#32 = (byte) keyboard_events_size#76 (byte) keyboard_events_size#78 (byte) keyboard_events_size#73 (byte) keyboard_events_size#69 (byte) keyboard_events_size#65 (byte) keyboard_events_size#57 (byte) keyboard_events_size#48 (byte) keyboard_events_size#40 +Alias (byte) keyboard_modifiers#29 = (byte) keyboard_modifiers#57 (byte) keyboard_modifiers#59 (byte) keyboard_modifiers#55 (byte) keyboard_modifiers#53 (byte) keyboard_modifiers#49 (byte) keyboard_modifiers#45 (byte) keyboard_modifiers#39 (byte) keyboard_modifiers#34 +Alias (byte) current_movedown_counter#23 = (byte) current_movedown_counter#46 (byte) current_movedown_counter#47 (byte) current_movedown_counter#45 (byte) current_movedown_counter#44 (byte) current_movedown_counter#40 (byte) current_movedown_counter#37 (byte) current_movedown_counter#33 (byte) current_movedown_counter#29 +Alias (byte) render_screen_show#12 = (byte) render_screen_show#4 (byte) render_screen_show#43 (byte) render_screen_show#40 (byte) render_screen_show#37 (byte) render_screen_show#34 (byte) render_screen_show#30 (byte) render_screen_show#23 +Alias (byte) render_screen_render#13 = (byte) render_screen_render#4 (byte) render_screen_render#48 (byte) render_screen_render#44 (byte) render_screen_render#38 (byte) render_screen_render#25 (byte) render_screen_render#34 (byte) render_screen_render#30 +Alias (byte*) current_piece#14 = (byte*) current_piece#5 (byte*) current_piece#49 (byte*) current_piece#38 +Alias (byte) current_orientation#21 = (byte) current_orientation#7 (byte) current_orientation#58 (byte) current_orientation#47 +Alias (byte*) current_piece_gfx#17 = (byte*) current_piece_gfx#6 (byte*) current_piece_gfx#63 (byte*) current_piece_gfx#48 +Alias (byte) current_xpos#24 = (byte) current_xpos#7 (byte) current_xpos#65 (byte) current_xpos#61 +Alias (byte) current_ypos#19 = (byte) current_ypos#5 (byte) current_ypos#23 (byte) current_ypos#45 +Alias (byte) current_piece_char#13 = (byte) current_piece_char#4 (byte) current_piece_char#47 (byte) current_piece_char#33 +Alias (byte) render_screen_show#15 = (byte) render_screen_show#25 (byte) render_screen_show#20 (byte) render_screen_show#6 +Alias (byte) keyboard_events_size#19 = (byte) keyboard_events_size#49 (byte) keyboard_events_size#27 (byte) keyboard_events_size#8 +Alias (byte) keyboard_modifiers#16 = (byte) keyboard_modifiers#40 (byte) keyboard_modifiers#24 (byte) keyboard_modifiers#8 +Alias (byte) current_movedown_counter#12 = (byte) current_movedown_counter#41 (byte) current_movedown_counter#19 (byte) current_movedown_counter#5 Alias (byte) current_ypos#21 = (byte) current_ypos#72 (byte) current_ypos#37 (byte) current_ypos#7 -Alias (byte*) current_piece#16 = (byte*) current_piece#69 (byte*) current_piece#28 (byte*) current_piece#7 -Alias (byte) current_orientation#10 = (byte) current_orientation#73 (byte) current_orientation#39 (byte) current_orientation#24 +Alias (byte*) current_piece#16 = (byte*) current_piece#68 (byte*) current_piece#28 (byte*) current_piece#7 +Alias (byte) current_orientation#10 = (byte) current_orientation#72 (byte) current_orientation#39 (byte) current_orientation#24 Alias (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#88 (byte*) current_piece_gfx#34 (byte*) current_piece_gfx#9 Alias (byte) current_xpos#10 = (byte) current_xpos#98 (byte) current_xpos#45 (byte) current_xpos#27 -Alias (byte) current_piece_char#15 = (byte) current_piece_char#76 (byte) current_piece_char#24 (byte) current_piece_char#6 -Alias (byte) keyboard_events_size#41 = (byte) keyboard_events_size#51 -Alias (byte) keyboard_modifiers#35 = (byte) keyboard_modifiers#42 -Alias (byte) current_movedown_counter#38 = (byte) current_movedown_counter#43 -Alias (byte) current_ypos#68 = (byte) current_ypos#73 -Alias (byte*) current_piece#63 = (byte*) current_piece#70 -Alias (byte) current_orientation#69 = (byte) current_orientation#74 -Alias (byte*) current_piece_gfx#81 = (byte*) current_piece_gfx#89 -Alias (byte) current_xpos#94 = (byte) current_xpos#99 -Alias (byte) current_piece_char#68 = (byte) current_piece_char#77 -Alias (byte) keyboard_events_size#26 = (byte) keyboard_events_size#42 (byte) keyboard_events_size#34 -Alias (byte) keyboard_modifiers#23 = (byte) keyboard_modifiers#36 (byte) keyboard_modifiers#31 -Alias (byte) current_movedown_counter#14 = (byte) current_movedown_counter#39 (byte) current_movedown_counter#34 (byte) current_movedown_counter#30 (byte) current_movedown_counter#25 -Alias (byte) current_ypos#36 = (byte) current_ypos#69 (byte) current_ypos#63 (byte) current_ypos#56 (byte) current_ypos#47 -Alias (byte*) current_piece#27 = (byte*) current_piece#64 (byte*) current_piece#58 (byte*) current_piece#50 (byte*) current_piece#40 -Alias (byte) current_orientation#37 = (byte) current_orientation#70 (byte) current_orientation#64 (byte) current_orientation#59 (byte) current_orientation#49 -Alias (byte*) current_piece_gfx#32 = (byte*) current_piece_gfx#82 (byte*) current_piece_gfx#76 (byte*) current_piece_gfx#64 (byte*) current_piece_gfx#50 -Alias (byte) current_xpos#44 = (byte) current_xpos#95 (byte) current_xpos#87 (byte) current_xpos#77 (byte) current_xpos#63 -Alias (byte) current_piece_char#23 = (byte) current_piece_char#69 (byte) current_piece_char#59 (byte) current_piece_char#48 (byte) current_piece_char#35 +Alias (byte) current_piece_char#15 = (byte) current_piece_char#75 (byte) current_piece_char#24 (byte) current_piece_char#6 +Alias (byte) render_screen_render#15 = (byte) render_screen_render#61 (byte) render_screen_render#22 (byte) render_screen_render#6 +Alias (byte) render_screen_show#13 = (byte) render_screen_show#26 (byte) render_screen_show#19 (byte) render_screen_show#46 (byte) render_screen_show#44 (byte) render_screen_show#41 (byte) render_screen_show#38 (byte) render_screen_show#35 (byte) render_screen_show#31 (byte) render_screen_show#32 (byte) render_screen_show#27 (byte) render_screen_show#17 +Alias (byte) keyboard_events_size#26 = (byte) keyboard_events_size#50 (byte) keyboard_events_size#41 (byte) keyboard_events_size#34 +Alias (byte) keyboard_modifiers#23 = (byte) keyboard_modifiers#41 (byte) keyboard_modifiers#35 (byte) keyboard_modifiers#31 +Alias (byte) current_movedown_counter#14 = (byte) current_movedown_counter#42 (byte) current_movedown_counter#38 (byte) current_movedown_counter#34 (byte) current_movedown_counter#30 (byte) current_movedown_counter#25 +Alias (byte) current_ypos#36 = (byte) current_ypos#73 (byte) current_ypos#69 (byte) current_ypos#63 (byte) current_ypos#56 (byte) current_ypos#47 +Alias (byte*) current_piece#27 = (byte*) current_piece#69 (byte*) current_piece#63 (byte*) current_piece#58 (byte*) current_piece#50 (byte*) current_piece#40 +Alias (byte) current_orientation#37 = (byte) current_orientation#73 (byte) current_orientation#69 (byte) current_orientation#64 (byte) current_orientation#59 (byte) current_orientation#49 +Alias (byte*) current_piece_gfx#32 = (byte*) current_piece_gfx#89 (byte*) current_piece_gfx#82 (byte*) current_piece_gfx#76 (byte*) current_piece_gfx#64 (byte*) current_piece_gfx#50 +Alias (byte) current_xpos#44 = (byte) current_xpos#99 (byte) current_xpos#95 (byte) current_xpos#87 (byte) current_xpos#77 (byte) current_xpos#63 +Alias (byte) current_piece_char#23 = (byte) current_piece_char#76 (byte) current_piece_char#68 (byte) current_piece_char#59 (byte) current_piece_char#48 (byte) current_piece_char#35 +Alias (byte) render_screen_render#17 = (byte) render_screen_render#62 (byte) render_screen_render#59 (byte) render_screen_render#57 (byte) render_screen_render#55 (byte) render_screen_render#53 (byte) render_screen_render#51 (byte) render_screen_render#49 (byte) render_screen_render#45 (byte) render_screen_render#39 (byte) render_screen_render#24 (byte) render_screen_render#32 Alias (byte) keyboard_events_size#17 = (byte) keyboard_events_size#6 -Alias (byte) keyboard_modifiers#15 = (byte) keyboard_modifiers#7 (byte) keyboard_modifiers#51 (byte) keyboard_modifiers#47 (byte) keyboard_modifiers#43 (byte) keyboard_modifiers#37 (byte) keyboard_modifiers#48 (byte) keyboard_modifiers#44 (byte) keyboard_modifiers#38 +Alias (byte) keyboard_modifiers#15 = (byte) keyboard_modifiers#7 (byte) keyboard_modifiers#50 (byte) keyboard_modifiers#46 (byte) keyboard_modifiers#42 (byte) keyboard_modifiers#36 (byte) keyboard_modifiers#51 (byte) keyboard_modifiers#47 (byte) keyboard_modifiers#43 (byte) keyboard_modifiers#37 Alias (byte) keyboard_event_get::return#3 = (byte) keyboard_event_get::return#5 -Alias (byte) keyboard_events_size#18 = (byte) keyboard_events_size#7 (byte) keyboard_events_size#59 (byte) keyboard_events_size#52 (byte) keyboard_events_size#43 (byte) keyboard_events_size#60 (byte) keyboard_events_size#53 (byte) keyboard_events_size#44 -Alias (byte) main::key_event#0 = (byte~) main::$11 (byte) main::key_event#1 (byte) main::key_event#2 +Alias (byte) keyboard_events_size#18 = (byte) keyboard_events_size#7 (byte) keyboard_events_size#58 (byte) keyboard_events_size#51 (byte) keyboard_events_size#42 (byte) keyboard_events_size#66 (byte) keyboard_events_size#59 (byte) keyboard_events_size#52 (byte) keyboard_events_size#43 +Alias (byte) main::key_event#0 = (byte~) main::$12 (byte) main::key_event#1 (byte) main::key_event#2 Alias (byte) play_move_down::return#3 = (byte) play_move_down::return#5 Alias (byte) main::render#0 = (byte) main::render#4 -Alias (byte) current_movedown_counter#11 = (byte) current_movedown_counter#4 (byte) current_movedown_counter#35 (byte) current_movedown_counter#31 (byte) current_movedown_counter#40 (byte) current_movedown_counter#36 (byte) current_movedown_counter#32 -Alias (byte) current_ypos#20 = (byte) current_ypos#6 (byte) current_ypos#53 (byte) current_ypos#57 (byte) current_ypos#48 (byte) current_ypos#24 (byte) current_ypos#58 -Alias (byte*) current_piece#15 = (byte*) current_piece#6 (byte*) current_piece#56 (byte*) current_piece#51 (byte*) current_piece#65 (byte*) current_piece#59 (byte*) current_piece#52 +Alias (byte) current_movedown_counter#11 = (byte) current_movedown_counter#4 (byte) current_movedown_counter#35 (byte) current_movedown_counter#31 (byte) current_movedown_counter#43 (byte) current_movedown_counter#39 (byte) current_movedown_counter#36 (byte) current_movedown_counter#32 +Alias (byte) current_ypos#20 = (byte) current_ypos#6 (byte) current_ypos#53 (byte) current_ypos#57 (byte) current_ypos#48 (byte) current_ypos#24 (byte) current_ypos#64 (byte) current_ypos#58 +Alias (byte*) current_piece#15 = (byte*) current_piece#6 (byte*) current_piece#56 (byte*) current_piece#51 (byte*) current_piece#70 (byte*) current_piece#64 (byte*) current_piece#59 (byte*) current_piece#52 Alias (byte) current_orientation#22 = (byte) current_orientation#8 (byte) current_orientation#38 Alias (byte*) current_piece_gfx#18 = (byte*) current_piece_gfx#7 (byte*) current_piece_gfx#33 Alias (byte) current_xpos#25 = (byte) current_xpos#8 -Alias (byte) current_piece_char#14 = (byte) current_piece_char#5 (byte) current_piece_char#60 (byte) current_piece_char#49 (byte) current_piece_char#70 (byte) current_piece_char#61 (byte) current_piece_char#50 +Alias (byte) current_piece_char#14 = (byte) current_piece_char#5 (byte) current_piece_char#60 (byte) current_piece_char#49 (byte) current_piece_char#77 (byte) current_piece_char#69 (byte) current_piece_char#61 (byte) current_piece_char#50 Alias (byte) play_move_leftright::return#4 = (byte) play_move_leftright::return#6 Alias (byte) main::render#1 = (byte) main::render#5 -Alias (byte) current_xpos#26 = (byte) current_xpos#9 (byte) current_xpos#78 (byte) current_xpos#88 (byte) current_xpos#66 (byte) current_xpos#79 +Alias (byte) current_xpos#26 = (byte) current_xpos#9 (byte) current_xpos#78 (byte) current_xpos#88 (byte) current_xpos#66 (byte) current_xpos#89 (byte) current_xpos#79 Alias (byte) play_move_rotate::return#4 = (byte) play_move_rotate::return#6 Alias (byte) main::render#2 = (byte) main::render#6 -Alias (byte) current_orientation#23 = (byte) current_orientation#9 (byte) current_orientation#71 (byte) current_orientation#65 (byte) current_orientation#60 -Alias (byte*) current_piece_gfx#19 = (byte*) current_piece_gfx#8 (byte*) current_piece_gfx#83 (byte*) current_piece_gfx#66 (byte*) current_piece_gfx#65 +Alias (byte) current_orientation#23 = (byte) current_orientation#9 (byte) current_orientation#74 (byte) current_orientation#70 (byte) current_orientation#65 (byte) current_orientation#60 +Alias (byte*) current_piece_gfx#19 = (byte*) current_piece_gfx#8 (byte*) current_piece_gfx#83 (byte*) current_piece_gfx#66 (byte*) current_piece_gfx#77 (byte*) current_piece_gfx#65 +Alias (byte) render_screen_render#14 = (byte) render_screen_render#5 +Alias (byte) render_screen_show#14 = (byte) render_screen_show#5 +Alias (byte) render_screen_show#16 = (byte) render_screen_show#7 +Alias (byte) render_screen_render#16 = (byte) render_screen_render#7 Alias (byte*) current_piece#17 = (byte*) current_piece#8 Alias (byte) current_orientation#11 = (byte) current_orientation#25 Alias (byte*) current_piece_gfx#10 = (byte*) current_piece_gfx#21 @@ -5066,14 +5457,14 @@ Alias (byte) keyboard_modifiers#17 = (byte) keyboard_modifiers#9 Alias (byte) current_movedown_counter#13 = (byte) current_movedown_counter#6 Successful SSA optimization Pass2AliasElimination Alias candidate removed (volatile)(byte) IRQ_RASTER_FIRST#0 = (byte) irq_raster_next#0 (byte) irq_raster_next#20 (byte) irq_raster_next#19 (byte) irq_raster_next#18 (byte) irq_raster_next#17 (byte) irq_raster_next#16 (byte) irq_raster_next#15 -Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $3 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#14 (byte) irq_sprite_ptr#13 (byte) irq_sprite_ptr#12 +Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $4 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#14 (byte) irq_sprite_ptr#13 (byte) irq_sprite_ptr#12 Alias candidate removed (volatile)(byte) irq::toSpritePtr2_return#0 = (byte) irq::toSpritePtr2_$2#0 (byte) irq::toSpritePtr2_return#2 (byte) irq::toSpritePtr2_return#1 (byte) irq::toSpritePtr2_return#3 (byte~) irq::$2 (byte) irq_sprite_ptr#1 Alias (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#4 Alias (byte) keyboard_event_scan::col#2 = (byte) keyboard_event_scan::col#3 Alias (byte) keyboard_event_scan::row_scan#1 = (byte) keyboard_event_scan::row_scan#3 Alias (byte) keyboard_event_scan::row#10 = (byte) keyboard_event_scan::row#6 -Alias (byte) keyboard_events_size#13 = (byte) keyboard_events_size#63 (byte) keyboard_events_size#55 (byte) keyboard_events_size#46 (byte) keyboard_events_size#23 -Alias (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#8 +Alias (byte) keyboard_events_size#13 = (byte) keyboard_events_size#62 (byte) keyboard_events_size#54 (byte) keyboard_events_size#45 (byte) keyboard_events_size#23 +Alias (byte*) render_screen_original::screen#10 = (byte*) render_screen_original::screen#6 Alias (byte) render_screen_original::x#5 = (byte) render_screen_original::x#6 Alias (byte*) render_screen_original::orig#1 = (byte*) render_screen_original::orig#4 Alias (byte) render_screen_original::SPACE#4 = (byte) render_screen_original::SPACE#6 @@ -5084,6 +5475,7 @@ Alias (byte) render_current::ypos2#10 = (byte) render_current::ypos2#5 Alias (byte) render_current::l#10 = (byte) render_current::l#3 Alias (byte*) current_piece_gfx#11 = (byte*) current_piece_gfx#23 Alias (byte) render_current::i#10 = (byte) render_current::i#7 +Alias (byte) render_screen_render#35 = (byte) render_screen_render#40 Alias (byte) current_xpos#67 = (byte) current_xpos#80 Alias (byte) current_piece_char#17 = (byte) current_piece_char#38 Alias (byte*) render_current::screen_line#1 = (byte*) render_current::screen_line#4 @@ -5092,12 +5484,12 @@ Alias (byte) irq_raster_next#12 = (byte) irq_raster_next#3 Alias (byte) irq_sprite_ypos#10 = (byte) irq_sprite_ypos#11 Alias (byte) irq_sprite_ptr#10 = (byte) irq_sprite_ptr#3 Alias (byte) current_movedown_counter#1 = (byte) current_movedown_counter#15 (byte) current_movedown_counter#28 (byte) current_movedown_counter#18 -Alias (byte) current_ypos#10 = (byte) current_ypos#50 (byte) current_ypos#65 (byte) current_ypos#39 -Alias (byte) current_xpos#13 = (byte) current_xpos#69 (byte) current_xpos#91 (byte) current_xpos#49 +Alias (byte) current_ypos#10 = (byte) current_ypos#50 (byte) current_ypos#66 (byte) current_ypos#39 +Alias (byte) current_xpos#13 = (byte) current_xpos#69 (byte) current_xpos#92 (byte) current_xpos#49 Alias (byte) current_orientation#12 = (byte) current_orientation#51 (byte) current_orientation#66 (byte) current_orientation#41 -Alias (byte*) current_piece#18 = (byte*) current_piece#53 (byte*) current_piece#66 (byte*) current_piece#42 +Alias (byte*) current_piece#18 = (byte*) current_piece#53 (byte*) current_piece#65 (byte*) current_piece#42 Alias (byte*) current_piece_gfx#24 = (byte*) current_piece_gfx#69 (byte*) current_piece_gfx#85 (byte*) current_piece_gfx#55 -Alias (byte) current_piece_char#18 = (byte) current_piece_char#54 (byte) current_piece_char#73 (byte) current_piece_char#39 +Alias (byte) current_piece_char#18 = (byte) current_piece_char#54 (byte) current_piece_char#72 (byte) current_piece_char#39 Alias (byte) current_xpos#16 = (byte) current_xpos#37 Alias (byte) current_xpos#21 = (byte) current_xpos#39 Alias (byte) current_ypos#16 = (byte) current_ypos#32 @@ -5126,18 +5518,18 @@ Alias (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#8 Alias (byte) play_remove_lines::x#2 = (byte) play_remove_lines::x#3 Alias (byte) play_remove_lines::r#1 = (byte) play_remove_lines::r#4 (byte) play_remove_lines::r#5 Alias (byte) play_remove_lines::y#2 = (byte) play_remove_lines::y#3 (byte) play_remove_lines::y#6 -Alias (byte*) current_piece#15 = (byte*) current_piece#38 -Alias (byte) current_orientation#23 = (byte) current_orientation#47 -Alias (byte*) current_piece_gfx#19 = (byte*) current_piece_gfx#48 -Alias (byte) current_xpos#26 = (byte) current_xpos#61 -Alias (byte) current_ypos#20 = (byte) current_ypos#45 -Alias (byte) current_piece_char#14 = (byte) current_piece_char#33 -Alias (byte) keyboard_events_size#18 = (byte) keyboard_events_size#32 -Alias (byte) keyboard_modifiers#15 = (byte) keyboard_modifiers#29 -Alias (byte) current_movedown_counter#11 = (byte) current_movedown_counter#23 +Alias (byte*) current_piece#15 = (byte*) current_piece#39 +Alias (byte) current_orientation#23 = (byte) current_orientation#48 +Alias (byte*) current_piece_gfx#19 = (byte*) current_piece_gfx#49 +Alias (byte) current_xpos#26 = (byte) current_xpos#62 +Alias (byte) current_ypos#20 = (byte) current_ypos#46 +Alias (byte) current_piece_char#14 = (byte) current_piece_char#34 +Alias (byte) keyboard_events_size#18 = (byte) keyboard_events_size#33 +Alias (byte) keyboard_modifiers#15 = (byte) keyboard_modifiers#30 +Alias (byte) current_movedown_counter#11 = (byte) current_movedown_counter#24 Successful SSA optimization Pass2AliasElimination Alias candidate removed (volatile)(byte) IRQ_RASTER_FIRST#0 = (byte) irq_raster_next#0 (byte) irq_raster_next#20 (byte) irq_raster_next#19 (byte) irq_raster_next#18 (byte) irq_raster_next#17 (byte) irq_raster_next#16 (byte) irq_raster_next#15 -Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $3 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#14 (byte) irq_sprite_ptr#13 (byte) irq_sprite_ptr#12 +Alias candidate removed (volatile)(byte) toSpritePtr1_return#0 = (byte) toSpritePtr1_$2#0 (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#1 (byte) toSpritePtr1_return#3 (byte~) $4 (byte) irq_sprite_ptr#0 (byte) irq_sprite_ptr#14 (byte) irq_sprite_ptr#13 (byte) irq_sprite_ptr#12 Alias candidate removed (volatile)(byte) irq::toSpritePtr2_return#0 = (byte) irq::toSpritePtr2_$2#0 (byte) irq::toSpritePtr2_return#2 (byte) irq::toSpritePtr2_return#1 (byte) irq::toSpritePtr2_return#3 (byte~) irq::$2 (byte) irq_sprite_ptr#1 Self Phi Eliminated (byte) fill::val#1 Self Phi Eliminated (byte*) fill::end#1 @@ -5154,11 +5546,13 @@ Self Phi Eliminated (byte) render_screen_original::SPACE#2 Self Phi Eliminated (byte) render_screen_original::y#2 Self Phi Eliminated (byte*) render_screen_original::orig#7 Self Phi Eliminated (byte) render_playfield::l#3 +Self Phi Eliminated (byte) render_screen_render#19 Self Phi Eliminated (byte*) current_piece_gfx#11 Self Phi Eliminated (byte) render_current::ypos2#10 Self Phi Eliminated (byte) render_current::l#10 Self Phi Eliminated (byte) current_piece_char#17 Self Phi Eliminated (byte*) render_current::screen_line#1 +Self Phi Eliminated (byte) render_screen_render#35 Self Phi Eliminated (byte) current_xpos#67 Self Phi Eliminated (byte) irq_sprite_ypos#5 Self Phi Eliminated (byte) irq_sprite_ptr#4 @@ -5176,15 +5570,7 @@ Self Phi Eliminated (byte) play_lock_current::ypos2#3 Self Phi Eliminated (byte) play_lock_current::l#2 Self Phi Eliminated (byte) current_xpos#42 Self Phi Eliminated (byte) play_remove_lines::y#2 -Self Phi Eliminated (byte) keyboard_events_size#41 -Self Phi Eliminated (byte) keyboard_modifiers#35 -Self Phi Eliminated (byte) current_movedown_counter#38 -Self Phi Eliminated (byte) current_ypos#68 -Self Phi Eliminated (byte*) current_piece#63 -Self Phi Eliminated (byte) current_orientation#69 -Self Phi Eliminated (byte*) current_piece_gfx#81 -Self Phi Eliminated (byte) current_xpos#94 -Self Phi Eliminated (byte) current_piece_char#68 +Self Phi Eliminated (byte) render_screen_show#13 Self Phi Eliminated (byte) keyboard_events_size#26 Self Phi Eliminated (byte) keyboard_modifiers#23 Self Phi Eliminated (byte) current_movedown_counter#14 @@ -5194,7 +5580,10 @@ Self Phi Eliminated (byte) current_orientation#37 Self Phi Eliminated (byte*) current_piece_gfx#32 Self Phi Eliminated (byte) current_xpos#44 Self Phi Eliminated (byte) current_piece_char#23 +Self Phi Eliminated (byte) render_screen_render#17 Successful SSA optimization Pass2SelfPhiElimination +Redundant Phi (byte) render_screen_show#21 VOID +Redundant Phi (byte) render_screen_render#23 VOID Redundant Phi (byte*) current_piece_gfx#35 VOID Redundant Phi (byte) current_xpos#100 VOID Redundant Phi (byte) current_ypos#38 VOID @@ -5205,13 +5594,15 @@ Redundant Phi (byte) fill::val#2 (byte) fill::val#0 Redundant Phi (byte) fill::val#1 (byte) fill::val#2 Redundant Phi (byte*) fill::end#1 (byte*) fill::end#0 Redundant Phi (byte) keyboard_matrix_read::rowid#1 (byte) keyboard_matrix_read::rowid#0 -Redundant Phi (byte) keyboard_events_size#54 (byte) keyboard_events_size#26 +Redundant Phi (byte) keyboard_events_size#53 (byte) keyboard_events_size#26 Redundant Phi (byte) keyboard_event_scan::row_scan#1 (byte) keyboard_event_scan::row_scan#0 Redundant Phi (byte) keyboard_event_scan::row#10 (byte) keyboard_event_scan::row#2 Redundant Phi (byte) keyboard_events_size#14 (byte) keyboard_events_size#17 Redundant Phi (byte*) render_init::line#2 (byte*) render_init::line#4 Redundant Phi (byte) render_init::l#2 (byte) render_init::l#4 -Redundant Phi (byte*) render_screen_original::screen#10 (byte*) render_screen_original::screen#0 +Redundant Phi (byte) render_screen_show#9 (byte) render_screen_show#13 +Redundant Phi (byte) render_screen_render#9 (byte) render_screen_render#17 +Redundant Phi (byte) render_screen_show#10 (byte) render_screen_show#13 Redundant Phi (byte) render_screen_original::SPACE#1 (byte) render_screen_original::SPACE#3 Redundant Phi (byte*) render_screen_original::orig#3 (byte*) render_screen_original::orig#5 Redundant Phi (byte) render_screen_original::y#7 (byte) render_screen_original::y#8 @@ -5221,11 +5612,13 @@ Redundant Phi (byte) render_screen_original::SPACE#2 (byte) render_screen_origin Redundant Phi (byte) render_screen_original::y#2 (byte) render_screen_original::y#4 Redundant Phi (byte*) render_screen_original::orig#7 (byte*) render_screen_original::orig#1 Redundant Phi (byte) render_playfield::l#3 (byte) render_playfield::l#2 +Redundant Phi (byte) render_screen_render#19 (byte) render_screen_render#11 Redundant Phi (byte*) current_piece_gfx#11 (byte*) current_piece_gfx#22 Redundant Phi (byte) render_current::ypos2#10 (byte) render_current::ypos2#2 Redundant Phi (byte) render_current::l#10 (byte) render_current::l#4 Redundant Phi (byte) current_piece_char#17 (byte) current_piece_char#37 Redundant Phi (byte*) render_current::screen_line#1 (byte*) render_current::screen_line#0 +Redundant Phi (byte) render_screen_render#35 (byte) render_screen_render#12 Redundant Phi (byte) current_xpos#67 (byte) current_xpos#12 Redundant Phi (byte) irq_raster_next#20 (byte) irq_raster_next#0 Redundant Phi (byte) toSpritePtr1_return#2 (byte) toSpritePtr1_return#0 @@ -5287,39 +5680,36 @@ Redundant Phi (byte) play_lock_current::ypos2#3 (byte) play_lock_current::ypos2# Redundant Phi (byte) play_lock_current::l#2 (byte) play_lock_current::l#6 Redundant Phi (byte) current_xpos#42 (byte) current_xpos#22 Redundant Phi (byte) play_remove_lines::y#2 (byte) play_remove_lines::y#8 +Redundant Phi (byte) render_screen_show#18 (byte) render_screen_show#21 +Redundant Phi (byte) render_screen_render#21 (byte) render_screen_render#23 Redundant Phi (byte*) current_piece#26 (byte*) current_piece#0 Redundant Phi (byte) current_orientation#36 (byte) current_orientation#0 Redundant Phi (byte*) current_piece_gfx#31 (byte*) current_piece_gfx#35 Redundant Phi (byte) current_xpos#43 (byte) current_xpos#100 Redundant Phi (byte) current_ypos#35 (byte) current_ypos#38 Redundant Phi (byte) current_piece_char#22 (byte) current_piece_char#25 -Redundant Phi (byte) keyboard_events_size#33 (byte) keyboard_events_size#0 -Redundant Phi (byte) keyboard_modifiers#30 (byte) keyboard_modifiers#0 -Redundant Phi (byte) current_movedown_counter#24 (byte) current_movedown_counter#0 +Redundant Phi (byte) keyboard_events_size#32 (byte) keyboard_events_size#0 +Redundant Phi (byte) keyboard_modifiers#29 (byte) keyboard_modifiers#0 +Redundant Phi (byte) current_movedown_counter#23 (byte) current_movedown_counter#0 +Redundant Phi (byte) render_screen_show#12 (byte) render_screen_show#0 +Redundant Phi (byte) render_screen_render#13 (byte) render_screen_render#0 Redundant Phi (byte*) current_piece#14 (byte*) current_piece#13 Redundant Phi (byte) current_orientation#21 (byte) current_orientation#20 Redundant Phi (byte*) current_piece_gfx#17 (byte*) current_piece_gfx#16 Redundant Phi (byte) current_xpos#24 (byte) current_xpos#23 Redundant Phi (byte) current_ypos#19 (byte) current_ypos#18 Redundant Phi (byte) current_piece_char#13 (byte) current_piece_char#12 -Redundant Phi (byte) keyboard_events_size#41 (byte) keyboard_events_size#19 -Redundant Phi (byte) keyboard_modifiers#35 (byte) keyboard_modifiers#16 -Redundant Phi (byte) current_movedown_counter#38 (byte) current_movedown_counter#12 -Redundant Phi (byte) current_ypos#68 (byte) current_ypos#21 -Redundant Phi (byte*) current_piece#63 (byte*) current_piece#16 -Redundant Phi (byte) current_orientation#69 (byte) current_orientation#10 -Redundant Phi (byte*) current_piece_gfx#81 (byte*) current_piece_gfx#20 -Redundant Phi (byte) current_xpos#94 (byte) current_xpos#10 -Redundant Phi (byte) current_piece_char#68 (byte) current_piece_char#15 -Redundant Phi (byte) keyboard_events_size#26 (byte) keyboard_events_size#41 -Redundant Phi (byte) keyboard_modifiers#23 (byte) keyboard_modifiers#35 -Redundant Phi (byte) current_movedown_counter#14 (byte) current_movedown_counter#38 -Redundant Phi (byte) current_ypos#36 (byte) current_ypos#68 -Redundant Phi (byte*) current_piece#27 (byte*) current_piece#63 -Redundant Phi (byte) current_orientation#37 (byte) current_orientation#69 -Redundant Phi (byte*) current_piece_gfx#32 (byte*) current_piece_gfx#81 -Redundant Phi (byte) current_xpos#44 (byte) current_xpos#94 -Redundant Phi (byte) current_piece_char#23 (byte) current_piece_char#68 +Redundant Phi (byte) render_screen_show#13 (byte) render_screen_show#15 +Redundant Phi (byte) keyboard_events_size#26 (byte) keyboard_events_size#19 +Redundant Phi (byte) keyboard_modifiers#23 (byte) keyboard_modifiers#16 +Redundant Phi (byte) current_movedown_counter#14 (byte) current_movedown_counter#12 +Redundant Phi (byte) current_ypos#36 (byte) current_ypos#21 +Redundant Phi (byte*) current_piece#27 (byte*) current_piece#16 +Redundant Phi (byte) current_orientation#37 (byte) current_orientation#10 +Redundant Phi (byte*) current_piece_gfx#32 (byte*) current_piece_gfx#20 +Redundant Phi (byte) current_xpos#44 (byte) current_xpos#10 +Redundant Phi (byte) current_piece_char#23 (byte) current_piece_char#15 +Redundant Phi (byte) render_screen_render#17 (byte) render_screen_render#15 Redundant Phi (byte) keyboard_events_size#17 (byte) keyboard_events_size#13 Redundant Phi (byte) keyboard_modifiers#15 (byte) keyboard_modifiers#14 Redundant Phi (byte) keyboard_events_size#18 (byte) keyboard_events_size#16 @@ -5333,8 +5723,12 @@ Redundant Phi (byte) current_piece_char#14 (byte) current_piece_char#1 Redundant Phi (byte) current_xpos#26 (byte) current_xpos#19 Redundant Phi (byte) current_orientation#23 (byte) current_orientation#19 Redundant Phi (byte*) current_piece_gfx#19 (byte*) current_piece_gfx#14 +Redundant Phi (byte) render_screen_render#14 (byte) render_screen_render#10 +Redundant Phi (byte) render_screen_show#14 (byte) render_screen_show#11 Redundant Phi (byte) irq_sprite_ptr#12 (byte) irq_sprite_ptr#13 Redundant Phi (byte) irq_raster_next#15 (byte) irq_raster_next#16 +Redundant Phi (byte) render_screen_show#16 (byte) render_screen_show#15 +Redundant Phi (byte) render_screen_render#16 (byte) render_screen_render#15 Redundant Phi (byte*) current_piece#17 (byte*) current_piece#16 Redundant Phi (byte) current_orientation#11 (byte) current_orientation#10 Redundant Phi (byte*) current_piece_gfx#10 (byte*) current_piece_gfx#20 @@ -5348,6 +5742,7 @@ Successful SSA optimization Pass2RedundantPhiElimination Redundant Phi (byte) keyboard_event_scan::row#4 (byte) keyboard_event_scan::row#2 Redundant Phi (byte) render_current::ypos2#4 (byte) render_current::ypos2#2 Redundant Phi (byte) render_current::l#2 (byte) render_current::l#4 +Redundant Phi (byte) render_screen_render#28 (byte) render_screen_render#12 Redundant Phi (byte) current_xpos#48 (byte) current_xpos#12 Redundant Phi (byte*) current_piece_gfx#53 (byte*) current_piece_gfx#22 Redundant Phi (byte) current_piece_char#63 (byte) current_piece_char#37 @@ -5364,19 +5759,20 @@ Simple Condition (bool~) keyboard_event_scan::$20 if((byte~) keyboard_event_scan Simple Condition (bool~) keyboard_event_scan::$24 if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 Simple Condition (bool~) keyboard_event_scan::$28 if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@12 Simple Condition (bool~) keyboard_event_get::$0 if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@1 -Simple Condition (bool~) render_init::$12 if((byte) render_init::i#1!=rangelast(0,render_init::$10)) goto render_init::@1 -Simple Condition (bool~) render_init::$19 if((byte) render_init::c#1!=rangelast(0,render_init::$17)) goto render_init::@3 -Simple Condition (bool~) render_init::$20 if((byte) render_init::l#1!=rangelast(2,render_init::$16)) goto render_init::@2 +Simple Condition (bool~) render_init::$13 if((byte) render_init::c#1!=rangelast(0,render_init::$11)) goto render_init::@2 +Simple Condition (bool~) render_init::$14 if((byte) render_init::l#1!=rangelast(2,render_init::$10)) goto render_init::@1 +Simple Condition (bool~) render_init::$24 if((byte) render_init::i#1!=rangelast(0,render_init::$21)) goto render_init::@3 +Simple Condition (bool~) render_show::$0 if((byte) render_screen_show#15==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_show::@1 Simple Condition (bool~) render_screen_original::$2 if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 Simple Condition (bool~) render_screen_original::$8 if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 Simple Condition (bool~) render_screen_original::$9 if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 Simple Condition (bool~) render_screen_original::$10 if((byte) render_screen_original::y#1!=rangelast(0,24)) goto render_screen_original::@1 -Simple Condition (bool~) render_playfield::$4 if((byte) render_playfield::c#1!=rangelast(0,render_playfield::$3)) goto render_playfield::@2 -Simple Condition (bool~) render_playfield::$5 if((byte) render_playfield::l#1!=rangelast(2,render_playfield::$1)) goto render_playfield::@1 -Simple Condition (bool~) render_current::$10 if((byte) render_current::l#1!=rangelast(0,3)) goto render_current::@1 -Simple Condition (bool~) render_current::$6 if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 -Simple Condition (bool~) render_current::$9 if((byte) render_current::c#1!=rangelast(0,3)) goto render_current::@4 -Simple Condition (bool~) render_current::$8 if((byte) render_current::xpos#2>=(byte) PLAYFIELD_COLS#0) goto render_current::@6 +Simple Condition (bool~) render_playfield::$5 if((byte) render_playfield::c#1!=rangelast(0,render_playfield::$4)) goto render_playfield::@2 +Simple Condition (bool~) render_playfield::$6 if((byte) render_playfield::l#1!=rangelast(2,render_playfield::$1)) goto render_playfield::@1 +Simple Condition (bool~) render_current::$11 if((byte) render_current::l#1!=rangelast(0,3)) goto render_current::@1 +Simple Condition (bool~) render_current::$7 if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 +Simple Condition (bool~) render_current::$10 if((byte) render_current::c#1!=rangelast(0,3)) goto render_current::@4 +Simple Condition (bool~) render_current::$9 if((byte) render_current::xpos#2>=(byte) PLAYFIELD_COLS#0) goto render_current::@6 Simple Condition (bool~) sprites_init::$4 if((byte) sprites_init::s#1!=rangelast(0,3)) goto sprites_init::@1 Simple Condition (bool~) irq::$0 if(*((byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 Simple Condition (bool~) irq::$1 if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 @@ -5412,8 +5808,7 @@ Simple Condition (bool~) play_remove_lines::$12 if((byte) play_remove_lines::y#1 Simple Condition (bool~) play_remove_lines::$13 if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 Simple Condition (bool~) play_init::$2 if((byte) play_init::j#1!=rangelast(0,play_init::$0)) goto play_init::@1 Simple Condition (bool~) main::$8 if(*((byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@5 -Simple Condition (bool~) main::$9 if(*((byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@8 -Simple Condition (bool~) main::$16 if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@10 +Simple Condition (bool~) main::$17 if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@7 Successful SSA optimization Pass2ConditionalJumpSimplification Rewriting ! if()-condition to reversed if() (bool~) render_screen_original::$7 ← ! (bool~) render_screen_original::$6 Successful SSA optimization Pass2ConditionalAndOrRewriting @@ -5592,19 +5987,24 @@ Constant (const byte) SID_CONTROL_RING#0 = 4 Constant (const byte) SID_CONTROL_SYNC#0 = 2 Constant (const byte) SID_CONTROL_GATE#0 = 1 Constant (const byte*) SID_VOICE3_OSC#0 = ((byte*))54299 -Constant (const byte*) PLAYFIELD_SCREEN#0 = ((byte*))1024 +Constant (const byte*) PLAYFIELD_SCREEN_1#0 = ((byte*))1024 +Constant (const byte*) PLAYFIELD_SCREEN_2#0 = ((byte*))11264 +Constant (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0 = ((byte*))6144 Constant (const byte*) PLAYFIELD_SPRITES#0 = ((byte*))8192 Constant (const byte*) PLAYFIELD_CHARSET#0 = ((byte*))10240 Constant (const byte) PLAYFIELD_LINES#0 = 22 Constant (const byte) PLAYFIELD_COLS#0 = 10 Constant (const byte) PLAYFIELD_SCREEN_ORIGINAL_WIDTH#0 = 32 -Constant (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0 = ((byte*))11264 Constant (const word) fill::size#0 = 1000 -Constant (const byte/signed byte/word/signed word/dword/signed dword) render_init::$7 = 2*40 -Constant (const byte) render_init::i#0 = 0 -Constant (const byte/word/signed word/dword/signed dword) render_init::$13 = 4*40 +Constant (const byte/word/signed word/dword/signed dword) render_init::$7 = 4*40 Constant (const byte) render_init::l#0 = 2 Constant (const byte) render_init::c#0 = 0 +Constant (const byte/signed byte/word/signed word/dword/signed dword) render_init::$15 = 2*40 +Constant (const byte/signed byte/word/signed word/dword/signed dword) render_init::$18 = 2*40 +Constant (const byte) render_init::i#0 = 0 +Constant (const byte) render_screen_show#0 = 0 +Constant (const byte) render_screen_render#0 = 64 +Constant (const byte) render_show::d018val#0 = 0 Constant (const byte) render_screen_original::SPACE#0 = 0 Constant (const byte/signed byte/word/signed word/dword/signed dword) render_screen_original::$0 = 32*2 Constant (const byte) render_screen_original::y#0 = 0 @@ -5618,20 +6018,20 @@ Constant (const byte/signed byte/word/signed word/dword/signed dword) sprites_in Constant (const byte) sprites_init::s#0 = 0 Constant (const byte) IRQ_RASTER_FIRST#0 = 49 Constant (const void()*) sprites_irq_init::$0 = &irq -Constant (const byte/signed byte/word/signed word/dword/signed dword) $4 = 4*4 -Constant (const byte[$5]) PIECE_T#0 = { 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 } -Constant (const byte/signed byte/word/signed word/dword/signed dword) $6 = 4*4 -Constant (const byte[$7]) PIECE_S#0 = { 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 } -Constant (const byte/signed byte/word/signed word/dword/signed dword) $8 = 4*4 -Constant (const byte[$9]) PIECE_Z#0 = { 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 } -Constant (const byte/signed byte/word/signed word/dword/signed dword) $10 = 4*4 -Constant (const byte[$11]) PIECE_L#0 = { 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 } -Constant (const byte/signed byte/word/signed word/dword/signed dword) $12 = 4*4 -Constant (const byte[$13]) PIECE_J#0 = { 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 } -Constant (const byte/signed byte/word/signed word/dword/signed dword) $14 = 4*4 -Constant (const byte[$15]) PIECE_O#0 = { 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } -Constant (const byte/signed byte/word/signed word/dword/signed dword) $16 = 4*4 -Constant (const byte[$17]) PIECE_I#0 = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 } +Constant (const byte/signed byte/word/signed word/dword/signed dword) $5 = 4*4 +Constant (const byte[$6]) PIECE_T#0 = { 1, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 } +Constant (const byte/signed byte/word/signed word/dword/signed dword) $7 = 4*4 +Constant (const byte[$8]) PIECE_S#0 = { 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 } +Constant (const byte/signed byte/word/signed word/dword/signed dword) $9 = 4*4 +Constant (const byte[$10]) PIECE_Z#0 = { 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0 } +Constant (const byte/signed byte/word/signed word/dword/signed dword) $11 = 4*4 +Constant (const byte[$12]) PIECE_L#0 = { 0, 0, 0, 0, 1, 1, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 1, 0, 0, 0, 0, 0 } +Constant (const byte/signed byte/word/signed word/dword/signed dword) $13 = 4*4 +Constant (const byte[$14]) PIECE_J#0 = { 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0 } +Constant (const byte/signed byte/word/signed word/dword/signed dword) $15 = 4*4 +Constant (const byte[$16]) PIECE_O#0 = { 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 } +Constant (const byte/signed byte/word/signed word/dword/signed dword) $17 = 4*4 +Constant (const byte[$18]) PIECE_I#0 = { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0 } Constant (const byte[]) PIECES_CHARS#0 = { 88, 89, 153, 89, 88, 88, 153 } Constant (const byte[]) PIECES_START_X#0 = { 4, 4, 4, 4, 4, 3, 4 } Constant (const byte[]) PIECES_START_Y#0 = { 2, 1, 1, 1, 2, 0, 1 } @@ -5679,45 +6079,51 @@ Constant (const byte) keyboard_event_pressed::keycode#1 = KEY_RSHIFT#0 Constant (const byte) keyboard_modifiers#2 = keyboard_modifiers#1|KEY_MODIFIER_LSHIFT#0 Constant (const byte) keyboard_event_pressed::keycode#2 = KEY_CTRL#0 Constant (const byte) keyboard_event_pressed::keycode#3 = KEY_COMMODORE#0 -Constant (const byte*) PLAYFIELD_SPRITE_PTRS#0 = PLAYFIELD_SCREEN#0+SPRITE_PTRS#0 -Constant (const byte) $2 = PLAYFIELD_LINES#0*PLAYFIELD_COLS#0 -Constant (const byte*[PLAYFIELD_LINES#0]) screen_lines#0 = { fill( PLAYFIELD_LINES#0, 0) } -Constant (const byte*) render_init::vicSelectGfxBank1_gfx#0 = PLAYFIELD_SCREEN#0 -Constant (const byte*) render_init::toD0181_screen#0 = PLAYFIELD_SCREEN#0 -Constant (const byte*) render_init::toD0181_gfx#0 = PLAYFIELD_CHARSET#0 -Constant (const byte) render_init::$2 = VIC_ECM#0|VIC_DEN#0 +Constant (const byte*) PLAYFIELD_SPRITE_PTRS_1#0 = PLAYFIELD_SCREEN_1#0+SPRITE_PTRS#0 +Constant (const byte*) PLAYFIELD_SPRITE_PTRS_2#0 = PLAYFIELD_SCREEN_2#0+SPRITE_PTRS#0 +Constant (const byte) $3 = PLAYFIELD_LINES#0*PLAYFIELD_COLS#0 +Constant (const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 = { fill( PLAYFIELD_LINES#0, 0) } +Constant (const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 = { fill( PLAYFIELD_LINES#0, 0) } +Constant (const byte*) render_init::vicSelectGfxBank1_gfx#0 = PLAYFIELD_CHARSET#0 +Constant (const byte) render_init::$1 = VIC_ECM#0|VIC_DEN#0 +Constant (const byte*) render_screen_original::screen#0 = PLAYFIELD_SCREEN_1#0 +Constant (const byte*) render_screen_original::screen#1 = PLAYFIELD_SCREEN_2#0 Constant (const byte*) fill::start#0 = COLS#0 Constant (const byte) fill::val#0 = DARK_GREY#0 -Constant (const byte*) render_screen_original::screen#0 = PLAYFIELD_SCREEN#0 -Constant (const byte*) render_init::$8 = PLAYFIELD_SCREEN#0+render_init::$7 +Constant (const byte*) render_init::$8 = COLS#0+render_init::$7 Constant (const byte/signed word/word/dword/signed dword) render_init::$10 = PLAYFIELD_LINES#0-1 -Constant (const byte*) render_init::$14 = COLS#0+render_init::$13 -Constant (const byte/signed word/word/dword/signed dword) render_init::$16 = PLAYFIELD_LINES#0-1 -Constant (const byte/signed word/word/dword/signed dword) render_init::$17 = PLAYFIELD_COLS#0-1 +Constant (const byte/signed word/word/dword/signed dword) render_init::$11 = PLAYFIELD_COLS#0-1 +Constant (const byte*) render_init::$16 = PLAYFIELD_SCREEN_1#0+render_init::$15 +Constant (const byte*) render_init::$19 = PLAYFIELD_SCREEN_2#0+render_init::$18 +Constant (const byte/signed word/word/dword/signed dword) render_init::$21 = PLAYFIELD_LINES#0-1 +Constant (const byte*) render_show::toD0181_screen#0 = PLAYFIELD_SCREEN_1#0 +Constant (const byte*) render_show::toD0181_gfx#0 = PLAYFIELD_CHARSET#0 +Constant (const byte*) render_show::toD0182_screen#0 = PLAYFIELD_SCREEN_2#0 +Constant (const byte*) render_show::toD0182_gfx#0 = PLAYFIELD_CHARSET#0 Constant (const byte*) render_screen_original::orig#0 = PLAYFIELD_SCREEN_ORIGINAL#0+render_screen_original::$0 Constant (const byte) render_playfield::i#0 = PLAYFIELD_COLS#0*2 Constant (const byte/signed word/word/dword/signed dword) render_playfield::$1 = PLAYFIELD_LINES#0-1 -Constant (const byte/signed word/word/dword/signed dword) render_playfield::$3 = PLAYFIELD_COLS#0-1 +Constant (const byte/signed word/word/dword/signed dword) render_playfield::$4 = PLAYFIELD_COLS#0-1 Constant (const byte/signed word/word/dword/signed dword) render_current::$2 = 2*PLAYFIELD_LINES#0 Constant (const byte) sprites_init::xpos#0 = 24+sprites_init::$0 Constant (const word) toSpritePtr1_$0#0 = ((word))PLAYFIELD_SPRITES#0 Constant (const byte*) irq::toSpritePtr2_sprite#0 = PLAYFIELD_SPRITES#0 -Constant (const byte/signed word/word/dword/signed dword/signed byte) $5 = $4*4 -Constant (const byte/signed word/word/dword/signed dword/signed byte) $7 = $6*4 -Constant (const byte/signed word/word/dword/signed dword/signed byte) $9 = $8*4 -Constant (const byte/signed word/word/dword/signed dword/signed byte) $11 = $10*4 -Constant (const byte/signed word/word/dword/signed dword/signed byte) $13 = $12*4 -Constant (const byte/signed word/word/dword/signed dword/signed byte) $15 = $14*4 -Constant (const byte/signed word/word/dword/signed dword/signed byte) $17 = $16*4 -Constant (const word) $18 = ((word))PIECE_T#0 -Constant (const word) $19 = ((word))PIECE_S#0 -Constant (const word) $20 = ((word))PIECE_Z#0 -Constant (const word) $21 = ((word))PIECE_J#0 -Constant (const word) $22 = ((word))PIECE_O#0 -Constant (const word) $23 = ((word))PIECE_I#0 -Constant (const word) $24 = ((word))PIECE_L#0 +Constant (const byte/signed word/word/dword/signed dword/signed byte) $6 = $5*4 +Constant (const byte/signed word/word/dword/signed dword/signed byte) $8 = $7*4 +Constant (const byte/signed word/word/dword/signed dword/signed byte) $10 = $9*4 +Constant (const byte/signed word/word/dword/signed dword/signed byte) $12 = $11*4 +Constant (const byte/signed word/word/dword/signed dword/signed byte) $14 = $13*4 +Constant (const byte/signed word/word/dword/signed dword/signed byte) $16 = $15*4 +Constant (const byte/signed word/word/dword/signed dword/signed byte) $18 = $17*4 +Constant (const word) $19 = ((word))PIECE_T#0 +Constant (const word) $20 = ((word))PIECE_S#0 +Constant (const word) $21 = ((word))PIECE_Z#0 +Constant (const word) $22 = ((word))PIECE_J#0 +Constant (const word) $23 = ((word))PIECE_O#0 +Constant (const word) $24 = ((word))PIECE_I#0 +Constant (const word) $25 = ((word))PIECE_L#0 Constant (const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 = { fill( PLAYFIELD_LINES#0, 0) } -Constant (const byte/signed word/word/dword/signed dword) $25 = PLAYFIELD_LINES#0+1 +Constant (const byte/signed word/word/dword/signed dword) $26 = PLAYFIELD_LINES#0+1 Constant (const byte) keyboard_event_pressed::keycode#4 = KEY_SPACE#0 Constant (const byte) play_move_down::movedown#1 = ++play_move_down::movedown#0 Constant (const byte/signed word/word/dword/signed dword) play_collision::$4 = 2*PLAYFIELD_LINES#0 @@ -5734,42 +6140,52 @@ Constant (const byte/signed word/word/dword/signed dword) play_init::$0 = PLAYFI Constant (const byte) play_init::$3 = PLAYFIELD_COLS#0*PLAYFIELD_LINES#0 Successful SSA optimization Pass2ConstantIdentification Constant (const byte*) fill::end#0 = fill::start#0+fill::size#0 -Constant (const byte[$2]) playfield#0 = { fill( $2, 0) } +Constant (const byte[$3]) playfield#0 = { fill( $3, 0) } Constant (const word) render_init::vicSelectGfxBank1_toDd001_$0#0 = ((word))render_init::vicSelectGfxBank1_gfx#0 -Constant (const word) render_init::toD0181_$0#0 = ((word))render_init::toD0181_screen#0 -Constant (const word) render_init::toD0181_$4#0 = ((word))render_init::toD0181_gfx#0 -Constant (const byte) render_init::$3 = render_init::$2|VIC_RSEL#0 -Constant (const byte*) render_init::li#0 = render_init::$8+16 -Constant (const byte*) render_init::line#0 = render_init::$14+16 +Constant (const byte) render_init::$2 = render_init::$1|VIC_RSEL#0 +Constant (const byte*) render_init::line#0 = render_init::$8+16 +Constant (const byte*) render_init::li_1#0 = render_init::$16+16 +Constant (const byte*) render_init::li_2#0 = render_init::$19+16 +Constant (const word) render_show::toD0181_$0#0 = ((word))render_show::toD0181_screen#0 +Constant (const word) render_show::toD0181_$4#0 = ((word))render_show::toD0181_gfx#0 +Constant (const word) render_show::toD0182_$0#0 = ((word))render_show::toD0182_screen#0 +Constant (const word) render_show::toD0182_$4#0 = ((word))render_show::toD0182_gfx#0 Constant (const word) toSpritePtr1_$1#0 = toSpritePtr1_$0#0>>6 Constant (const word) irq::toSpritePtr2_$0#0 = ((word))irq::toSpritePtr2_sprite#0 -Constant (const word[]) PIECES#0 = { $18, $19, $20, $21, $22, $23, $24 } -Constant (const byte[$25]) playfield_lines_idx#0 = { fill( $25, 0) } +Constant (const word[]) PIECES#0 = { $19, $20, $21, $22, $23, $24, $25 } +Constant (const byte[$26]) playfield_lines_idx#0 = { fill( $26, 0) } Constant (const byte) play_remove_lines::r#0 = play_remove_lines::$0-1 Constant (const byte) play_remove_lines::w#0 = play_remove_lines::$2-1 Successful SSA optimization Pass2ConstantIdentification Constant (const byte) render_init::vicSelectGfxBank1_toDd001_$1#0 = >render_init::vicSelectGfxBank1_toDd001_$0#0 -Constant (const word) render_init::toD0181_$1#0 = render_init::toD0181_$0#0&16383 -Constant (const byte) render_init::toD0181_$5#0 = >render_init::toD0181_$4#0 -Constant (const byte/word/dword) render_init::$4 = render_init::$3|3 +Constant (const byte/word/dword) render_init::$3 = render_init::$2|3 +Constant (const word) render_show::toD0181_$1#0 = render_show::toD0181_$0#0&16383 +Constant (const byte) render_show::toD0181_$5#0 = >render_show::toD0181_$4#0 +Constant (const word) render_show::toD0182_$1#0 = render_show::toD0182_$0#0&16383 +Constant (const byte) render_show::toD0182_$5#0 = >render_show::toD0182_$4#0 Constant (const byte) toSpritePtr1_$2#0 = ((byte))toSpritePtr1_$1#0 Constant (const word) irq::toSpritePtr2_$1#0 = irq::toSpritePtr2_$0#0>>6 Constant (const byte*) play_init::pli#0 = playfield#0 Successful SSA optimization Pass2ConstantIdentification Constant (const byte) render_init::vicSelectGfxBank1_toDd001_$2#0 = render_init::vicSelectGfxBank1_toDd001_$1#0>>6 -Constant (const word) render_init::toD0181_$2#0 = render_init::toD0181_$1#0<<2 -Constant (const byte) render_init::toD0181_$6#0 = render_init::toD0181_$5#0>>2 +Constant (const word) render_show::toD0181_$2#0 = render_show::toD0181_$1#0<<2 +Constant (const byte) render_show::toD0181_$6#0 = render_show::toD0181_$5#0>>2 +Constant (const word) render_show::toD0182_$2#0 = render_show::toD0182_$1#0<<2 +Constant (const byte) render_show::toD0182_$6#0 = render_show::toD0182_$5#0>>2 Constant (const byte) toSpritePtr1_return#0 = toSpritePtr1_$2#0 Constant (const byte) irq::toSpritePtr2_$2#0 = ((byte))irq::toSpritePtr2_$1#0 Successful SSA optimization Pass2ConstantIdentification Constant (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 = 3^render_init::vicSelectGfxBank1_toDd001_$2#0 -Constant (const byte) render_init::toD0181_$3#0 = >render_init::toD0181_$2#0 -Constant (const byte) render_init::toD0181_$7#0 = render_init::toD0181_$6#0&15 +Constant (const byte) render_show::toD0181_$3#0 = >render_show::toD0181_$2#0 +Constant (const byte) render_show::toD0181_$7#0 = render_show::toD0181_$6#0&15 +Constant (const byte) render_show::toD0182_$3#0 = >render_show::toD0182_$2#0 +Constant (const byte) render_show::toD0182_$7#0 = render_show::toD0182_$6#0&15 Constant (const byte) toSpritePtr1_return#1 = toSpritePtr1_return#0 Constant (const byte) irq::toSpritePtr2_return#0 = irq::toSpritePtr2_$2#0 Successful SSA optimization Pass2ConstantIdentification -Constant (const byte) render_init::toD0181_return#0 = render_init::toD0181_$3#0|render_init::toD0181_$7#0 -Constant (const byte) $3 = toSpritePtr1_return#1 +Constant (const byte) render_show::toD0181_return#0 = render_show::toD0181_$3#0|render_show::toD0181_$7#0 +Constant (const byte) render_show::toD0182_return#0 = render_show::toD0182_$3#0|render_show::toD0182_$7#0 +Constant (const byte) $4 = toSpritePtr1_return#1 Constant (const byte) irq::toSpritePtr2_return#1 = irq::toSpritePtr2_return#0 Successful SSA optimization Pass2ConstantIdentification Constant (const byte) irq::$2 = irq::toSpritePtr2_return#1 @@ -5778,10 +6194,14 @@ Consolidated array index constant in *(SPRITES_YPOS#0+0) Consolidated array index constant in *(SPRITES_YPOS#0+2) Consolidated array index constant in *(SPRITES_YPOS#0+4) Consolidated array index constant in *(SPRITES_YPOS#0+6) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+0) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+1) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+2) -Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS#0+3) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+0) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+0) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+1) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+1) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+2) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+2) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_1#0+3) +Consolidated array index constant in *(PLAYFIELD_SPRITE_PTRS_2#0+3) Consolidated array index constant in *(playfield_lines_idx#0+PLAYFIELD_LINES#0) Successful SSA optimization Pass2ConstantAdditionElimination if() condition always true - replacing block destination if(true) goto main::@2 @@ -5796,16 +6216,16 @@ Resolved ranged next value keyboard_event_scan::row#1 ← ++ keyboard_event_scan Resolved ranged comparison value if(keyboard_event_scan::row#1!=rangelast(0,7)) goto keyboard_event_scan::@1 to (byte/signed byte/word/signed word/dword/signed dword) 8 Resolved ranged next value keyboard_event_scan::col#1 ← ++ keyboard_event_scan::col#2 to ++ Resolved ranged comparison value if(keyboard_event_scan::col#1!=rangelast(0,7)) goto keyboard_event_scan::@4 to (byte/signed byte/word/signed word/dword/signed dword) 8 -Resolved ranged next value render_init::i#1 ← ++ render_init::i#2 to ++ -Resolved ranged comparison value if(render_init::i#1!=rangelast(0,render_init::$10)) goto render_init::@1 to (const byte/signed word/word/dword/signed dword) render_init::$10+(byte/signed byte/word/signed word/dword/signed dword) 1 Resolved ranged next value render_init::c#1 ← ++ render_init::c#2 to ++ -Resolved ranged comparison value if(render_init::c#1!=rangelast(0,render_init::$17)) goto render_init::@3 to (const byte/signed word/word/dword/signed dword) render_init::$17+(byte/signed byte/word/signed word/dword/signed dword) 1 +Resolved ranged comparison value if(render_init::c#1!=rangelast(0,render_init::$11)) goto render_init::@2 to (const byte/signed word/word/dword/signed dword) render_init::$11+(byte/signed byte/word/signed word/dword/signed dword) 1 Resolved ranged next value render_init::l#1 ← ++ render_init::l#4 to ++ -Resolved ranged comparison value if(render_init::l#1!=rangelast(2,render_init::$16)) goto render_init::@2 to (const byte/signed word/word/dword/signed dword) render_init::$16+(byte/signed byte/word/signed word/dword/signed dword) 1 +Resolved ranged comparison value if(render_init::l#1!=rangelast(2,render_init::$10)) goto render_init::@1 to (const byte/signed word/word/dword/signed dword) render_init::$10+(byte/signed byte/word/signed word/dword/signed dword) 1 +Resolved ranged next value render_init::i#1 ← ++ render_init::i#2 to ++ +Resolved ranged comparison value if(render_init::i#1!=rangelast(0,render_init::$21)) goto render_init::@3 to (const byte/signed word/word/dword/signed dword) render_init::$21+(byte/signed byte/word/signed word/dword/signed dword) 1 Resolved ranged next value render_screen_original::y#1 ← ++ render_screen_original::y#8 to ++ Resolved ranged comparison value if(render_screen_original::y#1!=rangelast(0,24)) goto render_screen_original::@1 to (byte/signed byte/word/signed word/dword/signed dword) 25 Resolved ranged next value render_playfield::c#1 ← ++ render_playfield::c#2 to ++ -Resolved ranged comparison value if(render_playfield::c#1!=rangelast(0,render_playfield::$3)) goto render_playfield::@2 to (const byte/signed word/word/dword/signed dword) render_playfield::$3+(byte/signed byte/word/signed word/dword/signed dword) 1 +Resolved ranged comparison value if(render_playfield::c#1!=rangelast(0,render_playfield::$4)) goto render_playfield::@2 to (const byte/signed word/word/dword/signed dword) render_playfield::$4+(byte/signed byte/word/signed word/dword/signed dword) 1 Resolved ranged next value render_playfield::l#1 ← ++ render_playfield::l#2 to ++ Resolved ranged comparison value if(render_playfield::l#1!=rangelast(2,render_playfield::$1)) goto render_playfield::@1 to (const byte/signed word/word/dword/signed dword) render_playfield::$1+(byte/signed byte/word/signed word/dword/signed dword) 1 Resolved ranged next value render_current::l#1 ← ++ render_current::l#4 to ++ @@ -5836,14 +6256,19 @@ Culled Empty Block (label) keyboard_event_scan::@12 Culled Empty Block (label) keyboard_event_get::@1 Culled Empty Block (label) @12 Culled Empty Block (label) render_init::vicSelectGfxBank1_toDd001_@return -Culled Empty Block (label) render_init::@7 -Culled Empty Block (label) render_init::toD0181_@return Culled Empty Block (label) render_init::@10 -Culled Empty Block (label) render_init::@4 +Culled Empty Block (label) render_init::@5 +Culled Empty Block (label) render_init::@6 +Culled Empty Block (label) render_show::@1 +Culled Empty Block (label) render_show::toD0181_@return +Culled Empty Block (label) render_show::@5 +Culled Empty Block (label) render_show::@3 +Culled Empty Block (label) render_show::toD0182_@return +Culled Empty Block (label) render_show::@6 Culled Empty Block (label) render_current::@6 Culled Empty Block (label) toSpritePtr1_@return Culled Empty Block (label) irq::toSpritePtr2_@return -Culled Empty Block (label) @21 +Culled Empty Block (label) @23 Culled Empty Block (label) play_move_down::@3 Culled Empty Block (label) play_move_down::@5 Culled Empty Block (label) play_move_down::@21 @@ -5853,21 +6278,22 @@ Culled Empty Block (label) play_move_leftright::@4 Culled Empty Block (label) play_move_leftright::@5 Culled Empty Block (label) play_move_rotate::@7 Culled Empty Block (label) play_move_rotate::@5 -Culled Empty Block (label) @24 +Culled Empty Block (label) @26 Culled Empty Block (label) play_collision::@9 Culled Empty Block (label) play_collision::@11 Culled Empty Block (label) play_collision::@13 Culled Empty Block (label) play_collision::@7 Culled Empty Block (label) play_collision::@15 Culled Empty Block (label) play_collision::@18 -Culled Empty Block (label) main::@28 +Culled Empty Block (label) main::@22 Culled Empty Block (label) main::@2 Culled Empty Block (label) main::@5 -Culled Empty Block (label) main::@8 -Culled Empty Block (label) main::@35 -Culled Empty Block (label) @32 +Culled Empty Block (label) main::@31 +Culled Empty Block (label) @34 Successful SSA optimization Pass2CullEmptyBlocks Self Phi Eliminated (byte) render_screen_original::SPACE#3 +Self Phi Eliminated (byte) render_screen_render#11 +Self Phi Eliminated (byte) render_screen_render#12 Self Phi Eliminated (byte) current_xpos#12 Self Phi Eliminated (byte*) current_piece_gfx#22 Self Phi Eliminated (byte) current_piece_char#37 @@ -5878,6 +6304,8 @@ Self Phi Eliminated (byte*) current_piece_gfx#29 Self Phi Eliminated (byte) current_piece_char#30 Successful SSA optimization Pass2SelfPhiElimination Redundant Phi (byte) render_screen_original::SPACE#3 (const byte) render_screen_original::SPACE#0 +Redundant Phi (byte) render_screen_render#11 (byte) render_screen_render#18 +Redundant Phi (byte) render_screen_render#12 (byte) render_screen_render#27 Redundant Phi (byte) current_xpos#12 (byte) current_xpos#47 Redundant Phi (byte*) current_piece_gfx#22 (byte*) current_piece_gfx#52 Redundant Phi (byte) current_piece_char#37 (byte) current_piece_char#62 @@ -5901,14 +6329,16 @@ Inlining constant with var siblings (const byte) keyboard_event_pressed::keycode Inlining constant with var siblings (const byte) keyboard_event_pressed::keycode#3 Inlining constant with var siblings (const byte) keyboard_event_pressed::keycode#4 Inlining constant with var siblings (const byte) keyboard_event_get::return#0 -Inlining constant with var siblings (const byte) render_init::i#0 Inlining constant with var siblings (const byte) render_init::l#0 Inlining constant with var siblings (const byte) render_init::c#0 -Inlining constant with var siblings (const byte*) render_init::li#0 +Inlining constant with var siblings (const byte) render_init::i#0 Inlining constant with var siblings (const byte*) render_init::line#0 +Inlining constant with var siblings (const byte*) render_init::li_1#0 +Inlining constant with var siblings (const byte*) render_init::li_2#0 Inlining constant with var siblings (const byte) render_screen_original::y#0 Inlining constant with var siblings (const byte) render_screen_original::x#0 Inlining constant with var siblings (const byte*) render_screen_original::screen#0 +Inlining constant with var siblings (const byte*) render_screen_original::screen#1 Inlining constant with var siblings (const byte*) render_screen_original::orig#0 Inlining constant with var siblings (const byte) render_playfield::l#0 Inlining constant with var siblings (const byte) render_playfield::c#0 @@ -5953,32 +6383,35 @@ Inlining constant with var siblings (const byte*) play_init::pli#0 Inlining constant with var siblings (const byte) main::render#0 Inlining constant with var siblings (const byte) keyboard_events_size#0 Inlining constant with var siblings (const byte) keyboard_modifiers#1 +Inlining constant with var siblings (const byte) render_screen_show#0 +Inlining constant with var siblings (const byte) render_screen_render#0 Inlining constant with var siblings (const byte) current_movedown_counter#0 Inlining constant with var siblings (const byte) current_movedown_counter#2 Inlining constant with var siblings (const byte) current_orientation#20 Inlining constant with var siblings (const byte) keyboard_modifiers#2 Inlining constant with different constant siblings (const byte) toSpritePtr1_return#1 Constant inlined play_remove_lines::x#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::toD0181_$5#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0 Constant inlined play_move_rotate::return#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined play_move_rotate::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 +Constant inlined render_init::$21 = (const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1 +Constant inlined render_show::toD0181_$7#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 Constant inlined play_init::pli#0 = (const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 -Constant inlined render_init::toD0181_screen#0 = (const byte*) PLAYFIELD_SCREEN#0 Constant inlined play_move_rotate::return#3 = (byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined render_current::l#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined current_movedown_counter#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined current_movedown_counter#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 +Constant inlined render_screen_original::screen#1 = (const byte*) PLAYFIELD_SCREEN_2#0 Constant inlined fill::start#0 = (const byte*) COLS#0 -Constant inlined render_screen_original::screen#0 = (const byte*) PLAYFIELD_SCREEN#0 +Constant inlined render_screen_original::screen#0 = (const byte*) PLAYFIELD_SCREEN_1#0 Constant inlined irq::toSpritePtr2_return#1 = (const byte) irq::toSpritePtr2_return#0 -Constant inlined render_init::li#0 = (const byte*) PLAYFIELD_SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 Constant inlined render_screen_original::y#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::toD0181_$1#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383 +Constant inlined render_show::toD0182_$7#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 Constant inlined render_playfield::i#0 = (const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined play_collision::$4 = (byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0 -Constant inlined render_init::$14 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40 -Constant inlined render_init::$13 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40 -Constant inlined render_init::vicSelectGfxBank1_toDd001_$1#0 = >((word))(const byte*) PLAYFIELD_SCREEN#0 +Constant inlined render_init::$15 = (byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40 +Constant inlined render_show::toD0182_$2#0 = ((word))(const byte*) PLAYFIELD_SCREEN_2#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 +Constant inlined render_init::vicSelectGfxBank1_toDd001_$1#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0 +Constant inlined render_init::$11 = (const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined render_init::$10 = (const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined play_remove_lines::$0 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0 Constant inlined play_remove_lines::$2 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0 @@ -5986,42 +6419,47 @@ Constant inlined play_collision::i#0 = (byte/signed byte/word/signed word/dword/ Constant inlined play_remove_lines::$4 = (const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined render_screen_original::$0 = (byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined toSpritePtr1_$1#0 = ((word))(const byte*) PLAYFIELD_SPRITES#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 -Constant inlined render_init::toD0181_gfx#0 = (const byte*) PLAYFIELD_CHARSET#0 -Constant inlined render_init::$17 = (const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 -Constant inlined render_init::$16 = (const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1 +Constant inlined render_show::toD0182_gfx#0 = (const byte*) PLAYFIELD_CHARSET#0 +Constant inlined render_show::toD0181_$3#0 = >((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 +Constant inlined render_init::$19 = (const byte*) PLAYFIELD_SCREEN_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40 +Constant inlined render_init::$18 = (byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40 +Constant inlined render_init::$16 = (const byte*) PLAYFIELD_SCREEN_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40 Constant inlined irq::toSpritePtr2_$2#0 = (const byte) irq::toSpritePtr2_return#0 -Constant inlined render_init::toD0181_$4#0 = ((word))(const byte*) PLAYFIELD_CHARSET#0 Constant inlined play_lock_current::i#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined play_remove_lines::y#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::$7 = (byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40 -Constant inlined render_init::$8 = (const byte*) PLAYFIELD_SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40 -Constant inlined $10 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $11 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $12 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined render_init::$7 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40 +Constant inlined render_init::$8 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40 +Constant inlined $10 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $11 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $12 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 Constant inlined keyboard_event_scan::col#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined render_current::i#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::$3 = (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0 -Constant inlined $13 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined render_init::$4 = (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 -Constant inlined $14 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $15 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined render_init::$2 = (const byte) VIC_ECM#0|(const byte) VIC_DEN#0 -Constant inlined $16 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $17 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $18 = ((word))(const byte[4*4*4]) PIECE_T#0 -Constant inlined $19 = ((word))(const byte[4*4*4]) PIECE_S#0 +Constant inlined render_init::$3 = (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 +Constant inlined $13 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $14 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined render_init::$1 = (const byte) VIC_ECM#0|(const byte) VIC_DEN#0 +Constant inlined $15 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined render_init::$2 = (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0 +Constant inlined $16 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $17 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $18 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $19 = ((word))(const byte[4*4*4]) PIECE_T#0 +Constant inlined render_show::toD0181_screen#0 = (const byte*) PLAYFIELD_SCREEN_1#0 Constant inlined render_playfield::l#0 = (byte/signed byte/word/signed word/dword/signed dword) 2 -Constant inlined render_init::toD0181_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0 +Constant inlined render_show::toD0182_$6#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined render_screen_original::x#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined $20 = ((word))(const byte[4*4*4]) PIECE_Z#0 -Constant inlined $21 = ((word))(const byte[4*4*4]) PIECE_J#0 +Constant inlined $20 = ((word))(const byte[4*4*4]) PIECE_S#0 +Constant inlined render_show::toD0182_$5#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0 +Constant inlined $21 = ((word))(const byte[4*4*4]) PIECE_Z#0 Constant inlined keyboard_event_pressed::keycode#4 = (const byte) KEY_SPACE#0 -Constant inlined $22 = ((word))(const byte[4*4*4]) PIECE_O#0 -Constant inlined render_init::vicSelectGfxBank1_toDd001_$2#0 = >((word))(const byte*) PLAYFIELD_SCREEN#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 -Constant inlined $23 = ((word))(const byte[4*4*4]) PIECE_I#0 -Constant inlined $24 = ((word))(const byte[4*4*4]) PIECE_L#0 +Constant inlined $22 = ((word))(const byte[4*4*4]) PIECE_J#0 +Constant inlined render_init::vicSelectGfxBank1_toDd001_$2#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 +Constant inlined $23 = ((word))(const byte[4*4*4]) PIECE_O#0 +Constant inlined $24 = ((word))(const byte[4*4*4]) PIECE_I#0 +Constant inlined render_show::toD0182_$1#0 = ((word))(const byte*) PLAYFIELD_SCREEN_2#0&(word/signed word/dword/signed dword) 16383 Constant inlined sprites_irq_init::$0 = &interrupt(HARDWARE_CLOBBER)(void()) irq() -Constant inlined $25 = (const byte) PLAYFIELD_LINES#0+(byte/signed byte/word/signed word/dword/signed dword) 1 +Constant inlined $25 = ((word))(const byte[4*4*4]) PIECE_L#0 +Constant inlined $26 = (const byte) PLAYFIELD_LINES#0+(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined keyboard_event_pressed::keycode#3 = (const byte) KEY_COMMODORE#0 Constant inlined keyboard_event_pressed::keycode#2 = (const byte) KEY_CTRL#0 Constant inlined render_init::i#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 @@ -6035,71 +6473,83 @@ Constant inlined render_current::$2 = (byte/signed byte/word/signed word/dword/s Constant inlined play_collision::return#4 = (const byte) COLLISION_BOTTOM#0 Constant inlined play_move_down::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined play_move_down::return#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::vicSelectGfxBank1_gfx#0 = (const byte*) PLAYFIELD_SCREEN#0 +Constant inlined render_init::vicSelectGfxBank1_gfx#0 = (const byte*) PLAYFIELD_CHARSET#0 Constant inlined play_collision::return#9 = (const byte) COLLISION_NONE#0 Constant inlined play_collision::return#8 = (const byte) COLLISION_PLAYFIELD#0 +Constant inlined render_show::toD0181_$4#0 = ((word))(const byte*) PLAYFIELD_CHARSET#0 Constant inlined toSpritePtr1_$0#0 = ((word))(const byte*) PLAYFIELD_SPRITES#0 Constant inlined toSpritePtr1_return#1 = (const byte) toSpritePtr1_return#0 +Constant inlined render_show::toD0181_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN_1#0 Constant inlined irq::$2 = (const byte) irq::toSpritePtr2_return#0 Constant inlined play_init::$0 = (const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined keyboard_events_size#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::toD0181_$3#0 = >((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined play_remove_lines::r#0 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined keyboard_modifiers#2 = (byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 -Constant inlined render_init::toD0181_$7#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 +Constant inlined render_show::toD0181_$5#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0 Constant inlined keyboard_modifiers#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined sprites_init::xpos#0 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 -Constant inlined $2 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0 -Constant inlined $3 = (const byte) toSpritePtr1_return#0 +Constant inlined render_screen_render#0 = (byte/signed byte/word/signed word/dword/signed dword) 64 +Constant inlined $3 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0 Constant inlined play_lock_current::l#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined $4 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $4 = (const byte) toSpritePtr1_return#0 Constant inlined render_init::l#0 = (byte/signed byte/word/signed word/dword/signed dword) 2 -Constant inlined $5 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $6 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $7 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $8 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 -Constant inlined $9 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $5 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $6 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined render_show::toD0181_gfx#0 = (const byte*) PLAYFIELD_CHARSET#0 +Constant inlined $7 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $8 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 +Constant inlined $9 = (byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 4 Constant inlined render_playfield::c#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined play_spawn_current::piece_idx#0 = (byte/signed byte/word/signed word/dword/signed dword) 7 Constant inlined play_remove_lines::full#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined play_remove_lines::full#0 = (byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined sprites_init::s#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 +Constant inlined render_show::toD0182_$4#0 = ((word))(const byte*) PLAYFIELD_CHARSET#0 Constant inlined play_move_leftright::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 +Constant inlined render_show::toD0182_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN_2#0 Constant inlined play_move_leftright::return#3 = (byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined keyboard_event_scan::keycode#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined render_init::line#0 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 Constant inlined play_collision::c#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined play_move_leftright::return#0 = (byte/signed byte/word/signed word/dword/signed dword) 1 +Constant inlined render_show::toD0181_$1#0 = ((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383 Constant inlined sprites_init::$0 = (byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 Constant inlined current_orientation#20 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined irq::toSpritePtr2_$0#0 = ((word))(const byte*) PLAYFIELD_SPRITES#0 +Constant inlined render_init::li_2#0 = (const byte*) PLAYFIELD_SCREEN_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 Constant inlined fill::val#0 = (const byte) DARK_GREY#0 Constant inlined play_move_down::movedown#1 = ++(byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::toD0181_$2#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined play_move_down::movedown#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined render_current::c#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined play_remove_lines::w#0 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined play_init::j#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::toD0181_$6#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2 +Constant inlined render_show::toD0181_$6#0 = >((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined play_lock_current::c#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined keyboard_event_scan::row#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined render_playfield::$1 = (const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1 -Constant inlined render_playfield::$3 = (const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 +Constant inlined render_playfield::$4 = (const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined play_remove_lines::$5 = (const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 Constant inlined irq::toSpritePtr2_sprite#0 = (const byte*) PLAYFIELD_SPRITES#0 Constant inlined play_init::idx#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 -Constant inlined render_init::vicSelectGfxBank1_toDd001_$0#0 = ((word))(const byte*) PLAYFIELD_SCREEN#0 +Constant inlined render_show::toD0182_$3#0 = >((word))(const byte*) PLAYFIELD_SCREEN_2#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 +Constant inlined render_init::vicSelectGfxBank1_toDd001_$0#0 = ((word))(const byte*) PLAYFIELD_CHARSET#0 +Constant inlined render_show::toD0182_screen#0 = (const byte*) PLAYFIELD_SCREEN_2#0 Constant inlined render_init::c#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined main::render#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 +Constant inlined render_screen_show#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined play_collision::l#0 = (byte/signed byte/word/signed word/dword/signed dword) 0 Constant inlined toSpritePtr1_$2#0 = (const byte) toSpritePtr1_return#0 +Constant inlined render_show::toD0181_$2#0 = ((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2 Constant inlined keyboard_event_get::return#0 = (byte/word/signed word/dword/signed dword) 255 Constant inlined irq::toSpritePtr2_$1#0 = ((word))(const byte*) PLAYFIELD_SPRITES#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 +Constant inlined render_init::li_1#0 = (const byte*) PLAYFIELD_SCREEN_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 Successful SSA optimization Pass2ConstantInlining Simplifying constant plus zero SPRITES_YPOS#0+0 -Simplifying constant plus zero PLAYFIELD_SPRITE_PTRS#0+0 +Simplifying constant plus zero PLAYFIELD_SPRITE_PTRS_1#0+0 +Simplifying constant plus zero PLAYFIELD_SPRITE_PTRS_2#0+0 Simplifying constant integer increment ++0 Successful SSA optimization Pass2ConstantSimplification +Added new block during phi lifting main::@32(between main::@28 and main::@7) Added new block during phi lifting render_current::@14(between render_current::@3 and render_current::@1) Added new block during phi lifting render_current::@15(between render_current::@5 and render_current::@3) Added new block during phi lifting render_current::@16(between render_current::@5 and render_current::@4) @@ -6141,9 +6591,10 @@ Added new block during phi lifting keyboard_event_scan::@35(between keyboard_eve Added new block during phi lifting keyboard_event_scan::@36(between keyboard_event_scan::@15 and keyboard_event_scan::@5) Added new block during phi lifting play_init::@3(between play_init::@1 and play_init::@1) Added new block during phi lifting sprites_init::@3(between sprites_init::@1 and sprites_init::@1) -Added new block during phi lifting render_init::@11(between render_init::@1 and render_init::@1) -Added new block during phi lifting render_init::@12(between render_init::@5 and render_init::@2) +Added new block during phi lifting render_init::@11(between render_init::@4 and render_init::@1) +Added new block during phi lifting render_init::@12(between render_init::@2 and render_init::@2) Added new block during phi lifting render_init::@13(between render_init::@3 and render_init::@3) +Added new block during phi lifting fill::@3(between fill::@1 and fill::@1) Added new block during phi lifting render_screen_original::@12(between render_screen_original::@9 and render_screen_original::@1) Added new block during phi lifting render_screen_original::@13(between render_screen_original::@2 and render_screen_original::@2) Added new block during phi lifting render_screen_original::@14(between render_screen_original::@2 and render_screen_original::@3) @@ -6151,21 +6602,20 @@ Added new block during phi lifting render_screen_original::@15(between render_sc Added new block during phi lifting render_screen_original::@16(between render_screen_original::@3 and render_screen_original::@4) Added new block during phi lifting render_screen_original::@17(between render_screen_original::@4 and render_screen_original::@5) Added new block during phi lifting render_screen_original::@18(between render_screen_original::@5 and render_screen_original::@5) -Added new block during phi lifting fill::@3(between fill::@1 and fill::@1) Added new block during phi lifting irq::@10(between irq::@3 and irq::@4) Adding NOP phi() at start of @begin Adding NOP phi() at start of toSpritePtr1 -Adding NOP phi() at start of @30 +Adding NOP phi() at start of @32 Adding NOP phi() at start of @end Adding NOP phi() at start of main -Adding NOP phi() at start of main::@22 +Adding NOP phi() at start of main::@16 +Adding NOP phi() at start of main::@17 +Adding NOP phi() at start of main::@18 +Adding NOP phi() at start of main::@19 +Adding NOP phi() at start of main::@20 Adding NOP phi() at start of main::@23 Adding NOP phi() at start of main::@24 -Adding NOP phi() at start of main::@25 -Adding NOP phi() at start of main::@26 -Adding NOP phi() at start of main::@29 -Adding NOP phi() at start of main::@19 -Adding NOP phi() at start of render_playfield +Adding NOP phi() at start of main::@30 Adding NOP phi() at start of play_move_down::@8 Adding NOP phi() at start of play_move_down::@13 Adding NOP phi() at start of play_move_down::@19 @@ -6176,211 +6626,223 @@ Adding NOP phi() at start of play_remove_lines Adding NOP phi() at start of play_remove_lines::@8 Adding NOP phi() at start of keyboard_event_scan::@20 Adding NOP phi() at start of keyboard_event_scan::@21 +Adding NOP phi() at start of render_show::toD0182 +Adding NOP phi() at start of render_show::toD0181 Adding NOP phi() at start of play_init Adding NOP phi() at start of render_init Adding NOP phi() at start of render_init::vicSelectGfxBank1_toDd001 -Adding NOP phi() at start of render_init::toD0181 +Adding NOP phi() at start of render_init::@8 Adding NOP phi() at start of render_init::@9 -Adding NOP phi() at start of render_screen_original Adding NOP phi() at start of fill Adding NOP phi() at start of irq::toSpritePtr2 CALL GRAPH Calls in [] to main:10 -Calls in [main] to sid_rnd_init:13 render_init:15 sprites_init:17 sprites_irq_init:19 play_init:21 play_spawn_current:23 render_playfield:25 render_current:30 keyboard_event_scan:40 keyboard_event_get:42 play_move_down:46 play_move_leftright:51 play_move_rotate:56 render_playfield:62 render_current:67 -Calls in [play_move_rotate] to play_collision:147 -Calls in [play_move_leftright] to play_collision:199 play_collision:216 -Calls in [play_move_down] to keyboard_event_pressed:227 play_collision:247 play_lock_current:252 play_remove_lines:254 play_spawn_current:256 -Calls in [play_spawn_current] to sid_rnd:298 -Calls in [keyboard_event_scan] to keyboard_matrix_read:382 keyboard_event_pressed:393 keyboard_event_pressed:399 keyboard_event_pressed:406 keyboard_event_pressed:413 -Calls in [render_init] to fill:506 render_screen_original:508 +Calls in [main] to sid_rnd_init:13 render_init:15 sprites_init:17 sprites_irq_init:19 play_init:21 play_spawn_current:23 render_playfield:25 render_current:30 render_show:40 keyboard_event_scan:42 keyboard_event_get:44 play_move_down:48 play_move_leftright:53 play_move_rotate:58 render_playfield:64 render_current:70 render_screen_swap:72 +Calls in [play_move_rotate] to play_collision:164 +Calls in [play_move_leftright] to play_collision:216 play_collision:233 +Calls in [play_move_down] to keyboard_event_pressed:244 play_collision:264 play_lock_current:269 play_remove_lines:271 play_spawn_current:273 +Calls in [play_spawn_current] to sid_rnd:315 +Calls in [keyboard_event_scan] to keyboard_matrix_read:399 keyboard_event_pressed:410 keyboard_event_pressed:416 keyboard_event_pressed:423 keyboard_event_pressed:430 +Calls in [render_init] to render_screen_original:527 render_screen_original:529 fill:531 -Created 114 initial phi equivalence classes +Created 123 initial phi equivalence classes Not coalescing [26] current_ypos#83 ← current_ypos#18 Not coalescing [27] current_xpos#109 ← current_xpos#23 Not coalescing [28] current_piece_gfx#99 ← current_piece_gfx#16 Not coalescing [29] current_piece_char#87 ← current_piece_char#12 -Coalesced [32] current_piece_gfx#98 ← current_piece_gfx#16 -Coalesced [33] current_xpos#108 ← current_xpos#23 -Coalesced [34] current_ypos#82 ← current_ypos#18 -Coalesced [35] current_piece_char#86 ← current_piece_char#12 -Not coalescing [63] current_ypos#84 ← current_ypos#13 -Not coalescing [64] current_xpos#110 ← current_xpos#19 -Not coalescing [65] current_piece_gfx#100 ← current_piece_gfx#14 -Not coalescing [66] current_piece_char#88 ← current_piece_char#1 -Coalesced [69] current_piece#71 ← current_piece#10 -Coalesced [70] current_orientation#75 ← current_orientation#19 -Coalesced [71] current_piece_gfx#97 ← current_piece_gfx#14 -Coalesced [72] current_xpos#107 ← current_xpos#19 -Coalesced [73] current_ypos#81 ← current_ypos#13 -Coalesced [74] current_piece_char#85 ← current_piece_char#1 -Coalesced [75] keyboard_events_size#79 ← keyboard_events_size#16 -Coalesced [76] current_movedown_counter#48 ← current_movedown_counter#10 -Coalesced [79] render_current::ypos2#11 ← render_current::ypos2#0 -Coalesced [83] render_current::i#14 ← render_current::i#1 -Coalesced [89] render_current::ypos2#12 ← render_current::ypos2#1 -Coalesced [90] render_current::i#12 ← render_current::i#8 -Coalesced [91] render_current::l#11 ← render_current::l#1 -Coalesced [95] render_current::i#15 ← render_current::i#3 -Coalesced [96] render_current::xpos#7 ← render_current::xpos#0 -Coalesced [106] render_current::i#13 ← render_current::i#10 -Coalesced (already) [107] render_current::i#16 ← render_current::i#10 -Coalesced [108] render_current::xpos#8 ← render_current::xpos#1 -Coalesced [109] render_current::c#7 ← render_current::c#1 -Coalesced [114] render_playfield::i#6 ← render_playfield::i#3 -Coalesced [115] render_playfield::screen_line#3 ← render_playfield::screen_line#0 -Coalesced [125] render_playfield::l#5 ← render_playfield::l#1 -Coalesced [126] render_playfield::i#5 ← render_playfield::i#1 -Coalesced (already) [127] render_playfield::i#7 ← render_playfield::i#1 -Coalesced [128] render_playfield::screen_line#4 ← render_playfield::screen_line#1 -Coalesced [129] render_playfield::c#3 ← render_playfield::c#1 -Coalesced [132] current_orientation#78 ← current_orientation#14 -Coalesced [133] current_piece_gfx#103 ← current_piece_gfx#1 -Coalesced [138] play_move_rotate::orientation#7 ← play_move_rotate::orientation#2 -Not coalescing [143] current_piece#76 ← current_piece#10 -Coalesced [144] play_collision::orientation#8 ← play_collision::orientation#3 -Coalesced [145] play_collision::ypos#8 ← play_collision::ypos#3 -Coalesced [146] play_collision::xpos#17 ← play_collision::xpos#3 -Coalesced [153] current_orientation#76 ← current_orientation#4 -Coalesced [154] current_piece_gfx#101 ← current_piece_gfx#3 -Coalesced (already) [155] current_orientation#77 ← current_orientation#14 -Coalesced (already) [156] current_piece_gfx#102 ← current_piece_gfx#1 -Coalesced [159] play_move_rotate::orientation#6 ← play_move_rotate::orientation#1 -Coalesced [163] play_collision::ypos2#11 ← play_collision::ypos2#0 -Coalesced [166] play_collision::i#12 ← play_collision::i#3 -Not coalescing [167] play_collision::col#9 ← play_collision::xpos#5 -Coalesced [184] play_collision::ypos2#12 ← play_collision::ypos2#1 -Not coalescing [185] play_collision::i#11 ← play_collision::i#1 -Coalesced [186] play_collision::l#11 ← play_collision::l#1 -Not coalescing [187] play_collision::i#13 ← play_collision::i#1 -Coalesced [188] play_collision::col#10 ← play_collision::col#1 -Coalesced [189] play_collision::c#9 ← play_collision::c#1 -Not coalescing [195] current_piece#75 ← current_piece#10 -Coalesced [196] play_collision::orientation#7 ← play_collision::orientation#2 -Coalesced [197] play_collision::ypos#7 ← play_collision::ypos#2 -Coalesced [198] play_collision::xpos#16 ← play_collision::xpos#2 -Coalesced [204] current_xpos#113 ← current_xpos#2 -Coalesced [207] current_xpos#112 ← current_xpos#1 -Coalesced (already) [208] current_xpos#115 ← current_xpos#1 -Not coalescing [212] current_piece#74 ← current_piece#10 -Coalesced [213] play_collision::orientation#6 ← play_collision::orientation#1 -Coalesced [214] play_collision::ypos#6 ← play_collision::ypos#1 -Coalesced [215] play_collision::xpos#15 ← play_collision::xpos#1 -Coalesced [221] current_xpos#111 ← current_xpos#4 -Coalesced (already) [222] current_xpos#114 ← current_xpos#1 -Coalesced [233] play_move_down::movedown#13 ← play_move_down::movedown#2 -Coalesced [237] play_move_down::movedown#16 ← play_move_down::movedown#3 -Not coalescing [243] current_piece#73 ← current_piece#16 -Coalesced [244] play_collision::orientation#5 ← play_collision::orientation#0 -Coalesced [245] play_collision::ypos#5 ← play_collision::ypos#0 -Coalesced [246] play_collision::xpos#14 ← play_collision::xpos#0 -Coalesced [257] current_ypos#85 ← current_ypos#18 -Coalesced [259] current_piece_gfx#104 ← current_piece_gfx#16 -Coalesced [260] current_xpos#116 ← current_xpos#23 -Coalesced [261] current_piece_char#89 ← current_piece_char#12 -Coalesced (already) [263] current_ypos#88 ← current_ypos#29 -Coalesced [264] current_piece#80 ← current_piece#20 -Coalesced [265] current_orientation#81 ← current_orientation#29 -Coalesced (already) [266] current_piece_gfx#107 ← current_piece_gfx#26 -Coalesced (already) [267] current_xpos#119 ← current_xpos#33 -Coalesced (already) [268] current_piece_char#92 ← current_piece_char#20 -Coalesced [272] current_ypos#86 ← current_ypos#0 -Coalesced (already) [273] current_piece#78 ← current_piece#16 -Coalesced (already) [274] current_orientation#79 ← current_orientation#10 -Coalesced (already) [275] current_piece_gfx#105 ← current_piece_gfx#20 -Coalesced (already) [276] current_xpos#117 ← current_xpos#10 -Coalesced (already) [277] current_piece_char#90 ← current_piece_char#15 -Coalesced [278] current_movedown_counter#49 ← current_movedown_counter#1 -Coalesced (already) [279] current_ypos#87 ← current_ypos#21 -Coalesced (already) [280] current_piece#79 ← current_piece#16 -Coalesced (already) [281] current_orientation#80 ← current_orientation#10 -Coalesced (already) [282] current_piece_gfx#106 ← current_piece_gfx#20 -Coalesced (already) [283] current_xpos#118 ← current_xpos#10 -Coalesced (already) [284] current_piece_char#91 ← current_piece_char#15 -Coalesced [285] play_move_down::movedown#17 ← play_move_down::movedown#7 -Coalesced [286] play_move_down::movedown#15 ← play_move_down::movedown#10 -Coalesced (already) [287] play_move_down::movedown#14 ← play_move_down::movedown#10 -Coalesced [302] play_spawn_current::piece_idx#4 ← play_spawn_current::piece_idx#1 -Coalesced [307] play_remove_lines::r#10 ← play_remove_lines::r#3 -Coalesced [308] play_remove_lines::w#14 ← play_remove_lines::w#12 -Coalesced [321] play_remove_lines::w#16 ← play_remove_lines::w#2 -Coalesced [325] play_remove_lines::w#18 ← play_remove_lines::w#11 -Coalesced [331] play_remove_lines::w#19 ← play_remove_lines::w#3 -Coalesced [332] play_remove_lines::r#9 ← play_remove_lines::r#1 -Coalesced [333] play_remove_lines::w#13 ← play_remove_lines::w#11 -Coalesced [334] play_remove_lines::y#9 ← play_remove_lines::y#1 -Coalesced [335] play_remove_lines::w#17 ← play_remove_lines::w#1 -Coalesced (already) [336] play_remove_lines::r#11 ← play_remove_lines::r#1 -Coalesced (already) [337] play_remove_lines::w#15 ← play_remove_lines::w#1 -Coalesced [338] play_remove_lines::x#5 ← play_remove_lines::x#1 -Coalesced [339] play_remove_lines::full#5 ← play_remove_lines::full#2 -Coalesced (already) [340] play_remove_lines::full#6 ← play_remove_lines::full#4 -Coalesced [342] play_lock_current::ypos2#7 ← play_lock_current::ypos2#0 -Coalesced [346] play_lock_current::i#8 ← play_lock_current::i#3 -Coalesced [347] play_lock_current::col#5 ← play_lock_current::col#0 -Coalesced [359] play_lock_current::ypos2#8 ← play_lock_current::ypos2#1 -Not coalescing [360] play_lock_current::i#7 ← play_lock_current::i#1 -Coalesced [361] play_lock_current::l#7 ← play_lock_current::l#1 -Not coalescing [362] play_lock_current::i#9 ← play_lock_current::i#1 -Coalesced [363] play_lock_current::col#6 ← play_lock_current::col#1 -Coalesced [364] play_lock_current::c#5 ← play_lock_current::c#1 -Coalesced [374] keyboard_event_get::return#6 ← keyboard_event_get::return#1 -Coalesced [375] keyboard_events_size#81 ← keyboard_events_size#4 -Coalesced [378] keyboard_events_size#80 ← keyboard_events_size#13 -Coalesced [379] keyboard_events_size#82 ← keyboard_events_size#19 -Coalesced [387] keyboard_event_scan::keycode#17 ← keyboard_event_scan::keycode#1 -Coalesced (already) [388] keyboard_events_size#84 ← keyboard_events_size#29 -Coalesced [404] keyboard_modifiers#60 ← keyboard_modifiers#3 -Coalesced [411] keyboard_modifiers#62 ← keyboard_modifiers#4 -Coalesced [419] keyboard_modifiers#63 ← keyboard_modifiers#12 -Coalesced [420] keyboard_modifiers#61 ← keyboard_modifiers#11 -Coalesced [421] keyboard_event_scan::row#15 ← keyboard_event_scan::row#1 -Coalesced [422] keyboard_event_scan::keycode#16 ← keyboard_event_scan::keycode#14 -Coalesced (already) [423] keyboard_events_size#83 ← keyboard_events_size#13 -Coalesced [424] keyboard_event_scan::keycode#19 ← keyboard_event_scan::keycode#11 -Coalesced [425] keyboard_events_size#86 ← keyboard_events_size#29 -Coalesced [435] keyboard_events_size#88 ← keyboard_events_size#2 -Coalesced [441] keyboard_event_scan::keycode#18 ← keyboard_event_scan::keycode#15 -Coalesced [442] keyboard_events_size#85 ← keyboard_events_size#30 -Coalesced [443] keyboard_event_scan::col#9 ← keyboard_event_scan::col#1 -Coalesced (already) [444] keyboard_event_scan::keycode#20 ← keyboard_event_scan::keycode#15 -Coalesced (already) [445] keyboard_events_size#87 ← keyboard_events_size#30 -Coalesced [449] keyboard_events_size#91 ← keyboard_events_size#1 -Coalesced (already) [450] keyboard_events_size#90 ← keyboard_events_size#10 -Coalesced (already) [451] keyboard_events_size#89 ← keyboard_events_size#10 -Coalesced [466] play_init::j#3 ← play_init::j#1 -Coalesced [467] play_init::pli#3 ← play_init::pli#1 -Coalesced [468] play_init::idx#3 ← play_init::idx#1 -Coalesced [493] sprites_init::s#3 ← sprites_init::s#1 -Coalesced [494] sprites_init::xpos#3 ← sprites_init::xpos#1 -Coalesced [525] render_init::line#5 ← render_init::line#1 -Coalesced [526] render_init::l#5 ← render_init::l#1 -Coalesced [527] render_init::c#3 ← render_init::c#1 -Coalesced [528] render_init::i#3 ← render_init::i#1 -Coalesced [529] render_init::li#3 ← render_init::li#1 -Coalesced [532] render_screen_original::screen#13 ← render_screen_original::screen#7 -Coalesced [538] render_screen_original::orig#10 ← render_screen_original::orig#5 -Coalesced [539] render_screen_original::x#10 ← render_screen_original::x#1 -Coalesced [540] render_screen_original::screen#15 ← render_screen_original::screen#1 -Coalesced [545] render_screen_original::c#4 ← render_screen_original::c#0 -Coalesced [551] render_screen_original::screen#17 ← render_screen_original::screen#2 -Coalesced [552] render_screen_original::x#12 ← render_screen_original::x#2 -Coalesced [561] render_screen_original::screen#12 ← render_screen_original::screen#11 -Coalesced [562] render_screen_original::orig#9 ← render_screen_original::orig#1 -Coalesced [563] render_screen_original::y#9 ← render_screen_original::y#1 -Coalesced [564] render_screen_original::screen#18 ← render_screen_original::screen#11 -Coalesced [565] render_screen_original::x#13 ← render_screen_original::x#3 -Coalesced (already) [566] render_screen_original::orig#11 ← render_screen_original::orig#1 -Coalesced [567] render_screen_original::x#11 ← render_screen_original::x#2 -Coalesced [568] render_screen_original::screen#16 ← render_screen_original::screen#2 -Coalesced [571] render_screen_original::c#5 ← render_screen_original::c#1 -Coalesced (already) [572] render_screen_original::screen#14 ← render_screen_original::screen#1 -Coalesced [573] render_screen_original::x#9 ← render_screen_original::x#1 -Coalesced [580] fill::addr#3 ← fill::addr#1 -Coalesced [603] irq_raster_next#21 ← irq_raster_next#2 -Coalesced [609] irq::raster_next#5 ← irq::raster_next#1 -Coalesced [615] irq::raster_next#4 ← irq::raster_next#0 -Coalesced [621] irq_raster_next#22 ← irq_raster_next#1 -Coalesced down to 73 phi equivalence classes +Coalesced [32] current_piece_gfx#97 ← current_piece_gfx#16 +Coalesced [33] current_xpos#107 ← current_xpos#23 +Coalesced [34] current_ypos#81 ← current_ypos#18 +Coalesced [35] current_piece_char#85 ← current_piece_char#12 +Not coalescing [63] render_screen_render#69 ← render_screen_render#15 +Not coalescing [65] current_ypos#84 ← current_ypos#13 +Not coalescing [66] render_screen_render#68 ← render_screen_render#15 +Not coalescing [67] current_xpos#110 ← current_xpos#19 +Not coalescing [68] current_piece_gfx#100 ← current_piece_gfx#14 +Not coalescing [69] current_piece_char#88 ← current_piece_char#1 +Coalesced [73] render_screen_show#54 ← render_screen_show#11 +Coalesced [74] render_screen_render#67 ← render_screen_render#10 +Coalesced [77] render_screen_show#52 ← render_screen_show#24 +Coalesced [78] render_screen_render#65 ← render_screen_render#31 +Coalesced [79] current_piece#72 ← current_piece#10 +Coalesced [80] current_orientation#75 ← current_orientation#19 +Coalesced [81] current_piece_gfx#98 ← current_piece_gfx#14 +Coalesced [82] current_xpos#108 ← current_xpos#19 +Coalesced [83] current_ypos#82 ← current_ypos#13 +Coalesced [84] current_piece_char#86 ← current_piece_char#1 +Coalesced [85] keyboard_events_size#79 ← keyboard_events_size#16 +Coalesced [86] current_movedown_counter#48 ← current_movedown_counter#10 +Coalesced (already) [87] render_screen_show#53 ← render_screen_show#15 +Coalesced (already) [88] render_screen_render#66 ← render_screen_render#15 +Coalesced [94] render_current::ypos2#11 ← render_current::ypos2#0 +Coalesced [98] render_current::i#14 ← render_current::i#1 +Coalesced [104] render_current::ypos2#12 ← render_current::ypos2#1 +Coalesced [105] render_current::i#12 ← render_current::i#8 +Coalesced [106] render_current::l#11 ← render_current::l#1 +Coalesced [111] render_current::i#15 ← render_current::i#3 +Coalesced [112] render_current::xpos#7 ← render_current::xpos#0 +Coalesced [122] render_current::i#13 ← render_current::i#10 +Coalesced (already) [123] render_current::i#16 ← render_current::i#10 +Coalesced [124] render_current::xpos#8 ← render_current::xpos#1 +Coalesced [125] render_current::c#7 ← render_current::c#1 +Coalesced [131] render_playfield::i#6 ← render_playfield::i#3 +Coalesced [132] render_playfield::screen_line#3 ← render_playfield::screen_line#0 +Coalesced [142] render_playfield::l#5 ← render_playfield::l#1 +Coalesced [143] render_playfield::i#5 ← render_playfield::i#1 +Coalesced (already) [144] render_playfield::i#7 ← render_playfield::i#1 +Coalesced [145] render_playfield::screen_line#4 ← render_playfield::screen_line#1 +Coalesced [146] render_playfield::c#3 ← render_playfield::c#1 +Coalesced [149] current_orientation#78 ← current_orientation#14 +Coalesced [150] current_piece_gfx#103 ← current_piece_gfx#1 +Coalesced [155] play_move_rotate::orientation#7 ← play_move_rotate::orientation#2 +Not coalescing [160] current_piece#76 ← current_piece#10 +Coalesced [161] play_collision::orientation#8 ← play_collision::orientation#3 +Coalesced [162] play_collision::ypos#8 ← play_collision::ypos#3 +Coalesced [163] play_collision::xpos#17 ← play_collision::xpos#3 +Coalesced [170] current_orientation#76 ← current_orientation#4 +Coalesced [171] current_piece_gfx#101 ← current_piece_gfx#3 +Coalesced (already) [172] current_orientation#77 ← current_orientation#14 +Coalesced (already) [173] current_piece_gfx#102 ← current_piece_gfx#1 +Coalesced [176] play_move_rotate::orientation#6 ← play_move_rotate::orientation#1 +Coalesced [180] play_collision::ypos2#11 ← play_collision::ypos2#0 +Coalesced [183] play_collision::i#12 ← play_collision::i#3 +Not coalescing [184] play_collision::col#9 ← play_collision::xpos#5 +Coalesced [201] play_collision::ypos2#12 ← play_collision::ypos2#1 +Not coalescing [202] play_collision::i#11 ← play_collision::i#1 +Coalesced [203] play_collision::l#11 ← play_collision::l#1 +Not coalescing [204] play_collision::i#13 ← play_collision::i#1 +Coalesced [205] play_collision::col#10 ← play_collision::col#1 +Coalesced [206] play_collision::c#9 ← play_collision::c#1 +Not coalescing [212] current_piece#75 ← current_piece#10 +Coalesced [213] play_collision::orientation#7 ← play_collision::orientation#2 +Coalesced [214] play_collision::ypos#7 ← play_collision::ypos#2 +Coalesced [215] play_collision::xpos#16 ← play_collision::xpos#2 +Coalesced [221] current_xpos#113 ← current_xpos#2 +Coalesced [224] current_xpos#112 ← current_xpos#1 +Coalesced (already) [225] current_xpos#115 ← current_xpos#1 +Not coalescing [229] current_piece#74 ← current_piece#10 +Coalesced [230] play_collision::orientation#6 ← play_collision::orientation#1 +Coalesced [231] play_collision::ypos#6 ← play_collision::ypos#1 +Coalesced [232] play_collision::xpos#15 ← play_collision::xpos#1 +Coalesced [238] current_xpos#111 ← current_xpos#4 +Coalesced (already) [239] current_xpos#114 ← current_xpos#1 +Coalesced [250] play_move_down::movedown#13 ← play_move_down::movedown#2 +Coalesced [254] play_move_down::movedown#16 ← play_move_down::movedown#3 +Not coalescing [260] current_piece#73 ← current_piece#16 +Coalesced [261] play_collision::orientation#5 ← play_collision::orientation#0 +Coalesced [262] play_collision::ypos#5 ← play_collision::ypos#0 +Coalesced [263] play_collision::xpos#14 ← play_collision::xpos#0 +Coalesced [274] current_ypos#85 ← current_ypos#18 +Coalesced [276] current_piece_gfx#104 ← current_piece_gfx#16 +Coalesced [277] current_xpos#116 ← current_xpos#23 +Coalesced [278] current_piece_char#89 ← current_piece_char#12 +Coalesced (already) [280] current_ypos#88 ← current_ypos#29 +Coalesced [281] current_piece#80 ← current_piece#20 +Coalesced [282] current_orientation#81 ← current_orientation#29 +Coalesced (already) [283] current_piece_gfx#107 ← current_piece_gfx#26 +Coalesced (already) [284] current_xpos#119 ← current_xpos#33 +Coalesced (already) [285] current_piece_char#92 ← current_piece_char#20 +Coalesced [289] current_ypos#86 ← current_ypos#0 +Coalesced (already) [290] current_piece#78 ← current_piece#16 +Coalesced (already) [291] current_orientation#79 ← current_orientation#10 +Coalesced (already) [292] current_piece_gfx#105 ← current_piece_gfx#20 +Coalesced (already) [293] current_xpos#117 ← current_xpos#10 +Coalesced (already) [294] current_piece_char#90 ← current_piece_char#15 +Coalesced [295] current_movedown_counter#49 ← current_movedown_counter#1 +Coalesced (already) [296] current_ypos#87 ← current_ypos#21 +Coalesced (already) [297] current_piece#79 ← current_piece#16 +Coalesced (already) [298] current_orientation#80 ← current_orientation#10 +Coalesced (already) [299] current_piece_gfx#106 ← current_piece_gfx#20 +Coalesced (already) [300] current_xpos#118 ← current_xpos#10 +Coalesced (already) [301] current_piece_char#91 ← current_piece_char#15 +Coalesced [302] play_move_down::movedown#17 ← play_move_down::movedown#7 +Coalesced [303] play_move_down::movedown#15 ← play_move_down::movedown#10 +Coalesced (already) [304] play_move_down::movedown#14 ← play_move_down::movedown#10 +Coalesced [319] play_spawn_current::piece_idx#4 ← play_spawn_current::piece_idx#1 +Coalesced [324] play_remove_lines::r#10 ← play_remove_lines::r#3 +Coalesced [325] play_remove_lines::w#14 ← play_remove_lines::w#12 +Coalesced [338] play_remove_lines::w#16 ← play_remove_lines::w#2 +Coalesced [342] play_remove_lines::w#18 ← play_remove_lines::w#11 +Coalesced [348] play_remove_lines::w#19 ← play_remove_lines::w#3 +Coalesced [349] play_remove_lines::r#9 ← play_remove_lines::r#1 +Coalesced [350] play_remove_lines::w#13 ← play_remove_lines::w#11 +Coalesced [351] play_remove_lines::y#9 ← play_remove_lines::y#1 +Coalesced [352] play_remove_lines::w#17 ← play_remove_lines::w#1 +Coalesced (already) [353] play_remove_lines::r#11 ← play_remove_lines::r#1 +Coalesced (already) [354] play_remove_lines::w#15 ← play_remove_lines::w#1 +Coalesced [355] play_remove_lines::x#5 ← play_remove_lines::x#1 +Coalesced [356] play_remove_lines::full#5 ← play_remove_lines::full#2 +Coalesced (already) [357] play_remove_lines::full#6 ← play_remove_lines::full#4 +Coalesced [359] play_lock_current::ypos2#7 ← play_lock_current::ypos2#0 +Coalesced [363] play_lock_current::i#8 ← play_lock_current::i#3 +Coalesced [364] play_lock_current::col#5 ← play_lock_current::col#0 +Coalesced [376] play_lock_current::ypos2#8 ← play_lock_current::ypos2#1 +Not coalescing [377] play_lock_current::i#7 ← play_lock_current::i#1 +Coalesced [378] play_lock_current::l#7 ← play_lock_current::l#1 +Not coalescing [379] play_lock_current::i#9 ← play_lock_current::i#1 +Coalesced [380] play_lock_current::col#6 ← play_lock_current::col#1 +Coalesced [381] play_lock_current::c#5 ← play_lock_current::c#1 +Coalesced [391] keyboard_event_get::return#6 ← keyboard_event_get::return#1 +Coalesced [392] keyboard_events_size#81 ← keyboard_events_size#4 +Coalesced [395] keyboard_events_size#80 ← keyboard_events_size#13 +Coalesced [396] keyboard_events_size#82 ← keyboard_events_size#19 +Coalesced [404] keyboard_event_scan::keycode#17 ← keyboard_event_scan::keycode#1 +Coalesced (already) [405] keyboard_events_size#84 ← keyboard_events_size#29 +Coalesced [421] keyboard_modifiers#60 ← keyboard_modifiers#3 +Coalesced [428] keyboard_modifiers#62 ← keyboard_modifiers#4 +Coalesced [436] keyboard_modifiers#63 ← keyboard_modifiers#12 +Coalesced [437] keyboard_modifiers#61 ← keyboard_modifiers#11 +Coalesced [438] keyboard_event_scan::row#15 ← keyboard_event_scan::row#1 +Coalesced [439] keyboard_event_scan::keycode#16 ← keyboard_event_scan::keycode#14 +Coalesced (already) [440] keyboard_events_size#83 ← keyboard_events_size#13 +Coalesced [441] keyboard_event_scan::keycode#19 ← keyboard_event_scan::keycode#11 +Coalesced [442] keyboard_events_size#86 ← keyboard_events_size#29 +Coalesced [452] keyboard_events_size#88 ← keyboard_events_size#2 +Coalesced [458] keyboard_event_scan::keycode#18 ← keyboard_event_scan::keycode#15 +Coalesced [459] keyboard_events_size#85 ← keyboard_events_size#30 +Coalesced [460] keyboard_event_scan::col#9 ← keyboard_event_scan::col#1 +Coalesced (already) [461] keyboard_event_scan::keycode#20 ← keyboard_event_scan::keycode#15 +Coalesced (already) [462] keyboard_events_size#87 ← keyboard_events_size#30 +Coalesced [466] keyboard_events_size#91 ← keyboard_events_size#1 +Coalesced (already) [467] keyboard_events_size#90 ← keyboard_events_size#10 +Coalesced (already) [468] keyboard_events_size#89 ← keyboard_events_size#10 +Coalesced [489] play_init::j#3 ← play_init::j#1 +Coalesced [490] play_init::pli#3 ← play_init::pli#1 +Coalesced [491] play_init::idx#3 ← play_init::idx#1 +Coalesced [516] sprites_init::s#3 ← sprites_init::s#1 +Coalesced [517] sprites_init::xpos#3 ← sprites_init::xpos#1 +Coalesced [551] render_init::i#3 ← render_init::i#1 +Coalesced [552] render_init::li_1#3 ← render_init::li_1#1 +Coalesced [553] render_init::li_2#3 ← render_init::li_2#1 +Coalesced [554] render_init::line#5 ← render_init::line#1 +Coalesced [555] render_init::l#5 ← render_init::l#1 +Coalesced [556] render_init::c#3 ← render_init::c#1 +Coalesced [563] fill::addr#3 ← fill::addr#1 +Coalesced [565] render_screen_original::screen#13 ← render_screen_original::screen#11 +Coalesced [567] render_screen_original::screen#15 ← render_screen_original::screen#8 +Coalesced [573] render_screen_original::orig#10 ← render_screen_original::orig#5 +Coalesced [574] render_screen_original::x#10 ← render_screen_original::x#1 +Coalesced [575] render_screen_original::screen#17 ← render_screen_original::screen#2 +Coalesced [580] render_screen_original::c#4 ← render_screen_original::c#0 +Coalesced [586] render_screen_original::screen#19 ← render_screen_original::screen#3 +Coalesced [587] render_screen_original::x#12 ← render_screen_original::x#2 +Coalesced [596] render_screen_original::screen#14 ← render_screen_original::screen#12 +Coalesced [597] render_screen_original::orig#9 ← render_screen_original::orig#1 +Coalesced [598] render_screen_original::y#9 ← render_screen_original::y#1 +Coalesced [599] render_screen_original::screen#20 ← render_screen_original::screen#12 +Coalesced [600] render_screen_original::x#13 ← render_screen_original::x#3 +Coalesced (already) [601] render_screen_original::orig#11 ← render_screen_original::orig#1 +Coalesced [602] render_screen_original::x#11 ← render_screen_original::x#2 +Coalesced [603] render_screen_original::screen#18 ← render_screen_original::screen#3 +Coalesced [606] render_screen_original::c#5 ← render_screen_original::c#1 +Coalesced (already) [607] render_screen_original::screen#16 ← render_screen_original::screen#2 +Coalesced [608] render_screen_original::x#9 ← render_screen_original::x#1 +Coalesced [635] irq_raster_next#21 ← irq_raster_next#2 +Coalesced [641] irq::raster_next#5 ← irq::raster_next#1 +Coalesced [647] irq::raster_next#4 ← irq::raster_next#0 +Coalesced [653] irq_raster_next#22 ← irq_raster_next#1 +Coalesced down to 79 phi equivalence classes +Culled Empty Block (label) main::@32 Culled Empty Block (label) render_current::@14 Culled Empty Block (label) render_current::@15 Culled Empty Block (label) render_current::@16 @@ -6410,9 +6872,10 @@ Culled Empty Block (label) keyboard_event_scan::@36 Culled Empty Block (label) keyboard_event_scan::@35 Culled Empty Block (label) play_init::@3 Culled Empty Block (label) sprites_init::@3 -Culled Empty Block (label) render_init::@12 Culled Empty Block (label) render_init::@13 Culled Empty Block (label) render_init::@11 +Culled Empty Block (label) render_init::@12 +Culled Empty Block (label) fill::@3 Culled Empty Block (label) render_screen_original::@14 Culled Empty Block (label) render_screen_original::@16 Culled Empty Block (label) render_screen_original::@17 @@ -6420,21 +6883,20 @@ Culled Empty Block (label) render_screen_original::@12 Culled Empty Block (label) render_screen_original::@18 Culled Empty Block (label) render_screen_original::@15 Culled Empty Block (label) render_screen_original::@13 -Culled Empty Block (label) fill::@3 Culled Empty Block (label) irq::@10 Adding NOP phi() at start of @begin Adding NOP phi() at start of toSpritePtr1 -Adding NOP phi() at start of @30 +Adding NOP phi() at start of @32 Adding NOP phi() at start of @end Adding NOP phi() at start of main -Adding NOP phi() at start of main::@22 +Adding NOP phi() at start of main::@16 +Adding NOP phi() at start of main::@17 +Adding NOP phi() at start of main::@18 +Adding NOP phi() at start of main::@19 +Adding NOP phi() at start of main::@20 Adding NOP phi() at start of main::@23 Adding NOP phi() at start of main::@24 -Adding NOP phi() at start of main::@25 -Adding NOP phi() at start of main::@26 -Adding NOP phi() at start of main::@29 -Adding NOP phi() at start of main::@19 -Adding NOP phi() at start of render_playfield +Adding NOP phi() at start of main::@30 Adding NOP phi() at start of play_move_down::@8 Adding NOP phi() at start of play_move_down::@13 Adding NOP phi() at start of play_move_down::@19 @@ -6446,12 +6908,13 @@ Adding NOP phi() at start of play_remove_lines::@17 Adding NOP phi() at start of keyboard_event_scan Adding NOP phi() at start of keyboard_event_scan::@20 Adding NOP phi() at start of keyboard_event_scan::@21 +Adding NOP phi() at start of render_show::toD0182 +Adding NOP phi() at start of render_show::toD0181 Adding NOP phi() at start of play_init Adding NOP phi() at start of render_init Adding NOP phi() at start of render_init::vicSelectGfxBank1_toDd001 -Adding NOP phi() at start of render_init::toD0181 +Adding NOP phi() at start of render_init::@8 Adding NOP phi() at start of render_init::@9 -Adding NOP phi() at start of render_screen_original Adding NOP phi() at start of fill Adding NOP phi() at start of irq::toSpritePtr2 @@ -6465,8 +6928,8 @@ FINAL CONTROL FLOW GRAPH }} kickasm(location (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0) {{ .import binary "nes-screen.iscr" }} - to:@18 -@18: scope:[] from @14 + to:@20 +@20: scope:[] from @14 kickasm(location (const byte*) PLAYFIELD_SPRITES#0) {{ .var sprites = LoadPicture("nes-playfield.png", List().add($010101, $000000)) .for(var sy=0;sy<10;sy++) { .for(var sx=0;sx<3;sx++) { @@ -6479,909 +6942,954 @@ FINAL CONTROL FLOW GRAPH } } }} - to:@19 -@19: scope:[] from @18 + to:@21 +@21: scope:[] from @20 [4] (byte) irq_raster_next#0 ← (const byte) IRQ_RASTER_FIRST#0 [5] (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 to:toSpritePtr1 -toSpritePtr1: scope:[] from @19 +toSpritePtr1: scope:[] from @21 [6] phi() - to:@31 -@31: scope:[] from toSpritePtr1 + to:@33 +@33: scope:[] from toSpritePtr1 [7] (byte) irq_sprite_ptr#0 ← (const byte) toSpritePtr1_return#0 [8] (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - to:@30 -@30: scope:[] from @31 + to:@32 +@32: scope:[] from @33 [9] phi() [10] call main to:@end -@end: scope:[] from @30 +@end: scope:[] from @32 [11] phi() -main: scope:[main] from @30 +main: scope:[main] from @32 [12] phi() [13] call sid_rnd_init - to:main::@21 -main::@21: scope:[main] from main + to:main::@15 +main::@15: scope:[main] from main asm { sei } [15] call render_init - to:main::@22 -main::@22: scope:[main] from main::@21 + to:main::@16 +main::@16: scope:[main] from main::@15 [16] phi() [17] call sprites_init - to:main::@23 -main::@23: scope:[main] from main::@22 + to:main::@17 +main::@17: scope:[main] from main::@16 [18] phi() [19] call sprites_irq_init - to:main::@24 -main::@24: scope:[main] from main::@23 + to:main::@18 +main::@18: scope:[main] from main::@17 [20] phi() [21] call play_init - to:main::@25 -main::@25: scope:[main] from main::@24 + to:main::@19 +main::@19: scope:[main] from main::@18 [22] phi() [23] call play_spawn_current - to:main::@26 -main::@26: scope:[main] from main::@25 + to:main::@20 +main::@20: scope:[main] from main::@19 [24] phi() [25] call render_playfield - to:main::@27 -main::@27: scope:[main] from main::@26 + to:main::@21 +main::@21: scope:[main] from main::@20 [26] (byte~) current_ypos#83 ← (byte) current_ypos#18 [27] (byte~) current_xpos#109 ← (byte) current_xpos#23 [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 [29] (byte~) current_piece_char#87 ← (byte) current_piece_char#12 [30] call render_current - [31] (byte*~) current_piece#72 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + [31] (byte*~) current_piece#71 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) to:main::@1 -main::@1: scope:[main] from main::@10 main::@27 - [32] (byte) current_movedown_counter#12 ← phi( main::@10/(byte) current_movedown_counter#10 main::@27/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [32] (byte) keyboard_events_size#19 ← phi( main::@10/(byte) keyboard_events_size#16 main::@27/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [32] (byte) current_piece_char#15 ← phi( main::@10/(byte) current_piece_char#1 main::@27/(byte) current_piece_char#12 ) - [32] (byte) current_ypos#21 ← phi( main::@10/(byte) current_ypos#13 main::@27/(byte) current_ypos#18 ) - [32] (byte) current_xpos#10 ← phi( main::@10/(byte) current_xpos#19 main::@27/(byte) current_xpos#23 ) - [32] (byte*) current_piece_gfx#20 ← phi( main::@10/(byte*) current_piece_gfx#14 main::@27/(byte*) current_piece_gfx#16 ) - [32] (byte) current_orientation#10 ← phi( main::@10/(byte) current_orientation#19 main::@27/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [32] (byte*) current_piece#16 ← phi( main::@10/(byte*) current_piece#10 main::@27/(byte*~) current_piece#72 ) +main::@1: scope:[main] from main::@21 main::@7 + [32] (byte) current_movedown_counter#12 ← phi( main::@21/(byte/signed byte/word/signed word/dword/signed dword) 0 main::@7/(byte) current_movedown_counter#10 ) + [32] (byte) keyboard_events_size#19 ← phi( main::@21/(byte/signed byte/word/signed word/dword/signed dword) 0 main::@7/(byte) keyboard_events_size#16 ) + [32] (byte) current_piece_char#15 ← phi( main::@21/(byte) current_piece_char#12 main::@7/(byte) current_piece_char#1 ) + [32] (byte) current_ypos#21 ← phi( main::@21/(byte) current_ypos#18 main::@7/(byte) current_ypos#13 ) + [32] (byte) current_xpos#10 ← phi( main::@21/(byte) current_xpos#23 main::@7/(byte) current_xpos#19 ) + [32] (byte*) current_piece_gfx#20 ← phi( main::@21/(byte*) current_piece_gfx#16 main::@7/(byte*) current_piece_gfx#14 ) + [32] (byte) current_orientation#10 ← phi( main::@21/(byte/signed byte/word/signed word/dword/signed dword) 0 main::@7/(byte) current_orientation#19 ) + [32] (byte*) current_piece#16 ← phi( main::@21/(byte*~) current_piece#71 main::@7/(byte*) current_piece#10 ) + [32] (byte) render_screen_render#15 ← phi( main::@21/(byte/signed byte/word/signed word/dword/signed dword) 64 main::@7/(byte) render_screen_render#31 ) + [32] (byte) render_screen_show#15 ← phi( main::@21/(byte/signed byte/word/signed word/dword/signed dword) 0 main::@7/(byte) render_screen_show#24 ) to:main::@4 main::@4: scope:[main] from main::@1 main::@4 [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 - to:main::@7 -main::@7: scope:[main] from main::@4 main::@7 - [34] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@7 - to:main::@9 -main::@9: scope:[main] from main::@7 - [35] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0) - [36] call keyboard_event_scan - to:main::@29 -main::@29: scope:[main] from main::@9 + to:main::@6 +main::@6: scope:[main] from main::@4 + [34] (byte~) main::$9 ← (byte) render_screen_show#15 >> (byte/signed byte/word/signed word/dword/signed dword) 4 + [35] *((const byte*) BORDERCOL#0) ← (byte~) main::$9 + [36] call render_show + to:main::@23 +main::@23: scope:[main] from main::@6 [37] phi() - [38] call keyboard_event_get - [39] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 + [38] call keyboard_event_scan + to:main::@24 +main::@24: scope:[main] from main::@23 + [39] phi() + [40] call keyboard_event_get + [41] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 + to:main::@25 +main::@25: scope:[main] from main::@24 + [42] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 + [43] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 + [44] call play_move_down + [45] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 + to:main::@26 +main::@26: scope:[main] from main::@25 + [46] (byte~) main::$13 ← (byte) play_move_down::return#3 + [47] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$13 + [48] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 + [49] call play_move_leftright + [50] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 + to:main::@27 +main::@27: scope:[main] from main::@26 + [51] (byte~) main::$14 ← (byte) play_move_leftright::return#4 + [52] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$14 + [53] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 + [54] call play_move_rotate + [55] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 + to:main::@28 +main::@28: scope:[main] from main::@27 + [56] (byte~) main::$15 ← (byte) play_move_rotate::return#4 + [57] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$15 + [58] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@7 + to:main::@13 +main::@13: scope:[main] from main::@28 + [59] (byte~) render_screen_render#69 ← (byte) render_screen_render#15 + [60] call render_playfield + to:main::@29 +main::@29: scope:[main] from main::@13 + [61] (byte~) current_ypos#84 ← (byte) current_ypos#13 + [62] (byte~) render_screen_render#68 ← (byte) render_screen_render#15 + [63] (byte~) current_xpos#110 ← (byte) current_xpos#19 + [64] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 + [65] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 + [66] call render_current to:main::@30 main::@30: scope:[main] from main::@29 - [40] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 - [41] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 - [42] call play_move_down - [43] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 - to:main::@31 -main::@31: scope:[main] from main::@30 - [44] (byte~) main::$12 ← (byte) play_move_down::return#3 - [45] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$12 - [46] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 - [47] call play_move_leftright - [48] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 - to:main::@32 -main::@32: scope:[main] from main::@31 - [49] (byte~) main::$13 ← (byte) play_move_leftright::return#4 - [50] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$13 - [51] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 - [52] call play_move_rotate - [53] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 - to:main::@33 -main::@33: scope:[main] from main::@32 - [54] (byte~) main::$14 ← (byte) play_move_rotate::return#4 - [55] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$14 - [56] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@10 - to:main::@19 -main::@19: scope:[main] from main::@33 - [57] phi() - [58] call render_playfield - to:main::@34 -main::@34: scope:[main] from main::@19 - [59] (byte~) current_ypos#84 ← (byte) current_ypos#13 - [60] (byte~) current_xpos#110 ← (byte) current_xpos#19 - [61] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 - [62] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 - [63] call render_current - to:main::@10 -main::@10: scope:[main] from main::@33 main::@34 - [64] *((const byte*) BORDERCOL#0) ← -- *((const byte*) BORDERCOL#0) + [67] phi() + [68] call render_screen_swap + to:main::@7 +main::@7: scope:[main] from main::@28 main::@30 + [69] (byte) render_screen_render#31 ← phi( main::@28/(byte) render_screen_render#15 main::@30/(byte) render_screen_render#10 ) + [69] (byte) render_screen_show#24 ← phi( main::@28/(byte) render_screen_show#15 main::@30/(byte) render_screen_show#11 ) + [70] *((const byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 to:main::@1 -render_current: scope:[render_current] from main::@27 main::@34 - [65] (byte) current_piece_char#62 ← phi( main::@27/(byte~) current_piece_char#87 main::@34/(byte~) current_piece_char#88 ) - [65] (byte*) current_piece_gfx#52 ← phi( main::@27/(byte*~) current_piece_gfx#99 main::@34/(byte*~) current_piece_gfx#100 ) - [65] (byte) current_xpos#47 ← phi( main::@27/(byte~) current_xpos#109 main::@34/(byte~) current_xpos#110 ) - [65] (byte) current_ypos#9 ← phi( main::@27/(byte~) current_ypos#83 main::@34/(byte~) current_ypos#84 ) - [66] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 +render_screen_swap: scope:[render_screen_swap] from main::@30 + [71] (byte) render_screen_render#10 ← (byte) render_screen_render#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 + [72] (byte) render_screen_show#11 ← (byte) render_screen_show#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 + to:render_screen_swap::@return +render_screen_swap::@return: scope:[render_screen_swap] from render_screen_swap + [73] return + to:@return +render_current: scope:[render_current] from main::@21 main::@29 + [74] (byte) current_piece_char#62 ← phi( main::@21/(byte~) current_piece_char#87 main::@29/(byte~) current_piece_char#88 ) + [74] (byte*) current_piece_gfx#52 ← phi( main::@21/(byte*~) current_piece_gfx#99 main::@29/(byte*~) current_piece_gfx#100 ) + [74] (byte) current_xpos#47 ← phi( main::@21/(byte~) current_xpos#109 main::@29/(byte~) current_xpos#110 ) + [74] (byte) render_screen_render#27 ← phi( main::@21/(byte/signed byte/word/signed word/dword/signed dword) 64 main::@29/(byte~) render_screen_render#68 ) + [74] (byte) current_ypos#9 ← phi( main::@21/(byte~) current_ypos#83 main::@29/(byte~) current_ypos#84 ) + [75] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 to:render_current::@1 render_current::@1: scope:[render_current] from render_current render_current::@3 - [67] (byte) render_current::l#4 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::l#1 ) - [67] (byte) render_current::i#3 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::i#8 ) - [67] (byte) render_current::ypos2#2 ← phi( render_current/(byte) render_current::ypos2#0 render_current::@3/(byte) render_current::ypos2#1 ) - [68] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 + [76] (byte) render_current::l#4 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::l#1 ) + [76] (byte) render_current::i#3 ← phi( render_current/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@3/(byte) render_current::i#8 ) + [76] (byte) render_current::ypos2#2 ← phi( render_current/(byte) render_current::ypos2#0 render_current::@3/(byte) render_current::ypos2#1 ) + [77] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 to:render_current::@7 render_current::@7: scope:[render_current] from render_current::@1 render_current::@13 - [69] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 + [78] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 to:render_current::@3 render_current::@3: scope:[render_current] from render_current::@5 render_current::@7 - [70] (byte) render_current::i#8 ← phi( render_current::@5/(byte) render_current::i#10 render_current::@7/(byte) render_current::i#1 ) - [71] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 - [72] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 - [73] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 + [79] (byte) render_current::i#8 ← phi( render_current::@5/(byte) render_current::i#10 render_current::@7/(byte) render_current::i#1 ) + [80] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 + [81] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 + [82] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 to:render_current::@return render_current::@return: scope:[render_current] from render_current::@3 - [74] return + [83] return to:@return render_current::@13: scope:[render_current] from render_current::@1 - [75] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 + [84] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 to:render_current::@7 render_current::@2: scope:[render_current] from render_current::@13 - [76] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#2) - [77] (byte) render_current::xpos#0 ← (byte) current_xpos#47 + [85] (byte~) render_current::$5 ← (byte) render_screen_render#27 + (byte) render_current::ypos2#2 + [86] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) + [87] (byte) render_current::xpos#0 ← (byte) current_xpos#47 to:render_current::@4 render_current::@4: scope:[render_current] from render_current::@2 render_current::@5 - [78] (byte) render_current::c#2 ← phi( render_current::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@5/(byte) render_current::c#1 ) - [78] (byte) render_current::xpos#2 ← phi( render_current::@2/(byte) render_current::xpos#0 render_current::@5/(byte) render_current::xpos#1 ) - [78] (byte) render_current::i#4 ← phi( render_current::@2/(byte) render_current::i#3 render_current::@5/(byte) render_current::i#10 ) - [79] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) - [80] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 - [81] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 + [88] (byte) render_current::c#2 ← phi( render_current::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 render_current::@5/(byte) render_current::c#1 ) + [88] (byte) render_current::xpos#2 ← phi( render_current::@2/(byte) render_current::xpos#0 render_current::@5/(byte) render_current::xpos#1 ) + [88] (byte) render_current::i#4 ← phi( render_current::@2/(byte) render_current::i#3 render_current::@5/(byte) render_current::i#10 ) + [89] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) + [90] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 + [91] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 to:render_current::@9 render_current::@9: scope:[render_current] from render_current::@4 - [82] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 + [92] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 to:render_current::@10 render_current::@10: scope:[render_current] from render_current::@9 - [83] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 + [93] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 to:render_current::@5 render_current::@5: scope:[render_current] from render_current::@10 render_current::@4 render_current::@9 - [84] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 - [85] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 - [86] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 + [94] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 + [95] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 + [96] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 to:render_current::@3 -render_playfield: scope:[render_playfield] from main::@19 main::@26 - [87] phi() +render_playfield: scope:[render_playfield] from main::@13 main::@20 + [97] (byte) render_screen_render#18 ← phi( main::@13/(byte~) render_screen_render#69 main::@20/(byte/signed byte/word/signed word/dword/signed dword) 64 ) to:render_playfield::@1 render_playfield::@1: scope:[render_playfield] from render_playfield render_playfield::@3 - [88] (byte) render_playfield::i#3 ← phi( render_playfield/(const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::i#1 ) - [88] (byte) render_playfield::l#2 ← phi( render_playfield/(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::l#1 ) - [89] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [90] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) + [98] (byte) render_playfield::i#3 ← phi( render_playfield/(const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::i#1 ) + [98] (byte) render_playfield::l#2 ← phi( render_playfield/(byte/signed byte/word/signed word/dword/signed dword) 2 render_playfield::@3/(byte) render_playfield::l#1 ) + [99] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [100] (byte~) render_playfield::$3 ← (byte) render_screen_render#18 + (byte~) render_playfield::$2 + [101] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) to:render_playfield::@2 render_playfield::@2: scope:[render_playfield] from render_playfield::@1 render_playfield::@2 - [91] (byte) render_playfield::c#2 ← phi( render_playfield::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_playfield::@2/(byte) render_playfield::c#1 ) - [91] (byte*) render_playfield::screen_line#2 ← phi( render_playfield::@1/(byte*) render_playfield::screen_line#0 render_playfield::@2/(byte*) render_playfield::screen_line#1 ) - [91] (byte) render_playfield::i#2 ← phi( render_playfield::@1/(byte) render_playfield::i#3 render_playfield::@2/(byte) render_playfield::i#1 ) - [92] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) - [93] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 - [94] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 - [95] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 - [96] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 + [102] (byte) render_playfield::c#2 ← phi( render_playfield::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_playfield::@2/(byte) render_playfield::c#1 ) + [102] (byte*) render_playfield::screen_line#2 ← phi( render_playfield::@1/(byte*) render_playfield::screen_line#0 render_playfield::@2/(byte*) render_playfield::screen_line#1 ) + [102] (byte) render_playfield::i#2 ← phi( render_playfield::@1/(byte) render_playfield::i#3 render_playfield::@2/(byte) render_playfield::i#1 ) + [103] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) + [104] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 + [105] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 + [106] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 + [107] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 to:render_playfield::@3 render_playfield::@3: scope:[render_playfield] from render_playfield::@2 - [97] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 - [98] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 + [108] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 + [109] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 to:render_playfield::@return render_playfield::@return: scope:[render_playfield] from render_playfield::@3 - [99] return + [110] return to:@return -play_move_rotate: scope:[play_move_rotate] from main::@32 - [100] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 +play_move_rotate: scope:[play_move_rotate] from main::@27 + [111] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 to:play_move_rotate::@6 play_move_rotate::@6: scope:[play_move_rotate] from play_move_rotate - [101] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 + [112] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 to:play_move_rotate::@return play_move_rotate::@return: scope:[play_move_rotate] from play_move_rotate::@11 play_move_rotate::@14 play_move_rotate::@6 - [102] (byte*) current_piece_gfx#14 ← phi( play_move_rotate::@11/(byte*) current_piece_gfx#3 play_move_rotate::@14/(byte*) current_piece_gfx#1 play_move_rotate::@6/(byte*) current_piece_gfx#1 ) - [102] (byte) current_orientation#19 ← phi( play_move_rotate::@11/(byte) current_orientation#4 play_move_rotate::@14/(byte) current_orientation#14 play_move_rotate::@6/(byte) current_orientation#14 ) - [102] (byte) play_move_rotate::return#1 ← phi( play_move_rotate::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_rotate::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_rotate::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [103] return + [113] (byte*) current_piece_gfx#14 ← phi( play_move_rotate::@11/(byte*) current_piece_gfx#3 play_move_rotate::@14/(byte*) current_piece_gfx#1 play_move_rotate::@6/(byte*) current_piece_gfx#1 ) + [113] (byte) current_orientation#19 ← phi( play_move_rotate::@11/(byte) current_orientation#4 play_move_rotate::@14/(byte) current_orientation#14 play_move_rotate::@6/(byte) current_orientation#14 ) + [113] (byte) play_move_rotate::return#1 ← phi( play_move_rotate::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_rotate::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_rotate::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [114] return to:@return play_move_rotate::@2: scope:[play_move_rotate] from play_move_rotate::@6 - [104] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 - [105] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 + [115] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 + [116] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 to:play_move_rotate::@4 play_move_rotate::@4: scope:[play_move_rotate] from play_move_rotate::@1 play_move_rotate::@2 - [106] (byte) play_move_rotate::orientation#3 ← phi( play_move_rotate::@1/(byte) play_move_rotate::orientation#1 play_move_rotate::@2/(byte) play_move_rotate::orientation#2 ) - [107] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 - [108] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 - [109] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 - [110] (byte*~) current_piece#76 ← (byte*) current_piece#10 - [111] call play_collision - [112] (byte) play_collision::return#13 ← (byte) play_collision::return#14 + [117] (byte) play_move_rotate::orientation#3 ← phi( play_move_rotate::@1/(byte) play_move_rotate::orientation#1 play_move_rotate::@2/(byte) play_move_rotate::orientation#2 ) + [118] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 + [119] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 + [120] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 + [121] (byte*~) current_piece#76 ← (byte*) current_piece#10 + [122] call play_collision + [123] (byte) play_collision::return#13 ← (byte) play_collision::return#14 to:play_move_rotate::@14 play_move_rotate::@14: scope:[play_move_rotate] from play_move_rotate::@4 - [113] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 - [114] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return + [124] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 + [125] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return to:play_move_rotate::@11 play_move_rotate::@11: scope:[play_move_rotate] from play_move_rotate::@14 - [115] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 - [116] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 + [126] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 + [127] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 to:play_move_rotate::@return play_move_rotate::@1: scope:[play_move_rotate] from play_move_rotate - [117] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 - [118] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 + [128] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 + [129] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 to:play_move_rotate::@4 play_collision: scope:[play_collision] from play_move_down::@12 play_move_leftright::@1 play_move_leftright::@7 play_move_rotate::@4 - [119] (byte) play_collision::xpos#5 ← phi( play_move_down::@12/(byte) play_collision::xpos#0 play_move_leftright::@1/(byte) play_collision::xpos#1 play_move_leftright::@7/(byte) play_collision::xpos#2 play_move_rotate::@4/(byte) play_collision::xpos#3 ) - [119] (byte) play_collision::ypos#4 ← phi( play_move_down::@12/(byte) play_collision::ypos#0 play_move_leftright::@1/(byte) play_collision::ypos#1 play_move_leftright::@7/(byte) play_collision::ypos#2 play_move_rotate::@4/(byte) play_collision::ypos#3 ) - [119] (byte) play_collision::orientation#4 ← phi( play_move_down::@12/(byte) play_collision::orientation#0 play_move_leftright::@1/(byte) play_collision::orientation#1 play_move_leftright::@7/(byte) play_collision::orientation#2 play_move_rotate::@4/(byte) play_collision::orientation#3 ) - [119] (byte*) current_piece#12 ← phi( play_move_down::@12/(byte*~) current_piece#73 play_move_leftright::@1/(byte*~) current_piece#74 play_move_leftright::@7/(byte*~) current_piece#75 play_move_rotate::@4/(byte*~) current_piece#76 ) - [120] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 - [121] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [130] (byte) play_collision::xpos#5 ← phi( play_move_down::@12/(byte) play_collision::xpos#0 play_move_leftright::@1/(byte) play_collision::xpos#1 play_move_leftright::@7/(byte) play_collision::xpos#2 play_move_rotate::@4/(byte) play_collision::xpos#3 ) + [130] (byte) play_collision::ypos#4 ← phi( play_move_down::@12/(byte) play_collision::ypos#0 play_move_leftright::@1/(byte) play_collision::ypos#1 play_move_leftright::@7/(byte) play_collision::ypos#2 play_move_rotate::@4/(byte) play_collision::ypos#3 ) + [130] (byte) play_collision::orientation#4 ← phi( play_move_down::@12/(byte) play_collision::orientation#0 play_move_leftright::@1/(byte) play_collision::orientation#1 play_move_leftright::@7/(byte) play_collision::orientation#2 play_move_rotate::@4/(byte) play_collision::orientation#3 ) + [130] (byte*) current_piece#12 ← phi( play_move_down::@12/(byte*~) current_piece#73 play_move_leftright::@1/(byte*~) current_piece#74 play_move_leftright::@7/(byte*~) current_piece#75 play_move_rotate::@4/(byte*~) current_piece#76 ) + [131] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 + [132] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 to:play_collision::@1 play_collision::@1: scope:[play_collision] from play_collision play_collision::@20 - [122] (byte) play_collision::l#6 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte) play_collision::l#1 ) - [122] (byte) play_collision::i#3 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte~) play_collision::i#11 ) - [122] (byte) play_collision::ypos2#2 ← phi( play_collision/(byte) play_collision::ypos2#0 play_collision::@20/(byte) play_collision::ypos2#1 ) - [123] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) - [124] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 + [133] (byte) play_collision::l#6 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte) play_collision::l#1 ) + [133] (byte) play_collision::i#3 ← phi( play_collision/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@20/(byte~) play_collision::i#11 ) + [133] (byte) play_collision::ypos2#2 ← phi( play_collision/(byte) play_collision::ypos2#0 play_collision::@20/(byte) play_collision::ypos2#1 ) + [134] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) + [135] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 to:play_collision::@2 play_collision::@2: scope:[play_collision] from play_collision::@1 play_collision::@21 - [125] (byte) play_collision::c#2 ← phi( play_collision::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@21/(byte) play_collision::c#1 ) - [125] (byte) play_collision::col#2 ← phi( play_collision::@1/(byte~) play_collision::col#9 play_collision::@21/(byte) play_collision::col#1 ) - [125] (byte) play_collision::i#2 ← phi( play_collision::@1/(byte) play_collision::i#3 play_collision::@21/(byte~) play_collision::i#13 ) - [126] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 - [127] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 + [136] (byte) play_collision::c#2 ← phi( play_collision::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_collision::@21/(byte) play_collision::c#1 ) + [136] (byte) play_collision::col#2 ← phi( play_collision::@1/(byte~) play_collision::col#9 play_collision::@21/(byte) play_collision::col#1 ) + [136] (byte) play_collision::i#2 ← phi( play_collision::@1/(byte) play_collision::i#3 play_collision::@21/(byte~) play_collision::i#13 ) + [137] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 + [138] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 to:play_collision::@8 play_collision::@8: scope:[play_collision] from play_collision::@2 - [128] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 + [139] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 to:play_collision::@return play_collision::@return: scope:[play_collision] from play_collision::@17 play_collision::@4 play_collision::@5 play_collision::@6 play_collision::@8 - [129] (byte) play_collision::return#14 ← phi( play_collision::@4/(const byte) COLLISION_LEFT#0 play_collision::@5/(const byte) COLLISION_RIGHT#0 play_collision::@6/(const byte) COLLISION_PLAYFIELD#0 play_collision::@17/(const byte) COLLISION_NONE#0 play_collision::@8/(const byte) COLLISION_BOTTOM#0 ) - [130] return + [140] (byte) play_collision::return#14 ← phi( play_collision::@4/(const byte) COLLISION_LEFT#0 play_collision::@5/(const byte) COLLISION_RIGHT#0 play_collision::@6/(const byte) COLLISION_PLAYFIELD#0 play_collision::@17/(const byte) COLLISION_NONE#0 play_collision::@8/(const byte) COLLISION_BOTTOM#0 ) + [141] return to:@return play_collision::@4: scope:[play_collision] from play_collision::@8 - [131] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 - [132] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 + [142] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 + [143] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 to:play_collision::@return play_collision::@5: scope:[play_collision] from play_collision::@4 - [133] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 + [144] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 to:play_collision::@return play_collision::@6: scope:[play_collision] from play_collision::@5 - [134] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 + [145] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 to:play_collision::@return play_collision::@3: scope:[play_collision] from play_collision::@2 play_collision::@6 - [135] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 - [136] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 - [137] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 + [146] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 + [147] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 + [148] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 to:play_collision::@17 play_collision::@17: scope:[play_collision] from play_collision::@3 - [138] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 - [139] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 - [140] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 + [149] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 + [150] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 + [151] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 to:play_collision::@return play_collision::@20: scope:[play_collision] from play_collision::@17 - [141] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 + [152] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 to:play_collision::@1 play_collision::@21: scope:[play_collision] from play_collision::@3 - [142] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 + [153] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 to:play_collision::@2 -play_move_leftright: scope:[play_move_leftright] from main::@31 - [143] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 +play_move_leftright: scope:[play_move_leftright] from main::@26 + [154] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 to:play_move_leftright::@6 play_move_leftright::@6: scope:[play_move_leftright] from play_move_leftright - [144] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return + [155] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return to:play_move_leftright::@7 play_move_leftright::@7: scope:[play_move_leftright] from play_move_leftright::@6 - [145] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 - [146] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 - [147] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 - [148] (byte*~) current_piece#75 ← (byte*) current_piece#10 - [149] call play_collision - [150] (byte) play_collision::return#12 ← (byte) play_collision::return#14 + [156] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 + [157] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 + [158] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 + [159] (byte*~) current_piece#75 ← (byte*) current_piece#10 + [160] call play_collision + [161] (byte) play_collision::return#12 ← (byte) play_collision::return#14 to:play_move_leftright::@15 play_move_leftright::@15: scope:[play_move_leftright] from play_move_leftright::@7 - [151] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 - [152] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return + [162] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 + [163] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return to:play_move_leftright::@8 play_move_leftright::@8: scope:[play_move_leftright] from play_move_leftright::@15 - [153] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 + [164] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 to:play_move_leftright::@return play_move_leftright::@return: scope:[play_move_leftright] from play_move_leftright::@11 play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 play_move_leftright::@8 - [154] (byte) current_xpos#19 ← phi( play_move_leftright::@11/(byte) current_xpos#4 play_move_leftright::@15/(byte) current_xpos#1 play_move_leftright::@8/(byte) current_xpos#2 play_move_leftright::@14/(byte) current_xpos#1 play_move_leftright::@6/(byte) current_xpos#1 ) - [154] (byte) play_move_leftright::return#1 ← phi( play_move_leftright::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@15/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [155] return + [165] (byte) current_xpos#19 ← phi( play_move_leftright::@11/(byte) current_xpos#4 play_move_leftright::@15/(byte) current_xpos#1 play_move_leftright::@8/(byte) current_xpos#2 play_move_leftright::@14/(byte) current_xpos#1 play_move_leftright::@6/(byte) current_xpos#1 ) + [165] (byte) play_move_leftright::return#1 ← phi( play_move_leftright::@11/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@15/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 play_move_leftright::@14/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_leftright::@6/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [166] return to:@return play_move_leftright::@1: scope:[play_move_leftright] from play_move_leftright - [156] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 - [157] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 - [158] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 - [159] (byte*~) current_piece#74 ← (byte*) current_piece#10 - [160] call play_collision - [161] (byte) play_collision::return#1 ← (byte) play_collision::return#14 + [167] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 + [168] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 + [169] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 + [170] (byte*~) current_piece#74 ← (byte*) current_piece#10 + [171] call play_collision + [172] (byte) play_collision::return#1 ← (byte) play_collision::return#14 to:play_move_leftright::@14 play_move_leftright::@14: scope:[play_move_leftright] from play_move_leftright::@1 - [162] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 - [163] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return + [173] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 + [174] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return to:play_move_leftright::@11 play_move_leftright::@11: scope:[play_move_leftright] from play_move_leftright::@14 - [164] (byte) current_xpos#4 ← -- (byte) current_xpos#1 + [175] (byte) current_xpos#4 ← -- (byte) current_xpos#1 to:play_move_leftright::@return -play_move_down: scope:[play_move_down] from main::@30 - [165] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 - [166] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 +play_move_down: scope:[play_move_down] from main::@25 + [176] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 + [177] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 to:play_move_down::@8 play_move_down::@8: scope:[play_move_down] from play_move_down - [167] phi() + [178] phi() to:play_move_down::@1 play_move_down::@1: scope:[play_move_down] from play_move_down play_move_down::@8 - [168] (byte) play_move_down::movedown#10 ← phi( play_move_down/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 ) - [169] call keyboard_event_pressed - [170] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 + [179] (byte) play_move_down::movedown#10 ← phi( play_move_down/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@8/(byte/signed byte/word/signed word/dword/signed dword) 1 ) + [180] call keyboard_event_pressed + [181] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 to:play_move_down::@17 play_move_down::@17: scope:[play_move_down] from play_move_down::@1 - [171] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 - [172] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 + [182] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 + [183] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 to:play_move_down::@9 play_move_down::@9: scope:[play_move_down] from play_move_down::@17 - [173] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 + [184] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 to:play_move_down::@10 play_move_down::@10: scope:[play_move_down] from play_move_down::@9 - [174] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 + [185] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 to:play_move_down::@2 play_move_down::@2: scope:[play_move_down] from play_move_down::@10 play_move_down::@17 play_move_down::@9 - [175] (byte) play_move_down::movedown#7 ← phi( play_move_down::@10/(byte) play_move_down::movedown#2 play_move_down::@17/(byte) play_move_down::movedown#10 play_move_down::@9/(byte) play_move_down::movedown#10 ) - [176] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 + [186] (byte) play_move_down::movedown#7 ← phi( play_move_down::@10/(byte) play_move_down::movedown#2 play_move_down::@17/(byte) play_move_down::movedown#10 play_move_down::@9/(byte) play_move_down::movedown#10 ) + [187] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 to:play_move_down::@11 play_move_down::@11: scope:[play_move_down] from play_move_down::@2 - [177] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 + [188] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 to:play_move_down::@4 play_move_down::@4: scope:[play_move_down] from play_move_down::@11 play_move_down::@2 - [178] (byte) play_move_down::movedown#6 ← phi( play_move_down::@11/(byte) play_move_down::movedown#3 play_move_down::@2/(byte) play_move_down::movedown#7 ) - [179] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return + [189] (byte) play_move_down::movedown#6 ← phi( play_move_down::@11/(byte) play_move_down::movedown#3 play_move_down::@2/(byte) play_move_down::movedown#7 ) + [190] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return to:play_move_down::@12 play_move_down::@12: scope:[play_move_down] from play_move_down::@4 - [180] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 - [181] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 - [182] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 - [183] (byte*~) current_piece#73 ← (byte*) current_piece#16 - [184] call play_collision - [185] (byte) play_collision::return#0 ← (byte) play_collision::return#14 + [191] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 + [192] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 + [193] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 + [194] (byte*~) current_piece#73 ← (byte*) current_piece#16 + [195] call play_collision + [196] (byte) play_collision::return#0 ← (byte) play_collision::return#14 to:play_move_down::@18 play_move_down::@18: scope:[play_move_down] from play_move_down::@12 - [186] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 - [187] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 + [197] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 + [198] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 to:play_move_down::@13 play_move_down::@13: scope:[play_move_down] from play_move_down::@18 - [188] phi() - [189] call play_lock_current + [199] phi() + [200] call play_lock_current to:play_move_down::@19 play_move_down::@19: scope:[play_move_down] from play_move_down::@13 - [190] phi() - [191] call play_remove_lines + [201] phi() + [202] call play_remove_lines to:play_move_down::@20 play_move_down::@20: scope:[play_move_down] from play_move_down::@19 - [192] phi() - [193] call play_spawn_current - [194] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + [203] phi() + [204] call play_spawn_current + [205] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) to:play_move_down::@7 play_move_down::@7: scope:[play_move_down] from play_move_down::@20 play_move_down::@6 - [195] (byte) current_piece_char#20 ← phi( play_move_down::@20/(byte) current_piece_char#12 play_move_down::@6/(byte) current_piece_char#15 ) - [195] (byte) current_xpos#33 ← phi( play_move_down::@20/(byte) current_xpos#23 play_move_down::@6/(byte) current_xpos#10 ) - [195] (byte*) current_piece_gfx#26 ← phi( play_move_down::@20/(byte*) current_piece_gfx#16 play_move_down::@6/(byte*) current_piece_gfx#20 ) - [195] (byte) current_orientation#29 ← phi( play_move_down::@20/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@6/(byte) current_orientation#10 ) - [195] (byte*) current_piece#20 ← phi( play_move_down::@20/(byte*~) current_piece#77 play_move_down::@6/(byte*) current_piece#16 ) - [195] (byte) current_ypos#29 ← phi( play_move_down::@20/(byte) current_ypos#18 play_move_down::@6/(byte) current_ypos#0 ) + [206] (byte) current_piece_char#20 ← phi( play_move_down::@20/(byte) current_piece_char#12 play_move_down::@6/(byte) current_piece_char#15 ) + [206] (byte) current_xpos#33 ← phi( play_move_down::@20/(byte) current_xpos#23 play_move_down::@6/(byte) current_xpos#10 ) + [206] (byte*) current_piece_gfx#26 ← phi( play_move_down::@20/(byte*) current_piece_gfx#16 play_move_down::@6/(byte*) current_piece_gfx#20 ) + [206] (byte) current_orientation#29 ← phi( play_move_down::@20/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@6/(byte) current_orientation#10 ) + [206] (byte*) current_piece#20 ← phi( play_move_down::@20/(byte*~) current_piece#77 play_move_down::@6/(byte*) current_piece#16 ) + [206] (byte) current_ypos#29 ← phi( play_move_down::@20/(byte) current_ypos#18 play_move_down::@6/(byte) current_ypos#0 ) to:play_move_down::@return play_move_down::@return: scope:[play_move_down] from play_move_down::@4 play_move_down::@7 - [196] (byte) current_piece_char#1 ← phi( play_move_down::@4/(byte) current_piece_char#15 play_move_down::@7/(byte) current_piece_char#20 ) - [196] (byte) current_xpos#1 ← phi( play_move_down::@4/(byte) current_xpos#10 play_move_down::@7/(byte) current_xpos#33 ) - [196] (byte*) current_piece_gfx#1 ← phi( play_move_down::@4/(byte*) current_piece_gfx#20 play_move_down::@7/(byte*) current_piece_gfx#26 ) - [196] (byte) current_orientation#14 ← phi( play_move_down::@4/(byte) current_orientation#10 play_move_down::@7/(byte) current_orientation#29 ) - [196] (byte*) current_piece#10 ← phi( play_move_down::@4/(byte*) current_piece#16 play_move_down::@7/(byte*) current_piece#20 ) - [196] (byte) current_ypos#13 ← phi( play_move_down::@4/(byte) current_ypos#21 play_move_down::@7/(byte) current_ypos#29 ) - [196] (byte) current_movedown_counter#10 ← phi( play_move_down::@4/(byte) current_movedown_counter#1 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [196] (byte) play_move_down::return#2 ← phi( play_move_down::@4/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 1 ) - [197] return + [207] (byte) current_piece_char#1 ← phi( play_move_down::@4/(byte) current_piece_char#15 play_move_down::@7/(byte) current_piece_char#20 ) + [207] (byte) current_xpos#1 ← phi( play_move_down::@4/(byte) current_xpos#10 play_move_down::@7/(byte) current_xpos#33 ) + [207] (byte*) current_piece_gfx#1 ← phi( play_move_down::@4/(byte*) current_piece_gfx#20 play_move_down::@7/(byte*) current_piece_gfx#26 ) + [207] (byte) current_orientation#14 ← phi( play_move_down::@4/(byte) current_orientation#10 play_move_down::@7/(byte) current_orientation#29 ) + [207] (byte*) current_piece#10 ← phi( play_move_down::@4/(byte*) current_piece#16 play_move_down::@7/(byte*) current_piece#20 ) + [207] (byte) current_ypos#13 ← phi( play_move_down::@4/(byte) current_ypos#21 play_move_down::@7/(byte) current_ypos#29 ) + [207] (byte) current_movedown_counter#10 ← phi( play_move_down::@4/(byte) current_movedown_counter#1 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [207] (byte) play_move_down::return#2 ← phi( play_move_down::@4/(byte/signed byte/word/signed word/dword/signed dword) 0 play_move_down::@7/(byte/signed byte/word/signed word/dword/signed dword) 1 ) + [208] return to:@return play_move_down::@6: scope:[play_move_down] from play_move_down::@18 - [198] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 + [209] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 to:play_move_down::@7 -play_spawn_current: scope:[play_spawn_current] from main::@25 play_move_down::@20 - [199] phi() +play_spawn_current: scope:[play_spawn_current] from main::@19 play_move_down::@20 + [210] phi() to:play_spawn_current::@1 play_spawn_current::@1: scope:[play_spawn_current] from play_spawn_current play_spawn_current::@7 - [200] (byte) play_spawn_current::piece_idx#2 ← phi( play_spawn_current/(byte/signed byte/word/signed word/dword/signed dword) 7 play_spawn_current::@7/(byte) play_spawn_current::piece_idx#1 ) - [201] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 + [211] (byte) play_spawn_current::piece_idx#2 ← phi( play_spawn_current/(byte/signed byte/word/signed word/dword/signed dword) 7 play_spawn_current::@7/(byte) play_spawn_current::piece_idx#1 ) + [212] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 to:play_spawn_current::@3 play_spawn_current::@3: scope:[play_spawn_current] from play_spawn_current::@1 - [202] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [203] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 - [204] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) - [205] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) - [206] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) + [213] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [214] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 + [215] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) + [216] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) + [217] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) to:play_spawn_current::@return play_spawn_current::@return: scope:[play_spawn_current] from play_spawn_current::@3 - [207] return + [218] return to:@return play_spawn_current::@2: scope:[play_spawn_current] from play_spawn_current::@1 - [208] phi() - [209] call sid_rnd - [210] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 + [219] phi() + [220] call sid_rnd + [221] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 to:play_spawn_current::@7 play_spawn_current::@7: scope:[play_spawn_current] from play_spawn_current::@2 - [211] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 - [212] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [222] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 + [223] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 to:play_spawn_current::@1 sid_rnd: scope:[sid_rnd] from play_spawn_current::@2 - [213] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) + [224] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) to:sid_rnd::@return sid_rnd::@return: scope:[sid_rnd] from sid_rnd - [214] return + [225] return to:@return play_remove_lines: scope:[play_remove_lines] from play_move_down::@19 - [215] phi() + [226] phi() to:play_remove_lines::@1 play_remove_lines::@1: scope:[play_remove_lines] from play_remove_lines play_remove_lines::@4 - [216] (byte) play_remove_lines::y#8 ← phi( play_remove_lines/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@4/(byte) play_remove_lines::y#1 ) - [216] (byte) play_remove_lines::w#12 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::w#11 ) - [216] (byte) play_remove_lines::r#3 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::r#1 ) + [227] (byte) play_remove_lines::y#8 ← phi( play_remove_lines/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@4/(byte) play_remove_lines::y#1 ) + [227] (byte) play_remove_lines::w#12 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::w#11 ) + [227] (byte) play_remove_lines::r#3 ← phi( play_remove_lines/(const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@4/(byte) play_remove_lines::r#1 ) to:play_remove_lines::@2 play_remove_lines::@2: scope:[play_remove_lines] from play_remove_lines::@1 play_remove_lines::@3 - [217] (byte) play_remove_lines::full#4 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@3/(byte) play_remove_lines::full#2 ) - [217] (byte) play_remove_lines::x#2 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@3/(byte) play_remove_lines::x#1 ) - [217] (byte) play_remove_lines::w#4 ← phi( play_remove_lines::@1/(byte) play_remove_lines::w#12 play_remove_lines::@3/(byte) play_remove_lines::w#1 ) - [217] (byte) play_remove_lines::r#2 ← phi( play_remove_lines::@1/(byte) play_remove_lines::r#3 play_remove_lines::@3/(byte) play_remove_lines::r#1 ) - [218] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) - [219] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 - [220] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 + [228] (byte) play_remove_lines::full#4 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 1 play_remove_lines::@3/(byte) play_remove_lines::full#2 ) + [228] (byte) play_remove_lines::x#2 ← phi( play_remove_lines::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_remove_lines::@3/(byte) play_remove_lines::x#1 ) + [228] (byte) play_remove_lines::w#4 ← phi( play_remove_lines::@1/(byte) play_remove_lines::w#12 play_remove_lines::@3/(byte) play_remove_lines::w#1 ) + [228] (byte) play_remove_lines::r#2 ← phi( play_remove_lines::@1/(byte) play_remove_lines::r#3 play_remove_lines::@3/(byte) play_remove_lines::r#1 ) + [229] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) + [230] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 + [231] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 to:play_remove_lines::@3 play_remove_lines::@3: scope:[play_remove_lines] from play_remove_lines::@17 play_remove_lines::@2 - [221] (byte) play_remove_lines::full#2 ← phi( play_remove_lines::@17/(byte) play_remove_lines::full#4 play_remove_lines::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [222] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 - [223] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 - [224] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 - [225] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 + [232] (byte) play_remove_lines::full#2 ← phi( play_remove_lines::@17/(byte) play_remove_lines::full#4 play_remove_lines::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [233] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 + [234] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 + [235] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 + [236] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 to:play_remove_lines::@9 play_remove_lines::@9: scope:[play_remove_lines] from play_remove_lines::@3 - [226] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 + [237] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 to:play_remove_lines::@10 play_remove_lines::@10: scope:[play_remove_lines] from play_remove_lines::@9 - [227] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 + [238] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 to:play_remove_lines::@4 play_remove_lines::@4: scope:[play_remove_lines] from play_remove_lines::@10 play_remove_lines::@9 - [228] (byte) play_remove_lines::w#11 ← phi( play_remove_lines::@10/(byte) play_remove_lines::w#2 play_remove_lines::@9/(byte) play_remove_lines::w#1 ) - [229] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 - [230] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 + [239] (byte) play_remove_lines::w#11 ← phi( play_remove_lines::@10/(byte) play_remove_lines::w#2 play_remove_lines::@9/(byte) play_remove_lines::w#1 ) + [240] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 + [241] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 to:play_remove_lines::@5 play_remove_lines::@5: scope:[play_remove_lines] from play_remove_lines::@4 play_remove_lines::@6 - [231] (byte) play_remove_lines::w#6 ← phi( play_remove_lines::@4/(byte) play_remove_lines::w#11 play_remove_lines::@6/(byte) play_remove_lines::w#3 ) - [232] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 + [242] (byte) play_remove_lines::w#6 ← phi( play_remove_lines::@4/(byte) play_remove_lines::w#11 play_remove_lines::@6/(byte) play_remove_lines::w#3 ) + [243] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 to:play_remove_lines::@return play_remove_lines::@return: scope:[play_remove_lines] from play_remove_lines::@5 - [233] return + [244] return to:@return play_remove_lines::@6: scope:[play_remove_lines] from play_remove_lines::@5 - [234] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [235] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 + [245] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [246] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 to:play_remove_lines::@5 play_remove_lines::@17: scope:[play_remove_lines] from play_remove_lines::@2 - [236] phi() + [247] phi() to:play_remove_lines::@3 play_lock_current: scope:[play_lock_current] from play_move_down::@13 - [237] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [248] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 to:play_lock_current::@1 play_lock_current::@1: scope:[play_lock_current] from play_lock_current play_lock_current::@7 - [238] (byte) play_lock_current::l#6 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte) play_lock_current::l#1 ) - [238] (byte) play_lock_current::i#3 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte~) play_lock_current::i#7 ) - [238] (byte) play_lock_current::ypos2#2 ← phi( play_lock_current/(byte) play_lock_current::ypos2#0 play_lock_current::@7/(byte) play_lock_current::ypos2#1 ) - [239] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) - [240] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 + [249] (byte) play_lock_current::l#6 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte) play_lock_current::l#1 ) + [249] (byte) play_lock_current::i#3 ← phi( play_lock_current/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@7/(byte~) play_lock_current::i#7 ) + [249] (byte) play_lock_current::ypos2#2 ← phi( play_lock_current/(byte) play_lock_current::ypos2#0 play_lock_current::@7/(byte) play_lock_current::ypos2#1 ) + [250] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) + [251] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 to:play_lock_current::@2 play_lock_current::@2: scope:[play_lock_current] from play_lock_current::@1 play_lock_current::@8 - [241] (byte) play_lock_current::c#2 ← phi( play_lock_current::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@8/(byte) play_lock_current::c#1 ) - [241] (byte) play_lock_current::col#2 ← phi( play_lock_current::@1/(byte) play_lock_current::col#0 play_lock_current::@8/(byte) play_lock_current::col#1 ) - [241] (byte) play_lock_current::i#2 ← phi( play_lock_current::@1/(byte) play_lock_current::i#3 play_lock_current::@8/(byte~) play_lock_current::i#9 ) - [242] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 - [243] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 + [252] (byte) play_lock_current::c#2 ← phi( play_lock_current::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 play_lock_current::@8/(byte) play_lock_current::c#1 ) + [252] (byte) play_lock_current::col#2 ← phi( play_lock_current::@1/(byte) play_lock_current::col#0 play_lock_current::@8/(byte) play_lock_current::col#1 ) + [252] (byte) play_lock_current::i#2 ← phi( play_lock_current::@1/(byte) play_lock_current::i#3 play_lock_current::@8/(byte~) play_lock_current::i#9 ) + [253] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 + [254] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 to:play_lock_current::@4 play_lock_current::@4: scope:[play_lock_current] from play_lock_current::@2 - [244] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 + [255] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 to:play_lock_current::@3 play_lock_current::@3: scope:[play_lock_current] from play_lock_current::@2 play_lock_current::@4 - [245] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 - [246] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 - [247] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 + [256] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 + [257] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 + [258] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 to:play_lock_current::@5 play_lock_current::@5: scope:[play_lock_current] from play_lock_current::@3 - [248] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 - [249] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 - [250] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 + [259] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 + [260] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 + [261] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 to:play_lock_current::@return play_lock_current::@return: scope:[play_lock_current] from play_lock_current::@5 - [251] return + [262] return to:@return play_lock_current::@7: scope:[play_lock_current] from play_lock_current::@5 - [252] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 + [263] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 to:play_lock_current::@1 play_lock_current::@8: scope:[play_lock_current] from play_lock_current::@3 - [253] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 + [264] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 to:play_lock_current::@2 keyboard_event_pressed: scope:[keyboard_event_pressed] from keyboard_event_scan::@10 keyboard_event_scan::@11 keyboard_event_scan::@20 keyboard_event_scan::@9 play_move_down::@1 - [254] (byte) keyboard_event_pressed::keycode#5 ← phi( keyboard_event_scan::@10/(const byte) KEY_CTRL#0 keyboard_event_scan::@11/(const byte) KEY_COMMODORE#0 keyboard_event_scan::@20/(const byte) KEY_LSHIFT#0 keyboard_event_scan::@9/(const byte) KEY_RSHIFT#0 play_move_down::@1/(const byte) KEY_SPACE#0 ) - [255] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 - [256] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) - [257] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 - [258] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) + [265] (byte) keyboard_event_pressed::keycode#5 ← phi( keyboard_event_scan::@10/(const byte) KEY_CTRL#0 keyboard_event_scan::@11/(const byte) KEY_COMMODORE#0 keyboard_event_scan::@20/(const byte) KEY_LSHIFT#0 keyboard_event_scan::@9/(const byte) KEY_RSHIFT#0 play_move_down::@1/(const byte) KEY_SPACE#0 ) + [266] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 + [267] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) + [268] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [269] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) to:keyboard_event_pressed::@return keyboard_event_pressed::@return: scope:[keyboard_event_pressed] from keyboard_event_pressed - [259] return + [270] return to:@return -keyboard_event_get: scope:[keyboard_event_get] from main::@29 - [260] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return +keyboard_event_get: scope:[keyboard_event_get] from main::@24 + [271] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return to:keyboard_event_get::@3 keyboard_event_get::@3: scope:[keyboard_event_get] from keyboard_event_get - [261] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 - [262] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) + [272] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 + [273] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) to:keyboard_event_get::@return keyboard_event_get::@return: scope:[keyboard_event_get] from keyboard_event_get keyboard_event_get::@3 - [263] (byte) keyboard_events_size#16 ← phi( keyboard_event_get/(byte) keyboard_events_size#13 keyboard_event_get::@3/(byte) keyboard_events_size#4 ) - [263] (byte) keyboard_event_get::return#2 ← phi( keyboard_event_get/(byte/word/signed word/dword/signed dword) 255 keyboard_event_get::@3/(byte) keyboard_event_get::return#1 ) - [264] return + [274] (byte) keyboard_events_size#16 ← phi( keyboard_event_get/(byte) keyboard_events_size#13 keyboard_event_get::@3/(byte) keyboard_events_size#4 ) + [274] (byte) keyboard_event_get::return#2 ← phi( keyboard_event_get/(byte/word/signed word/dword/signed dword) 255 keyboard_event_get::@3/(byte) keyboard_event_get::return#1 ) + [275] return to:@return -keyboard_event_scan: scope:[keyboard_event_scan] from main::@9 - [265] phi() +keyboard_event_scan: scope:[keyboard_event_scan] from main::@23 + [276] phi() to:keyboard_event_scan::@1 keyboard_event_scan::@1: scope:[keyboard_event_scan] from keyboard_event_scan keyboard_event_scan::@3 - [266] (byte) keyboard_events_size#29 ← phi( keyboard_event_scan/(byte) keyboard_events_size#19 keyboard_event_scan::@3/(byte) keyboard_events_size#13 ) - [266] (byte) keyboard_event_scan::keycode#11 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::keycode#14 ) - [266] (byte) keyboard_event_scan::row#2 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::row#1 ) - [267] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 - [268] call keyboard_matrix_read - [269] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 + [277] (byte) keyboard_events_size#29 ← phi( keyboard_event_scan/(byte) keyboard_events_size#19 keyboard_event_scan::@3/(byte) keyboard_events_size#13 ) + [277] (byte) keyboard_event_scan::keycode#11 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::keycode#14 ) + [277] (byte) keyboard_event_scan::row#2 ← phi( keyboard_event_scan/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@3/(byte) keyboard_event_scan::row#1 ) + [278] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 + [279] call keyboard_matrix_read + [280] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 to:keyboard_event_scan::@25 keyboard_event_scan::@25: scope:[keyboard_event_scan] from keyboard_event_scan::@1 - [270] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 - [271] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 + [281] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 + [282] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 to:keyboard_event_scan::@13 keyboard_event_scan::@13: scope:[keyboard_event_scan] from keyboard_event_scan::@25 - [272] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 + [283] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 to:keyboard_event_scan::@3 keyboard_event_scan::@3: scope:[keyboard_event_scan] from keyboard_event_scan::@13 keyboard_event_scan::@19 - [273] (byte) keyboard_events_size#13 ← phi( keyboard_event_scan::@13/(byte) keyboard_events_size#29 keyboard_event_scan::@19/(byte) keyboard_events_size#30 ) - [273] (byte) keyboard_event_scan::keycode#14 ← phi( keyboard_event_scan::@13/(byte) keyboard_event_scan::keycode#1 keyboard_event_scan::@19/(byte) keyboard_event_scan::keycode#15 ) - [274] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 - [275] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 + [284] (byte) keyboard_events_size#13 ← phi( keyboard_event_scan::@13/(byte) keyboard_events_size#29 keyboard_event_scan::@19/(byte) keyboard_events_size#30 ) + [284] (byte) keyboard_event_scan::keycode#14 ← phi( keyboard_event_scan::@13/(byte) keyboard_event_scan::keycode#1 keyboard_event_scan::@19/(byte) keyboard_event_scan::keycode#15 ) + [285] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 + [286] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 to:keyboard_event_scan::@20 keyboard_event_scan::@20: scope:[keyboard_event_scan] from keyboard_event_scan::@3 - [276] phi() - [277] call keyboard_event_pressed - [278] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 + [287] phi() + [288] call keyboard_event_pressed + [289] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@26 keyboard_event_scan::@26: scope:[keyboard_event_scan] from keyboard_event_scan::@20 - [279] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 - [280] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 + [290] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 + [291] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 to:keyboard_event_scan::@21 keyboard_event_scan::@21: scope:[keyboard_event_scan] from keyboard_event_scan::@26 - [281] phi() + [292] phi() to:keyboard_event_scan::@9 keyboard_event_scan::@9: scope:[keyboard_event_scan] from keyboard_event_scan::@21 keyboard_event_scan::@26 - [282] (byte) keyboard_modifiers#11 ← phi( keyboard_event_scan::@21/(byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 keyboard_event_scan::@26/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [283] call keyboard_event_pressed - [284] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 + [293] (byte) keyboard_modifiers#11 ← phi( keyboard_event_scan::@21/(byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 keyboard_event_scan::@26/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [294] call keyboard_event_pressed + [295] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@27 keyboard_event_scan::@27: scope:[keyboard_event_scan] from keyboard_event_scan::@9 - [285] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 - [286] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 + [296] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 + [297] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 to:keyboard_event_scan::@22 keyboard_event_scan::@22: scope:[keyboard_event_scan] from keyboard_event_scan::@27 - [287] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 + [298] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 to:keyboard_event_scan::@10 keyboard_event_scan::@10: scope:[keyboard_event_scan] from keyboard_event_scan::@22 keyboard_event_scan::@27 - [288] (byte) keyboard_modifiers#12 ← phi( keyboard_event_scan::@22/(byte) keyboard_modifiers#3 keyboard_event_scan::@27/(byte) keyboard_modifiers#11 ) - [289] call keyboard_event_pressed - [290] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 + [299] (byte) keyboard_modifiers#12 ← phi( keyboard_event_scan::@22/(byte) keyboard_modifiers#3 keyboard_event_scan::@27/(byte) keyboard_modifiers#11 ) + [300] call keyboard_event_pressed + [301] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@28 keyboard_event_scan::@28: scope:[keyboard_event_scan] from keyboard_event_scan::@10 - [291] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 - [292] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 + [302] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 + [303] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 to:keyboard_event_scan::@23 keyboard_event_scan::@23: scope:[keyboard_event_scan] from keyboard_event_scan::@28 - [293] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 + [304] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 to:keyboard_event_scan::@11 keyboard_event_scan::@11: scope:[keyboard_event_scan] from keyboard_event_scan::@23 keyboard_event_scan::@28 - [294] (byte) keyboard_modifiers#13 ← phi( keyboard_event_scan::@23/(byte) keyboard_modifiers#4 keyboard_event_scan::@28/(byte) keyboard_modifiers#12 ) - [295] call keyboard_event_pressed - [296] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 + [305] (byte) keyboard_modifiers#13 ← phi( keyboard_event_scan::@23/(byte) keyboard_modifiers#4 keyboard_event_scan::@28/(byte) keyboard_modifiers#12 ) + [306] call keyboard_event_pressed + [307] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 to:keyboard_event_scan::@29 keyboard_event_scan::@29: scope:[keyboard_event_scan] from keyboard_event_scan::@11 - [297] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 - [298] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return + [308] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 + [309] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return to:keyboard_event_scan::@24 keyboard_event_scan::@24: scope:[keyboard_event_scan] from keyboard_event_scan::@29 - [299] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 + [310] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 to:keyboard_event_scan::@return keyboard_event_scan::@return: scope:[keyboard_event_scan] from keyboard_event_scan::@24 keyboard_event_scan::@29 - [300] return + [311] return to:@return keyboard_event_scan::@4: scope:[keyboard_event_scan] from keyboard_event_scan::@25 keyboard_event_scan::@5 - [301] (byte) keyboard_events_size#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_events_size#29 keyboard_event_scan::@5/(byte) keyboard_events_size#30 ) - [301] (byte) keyboard_event_scan::keycode#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_event_scan::keycode#11 keyboard_event_scan::@5/(byte) keyboard_event_scan::keycode#15 ) - [301] (byte) keyboard_event_scan::col#2 ← phi( keyboard_event_scan::@25/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@5/(byte) keyboard_event_scan::col#1 ) - [302] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) - [303] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) - [304] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 + [312] (byte) keyboard_events_size#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_events_size#29 keyboard_event_scan::@5/(byte) keyboard_events_size#30 ) + [312] (byte) keyboard_event_scan::keycode#10 ← phi( keyboard_event_scan::@25/(byte) keyboard_event_scan::keycode#11 keyboard_event_scan::@5/(byte) keyboard_event_scan::keycode#15 ) + [312] (byte) keyboard_event_scan::col#2 ← phi( keyboard_event_scan::@25/(byte/signed byte/word/signed word/dword/signed dword) 0 keyboard_event_scan::@5/(byte) keyboard_event_scan::col#1 ) + [313] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) + [314] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) + [315] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 to:keyboard_event_scan::@15 keyboard_event_scan::@15: scope:[keyboard_event_scan] from keyboard_event_scan::@4 - [305] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 + [316] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 to:keyboard_event_scan::@16 keyboard_event_scan::@16: scope:[keyboard_event_scan] from keyboard_event_scan::@15 - [306] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) - [307] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 + [317] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) + [318] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 to:keyboard_event_scan::@17 keyboard_event_scan::@17: scope:[keyboard_event_scan] from keyboard_event_scan::@16 - [308] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 - [309] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 + [319] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 + [320] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 to:keyboard_event_scan::@5 keyboard_event_scan::@5: scope:[keyboard_event_scan] from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 - [310] (byte) keyboard_events_size#30 ← phi( keyboard_event_scan::@17/(byte) keyboard_events_size#2 keyboard_event_scan::@4/(byte) keyboard_events_size#10 keyboard_event_scan::@15/(byte) keyboard_events_size#10 keyboard_event_scan::@7/(byte) keyboard_events_size#1 ) - [311] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 - [312] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 - [313] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 + [321] (byte) keyboard_events_size#30 ← phi( keyboard_event_scan::@17/(byte) keyboard_events_size#2 keyboard_event_scan::@4/(byte) keyboard_events_size#10 keyboard_event_scan::@15/(byte) keyboard_events_size#10 keyboard_event_scan::@7/(byte) keyboard_events_size#1 ) + [322] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 + [323] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 + [324] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 to:keyboard_event_scan::@19 keyboard_event_scan::@19: scope:[keyboard_event_scan] from keyboard_event_scan::@5 - [314] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 + [325] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 to:keyboard_event_scan::@3 keyboard_event_scan::@7: scope:[keyboard_event_scan] from keyboard_event_scan::@16 - [315] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 - [316] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 - [317] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 + [326] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 + [327] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 + [328] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 to:keyboard_event_scan::@5 keyboard_matrix_read: scope:[keyboard_matrix_read] from keyboard_event_scan::@1 - [318] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) - [319] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) + [329] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) + [330] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) to:keyboard_matrix_read::@return keyboard_matrix_read::@return: scope:[keyboard_matrix_read] from keyboard_matrix_read - [320] return - to:@return -play_init: scope:[play_init] from main::@24 - [321] phi() - to:play_init::@1 -play_init::@1: scope:[play_init] from play_init play_init::@1 - [322] (byte) play_init::idx#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::idx#1 ) - [322] (byte*) play_init::pli#2 ← phi( play_init/(const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 play_init::@1/(byte*) play_init::pli#1 ) - [322] (byte) play_init::j#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::j#1 ) - [323] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [324] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 - [325] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 - [326] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 - [327] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 - [328] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 - [329] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 - to:play_init::@2 -play_init::@2: scope:[play_init] from play_init::@1 - [330] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 - to:play_init::@return -play_init::@return: scope:[play_init] from play_init::@2 [331] return to:@return -sprites_irq_init: scope:[sprites_irq_init] from main::@23 +render_show: scope:[render_show] from main::@6 + [332] if((byte) render_screen_show#15==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_show::toD0181 + to:render_show::toD0182 +render_show::toD0182: scope:[render_show] from render_show + [333] phi() + to:render_show::@2 +render_show::@2: scope:[render_show] from render_show::toD0181 render_show::toD0182 + [334] (byte) render_show::d018val#3 ← phi( render_show::toD0181/(const byte) render_show::toD0181_return#0 render_show::toD0182/(const byte) render_show::toD0182_return#0 ) + [335] *((const byte*) D018#0) ← (byte) render_show::d018val#3 + to:render_show::@return +render_show::@return: scope:[render_show] from render_show::@2 + [336] return + to:@return +render_show::toD0181: scope:[render_show] from render_show + [337] phi() + to:render_show::@2 +play_init: scope:[play_init] from main::@18 + [338] phi() + to:play_init::@1 +play_init::@1: scope:[play_init] from play_init play_init::@1 + [339] (byte) play_init::idx#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::idx#1 ) + [339] (byte*) play_init::pli#2 ← phi( play_init/(const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 play_init::@1/(byte*) play_init::pli#1 ) + [339] (byte) play_init::j#2 ← phi( play_init/(byte/signed byte/word/signed word/dword/signed dword) 0 play_init::@1/(byte) play_init::j#1 ) + [340] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [341] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 + [342] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 + [343] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 + [344] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 + [345] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 + [346] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 + to:play_init::@2 +play_init::@2: scope:[play_init] from play_init::@1 + [347] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 + to:play_init::@return +play_init::@return: scope:[play_init] from play_init::@2 + [348] return + to:@return +sprites_irq_init: scope:[sprites_irq_init] from main::@17 asm { sei } - [333] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 + [350] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 asm { ldaCIA1_INTERRUPT } - [335] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 - [336] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 - [337] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 - [338] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 - [339] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 - [340] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 - [341] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() + [352] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 + [353] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 + [354] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 + [355] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 + [356] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 + [357] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 + [358] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() asm { cli } to:sprites_irq_init::@return sprites_irq_init::@return: scope:[sprites_irq_init] from sprites_irq_init - [343] return + [360] return to:@return -sprites_init: scope:[sprites_init] from main::@22 - [344] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 - [345] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [346] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) - [347] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) +sprites_init: scope:[sprites_init] from main::@16 + [361] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 + [362] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [363] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) + [364] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) to:sprites_init::@1 sprites_init::@1: scope:[sprites_init] from sprites_init sprites_init::@1 - [348] (byte) sprites_init::xpos#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 sprites_init::@1/(byte) sprites_init::xpos#1 ) - [348] (byte) sprites_init::s#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 0 sprites_init::@1/(byte) sprites_init::s#1 ) - [349] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [350] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 - [351] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 - [352] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 - [353] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 - [354] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 + [365] (byte) sprites_init::xpos#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 sprites_init::@1/(byte) sprites_init::xpos#1 ) + [365] (byte) sprites_init::s#2 ← phi( sprites_init/(byte/signed byte/word/signed word/dword/signed dword) 0 sprites_init::@1/(byte) sprites_init::s#1 ) + [366] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [367] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 + [368] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 + [369] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 + [370] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 + [371] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 to:sprites_init::@return sprites_init::@return: scope:[sprites_init] from sprites_init::@1 - [355] return + [372] return to:@return -render_init: scope:[render_init] from main::@21 - [356] phi() +render_init: scope:[render_init] from main::@15 + [373] phi() to:render_init::vicSelectGfxBank1 render_init::vicSelectGfxBank1: scope:[render_init] from render_init - [357] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 + [374] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 to:render_init::vicSelectGfxBank1_toDd001 render_init::vicSelectGfxBank1_toDd001: scope:[render_init] from render_init::vicSelectGfxBank1 - [358] phi() + [375] phi() to:render_init::vicSelectGfxBank1_@1 render_init::vicSelectGfxBank1_@1: scope:[render_init] from render_init::vicSelectGfxBank1_toDd001 - [359] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 - to:render_init::toD0181 -render_init::toD0181: scope:[render_init] from render_init::vicSelectGfxBank1_@1 - [360] phi() + [376] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 + to:render_init::@7 +render_init::@7: scope:[render_init] from render_init::vicSelectGfxBank1_@1 + [377] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 + [378] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 + [379] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 + [380] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 + [381] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 + [382] call render_screen_original to:render_init::@8 -render_init::@8: scope:[render_init] from render_init::toD0181 - [361] *((const byte*) D018#0) ← (const byte) render_init::toD0181_return#0 - [362] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 - [363] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 - [364] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 - [365] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 - [366] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 - [367] call fill +render_init::@8: scope:[render_init] from render_init::@7 + [383] phi() + [384] call render_screen_original to:render_init::@9 render_init::@9: scope:[render_init] from render_init::@8 - [368] phi() - [369] call render_screen_original + [385] phi() + [386] call fill to:render_init::@1 -render_init::@1: scope:[render_init] from render_init::@1 render_init::@9 - [370] (byte*) render_init::li#2 ← phi( render_init::@1/(byte*) render_init::li#1 render_init::@9/(const byte*) PLAYFIELD_SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 ) - [370] (byte) render_init::i#2 ← phi( render_init::@1/(byte) render_init::i#1 render_init::@9/(byte/signed byte/word/signed word/dword/signed dword) 0 ) - [371] (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 - [372] *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 - [373] (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 - [374] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 - [375] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 +render_init::@1: scope:[render_init] from render_init::@4 render_init::@9 + [387] (byte) render_init::l#4 ← phi( render_init::@9/(byte/signed byte/word/signed word/dword/signed dword) 2 render_init::@4/(byte) render_init::l#1 ) + [387] (byte*) render_init::line#4 ← phi( render_init::@9/(const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 render_init::@4/(byte*) render_init::line#1 ) to:render_init::@2 -render_init::@2: scope:[render_init] from render_init::@1 render_init::@5 - [376] (byte) render_init::l#4 ← phi( render_init::@1/(byte/signed byte/word/signed word/dword/signed dword) 2 render_init::@5/(byte) render_init::l#1 ) - [376] (byte*) render_init::line#4 ← phi( render_init::@1/(const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 render_init::@5/(byte*) render_init::line#1 ) +render_init::@2: scope:[render_init] from render_init::@1 render_init::@2 + [388] (byte) render_init::c#2 ← phi( render_init::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_init::@2/(byte) render_init::c#1 ) + [389] (byte*~) render_init::$12 ← (byte*) render_init::line#4 + (byte) render_init::c#2 + [390] *((byte*~) render_init::$12) ← (const byte) WHITE#0 + [391] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 + [392] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 + to:render_init::@4 +render_init::@4: scope:[render_init] from render_init::@2 + [393] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 + [394] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 + [395] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 to:render_init::@3 -render_init::@3: scope:[render_init] from render_init::@2 render_init::@3 - [377] (byte) render_init::c#2 ← phi( render_init::@2/(byte/signed byte/word/signed word/dword/signed dword) 0 render_init::@3/(byte) render_init::c#1 ) - [378] (byte*~) render_init::$18 ← (byte*) render_init::line#4 + (byte) render_init::c#2 - [379] *((byte*~) render_init::$18) ← (const byte) WHITE#0 - [380] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 - [381] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 - to:render_init::@5 -render_init::@5: scope:[render_init] from render_init::@3 - [382] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 - [383] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 - [384] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 +render_init::@3: scope:[render_init] from render_init::@3 render_init::@4 + [396] (byte*) render_init::li_2#2 ← phi( render_init::@3/(byte*) render_init::li_2#1 render_init::@4/(const byte*) PLAYFIELD_SCREEN_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 ) + [396] (byte*) render_init::li_1#2 ← phi( render_init::@3/(byte*) render_init::li_1#1 render_init::@4/(const byte*) PLAYFIELD_SCREEN_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 ) + [396] (byte) render_init::i#2 ← phi( render_init::@3/(byte) render_init::i#1 render_init::@4/(byte/signed byte/word/signed word/dword/signed dword) 0 ) + [397] (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [398] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 + [399] (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 + [400] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 + [401] (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 + [402] (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 + [403] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 + [404] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 to:render_init::@return -render_init::@return: scope:[render_init] from render_init::@5 - [385] return +render_init::@return: scope:[render_init] from render_init::@3 + [405] return to:@return -render_screen_original: scope:[render_screen_original] from render_init::@9 - [386] phi() - to:render_screen_original::@1 -render_screen_original::@1: scope:[render_screen_original] from render_screen_original render_screen_original::@9 - [387] (byte) render_screen_original::y#8 ← phi( render_screen_original/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@9/(byte) render_screen_original::y#1 ) - [387] (byte*) render_screen_original::orig#5 ← phi( render_screen_original/(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 render_screen_original::@9/(byte*) render_screen_original::orig#1 ) - [387] (byte*) render_screen_original::screen#7 ← phi( render_screen_original/(const byte*) PLAYFIELD_SCREEN#0 render_screen_original::@9/(byte*) render_screen_original::screen#11 ) - to:render_screen_original::@2 -render_screen_original::@2: scope:[render_screen_original] from render_screen_original::@1 render_screen_original::@2 - [388] (byte) render_screen_original::x#4 ← phi( render_screen_original::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@2/(byte) render_screen_original::x#1 ) - [388] (byte*) render_screen_original::screen#4 ← phi( render_screen_original::@1/(byte*) render_screen_original::screen#7 render_screen_original::@2/(byte*) render_screen_original::screen#1 ) - [389] *((byte*) render_screen_original::screen#4) ← (const byte) render_screen_original::SPACE#0 - [390] (byte*) render_screen_original::screen#1 ← ++ (byte*) render_screen_original::screen#4 - [391] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 - [392] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 - to:render_screen_original::@3 -render_screen_original::@3: scope:[render_screen_original] from render_screen_original::@2 render_screen_original::@4 - [393] (byte*) render_screen_original::screen#5 ← phi( render_screen_original::@2/(byte*) render_screen_original::screen#1 render_screen_original::@4/(byte*) render_screen_original::screen#2 ) - [393] (byte) render_screen_original::x#5 ← phi( render_screen_original::@2/(byte) render_screen_original::x#1 render_screen_original::@4/(byte) render_screen_original::x#2 ) - [393] (byte*) render_screen_original::orig#2 ← phi( render_screen_original::@2/(byte*) render_screen_original::orig#5 render_screen_original::@4/(byte*) render_screen_original::orig#1 ) - [394] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 - [395] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 - [396] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 - to:render_screen_original::@4 -render_screen_original::@4: scope:[render_screen_original] from render_screen_original::@11 render_screen_original::@3 render_screen_original::@7 - [397] (byte) render_screen_original::c#2 ← phi( render_screen_original::@3/(byte) render_screen_original::c#0 render_screen_original::@7/(byte) render_screen_original::c#1 ) - [398] *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 - [399] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 - [400] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 - [401] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 - to:render_screen_original::@5 -render_screen_original::@5: scope:[render_screen_original] from render_screen_original::@4 render_screen_original::@5 - [402] (byte) render_screen_original::x#7 ← phi( render_screen_original::@4/(byte) render_screen_original::x#2 render_screen_original::@5/(byte) render_screen_original::x#3 ) - [402] (byte*) render_screen_original::screen#6 ← phi( render_screen_original::@4/(byte*) render_screen_original::screen#2 render_screen_original::@5/(byte*) render_screen_original::screen#11 ) - [403] *((byte*) render_screen_original::screen#6) ← (const byte) render_screen_original::SPACE#0 - [404] (byte*) render_screen_original::screen#11 ← ++ (byte*) render_screen_original::screen#6 - [405] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 - [406] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 - to:render_screen_original::@9 -render_screen_original::@9: scope:[render_screen_original] from render_screen_original::@5 - [407] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 - [408] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 - to:render_screen_original::@return -render_screen_original::@return: scope:[render_screen_original] from render_screen_original::@9 - [409] return - to:@return -render_screen_original::@11: scope:[render_screen_original] from render_screen_original::@3 - [410] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 - to:render_screen_original::@4 -render_screen_original::@7: scope:[render_screen_original] from render_screen_original::@11 - [411] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 - to:render_screen_original::@4 -fill: scope:[fill] from render_init::@8 - [412] phi() +fill: scope:[fill] from render_init::@9 + [406] phi() to:fill::@1 fill::@1: scope:[fill] from fill fill::@1 - [413] (byte*) fill::addr#2 ← phi( fill/(const byte*) COLS#0 fill::@1/(byte*) fill::addr#1 ) - [414] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 - [415] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 - [416] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 + [407] (byte*) fill::addr#2 ← phi( fill/(const byte*) COLS#0 fill::@1/(byte*) fill::addr#1 ) + [408] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 + [409] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 + [410] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 to:fill::@return fill::@return: scope:[fill] from fill::@1 - [417] return + [411] return to:@return +render_screen_original: scope:[render_screen_original] from render_init::@7 render_init::@8 + [412] (byte*) render_screen_original::screen#11 ← phi( render_init::@7/(const byte*) PLAYFIELD_SCREEN_1#0 render_init::@8/(const byte*) PLAYFIELD_SCREEN_2#0 ) + to:render_screen_original::@1 +render_screen_original::@1: scope:[render_screen_original] from render_screen_original render_screen_original::@9 + [413] (byte) render_screen_original::y#8 ← phi( render_screen_original/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@9/(byte) render_screen_original::y#1 ) + [413] (byte*) render_screen_original::orig#5 ← phi( render_screen_original/(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 render_screen_original::@9/(byte*) render_screen_original::orig#1 ) + [413] (byte*) render_screen_original::screen#8 ← phi( render_screen_original/(byte*) render_screen_original::screen#11 render_screen_original::@9/(byte*) render_screen_original::screen#12 ) + to:render_screen_original::@2 +render_screen_original::@2: scope:[render_screen_original] from render_screen_original::@1 render_screen_original::@2 + [414] (byte) render_screen_original::x#4 ← phi( render_screen_original::@1/(byte/signed byte/word/signed word/dword/signed dword) 0 render_screen_original::@2/(byte) render_screen_original::x#1 ) + [414] (byte*) render_screen_original::screen#5 ← phi( render_screen_original::@1/(byte*) render_screen_original::screen#8 render_screen_original::@2/(byte*) render_screen_original::screen#2 ) + [415] *((byte*) render_screen_original::screen#5) ← (const byte) render_screen_original::SPACE#0 + [416] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 + [417] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 + [418] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 + to:render_screen_original::@3 +render_screen_original::@3: scope:[render_screen_original] from render_screen_original::@2 render_screen_original::@4 + [419] (byte*) render_screen_original::screen#10 ← phi( render_screen_original::@2/(byte*) render_screen_original::screen#2 render_screen_original::@4/(byte*) render_screen_original::screen#3 ) + [419] (byte) render_screen_original::x#5 ← phi( render_screen_original::@2/(byte) render_screen_original::x#1 render_screen_original::@4/(byte) render_screen_original::x#2 ) + [419] (byte*) render_screen_original::orig#2 ← phi( render_screen_original::@2/(byte*) render_screen_original::orig#5 render_screen_original::@4/(byte*) render_screen_original::orig#1 ) + [420] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 + [421] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 + [422] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 + to:render_screen_original::@4 +render_screen_original::@4: scope:[render_screen_original] from render_screen_original::@11 render_screen_original::@3 render_screen_original::@7 + [423] (byte) render_screen_original::c#2 ← phi( render_screen_original::@3/(byte) render_screen_original::c#0 render_screen_original::@7/(byte) render_screen_original::c#1 ) + [424] *((byte*) render_screen_original::screen#10) ← (byte) render_screen_original::c#2 + [425] (byte*) render_screen_original::screen#3 ← ++ (byte*) render_screen_original::screen#10 + [426] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 + [427] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 + to:render_screen_original::@5 +render_screen_original::@5: scope:[render_screen_original] from render_screen_original::@4 render_screen_original::@5 + [428] (byte) render_screen_original::x#7 ← phi( render_screen_original::@4/(byte) render_screen_original::x#2 render_screen_original::@5/(byte) render_screen_original::x#3 ) + [428] (byte*) render_screen_original::screen#7 ← phi( render_screen_original::@4/(byte*) render_screen_original::screen#3 render_screen_original::@5/(byte*) render_screen_original::screen#12 ) + [429] *((byte*) render_screen_original::screen#7) ← (const byte) render_screen_original::SPACE#0 + [430] (byte*) render_screen_original::screen#12 ← ++ (byte*) render_screen_original::screen#7 + [431] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 + [432] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 + to:render_screen_original::@9 +render_screen_original::@9: scope:[render_screen_original] from render_screen_original::@5 + [433] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 + [434] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 + to:render_screen_original::@return +render_screen_original::@return: scope:[render_screen_original] from render_screen_original::@9 + [435] return + to:@return +render_screen_original::@11: scope:[render_screen_original] from render_screen_original::@3 + [436] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 + to:render_screen_original::@4 +render_screen_original::@7: scope:[render_screen_original] from render_screen_original::@11 + [437] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 + to:render_screen_original::@4 sid_rnd_init: scope:[sid_rnd_init] from main - [418] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 - [419] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 + [438] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 + [439] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 to:sid_rnd_init::@return sid_rnd_init::@return: scope:[sid_rnd_init] from sid_rnd_init - [420] return + [440] return to:@return irq: scope:[irq] from - [421] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 - [422] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 - [423] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 - [424] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 - [425] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 - [426] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 + [441] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 + [442] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 + [443] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 + [444] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 + [445] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 + [446] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 to:irq::@1 irq::@1: scope:[irq] from irq irq::@1 - [427] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 + [447] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 to:irq::@5 irq::@5: scope:[irq] from irq::@1 - [428] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 - [429] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 - [430] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 - [431] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 - [432] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 - [433] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 - [434] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 - [435] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 - [436] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 + [448] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 + [449] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 + [450] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 + [451] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 + [452] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [453] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 + [454] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [455] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 + [456] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 + [457] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [458] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 + [459] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 + [460] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 to:irq::@6 irq::@6: scope:[irq] from irq::@5 - [437] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [438] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 - [439] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 + [461] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [462] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 + [463] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 to:irq::@3 irq::@3: scope:[irq] from irq::@6 irq::@9 - [440] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) - [441] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 - [442] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 - [443] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 + [464] (byte) irq_raster_next#12 ← phi( irq::@6/(byte) irq_raster_next#2 irq::@9/(byte) irq_raster_next#1 ) + [465] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 + [466] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 + [467] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 to:irq::@8 irq::@8: scope:[irq] from irq::@3 - [444] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 + [468] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 to:irq::@4 irq::@4: scope:[irq] from irq::@3 irq::@8 - [445] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) - [446] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 - [447] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 - [448] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 + [469] (byte) irq::raster_next#2 ← phi( irq::@3/(byte) irq::raster_next#0 irq::@8/(byte) irq::raster_next#1 ) + [470] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 + [471] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 + [472] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 to:irq::@return irq::@return: scope:[irq] from irq::@4 - [449] return + [473] return to:@return irq::@2: scope:[irq] from irq::@5 - [450] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 - [451] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 - [452] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 + [474] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + [475] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 + [476] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 to:irq::toSpritePtr2 irq::toSpritePtr2: scope:[irq] from irq::@2 - [453] phi() + [477] phi() to:irq::@9 irq::@9: scope:[irq] from irq::toSpritePtr2 - [454] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 + [478] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 to:irq::@3 @@ -7519,11 +8027,13 @@ VARIABLE REGISTER WEIGHTS (byte*) PLAYFIELD_CHARSET (byte) PLAYFIELD_COLS (byte) PLAYFIELD_LINES -(byte*) PLAYFIELD_SCREEN +(byte*) PLAYFIELD_SCREEN_1 +(byte*) PLAYFIELD_SCREEN_2 (byte*) PLAYFIELD_SCREEN_ORIGINAL (byte) PLAYFIELD_SCREEN_ORIGINAL_WIDTH (byte*) PLAYFIELD_SPRITES -(byte*) PLAYFIELD_SPRITE_PTRS +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(byte*) PLAYFIELD_SPRITE_PTRS_2 (byte*) PROCPORT (byte) PROCPORT_BASIC_KERNEL_IO (byte*) PROCPORT_DDR @@ -7574,64 +8084,64 @@ VARIABLE REGISTER WEIGHTS (byte) YELLOW (byte) current_movedown_counter (byte) current_movedown_counter#1 0.5333333333333333 -(byte) current_movedown_counter#10 0.52 -(byte) current_movedown_counter#12 1.3 +(byte) current_movedown_counter#10 0.4482758620689655 +(byte) current_movedown_counter#12 1.0833333333333333 (byte) current_movedown_fast (byte) current_movedown_slow (byte) current_orientation -(byte) current_orientation#10 0.5 +(byte) current_orientation#10 0.4722222222222223 (byte) current_orientation#14 0.32653061224489793 -(byte) current_orientation#19 1.1333333333333333 +(byte) current_orientation#19 0.8947368421052632 (byte) current_orientation#29 4.0 (byte) current_orientation#4 3.0 (byte*) current_piece -(byte*) current_piece#10 0.3484848484848484 +(byte*) current_piece#10 0.3285714285714286 (byte*) current_piece#12 10.0 -(byte*) current_piece#16 0.5588235294117647 +(byte*) current_piece#16 0.5277777777777779 (byte*) current_piece#20 6.0 -(byte*~) current_piece#72 4.0 +(byte*~) current_piece#71 4.0 (byte*~) current_piece#73 4.0 (byte*~) current_piece#74 4.0 (byte*~) current_piece#75 4.0 (byte*~) current_piece#76 4.0 (byte*~) current_piece#77 4.0 (byte) current_piece_char -(byte) current_piece_char#1 1.04 +(byte) current_piece_char#1 0.896551724137931 (byte) current_piece_char#12 0.6153846153846154 -(byte) current_piece_char#15 19.96078431372549 +(byte) current_piece_char#15 19.20754716981132 (byte) current_piece_char#20 6.0 -(byte) current_piece_char#62 48.285714285714285 +(byte) current_piece_char#62 46.09090909090909 (byte~) current_piece_char#87 4.0 (byte~) current_piece_char#88 22.0 (byte*) current_piece_gfx (byte*) current_piece_gfx#1 0.2962962962962963 (byte*~) current_piece_gfx#100 11.0 -(byte*) current_piece_gfx#14 1.8666666666666665 +(byte*) current_piece_gfx#14 1.4736842105263155 (byte*) current_piece_gfx#16 0.5 -(byte*) current_piece_gfx#20 19.96078431372549 +(byte*) current_piece_gfx#20 19.20754716981132 (byte*) current_piece_gfx#26 6.0 (byte*) current_piece_gfx#3 4.0 -(byte*) current_piece_gfx#52 48.285714285714285 +(byte*) current_piece_gfx#52 46.09090909090909 (byte*~) current_piece_gfx#99 2.0 (byte) current_xpos (byte) current_xpos#1 0.72 -(byte) current_xpos#10 2.3529411764705883 +(byte) current_xpos#10 2.2641509433962264 (byte~) current_xpos#109 1.3333333333333333 (byte~) current_xpos#110 7.333333333333333 -(byte) current_xpos#19 0.871794871794872 +(byte) current_xpos#19 0.7906976744186045 (byte) current_xpos#2 4.0 (byte) current_xpos#23 0.5333333333333333 (byte) current_xpos#33 6.0 (byte) current_xpos#4 4.0 -(byte) current_xpos#47 5.428571428571429 +(byte) current_xpos#47 5.181818181818182 (byte) current_ypos (byte) current_ypos#0 4.0 -(byte) current_ypos#13 0.48484848484848475 +(byte) current_ypos#13 0.4571428571428572 (byte) current_ypos#18 0.5714285714285714 -(byte) current_ypos#21 0.6176470588235294 +(byte) current_ypos#21 0.5833333333333335 (byte) current_ypos#29 6.0 (byte~) current_ypos#83 1.0 -(byte~) current_ypos#84 5.5 +(byte~) current_ypos#84 4.4 (byte) current_ypos#9 15.0 (void()) fill((byte*) fill::start , (word) fill::size , (byte) fill::val) (byte*) fill::addr @@ -7644,9 +8154,9 @@ VARIABLE REGISTER WEIGHTS interrupt(HARDWARE_CLOBBER)(void()) irq() (byte~) irq::$3 4.0 (byte) irq::ptr -(byte) irq::ptr#0 3.0 -(byte) irq::ptr#1 2.6666666666666665 -(byte) irq::ptr#2 4.0 +(byte) irq::ptr#0 2.6666666666666665 +(byte) irq::ptr#1 2.4 +(byte) irq::ptr#2 3.0 (byte) irq::raster_next (byte) irq::raster_next#0 2.6666666666666665 (byte) irq::raster_next#1 4.0 @@ -7659,20 +8169,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) irq::ypos (byte) irq::ypos#0 2.5 (byte) irq_cnt -(byte) irq_cnt#0 0.2857142857142857 +(byte) irq_cnt#0 0.2222222222222222 (byte) irq_cnt#1 4.0 (byte) irq_cnt#13 20.0 (byte) irq_raster_next -(byte) irq_raster_next#0 0.25 +(byte) irq_raster_next#0 0.2 (byte) irq_raster_next#1 1.0 (byte) irq_raster_next#12 6.0 (byte) irq_raster_next#2 1.3333333333333333 (byte) irq_sprite_ptr -(byte) irq_sprite_ptr#0 0.3333333333333333 +(byte) irq_sprite_ptr#0 0.2727272727272727 (byte) irq_sprite_ptr#1 20.0 (byte) irq_sprite_ptr#2 20.0 (byte) irq_sprite_ypos -(byte) irq_sprite_ypos#0 1.0 +(byte) irq_sprite_ypos#0 0.8095238095238095 (byte) irq_sprite_ypos#1 20.0 (byte) irq_sprite_ypos#2 20.0 (byte[]) keyboard_char_keycodes @@ -7724,8 +8234,8 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) keyboard_events_size#1 2002.0 (byte) keyboard_events_size#10 810.9000000000001 (byte) keyboard_events_size#13 9.967741935483872 -(byte) keyboard_events_size#16 0.5172413793103449 -(byte) keyboard_events_size#19 2.6 +(byte) keyboard_events_size#16 0.45454545454545453 +(byte) keyboard_events_size#19 1.8571428571428572 (byte) keyboard_events_size#2 2002.0 (byte) keyboard_events_size#29 43.57142857142858 (byte) keyboard_events_size#30 1021.2 @@ -7748,9 +8258,10 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) keyboard_modifiers#5 20.0 (byte[8]) keyboard_scan_values (void()) main() -(byte~) main::$12 22.0 (byte~) main::$13 22.0 (byte~) main::$14 22.0 +(byte~) main::$15 22.0 +(byte~) main::$9 22.0 (byte) main::key_event (byte) main::key_event#0 4.0 (byte) main::render @@ -7910,6 +8421,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte*[PLAYFIELD_LINES#0]) playfield_lines (byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx (void()) render_current() +(byte~) render_current::$5 202.0 (byte) render_current::c (byte) render_current::c#1 1501.5 (byte) render_current::c#2 286.0 @@ -7918,12 +8430,12 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_current::i (byte) render_current::i#1 202.0 (byte) render_current::i#10 429.0 -(byte) render_current::i#3 60.599999999999994 +(byte) render_current::i#3 50.5 (byte) render_current::i#4 1552.0 (byte) render_current::i#8 300.75 (byte) render_current::l (byte) render_current::l#1 151.5 -(byte) render_current::l#4 11.882352941176471 +(byte) render_current::l#4 11.222222222222221 (byte*) render_current::screen_line (byte*) render_current::screen_line#0 100.18181818181819 (byte) render_current::xpos @@ -7933,37 +8445,29 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_current::ypos2 (byte) render_current::ypos2#0 4.0 (byte) render_current::ypos2#1 67.33333333333333 -(byte) render_current::ypos2#2 31.6875 +(byte) render_current::ypos2#2 29.823529411764707 (void()) render_init() -(byte~) render_init::$11 22.0 -(byte*~) render_init::$18 202.0 +(byte*~) render_init::$12 202.0 +(byte~) render_init::$22 22.0 +(byte~) render_init::$23 22.0 (byte) render_init::c (byte) render_init::c#1 151.5 (byte) render_init::c#2 101.0 (byte) render_init::i (byte) render_init::i#1 16.5 -(byte) render_init::i#2 8.25 +(byte) render_init::i#2 6.285714285714286 (byte) render_init::l (byte) render_init::l#1 16.5 (byte) render_init::l#4 3.142857142857143 -(byte*) render_init::li -(byte*) render_init::li#1 7.333333333333333 -(byte*) render_init::li#2 11.0 +(byte*) render_init::li_1 +(byte*) render_init::li_1#1 5.5 +(byte*) render_init::li_1#2 6.6000000000000005 +(byte*) render_init::li_2 +(byte*) render_init::li_2#1 7.333333333333333 +(byte*) render_init::li_2#2 5.5 (byte*) render_init::line (byte*) render_init::line#1 7.333333333333333 (byte*) render_init::line#4 20.499999999999996 -(word~) render_init::toD0181_$0 -(word~) render_init::toD0181_$1 -(word~) render_init::toD0181_$2 -(byte~) render_init::toD0181_$3 -(word~) render_init::toD0181_$4 -(byte~) render_init::toD0181_$5 -(byte~) render_init::toD0181_$6 -(byte~) render_init::toD0181_$7 -(byte~) render_init::toD0181_$8 -(byte*) render_init::toD0181_gfx -(byte) render_init::toD0181_return -(byte*) render_init::toD0181_screen (byte~) render_init::vicSelectGfxBank1_$0 (byte*) render_init::vicSelectGfxBank1_gfx (word~) render_init::vicSelectGfxBank1_toDd001_$0 @@ -7974,16 +8478,17 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_init::vicSelectGfxBank1_toDd001_return (void()) render_playfield() (byte~) render_playfield::$2 202.0 +(byte~) render_playfield::$3 202.0 (byte) render_playfield::c (byte) render_playfield::c#1 1501.5 (byte) render_playfield::c#2 500.5 (byte) render_playfield::i (byte) render_playfield::i#1 420.59999999999997 (byte) render_playfield::i#2 1034.6666666666667 -(byte) render_playfield::i#3 67.33333333333333 +(byte) render_playfield::i#3 50.5 (byte) render_playfield::l (byte) render_playfield::l#1 151.5 -(byte) render_playfield::l#2 33.666666666666664 +(byte) render_playfield::l#2 30.299999999999997 (byte*) render_playfield::screen_line (byte*) render_playfield::screen_line#0 202.0 (byte*) render_playfield::screen_line#1 500.5 @@ -7999,13 +8504,14 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte*) render_screen_original::orig#2 202.0 (byte*) render_screen_original::orig#5 18.666666666666664 (byte*) render_screen_original::screen -(byte*) render_screen_original::screen#1 101.0 -(byte*) render_screen_original::screen#11 42.599999999999994 +(byte*) render_screen_original::screen#10 50.5 +(byte*) render_screen_original::screen#11 2.0 +(byte*) render_screen_original::screen#12 42.599999999999994 (byte*) render_screen_original::screen#2 101.0 -(byte*) render_screen_original::screen#4 157.0 -(byte*) render_screen_original::screen#5 50.5 -(byte*) render_screen_original::screen#6 202.0 -(byte*) render_screen_original::screen#7 22.0 +(byte*) render_screen_original::screen#3 101.0 +(byte*) render_screen_original::screen#5 157.0 +(byte*) render_screen_original::screen#7 202.0 +(byte*) render_screen_original::screen#8 24.0 (byte) render_screen_original::x (byte) render_screen_original::x#1 202.0 (byte) render_screen_original::x#2 202.0 @@ -8016,7 +8522,48 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_screen_original::y (byte) render_screen_original::y#1 16.5 (byte) render_screen_original::y#8 1.0 -(byte*[PLAYFIELD_LINES#0]) screen_lines +(byte) render_screen_render +(byte) render_screen_render#10 3.25 +(byte) render_screen_render#15 1.277777777777778 +(byte) render_screen_render#18 8.615384615384615 +(byte) render_screen_render#27 5.090909090909091 +(byte) render_screen_render#31 16.5 +(byte~) render_screen_render#68 5.5 +(byte~) render_screen_render#69 22.0 +(byte) render_screen_show +(byte) render_screen_show#11 4.333333333333333 +(byte) render_screen_show#15 0.8604651162790697 +(byte) render_screen_show#24 16.5 +(void()) render_screen_swap() +(void()) render_show() +(byte) render_show::d018val +(byte) render_show::d018val#3 2.0 +(word~) render_show::toD0181_$0 +(word~) render_show::toD0181_$1 +(word~) render_show::toD0181_$2 +(byte~) render_show::toD0181_$3 +(word~) render_show::toD0181_$4 +(byte~) render_show::toD0181_$5 +(byte~) render_show::toD0181_$6 +(byte~) render_show::toD0181_$7 +(byte~) render_show::toD0181_$8 +(byte*) render_show::toD0181_gfx +(byte) render_show::toD0181_return +(byte*) render_show::toD0181_screen +(word~) render_show::toD0182_$0 +(word~) render_show::toD0182_$1 +(word~) render_show::toD0182_$2 +(byte~) render_show::toD0182_$3 +(word~) render_show::toD0182_$4 +(byte~) render_show::toD0182_$5 +(byte~) render_show::toD0182_$6 +(byte~) render_show::toD0182_$7 +(byte~) render_show::toD0182_$8 +(byte*) render_show::toD0182_gfx +(byte) render_show::toD0182_return +(byte*) render_show::toD0182_screen +(byte*[PLAYFIELD_LINES#0]) screen_lines_1 +(byte*[PLAYFIELD_LINES#0]) screen_lines_2 (byte()) sid_rnd() (byte) sid_rnd::return (byte) sid_rnd::return#0 34.33333333333333 @@ -8039,8 +8586,11 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte*) toSpritePtr1_sprite Initial phi equivalence classes +[ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] +[ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] [ current_ypos#9 current_ypos#83 current_ypos#84 ] +[ render_screen_render#27 render_screen_render#68 ] [ current_xpos#47 current_xpos#109 current_xpos#110 ] [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] @@ -8049,6 +8599,7 @@ Initial phi equivalence classes [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] [ render_current::c#2 render_current::c#1 ] +[ render_screen_render#18 render_screen_render#69 ] [ render_playfield::l#2 render_playfield::l#1 ] [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] @@ -8067,12 +8618,12 @@ Initial phi equivalence classes [ play_collision::return#14 ] [ play_move_leftright::return#1 ] [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] -[ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] -[ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 ] +[ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] +[ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 ] [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -[ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] -[ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -[ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] +[ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] +[ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +[ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] [ play_move_down::return#2 ] [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] [ play_remove_lines::y#8 play_remove_lines::y#1 ] @@ -8092,45 +8643,50 @@ Initial phi equivalence classes [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +[ render_show::d018val#3 ] [ play_init::j#2 play_init::j#1 ] [ play_init::pli#2 play_init::pli#1 ] [ play_init::idx#2 play_init::idx#1 ] [ sprites_init::s#2 sprites_init::s#1 ] [ sprites_init::xpos#2 sprites_init::xpos#1 ] -[ render_init::i#2 render_init::i#1 ] -[ render_init::li#2 render_init::li#1 ] [ render_init::line#4 render_init::line#1 ] [ render_init::l#4 render_init::l#1 ] [ render_init::c#2 render_init::c#1 ] +[ render_init::i#2 render_init::i#1 ] +[ render_init::li_1#2 render_init::li_1#1 ] +[ render_init::li_2#2 render_init::li_2#1 ] +[ fill::addr#2 fill::addr#1 ] [ render_screen_original::y#8 render_screen_original::y#1 ] [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] -[ render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] +[ render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] -[ fill::addr#2 fill::addr#1 ] [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] Added variable irq_raster_next#0 to zero page equivalence class [ irq_raster_next#0 ] Added variable irq_sprite_ypos#0 to zero page equivalence class [ irq_sprite_ypos#0 ] Added variable irq_sprite_ptr#0 to zero page equivalence class [ irq_sprite_ptr#0 ] Added variable irq_cnt#0 to zero page equivalence class [ irq_cnt#0 ] +Added variable main::$9 to zero page equivalence class [ main::$9 ] Added variable keyboard_event_get::return#3 to zero page equivalence class [ keyboard_event_get::return#3 ] Added variable main::key_event#0 to zero page equivalence class [ main::key_event#0 ] Added variable play_move_down::key_event#0 to zero page equivalence class [ play_move_down::key_event#0 ] Added variable play_move_down::return#3 to zero page equivalence class [ play_move_down::return#3 ] -Added variable main::$12 to zero page equivalence class [ main::$12 ] +Added variable main::$13 to zero page equivalence class [ main::$13 ] Added variable main::render#1 to zero page equivalence class [ main::render#1 ] Added variable play_move_leftright::key_event#0 to zero page equivalence class [ play_move_leftright::key_event#0 ] Added variable play_move_leftright::return#4 to zero page equivalence class [ play_move_leftright::return#4 ] -Added variable main::$13 to zero page equivalence class [ main::$13 ] +Added variable main::$14 to zero page equivalence class [ main::$14 ] Added variable main::render#2 to zero page equivalence class [ main::render#2 ] Added variable play_move_rotate::key_event#0 to zero page equivalence class [ play_move_rotate::key_event#0 ] Added variable play_move_rotate::return#4 to zero page equivalence class [ play_move_rotate::return#4 ] -Added variable main::$14 to zero page equivalence class [ main::$14 ] +Added variable main::$15 to zero page equivalence class [ main::$15 ] Added variable main::render#3 to zero page equivalence class [ main::render#3 ] +Added variable render_current::$5 to zero page equivalence class [ render_current::$5 ] Added variable render_current::screen_line#0 to zero page equivalence class [ render_current::screen_line#0 ] Added variable render_current::current_cell#0 to zero page equivalence class [ render_current::current_cell#0 ] Added variable render_playfield::$2 to zero page equivalence class [ render_playfield::$2 ] +Added variable render_playfield::$3 to zero page equivalence class [ render_playfield::$3 ] Added variable play_move_rotate::$2 to zero page equivalence class [ play_move_rotate::$2 ] Added variable play_collision::return#13 to zero page equivalence class [ play_collision::return#13 ] Added variable play_move_rotate::$6 to zero page equivalence class [ play_move_rotate::$6 ] @@ -8177,8 +8733,9 @@ Added variable keyboard_event_scan::$11 to zero page equivalence class [ keyboar Added variable keyboard_matrix_read::return#0 to zero page equivalence class [ keyboard_matrix_read::return#0 ] Added variable play_init::$1 to zero page equivalence class [ play_init::$1 ] Added variable sprites_init::s2#0 to zero page equivalence class [ sprites_init::s2#0 ] -Added variable render_init::$11 to zero page equivalence class [ render_init::$11 ] -Added variable render_init::$18 to zero page equivalence class [ render_init::$18 ] +Added variable render_init::$12 to zero page equivalence class [ render_init::$12 ] +Added variable render_init::$22 to zero page equivalence class [ render_init::$22 ] +Added variable render_init::$23 to zero page equivalence class [ render_init::$23 ] Added variable irq::ypos#0 to zero page equivalence class [ irq::ypos#0 ] Added variable irq::ptr#0 to zero page equivalence class [ irq::ptr#0 ] Added variable irq::ptr#1 to zero page equivalence class [ irq::ptr#1 ] @@ -8191,8 +8748,11 @@ Added variable irq_cnt#13 to zero page equivalence class [ irq_cnt#13 ] Added variable irq_sprite_ypos#1 to zero page equivalence class [ irq_sprite_ypos#1 ] Added variable irq_sprite_ptr#1 to zero page equivalence class [ irq_sprite_ptr#1 ] Complete equivalence classes +[ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] +[ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] [ current_ypos#9 current_ypos#83 current_ypos#84 ] +[ render_screen_render#27 render_screen_render#68 ] [ current_xpos#47 current_xpos#109 current_xpos#110 ] [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] @@ -8201,6 +8761,7 @@ Complete equivalence classes [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] [ render_current::c#2 render_current::c#1 ] +[ render_screen_render#18 render_screen_render#69 ] [ render_playfield::l#2 render_playfield::l#1 ] [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] @@ -8219,12 +8780,12 @@ Complete equivalence classes [ play_collision::return#14 ] [ play_move_leftright::return#1 ] [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] -[ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] -[ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 ] +[ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] +[ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 ] [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -[ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] -[ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -[ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] +[ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] +[ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +[ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] [ play_move_down::return#2 ] [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] [ play_remove_lines::y#8 play_remove_lines::y#1 ] @@ -8244,45 +8805,50 @@ Complete equivalence classes [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +[ render_show::d018val#3 ] [ play_init::j#2 play_init::j#1 ] [ play_init::pli#2 play_init::pli#1 ] [ play_init::idx#2 play_init::idx#1 ] [ sprites_init::s#2 sprites_init::s#1 ] [ sprites_init::xpos#2 sprites_init::xpos#1 ] -[ render_init::i#2 render_init::i#1 ] -[ render_init::li#2 render_init::li#1 ] [ render_init::line#4 render_init::line#1 ] [ render_init::l#4 render_init::l#1 ] [ render_init::c#2 render_init::c#1 ] +[ render_init::i#2 render_init::i#1 ] +[ render_init::li_1#2 render_init::li_1#1 ] +[ render_init::li_2#2 render_init::li_2#1 ] +[ fill::addr#2 fill::addr#1 ] [ render_screen_original::y#8 render_screen_original::y#1 ] [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] -[ render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] +[ render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] -[ fill::addr#2 fill::addr#1 ] [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] [ irq_raster_next#0 ] [ irq_sprite_ypos#0 ] [ irq_sprite_ptr#0 ] [ irq_cnt#0 ] +[ main::$9 ] [ keyboard_event_get::return#3 ] [ main::key_event#0 ] [ play_move_down::key_event#0 ] [ play_move_down::return#3 ] -[ main::$12 ] +[ main::$13 ] [ main::render#1 ] [ play_move_leftright::key_event#0 ] [ play_move_leftright::return#4 ] -[ main::$13 ] +[ main::$14 ] [ main::render#2 ] [ play_move_rotate::key_event#0 ] [ play_move_rotate::return#4 ] -[ main::$14 ] +[ main::$15 ] [ main::render#3 ] +[ render_current::$5 ] [ render_current::screen_line#0 ] [ render_current::current_cell#0 ] [ render_playfield::$2 ] +[ render_playfield::$3 ] [ play_move_rotate::$2 ] [ play_collision::return#13 ] [ play_move_rotate::$6 ] @@ -8329,8 +8895,9 @@ Complete equivalence classes [ keyboard_matrix_read::return#0 ] [ play_init::$1 ] [ sprites_init::s2#0 ] -[ render_init::$11 ] -[ render_init::$18 ] +[ render_init::$12 ] +[ render_init::$22 ] +[ render_init::$23 ] [ irq::ypos#0 ] [ irq::ptr#0 ] [ irq::ptr#1 ] @@ -8342,157 +8909,167 @@ Complete equivalence classes [ irq_cnt#13 ] [ irq_sprite_ypos#1 ] [ irq_sprite_ptr#1 ] -Allocated zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] -Allocated zp ZP_BYTE:3 [ current_ypos#9 current_ypos#83 current_ypos#84 ] -Allocated zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] -Allocated zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] -Allocated zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] -Allocated zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] -Allocated zp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] -Allocated zp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] -Allocated zp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] -Allocated zp ZP_BYTE:12 [ render_current::c#2 render_current::c#1 ] -Allocated zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] -Allocated zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] -Allocated zp ZP_WORD:15 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] -Allocated zp ZP_BYTE:17 [ render_playfield::c#2 render_playfield::c#1 ] -Allocated zp ZP_BYTE:18 [ play_move_rotate::return#1 ] -Allocated zp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] -Allocated zp ZP_WORD:20 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] -Allocated zp ZP_BYTE:22 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] -Allocated zp ZP_BYTE:23 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] -Allocated zp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] -Allocated zp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] -Allocated zp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] -Allocated zp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] -Allocated zp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] -Allocated zp ZP_BYTE:29 [ play_collision::c#2 play_collision::c#1 ] -Allocated zp ZP_BYTE:30 [ play_collision::return#14 ] -Allocated zp ZP_BYTE:31 [ play_move_leftright::return#1 ] -Allocated zp ZP_BYTE:32 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] -Allocated zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] -Allocated zp ZP_WORD:34 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 ] -Allocated zp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -Allocated zp ZP_WORD:37 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] -Allocated zp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -Allocated zp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] -Allocated zp ZP_BYTE:41 [ play_move_down::return#2 ] -Allocated zp ZP_BYTE:42 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] -Allocated zp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] -Allocated zp ZP_BYTE:44 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] -Allocated zp ZP_BYTE:45 [ play_remove_lines::x#2 play_remove_lines::x#1 ] -Allocated zp ZP_BYTE:46 [ play_remove_lines::full#4 play_remove_lines::full#2 ] -Allocated zp ZP_BYTE:47 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] -Allocated zp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -Allocated zp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] -Allocated zp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] -Allocated zp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] -Allocated zp ZP_BYTE:52 [ play_lock_current::c#2 play_lock_current::c#1 ] -Allocated zp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] -Allocated zp ZP_BYTE:54 [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] -Allocated zp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] -Allocated zp ZP_BYTE:56 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] -Allocated zp ZP_BYTE:57 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] -Allocated zp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] -Allocated zp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] -Allocated zp ZP_BYTE:60 [ play_init::j#2 play_init::j#1 ] -Allocated zp ZP_WORD:61 [ play_init::pli#2 play_init::pli#1 ] -Allocated zp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] -Allocated zp ZP_BYTE:64 [ sprites_init::s#2 sprites_init::s#1 ] -Allocated zp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Allocated zp ZP_BYTE:66 [ render_init::i#2 render_init::i#1 ] -Allocated zp ZP_WORD:67 [ render_init::li#2 render_init::li#1 ] -Allocated zp ZP_WORD:69 [ render_init::line#4 render_init::line#1 ] -Allocated zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] -Allocated zp ZP_BYTE:72 [ render_init::c#2 render_init::c#1 ] -Allocated zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] -Allocated zp ZP_WORD:74 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] -Allocated zp ZP_BYTE:76 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] -Allocated zp ZP_WORD:77 [ render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] -Allocated zp ZP_BYTE:79 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] +Allocated zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] +Allocated zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] +Allocated zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] +Allocated zp ZP_BYTE:5 [ current_ypos#9 current_ypos#83 current_ypos#84 ] +Allocated zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] +Allocated zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] +Allocated zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] +Allocated zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] +Allocated zp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] +Allocated zp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] +Allocated zp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] +Allocated zp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] +Allocated zp ZP_BYTE:15 [ render_current::c#2 render_current::c#1 ] +Allocated zp ZP_BYTE:16 [ render_screen_render#18 render_screen_render#69 ] +Allocated zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] +Allocated zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] +Allocated zp ZP_WORD:19 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] +Allocated zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] +Allocated zp ZP_BYTE:22 [ play_move_rotate::return#1 ] +Allocated zp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] +Allocated zp ZP_WORD:24 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] +Allocated zp ZP_BYTE:26 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] +Allocated zp ZP_BYTE:27 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] +Allocated zp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] +Allocated zp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] +Allocated zp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] +Allocated zp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] +Allocated zp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +Allocated zp ZP_BYTE:33 [ play_collision::c#2 play_collision::c#1 ] +Allocated zp ZP_BYTE:34 [ play_collision::return#14 ] +Allocated zp ZP_BYTE:35 [ play_move_leftright::return#1 ] +Allocated zp ZP_BYTE:36 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] +Allocated zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] +Allocated zp ZP_WORD:38 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 ] +Allocated zp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +Allocated zp ZP_WORD:41 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] +Allocated zp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +Allocated zp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] +Allocated zp ZP_BYTE:45 [ play_move_down::return#2 ] +Allocated zp ZP_BYTE:46 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] +Allocated zp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] +Allocated zp ZP_BYTE:48 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] +Allocated zp ZP_BYTE:49 [ play_remove_lines::x#2 play_remove_lines::x#1 ] +Allocated zp ZP_BYTE:50 [ play_remove_lines::full#4 play_remove_lines::full#2 ] +Allocated zp ZP_BYTE:51 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] +Allocated zp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +Allocated zp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] +Allocated zp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] +Allocated zp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] +Allocated zp ZP_BYTE:56 [ play_lock_current::c#2 play_lock_current::c#1 ] +Allocated zp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] +Allocated zp ZP_BYTE:58 [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] +Allocated zp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] +Allocated zp ZP_BYTE:60 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] +Allocated zp ZP_BYTE:61 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] +Allocated zp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] +Allocated zp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +Allocated zp ZP_BYTE:64 [ render_show::d018val#3 ] +Allocated zp ZP_BYTE:65 [ play_init::j#2 play_init::j#1 ] +Allocated zp ZP_WORD:66 [ play_init::pli#2 play_init::pli#1 ] +Allocated zp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] +Allocated zp ZP_BYTE:69 [ sprites_init::s#2 sprites_init::s#1 ] +Allocated zp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Allocated zp ZP_WORD:71 [ render_init::line#4 render_init::line#1 ] +Allocated zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] +Allocated zp ZP_BYTE:74 [ render_init::c#2 render_init::c#1 ] +Allocated zp ZP_BYTE:75 [ render_init::i#2 render_init::i#1 ] +Allocated zp ZP_WORD:76 [ render_init::li_1#2 render_init::li_1#1 ] +Allocated zp ZP_WORD:78 [ render_init::li_2#2 render_init::li_2#1 ] Allocated zp ZP_WORD:80 [ fill::addr#2 fill::addr#1 ] -Allocated zp ZP_BYTE:82 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] -Allocated zp ZP_BYTE:83 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] -Allocated zp ZP_BYTE:84 [ irq_raster_next#0 ] -Allocated zp ZP_BYTE:85 [ irq_sprite_ypos#0 ] -Allocated zp ZP_BYTE:86 [ irq_sprite_ptr#0 ] -Allocated zp ZP_BYTE:87 [ irq_cnt#0 ] -Allocated zp ZP_BYTE:88 [ keyboard_event_get::return#3 ] -Allocated zp ZP_BYTE:89 [ main::key_event#0 ] -Allocated zp ZP_BYTE:90 [ play_move_down::key_event#0 ] -Allocated zp ZP_BYTE:91 [ play_move_down::return#3 ] -Allocated zp ZP_BYTE:92 [ main::$12 ] -Allocated zp ZP_BYTE:93 [ main::render#1 ] -Allocated zp ZP_BYTE:94 [ play_move_leftright::key_event#0 ] -Allocated zp ZP_BYTE:95 [ play_move_leftright::return#4 ] -Allocated zp ZP_BYTE:96 [ main::$13 ] -Allocated zp ZP_BYTE:97 [ main::render#2 ] -Allocated zp ZP_BYTE:98 [ play_move_rotate::key_event#0 ] -Allocated zp ZP_BYTE:99 [ play_move_rotate::return#4 ] -Allocated zp ZP_BYTE:100 [ main::$14 ] -Allocated zp ZP_BYTE:101 [ main::render#3 ] -Allocated zp ZP_WORD:102 [ render_current::screen_line#0 ] -Allocated zp ZP_BYTE:104 [ render_current::current_cell#0 ] -Allocated zp ZP_BYTE:105 [ render_playfield::$2 ] -Allocated zp ZP_BYTE:106 [ play_move_rotate::$2 ] -Allocated zp ZP_BYTE:107 [ play_collision::return#13 ] -Allocated zp ZP_BYTE:108 [ play_move_rotate::$6 ] -Allocated zp ZP_BYTE:109 [ play_move_rotate::$4 ] -Allocated zp ZP_WORD:110 [ play_collision::piece_gfx#0 ] -Allocated zp ZP_WORD:112 [ play_collision::playfield_line#0 ] -Allocated zp ZP_BYTE:114 [ play_collision::i#1 ] -Allocated zp ZP_BYTE:115 [ play_collision::$7 ] -Allocated zp ZP_BYTE:116 [ play_collision::return#12 ] -Allocated zp ZP_BYTE:117 [ play_move_leftright::$4 ] -Allocated zp ZP_BYTE:118 [ play_collision::return#1 ] -Allocated zp ZP_BYTE:119 [ play_move_leftright::$8 ] -Allocated zp ZP_BYTE:120 [ keyboard_event_pressed::return#12 ] -Allocated zp ZP_BYTE:121 [ play_move_down::$2 ] -Allocated zp ZP_BYTE:122 [ play_collision::return#0 ] -Allocated zp ZP_BYTE:123 [ play_move_down::$12 ] -Allocated zp ZP_BYTE:124 [ play_spawn_current::$3 ] -Allocated zp ZP_BYTE:125 [ sid_rnd::return#2 ] -Allocated zp ZP_BYTE:126 [ play_spawn_current::$1 ] -Allocated zp ZP_BYTE:127 [ sid_rnd::return#0 ] -Allocated zp ZP_BYTE:128 [ play_remove_lines::c#0 ] -Allocated zp ZP_WORD:129 [ play_lock_current::playfield_line#0 ] -Allocated zp ZP_BYTE:131 [ play_lock_current::i#1 ] -Allocated zp ZP_BYTE:132 [ keyboard_event_pressed::$0 ] -Allocated zp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] -Allocated zp ZP_BYTE:134 [ keyboard_event_pressed::$1 ] -Allocated zp ZP_BYTE:135 [ keyboard_event_pressed::return#11 ] -Allocated zp ZP_BYTE:136 [ keyboard_matrix_read::rowid#0 ] -Allocated zp ZP_BYTE:137 [ keyboard_matrix_read::return#2 ] -Allocated zp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] -Allocated zp ZP_BYTE:139 [ keyboard_event_pressed::return#0 ] -Allocated zp ZP_BYTE:140 [ keyboard_event_scan::$14 ] -Allocated zp ZP_BYTE:141 [ keyboard_event_pressed::return#1 ] -Allocated zp ZP_BYTE:142 [ keyboard_event_scan::$18 ] -Allocated zp ZP_BYTE:143 [ keyboard_event_pressed::return#2 ] -Allocated zp ZP_BYTE:144 [ keyboard_event_scan::$22 ] -Allocated zp ZP_BYTE:145 [ keyboard_event_pressed::return#10 ] -Allocated zp ZP_BYTE:146 [ keyboard_event_scan::$26 ] -Allocated zp ZP_BYTE:147 [ keyboard_modifiers#5 ] -Allocated zp ZP_BYTE:148 [ keyboard_event_scan::$3 ] -Allocated zp ZP_BYTE:149 [ keyboard_event_scan::$4 ] -Allocated zp ZP_BYTE:150 [ keyboard_event_scan::event_type#0 ] -Allocated zp ZP_BYTE:151 [ keyboard_event_scan::$11 ] -Allocated zp ZP_BYTE:152 [ keyboard_matrix_read::return#0 ] -Allocated zp ZP_BYTE:153 [ play_init::$1 ] -Allocated zp ZP_BYTE:154 [ sprites_init::s2#0 ] -Allocated zp ZP_BYTE:155 [ render_init::$11 ] -Allocated zp ZP_WORD:156 [ render_init::$18 ] -Allocated zp ZP_BYTE:158 [ irq::ypos#0 ] -Allocated zp ZP_BYTE:159 [ irq::ptr#0 ] -Allocated zp ZP_BYTE:160 [ irq::ptr#1 ] -Allocated zp ZP_BYTE:161 [ irq::ptr#2 ] -Allocated zp ZP_BYTE:162 [ irq_cnt#1 ] -Allocated zp ZP_BYTE:163 [ irq_sprite_ypos#2 ] -Allocated zp ZP_BYTE:164 [ irq_sprite_ptr#2 ] -Allocated zp ZP_BYTE:165 [ irq::$3 ] -Allocated zp ZP_BYTE:166 [ irq_cnt#13 ] -Allocated zp ZP_BYTE:167 [ irq_sprite_ypos#1 ] -Allocated zp ZP_BYTE:168 [ irq_sprite_ptr#1 ] +Allocated zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] +Allocated zp ZP_WORD:83 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] +Allocated zp ZP_BYTE:85 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] +Allocated zp ZP_WORD:86 [ render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] +Allocated zp ZP_BYTE:88 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] +Allocated zp ZP_BYTE:89 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] +Allocated zp ZP_BYTE:90 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] +Allocated zp ZP_BYTE:91 [ irq_raster_next#0 ] +Allocated zp ZP_BYTE:92 [ irq_sprite_ypos#0 ] +Allocated zp ZP_BYTE:93 [ irq_sprite_ptr#0 ] +Allocated zp ZP_BYTE:94 [ irq_cnt#0 ] +Allocated zp ZP_BYTE:95 [ main::$9 ] +Allocated zp ZP_BYTE:96 [ keyboard_event_get::return#3 ] +Allocated zp ZP_BYTE:97 [ main::key_event#0 ] +Allocated zp ZP_BYTE:98 [ play_move_down::key_event#0 ] +Allocated zp ZP_BYTE:99 [ play_move_down::return#3 ] +Allocated zp ZP_BYTE:100 [ main::$13 ] +Allocated zp ZP_BYTE:101 [ main::render#1 ] +Allocated zp ZP_BYTE:102 [ play_move_leftright::key_event#0 ] +Allocated zp ZP_BYTE:103 [ play_move_leftright::return#4 ] +Allocated zp ZP_BYTE:104 [ main::$14 ] +Allocated zp ZP_BYTE:105 [ main::render#2 ] +Allocated zp ZP_BYTE:106 [ play_move_rotate::key_event#0 ] +Allocated zp ZP_BYTE:107 [ play_move_rotate::return#4 ] +Allocated zp ZP_BYTE:108 [ main::$15 ] +Allocated zp ZP_BYTE:109 [ main::render#3 ] +Allocated zp ZP_BYTE:110 [ render_current::$5 ] +Allocated zp ZP_WORD:111 [ render_current::screen_line#0 ] +Allocated zp ZP_BYTE:113 [ render_current::current_cell#0 ] +Allocated zp ZP_BYTE:114 [ render_playfield::$2 ] +Allocated zp ZP_BYTE:115 [ render_playfield::$3 ] +Allocated zp ZP_BYTE:116 [ play_move_rotate::$2 ] +Allocated zp ZP_BYTE:117 [ play_collision::return#13 ] +Allocated zp ZP_BYTE:118 [ play_move_rotate::$6 ] +Allocated zp ZP_BYTE:119 [ play_move_rotate::$4 ] +Allocated zp ZP_WORD:120 [ play_collision::piece_gfx#0 ] +Allocated zp ZP_WORD:122 [ play_collision::playfield_line#0 ] +Allocated zp ZP_BYTE:124 [ play_collision::i#1 ] +Allocated zp ZP_BYTE:125 [ play_collision::$7 ] +Allocated zp ZP_BYTE:126 [ play_collision::return#12 ] +Allocated zp ZP_BYTE:127 [ play_move_leftright::$4 ] +Allocated zp ZP_BYTE:128 [ play_collision::return#1 ] +Allocated zp ZP_BYTE:129 [ play_move_leftright::$8 ] +Allocated zp ZP_BYTE:130 [ keyboard_event_pressed::return#12 ] +Allocated zp ZP_BYTE:131 [ play_move_down::$2 ] +Allocated zp ZP_BYTE:132 [ play_collision::return#0 ] +Allocated zp ZP_BYTE:133 [ play_move_down::$12 ] +Allocated zp ZP_BYTE:134 [ play_spawn_current::$3 ] +Allocated zp ZP_BYTE:135 [ sid_rnd::return#2 ] +Allocated zp ZP_BYTE:136 [ play_spawn_current::$1 ] +Allocated zp ZP_BYTE:137 [ sid_rnd::return#0 ] +Allocated zp ZP_BYTE:138 [ play_remove_lines::c#0 ] +Allocated zp ZP_WORD:139 [ play_lock_current::playfield_line#0 ] +Allocated zp ZP_BYTE:141 [ play_lock_current::i#1 ] +Allocated zp ZP_BYTE:142 [ keyboard_event_pressed::$0 ] +Allocated zp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] +Allocated zp ZP_BYTE:144 [ keyboard_event_pressed::$1 ] +Allocated zp ZP_BYTE:145 [ keyboard_event_pressed::return#11 ] +Allocated zp ZP_BYTE:146 [ keyboard_matrix_read::rowid#0 ] +Allocated zp ZP_BYTE:147 [ keyboard_matrix_read::return#2 ] +Allocated zp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] +Allocated zp ZP_BYTE:149 [ keyboard_event_pressed::return#0 ] +Allocated zp ZP_BYTE:150 [ keyboard_event_scan::$14 ] +Allocated zp ZP_BYTE:151 [ keyboard_event_pressed::return#1 ] +Allocated zp ZP_BYTE:152 [ keyboard_event_scan::$18 ] +Allocated zp ZP_BYTE:153 [ keyboard_event_pressed::return#2 ] +Allocated zp ZP_BYTE:154 [ keyboard_event_scan::$22 ] +Allocated zp ZP_BYTE:155 [ keyboard_event_pressed::return#10 ] +Allocated zp ZP_BYTE:156 [ keyboard_event_scan::$26 ] +Allocated zp ZP_BYTE:157 [ keyboard_modifiers#5 ] +Allocated zp ZP_BYTE:158 [ keyboard_event_scan::$3 ] +Allocated zp ZP_BYTE:159 [ keyboard_event_scan::$4 ] +Allocated zp ZP_BYTE:160 [ keyboard_event_scan::event_type#0 ] +Allocated zp ZP_BYTE:161 [ keyboard_event_scan::$11 ] +Allocated zp ZP_BYTE:162 [ keyboard_matrix_read::return#0 ] +Allocated zp ZP_BYTE:163 [ play_init::$1 ] +Allocated zp ZP_BYTE:164 [ sprites_init::s2#0 ] +Allocated zp ZP_WORD:165 [ render_init::$12 ] +Allocated zp ZP_BYTE:167 [ render_init::$22 ] +Allocated zp ZP_BYTE:168 [ render_init::$23 ] +Allocated zp ZP_BYTE:169 [ irq::ypos#0 ] +Allocated zp ZP_BYTE:170 [ irq::ptr#0 ] +Allocated zp ZP_BYTE:171 [ irq::ptr#1 ] +Allocated zp ZP_BYTE:172 [ irq::ptr#2 ] +Allocated zp ZP_BYTE:173 [ irq_cnt#1 ] +Allocated zp ZP_BYTE:174 [ irq_sprite_ypos#2 ] +Allocated zp ZP_BYTE:175 [ irq_sprite_ptr#2 ] +Allocated zp ZP_BYTE:176 [ irq::$3 ] +Allocated zp ZP_BYTE:177 [ irq_cnt#13 ] +Allocated zp ZP_BYTE:178 [ irq_sprite_ypos#1 ] +Allocated zp ZP_BYTE:179 [ irq_sprite_ptr#1 ] INITIAL ASM //SEG0 Basic Upstart @@ -8558,12 +9135,13 @@ INITIAL ASM .label SID_VOICE3_CONTROL = $d412 .const SID_CONTROL_NOISE = $80 .label SID_VOICE3_OSC = $d41b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 + .label PLAYFIELD_SCREEN_ORIGINAL = $1800 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a - .label PLAYFIELD_SCREEN_ORIGINAL = $2c00 .const IRQ_RASTER_FIRST = $31 .const current_movedown_slow = $32 .const current_movedown_fast = 5 @@ -8572,48 +9150,55 @@ INITIAL ASM .const COLLISION_BOTTOM = 2 .const COLLISION_LEFT = 4 .const COLLISION_RIGHT = 8 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 - .label keyboard_events_size = $3b - .label keyboard_modifiers = $38 - .label keyboard_modifiers_5 = $93 - .label irq_raster_next = $54 - .label irq_sprite_ypos = $55 - .label irq_sprite_ptr = $56 - .label irq_cnt = $57 - .label irq_cnt_1 = $a2 - .label irq_raster_next_1 = $52 - .label irq_sprite_ypos_1 = $a7 - .label irq_sprite_ptr_1 = $a8 - .label irq_raster_next_2 = $52 - .label irq_sprite_ypos_2 = $a3 - .label irq_sprite_ptr_2 = $a4 - .label current_movedown_counter = 2 - .label current_ypos = $21 - .label current_piece_gfx = $25 - .label current_xpos = $27 - .label current_piece_char = $28 - .label current_orientation = $24 - .label current_ypos_9 = 3 - .label current_piece = $22 - .label current_piece_12 = $14 - .label current_xpos_47 = 4 - .label irq_raster_next_12 = $52 - .label current_piece_gfx_52 = 5 - .label irq_cnt_13 = $a6 - .label current_piece_char_62 = 7 - .label current_ypos_83 = 3 - .label current_ypos_84 = 3 - .label current_xpos_109 = 4 - .label current_xpos_110 = 4 - .label current_piece_gfx_99 = 5 - .label current_piece_gfx_100 = 5 - .label current_piece_char_87 = 7 - .label current_piece_char_88 = 7 - .label current_piece_73 = $14 - .label current_piece_74 = $14 - .label current_piece_75 = $14 - .label current_piece_76 = $14 + .label keyboard_events_size = $3f + .label keyboard_modifiers = $3c + .label keyboard_modifiers_5 = $9d + .label irq_raster_next = $5b + .label irq_sprite_ypos = $5c + .label irq_sprite_ptr = $5d + .label irq_cnt = $5e + .label irq_cnt_1 = $ad + .label irq_raster_next_1 = $59 + .label irq_sprite_ypos_1 = $b2 + .label irq_sprite_ptr_1 = $b3 + .label irq_raster_next_2 = $59 + .label irq_sprite_ypos_2 = $ae + .label irq_sprite_ptr_2 = $af + .label current_movedown_counter = 4 + .label current_ypos = $25 + .label current_piece_gfx = $29 + .label current_xpos = $2b + .label current_piece_char = $2c + .label current_orientation = $28 + .label render_screen_render = 3 + .label render_screen_show = 2 + .label current_ypos_9 = 5 + .label current_piece = $26 + .label current_piece_12 = $18 + .label render_screen_render_18 = $10 + .label render_screen_render_27 = 6 + .label current_xpos_47 = 7 + .label irq_raster_next_12 = $59 + .label current_piece_gfx_52 = 8 + .label irq_cnt_13 = $b1 + .label current_piece_char_62 = $a + .label current_ypos_83 = 5 + .label current_ypos_84 = 5 + .label render_screen_render_68 = 6 + .label current_xpos_109 = 7 + .label current_xpos_110 = 7 + .label current_piece_gfx_99 = 8 + .label current_piece_gfx_100 = 8 + .label current_piece_char_87 = $a + .label current_piece_char_88 = $a + .label render_screen_render_69 = $10 + .label current_piece_73 = $18 + .label current_piece_74 = $18 + .label current_piece_75 = $18 + .label current_piece_76 = $18 //SEG2 @begin bbegin: jmp b14 @@ -8621,623 +9206,693 @@ bbegin: b14: //SEG4 kickasm(location (const byte*) PLAYFIELD_CHARSET#0) {{ .fill 8,$00 // Place a filled char at the start of the charset .import binary "nes-screen.imap" }} //SEG5 kickasm(location (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0) {{ .import binary "nes-screen.iscr" }} - jmp b18 -//SEG6 @18 -b18: + jmp b20 +//SEG6 @20 +b20: //SEG7 kickasm(location (const byte*) PLAYFIELD_SPRITES#0) {{ .var sprites = LoadPicture("nes-playfield.png", List().add($010101, $000000)) .for(var sy=0;sy<10;sy++) { .for(var sx=0;sx<3;sx++) { .for (var y=0;y<21; y++) { .for (var c=0; c<3; c++) { .byte sprites.getSinglecolorByte(sx*3+c,sy*21+y) } } .byte 0 } } }} - jmp b19 -//SEG8 @19 -b19: + jmp b21 +//SEG8 @21 +b21: //SEG9 [4] (byte) irq_raster_next#0 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next //SEG10 [5] (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos -//SEG11 [6] phi from @19 to toSpritePtr1 [phi:@19->toSpritePtr1] -toSpritePtr1_from_b19: +//SEG11 [6] phi from @21 to toSpritePtr1 [phi:@21->toSpritePtr1] +toSpritePtr1_from_b21: jmp toSpritePtr1 //SEG12 toSpritePtr1 toSpritePtr1: - jmp b31 -//SEG13 @31 -b31: + jmp b33 +//SEG13 @33 +b33: //SEG14 [7] (byte) irq_sprite_ptr#0 ← (const byte) toSpritePtr1_return#0 -- vbuz1=vbuc1 lda #toSpritePtr1_return sta irq_sprite_ptr //SEG15 [8] (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt -//SEG16 [9] phi from @31 to @30 [phi:@31->@30] -b30_from_b31: - jmp b30 -//SEG17 @30 -b30: +//SEG16 [9] phi from @33 to @32 [phi:@33->@32] +b32_from_b33: + jmp b32 +//SEG17 @32 +b32: //SEG18 [10] call main -//SEG19 [12] phi from @30 to main [phi:@30->main] -main_from_b30: +//SEG19 [12] phi from @32 to main [phi:@32->main] +main_from_b32: jsr main -//SEG20 [11] phi from @30 to @end [phi:@30->@end] -bend_from_b30: +//SEG20 [11] phi from @32 to @end [phi:@32->@end] +bend_from_b32: jmp bend //SEG21 @end bend: //SEG22 main main: { - .label _12 = $5c - .label _13 = $60 - .label _14 = $64 - .label key_event = $59 - .label render = $5d - .label render_2 = $61 - .label render_3 = $65 + .label _9 = $5f + .label _13 = $64 + .label _14 = $68 + .label _15 = $6c + .label key_event = $61 + .label render = $65 + .label render_2 = $69 + .label render_3 = $6d //SEG23 [13] call sid_rnd_init jsr sid_rnd_init - jmp b21 - //SEG24 main::@21 - b21: + jmp b15 + //SEG24 main::@15 + b15: //SEG25 asm { sei } sei //SEG26 [15] call render_init - //SEG27 [356] phi from main::@21 to render_init [phi:main::@21->render_init] - render_init_from_b21: + //SEG27 [373] phi from main::@15 to render_init [phi:main::@15->render_init] + render_init_from_b15: jsr render_init - //SEG28 [16] phi from main::@21 to main::@22 [phi:main::@21->main::@22] - b22_from_b21: - jmp b22 - //SEG29 main::@22 - b22: + //SEG28 [16] phi from main::@15 to main::@16 [phi:main::@15->main::@16] + b16_from_b15: + jmp b16 + //SEG29 main::@16 + b16: //SEG30 [17] call sprites_init jsr sprites_init - //SEG31 [18] phi from main::@22 to main::@23 [phi:main::@22->main::@23] - b23_from_b22: - jmp b23 - //SEG32 main::@23 - b23: + //SEG31 [18] phi from main::@16 to main::@17 [phi:main::@16->main::@17] + b17_from_b16: + jmp b17 + //SEG32 main::@17 + b17: //SEG33 [19] call sprites_irq_init jsr sprites_irq_init - //SEG34 [20] phi from main::@23 to main::@24 [phi:main::@23->main::@24] - b24_from_b23: - jmp b24 - //SEG35 main::@24 - b24: + //SEG34 [20] phi from main::@17 to main::@18 [phi:main::@17->main::@18] + b18_from_b17: + jmp b18 + //SEG35 main::@18 + b18: //SEG36 [21] call play_init - //SEG37 [321] phi from main::@24 to play_init [phi:main::@24->play_init] - play_init_from_b24: + //SEG37 [338] phi from main::@18 to play_init [phi:main::@18->play_init] + play_init_from_b18: jsr play_init - //SEG38 [22] phi from main::@24 to main::@25 [phi:main::@24->main::@25] - b25_from_b24: - jmp b25 - //SEG39 main::@25 - b25: + //SEG38 [22] phi from main::@18 to main::@19 [phi:main::@18->main::@19] + b19_from_b18: + jmp b19 + //SEG39 main::@19 + b19: //SEG40 [23] call play_spawn_current - //SEG41 [199] phi from main::@25 to play_spawn_current [phi:main::@25->play_spawn_current] - play_spawn_current_from_b25: + //SEG41 [210] phi from main::@19 to play_spawn_current [phi:main::@19->play_spawn_current] + play_spawn_current_from_b19: jsr play_spawn_current - //SEG42 [24] phi from main::@25 to main::@26 [phi:main::@25->main::@26] - b26_from_b25: - jmp b26 - //SEG43 main::@26 - b26: + //SEG42 [24] phi from main::@19 to main::@20 [phi:main::@19->main::@20] + b20_from_b19: + jmp b20 + //SEG43 main::@20 + b20: //SEG44 [25] call render_playfield - //SEG45 [87] phi from main::@26 to render_playfield [phi:main::@26->render_playfield] - render_playfield_from_b26: + //SEG45 [97] phi from main::@20 to render_playfield [phi:main::@20->render_playfield] + render_playfield_from_b20: + //SEG46 [97] phi (byte) render_screen_render#18 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@20->render_playfield#0] -- vbuz1=vbuc1 + lda #$40 + sta render_screen_render_18 jsr render_playfield - jmp b27 - //SEG46 main::@27 - b27: - //SEG47 [26] (byte~) current_ypos#83 ← (byte) current_ypos#18 -- vbuz1=vbuz2 + jmp b21 + //SEG47 main::@21 + b21: + //SEG48 [26] (byte~) current_ypos#83 ← (byte) current_ypos#18 -- vbuz1=vbuz2 lda current_ypos sta current_ypos_83 - //SEG48 [27] (byte~) current_xpos#109 ← (byte) current_xpos#23 -- vbuz1=vbuz2 + //SEG49 [27] (byte~) current_xpos#109 ← (byte) current_xpos#23 -- vbuz1=vbuz2 lda current_xpos sta current_xpos_109 - //SEG49 [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 -- pbuz1=pbuz2 + //SEG50 [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 -- pbuz1=pbuz2 lda current_piece_gfx sta current_piece_gfx_99 lda current_piece_gfx+1 sta current_piece_gfx_99+1 - //SEG50 [29] (byte~) current_piece_char#87 ← (byte) current_piece_char#12 -- vbuz1=vbuz2 + //SEG51 [29] (byte~) current_piece_char#87 ← (byte) current_piece_char#12 -- vbuz1=vbuz2 lda current_piece_char sta current_piece_char_87 - //SEG51 [30] call render_current - //SEG52 [65] phi from main::@27 to render_current [phi:main::@27->render_current] - render_current_from_b27: - //SEG53 [65] phi (byte) current_piece_char#62 = (byte~) current_piece_char#87 [phi:main::@27->render_current#0] -- register_copy - //SEG54 [65] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#99 [phi:main::@27->render_current#1] -- register_copy - //SEG55 [65] phi (byte) current_xpos#47 = (byte~) current_xpos#109 [phi:main::@27->render_current#2] -- register_copy - //SEG56 [65] phi (byte) current_ypos#9 = (byte~) current_ypos#83 [phi:main::@27->render_current#3] -- register_copy + //SEG52 [30] call render_current + //SEG53 [74] phi from main::@21 to render_current [phi:main::@21->render_current] + render_current_from_b21: + //SEG54 [74] phi (byte) current_piece_char#62 = (byte~) current_piece_char#87 [phi:main::@21->render_current#0] -- register_copy + //SEG55 [74] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#99 [phi:main::@21->render_current#1] -- register_copy + //SEG56 [74] phi (byte) current_xpos#47 = (byte~) current_xpos#109 [phi:main::@21->render_current#2] -- register_copy + //SEG57 [74] phi (byte) render_screen_render#27 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@21->render_current#3] -- vbuz1=vbuc1 + lda #$40 + sta render_screen_render_27 + //SEG58 [74] phi (byte) current_ypos#9 = (byte~) current_ypos#83 [phi:main::@21->render_current#4] -- register_copy jsr render_current - //SEG57 [31] (byte*~) current_piece#72 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG59 [31] (byte*~) current_piece#71 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 ldy play_spawn_current._3 lda PIECES,y sta current_piece lda PIECES+1,y sta current_piece+1 - //SEG58 [32] phi from main::@27 to main::@1 [phi:main::@27->main::@1] - b1_from_b27: - //SEG59 [32] phi (byte) current_movedown_counter#12 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#0] -- vbuz1=vbuc1 + //SEG60 [32] phi from main::@21 to main::@1 [phi:main::@21->main::@1] + b1_from_b21: + //SEG61 [32] phi (byte) current_movedown_counter#12 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#0] -- vbuz1=vbuc1 lda #0 sta current_movedown_counter - //SEG60 [32] phi (byte) keyboard_events_size#19 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#1] -- vbuz1=vbuc1 + //SEG62 [32] phi (byte) keyboard_events_size#19 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#1] -- vbuz1=vbuc1 lda #0 sta keyboard_events_size - //SEG61 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#12 [phi:main::@27->main::@1#2] -- register_copy - //SEG62 [32] phi (byte) current_ypos#21 = (byte) current_ypos#18 [phi:main::@27->main::@1#3] -- register_copy - //SEG63 [32] phi (byte) current_xpos#10 = (byte) current_xpos#23 [phi:main::@27->main::@1#4] -- register_copy - //SEG64 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#16 [phi:main::@27->main::@1#5] -- register_copy - //SEG65 [32] phi (byte) current_orientation#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#6] -- vbuz1=vbuc1 + //SEG63 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#12 [phi:main::@21->main::@1#2] -- register_copy + //SEG64 [32] phi (byte) current_ypos#21 = (byte) current_ypos#18 [phi:main::@21->main::@1#3] -- register_copy + //SEG65 [32] phi (byte) current_xpos#10 = (byte) current_xpos#23 [phi:main::@21->main::@1#4] -- register_copy + //SEG66 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#16 [phi:main::@21->main::@1#5] -- register_copy + //SEG67 [32] phi (byte) current_orientation#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#6] -- vbuz1=vbuc1 lda #0 sta current_orientation - //SEG66 [32] phi (byte*) current_piece#16 = (byte*~) current_piece#72 [phi:main::@27->main::@1#7] -- register_copy + //SEG68 [32] phi (byte*) current_piece#16 = (byte*~) current_piece#71 [phi:main::@21->main::@1#7] -- register_copy + //SEG69 [32] phi (byte) render_screen_render#15 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@21->main::@1#8] -- vbuz1=vbuc1 + lda #$40 + sta render_screen_render + //SEG70 [32] phi (byte) render_screen_show#15 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#9] -- vbuz1=vbuc1 + lda #0 + sta render_screen_show jmp b1 - //SEG67 main::@1 + //SEG71 main::@1 b1: jmp b4 - //SEG68 main::@4 + //SEG72 main::@4 b4: - //SEG69 [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 -- _deref_pbuc1_neq_vbuc2_then_la1 + //SEG73 [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 -- _deref_pbuc1_neq_vbuc2_then_la1 lda RASTER cmp #$ff bne b4 - jmp b7 - //SEG70 main::@7 - b7: - //SEG71 [34] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@7 -- _deref_pbuc1_neq_vbuc2_then_la1 - lda RASTER - cmp #$fe - bne b7 - jmp b9 - //SEG72 main::@9 - b9: - //SEG73 [35] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_inc__deref_pbuc1 - inc BORDERCOL - //SEG74 [36] call keyboard_event_scan - //SEG75 [265] phi from main::@9 to keyboard_event_scan [phi:main::@9->keyboard_event_scan] - keyboard_event_scan_from_b9: + jmp b6 + //SEG74 main::@6 + b6: + //SEG75 [34] (byte~) main::$9 ← (byte) render_screen_show#15 >> (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz2_ror_4 + lda render_screen_show + lsr + lsr + lsr + lsr + sta _9 + //SEG76 [35] *((const byte*) BORDERCOL#0) ← (byte~) main::$9 -- _deref_pbuc1=vbuz1 + lda _9 + sta BORDERCOL + //SEG77 [36] call render_show + jsr render_show + //SEG78 [37] phi from main::@6 to main::@23 [phi:main::@6->main::@23] + b23_from_b6: + jmp b23 + //SEG79 main::@23 + b23: + //SEG80 [38] call keyboard_event_scan + //SEG81 [276] phi from main::@23 to keyboard_event_scan [phi:main::@23->keyboard_event_scan] + keyboard_event_scan_from_b23: jsr keyboard_event_scan - //SEG76 [37] phi from main::@9 to main::@29 [phi:main::@9->main::@29] - b29_from_b9: - jmp b29 - //SEG77 main::@29 - b29: - //SEG78 [38] call keyboard_event_get + //SEG82 [39] phi from main::@23 to main::@24 [phi:main::@23->main::@24] + b24_from_b23: + jmp b24 + //SEG83 main::@24 + b24: + //SEG84 [40] call keyboard_event_get jsr keyboard_event_get - //SEG79 [39] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 -- vbuz1=vbuz2 + //SEG85 [41] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 -- vbuz1=vbuz2 lda keyboard_event_get.return sta keyboard_event_get.return_3 - jmp b30 - //SEG80 main::@30 - b30: - //SEG81 [40] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 -- vbuz1=vbuz2 + jmp b25 + //SEG86 main::@25 + b25: + //SEG87 [42] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 -- vbuz1=vbuz2 lda keyboard_event_get.return_3 sta key_event - //SEG82 [41] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 -- vbuz1=vbuz2 + //SEG88 [43] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 -- vbuz1=vbuz2 lda key_event sta play_move_down.key_event - //SEG83 [42] call play_move_down + //SEG89 [44] call play_move_down jsr play_move_down - //SEG84 [43] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 -- vbuz1=vbuz2 + //SEG90 [45] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 -- vbuz1=vbuz2 lda play_move_down.return sta play_move_down.return_3 - jmp b31 - //SEG85 main::@31 - b31: - //SEG86 [44] (byte~) main::$12 ← (byte) play_move_down::return#3 -- vbuz1=vbuz2 + jmp b26 + //SEG91 main::@26 + b26: + //SEG92 [46] (byte~) main::$13 ← (byte) play_move_down::return#3 -- vbuz1=vbuz2 lda play_move_down.return_3 - sta _12 - //SEG87 [45] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$12 -- vbuz1=vbuc1_plus_vbuz2 + sta _13 + //SEG93 [47] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$13 -- vbuz1=vbuc1_plus_vbuz2 lda #0 clc - adc _12 + adc _13 sta render - //SEG88 [46] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 -- vbuz1=vbuz2 + //SEG94 [48] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 -- vbuz1=vbuz2 lda key_event sta play_move_leftright.key_event - //SEG89 [47] call play_move_leftright + //SEG95 [49] call play_move_leftright jsr play_move_leftright - //SEG90 [48] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 -- vbuz1=vbuz2 + //SEG96 [50] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 -- vbuz1=vbuz2 lda play_move_leftright.return sta play_move_leftright.return_4 - jmp b32 - //SEG91 main::@32 - b32: - //SEG92 [49] (byte~) main::$13 ← (byte) play_move_leftright::return#4 -- vbuz1=vbuz2 + jmp b27 + //SEG97 main::@27 + b27: + //SEG98 [51] (byte~) main::$14 ← (byte) play_move_leftright::return#4 -- vbuz1=vbuz2 lda play_move_leftright.return_4 - sta _13 - //SEG93 [50] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$13 -- vbuz1=vbuz2_plus_vbuz3 + sta _14 + //SEG99 [52] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$14 -- vbuz1=vbuz2_plus_vbuz3 lda render clc - adc _13 + adc _14 sta render_2 - //SEG94 [51] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 -- vbuz1=vbuz2 + //SEG100 [53] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 -- vbuz1=vbuz2 lda key_event sta play_move_rotate.key_event - //SEG95 [52] call play_move_rotate + //SEG101 [54] call play_move_rotate jsr play_move_rotate - //SEG96 [53] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 -- vbuz1=vbuz2 + //SEG102 [55] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 -- vbuz1=vbuz2 lda play_move_rotate.return sta play_move_rotate.return_4 - jmp b33 - //SEG97 main::@33 - b33: - //SEG98 [54] (byte~) main::$14 ← (byte) play_move_rotate::return#4 -- vbuz1=vbuz2 + jmp b28 + //SEG103 main::@28 + b28: + //SEG104 [56] (byte~) main::$15 ← (byte) play_move_rotate::return#4 -- vbuz1=vbuz2 lda play_move_rotate.return_4 - sta _14 - //SEG99 [55] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$14 -- vbuz1=vbuz2_plus_vbuz3 + sta _15 + //SEG105 [57] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$15 -- vbuz1=vbuz2_plus_vbuz3 lda render_2 clc - adc _14 + adc _15 sta render_3 - //SEG100 [56] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@10 -- vbuz1_eq_0_then_la1 + //SEG106 [58] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@7 -- vbuz1_eq_0_then_la1 lda render_3 cmp #0 - beq b10 - //SEG101 [57] phi from main::@33 to main::@19 [phi:main::@33->main::@19] - b19_from_b33: - jmp b19 - //SEG102 main::@19 - b19: - //SEG103 [58] call render_playfield - //SEG104 [87] phi from main::@19 to render_playfield [phi:main::@19->render_playfield] - render_playfield_from_b19: + beq b7_from_b28 + jmp b13 + //SEG107 main::@13 + b13: + //SEG108 [59] (byte~) render_screen_render#69 ← (byte) render_screen_render#15 -- vbuz1=vbuz2 + lda render_screen_render + sta render_screen_render_69 + //SEG109 [60] call render_playfield + //SEG110 [97] phi from main::@13 to render_playfield [phi:main::@13->render_playfield] + render_playfield_from_b13: + //SEG111 [97] phi (byte) render_screen_render#18 = (byte~) render_screen_render#69 [phi:main::@13->render_playfield#0] -- register_copy jsr render_playfield - jmp b34 - //SEG105 main::@34 - b34: - //SEG106 [59] (byte~) current_ypos#84 ← (byte) current_ypos#13 -- vbuz1=vbuz2 + jmp b29 + //SEG112 main::@29 + b29: + //SEG113 [61] (byte~) current_ypos#84 ← (byte) current_ypos#13 -- vbuz1=vbuz2 lda current_ypos sta current_ypos_84 - //SEG107 [60] (byte~) current_xpos#110 ← (byte) current_xpos#19 -- vbuz1=vbuz2 + //SEG114 [62] (byte~) render_screen_render#68 ← (byte) render_screen_render#15 -- vbuz1=vbuz2 + lda render_screen_render + sta render_screen_render_68 + //SEG115 [63] (byte~) current_xpos#110 ← (byte) current_xpos#19 -- vbuz1=vbuz2 lda current_xpos sta current_xpos_110 - //SEG108 [61] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 -- pbuz1=pbuz2 + //SEG116 [64] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 -- pbuz1=pbuz2 lda current_piece_gfx sta current_piece_gfx_100 lda current_piece_gfx+1 sta current_piece_gfx_100+1 - //SEG109 [62] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 -- vbuz1=vbuz2 + //SEG117 [65] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 -- vbuz1=vbuz2 lda current_piece_char sta current_piece_char_88 - //SEG110 [63] call render_current - //SEG111 [65] phi from main::@34 to render_current [phi:main::@34->render_current] - render_current_from_b34: - //SEG112 [65] phi (byte) current_piece_char#62 = (byte~) current_piece_char#88 [phi:main::@34->render_current#0] -- register_copy - //SEG113 [65] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#100 [phi:main::@34->render_current#1] -- register_copy - //SEG114 [65] phi (byte) current_xpos#47 = (byte~) current_xpos#110 [phi:main::@34->render_current#2] -- register_copy - //SEG115 [65] phi (byte) current_ypos#9 = (byte~) current_ypos#84 [phi:main::@34->render_current#3] -- register_copy + //SEG118 [66] call render_current + //SEG119 [74] phi from main::@29 to render_current [phi:main::@29->render_current] + render_current_from_b29: + //SEG120 [74] phi (byte) current_piece_char#62 = (byte~) current_piece_char#88 [phi:main::@29->render_current#0] -- register_copy + //SEG121 [74] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#100 [phi:main::@29->render_current#1] -- register_copy + //SEG122 [74] phi (byte) current_xpos#47 = (byte~) current_xpos#110 [phi:main::@29->render_current#2] -- register_copy + //SEG123 [74] phi (byte) render_screen_render#27 = (byte~) render_screen_render#68 [phi:main::@29->render_current#3] -- register_copy + //SEG124 [74] phi (byte) current_ypos#9 = (byte~) current_ypos#84 [phi:main::@29->render_current#4] -- register_copy jsr render_current - jmp b10 - //SEG116 main::@10 - b10: - //SEG117 [64] *((const byte*) BORDERCOL#0) ← -- *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_dec__deref_pbuc1 - dec BORDERCOL - //SEG118 [32] phi from main::@10 to main::@1 [phi:main::@10->main::@1] - b1_from_b10: - //SEG119 [32] phi (byte) current_movedown_counter#12 = (byte) current_movedown_counter#10 [phi:main::@10->main::@1#0] -- register_copy - //SEG120 [32] phi (byte) keyboard_events_size#19 = (byte) keyboard_events_size#16 [phi:main::@10->main::@1#1] -- register_copy - //SEG121 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#1 [phi:main::@10->main::@1#2] -- register_copy - //SEG122 [32] phi (byte) current_ypos#21 = (byte) current_ypos#13 [phi:main::@10->main::@1#3] -- register_copy - //SEG123 [32] phi (byte) current_xpos#10 = (byte) current_xpos#19 [phi:main::@10->main::@1#4] -- register_copy - //SEG124 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#14 [phi:main::@10->main::@1#5] -- register_copy - //SEG125 [32] phi (byte) current_orientation#10 = (byte) current_orientation#19 [phi:main::@10->main::@1#6] -- register_copy - //SEG126 [32] phi (byte*) current_piece#16 = (byte*) current_piece#10 [phi:main::@10->main::@1#7] -- register_copy + //SEG125 [67] phi from main::@29 to main::@30 [phi:main::@29->main::@30] + b30_from_b29: + jmp b30 + //SEG126 main::@30 + b30: + //SEG127 [68] call render_screen_swap + jsr render_screen_swap + //SEG128 [69] phi from main::@28 main::@30 to main::@7 [phi:main::@28/main::@30->main::@7] + b7_from_b28: + b7_from_b30: + //SEG129 [69] phi (byte) render_screen_render#31 = (byte) render_screen_render#15 [phi:main::@28/main::@30->main::@7#0] -- register_copy + //SEG130 [69] phi (byte) render_screen_show#24 = (byte) render_screen_show#15 [phi:main::@28/main::@30->main::@7#1] -- register_copy + jmp b7 + //SEG131 main::@7 + b7: + //SEG132 [70] *((const byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 + lda #0 + sta BORDERCOL + //SEG133 [32] phi from main::@7 to main::@1 [phi:main::@7->main::@1] + b1_from_b7: + //SEG134 [32] phi (byte) current_movedown_counter#12 = (byte) current_movedown_counter#10 [phi:main::@7->main::@1#0] -- register_copy + //SEG135 [32] phi (byte) keyboard_events_size#19 = (byte) keyboard_events_size#16 [phi:main::@7->main::@1#1] -- register_copy + //SEG136 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#1 [phi:main::@7->main::@1#2] -- register_copy + //SEG137 [32] phi (byte) current_ypos#21 = (byte) current_ypos#13 [phi:main::@7->main::@1#3] -- register_copy + //SEG138 [32] phi (byte) current_xpos#10 = (byte) current_xpos#19 [phi:main::@7->main::@1#4] -- register_copy + //SEG139 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#14 [phi:main::@7->main::@1#5] -- register_copy + //SEG140 [32] phi (byte) current_orientation#10 = (byte) current_orientation#19 [phi:main::@7->main::@1#6] -- register_copy + //SEG141 [32] phi (byte*) current_piece#16 = (byte*) current_piece#10 [phi:main::@7->main::@1#7] -- register_copy + //SEG142 [32] phi (byte) render_screen_render#15 = (byte) render_screen_render#31 [phi:main::@7->main::@1#8] -- register_copy + //SEG143 [32] phi (byte) render_screen_show#15 = (byte) render_screen_show#24 [phi:main::@7->main::@1#9] -- register_copy jmp b1 } -//SEG127 render_current +//SEG144 render_screen_swap +render_screen_swap: { + //SEG145 [71] (byte) render_screen_render#10 ← (byte) render_screen_render#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz1_bxor_vbuc1 + lda render_screen_render + eor #$40 + sta render_screen_render + //SEG146 [72] (byte) render_screen_show#11 ← (byte) render_screen_show#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz1_bxor_vbuc1 + lda render_screen_show + eor #$40 + sta render_screen_show + jmp breturn + //SEG147 render_screen_swap::@return + breturn: + //SEG148 [73] return + rts +} +//SEG149 render_current render_current: { - .label ypos2 = 8 - .label screen_line = $66 - .label xpos = $b - .label i = $a - .label l = 9 - .label current_cell = $68 - .label c = $c - //SEG128 [66] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + .label _5 = $6e + .label ypos2 = $b + .label screen_line = $6f + .label xpos = $e + .label i = $d + .label l = $c + .label current_cell = $71 + .label c = $f + //SEG150 [75] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 lda current_ypos_9 asl sta ypos2 - //SEG129 [67] phi from render_current to render_current::@1 [phi:render_current->render_current::@1] + //SEG151 [76] phi from render_current to render_current::@1 [phi:render_current->render_current::@1] b1_from_render_current: - //SEG130 [67] phi (byte) render_current::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#0] -- vbuz1=vbuc1 + //SEG152 [76] phi (byte) render_current::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG131 [67] phi (byte) render_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#1] -- vbuz1=vbuc1 + //SEG153 [76] phi (byte) render_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#1] -- vbuz1=vbuc1 lda #0 sta i - //SEG132 [67] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#0 [phi:render_current->render_current::@1#2] -- register_copy + //SEG154 [76] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#0 [phi:render_current->render_current::@1#2] -- register_copy jmp b1 - //SEG133 [67] phi from render_current::@3 to render_current::@1 [phi:render_current::@3->render_current::@1] + //SEG155 [76] phi from render_current::@3 to render_current::@1 [phi:render_current::@3->render_current::@1] b1_from_b3: - //SEG134 [67] phi (byte) render_current::l#4 = (byte) render_current::l#1 [phi:render_current::@3->render_current::@1#0] -- register_copy - //SEG135 [67] phi (byte) render_current::i#3 = (byte) render_current::i#8 [phi:render_current::@3->render_current::@1#1] -- register_copy - //SEG136 [67] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#1 [phi:render_current::@3->render_current::@1#2] -- register_copy + //SEG156 [76] phi (byte) render_current::l#4 = (byte) render_current::l#1 [phi:render_current::@3->render_current::@1#0] -- register_copy + //SEG157 [76] phi (byte) render_current::i#3 = (byte) render_current::i#8 [phi:render_current::@3->render_current::@1#1] -- register_copy + //SEG158 [76] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#1 [phi:render_current::@3->render_current::@1#2] -- register_copy jmp b1 - //SEG137 render_current::@1 + //SEG159 render_current::@1 b1: - //SEG138 [68] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 -- vbuz1_gt_vbuc1_then_la1 + //SEG160 [77] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 -- vbuz1_gt_vbuc1_then_la1 lda ypos2 cmp #2 beq !+ bcs b13 !: jmp b7 - //SEG139 render_current::@7 + //SEG161 render_current::@7 b7: - //SEG140 [69] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 + //SEG162 [78] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 lda #4 clc adc i sta i - //SEG141 [70] phi from render_current::@5 render_current::@7 to render_current::@3 [phi:render_current::@5/render_current::@7->render_current::@3] + //SEG163 [79] phi from render_current::@5 render_current::@7 to render_current::@3 [phi:render_current::@5/render_current::@7->render_current::@3] b3_from_b5: b3_from_b7: - //SEG142 [70] phi (byte) render_current::i#8 = (byte) render_current::i#10 [phi:render_current::@5/render_current::@7->render_current::@3#0] -- register_copy + //SEG164 [79] phi (byte) render_current::i#8 = (byte) render_current::i#10 [phi:render_current::@5/render_current::@7->render_current::@3#0] -- register_copy jmp b3 - //SEG143 render_current::@3 + //SEG165 render_current::@3 b3: - //SEG144 [71] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG166 [80] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG145 [72] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 -- vbuz1=_inc_vbuz1 + //SEG167 [81] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 -- vbuz1=_inc_vbuz1 inc l - //SEG146 [73] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG168 [82] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b1_from_b3 jmp breturn - //SEG147 render_current::@return + //SEG169 render_current::@return breturn: - //SEG148 [74] return + //SEG170 [83] return rts - //SEG149 render_current::@13 + //SEG171 render_current::@13 b13: - //SEG150 [75] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 -- vbuz1_lt_vbuc1_then_la1 + //SEG172 [84] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 -- vbuz1_lt_vbuc1_then_la1 lda ypos2 cmp #2*PLAYFIELD_LINES bcc b2 jmp b7 - //SEG151 render_current::@2 + //SEG173 render_current::@2 b2: - //SEG152 [76] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 - ldy ypos2 - lda screen_lines,y + //SEG174 [85] (byte~) render_current::$5 ← (byte) render_screen_render#27 + (byte) render_current::ypos2#2 -- vbuz1=vbuz2_plus_vbuz3 + lda render_screen_render_27 + clc + adc ypos2 + sta _5 + //SEG175 [86] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) -- pbuz1=pptc1_derefidx_vbuz2 + ldy _5 + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 - //SEG153 [77] (byte) render_current::xpos#0 ← (byte) current_xpos#47 -- vbuz1=vbuz2 + //SEG176 [87] (byte) render_current::xpos#0 ← (byte) current_xpos#47 -- vbuz1=vbuz2 lda current_xpos_47 sta xpos - //SEG154 [78] phi from render_current::@2 to render_current::@4 [phi:render_current::@2->render_current::@4] + //SEG177 [88] phi from render_current::@2 to render_current::@4 [phi:render_current::@2->render_current::@4] b4_from_b2: - //SEG155 [78] phi (byte) render_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current::@2->render_current::@4#0] -- vbuz1=vbuc1 + //SEG178 [88] phi (byte) render_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current::@2->render_current::@4#0] -- vbuz1=vbuc1 lda #0 sta c - //SEG156 [78] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#0 [phi:render_current::@2->render_current::@4#1] -- register_copy - //SEG157 [78] phi (byte) render_current::i#4 = (byte) render_current::i#3 [phi:render_current::@2->render_current::@4#2] -- register_copy + //SEG179 [88] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#0 [phi:render_current::@2->render_current::@4#1] -- register_copy + //SEG180 [88] phi (byte) render_current::i#4 = (byte) render_current::i#3 [phi:render_current::@2->render_current::@4#2] -- register_copy jmp b4 - //SEG158 [78] phi from render_current::@5 to render_current::@4 [phi:render_current::@5->render_current::@4] + //SEG181 [88] phi from render_current::@5 to render_current::@4 [phi:render_current::@5->render_current::@4] b4_from_b5: - //SEG159 [78] phi (byte) render_current::c#2 = (byte) render_current::c#1 [phi:render_current::@5->render_current::@4#0] -- register_copy - //SEG160 [78] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#1 [phi:render_current::@5->render_current::@4#1] -- register_copy - //SEG161 [78] phi (byte) render_current::i#4 = (byte) render_current::i#10 [phi:render_current::@5->render_current::@4#2] -- register_copy + //SEG182 [88] phi (byte) render_current::c#2 = (byte) render_current::c#1 [phi:render_current::@5->render_current::@4#0] -- register_copy + //SEG183 [88] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#1 [phi:render_current::@5->render_current::@4#1] -- register_copy + //SEG184 [88] phi (byte) render_current::i#4 = (byte) render_current::i#10 [phi:render_current::@5->render_current::@4#2] -- register_copy jmp b4 - //SEG162 render_current::@4 + //SEG185 render_current::@4 b4: - //SEG163 [79] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) -- vbuz1=pbuz2_derefidx_vbuz3 + //SEG186 [89] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) -- vbuz1=pbuz2_derefidx_vbuz3 ldy i lda (current_piece_gfx_52),y sta current_cell - //SEG164 [80] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 -- vbuz1=_inc_vbuz1 + //SEG187 [90] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 -- vbuz1=_inc_vbuz1 inc i - //SEG165 [81] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 -- vbuz1_eq_0_then_la1 + //SEG188 [91] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 -- vbuz1_eq_0_then_la1 lda current_cell cmp #0 beq b5 jmp b9 - //SEG166 render_current::@9 + //SEG189 render_current::@9 b9: - //SEG167 [82] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 -- vbuz1_ge_vbuc1_then_la1 + //SEG190 [92] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 -- vbuz1_ge_vbuc1_then_la1 lda xpos cmp #PLAYFIELD_COLS bcs b5 jmp b10 - //SEG168 render_current::@10 + //SEG191 render_current::@10 b10: - //SEG169 [83] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 -- pbuz1_derefidx_vbuz2=vbuz3 + //SEG192 [93] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 -- pbuz1_derefidx_vbuz2=vbuz3 lda current_piece_char_62 ldy xpos sta (screen_line),y jmp b5 - //SEG170 render_current::@5 + //SEG193 render_current::@5 b5: - //SEG171 [84] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 -- vbuz1=_inc_vbuz1 + //SEG194 [94] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 -- vbuz1=_inc_vbuz1 inc xpos - //SEG172 [85] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 -- vbuz1=_inc_vbuz1 + //SEG195 [95] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 -- vbuz1=_inc_vbuz1 inc c - //SEG173 [86] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 -- vbuz1_neq_vbuc1_then_la1 + //SEG196 [96] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 -- vbuz1_neq_vbuc1_then_la1 lda c cmp #4 bne b4_from_b5 jmp b3_from_b5 } -//SEG174 render_playfield +//SEG197 render_playfield render_playfield: { - .label _2 = $69 - .label screen_line = $f - .label i = $e - .label c = $11 - .label l = $d - //SEG175 [88] phi from render_playfield to render_playfield::@1 [phi:render_playfield->render_playfield::@1] + .label _2 = $72 + .label _3 = $73 + .label screen_line = $13 + .label i = $12 + .label c = $15 + .label l = $11 + //SEG198 [98] phi from render_playfield to render_playfield::@1 [phi:render_playfield->render_playfield::@1] b1_from_render_playfield: - //SEG176 [88] phi (byte) render_playfield::i#3 = (const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#0] -- vbuz1=vbuc1 + //SEG199 [98] phi (byte) render_playfield::i#3 = (const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#0] -- vbuz1=vbuc1 lda #PLAYFIELD_COLS*2 sta i - //SEG177 [88] phi (byte) render_playfield::l#2 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#1] -- vbuz1=vbuc1 + //SEG200 [98] phi (byte) render_playfield::l#2 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#1] -- vbuz1=vbuc1 lda #2 sta l jmp b1 - //SEG178 [88] phi from render_playfield::@3 to render_playfield::@1 [phi:render_playfield::@3->render_playfield::@1] + //SEG201 [98] phi from render_playfield::@3 to render_playfield::@1 [phi:render_playfield::@3->render_playfield::@1] b1_from_b3: - //SEG179 [88] phi (byte) render_playfield::i#3 = (byte) render_playfield::i#1 [phi:render_playfield::@3->render_playfield::@1#0] -- register_copy - //SEG180 [88] phi (byte) render_playfield::l#2 = (byte) render_playfield::l#1 [phi:render_playfield::@3->render_playfield::@1#1] -- register_copy + //SEG202 [98] phi (byte) render_playfield::i#3 = (byte) render_playfield::i#1 [phi:render_playfield::@3->render_playfield::@1#0] -- register_copy + //SEG203 [98] phi (byte) render_playfield::l#2 = (byte) render_playfield::l#1 [phi:render_playfield::@3->render_playfield::@1#1] -- register_copy jmp b1 - //SEG181 render_playfield::@1 + //SEG204 render_playfield::@1 b1: - //SEG182 [89] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + //SEG205 [99] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 lda l asl sta _2 - //SEG183 [90] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) -- pbuz1=pptc1_derefidx_vbuz2 - ldy _2 - lda screen_lines,y + //SEG206 [100] (byte~) render_playfield::$3 ← (byte) render_screen_render#18 + (byte~) render_playfield::$2 -- vbuz1=vbuz2_plus_vbuz3 + lda render_screen_render_18 + clc + adc _2 + sta _3 + //SEG207 [101] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) -- pbuz1=pptc1_derefidx_vbuz2 + ldy _3 + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 - //SEG184 [91] phi from render_playfield::@1 to render_playfield::@2 [phi:render_playfield::@1->render_playfield::@2] + //SEG208 [102] phi from render_playfield::@1 to render_playfield::@2 [phi:render_playfield::@1->render_playfield::@2] b2_from_b1: - //SEG185 [91] phi (byte) render_playfield::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_playfield::@1->render_playfield::@2#0] -- vbuz1=vbuc1 + //SEG209 [102] phi (byte) render_playfield::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_playfield::@1->render_playfield::@2#0] -- vbuz1=vbuc1 lda #0 sta c - //SEG186 [91] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#0 [phi:render_playfield::@1->render_playfield::@2#1] -- register_copy - //SEG187 [91] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#3 [phi:render_playfield::@1->render_playfield::@2#2] -- register_copy + //SEG210 [102] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#0 [phi:render_playfield::@1->render_playfield::@2#1] -- register_copy + //SEG211 [102] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#3 [phi:render_playfield::@1->render_playfield::@2#2] -- register_copy jmp b2 - //SEG188 [91] phi from render_playfield::@2 to render_playfield::@2 [phi:render_playfield::@2->render_playfield::@2] + //SEG212 [102] phi from render_playfield::@2 to render_playfield::@2 [phi:render_playfield::@2->render_playfield::@2] b2_from_b2: - //SEG189 [91] phi (byte) render_playfield::c#2 = (byte) render_playfield::c#1 [phi:render_playfield::@2->render_playfield::@2#0] -- register_copy - //SEG190 [91] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#1 [phi:render_playfield::@2->render_playfield::@2#1] -- register_copy - //SEG191 [91] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#1 [phi:render_playfield::@2->render_playfield::@2#2] -- register_copy + //SEG213 [102] phi (byte) render_playfield::c#2 = (byte) render_playfield::c#1 [phi:render_playfield::@2->render_playfield::@2#0] -- register_copy + //SEG214 [102] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#1 [phi:render_playfield::@2->render_playfield::@2#1] -- register_copy + //SEG215 [102] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#1 [phi:render_playfield::@2->render_playfield::@2#2] -- register_copy jmp b2 - //SEG192 render_playfield::@2 + //SEG216 render_playfield::@2 b2: - //SEG193 [92] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) -- _deref_pbuz1=pbuc1_derefidx_vbuz2 + //SEG217 [103] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) -- _deref_pbuz1=pbuc1_derefidx_vbuz2 ldy i lda playfield,y ldy #0 sta (screen_line),y - //SEG194 [93] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 -- pbuz1=_inc_pbuz1 + //SEG218 [104] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 -- pbuz1=_inc_pbuz1 inc screen_line bne !+ inc screen_line+1 !: - //SEG195 [94] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 -- vbuz1=_inc_vbuz1 + //SEG219 [105] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 -- vbuz1=_inc_vbuz1 inc i - //SEG196 [95] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 -- vbuz1=_inc_vbuz1 + //SEG220 [106] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 -- vbuz1=_inc_vbuz1 inc c - //SEG197 [96] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 -- vbuz1_neq_vbuc1_then_la1 + //SEG221 [107] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 -- vbuz1_neq_vbuc1_then_la1 lda c cmp #PLAYFIELD_COLS-1+1 bne b2_from_b2 jmp b3 - //SEG198 render_playfield::@3 + //SEG222 render_playfield::@3 b3: - //SEG199 [97] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 -- vbuz1=_inc_vbuz1 + //SEG223 [108] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 -- vbuz1=_inc_vbuz1 inc l - //SEG200 [98] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG224 [109] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #PLAYFIELD_LINES-1+1 bne b1_from_b3 jmp breturn - //SEG201 render_playfield::@return + //SEG225 render_playfield::@return breturn: - //SEG202 [99] return + //SEG226 [110] return rts } -//SEG203 play_move_rotate +//SEG227 play_move_rotate play_move_rotate: { - .label _2 = $6a - .label _4 = $6d - .label _6 = $6c - .label orientation = $13 - .label return = $12 - .label key_event = $62 - .label return_4 = $63 - //SEG204 [100] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 -- vbuz1_eq_vbuc1_then_la1 + .label _2 = $74 + .label _4 = $77 + .label _6 = $76 + .label orientation = $17 + .label return = $16 + .label key_event = $6a + .label return_4 = $6b + //SEG228 [111] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 -- vbuz1_eq_vbuc1_then_la1 lda key_event cmp #KEY_Z beq b1 jmp b6 - //SEG205 play_move_rotate::@6 + //SEG229 play_move_rotate::@6 b6: - //SEG206 [101] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG230 [112] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 -- vbuz1_eq_vbuc1_then_la1 lda key_event cmp #KEY_X beq b2 - //SEG207 [102] phi from play_move_rotate::@14 play_move_rotate::@6 to play_move_rotate::@return [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return] + //SEG231 [113] phi from play_move_rotate::@14 play_move_rotate::@6 to play_move_rotate::@return [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return] breturn_from_b14: breturn_from_b6: - //SEG208 [102] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#1 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#0] -- register_copy - //SEG209 [102] phi (byte) current_orientation#19 = (byte) current_orientation#14 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#1] -- register_copy - //SEG210 [102] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#2] -- vbuz1=vbuc1 + //SEG232 [113] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#1 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#0] -- register_copy + //SEG233 [113] phi (byte) current_orientation#19 = (byte) current_orientation#14 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#1] -- register_copy + //SEG234 [113] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#2] -- vbuz1=vbuc1 lda #0 sta return jmp breturn - //SEG211 play_move_rotate::@return + //SEG235 play_move_rotate::@return breturn: - //SEG212 [103] return + //SEG236 [114] return rts - //SEG213 play_move_rotate::@2 + //SEG237 play_move_rotate::@2 b2: - //SEG214 [104] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuz1=vbuz2_plus_vbuc1 + //SEG238 [115] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuz1=vbuz2_plus_vbuc1 lda #$10 clc adc current_orientation sta _2 - //SEG215 [105] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuz2_band_vbuc1 + //SEG239 [116] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuz2_band_vbuc1 lda #$3f and _2 sta orientation - //SEG216 [106] phi from play_move_rotate::@1 play_move_rotate::@2 to play_move_rotate::@4 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4] + //SEG240 [117] phi from play_move_rotate::@1 play_move_rotate::@2 to play_move_rotate::@4 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4] b4_from_b1: b4_from_b2: - //SEG217 [106] phi (byte) play_move_rotate::orientation#3 = (byte) play_move_rotate::orientation#1 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4#0] -- register_copy + //SEG241 [117] phi (byte) play_move_rotate::orientation#3 = (byte) play_move_rotate::orientation#1 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4#0] -- register_copy jmp b4 - //SEG218 play_move_rotate::@4 + //SEG242 play_move_rotate::@4 b4: - //SEG219 [107] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 -- vbuz1=vbuz2 + //SEG243 [118] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 -- vbuz1=vbuz2 lda current_xpos sta play_collision.xpos - //SEG220 [108] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 -- vbuz1=vbuz2 + //SEG244 [119] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 -- vbuz1=vbuz2 lda current_ypos sta play_collision.ypos - //SEG221 [109] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 + //SEG245 [120] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 lda orientation sta play_collision.orientation - //SEG222 [110] (byte*~) current_piece#76 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG246 [121] (byte*~) current_piece#76 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_76 lda current_piece+1 sta current_piece_76+1 - //SEG223 [111] call play_collision - //SEG224 [119] phi from play_move_rotate::@4 to play_collision [phi:play_move_rotate::@4->play_collision] + //SEG247 [122] call play_collision + //SEG248 [130] phi from play_move_rotate::@4 to play_collision [phi:play_move_rotate::@4->play_collision] play_collision_from_b4: - //SEG225 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#3 [phi:play_move_rotate::@4->play_collision#0] -- register_copy - //SEG226 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#3 [phi:play_move_rotate::@4->play_collision#1] -- register_copy - //SEG227 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#3 [phi:play_move_rotate::@4->play_collision#2] -- register_copy - //SEG228 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#76 [phi:play_move_rotate::@4->play_collision#3] -- register_copy + //SEG249 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#3 [phi:play_move_rotate::@4->play_collision#0] -- register_copy + //SEG250 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#3 [phi:play_move_rotate::@4->play_collision#1] -- register_copy + //SEG251 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#3 [phi:play_move_rotate::@4->play_collision#2] -- register_copy + //SEG252 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#76 [phi:play_move_rotate::@4->play_collision#3] -- register_copy jsr play_collision - //SEG229 [112] (byte) play_collision::return#13 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 + //SEG253 [123] (byte) play_collision::return#13 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 lda play_collision.return_14 sta play_collision.return_13 jmp b14 - //SEG230 play_move_rotate::@14 + //SEG254 play_move_rotate::@14 b14: - //SEG231 [113] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 -- vbuz1=vbuz2 + //SEG255 [124] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 -- vbuz1=vbuz2 lda play_collision.return_13 sta _6 - //SEG232 [114] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return -- vbuz1_neq_vbuc1_then_la1 + //SEG256 [125] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return -- vbuz1_neq_vbuc1_then_la1 lda _6 cmp #COLLISION_NONE bne breturn_from_b14 jmp b11 - //SEG233 play_move_rotate::@11 + //SEG257 play_move_rotate::@11 b11: - //SEG234 [115] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 + //SEG258 [126] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 lda orientation sta current_orientation - //SEG235 [116] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 -- pbuz1=pbuz2_plus_vbuz3 + //SEG259 [127] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 -- pbuz1=pbuz2_plus_vbuz3 lda current_orientation clc adc current_piece @@ -9245,50 +9900,50 @@ play_move_rotate: { lda #0 adc current_piece+1 sta current_piece_gfx+1 - //SEG236 [102] phi from play_move_rotate::@11 to play_move_rotate::@return [phi:play_move_rotate::@11->play_move_rotate::@return] + //SEG260 [113] phi from play_move_rotate::@11 to play_move_rotate::@return [phi:play_move_rotate::@11->play_move_rotate::@return] breturn_from_b11: - //SEG237 [102] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#3 [phi:play_move_rotate::@11->play_move_rotate::@return#0] -- register_copy - //SEG238 [102] phi (byte) current_orientation#19 = (byte) current_orientation#4 [phi:play_move_rotate::@11->play_move_rotate::@return#1] -- register_copy - //SEG239 [102] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_rotate::@11->play_move_rotate::@return#2] -- vbuz1=vbuc1 + //SEG261 [113] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#3 [phi:play_move_rotate::@11->play_move_rotate::@return#0] -- register_copy + //SEG262 [113] phi (byte) current_orientation#19 = (byte) current_orientation#4 [phi:play_move_rotate::@11->play_move_rotate::@return#1] -- register_copy + //SEG263 [113] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_rotate::@11->play_move_rotate::@return#2] -- vbuz1=vbuc1 lda #1 sta return jmp breturn - //SEG240 play_move_rotate::@1 + //SEG264 play_move_rotate::@1 b1: - //SEG241 [117] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuz1=vbuz2_minus_vbuc1 + //SEG265 [128] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuz1=vbuz2_minus_vbuc1 lda current_orientation sec sbc #$10 sta _4 - //SEG242 [118] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuz2_band_vbuc1 + //SEG266 [129] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuz2_band_vbuc1 lda #$3f and _4 sta orientation jmp b4_from_b1 } -//SEG243 play_collision +//SEG267 play_collision play_collision: { - .label _7 = $73 - .label xpos = $18 - .label ypos = $17 - .label orientation = $16 - .label return = $7a - .label return_1 = $76 - .label piece_gfx = $6e - .label ypos2 = $19 - .label playfield_line = $70 - .label i = $72 - .label col = $1c - .label c = $1d - .label l = $1a - .label return_12 = $74 - .label return_13 = $6b - .label i_2 = $1b - .label return_14 = $1e - .label i_3 = $1b - .label i_11 = $1b - .label i_13 = $1b - //SEG244 [120] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 -- pbuz1=pbuz2_plus_vbuz3 + .label _7 = $7d + .label xpos = $1c + .label ypos = $1b + .label orientation = $1a + .label return = $84 + .label return_1 = $80 + .label piece_gfx = $78 + .label ypos2 = $1d + .label playfield_line = $7a + .label i = $7c + .label col = $20 + .label c = $21 + .label l = $1e + .label return_12 = $7e + .label return_13 = $75 + .label i_2 = $1f + .label return_14 = $22 + .label i_3 = $1f + .label i_11 = $1f + .label i_13 = $1f + //SEG268 [131] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 -- pbuz1=pbuz2_plus_vbuz3 lda orientation clc adc current_piece_12 @@ -9296,1300 +9951,1342 @@ play_collision: { lda #0 adc current_piece_12+1 sta piece_gfx+1 - //SEG245 [121] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + //SEG269 [132] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 lda ypos asl sta ypos2 - //SEG246 [122] phi from play_collision to play_collision::@1 [phi:play_collision->play_collision::@1] + //SEG270 [133] phi from play_collision to play_collision::@1 [phi:play_collision->play_collision::@1] b1_from_play_collision: - //SEG247 [122] phi (byte) play_collision::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#0] -- vbuz1=vbuc1 + //SEG271 [133] phi (byte) play_collision::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG248 [122] phi (byte) play_collision::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#1] -- vbuz1=vbuc1 + //SEG272 [133] phi (byte) play_collision::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#1] -- vbuz1=vbuc1 lda #0 sta i_3 - //SEG249 [122] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#0 [phi:play_collision->play_collision::@1#2] -- register_copy + //SEG273 [133] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#0 [phi:play_collision->play_collision::@1#2] -- register_copy jmp b1 - //SEG250 play_collision::@1 + //SEG274 play_collision::@1 b1: - //SEG251 [123] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG275 [134] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 ldy ypos2 lda playfield_lines,y sta playfield_line lda playfield_lines+1,y sta playfield_line+1 - //SEG252 [124] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 -- vbuz1=vbuz2 + //SEG276 [135] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 -- vbuz1=vbuz2 lda xpos sta col - //SEG253 [125] phi from play_collision::@1 to play_collision::@2 [phi:play_collision::@1->play_collision::@2] + //SEG277 [136] phi from play_collision::@1 to play_collision::@2 [phi:play_collision::@1->play_collision::@2] b2_from_b1: - //SEG254 [125] phi (byte) play_collision::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision::@1->play_collision::@2#0] -- vbuz1=vbuc1 + //SEG278 [136] phi (byte) play_collision::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision::@1->play_collision::@2#0] -- vbuz1=vbuc1 lda #0 sta c - //SEG255 [125] phi (byte) play_collision::col#2 = (byte~) play_collision::col#9 [phi:play_collision::@1->play_collision::@2#1] -- register_copy - //SEG256 [125] phi (byte) play_collision::i#2 = (byte) play_collision::i#3 [phi:play_collision::@1->play_collision::@2#2] -- register_copy + //SEG279 [136] phi (byte) play_collision::col#2 = (byte~) play_collision::col#9 [phi:play_collision::@1->play_collision::@2#1] -- register_copy + //SEG280 [136] phi (byte) play_collision::i#2 = (byte) play_collision::i#3 [phi:play_collision::@1->play_collision::@2#2] -- register_copy jmp b2 - //SEG257 play_collision::@2 + //SEG281 play_collision::@2 b2: - //SEG258 [126] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 -- vbuz1=_inc_vbuz2 + //SEG282 [137] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 -- vbuz1=_inc_vbuz2 ldy i_2 iny sty i - //SEG259 [127] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG283 [138] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy i_2 lda (piece_gfx),y cmp #0 beq b3 jmp b8 - //SEG260 play_collision::@8 + //SEG284 play_collision::@8 b8: - //SEG261 [128] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 -- vbuz1_lt_vbuc1_then_la1 + //SEG285 [139] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 -- vbuz1_lt_vbuc1_then_la1 lda ypos2 cmp #2*PLAYFIELD_LINES bcc b4 - //SEG262 [129] phi from play_collision::@8 to play_collision::@return [phi:play_collision::@8->play_collision::@return] + //SEG286 [140] phi from play_collision::@8 to play_collision::@return [phi:play_collision::@8->play_collision::@return] breturn_from_b8: - //SEG263 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_BOTTOM#0 [phi:play_collision::@8->play_collision::@return#0] -- vbuz1=vbuc1 + //SEG287 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_BOTTOM#0 [phi:play_collision::@8->play_collision::@return#0] -- vbuz1=vbuc1 lda #COLLISION_BOTTOM sta return_14 jmp breturn - //SEG264 play_collision::@return + //SEG288 play_collision::@return breturn: - //SEG265 [130] return + //SEG289 [141] return rts - //SEG266 play_collision::@4 + //SEG290 play_collision::@4 b4: - //SEG267 [131] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 -- vbuz1=vbuz2_band_vbuc1 + //SEG291 [142] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 -- vbuz1=vbuz2_band_vbuc1 lda #$80 and col sta _7 - //SEG268 [132] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 -- vbuz1_eq_0_then_la1 + //SEG292 [143] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 -- vbuz1_eq_0_then_la1 lda _7 cmp #0 beq b5 - //SEG269 [129] phi from play_collision::@4 to play_collision::@return [phi:play_collision::@4->play_collision::@return] + //SEG293 [140] phi from play_collision::@4 to play_collision::@return [phi:play_collision::@4->play_collision::@return] breturn_from_b4: - //SEG270 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_LEFT#0 [phi:play_collision::@4->play_collision::@return#0] -- vbuz1=vbuc1 + //SEG294 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_LEFT#0 [phi:play_collision::@4->play_collision::@return#0] -- vbuz1=vbuc1 lda #COLLISION_LEFT sta return_14 jmp breturn - //SEG271 play_collision::@5 + //SEG295 play_collision::@5 b5: - //SEG272 [133] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 -- vbuz1_lt_vbuc1_then_la1 + //SEG296 [144] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 -- vbuz1_lt_vbuc1_then_la1 lda col cmp #PLAYFIELD_COLS bcc b6 - //SEG273 [129] phi from play_collision::@5 to play_collision::@return [phi:play_collision::@5->play_collision::@return] + //SEG297 [140] phi from play_collision::@5 to play_collision::@return [phi:play_collision::@5->play_collision::@return] breturn_from_b5: - //SEG274 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_RIGHT#0 [phi:play_collision::@5->play_collision::@return#0] -- vbuz1=vbuc1 + //SEG298 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_RIGHT#0 [phi:play_collision::@5->play_collision::@return#0] -- vbuz1=vbuc1 lda #COLLISION_RIGHT sta return_14 jmp breturn - //SEG275 play_collision::@6 + //SEG299 play_collision::@6 b6: - //SEG276 [134] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG300 [145] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy col lda (playfield_line),y cmp #0 beq b3 - //SEG277 [129] phi from play_collision::@6 to play_collision::@return [phi:play_collision::@6->play_collision::@return] + //SEG301 [140] phi from play_collision::@6 to play_collision::@return [phi:play_collision::@6->play_collision::@return] breturn_from_b6: - //SEG278 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_PLAYFIELD#0 [phi:play_collision::@6->play_collision::@return#0] -- vbuz1=vbuc1 + //SEG302 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_PLAYFIELD#0 [phi:play_collision::@6->play_collision::@return#0] -- vbuz1=vbuc1 lda #COLLISION_PLAYFIELD sta return_14 jmp breturn - //SEG279 play_collision::@3 + //SEG303 play_collision::@3 b3: - //SEG280 [135] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 -- vbuz1=_inc_vbuz1 + //SEG304 [146] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 -- vbuz1=_inc_vbuz1 inc col - //SEG281 [136] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 -- vbuz1=_inc_vbuz1 + //SEG305 [147] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 -- vbuz1=_inc_vbuz1 inc c - //SEG282 [137] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 -- vbuz1_neq_vbuc1_then_la1 + //SEG306 [148] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 -- vbuz1_neq_vbuc1_then_la1 lda c cmp #4 bne b21 jmp b17 - //SEG283 play_collision::@17 + //SEG307 play_collision::@17 b17: - //SEG284 [138] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG308 [149] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG285 [139] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 -- vbuz1=_inc_vbuz1 + //SEG309 [150] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 -- vbuz1=_inc_vbuz1 inc l - //SEG286 [140] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 -- vbuz1_neq_vbuc1_then_la1 + //SEG310 [151] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b20 - //SEG287 [129] phi from play_collision::@17 to play_collision::@return [phi:play_collision::@17->play_collision::@return] + //SEG311 [140] phi from play_collision::@17 to play_collision::@return [phi:play_collision::@17->play_collision::@return] breturn_from_b17: - //SEG288 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_NONE#0 [phi:play_collision::@17->play_collision::@return#0] -- vbuz1=vbuc1 + //SEG312 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_NONE#0 [phi:play_collision::@17->play_collision::@return#0] -- vbuz1=vbuc1 lda #COLLISION_NONE sta return_14 jmp breturn - //SEG289 play_collision::@20 + //SEG313 play_collision::@20 b20: - //SEG290 [141] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 + //SEG314 [152] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 lda i sta i_11 - //SEG291 [122] phi from play_collision::@20 to play_collision::@1 [phi:play_collision::@20->play_collision::@1] + //SEG315 [133] phi from play_collision::@20 to play_collision::@1 [phi:play_collision::@20->play_collision::@1] b1_from_b20: - //SEG292 [122] phi (byte) play_collision::l#6 = (byte) play_collision::l#1 [phi:play_collision::@20->play_collision::@1#0] -- register_copy - //SEG293 [122] phi (byte) play_collision::i#3 = (byte~) play_collision::i#11 [phi:play_collision::@20->play_collision::@1#1] -- register_copy - //SEG294 [122] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#1 [phi:play_collision::@20->play_collision::@1#2] -- register_copy + //SEG316 [133] phi (byte) play_collision::l#6 = (byte) play_collision::l#1 [phi:play_collision::@20->play_collision::@1#0] -- register_copy + //SEG317 [133] phi (byte) play_collision::i#3 = (byte~) play_collision::i#11 [phi:play_collision::@20->play_collision::@1#1] -- register_copy + //SEG318 [133] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#1 [phi:play_collision::@20->play_collision::@1#2] -- register_copy jmp b1 - //SEG295 play_collision::@21 + //SEG319 play_collision::@21 b21: - //SEG296 [142] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 + //SEG320 [153] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 lda i sta i_13 - //SEG297 [125] phi from play_collision::@21 to play_collision::@2 [phi:play_collision::@21->play_collision::@2] + //SEG321 [136] phi from play_collision::@21 to play_collision::@2 [phi:play_collision::@21->play_collision::@2] b2_from_b21: - //SEG298 [125] phi (byte) play_collision::c#2 = (byte) play_collision::c#1 [phi:play_collision::@21->play_collision::@2#0] -- register_copy - //SEG299 [125] phi (byte) play_collision::col#2 = (byte) play_collision::col#1 [phi:play_collision::@21->play_collision::@2#1] -- register_copy - //SEG300 [125] phi (byte) play_collision::i#2 = (byte~) play_collision::i#13 [phi:play_collision::@21->play_collision::@2#2] -- register_copy + //SEG322 [136] phi (byte) play_collision::c#2 = (byte) play_collision::c#1 [phi:play_collision::@21->play_collision::@2#0] -- register_copy + //SEG323 [136] phi (byte) play_collision::col#2 = (byte) play_collision::col#1 [phi:play_collision::@21->play_collision::@2#1] -- register_copy + //SEG324 [136] phi (byte) play_collision::i#2 = (byte~) play_collision::i#13 [phi:play_collision::@21->play_collision::@2#2] -- register_copy jmp b2 } -//SEG301 play_move_leftright +//SEG325 play_move_leftright play_move_leftright: { - .label _4 = $75 - .label _8 = $77 - .label return = $1f - .label key_event = $5e - .label return_4 = $5f - //SEG302 [143] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 -- vbuz1_eq_vbuc1_then_la1 + .label _4 = $7f + .label _8 = $81 + .label return = $23 + .label key_event = $66 + .label return_4 = $67 + //SEG326 [154] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 -- vbuz1_eq_vbuc1_then_la1 lda key_event cmp #KEY_COMMA beq b1 jmp b6 - //SEG303 play_move_leftright::@6 + //SEG327 play_move_leftright::@6 b6: - //SEG304 [144] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return -- vbuz1_neq_vbuc1_then_la1 + //SEG328 [155] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return -- vbuz1_neq_vbuc1_then_la1 lda key_event cmp #KEY_DOT bne breturn_from_b6 jmp b7 - //SEG305 play_move_leftright::@7 + //SEG329 play_move_leftright::@7 b7: - //SEG306 [145] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 + //SEG330 [156] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 ldy current_xpos iny sty play_collision.xpos - //SEG307 [146] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 -- vbuz1=vbuz2 + //SEG331 [157] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 -- vbuz1=vbuz2 lda current_ypos sta play_collision.ypos - //SEG308 [147] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 -- vbuz1=vbuz2 + //SEG332 [158] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 -- vbuz1=vbuz2 lda current_orientation sta play_collision.orientation - //SEG309 [148] (byte*~) current_piece#75 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG333 [159] (byte*~) current_piece#75 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_75 lda current_piece+1 sta current_piece_75+1 - //SEG310 [149] call play_collision - //SEG311 [119] phi from play_move_leftright::@7 to play_collision [phi:play_move_leftright::@7->play_collision] + //SEG334 [160] call play_collision + //SEG335 [130] phi from play_move_leftright::@7 to play_collision [phi:play_move_leftright::@7->play_collision] play_collision_from_b7: - //SEG312 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#2 [phi:play_move_leftright::@7->play_collision#0] -- register_copy - //SEG313 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#2 [phi:play_move_leftright::@7->play_collision#1] -- register_copy - //SEG314 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#2 [phi:play_move_leftright::@7->play_collision#2] -- register_copy - //SEG315 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#75 [phi:play_move_leftright::@7->play_collision#3] -- register_copy + //SEG336 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#2 [phi:play_move_leftright::@7->play_collision#0] -- register_copy + //SEG337 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#2 [phi:play_move_leftright::@7->play_collision#1] -- register_copy + //SEG338 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#2 [phi:play_move_leftright::@7->play_collision#2] -- register_copy + //SEG339 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#75 [phi:play_move_leftright::@7->play_collision#3] -- register_copy jsr play_collision - //SEG316 [150] (byte) play_collision::return#12 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 + //SEG340 [161] (byte) play_collision::return#12 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 lda play_collision.return_14 sta play_collision.return_12 jmp b15 - //SEG317 play_move_leftright::@15 + //SEG341 play_move_leftright::@15 b15: - //SEG318 [151] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 -- vbuz1=vbuz2 + //SEG342 [162] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 -- vbuz1=vbuz2 lda play_collision.return_12 sta _4 - //SEG319 [152] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuz1_neq_vbuc1_then_la1 + //SEG343 [163] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuz1_neq_vbuc1_then_la1 lda _4 cmp #COLLISION_NONE bne breturn_from_b15 jmp b8 - //SEG320 play_move_leftright::@8 + //SEG344 play_move_leftright::@8 b8: - //SEG321 [153] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 -- vbuz1=_inc_vbuz1 + //SEG345 [164] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 -- vbuz1=_inc_vbuz1 inc current_xpos - //SEG322 [154] phi from play_move_leftright::@11 play_move_leftright::@8 to play_move_leftright::@return [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return] + //SEG346 [165] phi from play_move_leftright::@11 play_move_leftright::@8 to play_move_leftright::@return [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return] breturn_from_b11: breturn_from_b8: - //SEG323 [154] phi (byte) current_xpos#19 = (byte) current_xpos#4 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#0] -- register_copy - //SEG324 [154] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#1] -- vbuz1=vbuc1 + //SEG347 [165] phi (byte) current_xpos#19 = (byte) current_xpos#4 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#0] -- register_copy + //SEG348 [165] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#1] -- vbuz1=vbuc1 lda #1 sta return jmp breturn - //SEG325 [154] phi from play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 to play_move_leftright::@return [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return] + //SEG349 [165] phi from play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 to play_move_leftright::@return [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return] breturn_from_b14: breturn_from_b15: breturn_from_b6: - //SEG326 [154] phi (byte) current_xpos#19 = (byte) current_xpos#1 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#0] -- register_copy - //SEG327 [154] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#1] -- vbuz1=vbuc1 + //SEG350 [165] phi (byte) current_xpos#19 = (byte) current_xpos#1 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#0] -- register_copy + //SEG351 [165] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#1] -- vbuz1=vbuc1 lda #0 sta return jmp breturn - //SEG328 play_move_leftright::@return + //SEG352 play_move_leftright::@return breturn: - //SEG329 [155] return + //SEG353 [166] return rts - //SEG330 play_move_leftright::@1 + //SEG354 play_move_leftright::@1 b1: - //SEG331 [156] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_minus_1 + //SEG355 [167] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_minus_1 ldx current_xpos dex stx play_collision.xpos - //SEG332 [157] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 -- vbuz1=vbuz2 + //SEG356 [168] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 -- vbuz1=vbuz2 lda current_ypos sta play_collision.ypos - //SEG333 [158] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 -- vbuz1=vbuz2 + //SEG357 [169] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 -- vbuz1=vbuz2 lda current_orientation sta play_collision.orientation - //SEG334 [159] (byte*~) current_piece#74 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG358 [170] (byte*~) current_piece#74 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_74 lda current_piece+1 sta current_piece_74+1 - //SEG335 [160] call play_collision - //SEG336 [119] phi from play_move_leftright::@1 to play_collision [phi:play_move_leftright::@1->play_collision] + //SEG359 [171] call play_collision + //SEG360 [130] phi from play_move_leftright::@1 to play_collision [phi:play_move_leftright::@1->play_collision] play_collision_from_b1: - //SEG337 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#1 [phi:play_move_leftright::@1->play_collision#0] -- register_copy - //SEG338 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#1 [phi:play_move_leftright::@1->play_collision#1] -- register_copy - //SEG339 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#1 [phi:play_move_leftright::@1->play_collision#2] -- register_copy - //SEG340 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#74 [phi:play_move_leftright::@1->play_collision#3] -- register_copy + //SEG361 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#1 [phi:play_move_leftright::@1->play_collision#0] -- register_copy + //SEG362 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#1 [phi:play_move_leftright::@1->play_collision#1] -- register_copy + //SEG363 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#1 [phi:play_move_leftright::@1->play_collision#2] -- register_copy + //SEG364 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#74 [phi:play_move_leftright::@1->play_collision#3] -- register_copy jsr play_collision - //SEG341 [161] (byte) play_collision::return#1 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 + //SEG365 [172] (byte) play_collision::return#1 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 lda play_collision.return_14 sta play_collision.return_1 jmp b14 - //SEG342 play_move_leftright::@14 + //SEG366 play_move_leftright::@14 b14: - //SEG343 [162] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 -- vbuz1=vbuz2 + //SEG367 [173] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 -- vbuz1=vbuz2 lda play_collision.return_1 sta _8 - //SEG344 [163] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuz1_neq_vbuc1_then_la1 + //SEG368 [174] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuz1_neq_vbuc1_then_la1 lda _8 cmp #COLLISION_NONE bne breturn_from_b14 jmp b11 - //SEG345 play_move_leftright::@11 + //SEG369 play_move_leftright::@11 b11: - //SEG346 [164] (byte) current_xpos#4 ← -- (byte) current_xpos#1 -- vbuz1=_dec_vbuz1 + //SEG370 [175] (byte) current_xpos#4 ← -- (byte) current_xpos#1 -- vbuz1=_dec_vbuz1 dec current_xpos jmp breturn_from_b11 } -//SEG347 play_move_down +//SEG371 play_move_down play_move_down: { - .label _2 = $79 - .label _12 = $7b - .label movedown = $20 - .label return = $29 - .label key_event = $5a - .label return_3 = $5b - //SEG348 [165] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 -- vbuz1=_inc_vbuz1 + .label _2 = $83 + .label _12 = $85 + .label movedown = $24 + .label return = $2d + .label key_event = $62 + .label return_3 = $63 + //SEG372 [176] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 -- vbuz1=_inc_vbuz1 inc current_movedown_counter - //SEG349 [166] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG373 [177] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 -- vbuz1_neq_vbuc1_then_la1 lda key_event cmp #KEY_SPACE bne b1_from_play_move_down - //SEG350 [167] phi from play_move_down to play_move_down::@8 [phi:play_move_down->play_move_down::@8] + //SEG374 [178] phi from play_move_down to play_move_down::@8 [phi:play_move_down->play_move_down::@8] b8_from_play_move_down: jmp b8 - //SEG351 play_move_down::@8 + //SEG375 play_move_down::@8 b8: - //SEG352 [168] phi from play_move_down::@8 to play_move_down::@1 [phi:play_move_down::@8->play_move_down::@1] + //SEG376 [179] phi from play_move_down::@8 to play_move_down::@1 [phi:play_move_down::@8->play_move_down::@1] b1_from_b8: - //SEG353 [168] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@8->play_move_down::@1#0] -- vbuz1=vbuc1 + //SEG377 [179] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@8->play_move_down::@1#0] -- vbuz1=vbuc1 lda #1 sta movedown jmp b1 - //SEG354 [168] phi from play_move_down to play_move_down::@1 [phi:play_move_down->play_move_down::@1] + //SEG378 [179] phi from play_move_down to play_move_down::@1 [phi:play_move_down->play_move_down::@1] b1_from_play_move_down: - //SEG355 [168] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down->play_move_down::@1#0] -- vbuz1=vbuc1 + //SEG379 [179] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down->play_move_down::@1#0] -- vbuz1=vbuc1 lda #0 sta movedown jmp b1 - //SEG356 play_move_down::@1 + //SEG380 play_move_down::@1 b1: - //SEG357 [169] call keyboard_event_pressed - //SEG358 [254] phi from play_move_down::@1 to keyboard_event_pressed [phi:play_move_down::@1->keyboard_event_pressed] + //SEG381 [180] call keyboard_event_pressed + //SEG382 [265] phi from play_move_down::@1 to keyboard_event_pressed [phi:play_move_down::@1->keyboard_event_pressed] keyboard_event_pressed_from_b1: - //SEG359 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_SPACE#0 [phi:play_move_down::@1->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG383 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_SPACE#0 [phi:play_move_down::@1->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_SPACE sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG360 [170] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 + //SEG384 [181] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_11 sta keyboard_event_pressed.return_12 jmp b17 - //SEG361 play_move_down::@17 + //SEG385 play_move_down::@17 b17: - //SEG362 [171] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 -- vbuz1=vbuz2 + //SEG386 [182] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_12 sta _2 - //SEG363 [172] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 -- vbuz1_eq_0_then_la1 + //SEG387 [183] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 -- vbuz1_eq_0_then_la1 lda _2 cmp #0 beq b2_from_b17 jmp b9 - //SEG364 play_move_down::@9 + //SEG388 play_move_down::@9 b9: - //SEG365 [173] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 -- vbuz1_lt_vbuc1_then_la1 + //SEG389 [184] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 -- vbuz1_lt_vbuc1_then_la1 lda current_movedown_counter cmp #current_movedown_fast bcc b2_from_b9 jmp b10 - //SEG366 play_move_down::@10 + //SEG390 play_move_down::@10 b10: - //SEG367 [174] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 -- vbuz1=_inc_vbuz1 + //SEG391 [185] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 -- vbuz1=_inc_vbuz1 inc movedown - //SEG368 [175] phi from play_move_down::@10 play_move_down::@17 play_move_down::@9 to play_move_down::@2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2] + //SEG392 [186] phi from play_move_down::@10 play_move_down::@17 play_move_down::@9 to play_move_down::@2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2] b2_from_b10: b2_from_b17: b2_from_b9: - //SEG369 [175] phi (byte) play_move_down::movedown#7 = (byte) play_move_down::movedown#2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2#0] -- register_copy + //SEG393 [186] phi (byte) play_move_down::movedown#7 = (byte) play_move_down::movedown#2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2#0] -- register_copy jmp b2 - //SEG370 play_move_down::@2 + //SEG394 play_move_down::@2 b2: - //SEG371 [176] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 -- vbuz1_lt_vbuc1_then_la1 + //SEG395 [187] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 -- vbuz1_lt_vbuc1_then_la1 lda current_movedown_counter cmp #current_movedown_slow bcc b4_from_b2 jmp b11 - //SEG372 play_move_down::@11 + //SEG396 play_move_down::@11 b11: - //SEG373 [177] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 -- vbuz1=_inc_vbuz1 + //SEG397 [188] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 -- vbuz1=_inc_vbuz1 inc movedown - //SEG374 [178] phi from play_move_down::@11 play_move_down::@2 to play_move_down::@4 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4] + //SEG398 [189] phi from play_move_down::@11 play_move_down::@2 to play_move_down::@4 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4] b4_from_b11: b4_from_b2: - //SEG375 [178] phi (byte) play_move_down::movedown#6 = (byte) play_move_down::movedown#3 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4#0] -- register_copy + //SEG399 [189] phi (byte) play_move_down::movedown#6 = (byte) play_move_down::movedown#3 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4#0] -- register_copy jmp b4 - //SEG376 play_move_down::@4 + //SEG400 play_move_down::@4 b4: - //SEG377 [179] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return -- vbuz1_eq_0_then_la1 + //SEG401 [190] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return -- vbuz1_eq_0_then_la1 lda movedown cmp #0 beq breturn_from_b4 jmp b12 - //SEG378 play_move_down::@12 + //SEG402 play_move_down::@12 b12: - //SEG379 [180] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 + //SEG403 [191] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 ldy current_ypos iny sty play_collision.ypos - //SEG380 [181] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 + //SEG404 [192] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 lda current_xpos sta play_collision.xpos - //SEG381 [182] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 -- vbuz1=vbuz2 + //SEG405 [193] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 -- vbuz1=vbuz2 lda current_orientation sta play_collision.orientation - //SEG382 [183] (byte*~) current_piece#73 ← (byte*) current_piece#16 -- pbuz1=pbuz2 + //SEG406 [194] (byte*~) current_piece#73 ← (byte*) current_piece#16 -- pbuz1=pbuz2 lda current_piece sta current_piece_73 lda current_piece+1 sta current_piece_73+1 - //SEG383 [184] call play_collision - //SEG384 [119] phi from play_move_down::@12 to play_collision [phi:play_move_down::@12->play_collision] + //SEG407 [195] call play_collision + //SEG408 [130] phi from play_move_down::@12 to play_collision [phi:play_move_down::@12->play_collision] play_collision_from_b12: - //SEG385 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#0 [phi:play_move_down::@12->play_collision#0] -- register_copy - //SEG386 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#0 [phi:play_move_down::@12->play_collision#1] -- register_copy - //SEG387 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#0 [phi:play_move_down::@12->play_collision#2] -- register_copy - //SEG388 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#73 [phi:play_move_down::@12->play_collision#3] -- register_copy + //SEG409 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#0 [phi:play_move_down::@12->play_collision#0] -- register_copy + //SEG410 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#0 [phi:play_move_down::@12->play_collision#1] -- register_copy + //SEG411 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#0 [phi:play_move_down::@12->play_collision#2] -- register_copy + //SEG412 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#73 [phi:play_move_down::@12->play_collision#3] -- register_copy jsr play_collision - //SEG389 [185] (byte) play_collision::return#0 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 + //SEG413 [196] (byte) play_collision::return#0 ← (byte) play_collision::return#14 -- vbuz1=vbuz2 lda play_collision.return_14 sta play_collision.return jmp b18 - //SEG390 play_move_down::@18 + //SEG414 play_move_down::@18 b18: - //SEG391 [186] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 -- vbuz1=vbuz2 + //SEG415 [197] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 -- vbuz1=vbuz2 lda play_collision.return sta _12 - //SEG392 [187] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 -- vbuz1_eq_vbuc1_then_la1 + //SEG416 [198] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 -- vbuz1_eq_vbuc1_then_la1 lda _12 cmp #COLLISION_NONE beq b6 - //SEG393 [188] phi from play_move_down::@18 to play_move_down::@13 [phi:play_move_down::@18->play_move_down::@13] + //SEG417 [199] phi from play_move_down::@18 to play_move_down::@13 [phi:play_move_down::@18->play_move_down::@13] b13_from_b18: jmp b13 - //SEG394 play_move_down::@13 + //SEG418 play_move_down::@13 b13: - //SEG395 [189] call play_lock_current + //SEG419 [200] call play_lock_current jsr play_lock_current - //SEG396 [190] phi from play_move_down::@13 to play_move_down::@19 [phi:play_move_down::@13->play_move_down::@19] + //SEG420 [201] phi from play_move_down::@13 to play_move_down::@19 [phi:play_move_down::@13->play_move_down::@19] b19_from_b13: jmp b19 - //SEG397 play_move_down::@19 + //SEG421 play_move_down::@19 b19: - //SEG398 [191] call play_remove_lines - //SEG399 [215] phi from play_move_down::@19 to play_remove_lines [phi:play_move_down::@19->play_remove_lines] + //SEG422 [202] call play_remove_lines + //SEG423 [226] phi from play_move_down::@19 to play_remove_lines [phi:play_move_down::@19->play_remove_lines] play_remove_lines_from_b19: jsr play_remove_lines - //SEG400 [192] phi from play_move_down::@19 to play_move_down::@20 [phi:play_move_down::@19->play_move_down::@20] + //SEG424 [203] phi from play_move_down::@19 to play_move_down::@20 [phi:play_move_down::@19->play_move_down::@20] b20_from_b19: jmp b20 - //SEG401 play_move_down::@20 + //SEG425 play_move_down::@20 b20: - //SEG402 [193] call play_spawn_current - //SEG403 [199] phi from play_move_down::@20 to play_spawn_current [phi:play_move_down::@20->play_spawn_current] + //SEG426 [204] call play_spawn_current + //SEG427 [210] phi from play_move_down::@20 to play_spawn_current [phi:play_move_down::@20->play_spawn_current] play_spawn_current_from_b20: jsr play_spawn_current - //SEG404 [194] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG428 [205] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 ldy play_spawn_current._3 lda PIECES,y sta current_piece lda PIECES+1,y sta current_piece+1 - //SEG405 [195] phi from play_move_down::@20 to play_move_down::@7 [phi:play_move_down::@20->play_move_down::@7] + //SEG429 [206] phi from play_move_down::@20 to play_move_down::@7 [phi:play_move_down::@20->play_move_down::@7] b7_from_b20: - //SEG406 [195] phi (byte) current_piece_char#20 = (byte) current_piece_char#12 [phi:play_move_down::@20->play_move_down::@7#0] -- register_copy - //SEG407 [195] phi (byte) current_xpos#33 = (byte) current_xpos#23 [phi:play_move_down::@20->play_move_down::@7#1] -- register_copy - //SEG408 [195] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#16 [phi:play_move_down::@20->play_move_down::@7#2] -- register_copy - //SEG409 [195] phi (byte) current_orientation#29 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@20->play_move_down::@7#3] -- vbuz1=vbuc1 + //SEG430 [206] phi (byte) current_piece_char#20 = (byte) current_piece_char#12 [phi:play_move_down::@20->play_move_down::@7#0] -- register_copy + //SEG431 [206] phi (byte) current_xpos#33 = (byte) current_xpos#23 [phi:play_move_down::@20->play_move_down::@7#1] -- register_copy + //SEG432 [206] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#16 [phi:play_move_down::@20->play_move_down::@7#2] -- register_copy + //SEG433 [206] phi (byte) current_orientation#29 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@20->play_move_down::@7#3] -- vbuz1=vbuc1 lda #0 sta current_orientation - //SEG410 [195] phi (byte*) current_piece#20 = (byte*~) current_piece#77 [phi:play_move_down::@20->play_move_down::@7#4] -- register_copy - //SEG411 [195] phi (byte) current_ypos#29 = (byte) current_ypos#18 [phi:play_move_down::@20->play_move_down::@7#5] -- register_copy + //SEG434 [206] phi (byte*) current_piece#20 = (byte*~) current_piece#77 [phi:play_move_down::@20->play_move_down::@7#4] -- register_copy + //SEG435 [206] phi (byte) current_ypos#29 = (byte) current_ypos#18 [phi:play_move_down::@20->play_move_down::@7#5] -- register_copy jmp b7 - //SEG412 play_move_down::@7 + //SEG436 play_move_down::@7 b7: - //SEG413 [196] phi from play_move_down::@7 to play_move_down::@return [phi:play_move_down::@7->play_move_down::@return] + //SEG437 [207] phi from play_move_down::@7 to play_move_down::@return [phi:play_move_down::@7->play_move_down::@return] breturn_from_b7: - //SEG414 [196] phi (byte) current_piece_char#1 = (byte) current_piece_char#20 [phi:play_move_down::@7->play_move_down::@return#0] -- register_copy - //SEG415 [196] phi (byte) current_xpos#1 = (byte) current_xpos#33 [phi:play_move_down::@7->play_move_down::@return#1] -- register_copy - //SEG416 [196] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#26 [phi:play_move_down::@7->play_move_down::@return#2] -- register_copy - //SEG417 [196] phi (byte) current_orientation#14 = (byte) current_orientation#29 [phi:play_move_down::@7->play_move_down::@return#3] -- register_copy - //SEG418 [196] phi (byte*) current_piece#10 = (byte*) current_piece#20 [phi:play_move_down::@7->play_move_down::@return#4] -- register_copy - //SEG419 [196] phi (byte) current_ypos#13 = (byte) current_ypos#29 [phi:play_move_down::@7->play_move_down::@return#5] -- register_copy - //SEG420 [196] phi (byte) current_movedown_counter#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@7->play_move_down::@return#6] -- vbuz1=vbuc1 + //SEG438 [207] phi (byte) current_piece_char#1 = (byte) current_piece_char#20 [phi:play_move_down::@7->play_move_down::@return#0] -- register_copy + //SEG439 [207] phi (byte) current_xpos#1 = (byte) current_xpos#33 [phi:play_move_down::@7->play_move_down::@return#1] -- register_copy + //SEG440 [207] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#26 [phi:play_move_down::@7->play_move_down::@return#2] -- register_copy + //SEG441 [207] phi (byte) current_orientation#14 = (byte) current_orientation#29 [phi:play_move_down::@7->play_move_down::@return#3] -- register_copy + //SEG442 [207] phi (byte*) current_piece#10 = (byte*) current_piece#20 [phi:play_move_down::@7->play_move_down::@return#4] -- register_copy + //SEG443 [207] phi (byte) current_ypos#13 = (byte) current_ypos#29 [phi:play_move_down::@7->play_move_down::@return#5] -- register_copy + //SEG444 [207] phi (byte) current_movedown_counter#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@7->play_move_down::@return#6] -- vbuz1=vbuc1 lda #0 sta current_movedown_counter - //SEG421 [196] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@7->play_move_down::@return#7] -- vbuz1=vbuc1 + //SEG445 [207] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@7->play_move_down::@return#7] -- vbuz1=vbuc1 lda #1 sta return jmp breturn - //SEG422 [196] phi from play_move_down::@4 to play_move_down::@return [phi:play_move_down::@4->play_move_down::@return] + //SEG446 [207] phi from play_move_down::@4 to play_move_down::@return [phi:play_move_down::@4->play_move_down::@return] breturn_from_b4: - //SEG423 [196] phi (byte) current_piece_char#1 = (byte) current_piece_char#15 [phi:play_move_down::@4->play_move_down::@return#0] -- register_copy - //SEG424 [196] phi (byte) current_xpos#1 = (byte) current_xpos#10 [phi:play_move_down::@4->play_move_down::@return#1] -- register_copy - //SEG425 [196] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#20 [phi:play_move_down::@4->play_move_down::@return#2] -- register_copy - //SEG426 [196] phi (byte) current_orientation#14 = (byte) current_orientation#10 [phi:play_move_down::@4->play_move_down::@return#3] -- register_copy - //SEG427 [196] phi (byte*) current_piece#10 = (byte*) current_piece#16 [phi:play_move_down::@4->play_move_down::@return#4] -- register_copy - //SEG428 [196] phi (byte) current_ypos#13 = (byte) current_ypos#21 [phi:play_move_down::@4->play_move_down::@return#5] -- register_copy - //SEG429 [196] phi (byte) current_movedown_counter#10 = (byte) current_movedown_counter#1 [phi:play_move_down::@4->play_move_down::@return#6] -- register_copy - //SEG430 [196] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@4->play_move_down::@return#7] -- vbuz1=vbuc1 + //SEG447 [207] phi (byte) current_piece_char#1 = (byte) current_piece_char#15 [phi:play_move_down::@4->play_move_down::@return#0] -- register_copy + //SEG448 [207] phi (byte) current_xpos#1 = (byte) current_xpos#10 [phi:play_move_down::@4->play_move_down::@return#1] -- register_copy + //SEG449 [207] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#20 [phi:play_move_down::@4->play_move_down::@return#2] -- register_copy + //SEG450 [207] phi (byte) current_orientation#14 = (byte) current_orientation#10 [phi:play_move_down::@4->play_move_down::@return#3] -- register_copy + //SEG451 [207] phi (byte*) current_piece#10 = (byte*) current_piece#16 [phi:play_move_down::@4->play_move_down::@return#4] -- register_copy + //SEG452 [207] phi (byte) current_ypos#13 = (byte) current_ypos#21 [phi:play_move_down::@4->play_move_down::@return#5] -- register_copy + //SEG453 [207] phi (byte) current_movedown_counter#10 = (byte) current_movedown_counter#1 [phi:play_move_down::@4->play_move_down::@return#6] -- register_copy + //SEG454 [207] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@4->play_move_down::@return#7] -- vbuz1=vbuc1 lda #0 sta return jmp breturn - //SEG431 play_move_down::@return + //SEG455 play_move_down::@return breturn: - //SEG432 [197] return + //SEG456 [208] return rts - //SEG433 play_move_down::@6 + //SEG457 play_move_down::@6 b6: - //SEG434 [198] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 -- vbuz1=_inc_vbuz1 + //SEG458 [209] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 -- vbuz1=_inc_vbuz1 inc current_ypos - //SEG435 [195] phi from play_move_down::@6 to play_move_down::@7 [phi:play_move_down::@6->play_move_down::@7] + //SEG459 [206] phi from play_move_down::@6 to play_move_down::@7 [phi:play_move_down::@6->play_move_down::@7] b7_from_b6: - //SEG436 [195] phi (byte) current_piece_char#20 = (byte) current_piece_char#15 [phi:play_move_down::@6->play_move_down::@7#0] -- register_copy - //SEG437 [195] phi (byte) current_xpos#33 = (byte) current_xpos#10 [phi:play_move_down::@6->play_move_down::@7#1] -- register_copy - //SEG438 [195] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#20 [phi:play_move_down::@6->play_move_down::@7#2] -- register_copy - //SEG439 [195] phi (byte) current_orientation#29 = (byte) current_orientation#10 [phi:play_move_down::@6->play_move_down::@7#3] -- register_copy - //SEG440 [195] phi (byte*) current_piece#20 = (byte*) current_piece#16 [phi:play_move_down::@6->play_move_down::@7#4] -- register_copy - //SEG441 [195] phi (byte) current_ypos#29 = (byte) current_ypos#0 [phi:play_move_down::@6->play_move_down::@7#5] -- register_copy + //SEG460 [206] phi (byte) current_piece_char#20 = (byte) current_piece_char#15 [phi:play_move_down::@6->play_move_down::@7#0] -- register_copy + //SEG461 [206] phi (byte) current_xpos#33 = (byte) current_xpos#10 [phi:play_move_down::@6->play_move_down::@7#1] -- register_copy + //SEG462 [206] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#20 [phi:play_move_down::@6->play_move_down::@7#2] -- register_copy + //SEG463 [206] phi (byte) current_orientation#29 = (byte) current_orientation#10 [phi:play_move_down::@6->play_move_down::@7#3] -- register_copy + //SEG464 [206] phi (byte*) current_piece#20 = (byte*) current_piece#16 [phi:play_move_down::@6->play_move_down::@7#4] -- register_copy + //SEG465 [206] phi (byte) current_ypos#29 = (byte) current_ypos#0 [phi:play_move_down::@6->play_move_down::@7#5] -- register_copy jmp b7 } -//SEG442 play_spawn_current +//SEG466 play_spawn_current play_spawn_current: { - .label _1 = $7e - .label _3 = $7c - .label piece_idx = $2a - //SEG443 [200] phi from play_spawn_current to play_spawn_current::@1 [phi:play_spawn_current->play_spawn_current::@1] + .label _1 = $88 + .label _3 = $86 + .label piece_idx = $2e + //SEG467 [211] phi from play_spawn_current to play_spawn_current::@1 [phi:play_spawn_current->play_spawn_current::@1] b1_from_play_spawn_current: - //SEG444 [200] phi (byte) play_spawn_current::piece_idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 7 [phi:play_spawn_current->play_spawn_current::@1#0] -- vbuz1=vbuc1 + //SEG468 [211] phi (byte) play_spawn_current::piece_idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 7 [phi:play_spawn_current->play_spawn_current::@1#0] -- vbuz1=vbuc1 lda #7 sta piece_idx jmp b1 - //SEG445 play_spawn_current::@1 + //SEG469 play_spawn_current::@1 b1: - //SEG446 [201] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG470 [212] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 -- vbuz1_eq_vbuc1_then_la1 lda piece_idx cmp #7 beq b2_from_b1 jmp b3 - //SEG447 play_spawn_current::@3 + //SEG471 play_spawn_current::@3 b3: - //SEG448 [202] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + //SEG472 [213] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 lda piece_idx asl sta _3 - //SEG449 [203] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuz1=pptc1_derefidx_vbuz2_plus_0 + //SEG473 [214] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuz1=pptc1_derefidx_vbuz2_plus_0 ldy _3 lda PIECES,y sta current_piece_gfx lda PIECES+1,y sta current_piece_gfx+1 - //SEG450 [204] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuz2 + //SEG474 [215] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuz2 ldy piece_idx lda PIECES_START_X,y sta current_xpos - //SEG451 [205] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuz2 + //SEG475 [216] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuz2 ldy piece_idx lda PIECES_START_Y,y sta current_ypos - //SEG452 [206] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuz2 + //SEG476 [217] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuz2 ldy piece_idx lda PIECES_CHARS,y sta current_piece_char jmp breturn - //SEG453 play_spawn_current::@return + //SEG477 play_spawn_current::@return breturn: - //SEG454 [207] return + //SEG478 [218] return rts - //SEG455 [208] phi from play_spawn_current::@1 to play_spawn_current::@2 [phi:play_spawn_current::@1->play_spawn_current::@2] + //SEG479 [219] phi from play_spawn_current::@1 to play_spawn_current::@2 [phi:play_spawn_current::@1->play_spawn_current::@2] b2_from_b1: jmp b2 - //SEG456 play_spawn_current::@2 + //SEG480 play_spawn_current::@2 b2: - //SEG457 [209] call sid_rnd + //SEG481 [220] call sid_rnd jsr sid_rnd - //SEG458 [210] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 -- vbuz1=vbuz2 + //SEG482 [221] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 -- vbuz1=vbuz2 lda sid_rnd.return sta sid_rnd.return_2 jmp b7 - //SEG459 play_spawn_current::@7 + //SEG483 play_spawn_current::@7 b7: - //SEG460 [211] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 -- vbuz1=vbuz2 + //SEG484 [222] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 -- vbuz1=vbuz2 lda sid_rnd.return_2 sta _1 - //SEG461 [212] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 + //SEG485 [223] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 lda #7 and _1 sta piece_idx - //SEG462 [200] phi from play_spawn_current::@7 to play_spawn_current::@1 [phi:play_spawn_current::@7->play_spawn_current::@1] + //SEG486 [211] phi from play_spawn_current::@7 to play_spawn_current::@1 [phi:play_spawn_current::@7->play_spawn_current::@1] b1_from_b7: - //SEG463 [200] phi (byte) play_spawn_current::piece_idx#2 = (byte) play_spawn_current::piece_idx#1 [phi:play_spawn_current::@7->play_spawn_current::@1#0] -- register_copy + //SEG487 [211] phi (byte) play_spawn_current::piece_idx#2 = (byte) play_spawn_current::piece_idx#1 [phi:play_spawn_current::@7->play_spawn_current::@1#0] -- register_copy jmp b1 } -//SEG464 sid_rnd +//SEG488 sid_rnd sid_rnd: { - .label return = $7f - .label return_2 = $7d - //SEG465 [213] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) -- vbuz1=_deref_pbuc1 + .label return = $89 + .label return_2 = $87 + //SEG489 [224] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) -- vbuz1=_deref_pbuc1 lda SID_VOICE3_OSC sta return jmp breturn - //SEG466 sid_rnd::@return + //SEG490 sid_rnd::@return breturn: - //SEG467 [214] return + //SEG491 [225] return rts } -//SEG468 play_remove_lines +//SEG492 play_remove_lines play_remove_lines: { - .label c = $80 - .label r = $2c - .label w = $2f - .label x = $2d - .label y = $2b - .label full = $2e - //SEG469 [216] phi from play_remove_lines to play_remove_lines::@1 [phi:play_remove_lines->play_remove_lines::@1] + .label c = $8a + .label r = $30 + .label w = $33 + .label x = $31 + .label y = $2f + .label full = $32 + //SEG493 [227] phi from play_remove_lines to play_remove_lines::@1 [phi:play_remove_lines->play_remove_lines::@1] b1_from_play_remove_lines: - //SEG470 [216] phi (byte) play_remove_lines::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines->play_remove_lines::@1#0] -- vbuz1=vbuc1 + //SEG494 [227] phi (byte) play_remove_lines::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines->play_remove_lines::@1#0] -- vbuz1=vbuc1 lda #0 sta y - //SEG471 [216] phi (byte) play_remove_lines::w#12 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#1] -- vbuz1=vbuc1 + //SEG495 [227] phi (byte) play_remove_lines::w#12 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#1] -- vbuz1=vbuc1 lda #PLAYFIELD_LINES*PLAYFIELD_COLS-1 sta w - //SEG472 [216] phi (byte) play_remove_lines::r#3 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#2] -- vbuz1=vbuc1 + //SEG496 [227] phi (byte) play_remove_lines::r#3 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#2] -- vbuz1=vbuc1 lda #PLAYFIELD_LINES*PLAYFIELD_COLS-1 sta r jmp b1 - //SEG473 [216] phi from play_remove_lines::@4 to play_remove_lines::@1 [phi:play_remove_lines::@4->play_remove_lines::@1] + //SEG497 [227] phi from play_remove_lines::@4 to play_remove_lines::@1 [phi:play_remove_lines::@4->play_remove_lines::@1] b1_from_b4: - //SEG474 [216] phi (byte) play_remove_lines::y#8 = (byte) play_remove_lines::y#1 [phi:play_remove_lines::@4->play_remove_lines::@1#0] -- register_copy - //SEG475 [216] phi (byte) play_remove_lines::w#12 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4->play_remove_lines::@1#1] -- register_copy - //SEG476 [216] phi (byte) play_remove_lines::r#3 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@4->play_remove_lines::@1#2] -- register_copy + //SEG498 [227] phi (byte) play_remove_lines::y#8 = (byte) play_remove_lines::y#1 [phi:play_remove_lines::@4->play_remove_lines::@1#0] -- register_copy + //SEG499 [227] phi (byte) play_remove_lines::w#12 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4->play_remove_lines::@1#1] -- register_copy + //SEG500 [227] phi (byte) play_remove_lines::r#3 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@4->play_remove_lines::@1#2] -- register_copy jmp b1 - //SEG477 play_remove_lines::@1 + //SEG501 play_remove_lines::@1 b1: - //SEG478 [217] phi from play_remove_lines::@1 to play_remove_lines::@2 [phi:play_remove_lines::@1->play_remove_lines::@2] + //SEG502 [228] phi from play_remove_lines::@1 to play_remove_lines::@2 [phi:play_remove_lines::@1->play_remove_lines::@2] b2_from_b1: - //SEG479 [217] phi (byte) play_remove_lines::full#4 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines::@1->play_remove_lines::@2#0] -- vbuz1=vbuc1 + //SEG503 [228] phi (byte) play_remove_lines::full#4 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines::@1->play_remove_lines::@2#0] -- vbuz1=vbuc1 lda #1 sta full - //SEG480 [217] phi (byte) play_remove_lines::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@1->play_remove_lines::@2#1] -- vbuz1=vbuc1 + //SEG504 [228] phi (byte) play_remove_lines::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@1->play_remove_lines::@2#1] -- vbuz1=vbuc1 lda #0 sta x - //SEG481 [217] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#12 [phi:play_remove_lines::@1->play_remove_lines::@2#2] -- register_copy - //SEG482 [217] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#3 [phi:play_remove_lines::@1->play_remove_lines::@2#3] -- register_copy + //SEG505 [228] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#12 [phi:play_remove_lines::@1->play_remove_lines::@2#2] -- register_copy + //SEG506 [228] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#3 [phi:play_remove_lines::@1->play_remove_lines::@2#3] -- register_copy jmp b2 - //SEG483 [217] phi from play_remove_lines::@3 to play_remove_lines::@2 [phi:play_remove_lines::@3->play_remove_lines::@2] + //SEG507 [228] phi from play_remove_lines::@3 to play_remove_lines::@2 [phi:play_remove_lines::@3->play_remove_lines::@2] b2_from_b3: - //SEG484 [217] phi (byte) play_remove_lines::full#4 = (byte) play_remove_lines::full#2 [phi:play_remove_lines::@3->play_remove_lines::@2#0] -- register_copy - //SEG485 [217] phi (byte) play_remove_lines::x#2 = (byte) play_remove_lines::x#1 [phi:play_remove_lines::@3->play_remove_lines::@2#1] -- register_copy - //SEG486 [217] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#1 [phi:play_remove_lines::@3->play_remove_lines::@2#2] -- register_copy - //SEG487 [217] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@3->play_remove_lines::@2#3] -- register_copy + //SEG508 [228] phi (byte) play_remove_lines::full#4 = (byte) play_remove_lines::full#2 [phi:play_remove_lines::@3->play_remove_lines::@2#0] -- register_copy + //SEG509 [228] phi (byte) play_remove_lines::x#2 = (byte) play_remove_lines::x#1 [phi:play_remove_lines::@3->play_remove_lines::@2#1] -- register_copy + //SEG510 [228] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#1 [phi:play_remove_lines::@3->play_remove_lines::@2#2] -- register_copy + //SEG511 [228] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@3->play_remove_lines::@2#3] -- register_copy jmp b2 - //SEG488 play_remove_lines::@2 + //SEG512 play_remove_lines::@2 b2: - //SEG489 [218] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) -- vbuz1=pbuc1_derefidx_vbuz2 + //SEG513 [229] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) -- vbuz1=pbuc1_derefidx_vbuz2 ldy r lda playfield,y sta c - //SEG490 [219] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 -- vbuz1=_dec_vbuz1 + //SEG514 [230] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 -- vbuz1=_dec_vbuz1 dec r - //SEG491 [220] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 -- vbuz1_neq_0_then_la1 + //SEG515 [231] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 -- vbuz1_neq_0_then_la1 lda c cmp #0 bne b17_from_b2 - //SEG492 [221] phi from play_remove_lines::@2 to play_remove_lines::@3 [phi:play_remove_lines::@2->play_remove_lines::@3] + //SEG516 [232] phi from play_remove_lines::@2 to play_remove_lines::@3 [phi:play_remove_lines::@2->play_remove_lines::@3] b3_from_b2: - //SEG493 [221] phi (byte) play_remove_lines::full#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@2->play_remove_lines::@3#0] -- vbuz1=vbuc1 + //SEG517 [232] phi (byte) play_remove_lines::full#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@2->play_remove_lines::@3#0] -- vbuz1=vbuc1 lda #0 sta full jmp b3 - //SEG494 play_remove_lines::@3 + //SEG518 play_remove_lines::@3 b3: - //SEG495 [222] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG519 [233] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 -- pbuc1_derefidx_vbuz1=vbuz2 lda c ldy w sta playfield,y - //SEG496 [223] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 -- vbuz1=_dec_vbuz1 + //SEG520 [234] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 -- vbuz1=_dec_vbuz1 dec w - //SEG497 [224] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 -- vbuz1=_inc_vbuz1 + //SEG521 [235] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 -- vbuz1=_inc_vbuz1 inc x - //SEG498 [225] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 -- vbuz1_neq_vbuc1_then_la1 + //SEG522 [236] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 -- vbuz1_neq_vbuc1_then_la1 lda x cmp #PLAYFIELD_COLS-1+1 bne b2_from_b3 jmp b9 - //SEG499 play_remove_lines::@9 + //SEG523 play_remove_lines::@9 b9: - //SEG500 [226] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 -- vbuz1_neq_vbuc1_then_la1 + //SEG524 [237] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 -- vbuz1_neq_vbuc1_then_la1 lda full cmp #1 bne b4_from_b9 jmp b10 - //SEG501 play_remove_lines::@10 + //SEG525 play_remove_lines::@10 b10: - //SEG502 [227] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 + //SEG526 [238] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lda #PLAYFIELD_COLS clc adc w sta w - //SEG503 [228] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] + //SEG527 [239] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] b4_from_b10: b4_from_b9: - //SEG504 [228] phi (byte) play_remove_lines::w#11 = (byte) play_remove_lines::w#2 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4#0] -- register_copy + //SEG528 [239] phi (byte) play_remove_lines::w#11 = (byte) play_remove_lines::w#2 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4#0] -- register_copy jmp b4 - //SEG505 play_remove_lines::@4 + //SEG529 play_remove_lines::@4 b4: - //SEG506 [229] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 -- vbuz1=_inc_vbuz1 + //SEG530 [240] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 -- vbuz1=_inc_vbuz1 inc y - //SEG507 [230] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG531 [241] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 -- vbuz1_neq_vbuc1_then_la1 lda y cmp #PLAYFIELD_LINES-1+1 bne b1_from_b4 - //SEG508 [231] phi from play_remove_lines::@4 play_remove_lines::@6 to play_remove_lines::@5 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5] + //SEG532 [242] phi from play_remove_lines::@4 play_remove_lines::@6 to play_remove_lines::@5 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5] b5_from_b4: b5_from_b6: - //SEG509 [231] phi (byte) play_remove_lines::w#6 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5#0] -- register_copy + //SEG533 [242] phi (byte) play_remove_lines::w#6 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5#0] -- register_copy jmp b5 - //SEG510 play_remove_lines::@5 + //SEG534 play_remove_lines::@5 b5: - //SEG511 [232] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 -- vbuz1_neq_vbuc1_then_la1 + //SEG535 [243] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 -- vbuz1_neq_vbuc1_then_la1 lda w cmp #$ff bne b6 jmp breturn - //SEG512 play_remove_lines::@return + //SEG536 play_remove_lines::@return breturn: - //SEG513 [233] return + //SEG537 [244] return rts - //SEG514 play_remove_lines::@6 + //SEG538 play_remove_lines::@6 b6: - //SEG515 [234] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuc1_derefidx_vbuz1=vbuc2 + //SEG539 [245] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuc1_derefidx_vbuz1=vbuc2 ldy w lda #0 sta playfield,y - //SEG516 [235] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 -- vbuz1=_dec_vbuz1 + //SEG540 [246] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 -- vbuz1=_dec_vbuz1 dec w jmp b5_from_b6 - //SEG517 [236] phi from play_remove_lines::@2 to play_remove_lines::@17 [phi:play_remove_lines::@2->play_remove_lines::@17] + //SEG541 [247] phi from play_remove_lines::@2 to play_remove_lines::@17 [phi:play_remove_lines::@2->play_remove_lines::@17] b17_from_b2: jmp b17 - //SEG518 play_remove_lines::@17 + //SEG542 play_remove_lines::@17 b17: - //SEG519 [221] phi from play_remove_lines::@17 to play_remove_lines::@3 [phi:play_remove_lines::@17->play_remove_lines::@3] + //SEG543 [232] phi from play_remove_lines::@17 to play_remove_lines::@3 [phi:play_remove_lines::@17->play_remove_lines::@3] b3_from_b17: - //SEG520 [221] phi (byte) play_remove_lines::full#2 = (byte) play_remove_lines::full#4 [phi:play_remove_lines::@17->play_remove_lines::@3#0] -- register_copy + //SEG544 [232] phi (byte) play_remove_lines::full#2 = (byte) play_remove_lines::full#4 [phi:play_remove_lines::@17->play_remove_lines::@3#0] -- register_copy jmp b3 } -//SEG521 play_lock_current +//SEG545 play_lock_current play_lock_current: { - .label ypos2 = $30 - .label playfield_line = $81 - .label col = $33 - .label i = $83 - .label c = $34 - .label l = $31 - .label i_2 = $32 - .label i_3 = $32 - .label i_7 = $32 - .label i_9 = $32 - //SEG522 [237] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + .label ypos2 = $34 + .label playfield_line = $8b + .label col = $37 + .label i = $8d + .label c = $38 + .label l = $35 + .label i_2 = $36 + .label i_3 = $36 + .label i_7 = $36 + .label i_9 = $36 + //SEG546 [248] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 lda current_ypos asl sta ypos2 - //SEG523 [238] phi from play_lock_current to play_lock_current::@1 [phi:play_lock_current->play_lock_current::@1] + //SEG547 [249] phi from play_lock_current to play_lock_current::@1 [phi:play_lock_current->play_lock_current::@1] b1_from_play_lock_current: - //SEG524 [238] phi (byte) play_lock_current::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#0] -- vbuz1=vbuc1 + //SEG548 [249] phi (byte) play_lock_current::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG525 [238] phi (byte) play_lock_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#1] -- vbuz1=vbuc1 + //SEG549 [249] phi (byte) play_lock_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#1] -- vbuz1=vbuc1 lda #0 sta i_3 - //SEG526 [238] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#0 [phi:play_lock_current->play_lock_current::@1#2] -- register_copy + //SEG550 [249] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#0 [phi:play_lock_current->play_lock_current::@1#2] -- register_copy jmp b1 - //SEG527 play_lock_current::@1 + //SEG551 play_lock_current::@1 b1: - //SEG528 [239] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG552 [250] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 ldy ypos2 lda playfield_lines,y sta playfield_line lda playfield_lines+1,y sta playfield_line+1 - //SEG529 [240] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 + //SEG553 [251] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 lda current_xpos sta col - //SEG530 [241] phi from play_lock_current::@1 to play_lock_current::@2 [phi:play_lock_current::@1->play_lock_current::@2] + //SEG554 [252] phi from play_lock_current::@1 to play_lock_current::@2 [phi:play_lock_current::@1->play_lock_current::@2] b2_from_b1: - //SEG531 [241] phi (byte) play_lock_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current::@1->play_lock_current::@2#0] -- vbuz1=vbuc1 + //SEG555 [252] phi (byte) play_lock_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current::@1->play_lock_current::@2#0] -- vbuz1=vbuc1 lda #0 sta c - //SEG532 [241] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#0 [phi:play_lock_current::@1->play_lock_current::@2#1] -- register_copy - //SEG533 [241] phi (byte) play_lock_current::i#2 = (byte) play_lock_current::i#3 [phi:play_lock_current::@1->play_lock_current::@2#2] -- register_copy + //SEG556 [252] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#0 [phi:play_lock_current::@1->play_lock_current::@2#1] -- register_copy + //SEG557 [252] phi (byte) play_lock_current::i#2 = (byte) play_lock_current::i#3 [phi:play_lock_current::@1->play_lock_current::@2#2] -- register_copy jmp b2 - //SEG534 play_lock_current::@2 + //SEG558 play_lock_current::@2 b2: - //SEG535 [242] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 -- vbuz1=_inc_vbuz2 + //SEG559 [253] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 -- vbuz1=_inc_vbuz2 ldy i_2 iny sty i - //SEG536 [243] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG560 [254] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy i_2 lda (current_piece_gfx),y cmp #0 beq b3 jmp b4 - //SEG537 play_lock_current::@4 + //SEG561 play_lock_current::@4 b4: - //SEG538 [244] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 -- pbuz1_derefidx_vbuz2=vbuz3 + //SEG562 [255] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 -- pbuz1_derefidx_vbuz2=vbuz3 lda current_piece_char ldy col sta (playfield_line),y jmp b3 - //SEG539 play_lock_current::@3 + //SEG563 play_lock_current::@3 b3: - //SEG540 [245] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 -- vbuz1=_inc_vbuz1 + //SEG564 [256] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 -- vbuz1=_inc_vbuz1 inc col - //SEG541 [246] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 -- vbuz1=_inc_vbuz1 + //SEG565 [257] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 -- vbuz1=_inc_vbuz1 inc c - //SEG542 [247] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 -- vbuz1_neq_vbuc1_then_la1 + //SEG566 [258] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 -- vbuz1_neq_vbuc1_then_la1 lda c cmp #4 bne b8 jmp b5 - //SEG543 play_lock_current::@5 + //SEG567 play_lock_current::@5 b5: - //SEG544 [248] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG568 [259] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG545 [249] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 -- vbuz1=_inc_vbuz1 + //SEG569 [260] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 -- vbuz1=_inc_vbuz1 inc l - //SEG546 [250] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 -- vbuz1_neq_vbuc1_then_la1 + //SEG570 [261] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b7 jmp breturn - //SEG547 play_lock_current::@return + //SEG571 play_lock_current::@return breturn: - //SEG548 [251] return + //SEG572 [262] return rts - //SEG549 play_lock_current::@7 + //SEG573 play_lock_current::@7 b7: - //SEG550 [252] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 + //SEG574 [263] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 lda i sta i_7 - //SEG551 [238] phi from play_lock_current::@7 to play_lock_current::@1 [phi:play_lock_current::@7->play_lock_current::@1] + //SEG575 [249] phi from play_lock_current::@7 to play_lock_current::@1 [phi:play_lock_current::@7->play_lock_current::@1] b1_from_b7: - //SEG552 [238] phi (byte) play_lock_current::l#6 = (byte) play_lock_current::l#1 [phi:play_lock_current::@7->play_lock_current::@1#0] -- register_copy - //SEG553 [238] phi (byte) play_lock_current::i#3 = (byte~) play_lock_current::i#7 [phi:play_lock_current::@7->play_lock_current::@1#1] -- register_copy - //SEG554 [238] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#1 [phi:play_lock_current::@7->play_lock_current::@1#2] -- register_copy + //SEG576 [249] phi (byte) play_lock_current::l#6 = (byte) play_lock_current::l#1 [phi:play_lock_current::@7->play_lock_current::@1#0] -- register_copy + //SEG577 [249] phi (byte) play_lock_current::i#3 = (byte~) play_lock_current::i#7 [phi:play_lock_current::@7->play_lock_current::@1#1] -- register_copy + //SEG578 [249] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#1 [phi:play_lock_current::@7->play_lock_current::@1#2] -- register_copy jmp b1 - //SEG555 play_lock_current::@8 + //SEG579 play_lock_current::@8 b8: - //SEG556 [253] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 + //SEG580 [264] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 lda i sta i_9 - //SEG557 [241] phi from play_lock_current::@8 to play_lock_current::@2 [phi:play_lock_current::@8->play_lock_current::@2] + //SEG581 [252] phi from play_lock_current::@8 to play_lock_current::@2 [phi:play_lock_current::@8->play_lock_current::@2] b2_from_b8: - //SEG558 [241] phi (byte) play_lock_current::c#2 = (byte) play_lock_current::c#1 [phi:play_lock_current::@8->play_lock_current::@2#0] -- register_copy - //SEG559 [241] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#1 [phi:play_lock_current::@8->play_lock_current::@2#1] -- register_copy - //SEG560 [241] phi (byte) play_lock_current::i#2 = (byte~) play_lock_current::i#9 [phi:play_lock_current::@8->play_lock_current::@2#2] -- register_copy + //SEG582 [252] phi (byte) play_lock_current::c#2 = (byte) play_lock_current::c#1 [phi:play_lock_current::@8->play_lock_current::@2#0] -- register_copy + //SEG583 [252] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#1 [phi:play_lock_current::@8->play_lock_current::@2#1] -- register_copy + //SEG584 [252] phi (byte) play_lock_current::i#2 = (byte~) play_lock_current::i#9 [phi:play_lock_current::@8->play_lock_current::@2#2] -- register_copy jmp b2 } -//SEG561 keyboard_event_pressed +//SEG585 keyboard_event_pressed keyboard_event_pressed: { - .label _0 = $84 - .label _1 = $86 - .label return = $8b - .label return_1 = $8d - .label return_2 = $8f - .label row_bits = $85 - .label return_10 = $91 - .label keycode = $35 - .label return_11 = $87 - .label return_12 = $78 - //SEG562 [255] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_ror_3 + .label _0 = $8e + .label _1 = $90 + .label return = $95 + .label return_1 = $97 + .label return_2 = $99 + .label row_bits = $8f + .label return_10 = $9b + .label keycode = $39 + .label return_11 = $91 + .label return_12 = $82 + //SEG586 [266] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_ror_3 lda keycode lsr lsr lsr sta _0 - //SEG563 [256] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) -- vbuz1=pbuc1_derefidx_vbuz2 + //SEG587 [267] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) -- vbuz1=pbuc1_derefidx_vbuz2 ldy _0 lda keyboard_scan_values,y sta row_bits - //SEG564 [257] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 + //SEG588 [268] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 lda #7 and keycode sta _1 - //SEG565 [258] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) -- vbuz1=vbuz2_band_pbuc1_derefidx_vbuz3 + //SEG589 [269] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) -- vbuz1=vbuz2_band_pbuc1_derefidx_vbuz3 lda row_bits ldy _1 and keyboard_matrix_col_bitmask,y sta return_11 jmp breturn - //SEG566 keyboard_event_pressed::@return + //SEG590 keyboard_event_pressed::@return breturn: - //SEG567 [259] return + //SEG591 [270] return rts } -//SEG568 keyboard_event_get +//SEG592 keyboard_event_get keyboard_event_get: { - .label return = $36 - .label return_3 = $58 - //SEG569 [260] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return -- vbuz1_eq_0_then_la1 + .label return = $3a + .label return_3 = $60 + //SEG593 [271] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return -- vbuz1_eq_0_then_la1 lda keyboard_events_size cmp #0 beq breturn_from_keyboard_event_get jmp b3 - //SEG570 keyboard_event_get::@3 + //SEG594 keyboard_event_get::@3 b3: - //SEG571 [261] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 -- vbuz1=_dec_vbuz1 + //SEG595 [272] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 -- vbuz1=_dec_vbuz1 dec keyboard_events_size - //SEG572 [262] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) -- vbuz1=pbuc1_derefidx_vbuz2 + //SEG596 [273] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) -- vbuz1=pbuc1_derefidx_vbuz2 ldy keyboard_events_size lda keyboard_events,y sta return - //SEG573 [263] phi from keyboard_event_get::@3 to keyboard_event_get::@return [phi:keyboard_event_get::@3->keyboard_event_get::@return] + //SEG597 [274] phi from keyboard_event_get::@3 to keyboard_event_get::@return [phi:keyboard_event_get::@3->keyboard_event_get::@return] breturn_from_b3: - //SEG574 [263] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#4 [phi:keyboard_event_get::@3->keyboard_event_get::@return#0] -- register_copy - //SEG575 [263] phi (byte) keyboard_event_get::return#2 = (byte) keyboard_event_get::return#1 [phi:keyboard_event_get::@3->keyboard_event_get::@return#1] -- register_copy + //SEG598 [274] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#4 [phi:keyboard_event_get::@3->keyboard_event_get::@return#0] -- register_copy + //SEG599 [274] phi (byte) keyboard_event_get::return#2 = (byte) keyboard_event_get::return#1 [phi:keyboard_event_get::@3->keyboard_event_get::@return#1] -- register_copy jmp breturn - //SEG576 [263] phi from keyboard_event_get to keyboard_event_get::@return [phi:keyboard_event_get->keyboard_event_get::@return] + //SEG600 [274] phi from keyboard_event_get to keyboard_event_get::@return [phi:keyboard_event_get->keyboard_event_get::@return] breturn_from_keyboard_event_get: - //SEG577 [263] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#13 [phi:keyboard_event_get->keyboard_event_get::@return#0] -- register_copy - //SEG578 [263] phi (byte) keyboard_event_get::return#2 = (byte/word/signed word/dword/signed dword) 255 [phi:keyboard_event_get->keyboard_event_get::@return#1] -- vbuz1=vbuc1 + //SEG601 [274] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#13 [phi:keyboard_event_get->keyboard_event_get::@return#0] -- register_copy + //SEG602 [274] phi (byte) keyboard_event_get::return#2 = (byte/word/signed word/dword/signed dword) 255 [phi:keyboard_event_get->keyboard_event_get::@return#1] -- vbuz1=vbuc1 lda #$ff sta return jmp breturn - //SEG579 keyboard_event_get::@return + //SEG603 keyboard_event_get::@return breturn: - //SEG580 [264] return + //SEG604 [275] return rts } -//SEG581 keyboard_event_scan +//SEG605 keyboard_event_scan keyboard_event_scan: { - .label _3 = $94 - .label _4 = $95 - .label _11 = $97 - .label _14 = $8c - .label _18 = $8e - .label _22 = $90 - .label _26 = $92 - .label row_scan = $8a - .label keycode = $3a - .label row = $37 - .label col = $39 - .label event_type = $96 - //SEG582 [266] phi from keyboard_event_scan to keyboard_event_scan::@1 [phi:keyboard_event_scan->keyboard_event_scan::@1] + .label _3 = $9e + .label _4 = $9f + .label _11 = $a1 + .label _14 = $96 + .label _18 = $98 + .label _22 = $9a + .label _26 = $9c + .label row_scan = $94 + .label keycode = $3e + .label row = $3b + .label col = $3d + .label event_type = $a0 + //SEG606 [277] phi from keyboard_event_scan to keyboard_event_scan::@1 [phi:keyboard_event_scan->keyboard_event_scan::@1] b1_from_keyboard_event_scan: - //SEG583 [266] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#19 [phi:keyboard_event_scan->keyboard_event_scan::@1#0] -- register_copy - //SEG584 [266] phi (byte) keyboard_event_scan::keycode#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#1] -- vbuz1=vbuc1 + //SEG607 [277] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#19 [phi:keyboard_event_scan->keyboard_event_scan::@1#0] -- register_copy + //SEG608 [277] phi (byte) keyboard_event_scan::keycode#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#1] -- vbuz1=vbuc1 lda #0 sta keycode - //SEG585 [266] phi (byte) keyboard_event_scan::row#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#2] -- vbuz1=vbuc1 + //SEG609 [277] phi (byte) keyboard_event_scan::row#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#2] -- vbuz1=vbuc1 lda #0 sta row jmp b1 - //SEG586 [266] phi from keyboard_event_scan::@3 to keyboard_event_scan::@1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1] + //SEG610 [277] phi from keyboard_event_scan::@3 to keyboard_event_scan::@1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1] b1_from_b3: - //SEG587 [266] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#13 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#0] -- register_copy - //SEG588 [266] phi (byte) keyboard_event_scan::keycode#11 = (byte) keyboard_event_scan::keycode#14 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#1] -- register_copy - //SEG589 [266] phi (byte) keyboard_event_scan::row#2 = (byte) keyboard_event_scan::row#1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#2] -- register_copy + //SEG611 [277] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#13 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#0] -- register_copy + //SEG612 [277] phi (byte) keyboard_event_scan::keycode#11 = (byte) keyboard_event_scan::keycode#14 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#1] -- register_copy + //SEG613 [277] phi (byte) keyboard_event_scan::row#2 = (byte) keyboard_event_scan::row#1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#2] -- register_copy jmp b1 - //SEG590 keyboard_event_scan::@1 + //SEG614 keyboard_event_scan::@1 b1: - //SEG591 [267] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 -- vbuz1=vbuz2 + //SEG615 [278] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 -- vbuz1=vbuz2 lda row sta keyboard_matrix_read.rowid - //SEG592 [268] call keyboard_matrix_read + //SEG616 [279] call keyboard_matrix_read jsr keyboard_matrix_read - //SEG593 [269] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 -- vbuz1=vbuz2 + //SEG617 [280] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 -- vbuz1=vbuz2 lda keyboard_matrix_read.return sta keyboard_matrix_read.return_2 jmp b25 - //SEG594 keyboard_event_scan::@25 + //SEG618 keyboard_event_scan::@25 b25: - //SEG595 [270] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 -- vbuz1=vbuz2 + //SEG619 [281] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 -- vbuz1=vbuz2 lda keyboard_matrix_read.return_2 sta row_scan - //SEG596 [271] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 -- vbuz1_neq_pbuc1_derefidx_vbuz2_then_la1 + //SEG620 [282] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 -- vbuz1_neq_pbuc1_derefidx_vbuz2_then_la1 lda row_scan ldy row cmp keyboard_scan_values,y bne b4_from_b25 jmp b13 - //SEG597 keyboard_event_scan::@13 + //SEG621 keyboard_event_scan::@13 b13: - //SEG598 [272] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 + //SEG622 [283] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lda #8 clc adc keycode sta keycode - //SEG599 [273] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] + //SEG623 [284] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] b3_from_b13: b3_from_b19: - //SEG600 [273] phi (byte) keyboard_events_size#13 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy - //SEG601 [273] phi (byte) keyboard_event_scan::keycode#14 = (byte) keyboard_event_scan::keycode#1 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#1] -- register_copy + //SEG624 [284] phi (byte) keyboard_events_size#13 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy + //SEG625 [284] phi (byte) keyboard_event_scan::keycode#14 = (byte) keyboard_event_scan::keycode#1 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#1] -- register_copy jmp b3 - //SEG602 keyboard_event_scan::@3 + //SEG626 keyboard_event_scan::@3 b3: - //SEG603 [274] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 -- vbuz1=_inc_vbuz1 + //SEG627 [285] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 -- vbuz1=_inc_vbuz1 inc row - //SEG604 [275] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG628 [286] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 -- vbuz1_neq_vbuc1_then_la1 lda row cmp #8 bne b1_from_b3 - //SEG605 [276] phi from keyboard_event_scan::@3 to keyboard_event_scan::@20 [phi:keyboard_event_scan::@3->keyboard_event_scan::@20] + //SEG629 [287] phi from keyboard_event_scan::@3 to keyboard_event_scan::@20 [phi:keyboard_event_scan::@3->keyboard_event_scan::@20] b20_from_b3: jmp b20 - //SEG606 keyboard_event_scan::@20 + //SEG630 keyboard_event_scan::@20 b20: - //SEG607 [277] call keyboard_event_pressed - //SEG608 [254] phi from keyboard_event_scan::@20 to keyboard_event_pressed [phi:keyboard_event_scan::@20->keyboard_event_pressed] + //SEG631 [288] call keyboard_event_pressed + //SEG632 [265] phi from keyboard_event_scan::@20 to keyboard_event_pressed [phi:keyboard_event_scan::@20->keyboard_event_pressed] keyboard_event_pressed_from_b20: - //SEG609 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_LSHIFT#0 [phi:keyboard_event_scan::@20->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG633 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_LSHIFT#0 [phi:keyboard_event_scan::@20->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_LSHIFT sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG610 [278] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 + //SEG634 [289] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_11 sta keyboard_event_pressed.return jmp b26 - //SEG611 keyboard_event_scan::@26 + //SEG635 keyboard_event_scan::@26 b26: - //SEG612 [279] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 -- vbuz1=vbuz2 + //SEG636 [290] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 -- vbuz1=vbuz2 lda keyboard_event_pressed.return sta _14 - //SEG613 [280] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 -- vbuz1_eq_0_then_la1 + //SEG637 [291] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 -- vbuz1_eq_0_then_la1 lda _14 cmp #0 beq b9_from_b26 - //SEG614 [281] phi from keyboard_event_scan::@26 to keyboard_event_scan::@21 [phi:keyboard_event_scan::@26->keyboard_event_scan::@21] + //SEG638 [292] phi from keyboard_event_scan::@26 to keyboard_event_scan::@21 [phi:keyboard_event_scan::@26->keyboard_event_scan::@21] b21_from_b26: jmp b21 - //SEG615 keyboard_event_scan::@21 + //SEG639 keyboard_event_scan::@21 b21: - //SEG616 [282] phi from keyboard_event_scan::@21 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9] + //SEG640 [293] phi from keyboard_event_scan::@21 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9] b9_from_b21: - //SEG617 [282] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9#0] -- vbuz1=vbuc1 + //SEG641 [293] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9#0] -- vbuz1=vbuc1 lda #0|KEY_MODIFIER_LSHIFT sta keyboard_modifiers jmp b9 - //SEG618 [282] phi from keyboard_event_scan::@26 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9] + //SEG642 [293] phi from keyboard_event_scan::@26 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9] b9_from_b26: - //SEG619 [282] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9#0] -- vbuz1=vbuc1 + //SEG643 [293] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9#0] -- vbuz1=vbuc1 lda #0 sta keyboard_modifiers jmp b9 - //SEG620 keyboard_event_scan::@9 + //SEG644 keyboard_event_scan::@9 b9: - //SEG621 [283] call keyboard_event_pressed - //SEG622 [254] phi from keyboard_event_scan::@9 to keyboard_event_pressed [phi:keyboard_event_scan::@9->keyboard_event_pressed] + //SEG645 [294] call keyboard_event_pressed + //SEG646 [265] phi from keyboard_event_scan::@9 to keyboard_event_pressed [phi:keyboard_event_scan::@9->keyboard_event_pressed] keyboard_event_pressed_from_b9: - //SEG623 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_RSHIFT#0 [phi:keyboard_event_scan::@9->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG647 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_RSHIFT#0 [phi:keyboard_event_scan::@9->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_RSHIFT sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG624 [284] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 + //SEG648 [295] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_11 sta keyboard_event_pressed.return_1 jmp b27 - //SEG625 keyboard_event_scan::@27 + //SEG649 keyboard_event_scan::@27 b27: - //SEG626 [285] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 -- vbuz1=vbuz2 + //SEG650 [296] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_1 sta _18 - //SEG627 [286] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 -- vbuz1_eq_0_then_la1 + //SEG651 [297] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 -- vbuz1_eq_0_then_la1 lda _18 cmp #0 beq b10_from_b27 jmp b22 - //SEG628 keyboard_event_scan::@22 + //SEG652 keyboard_event_scan::@22 b22: - //SEG629 [287] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 -- vbuz1=vbuz1_bor_vbuc1 + //SEG653 [298] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 -- vbuz1=vbuz1_bor_vbuc1 lda #KEY_MODIFIER_RSHIFT ora keyboard_modifiers sta keyboard_modifiers - //SEG630 [288] phi from keyboard_event_scan::@22 keyboard_event_scan::@27 to keyboard_event_scan::@10 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10] + //SEG654 [299] phi from keyboard_event_scan::@22 keyboard_event_scan::@27 to keyboard_event_scan::@10 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10] b10_from_b22: b10_from_b27: - //SEG631 [288] phi (byte) keyboard_modifiers#12 = (byte) keyboard_modifiers#3 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10#0] -- register_copy + //SEG655 [299] phi (byte) keyboard_modifiers#12 = (byte) keyboard_modifiers#3 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10#0] -- register_copy jmp b10 - //SEG632 keyboard_event_scan::@10 + //SEG656 keyboard_event_scan::@10 b10: - //SEG633 [289] call keyboard_event_pressed - //SEG634 [254] phi from keyboard_event_scan::@10 to keyboard_event_pressed [phi:keyboard_event_scan::@10->keyboard_event_pressed] + //SEG657 [300] call keyboard_event_pressed + //SEG658 [265] phi from keyboard_event_scan::@10 to keyboard_event_pressed [phi:keyboard_event_scan::@10->keyboard_event_pressed] keyboard_event_pressed_from_b10: - //SEG635 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_CTRL#0 [phi:keyboard_event_scan::@10->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG659 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_CTRL#0 [phi:keyboard_event_scan::@10->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_CTRL sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG636 [290] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 + //SEG660 [301] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_11 sta keyboard_event_pressed.return_2 jmp b28 - //SEG637 keyboard_event_scan::@28 + //SEG661 keyboard_event_scan::@28 b28: - //SEG638 [291] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 -- vbuz1=vbuz2 + //SEG662 [302] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_2 sta _22 - //SEG639 [292] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 -- vbuz1_eq_0_then_la1 + //SEG663 [303] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 -- vbuz1_eq_0_then_la1 lda _22 cmp #0 beq b11_from_b28 jmp b23 - //SEG640 keyboard_event_scan::@23 + //SEG664 keyboard_event_scan::@23 b23: - //SEG641 [293] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 -- vbuz1=vbuz1_bor_vbuc1 + //SEG665 [304] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 -- vbuz1=vbuz1_bor_vbuc1 lda #KEY_MODIFIER_CTRL ora keyboard_modifiers sta keyboard_modifiers - //SEG642 [294] phi from keyboard_event_scan::@23 keyboard_event_scan::@28 to keyboard_event_scan::@11 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11] + //SEG666 [305] phi from keyboard_event_scan::@23 keyboard_event_scan::@28 to keyboard_event_scan::@11 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11] b11_from_b23: b11_from_b28: - //SEG643 [294] phi (byte) keyboard_modifiers#13 = (byte) keyboard_modifiers#4 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11#0] -- register_copy + //SEG667 [305] phi (byte) keyboard_modifiers#13 = (byte) keyboard_modifiers#4 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11#0] -- register_copy jmp b11 - //SEG644 keyboard_event_scan::@11 + //SEG668 keyboard_event_scan::@11 b11: - //SEG645 [295] call keyboard_event_pressed - //SEG646 [254] phi from keyboard_event_scan::@11 to keyboard_event_pressed [phi:keyboard_event_scan::@11->keyboard_event_pressed] + //SEG669 [306] call keyboard_event_pressed + //SEG670 [265] phi from keyboard_event_scan::@11 to keyboard_event_pressed [phi:keyboard_event_scan::@11->keyboard_event_pressed] keyboard_event_pressed_from_b11: - //SEG647 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_COMMODORE#0 [phi:keyboard_event_scan::@11->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG671 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_COMMODORE#0 [phi:keyboard_event_scan::@11->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_COMMODORE sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG648 [296] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 + //SEG672 [307] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_11 sta keyboard_event_pressed.return_10 jmp b29 - //SEG649 keyboard_event_scan::@29 + //SEG673 keyboard_event_scan::@29 b29: - //SEG650 [297] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 -- vbuz1=vbuz2 + //SEG674 [308] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 -- vbuz1=vbuz2 lda keyboard_event_pressed.return_10 sta _26 - //SEG651 [298] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return -- vbuz1_eq_0_then_la1 + //SEG675 [309] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return -- vbuz1_eq_0_then_la1 lda _26 cmp #0 beq breturn jmp b24 - //SEG652 keyboard_event_scan::@24 + //SEG676 keyboard_event_scan::@24 b24: - //SEG653 [299] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 -- vbuz1=vbuz2_bor_vbuc1 + //SEG677 [310] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 -- vbuz1=vbuz2_bor_vbuc1 lda #KEY_MODIFIER_COMMODORE ora keyboard_modifiers sta keyboard_modifiers_5 jmp breturn - //SEG654 keyboard_event_scan::@return + //SEG678 keyboard_event_scan::@return breturn: - //SEG655 [300] return + //SEG679 [311] return rts - //SEG656 [301] phi from keyboard_event_scan::@25 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4] + //SEG680 [312] phi from keyboard_event_scan::@25 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4] b4_from_b25: - //SEG657 [301] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#0] -- register_copy - //SEG658 [301] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#11 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#1] -- register_copy - //SEG659 [301] phi (byte) keyboard_event_scan::col#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#2] -- vbuz1=vbuc1 + //SEG681 [312] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#0] -- register_copy + //SEG682 [312] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#11 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#1] -- register_copy + //SEG683 [312] phi (byte) keyboard_event_scan::col#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#2] -- vbuz1=vbuc1 lda #0 sta col jmp b4 - //SEG660 [301] phi from keyboard_event_scan::@5 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4] + //SEG684 [312] phi from keyboard_event_scan::@5 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4] b4_from_b5: - //SEG661 [301] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#30 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#0] -- register_copy - //SEG662 [301] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#15 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#1] -- register_copy - //SEG663 [301] phi (byte) keyboard_event_scan::col#2 = (byte) keyboard_event_scan::col#1 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#2] -- register_copy + //SEG685 [312] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#30 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#0] -- register_copy + //SEG686 [312] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#15 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#1] -- register_copy + //SEG687 [312] phi (byte) keyboard_event_scan::col#2 = (byte) keyboard_event_scan::col#1 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#2] -- register_copy jmp b4 - //SEG664 keyboard_event_scan::@4 + //SEG688 keyboard_event_scan::@4 b4: - //SEG665 [302] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) -- vbuz1=vbuz2_bxor_pbuc1_derefidx_vbuz3 + //SEG689 [313] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) -- vbuz1=vbuz2_bxor_pbuc1_derefidx_vbuz3 lda row_scan ldy row eor keyboard_scan_values,y sta _3 - //SEG666 [303] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuz1=vbuz2_band_pbuc1_derefidx_vbuz3 + //SEG690 [314] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuz1=vbuz2_band_pbuc1_derefidx_vbuz3 lda _3 ldy col and keyboard_matrix_col_bitmask,y sta _4 - //SEG667 [304] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 -- vbuz1_eq_0_then_la1 + //SEG691 [315] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 -- vbuz1_eq_0_then_la1 lda _4 cmp #0 beq b5_from_b4 jmp b15 - //SEG668 keyboard_event_scan::@15 + //SEG692 keyboard_event_scan::@15 b15: - //SEG669 [305] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 -- vbuz1_eq_vbuc1_then_la1 + //SEG693 [316] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 -- vbuz1_eq_vbuc1_then_la1 lda keyboard_events_size cmp #8 beq b5_from_b15 jmp b16 - //SEG670 keyboard_event_scan::@16 + //SEG694 keyboard_event_scan::@16 b16: - //SEG671 [306] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuz1=vbuz2_band_pbuc1_derefidx_vbuz3 + //SEG695 [317] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuz1=vbuz2_band_pbuc1_derefidx_vbuz3 lda row_scan ldy col and keyboard_matrix_col_bitmask,y sta event_type - //SEG672 [307] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 -- vbuz1_eq_0_then_la1 + //SEG696 [318] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 -- vbuz1_eq_0_then_la1 lda event_type cmp #0 beq b7 jmp b17 - //SEG673 keyboard_event_scan::@17 + //SEG697 keyboard_event_scan::@17 b17: - //SEG674 [308] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG698 [319] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 -- pbuc1_derefidx_vbuz1=vbuz2 lda keycode ldy keyboard_events_size sta keyboard_events,y - //SEG675 [309] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 + //SEG699 [320] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 inc keyboard_events_size - //SEG676 [310] phi from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 to keyboard_event_scan::@5 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5] + //SEG700 [321] phi from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 to keyboard_event_scan::@5 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5] b5_from_b15: b5_from_b17: b5_from_b4: b5_from_b7: - //SEG677 [310] phi (byte) keyboard_events_size#30 = (byte) keyboard_events_size#10 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5#0] -- register_copy + //SEG701 [321] phi (byte) keyboard_events_size#30 = (byte) keyboard_events_size#10 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5#0] -- register_copy jmp b5 - //SEG678 keyboard_event_scan::@5 + //SEG702 keyboard_event_scan::@5 b5: - //SEG679 [311] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 -- vbuz1=_inc_vbuz1 + //SEG703 [322] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 -- vbuz1=_inc_vbuz1 inc keycode - //SEG680 [312] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 -- vbuz1=_inc_vbuz1 + //SEG704 [323] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 -- vbuz1=_inc_vbuz1 inc col - //SEG681 [313] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 -- vbuz1_neq_vbuc1_then_la1 + //SEG705 [324] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 -- vbuz1_neq_vbuc1_then_la1 lda col cmp #8 bne b4_from_b5 jmp b19 - //SEG682 keyboard_event_scan::@19 + //SEG706 keyboard_event_scan::@19 b19: - //SEG683 [314] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG707 [325] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 -- pbuc1_derefidx_vbuz1=vbuz2 lda row_scan ldy row sta keyboard_scan_values,y jmp b3_from_b19 - //SEG684 keyboard_event_scan::@7 + //SEG708 keyboard_event_scan::@7 b7: - //SEG685 [315] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz2_bor_vbuc1 + //SEG709 [326] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz2_bor_vbuc1 lda #$40 ora keycode sta _11 - //SEG686 [316] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG710 [327] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 -- pbuc1_derefidx_vbuz1=vbuz2 lda _11 ldy keyboard_events_size sta keyboard_events,y - //SEG687 [317] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 + //SEG711 [328] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 inc keyboard_events_size jmp b5_from_b7 } -//SEG688 keyboard_matrix_read +//SEG712 keyboard_matrix_read keyboard_matrix_read: { - .label return = $98 - .label rowid = $88 - .label return_2 = $89 - //SEG689 [318] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) -- _deref_pbuc1=pbuc2_derefidx_vbuz1 + .label return = $a2 + .label rowid = $92 + .label return_2 = $93 + //SEG713 [329] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) -- _deref_pbuc1=pbuc2_derefidx_vbuz1 ldy rowid lda keyboard_matrix_row_bitmask,y sta CIA1_PORT_A - //SEG690 [319] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) -- vbuz1=_bnot__deref_pbuc1 + //SEG714 [330] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) -- vbuz1=_bnot__deref_pbuc1 lda CIA1_PORT_B eor #$ff sta return jmp breturn - //SEG691 keyboard_matrix_read::@return + //SEG715 keyboard_matrix_read::@return breturn: - //SEG692 [320] return + //SEG716 [331] return rts } -//SEG693 play_init +//SEG717 render_show +render_show: { + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const toD0182_return = (>(PLAYFIELD_SCREEN_2&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .label d018val = $40 + //SEG718 [332] if((byte) render_screen_show#15==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_show::toD0181 -- vbuz1_eq_0_then_la1 + lda render_screen_show + cmp #0 + beq toD0181_from_render_show + //SEG719 [333] phi from render_show to render_show::toD0182 [phi:render_show->render_show::toD0182] + toD0182_from_render_show: + jmp toD0182 + //SEG720 render_show::toD0182 + toD0182: + //SEG721 [334] phi from render_show::toD0182 to render_show::@2 [phi:render_show::toD0182->render_show::@2] + b2_from_toD0182: + //SEG722 [334] phi (byte) render_show::d018val#3 = (const byte) render_show::toD0182_return#0 [phi:render_show::toD0182->render_show::@2#0] -- vbuz1=vbuc1 + lda #toD0182_return + sta d018val + jmp b2 + //SEG723 render_show::@2 + b2: + //SEG724 [335] *((const byte*) D018#0) ← (byte) render_show::d018val#3 -- _deref_pbuc1=vbuz1 + lda d018val + sta D018 + jmp breturn + //SEG725 render_show::@return + breturn: + //SEG726 [336] return + rts + //SEG727 [337] phi from render_show to render_show::toD0181 [phi:render_show->render_show::toD0181] + toD0181_from_render_show: + jmp toD0181 + //SEG728 render_show::toD0181 + toD0181: + //SEG729 [334] phi from render_show::toD0181 to render_show::@2 [phi:render_show::toD0181->render_show::@2] + b2_from_toD0181: + //SEG730 [334] phi (byte) render_show::d018val#3 = (const byte) render_show::toD0181_return#0 [phi:render_show::toD0181->render_show::@2#0] -- vbuz1=vbuc1 + lda #toD0181_return + sta d018val + jmp b2 +} +//SEG731 play_init play_init: { - .label _1 = $99 - .label pli = $3d - .label idx = $3f - .label j = $3c - //SEG694 [322] phi from play_init to play_init::@1 [phi:play_init->play_init::@1] + .label _1 = $a3 + .label pli = $42 + .label idx = $44 + .label j = $41 + //SEG732 [339] phi from play_init to play_init::@1 [phi:play_init->play_init::@1] b1_from_play_init: - //SEG695 [322] phi (byte) play_init::idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#0] -- vbuz1=vbuc1 + //SEG733 [339] phi (byte) play_init::idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#0] -- vbuz1=vbuc1 lda #0 sta idx - //SEG696 [322] phi (byte*) play_init::pli#2 = (const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 [phi:play_init->play_init::@1#1] -- pbuz1=pbuc1 + //SEG734 [339] phi (byte*) play_init::pli#2 = (const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 [phi:play_init->play_init::@1#1] -- pbuz1=pbuc1 lda #playfield sta pli+1 - //SEG697 [322] phi (byte) play_init::j#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#2] -- vbuz1=vbuc1 + //SEG735 [339] phi (byte) play_init::j#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#2] -- vbuz1=vbuc1 lda #0 sta j jmp b1 - //SEG698 [322] phi from play_init::@1 to play_init::@1 [phi:play_init::@1->play_init::@1] + //SEG736 [339] phi from play_init::@1 to play_init::@1 [phi:play_init::@1->play_init::@1] b1_from_b1: - //SEG699 [322] phi (byte) play_init::idx#2 = (byte) play_init::idx#1 [phi:play_init::@1->play_init::@1#0] -- register_copy - //SEG700 [322] phi (byte*) play_init::pli#2 = (byte*) play_init::pli#1 [phi:play_init::@1->play_init::@1#1] -- register_copy - //SEG701 [322] phi (byte) play_init::j#2 = (byte) play_init::j#1 [phi:play_init::@1->play_init::@1#2] -- register_copy + //SEG737 [339] phi (byte) play_init::idx#2 = (byte) play_init::idx#1 [phi:play_init::@1->play_init::@1#0] -- register_copy + //SEG738 [339] phi (byte*) play_init::pli#2 = (byte*) play_init::pli#1 [phi:play_init::@1->play_init::@1#1] -- register_copy + //SEG739 [339] phi (byte) play_init::j#2 = (byte) play_init::j#1 [phi:play_init::@1->play_init::@1#2] -- register_copy jmp b1 - //SEG702 play_init::@1 + //SEG740 play_init::@1 b1: - //SEG703 [323] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + //SEG741 [340] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 lda j asl sta _1 - //SEG704 [324] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 -- pptc1_derefidx_vbuz1=pbuz2 + //SEG742 [341] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 -- pptc1_derefidx_vbuz1=pbuz2 ldy _1 lda pli sta playfield_lines,y lda pli+1 sta playfield_lines+1,y - //SEG705 [325] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG743 [342] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 -- pbuc1_derefidx_vbuz1=vbuz2 lda idx ldy j sta playfield_lines_idx,y - //SEG706 [326] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 -- pbuz1=pbuz1_plus_vbuc1 + //SEG744 [343] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 -- pbuz1=pbuz1_plus_vbuc1 lda pli clc adc #PLAYFIELD_COLS @@ -10597,293 +11294,263 @@ play_init: { bcc !+ inc pli+1 !: - //SEG707 [327] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 + //SEG745 [344] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lda #PLAYFIELD_COLS clc adc idx sta idx - //SEG708 [328] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuz1=_inc_vbuz1 + //SEG746 [345] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuz1=_inc_vbuz1 inc j - //SEG709 [329] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG747 [346] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 -- vbuz1_neq_vbuc1_then_la1 lda j cmp #PLAYFIELD_LINES-1+1 bne b1_from_b1 jmp b2 - //SEG710 play_init::@2 + //SEG748 play_init::@2 b2: - //SEG711 [330] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 -- _deref_pbuc1=vbuc2 + //SEG749 [347] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 -- _deref_pbuc1=vbuc2 lda #PLAYFIELD_COLS*PLAYFIELD_LINES sta playfield_lines_idx+PLAYFIELD_LINES jmp breturn - //SEG712 play_init::@return + //SEG750 play_init::@return breturn: - //SEG713 [331] return + //SEG751 [348] return rts } -//SEG714 sprites_irq_init +//SEG752 sprites_irq_init sprites_irq_init: { - //SEG715 asm { sei } + //SEG753 asm { sei } sei - //SEG716 [333] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG754 [350] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG717 asm { ldaCIA1_INTERRUPT } + //SEG755 asm { ldaCIA1_INTERRUPT } lda CIA1_INTERRUPT - //SEG718 [335] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 + //SEG756 [352] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 lda #PROCPORT_DDR_MEMORY_MASK sta PROCPORT_DDR - //SEG719 [336] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 + //SEG757 [353] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 lda #PROCPORT_RAM_IO sta PROCPORT - //SEG720 [337] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 + //SEG758 [354] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 lda #CIA_INTERRUPT_CLEAR sta CIA1_INTERRUPT - //SEG721 [338] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + //SEG759 [355] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda VIC_CONTROL and #$7f sta VIC_CONTROL - //SEG722 [339] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 -- _deref_pbuc1=vbuc2 + //SEG760 [356] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER_FIRST sta RASTER - //SEG723 [340] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG761 [357] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_ENABLE - //SEG724 [341] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 + //SEG762 [358] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 lda #irq sta HARDWARE_IRQ+1 - //SEG725 asm { cli } + //SEG763 asm { cli } cli jmp breturn - //SEG726 sprites_irq_init::@return + //SEG764 sprites_irq_init::@return breturn: - //SEG727 [343] return + //SEG765 [360] return rts } -//SEG728 sprites_init +//SEG766 sprites_init sprites_init: { - .label s2 = $9a - .label xpos = $41 - .label s = $40 - //SEG729 [344] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 -- _deref_pbuc1=vbuc2 + .label s2 = $a4 + .label xpos = $46 + .label s = $45 + //SEG767 [361] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 -- _deref_pbuc1=vbuc2 lda #$f sta SPRITES_ENABLE - //SEG730 [345] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 + //SEG768 [362] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 lda #0 sta SPRITES_MC - //SEG731 [346] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) -- _deref_pbuc1=_deref_pbuc2 + //SEG769 [363] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) -- _deref_pbuc1=_deref_pbuc2 lda SPRITES_MC sta SPRITES_EXPAND_Y - //SEG732 [347] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) -- _deref_pbuc1=_deref_pbuc2 + //SEG770 [364] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) -- _deref_pbuc1=_deref_pbuc2 lda SPRITES_EXPAND_Y sta SPRITES_EXPAND_X - //SEG733 [348] phi from sprites_init to sprites_init::@1 [phi:sprites_init->sprites_init::@1] + //SEG771 [365] phi from sprites_init to sprites_init::@1 [phi:sprites_init->sprites_init::@1] b1_from_sprites_init: - //SEG734 [348] phi (byte) sprites_init::xpos#2 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 [phi:sprites_init->sprites_init::@1#0] -- vbuz1=vbuc1 + //SEG772 [365] phi (byte) sprites_init::xpos#2 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 [phi:sprites_init->sprites_init::@1#0] -- vbuz1=vbuc1 lda #$18+$f*8 sta xpos - //SEG735 [348] phi (byte) sprites_init::s#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:sprites_init->sprites_init::@1#1] -- vbuz1=vbuc1 + //SEG773 [365] phi (byte) sprites_init::s#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:sprites_init->sprites_init::@1#1] -- vbuz1=vbuc1 lda #0 sta s jmp b1 - //SEG736 [348] phi from sprites_init::@1 to sprites_init::@1 [phi:sprites_init::@1->sprites_init::@1] + //SEG774 [365] phi from sprites_init::@1 to sprites_init::@1 [phi:sprites_init::@1->sprites_init::@1] b1_from_b1: - //SEG737 [348] phi (byte) sprites_init::xpos#2 = (byte) sprites_init::xpos#1 [phi:sprites_init::@1->sprites_init::@1#0] -- register_copy - //SEG738 [348] phi (byte) sprites_init::s#2 = (byte) sprites_init::s#1 [phi:sprites_init::@1->sprites_init::@1#1] -- register_copy + //SEG775 [365] phi (byte) sprites_init::xpos#2 = (byte) sprites_init::xpos#1 [phi:sprites_init::@1->sprites_init::@1#0] -- register_copy + //SEG776 [365] phi (byte) sprites_init::s#2 = (byte) sprites_init::s#1 [phi:sprites_init::@1->sprites_init::@1#1] -- register_copy jmp b1 - //SEG739 sprites_init::@1 + //SEG777 sprites_init::@1 b1: - //SEG740 [349] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + //SEG778 [366] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 lda s asl sta s2 - //SEG741 [350] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG779 [367] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 -- pbuc1_derefidx_vbuz1=vbuz2 lda xpos ldy s2 sta SPRITES_XPOS,y - //SEG742 [351] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 -- pbuc1_derefidx_vbuz1=vbuc2 + //SEG780 [368] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 -- pbuc1_derefidx_vbuz1=vbuc2 ldy s lda #BLACK sta SPRITES_COLS,y - //SEG743 [352] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 -- vbuz1=vbuz1_plus_vbuc1 + //SEG781 [369] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 -- vbuz1=vbuz1_plus_vbuc1 lda #$18 clc adc xpos sta xpos - //SEG744 [353] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuz1=_inc_vbuz1 + //SEG782 [370] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuz1=_inc_vbuz1 inc s - //SEG745 [354] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG783 [371] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 -- vbuz1_neq_vbuc1_then_la1 lda s cmp #4 bne b1_from_b1 jmp breturn - //SEG746 sprites_init::@return + //SEG784 sprites_init::@return breturn: - //SEG747 [355] return + //SEG785 [372] return rts } -//SEG748 render_init +//SEG786 render_init render_init: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f - .label _11 = $9b - .label _18 = $9c - .label li = $43 - .label i = $42 - .label c = $48 - .label line = $45 - .label l = $47 + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_CHARSET)>>6 + .label _12 = $a5 + .label _22 = $a7 + .label _23 = $a8 + .label c = $4a + .label line = $47 + .label l = $49 + .label li_1 = $4c + .label li_2 = $4e + .label i = $4b jmp vicSelectGfxBank1 - //SEG749 render_init::vicSelectGfxBank1 + //SEG787 render_init::vicSelectGfxBank1 vicSelectGfxBank1: - //SEG750 [357] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 + //SEG788 [374] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 lda #3 sta CIA2_PORT_A_DDR - //SEG751 [358] phi from render_init::vicSelectGfxBank1 to render_init::vicSelectGfxBank1_toDd001 [phi:render_init::vicSelectGfxBank1->render_init::vicSelectGfxBank1_toDd001] + //SEG789 [375] phi from render_init::vicSelectGfxBank1 to render_init::vicSelectGfxBank1_toDd001 [phi:render_init::vicSelectGfxBank1->render_init::vicSelectGfxBank1_toDd001] vicSelectGfxBank1_toDd001_from_vicSelectGfxBank1: jmp vicSelectGfxBank1_toDd001 - //SEG752 render_init::vicSelectGfxBank1_toDd001 + //SEG790 render_init::vicSelectGfxBank1_toDd001 vicSelectGfxBank1_toDd001: jmp vicSelectGfxBank1_b1 - //SEG753 render_init::vicSelectGfxBank1_@1 + //SEG791 render_init::vicSelectGfxBank1_@1 vicSelectGfxBank1_b1: - //SEG754 [359] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 -- _deref_pbuc1=vbuc2 + //SEG792 [376] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 -- _deref_pbuc1=vbuc2 lda #vicSelectGfxBank1_toDd001_return sta CIA2_PORT_A - //SEG755 [360] phi from render_init::vicSelectGfxBank1_@1 to render_init::toD0181 [phi:render_init::vicSelectGfxBank1_@1->render_init::toD0181] - toD0181_from_vicSelectGfxBank1_b1: - jmp toD0181 - //SEG756 render_init::toD0181 - toD0181: - jmp b8 - //SEG757 render_init::@8 - b8: - //SEG758 [361] *((const byte*) D018#0) ← (const byte) render_init::toD0181_return#0 -- _deref_pbuc1=vbuc2 - lda #toD0181_return - sta D018 - //SEG759 [362] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 + jmp b7 + //SEG793 render_init::@7 + b7: + //SEG794 [377] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 lda #VIC_ECM|VIC_DEN|VIC_RSEL|3 sta D011 - //SEG760 [363] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG795 [378] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BGCOL1 - //SEG761 [364] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 -- _deref_pbuc1=vbuc2 + //SEG796 [379] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 -- _deref_pbuc1=vbuc2 lda #BLUE sta BGCOL2 - //SEG762 [365] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 -- _deref_pbuc1=vbuc2 + //SEG797 [380] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 -- _deref_pbuc1=vbuc2 lda #CYAN sta BGCOL3 - //SEG763 [366] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 -- _deref_pbuc1=vbuc2 + //SEG798 [381] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 -- _deref_pbuc1=vbuc2 lda #GREY sta BGCOL4 - //SEG764 [367] call fill - //SEG765 [412] phi from render_init::@8 to fill [phi:render_init::@8->fill] - fill_from_b8: - jsr fill - //SEG766 [368] phi from render_init::@8 to render_init::@9 [phi:render_init::@8->render_init::@9] + //SEG799 [382] call render_screen_original + //SEG800 [412] phi from render_init::@7 to render_screen_original [phi:render_init::@7->render_screen_original] + render_screen_original_from_b7: + //SEG801 [412] phi (byte*) render_screen_original::screen#11 = (const byte*) PLAYFIELD_SCREEN_1#0 [phi:render_init::@7->render_screen_original#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_1 + sta render_screen_original.screen+1 + jsr render_screen_original + //SEG802 [383] phi from render_init::@7 to render_init::@8 [phi:render_init::@7->render_init::@8] + b8_from_b7: + jmp b8 + //SEG803 render_init::@8 + b8: + //SEG804 [384] call render_screen_original + //SEG805 [412] phi from render_init::@8 to render_screen_original [phi:render_init::@8->render_screen_original] + render_screen_original_from_b8: + //SEG806 [412] phi (byte*) render_screen_original::screen#11 = (const byte*) PLAYFIELD_SCREEN_2#0 [phi:render_init::@8->render_screen_original#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_2 + sta render_screen_original.screen+1 + jsr render_screen_original + //SEG807 [385] phi from render_init::@8 to render_init::@9 [phi:render_init::@8->render_init::@9] b9_from_b8: jmp b9 - //SEG767 render_init::@9 + //SEG808 render_init::@9 b9: - //SEG768 [369] call render_screen_original - //SEG769 [386] phi from render_init::@9 to render_screen_original [phi:render_init::@9->render_screen_original] - render_screen_original_from_b9: - jsr render_screen_original - //SEG770 [370] phi from render_init::@9 to render_init::@1 [phi:render_init::@9->render_init::@1] + //SEG809 [386] call fill + //SEG810 [406] phi from render_init::@9 to fill [phi:render_init::@9->fill] + fill_from_b9: + jsr fill + //SEG811 [387] phi from render_init::@9 to render_init::@1 [phi:render_init::@9->render_init::@1] b1_from_b9: - //SEG771 [370] phi (byte*) render_init::li#2 = (const byte*) PLAYFIELD_SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@9->render_init::@1#0] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN+2*$28+$10 - sta li+1 - //SEG772 [370] phi (byte) render_init::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@9->render_init::@1#1] -- vbuz1=vbuc1 - lda #0 - sta i - jmp b1 - //SEG773 [370] phi from render_init::@1 to render_init::@1 [phi:render_init::@1->render_init::@1] - b1_from_b1: - //SEG774 [370] phi (byte*) render_init::li#2 = (byte*) render_init::li#1 [phi:render_init::@1->render_init::@1#0] -- register_copy - //SEG775 [370] phi (byte) render_init::i#2 = (byte) render_init::i#1 [phi:render_init::@1->render_init::@1#1] -- register_copy - jmp b1 - //SEG776 render_init::@1 - b1: - //SEG777 [371] (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 - lda i - asl - sta _11 - //SEG778 [372] *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 -- pptc1_derefidx_vbuz1=pbuz2 - ldy _11 - lda li - sta screen_lines,y - lda li+1 - sta screen_lines+1,y - //SEG779 [373] (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 - lda li - clc - adc #$28 - sta li - bcc !+ - inc li+1 - !: - //SEG780 [374] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 -- vbuz1=_inc_vbuz1 - inc i - //SEG781 [375] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 -- vbuz1_neq_vbuc1_then_la1 - lda i - cmp #PLAYFIELD_LINES-1+1 - bne b1_from_b1 - //SEG782 [376] phi from render_init::@1 to render_init::@2 [phi:render_init::@1->render_init::@2] - b2_from_b1: - //SEG783 [376] phi (byte) render_init::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_init::@1->render_init::@2#0] -- vbuz1=vbuc1 + //SEG812 [387] phi (byte) render_init::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_init::@9->render_init::@1#0] -- vbuz1=vbuc1 lda #2 sta l - //SEG784 [376] phi (byte*) render_init::line#4 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@1->render_init::@2#1] -- pbuz1=pbuc1 + //SEG813 [387] phi (byte*) render_init::line#4 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@9->render_init::@1#1] -- pbuz1=pbuc1 lda #COLS+4*$28+$10 sta line+1 - jmp b2 - //SEG785 [376] phi from render_init::@5 to render_init::@2 [phi:render_init::@5->render_init::@2] - b2_from_b5: - //SEG786 [376] phi (byte) render_init::l#4 = (byte) render_init::l#1 [phi:render_init::@5->render_init::@2#0] -- register_copy - //SEG787 [376] phi (byte*) render_init::line#4 = (byte*) render_init::line#1 [phi:render_init::@5->render_init::@2#1] -- register_copy - jmp b2 - //SEG788 render_init::@2 - b2: - //SEG789 [377] phi from render_init::@2 to render_init::@3 [phi:render_init::@2->render_init::@3] - b3_from_b2: - //SEG790 [377] phi (byte) render_init::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@2->render_init::@3#0] -- vbuz1=vbuc1 + jmp b1 + //SEG814 [387] phi from render_init::@4 to render_init::@1 [phi:render_init::@4->render_init::@1] + b1_from_b4: + //SEG815 [387] phi (byte) render_init::l#4 = (byte) render_init::l#1 [phi:render_init::@4->render_init::@1#0] -- register_copy + //SEG816 [387] phi (byte*) render_init::line#4 = (byte*) render_init::line#1 [phi:render_init::@4->render_init::@1#1] -- register_copy + jmp b1 + //SEG817 render_init::@1 + b1: + //SEG818 [388] phi from render_init::@1 to render_init::@2 [phi:render_init::@1->render_init::@2] + b2_from_b1: + //SEG819 [388] phi (byte) render_init::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@1->render_init::@2#0] -- vbuz1=vbuc1 lda #0 sta c - jmp b3 - //SEG791 [377] phi from render_init::@3 to render_init::@3 [phi:render_init::@3->render_init::@3] - b3_from_b3: - //SEG792 [377] phi (byte) render_init::c#2 = (byte) render_init::c#1 [phi:render_init::@3->render_init::@3#0] -- register_copy - jmp b3 - //SEG793 render_init::@3 - b3: - //SEG794 [378] (byte*~) render_init::$18 ← (byte*) render_init::line#4 + (byte) render_init::c#2 -- pbuz1=pbuz2_plus_vbuz3 + jmp b2 + //SEG820 [388] phi from render_init::@2 to render_init::@2 [phi:render_init::@2->render_init::@2] + b2_from_b2: + //SEG821 [388] phi (byte) render_init::c#2 = (byte) render_init::c#1 [phi:render_init::@2->render_init::@2#0] -- register_copy + jmp b2 + //SEG822 render_init::@2 + b2: + //SEG823 [389] (byte*~) render_init::$12 ← (byte*) render_init::line#4 + (byte) render_init::c#2 -- pbuz1=pbuz2_plus_vbuz3 lda c clc adc line - sta _18 + sta _12 lda #0 adc line+1 - sta _18+1 - //SEG795 [379] *((byte*~) render_init::$18) ← (const byte) WHITE#0 -- _deref_pbuz1=vbuc1 + sta _12+1 + //SEG824 [390] *((byte*~) render_init::$12) ← (const byte) WHITE#0 -- _deref_pbuz1=vbuc1 lda #WHITE ldy #0 - sta (_18),y - //SEG796 [380] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 -- vbuz1=_inc_vbuz1 + sta (_12),y + //SEG825 [391] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 -- vbuz1=_inc_vbuz1 inc c - //SEG797 [381] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 -- vbuz1_neq_vbuc1_then_la1 + //SEG826 [392] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 -- vbuz1_neq_vbuc1_then_la1 lda c cmp #PLAYFIELD_COLS-1+1 - bne b3_from_b3 - jmp b5 - //SEG798 render_init::@5 - b5: - //SEG799 [382] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + bne b2_from_b2 + jmp b4 + //SEG827 render_init::@4 + b4: + //SEG828 [393] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 lda line clc adc #$28 @@ -10891,210 +11558,113 @@ render_init: { bcc !+ inc line+1 !: - //SEG800 [383] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 -- vbuz1=_inc_vbuz1 + //SEG829 [394] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 -- vbuz1=_inc_vbuz1 inc l - //SEG801 [384] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 -- vbuz1_neq_vbuc1_then_la1 + //SEG830 [395] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #PLAYFIELD_LINES-1+1 - bne b2_from_b5 - jmp breturn - //SEG802 render_init::@return - breturn: - //SEG803 [385] return - rts -} -//SEG804 render_screen_original -render_screen_original: { - .const SPACE = 0 - .label screen = $4d - .label x = $4f - .label c = $4c - .label orig = $4a - .label y = $49 - //SEG805 [387] phi from render_screen_original to render_screen_original::@1 [phi:render_screen_original->render_screen_original::@1] - b1_from_render_screen_original: - //SEG806 [387] phi (byte) render_screen_original::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original->render_screen_original::@1#0] -- vbuz1=vbuc1 - lda #0 - sta y - //SEG807 [387] phi (byte*) render_screen_original::orig#5 = (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_screen_original->render_screen_original::@1#1] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN_ORIGINAL+$20*2 - sta orig+1 - //SEG808 [387] phi (byte*) render_screen_original::screen#7 = (const byte*) PLAYFIELD_SCREEN#0 [phi:render_screen_original->render_screen_original::@1#2] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN - sta screen+1 - jmp b1 - //SEG809 [387] phi from render_screen_original::@9 to render_screen_original::@1 [phi:render_screen_original::@9->render_screen_original::@1] - b1_from_b9: - //SEG810 [387] phi (byte) render_screen_original::y#8 = (byte) render_screen_original::y#1 [phi:render_screen_original::@9->render_screen_original::@1#0] -- register_copy - //SEG811 [387] phi (byte*) render_screen_original::orig#5 = (byte*) render_screen_original::orig#1 [phi:render_screen_original::@9->render_screen_original::@1#1] -- register_copy - //SEG812 [387] phi (byte*) render_screen_original::screen#7 = (byte*) render_screen_original::screen#11 [phi:render_screen_original::@9->render_screen_original::@1#2] -- register_copy - jmp b1 - //SEG813 render_screen_original::@1 - b1: - //SEG814 [388] phi from render_screen_original::@1 to render_screen_original::@2 [phi:render_screen_original::@1->render_screen_original::@2] - b2_from_b1: - //SEG815 [388] phi (byte) render_screen_original::x#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original::@1->render_screen_original::@2#0] -- vbuz1=vbuc1 - lda #0 - sta x - //SEG816 [388] phi (byte*) render_screen_original::screen#4 = (byte*) render_screen_original::screen#7 [phi:render_screen_original::@1->render_screen_original::@2#1] -- register_copy - jmp b2 - //SEG817 [388] phi from render_screen_original::@2 to render_screen_original::@2 [phi:render_screen_original::@2->render_screen_original::@2] - b2_from_b2: - //SEG818 [388] phi (byte) render_screen_original::x#4 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2->render_screen_original::@2#0] -- register_copy - //SEG819 [388] phi (byte*) render_screen_original::screen#4 = (byte*) render_screen_original::screen#1 [phi:render_screen_original::@2->render_screen_original::@2#1] -- register_copy - jmp b2 - //SEG820 render_screen_original::@2 - b2: - //SEG821 [389] *((byte*) render_screen_original::screen#4) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 - lda #SPACE - ldy #0 - sta (screen),y - //SEG822 [390] (byte*) render_screen_original::screen#1 ← ++ (byte*) render_screen_original::screen#4 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG823 [391] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 -- vbuz1=_inc_vbuz1 - inc x - //SEG824 [392] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 -- vbuz1_neq_vbuc1_then_la1 - lda x - cmp #4 - bne b2_from_b2 - //SEG825 [393] phi from render_screen_original::@2 render_screen_original::@4 to render_screen_original::@3 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3] - b3_from_b2: + bne b1_from_b4 + //SEG831 [396] phi from render_init::@4 to render_init::@3 [phi:render_init::@4->render_init::@3] b3_from_b4: - //SEG826 [393] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#0] -- register_copy - //SEG827 [393] phi (byte) render_screen_original::x#5 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#1] -- register_copy - //SEG828 [393] phi (byte*) render_screen_original::orig#2 = (byte*) render_screen_original::orig#5 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#2] -- register_copy + //SEG832 [396] phi (byte*) render_init::li_2#2 = (const byte*) PLAYFIELD_SCREEN_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@4->render_init::@3#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_2+2*$28+$10 + sta li_2+1 + //SEG833 [396] phi (byte*) render_init::li_1#2 = (const byte*) PLAYFIELD_SCREEN_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@4->render_init::@3#1] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_1+2*$28+$10 + sta li_1+1 + //SEG834 [396] phi (byte) render_init::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@4->render_init::@3#2] -- vbuz1=vbuc1 + lda #0 + sta i jmp b3 - //SEG829 render_screen_original::@3 + //SEG835 [396] phi from render_init::@3 to render_init::@3 [phi:render_init::@3->render_init::@3] + b3_from_b3: + //SEG836 [396] phi (byte*) render_init::li_2#2 = (byte*) render_init::li_2#1 [phi:render_init::@3->render_init::@3#0] -- register_copy + //SEG837 [396] phi (byte*) render_init::li_1#2 = (byte*) render_init::li_1#1 [phi:render_init::@3->render_init::@3#1] -- register_copy + //SEG838 [396] phi (byte) render_init::i#2 = (byte) render_init::i#1 [phi:render_init::@3->render_init::@3#2] -- register_copy + jmp b3 + //SEG839 render_init::@3 b3: - //SEG830 [394] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=_deref_pbuz2_plus_1 - ldy #0 - lda (orig),y + //SEG840 [397] (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + lda i + asl + sta _22 + //SEG841 [398] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 -- pptc1_derefidx_vbuz1=pbuz2 + ldy _22 + lda li_1 + sta screen_lines_1,y + lda li_1+1 + sta screen_lines_1+1,y + //SEG842 [399] (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_rol_1 + lda i + asl + sta _23 + //SEG843 [400] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 -- pptc1_derefidx_vbuz1=pbuz2 + ldy _23 + lda li_2 + sta screen_lines_2,y + lda li_2+1 + sta screen_lines_2+1,y + //SEG844 [401] (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + lda li_1 clc - adc #1 - sta c - //SEG831 [395] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 -- pbuz1=_inc_pbuz1 - inc orig - bne !+ - inc orig+1 + adc #$28 + sta li_1 + bcc !+ + inc li_1+1 !: - //SEG832 [396] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 -- vbuz1_gt_vbuc1_then_la1 - lda x - cmp #$e - beq !+ - bcs b11 + //SEG845 [402] (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + lda li_2 + clc + adc #$28 + sta li_2 + bcc !+ + inc li_2+1 !: - //SEG833 [397] phi from render_screen_original::@3 render_screen_original::@7 to render_screen_original::@4 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4] - b4_from_b3: - b4_from_b7: - //SEG834 [397] phi (byte) render_screen_original::c#2 = (byte) render_screen_original::c#0 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4#0] -- register_copy - jmp b4 - //SEG835 render_screen_original::@4 - b4: - //SEG836 [398] *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 -- _deref_pbuz1=vbuz2 - lda c - ldy #0 - sta (screen),y - //SEG837 [399] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG838 [400] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 -- vbuz1=_inc_vbuz1 - inc x - //SEG839 [401] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 -- vbuz1_neq_vbuc1_then_la1 - lda x - cmp #$24 - bne b3_from_b4 - //SEG840 [402] phi from render_screen_original::@4 render_screen_original::@5 to render_screen_original::@5 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5] - b5_from_b4: - b5_from_b5: - //SEG841 [402] phi (byte) render_screen_original::x#7 = (byte) render_screen_original::x#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#0] -- register_copy - //SEG842 [402] phi (byte*) render_screen_original::screen#6 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#1] -- register_copy - jmp b5 - //SEG843 render_screen_original::@5 - b5: - //SEG844 [403] *((byte*) render_screen_original::screen#6) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 - lda #SPACE - ldy #0 - sta (screen),y - //SEG845 [404] (byte*) render_screen_original::screen#11 ← ++ (byte*) render_screen_original::screen#6 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG846 [405] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 -- vbuz1=_inc_vbuz1 - inc x - //SEG847 [406] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 -- vbuz1_neq_vbuc1_then_la1 - lda x - cmp #$28 - bne b5_from_b5 - jmp b9 - //SEG848 render_screen_original::@9 - b9: - //SEG849 [407] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 -- vbuz1=_inc_vbuz1 - inc y - //SEG850 [408] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 -- vbuz1_neq_vbuc1_then_la1 - lda y - cmp #$19 - bne b1_from_b9 + //SEG846 [403] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 -- vbuz1=_inc_vbuz1 + inc i + //SEG847 [404] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 -- vbuz1_neq_vbuc1_then_la1 + lda i + cmp #PLAYFIELD_LINES-1+1 + bne b3_from_b3 jmp breturn - //SEG851 render_screen_original::@return + //SEG848 render_init::@return breturn: - //SEG852 [409] return + //SEG849 [405] return rts - //SEG853 render_screen_original::@11 - b11: - //SEG854 [410] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 -- vbuz1_lt_vbuc1_then_la1 - lda x - cmp #$1b - bcc b7 - //SEG855 [397] phi from render_screen_original::@11 to render_screen_original::@4 [phi:render_screen_original::@11->render_screen_original::@4] - b4_from_b11: - jmp b4 - //SEG856 render_screen_original::@7 - b7: - //SEG857 [411] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 -- vbuz1=vbuz1_bor_vbuc1 - lda #$c0 - ora c - sta c - jmp b4_from_b7 } -//SEG858 fill +//SEG850 fill fill: { .const size = $3e8 .label end = COLS+size .label addr = $50 - //SEG859 [413] phi from fill to fill::@1 [phi:fill->fill::@1] + //SEG851 [407] phi from fill to fill::@1 [phi:fill->fill::@1] b1_from_fill: - //SEG860 [413] phi (byte*) fill::addr#2 = (const byte*) COLS#0 [phi:fill->fill::@1#0] -- pbuz1=pbuc1 + //SEG852 [407] phi (byte*) fill::addr#2 = (const byte*) COLS#0 [phi:fill->fill::@1#0] -- pbuz1=pbuc1 lda #COLS sta addr+1 jmp b1 - //SEG861 [413] phi from fill::@1 to fill::@1 [phi:fill::@1->fill::@1] + //SEG853 [407] phi from fill::@1 to fill::@1 [phi:fill::@1->fill::@1] b1_from_b1: - //SEG862 [413] phi (byte*) fill::addr#2 = (byte*) fill::addr#1 [phi:fill::@1->fill::@1#0] -- register_copy + //SEG854 [407] phi (byte*) fill::addr#2 = (byte*) fill::addr#1 [phi:fill::@1->fill::@1#0] -- register_copy jmp b1 - //SEG863 fill::@1 + //SEG855 fill::@1 b1: - //SEG864 [414] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 -- _deref_pbuz1=vbuc1 + //SEG856 [408] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 -- _deref_pbuz1=vbuc1 lda #DARK_GREY ldy #0 sta (addr),y - //SEG865 [415] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 -- pbuz1=_inc_pbuz1 + //SEG857 [409] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 -- pbuz1=_inc_pbuz1 inc addr bne !+ inc addr+1 !: - //SEG866 [416] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 -- pbuz1_neq_pbuc1_then_la1 + //SEG858 [410] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 -- pbuz1_neq_pbuc1_then_la1 lda addr+1 cmp #>end bne b1_from_b1 @@ -11102,160 +11672,331 @@ fill: { cmp #render_screen_original::@1] + b1_from_render_screen_original: + //SEG863 [413] phi (byte) render_screen_original::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original->render_screen_original::@1#0] -- vbuz1=vbuc1 + lda #0 + sta y + //SEG864 [413] phi (byte*) render_screen_original::orig#5 = (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_screen_original->render_screen_original::@1#1] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_ORIGINAL+$20*2 + sta orig+1 + //SEG865 [413] phi (byte*) render_screen_original::screen#8 = (byte*) render_screen_original::screen#11 [phi:render_screen_original->render_screen_original::@1#2] -- register_copy + jmp b1 + //SEG866 [413] phi from render_screen_original::@9 to render_screen_original::@1 [phi:render_screen_original::@9->render_screen_original::@1] + b1_from_b9: + //SEG867 [413] phi (byte) render_screen_original::y#8 = (byte) render_screen_original::y#1 [phi:render_screen_original::@9->render_screen_original::@1#0] -- register_copy + //SEG868 [413] phi (byte*) render_screen_original::orig#5 = (byte*) render_screen_original::orig#1 [phi:render_screen_original::@9->render_screen_original::@1#1] -- register_copy + //SEG869 [413] phi (byte*) render_screen_original::screen#8 = (byte*) render_screen_original::screen#12 [phi:render_screen_original::@9->render_screen_original::@1#2] -- register_copy + jmp b1 + //SEG870 render_screen_original::@1 + b1: + //SEG871 [414] phi from render_screen_original::@1 to render_screen_original::@2 [phi:render_screen_original::@1->render_screen_original::@2] + b2_from_b1: + //SEG872 [414] phi (byte) render_screen_original::x#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original::@1->render_screen_original::@2#0] -- vbuz1=vbuc1 + lda #0 + sta x + //SEG873 [414] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#8 [phi:render_screen_original::@1->render_screen_original::@2#1] -- register_copy + jmp b2 + //SEG874 [414] phi from render_screen_original::@2 to render_screen_original::@2 [phi:render_screen_original::@2->render_screen_original::@2] + b2_from_b2: + //SEG875 [414] phi (byte) render_screen_original::x#4 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2->render_screen_original::@2#0] -- register_copy + //SEG876 [414] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@2->render_screen_original::@2#1] -- register_copy + jmp b2 + //SEG877 render_screen_original::@2 + b2: + //SEG878 [415] *((byte*) render_screen_original::screen#5) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 + lda #SPACE + ldy #0 + sta (screen),y + //SEG879 [416] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG880 [417] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 -- vbuz1=_inc_vbuz1 + inc x + //SEG881 [418] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 -- vbuz1_neq_vbuc1_then_la1 + lda x + cmp #4 + bne b2_from_b2 + //SEG882 [419] phi from render_screen_original::@2 render_screen_original::@4 to render_screen_original::@3 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3] + b3_from_b2: + b3_from_b4: + //SEG883 [419] phi (byte*) render_screen_original::screen#10 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#0] -- register_copy + //SEG884 [419] phi (byte) render_screen_original::x#5 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#1] -- register_copy + //SEG885 [419] phi (byte*) render_screen_original::orig#2 = (byte*) render_screen_original::orig#5 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#2] -- register_copy + jmp b3 + //SEG886 render_screen_original::@3 + b3: + //SEG887 [420] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=_deref_pbuz2_plus_1 + ldy #0 + lda (orig),y + clc + adc #1 + sta c + //SEG888 [421] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 -- pbuz1=_inc_pbuz1 + inc orig + bne !+ + inc orig+1 + !: + //SEG889 [422] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 -- vbuz1_gt_vbuc1_then_la1 + lda x + cmp #$e + beq !+ + bcs b11 + !: + //SEG890 [423] phi from render_screen_original::@3 render_screen_original::@7 to render_screen_original::@4 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4] + b4_from_b3: + b4_from_b7: + //SEG891 [423] phi (byte) render_screen_original::c#2 = (byte) render_screen_original::c#0 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4#0] -- register_copy + jmp b4 + //SEG892 render_screen_original::@4 + b4: + //SEG893 [424] *((byte*) render_screen_original::screen#10) ← (byte) render_screen_original::c#2 -- _deref_pbuz1=vbuz2 + lda c + ldy #0 + sta (screen),y + //SEG894 [425] (byte*) render_screen_original::screen#3 ← ++ (byte*) render_screen_original::screen#10 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG895 [426] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 -- vbuz1=_inc_vbuz1 + inc x + //SEG896 [427] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 -- vbuz1_neq_vbuc1_then_la1 + lda x + cmp #$24 + bne b3_from_b4 + //SEG897 [428] phi from render_screen_original::@4 render_screen_original::@5 to render_screen_original::@5 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5] + b5_from_b4: + b5_from_b5: + //SEG898 [428] phi (byte) render_screen_original::x#7 = (byte) render_screen_original::x#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#0] -- register_copy + //SEG899 [428] phi (byte*) render_screen_original::screen#7 = (byte*) render_screen_original::screen#3 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#1] -- register_copy + jmp b5 + //SEG900 render_screen_original::@5 + b5: + //SEG901 [429] *((byte*) render_screen_original::screen#7) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 + lda #SPACE + ldy #0 + sta (screen),y + //SEG902 [430] (byte*) render_screen_original::screen#12 ← ++ (byte*) render_screen_original::screen#7 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG903 [431] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 -- vbuz1=_inc_vbuz1 + inc x + //SEG904 [432] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 -- vbuz1_neq_vbuc1_then_la1 + lda x + cmp #$28 + bne b5_from_b5 + jmp b9 + //SEG905 render_screen_original::@9 + b9: + //SEG906 [433] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 -- vbuz1=_inc_vbuz1 + inc y + //SEG907 [434] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 -- vbuz1_neq_vbuc1_then_la1 + lda y + cmp #$19 + bne b1_from_b9 + jmp breturn + //SEG908 render_screen_original::@return + breturn: + //SEG909 [435] return + rts + //SEG910 render_screen_original::@11 + b11: + //SEG911 [436] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 -- vbuz1_lt_vbuc1_then_la1 + lda x + cmp #$1b + bcc b7 + //SEG912 [423] phi from render_screen_original::@11 to render_screen_original::@4 [phi:render_screen_original::@11->render_screen_original::@4] + b4_from_b11: + jmp b4 + //SEG913 render_screen_original::@7 + b7: + //SEG914 [437] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 -- vbuz1=vbuz1_bor_vbuc1 + lda #$c0 + ora c + sta c + jmp b4_from_b7 +} +//SEG915 sid_rnd_init sid_rnd_init: { - //SEG870 [418] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 -- _deref_pwuc1=vwuc2 + //SEG916 [438] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 -- _deref_pwuc1=vwuc2 lda #<$ffff sta SID_VOICE3_FREQ lda #>$ffff sta SID_VOICE3_FREQ+1 - //SEG871 [419] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 -- _deref_pbuc1=vbuc2 + //SEG917 [439] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 -- _deref_pbuc1=vbuc2 lda #SID_CONTROL_NOISE sta SID_VOICE3_CONTROL jmp breturn - //SEG872 sid_rnd_init::@return + //SEG918 sid_rnd_init::@return breturn: - //SEG873 [420] return + //SEG919 [440] return rts } -//SEG874 irq +//SEG920 irq irq: { .const toSpritePtr2_return = PLAYFIELD_SPRITES>>6 - .label _3 = $a5 - .label ypos = $9e - .label ptr = $9f - .label ptr_1 = $a0 - .label ptr_2 = $a1 - .label raster_next = $53 - //SEG875 entry interrupt(HARDWARE_CLOBBER) + .label _3 = $b0 + .label ypos = $a9 + .label ptr = $aa + .label ptr_1 = $ab + .label ptr_2 = $ac + .label raster_next = $5a + //SEG921 entry interrupt(HARDWARE_CLOBBER) sta rega+1 stx regx+1 sty regy+1 - //SEG876 [421] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 -- _deref_pbuc1=vbuc2 + //SEG922 [441] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 -- _deref_pbuc1=vbuc2 lda #DARK_GREY sta BORDERCOL - //SEG877 [422] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 -- vbuz1=vbuz2 + //SEG923 [442] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 -- vbuz1=vbuz2 lda irq_sprite_ypos sta ypos - //SEG878 [423] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 + //SEG924 [443] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 lda ypos sta SPRITES_YPOS - //SEG879 [424] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 + //SEG925 [444] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 lda ypos sta SPRITES_YPOS+2 - //SEG880 [425] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 + //SEG926 [445] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 lda ypos sta SPRITES_YPOS+4 - //SEG881 [426] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 + //SEG927 [446] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuz1 lda ypos sta SPRITES_YPOS+6 jmp b1 - //SEG882 irq::@1 + //SEG928 irq::@1 b1: - //SEG883 [427] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 -- _deref_pbuc1_neq_vbuz1_then_la1 + //SEG929 [447] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 -- _deref_pbuc1_neq_vbuz1_then_la1 lda RASTER cmp irq_sprite_ypos bne b1 jmp b5 - //SEG884 irq::@5 + //SEG930 irq::@5 b5: - //SEG885 [428] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuz1=vbuz2 + //SEG931 [448] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuz1=vbuz2 lda irq_sprite_ptr sta ptr - //SEG886 [429] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuz1 + //SEG932 [449] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuz1 lda ptr - sta PLAYFIELD_SPRITE_PTRS - //SEG887 [430] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuz1=_inc_vbuz2 + sta PLAYFIELD_SPRITE_PTRS_1 + //SEG933 [450] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuz1 + lda ptr + sta PLAYFIELD_SPRITE_PTRS_2 + //SEG934 [451] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuz1=_inc_vbuz2 ldy ptr iny sty ptr_1 - //SEG888 [431] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + //SEG935 [452] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 lda ptr_1 - sta PLAYFIELD_SPRITE_PTRS+1 - //SEG889 [432] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + sta PLAYFIELD_SPRITE_PTRS_1+1 + //SEG936 [453] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 lda ptr_1 - sta PLAYFIELD_SPRITE_PTRS+2 - //SEG890 [433] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuz1=_inc_vbuz2 + sta PLAYFIELD_SPRITE_PTRS_2+1 + //SEG937 [454] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + lda ptr_1 + sta PLAYFIELD_SPRITE_PTRS_1+2 + //SEG938 [455] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuz1 + lda ptr_1 + sta PLAYFIELD_SPRITE_PTRS_2+2 + //SEG939 [456] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuz1=_inc_vbuz2 ldy ptr_1 iny sty ptr_2 - //SEG891 [434] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuz1 + //SEG940 [457] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuz1 lda ptr_2 - sta PLAYFIELD_SPRITE_PTRS+3 - //SEG892 [435] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz2 + sta PLAYFIELD_SPRITE_PTRS_1+3 + //SEG941 [458] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuz1 + lda ptr_2 + sta PLAYFIELD_SPRITE_PTRS_2+3 + //SEG942 [459] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz2 ldy irq_cnt iny sty irq_cnt_1 - //SEG893 [436] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG943 [460] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 lda irq_cnt_1 cmp #$a beq b2 jmp b6 - //SEG894 irq::@6 + //SEG944 irq::@6 b6: - //SEG895 [437] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 + //SEG945 [461] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 lda #$15 clc adc irq_raster_next sta irq_raster_next_2 - //SEG896 [438] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 + //SEG946 [462] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz2_plus_vbuc1 lda #$15 clc adc irq_sprite_ypos sta irq_sprite_ypos_2 - //SEG897 [439] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 + //SEG947 [463] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz2_plus_vbuc1 lda #3 clc adc irq_sprite_ptr sta irq_sprite_ptr_2 - //SEG898 [440] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] + //SEG948 [464] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] b3_from_b6: b3_from_b9: - //SEG899 [440] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy + //SEG949 [464] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy jmp b3 - //SEG900 irq::@3 + //SEG950 irq::@3 b3: - //SEG901 [441] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuz1=vbuz2 + //SEG951 [465] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuz1=vbuz2 lda irq_raster_next_12 sta raster_next - //SEG902 [442] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 + //SEG952 [466] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuz1=vbuz2_band_vbuc1 lda #7 and raster_next sta _3 - //SEG903 [443] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuz1_neq_vbuc1_then_la1 + //SEG953 [467] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuz1_neq_vbuc1_then_la1 lda _3 cmp #3 bne b4_from_b3 jmp b8 - //SEG904 irq::@8 + //SEG954 irq::@8 b8: - //SEG905 [444] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_minus_1 + //SEG955 [468] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_minus_1 dec raster_next - //SEG906 [445] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] + //SEG956 [469] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] b4_from_b3: b4_from_b8: - //SEG907 [445] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy + //SEG957 [469] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy jmp b4 - //SEG908 irq::@4 + //SEG958 irq::@4 b4: - //SEG909 [446] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuz1 + //SEG959 [470] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuz1 lda raster_next sta RASTER - //SEG910 [447] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG960 [471] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG911 [448] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG961 [472] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BORDERCOL jmp breturn - //SEG912 irq::@return + //SEG962 irq::@return breturn: - //SEG913 [449] return - exit interrupt(HARDWARE_CLOBBER) + //SEG963 [473] return - exit interrupt(HARDWARE_CLOBBER) rega: lda #00 regx: @@ -11263,26 +12004,26 @@ irq: { regy: ldy #00 rti - //SEG914 irq::@2 + //SEG964 irq::@2 b2: - //SEG915 [450] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 + //SEG965 [474] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt_13 - //SEG916 [451] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 + //SEG966 [475] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next_1 - //SEG917 [452] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 + //SEG967 [476] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos_1 - //SEG918 [453] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] + //SEG968 [477] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] toSpritePtr2_from_b2: jmp toSpritePtr2 - //SEG919 irq::toSpritePtr2 + //SEG969 irq::toSpritePtr2 toSpritePtr2: jmp b9 - //SEG920 irq::@9 + //SEG970 irq::@9 b9: - //SEG921 [454] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 + //SEG971 [478] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 lda #toSpritePtr2_return sta irq_sprite_ptr_1 jmp b3_from_b9 @@ -11308,7 +12049,10 @@ irq: { PIECES_CHARS: .byte $58, $59, $99, $59, $58, $58, $99 PIECES_START_X: .byte 4, 4, 4, 4, 4, 3, 4 PIECES_START_Y: .byte 2, 1, 1, 1, 2, 0, 1 - screen_lines: .fill 2*PLAYFIELD_LINES, 0 + .align $80 + screen_lines_1: .fill 2*PLAYFIELD_LINES, 0 + .align $40 + screen_lines_2: .fill 2*PLAYFIELD_LINES, 0 playfield_lines: .fill 2*PLAYFIELD_LINES, 0 playfield: .fill PLAYFIELD_LINES*PLAYFIELD_COLS, 0 PIECES: .word PIECE_T, PIECE_S, PIECE_Z, PIECE_J, PIECE_O, PIECE_I, PIECE_L @@ -11340,772 +12084,828 @@ Statement [5] (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dw Statement [7] (byte) irq_sprite_ptr#0 ← (const byte) toSpritePtr1_return#0 [ ] ( ) always clobbers reg byte a Statement [8] (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( ) always clobbers reg byte a Statement [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 [ current_ypos#83 current_ypos#18 current_xpos#109 current_xpos#23 current_piece_gfx#99 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ( main:10 [ current_ypos#83 current_ypos#18 current_xpos#109 current_xpos#23 current_piece_gfx#99 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:3 [ current_ypos#9 current_ypos#83 current_ypos#84 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:124 [ play_spawn_current::$3 ] -Statement [31] (byte*~) current_piece#72 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#72 ] ( main:10 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#72 ] ) always clobbers reg byte a -Statement [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ( main:10 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] -Statement [34] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@7 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ( main:10 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ) always clobbers reg byte a -Statement [45] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$12 [ current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ( main:10 [ current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:89 [ main::key_event#0 ] -Statement [50] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$13 [ current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ( main:10 [ current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ) always clobbers reg byte a -Statement [55] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$14 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ( main:10 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ) always clobbers reg byte a -Statement [61] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 current_xpos#110 current_piece_gfx#100 ] ( main:10 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 current_xpos#110 current_piece_gfx#100 ] ) always clobbers reg byte a -Statement [66] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] -Statement [69] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] -Statement [76] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#2) [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] -Statement [79] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:12 [ render_current::c#2 render_current::c#1 ] -Statement [83] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ) always clobbers reg byte a -Statement [89] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] main:10::render_playfield:58 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] -Statement [90] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) [ render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] main:10::render_playfield:58 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ) always clobbers reg byte a -Statement [92] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) [ render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] main:10::render_playfield:58 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ) always clobbers reg byte a reg byte y -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:124 [ play_spawn_current::$3 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:17 [ render_playfield::c#2 render_playfield::c#1 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:17 [ render_playfield::c#2 render_playfield::c#1 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] -Statement [104] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:97 [ main::render#2 ] -Statement [105] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ) always clobbers reg byte a -Statement [110] (byte*~) current_piece#76 ← (byte*) current_piece#10 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:23 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:22 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] -Statement [116] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ) always clobbers reg byte a -Statement [117] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ) always clobbers reg byte a -Statement [118] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ) always clobbers reg byte a -Statement [120] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 [ play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:93 [ main::render#1 ] -Statement [121] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ) always clobbers reg byte a -Statement [123] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] -Statement [127] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:29 [ play_collision::c#2 play_collision::c#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:114 [ play_collision::i#1 ] -Statement [131] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ) always clobbers reg byte a -Statement [134] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a -Statement [148] (byte*~) current_piece#75 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ( main:10::play_move_leftright:47 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ) always clobbers reg byte a -Statement [159] (byte*~) current_piece#74 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ( main:10::play_move_leftright:47 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ) always clobbers reg byte a -Statement [183] (byte*~) current_piece#73 ← (byte*) current_piece#16 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ( main:10::play_move_down:42 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ) always clobbers reg byte a -Statement [194] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ( main:10::play_move_down:42 [ keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ) always clobbers reg byte a -Statement [202] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:42 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] -Statement [203] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Statement [204] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Statement [205] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Statement [206] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ) always clobbers reg byte a -Statement [212] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ play_spawn_current::piece_idx#1 ] ( main:10::play_spawn_current:23 [ play_spawn_current::piece_idx#1 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 play_spawn_current::piece_idx#1 ] ) always clobbers reg byte a -Statement [227] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 [ play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ( main:10::play_move_down:42::play_remove_lines:191 [ keyboard_events_size#16 main::key_event#0 play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:44 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] -Statement [234] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ play_remove_lines::w#6 ] ( main:10::play_move_down:42::play_remove_lines:191 [ keyboard_events_size#16 main::key_event#0 play_remove_lines::w#6 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:47 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] -Statement [237] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ) always clobbers reg byte a -Statement [239] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] -Statement [243] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:52 [ play_lock_current::c#2 play_lock_current::c#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:131 [ play_lock_current::i#1 ] -Statement [244] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a -Statement [255] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 [ keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ( main:10::play_move_down:42::keyboard_event_pressed:169 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:277 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:283 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:289 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:295 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:32 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:56 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] -Statement [257] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ( main:10::play_move_down:42::keyboard_event_pressed:169 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:277 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:283 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:289 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:295 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] -Statement [258] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) [ keyboard_event_pressed::return#11 ] ( main:10::play_move_down:42::keyboard_event_pressed:169 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:277 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:283 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:289 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:295 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::return#11 ] ) always clobbers reg byte a -Statement [272] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 [ keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] -Statement [287] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 [ keyboard_events_size#13 keyboard_modifiers#3 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#3 ] ) always clobbers reg byte a -Statement [293] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 [ keyboard_events_size#13 keyboard_modifiers#4 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#4 ] ) always clobbers reg byte a -Statement [299] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 [ keyboard_events_size#13 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 ] ) always clobbers reg byte a -Statement [302] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:57 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] -Statement [303] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ) always clobbers reg byte a -Statement [306] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ) always clobbers reg byte a -Statement [308] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ) always clobbers reg byte a -Statement [314] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 [ keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ) always clobbers reg byte a -Statement [315] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ) always clobbers reg byte a -Statement [318] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) [ ] ( main:10::keyboard_event_scan:36::keyboard_matrix_read:268 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 ] ) always clobbers reg byte a -Statement [319] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) [ keyboard_matrix_read::return#0 ] ( main:10::keyboard_event_scan:36::keyboard_matrix_read:268 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_matrix_read::return#0 ] ) always clobbers reg byte a -Statement [323] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:60 [ play_init::j#2 play_init::j#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] -Statement [324] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a -Statement [325] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a -Statement [326] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ) always clobbers reg byte a -Statement [327] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ) always clobbers reg byte a -Statement [330] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 [ ] ( main:10::play_init:21 [ ] ) always clobbers reg byte a -Statement [333] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:5 [ current_ypos#9 current_ypos#83 current_ypos#84 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:134 [ play_spawn_current::$3 ] +Statement [31] (byte*~) current_piece#71 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#71 ] ( main:10 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#71 ] ) always clobbers reg byte a +Statement [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] +Statement [34] (byte~) main::$9 ← (byte) render_screen_show#15 >> (byte/signed byte/word/signed word/dword/signed dword) 4 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 main::$9 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 main::$9 ] ) always clobbers reg byte a +Statement [47] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$13 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:97 [ main::key_event#0 ] +Statement [52] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$14 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ) always clobbers reg byte a +Statement [57] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$15 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ) always clobbers reg byte a +Statement [64] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 render_screen_render#68 current_xpos#110 current_piece_gfx#100 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 render_screen_render#68 current_xpos#110 current_piece_gfx#100 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] +Statement [70] *((const byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ render_screen_show#24 render_screen_render#31 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 ] ( main:10 [ render_screen_show#24 render_screen_render#31 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 ] ) always clobbers reg byte a +Statement [71] (byte) render_screen_render#10 ← (byte) render_screen_render#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 [ render_screen_show#15 render_screen_render#10 ] ( main:10::render_screen_swap:68 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_show#15 render_screen_render#10 ] ) always clobbers reg byte a +Statement [72] (byte) render_screen_show#11 ← (byte) render_screen_show#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 [ render_screen_show#11 render_screen_render#10 ] ( main:10::render_screen_swap:68 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_show#11 render_screen_render#10 ] ) always clobbers reg byte a +Statement [75] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] +Statement [78] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] +Statement [85] (byte~) render_current::$5 ← (byte) render_screen_render#27 + (byte) render_current::ypos2#2 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::$5 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::$5 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::$5 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] +Statement [86] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ) always clobbers reg byte a +Statement [89] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:15 [ render_current::c#2 render_current::c#1 ] +Statement [93] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ) always clobbers reg byte a +Statement [99] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:16 [ render_screen_render#18 render_screen_render#69 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] +Statement [100] (byte~) render_playfield::$3 ← (byte) render_screen_render#18 + (byte~) render_playfield::$2 [ render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$3 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$3 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$3 ] ) always clobbers reg byte a +Statement [101] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) [ render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ) always clobbers reg byte a +Statement [103] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) [ render_screen_render#18 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ) always clobbers reg byte a reg byte y +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:134 [ play_spawn_current::$3 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:16 [ render_screen_render#18 render_screen_render#69 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] +Statement [115] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:105 [ main::render#2 ] +Statement [116] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ) always clobbers reg byte a +Statement [121] (byte*~) current_piece#76 ← (byte*) current_piece#10 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:27 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:26 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] +Statement [127] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ) always clobbers reg byte a +Statement [128] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ) always clobbers reg byte a +Statement [129] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ) always clobbers reg byte a +Statement [131] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 [ play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:101 [ main::render#1 ] +Statement [132] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ) always clobbers reg byte a +Statement [134] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] +Statement [138] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:33 [ play_collision::c#2 play_collision::c#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:124 [ play_collision::i#1 ] +Statement [142] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ) always clobbers reg byte a +Statement [145] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a +Statement [159] (byte*~) current_piece#75 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ( main:10::play_move_leftright:49 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ) always clobbers reg byte a +Statement [170] (byte*~) current_piece#74 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ( main:10::play_move_leftright:49 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ) always clobbers reg byte a +Statement [194] (byte*~) current_piece#73 ← (byte*) current_piece#16 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ( main:10::play_move_down:44 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ) always clobbers reg byte a +Statement [205] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ( main:10::play_move_down:44 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ) always clobbers reg byte a +Statement [213] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:46 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] +Statement [214] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Statement [215] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Statement [216] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Statement [217] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ) always clobbers reg byte a +Statement [223] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ play_spawn_current::piece_idx#1 ] ( main:10::play_spawn_current:23 [ play_spawn_current::piece_idx#1 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_spawn_current::piece_idx#1 ] ) always clobbers reg byte a +Statement [238] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 [ play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ( main:10::play_move_down:44::play_remove_lines:202 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:48 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] +Statement [245] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ play_remove_lines::w#6 ] ( main:10::play_move_down:44::play_remove_lines:202 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_remove_lines::w#6 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:51 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] +Statement [248] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ) always clobbers reg byte a +Statement [250] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] +Statement [254] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:56 [ play_lock_current::c#2 play_lock_current::c#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:141 [ play_lock_current::i#1 ] +Statement [255] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a +Statement [266] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 [ keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ( main:10::play_move_down:44::keyboard_event_pressed:180 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:288 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:294 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:300 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:306 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:36 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:60 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] +Statement [268] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ( main:10::play_move_down:44::keyboard_event_pressed:180 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:288 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:294 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:300 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:306 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] +Statement [269] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) [ keyboard_event_pressed::return#11 ] ( main:10::play_move_down:44::keyboard_event_pressed:180 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:288 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:294 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:300 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:306 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::return#11 ] ) always clobbers reg byte a +Statement [283] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 [ keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] +Statement [298] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 [ keyboard_events_size#13 keyboard_modifiers#3 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#3 ] ) always clobbers reg byte a +Statement [304] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 [ keyboard_events_size#13 keyboard_modifiers#4 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#4 ] ) always clobbers reg byte a +Statement [310] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 [ keyboard_events_size#13 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 ] ) always clobbers reg byte a +Statement [313] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:61 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] +Statement [314] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ) always clobbers reg byte a +Statement [317] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ) always clobbers reg byte a +Statement [319] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ) always clobbers reg byte a +Statement [325] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 [ keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ) always clobbers reg byte a +Statement [326] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ) always clobbers reg byte a +Statement [329] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) [ ] ( main:10::keyboard_event_scan:38::keyboard_matrix_read:279 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 ] ) always clobbers reg byte a +Statement [330] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) [ keyboard_matrix_read::return#0 ] ( main:10::keyboard_event_scan:38::keyboard_matrix_read:279 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_matrix_read::return#0 ] ) always clobbers reg byte a +Statement [340] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:65 [ play_init::j#2 play_init::j#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] +Statement [341] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a +Statement [342] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a +Statement [343] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ) always clobbers reg byte a +Statement [344] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ) always clobbers reg byte a +Statement [347] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 [ ] ( main:10::play_init:21 [ ] ) always clobbers reg byte a +Statement [350] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a Statement asm { ldaCIA1_INTERRUPT } always clobbers reg byte a -Statement [335] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [336] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [337] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [338] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [339] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [340] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [341] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [344] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [345] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [346] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [347] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [349] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:64 [ sprites_init::s#2 sprites_init::s#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Statement [350] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a -Statement [351] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a -Statement [352] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 [ sprites_init::s#2 sprites_init::xpos#1 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#1 ] ) always clobbers reg byte a -Statement [357] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [359] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [361] *((const byte*) D018#0) ← (const byte) render_init::toD0181_return#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [362] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [363] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [364] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [365] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [366] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [371] (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_init::i#2 render_init::li#2 render_init::$11 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li#2 render_init::$11 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:66 [ render_init::i#2 render_init::i#1 ] -Statement [372] *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 [ render_init::i#2 render_init::li#2 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li#2 ] ) always clobbers reg byte a -Statement [373] (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::i#2 render_init::li#1 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li#1 ] ) always clobbers reg byte a -Statement [378] (byte*~) render_init::$18 ← (byte*) render_init::line#4 + (byte) render_init::c#2 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$18 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$18 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:72 [ render_init::c#2 render_init::c#1 ] -Statement [379] *((byte*~) render_init::$18) ← (const byte) WHITE#0 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ) always clobbers reg byte a reg byte y -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:72 [ render_init::c#2 render_init::c#1 ] -Statement [382] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::l#4 render_init::line#1 ] ( main:10::render_init:15 [ render_init::l#4 render_init::line#1 ] ) always clobbers reg byte a -Statement [389] *((byte*) render_screen_original::screen#4) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#4 render_screen_original::x#4 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#4 render_screen_original::x#4 ] ) always clobbers reg byte a reg byte y -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:79 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] -Removing always clobbered register reg byte y as potential for zp ZP_BYTE:79 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] -Statement [394] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ) always clobbers reg byte a reg byte y -Statement [396] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:76 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] -Statement [398] *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 ] ) always clobbers reg byte a reg byte y -Statement [403] *((byte*) render_screen_original::screen#6) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#6 render_screen_original::x#7 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#6 render_screen_original::x#7 ] ) always clobbers reg byte a reg byte y -Statement [411] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#1 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#1 ] ) always clobbers reg byte a -Statement [414] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 [ fill::addr#2 ] ( main:10::render_init:15::fill:367 [ fill::addr#2 ] ) always clobbers reg byte a reg byte y -Statement [416] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 [ fill::addr#1 ] ( main:10::render_init:15::fill:367 [ fill::addr#1 ] ) always clobbers reg byte a -Statement [418] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a -Statement [419] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a -Statement [421] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a -Statement [427] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a -Statement [435] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y -Statement [436] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a -Statement [437] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [438] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [439] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a -Statement [442] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a -Removing always clobbered register reg byte a as potential for zp ZP_BYTE:83 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] -Statement [447] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [448] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [449] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y -Statement [450] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a -Statement [451] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [452] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [454] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [352] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [353] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [354] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [355] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [356] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [357] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [358] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [361] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [362] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [363] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [364] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [366] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:69 [ sprites_init::s#2 sprites_init::s#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Statement [367] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a +Statement [368] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a +Statement [369] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 [ sprites_init::s#2 sprites_init::xpos#1 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#1 ] ) always clobbers reg byte a +Statement [374] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [376] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [377] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [378] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [379] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [380] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [381] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [389] (byte*~) render_init::$12 ← (byte*) render_init::line#4 + (byte) render_init::c#2 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$12 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$12 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:74 [ render_init::c#2 render_init::c#1 ] +Statement [390] *((byte*~) render_init::$12) ← (const byte) WHITE#0 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ) always clobbers reg byte a reg byte y +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:74 [ render_init::c#2 render_init::c#1 ] +Statement [393] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::l#4 render_init::line#1 ] ( main:10::render_init:15 [ render_init::l#4 render_init::line#1 ] ) always clobbers reg byte a +Statement [397] (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$22 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$22 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:75 [ render_init::i#2 render_init::i#1 ] +Statement [398] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ) always clobbers reg byte a +Statement [399] (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$23 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$23 ] ) always clobbers reg byte a +Statement [400] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ) always clobbers reg byte a +Statement [401] (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::i#2 render_init::li_2#2 render_init::li_1#1 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_2#2 render_init::li_1#1 ] ) always clobbers reg byte a +Statement [402] (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::i#2 render_init::li_1#1 render_init::li_2#1 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#1 render_init::li_2#1 ] ) always clobbers reg byte a +Statement [408] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 [ fill::addr#2 ] ( main:10::render_init:15::fill:386 [ fill::addr#2 ] ) always clobbers reg byte a reg byte y +Statement [410] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 [ fill::addr#1 ] ( main:10::render_init:15::fill:386 [ fill::addr#1 ] ) always clobbers reg byte a +Statement [415] *((byte*) render_screen_original::screen#5) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#5 render_screen_original::x#4 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#5 render_screen_original::x#4 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#5 render_screen_original::x#4 ] ) always clobbers reg byte a reg byte y +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:88 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] +Removing always clobbered register reg byte y as potential for zp ZP_BYTE:88 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] +Statement [420] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ) always clobbers reg byte a reg byte y +Statement [422] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:85 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] +Statement [424] *((byte*) render_screen_original::screen#10) ← (byte) render_screen_original::c#2 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 ] ) always clobbers reg byte a reg byte y +Statement [429] *((byte*) render_screen_original::screen#7) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#7 render_screen_original::x#7 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#7 render_screen_original::x#7 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#7 render_screen_original::x#7 ] ) always clobbers reg byte a reg byte y +Statement [437] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#1 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#1 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#1 ] ) always clobbers reg byte a +Statement [438] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a +Statement [439] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a +Statement [441] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a +Statement [447] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a +Statement [459] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y +Statement [460] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a +Statement [461] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [462] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [463] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a +Statement [466] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a +Removing always clobbered register reg byte a as potential for zp ZP_BYTE:90 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] +Statement [471] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [472] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [473] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y +Statement [474] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a +Statement [475] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [476] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [478] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a Statement [4] (byte) irq_raster_next#0 ← (const byte) IRQ_RASTER_FIRST#0 [ ] ( ) always clobbers reg byte a Statement [5] (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ ] ( ) always clobbers reg byte a Statement [7] (byte) irq_sprite_ptr#0 ← (const byte) toSpritePtr1_return#0 [ ] ( ) always clobbers reg byte a Statement [8] (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( ) always clobbers reg byte a Statement [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 [ current_ypos#83 current_ypos#18 current_xpos#109 current_xpos#23 current_piece_gfx#99 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ( main:10 [ current_ypos#83 current_ypos#18 current_xpos#109 current_xpos#23 current_piece_gfx#99 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ) always clobbers reg byte a -Statement [31] (byte*~) current_piece#72 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#72 ] ( main:10 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#72 ] ) always clobbers reg byte a -Statement [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ( main:10 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ) always clobbers reg byte a -Statement [34] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@7 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ( main:10 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ) always clobbers reg byte a -Statement [45] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$12 [ current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ( main:10 [ current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ) always clobbers reg byte a -Statement [50] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$13 [ current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ( main:10 [ current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ) always clobbers reg byte a -Statement [55] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$14 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ( main:10 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ) always clobbers reg byte a -Statement [61] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 current_xpos#110 current_piece_gfx#100 ] ( main:10 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 current_xpos#110 current_piece_gfx#100 ] ) always clobbers reg byte a -Statement [66] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ) always clobbers reg byte a -Statement [68] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 ] ) always clobbers reg byte a -Statement [69] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ) always clobbers reg byte a -Statement [76] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#2) [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ) always clobbers reg byte a -Statement [79] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ) always clobbers reg byte a -Statement [83] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 [ current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] main:10::render_current:63 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ) always clobbers reg byte a -Statement [89] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] main:10::render_playfield:58 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ) always clobbers reg byte a -Statement [90] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) [ render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] main:10::render_playfield:58 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ) always clobbers reg byte a -Statement [92] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) [ render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] main:10::render_playfield:58 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ) always clobbers reg byte a reg byte y -Statement [104] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ) always clobbers reg byte a -Statement [105] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ) always clobbers reg byte a -Statement [110] (byte*~) current_piece#76 ← (byte*) current_piece#10 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ) always clobbers reg byte a -Statement [116] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ) always clobbers reg byte a -Statement [117] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ) always clobbers reg byte a -Statement [118] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ( main:10::play_move_rotate:52 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ) always clobbers reg byte a -Statement [120] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 [ play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ) always clobbers reg byte a -Statement [121] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ) always clobbers reg byte a -Statement [123] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ) always clobbers reg byte a -Statement [127] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a -Statement [131] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ) always clobbers reg byte a -Statement [134] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:52::play_collision:111 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:149 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:47::play_collision:160 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:42::play_collision:184 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a -Statement [148] (byte*~) current_piece#75 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ( main:10::play_move_leftright:47 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ) always clobbers reg byte a -Statement [159] (byte*~) current_piece#74 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ( main:10::play_move_leftright:47 [ current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ) always clobbers reg byte a -Statement [183] (byte*~) current_piece#73 ← (byte*) current_piece#16 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ( main:10::play_move_down:42 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ) always clobbers reg byte a -Statement [194] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ( main:10::play_move_down:42 [ keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ) always clobbers reg byte a -Statement [202] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Statement [203] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Statement [204] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Statement [205] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a -Statement [206] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ) always clobbers reg byte a -Statement [212] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ play_spawn_current::piece_idx#1 ] ( main:10::play_spawn_current:23 [ play_spawn_current::piece_idx#1 ] main:10::play_move_down:42::play_spawn_current:193 [ keyboard_events_size#16 main::key_event#0 play_spawn_current::piece_idx#1 ] ) always clobbers reg byte a -Statement [227] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 [ play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ( main:10::play_move_down:42::play_remove_lines:191 [ keyboard_events_size#16 main::key_event#0 play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ) always clobbers reg byte a -Statement [234] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ play_remove_lines::w#6 ] ( main:10::play_move_down:42::play_remove_lines:191 [ keyboard_events_size#16 main::key_event#0 play_remove_lines::w#6 ] ) always clobbers reg byte a -Statement [237] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ) always clobbers reg byte a -Statement [239] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ) always clobbers reg byte a -Statement [243] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a -Statement [244] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:42::play_lock_current:189 [ keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a -Statement [255] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 [ keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ( main:10::play_move_down:42::keyboard_event_pressed:169 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:277 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:283 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:289 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:295 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ) always clobbers reg byte a -Statement [257] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ( main:10::play_move_down:42::keyboard_event_pressed:169 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:277 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:283 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:289 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:295 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ) always clobbers reg byte a -Statement [258] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) [ keyboard_event_pressed::return#11 ] ( main:10::play_move_down:42::keyboard_event_pressed:169 [ keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:277 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:283 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:289 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:36::keyboard_event_pressed:295 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::return#11 ] ) always clobbers reg byte a -Statement [271] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 [ keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_event_scan::row_scan#0 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_event_scan::row_scan#0 ] ) always clobbers reg byte a -Statement [272] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 [ keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ) always clobbers reg byte a -Statement [287] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 [ keyboard_events_size#13 keyboard_modifiers#3 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#3 ] ) always clobbers reg byte a -Statement [293] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 [ keyboard_events_size#13 keyboard_modifiers#4 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#4 ] ) always clobbers reg byte a -Statement [299] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 [ keyboard_events_size#13 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 ] ) always clobbers reg byte a -Statement [302] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ) always clobbers reg byte a -Statement [303] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ) always clobbers reg byte a -Statement [306] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ) always clobbers reg byte a -Statement [308] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ) always clobbers reg byte a -Statement [314] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 [ keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ) always clobbers reg byte a -Statement [315] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ( main:10::keyboard_event_scan:36 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ) always clobbers reg byte a -Statement [318] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) [ ] ( main:10::keyboard_event_scan:36::keyboard_matrix_read:268 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 ] ) always clobbers reg byte a -Statement [319] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) [ keyboard_matrix_read::return#0 ] ( main:10::keyboard_event_scan:36::keyboard_matrix_read:268 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_matrix_read::return#0 ] ) always clobbers reg byte a -Statement [323] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ) always clobbers reg byte a -Statement [324] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a -Statement [325] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a -Statement [326] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ) always clobbers reg byte a -Statement [327] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ) always clobbers reg byte a -Statement [330] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 [ ] ( main:10::play_init:21 [ ] ) always clobbers reg byte a -Statement [333] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [31] (byte*~) current_piece#71 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#71 ] ( main:10 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#71 ] ) always clobbers reg byte a +Statement [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 ] ) always clobbers reg byte a +Statement [34] (byte~) main::$9 ← (byte) render_screen_show#15 >> (byte/signed byte/word/signed word/dword/signed dword) 4 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 main::$9 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 keyboard_events_size#19 current_movedown_counter#12 main::$9 ] ) always clobbers reg byte a +Statement [47] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$13 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_orientation#14 current_piece_gfx#1 current_xpos#1 ] ) always clobbers reg byte a +Statement [52] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$14 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#2 current_orientation#14 current_piece_gfx#1 ] ) always clobbers reg byte a +Statement [57] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$15 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#3 ] ) always clobbers reg byte a +Statement [64] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 render_screen_render#68 current_xpos#110 current_piece_gfx#100 ] ( main:10 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 current_ypos#84 render_screen_render#68 current_xpos#110 current_piece_gfx#100 ] ) always clobbers reg byte a +Statement [70] *((const byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ render_screen_show#24 render_screen_render#31 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 ] ( main:10 [ render_screen_show#24 render_screen_render#31 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 ] ) always clobbers reg byte a +Statement [71] (byte) render_screen_render#10 ← (byte) render_screen_render#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 [ render_screen_show#15 render_screen_render#10 ] ( main:10::render_screen_swap:68 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_show#15 render_screen_render#10 ] ) always clobbers reg byte a +Statement [72] (byte) render_screen_show#11 ← (byte) render_screen_show#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 [ render_screen_show#11 render_screen_render#10 ] ( main:10::render_screen_swap:68 [ current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_show#11 render_screen_render#10 ] ) always clobbers reg byte a +Statement [75] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#0 ] ) always clobbers reg byte a +Statement [77] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 ] ) always clobbers reg byte a +Statement [78] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#1 ] ) always clobbers reg byte a +Statement [85] (byte~) render_current::$5 ← (byte) render_screen_render#27 + (byte) render_current::ypos2#2 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::$5 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::$5 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::$5 ] ) always clobbers reg byte a +Statement [86] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::i#3 render_current::l#4 render_current::screen_line#0 ] ) always clobbers reg byte a +Statement [89] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::screen_line#0 render_current::i#4 render_current::xpos#2 render_current::c#2 render_current::current_cell#0 ] ) always clobbers reg byte a +Statement [93] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 [ render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ( main:10::render_current:30 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] main:10::render_current:66 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#27 current_xpos#47 current_piece_gfx#52 current_piece_char#62 render_current::ypos2#2 render_current::l#4 render_current::i#10 render_current::screen_line#0 render_current::xpos#2 render_current::c#2 ] ) always clobbers reg byte a +Statement [99] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$2 ] ) always clobbers reg byte a +Statement [100] (byte~) render_playfield::$3 ← (byte) render_screen_render#18 + (byte~) render_playfield::$2 [ render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$3 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$3 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::$3 ] ) always clobbers reg byte a +Statement [101] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) [ render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#3 render_playfield::screen_line#0 ] ) always clobbers reg byte a +Statement [103] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) [ render_screen_render#18 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ( main:10::render_playfield:25 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 render_screen_render#18 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] main:10::render_playfield:60 [ render_screen_show#15 render_screen_render#15 current_piece#10 current_orientation#19 current_piece_gfx#14 current_xpos#19 current_ypos#13 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 render_screen_render#18 render_playfield::l#2 render_playfield::i#2 render_playfield::screen_line#2 render_playfield::c#2 ] ) always clobbers reg byte a reg byte y +Statement [115] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$2 ] ) always clobbers reg byte a +Statement [116] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#2 ] ) always clobbers reg byte a +Statement [121] (byte*~) current_piece#76 ← (byte*) current_piece#10 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#3 play_collision::ypos#3 play_collision::orientation#3 current_piece#76 ] ) always clobbers reg byte a +Statement [127] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#4 current_piece_gfx#3 ] ) always clobbers reg byte a +Statement [128] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::$4 ] ) always clobbers reg byte a +Statement [129] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 [ current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ( main:10::play_move_rotate:54 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#1 ] ) always clobbers reg byte a +Statement [131] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 [ play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::ypos#4 play_collision::xpos#5 play_collision::piece_gfx#0 ] ) always clobbers reg byte a +Statement [132] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#0 ] ) always clobbers reg byte a +Statement [134] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::i#3 play_collision::l#6 play_collision::playfield_line#0 ] ) always clobbers reg byte a +Statement [138] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a +Statement [142] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 play_collision::$7 ] ) always clobbers reg byte a +Statement [145] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 [ play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ( main:10::play_move_rotate:54::play_collision:122 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::render#2 current_piece#10 current_xpos#19 current_ypos#13 current_orientation#14 current_piece_gfx#1 play_move_rotate::orientation#3 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:160 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_leftright:49::play_collision:171 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_xpos#1 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] main:10::play_move_down:44::play_collision:195 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 play_collision::xpos#5 play_collision::piece_gfx#0 play_collision::ypos2#2 play_collision::l#6 play_collision::playfield_line#0 play_collision::col#2 play_collision::c#2 play_collision::i#1 ] ) always clobbers reg byte a +Statement [159] (byte*~) current_piece#75 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ( main:10::play_move_leftright:49 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#75 play_collision::orientation#2 play_collision::ypos#2 play_collision::xpos#2 current_xpos#1 ] ) always clobbers reg byte a +Statement [170] (byte*~) current_piece#74 ← (byte*) current_piece#10 [ current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ( main:10::play_move_leftright:49 [ render_screen_show#15 render_screen_render#15 current_piece_char#1 keyboard_events_size#16 current_movedown_counter#10 main::key_event#0 main::render#1 current_piece_gfx#1 current_piece#10 current_ypos#13 current_orientation#14 current_piece#74 play_collision::orientation#1 play_collision::ypos#1 play_collision::xpos#1 current_xpos#1 ] ) always clobbers reg byte a +Statement [194] (byte*~) current_piece#73 ← (byte*) current_piece#16 [ current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ( main:10::play_move_down:44 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_piece#73 play_collision::orientation#0 play_collision::ypos#0 play_collision::xpos#0 ] ) always clobbers reg byte a +Statement [205] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ( main:10::play_move_down:44 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 current_piece#77 ] ) always clobbers reg byte a +Statement [213] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Statement [214] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Statement [215] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Statement [216] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 play_spawn_current::$3 play_spawn_current::piece_idx#2 ] ) always clobbers reg byte a +Statement [217] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ( main:10::play_spawn_current:23 [ current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_ypos#18 current_xpos#23 current_piece_gfx#16 current_piece_char#12 play_spawn_current::$3 ] ) always clobbers reg byte a +Statement [223] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ play_spawn_current::piece_idx#1 ] ( main:10::play_spawn_current:23 [ play_spawn_current::piece_idx#1 ] main:10::play_move_down:44::play_spawn_current:204 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_spawn_current::piece_idx#1 ] ) always clobbers reg byte a +Statement [238] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 [ play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ( main:10::play_move_down:44::play_remove_lines:202 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_remove_lines::y#8 play_remove_lines::r#1 play_remove_lines::w#2 ] ) always clobbers reg byte a +Statement [245] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ play_remove_lines::w#6 ] ( main:10::play_move_down:44::play_remove_lines:202 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 play_remove_lines::w#6 ] ) always clobbers reg byte a +Statement [248] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#0 ] ) always clobbers reg byte a +Statement [250] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::i#3 play_lock_current::l#6 play_lock_current::playfield_line#0 ] ) always clobbers reg byte a +Statement [254] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a +Statement [255] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 [ current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ( main:10::play_move_down:44::play_lock_current:200 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece_gfx#20 current_xpos#10 current_piece_char#15 play_lock_current::ypos2#2 play_lock_current::l#6 play_lock_current::playfield_line#0 play_lock_current::col#2 play_lock_current::c#2 play_lock_current::i#1 ] ) always clobbers reg byte a +Statement [266] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 [ keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ( main:10::play_move_down:44::keyboard_event_pressed:180 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:288 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:294 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:300 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:306 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::keycode#5 keyboard_event_pressed::$0 ] ) always clobbers reg byte a +Statement [268] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ( main:10::play_move_down:44::keyboard_event_pressed:180 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:288 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:294 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:300 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:306 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::row_bits#0 keyboard_event_pressed::$1 ] ) always clobbers reg byte a +Statement [269] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) [ keyboard_event_pressed::return#11 ] ( main:10::play_move_down:44::keyboard_event_pressed:180 [ render_screen_show#15 render_screen_render#15 keyboard_events_size#16 main::key_event#0 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#1 play_move_down::movedown#10 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:288 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:294 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#11 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:300 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#12 keyboard_event_pressed::return#11 ] main:10::keyboard_event_scan:38::keyboard_event_pressed:306 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#13 keyboard_event_pressed::return#11 ] ) always clobbers reg byte a +Statement [282] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 [ keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_event_scan::row_scan#0 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_event_scan::row_scan#0 ] ) always clobbers reg byte a +Statement [283] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 [ keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_events_size#29 keyboard_event_scan::keycode#1 ] ) always clobbers reg byte a +Statement [298] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 [ keyboard_events_size#13 keyboard_modifiers#3 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#3 ] ) always clobbers reg byte a +Statement [304] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 [ keyboard_events_size#13 keyboard_modifiers#4 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 keyboard_modifiers#4 ] ) always clobbers reg byte a +Statement [310] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 [ keyboard_events_size#13 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_events_size#13 ] ) always clobbers reg byte a +Statement [313] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$3 ] ) always clobbers reg byte a +Statement [314] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$4 ] ) always clobbers reg byte a +Statement [317] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::event_type#0 ] ) always clobbers reg byte a +Statement [319] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 ] ) always clobbers reg byte a +Statement [325] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 [ keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#15 keyboard_events_size#30 ] ) always clobbers reg byte a +Statement [326] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 [ keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ( main:10::keyboard_event_scan:38 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::row_scan#0 keyboard_event_scan::col#2 keyboard_event_scan::keycode#10 keyboard_events_size#10 keyboard_event_scan::$11 ] ) always clobbers reg byte a +Statement [329] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) [ ] ( main:10::keyboard_event_scan:38::keyboard_matrix_read:279 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 ] ) always clobbers reg byte a +Statement [330] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) [ keyboard_matrix_read::return#0 ] ( main:10::keyboard_event_scan:38::keyboard_matrix_read:279 [ render_screen_show#15 render_screen_render#15 current_piece#16 current_orientation#10 current_piece_gfx#20 current_xpos#10 current_ypos#21 current_piece_char#15 current_movedown_counter#12 keyboard_event_scan::row#2 keyboard_event_scan::keycode#11 keyboard_events_size#29 keyboard_matrix_read::return#0 ] ) always clobbers reg byte a +Statement [340] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 play_init::$1 ] ) always clobbers reg byte a +Statement [341] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a +Statement [342] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#2 play_init::idx#2 ] ) always clobbers reg byte a +Statement [343] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::idx#2 play_init::pli#1 ] ) always clobbers reg byte a +Statement [344] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ( main:10::play_init:21 [ play_init::j#2 play_init::pli#1 play_init::idx#1 ] ) always clobbers reg byte a +Statement [347] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 [ ] ( main:10::play_init:21 [ ] ) always clobbers reg byte a +Statement [350] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a Statement asm { ldaCIA1_INTERRUPT } always clobbers reg byte a -Statement [335] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [336] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [337] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [338] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [339] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [340] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [341] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a -Statement [344] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [345] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [346] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [347] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a -Statement [349] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ) always clobbers reg byte a -Statement [350] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a -Statement [351] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a -Statement [352] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 [ sprites_init::s#2 sprites_init::xpos#1 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#1 ] ) always clobbers reg byte a -Statement [357] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [359] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [361] *((const byte*) D018#0) ← (const byte) render_init::toD0181_return#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [362] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [363] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [364] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [365] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [366] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a -Statement [371] (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_init::i#2 render_init::li#2 render_init::$11 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li#2 render_init::$11 ] ) always clobbers reg byte a -Statement [372] *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 [ render_init::i#2 render_init::li#2 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li#2 ] ) always clobbers reg byte a -Statement [373] (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::i#2 render_init::li#1 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li#1 ] ) always clobbers reg byte a -Statement [378] (byte*~) render_init::$18 ← (byte*) render_init::line#4 + (byte) render_init::c#2 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$18 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$18 ] ) always clobbers reg byte a -Statement [379] *((byte*~) render_init::$18) ← (const byte) WHITE#0 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ) always clobbers reg byte a reg byte y -Statement [382] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::l#4 render_init::line#1 ] ( main:10::render_init:15 [ render_init::l#4 render_init::line#1 ] ) always clobbers reg byte a -Statement [389] *((byte*) render_screen_original::screen#4) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#4 render_screen_original::x#4 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#4 render_screen_original::x#4 ] ) always clobbers reg byte a reg byte y -Statement [394] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ) always clobbers reg byte a reg byte y -Statement [396] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#0 ] ) always clobbers reg byte a -Statement [398] *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 ] ) always clobbers reg byte a reg byte y -Statement [403] *((byte*) render_screen_original::screen#6) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#6 render_screen_original::x#7 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#6 render_screen_original::x#7 ] ) always clobbers reg byte a reg byte y -Statement [411] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#1 ] ( main:10::render_init:15::render_screen_original:369 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#5 render_screen_original::c#1 ] ) always clobbers reg byte a -Statement [414] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 [ fill::addr#2 ] ( main:10::render_init:15::fill:367 [ fill::addr#2 ] ) always clobbers reg byte a reg byte y -Statement [416] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 [ fill::addr#1 ] ( main:10::render_init:15::fill:367 [ fill::addr#1 ] ) always clobbers reg byte a -Statement [418] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a -Statement [419] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a -Statement [421] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a -Statement [427] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a -Statement [435] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y -Statement [436] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a -Statement [437] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [438] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a -Statement [439] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a -Statement [442] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a -Statement [447] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [448] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a -Statement [449] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y -Statement [450] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a -Statement [451] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [452] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Statement [454] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a -Potential registers zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] : zp ZP_BYTE:2 , reg byte x , -Potential registers zp ZP_BYTE:3 [ current_ypos#9 current_ypos#83 current_ypos#84 ] : zp ZP_BYTE:3 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] : zp ZP_BYTE:4 , reg byte x , reg byte y , -Potential registers zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] : zp ZP_WORD:5 , -Potential registers zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] : zp ZP_BYTE:7 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] : zp ZP_BYTE:8 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] : zp ZP_BYTE:9 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] : zp ZP_BYTE:10 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] : zp ZP_BYTE:11 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:12 [ render_current::c#2 render_current::c#1 ] : zp ZP_BYTE:12 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] : zp ZP_BYTE:13 , reg byte x , -Potential registers zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] : zp ZP_BYTE:14 , reg byte x , -Potential registers zp ZP_WORD:15 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] : zp ZP_WORD:15 , -Potential registers zp ZP_BYTE:17 [ render_playfield::c#2 render_playfield::c#1 ] : zp ZP_BYTE:17 , reg byte x , -Potential registers zp ZP_BYTE:18 [ play_move_rotate::return#1 ] : zp ZP_BYTE:18 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] : zp ZP_BYTE:19 , reg byte x , reg byte y , -Potential registers zp ZP_WORD:20 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] : zp ZP_WORD:20 , -Potential registers zp ZP_BYTE:22 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] : zp ZP_BYTE:22 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:23 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] : zp ZP_BYTE:23 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] : zp ZP_BYTE:24 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] : zp ZP_BYTE:25 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] : zp ZP_BYTE:26 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] : zp ZP_BYTE:27 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] : zp ZP_BYTE:28 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:29 [ play_collision::c#2 play_collision::c#1 ] : zp ZP_BYTE:29 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:30 [ play_collision::return#14 ] : zp ZP_BYTE:30 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:31 [ play_move_leftright::return#1 ] : zp ZP_BYTE:31 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:32 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] : zp ZP_BYTE:32 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] : zp ZP_BYTE:33 , reg byte x , -Potential registers zp ZP_WORD:34 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 ] : zp ZP_WORD:34 , -Potential registers zp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] : zp ZP_BYTE:36 , reg byte x , -Potential registers zp ZP_WORD:37 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] : zp ZP_WORD:37 , -Potential registers zp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] : zp ZP_BYTE:39 , reg byte x , -Potential registers zp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] : zp ZP_BYTE:40 , reg byte x , -Potential registers zp ZP_BYTE:41 [ play_move_down::return#2 ] : zp ZP_BYTE:41 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:42 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] : zp ZP_BYTE:42 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] : zp ZP_BYTE:43 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:44 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] : zp ZP_BYTE:44 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:45 [ play_remove_lines::x#2 play_remove_lines::x#1 ] : zp ZP_BYTE:45 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:46 [ play_remove_lines::full#4 play_remove_lines::full#2 ] : zp ZP_BYTE:46 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:47 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] : zp ZP_BYTE:47 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] : zp ZP_BYTE:48 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] : zp ZP_BYTE:49 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] : zp ZP_BYTE:50 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] : zp ZP_BYTE:51 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:52 [ play_lock_current::c#2 play_lock_current::c#1 ] : zp ZP_BYTE:52 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] : zp ZP_BYTE:53 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:54 [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] : zp ZP_BYTE:54 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] : zp ZP_BYTE:55 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:56 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] : zp ZP_BYTE:56 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:57 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] : zp ZP_BYTE:57 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] : zp ZP_BYTE:58 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] : zp ZP_BYTE:59 , reg byte x , -Potential registers zp ZP_BYTE:60 [ play_init::j#2 play_init::j#1 ] : zp ZP_BYTE:60 , reg byte x , reg byte y , -Potential registers zp ZP_WORD:61 [ play_init::pli#2 play_init::pli#1 ] : zp ZP_WORD:61 , -Potential registers zp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] : zp ZP_BYTE:63 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:64 [ sprites_init::s#2 sprites_init::s#1 ] : zp ZP_BYTE:64 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] : zp ZP_BYTE:65 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:66 [ render_init::i#2 render_init::i#1 ] : zp ZP_BYTE:66 , reg byte x , reg byte y , -Potential registers zp ZP_WORD:67 [ render_init::li#2 render_init::li#1 ] : zp ZP_WORD:67 , -Potential registers zp ZP_WORD:69 [ render_init::line#4 render_init::line#1 ] : zp ZP_WORD:69 , -Potential registers zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] : zp ZP_BYTE:71 , reg byte x , -Potential registers zp ZP_BYTE:72 [ render_init::c#2 render_init::c#1 ] : zp ZP_BYTE:72 , reg byte x , -Potential registers zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] : zp ZP_BYTE:73 , reg byte x , -Potential registers zp ZP_WORD:74 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] : zp ZP_WORD:74 , -Potential registers zp ZP_BYTE:76 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] : zp ZP_BYTE:76 , reg byte x , reg byte y , -Potential registers zp ZP_WORD:77 [ render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] : zp ZP_WORD:77 , -Potential registers zp ZP_BYTE:79 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] : zp ZP_BYTE:79 , reg byte x , +Statement [352] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [353] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [354] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [355] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [356] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [357] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [358] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() [ ] ( main:10::sprites_irq_init:19 [ ] ) always clobbers reg byte a +Statement [361] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [362] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [363] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [364] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) [ ] ( main:10::sprites_init:17 [ ] ) always clobbers reg byte a +Statement [366] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 sprites_init::s2#0 ] ) always clobbers reg byte a +Statement [367] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a +Statement [368] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 [ sprites_init::s#2 sprites_init::xpos#2 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#2 ] ) always clobbers reg byte a +Statement [369] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 [ sprites_init::s#2 sprites_init::xpos#1 ] ( main:10::sprites_init:17 [ sprites_init::s#2 sprites_init::xpos#1 ] ) always clobbers reg byte a +Statement [374] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [376] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [377] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [378] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [379] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [380] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [381] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 [ ] ( main:10::render_init:15 [ ] ) always clobbers reg byte a +Statement [389] (byte*~) render_init::$12 ← (byte*) render_init::line#4 + (byte) render_init::c#2 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$12 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 render_init::$12 ] ) always clobbers reg byte a +Statement [390] *((byte*~) render_init::$12) ← (const byte) WHITE#0 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ( main:10::render_init:15 [ render_init::line#4 render_init::l#4 render_init::c#2 ] ) always clobbers reg byte a reg byte y +Statement [393] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::l#4 render_init::line#1 ] ( main:10::render_init:15 [ render_init::l#4 render_init::line#1 ] ) always clobbers reg byte a +Statement [397] (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$22 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$22 ] ) always clobbers reg byte a +Statement [398] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ) always clobbers reg byte a +Statement [399] (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$23 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 render_init::$23 ] ) always clobbers reg byte a +Statement [400] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#2 render_init::li_2#2 ] ) always clobbers reg byte a +Statement [401] (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::i#2 render_init::li_2#2 render_init::li_1#1 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_2#2 render_init::li_1#1 ] ) always clobbers reg byte a +Statement [402] (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 [ render_init::i#2 render_init::li_1#1 render_init::li_2#1 ] ( main:10::render_init:15 [ render_init::i#2 render_init::li_1#1 render_init::li_2#1 ] ) always clobbers reg byte a +Statement [408] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 [ fill::addr#2 ] ( main:10::render_init:15::fill:386 [ fill::addr#2 ] ) always clobbers reg byte a reg byte y +Statement [410] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 [ fill::addr#1 ] ( main:10::render_init:15::fill:386 [ fill::addr#1 ] ) always clobbers reg byte a +Statement [415] *((byte*) render_screen_original::screen#5) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#5 render_screen_original::x#4 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#5 render_screen_original::x#4 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::orig#5 render_screen_original::y#8 render_screen_original::screen#5 render_screen_original::x#4 ] ) always clobbers reg byte a reg byte y +Statement [420] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#2 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ) always clobbers reg byte a reg byte y +Statement [422] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#0 ] ) always clobbers reg byte a +Statement [424] *((byte*) render_screen_original::screen#10) ← (byte) render_screen_original::c#2 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 ] ) always clobbers reg byte a reg byte y +Statement [429] *((byte*) render_screen_original::screen#7) ← (const byte) render_screen_original::SPACE#0 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#7 render_screen_original::x#7 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#7 render_screen_original::x#7 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::screen#7 render_screen_original::x#7 ] ) always clobbers reg byte a reg byte y +Statement [437] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#1 ] ( main:10::render_init:15::render_screen_original:382 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#1 ] main:10::render_init:15::render_screen_original:384 [ render_screen_original::y#8 render_screen_original::orig#1 render_screen_original::x#5 render_screen_original::screen#10 render_screen_original::c#1 ] ) always clobbers reg byte a +Statement [438] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a +Statement [439] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 [ ] ( main:10::sid_rnd_init:13 [ ] ) always clobbers reg byte a +Statement [441] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a +Statement [447] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#0 ] ) always clobbers reg byte a +Statement [459] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 irq_cnt#1 ] ) always clobbers reg byte y +Statement [460] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ( [ irq_raster_next#0 irq_sprite_ypos#0 irq_sprite_ptr#0 ] ) always clobbers reg byte a +Statement [461] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ypos#0 irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [462] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 [ irq_sprite_ptr#0 irq_raster_next#2 ] ( [ irq_sprite_ptr#0 irq_raster_next#2 ] ) always clobbers reg byte a +Statement [463] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 [ irq_raster_next#2 ] ( [ irq_raster_next#2 ] ) always clobbers reg byte a +Statement [466] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 [ irq::raster_next#0 irq::$3 ] ( [ irq::raster_next#0 irq::$3 ] ) always clobbers reg byte a +Statement [471] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [472] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 [ ] ( [ ] ) always clobbers reg byte a +Statement [473] return [ ] ( [ ] ) always clobbers reg byte a reg byte x reg byte y +Statement [474] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 [ ] ( [ ] ) always clobbers reg byte a +Statement [475] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [476] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Statement [478] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 [ irq_raster_next#1 ] ( [ irq_raster_next#1 ] ) always clobbers reg byte a +Potential registers zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] : zp ZP_BYTE:2 , reg byte x , +Potential registers zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] : zp ZP_BYTE:3 , reg byte x , +Potential registers zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] : zp ZP_BYTE:4 , reg byte x , +Potential registers zp ZP_BYTE:5 [ current_ypos#9 current_ypos#83 current_ypos#84 ] : zp ZP_BYTE:5 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] : zp ZP_BYTE:6 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] : zp ZP_BYTE:7 , reg byte x , reg byte y , +Potential registers zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] : zp ZP_WORD:8 , +Potential registers zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] : zp ZP_BYTE:10 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] : zp ZP_BYTE:11 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] : zp ZP_BYTE:12 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] : zp ZP_BYTE:13 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] : zp ZP_BYTE:14 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:15 [ render_current::c#2 render_current::c#1 ] : zp ZP_BYTE:15 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:16 [ render_screen_render#18 render_screen_render#69 ] : zp ZP_BYTE:16 , reg byte x , +Potential registers zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] : zp ZP_BYTE:17 , reg byte x , +Potential registers zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] : zp ZP_BYTE:18 , reg byte x , +Potential registers zp ZP_WORD:19 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] : zp ZP_WORD:19 , +Potential registers zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] : zp ZP_BYTE:21 , reg byte x , +Potential registers zp ZP_BYTE:22 [ play_move_rotate::return#1 ] : zp ZP_BYTE:22 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] : zp ZP_BYTE:23 , reg byte x , reg byte y , +Potential registers zp ZP_WORD:24 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] : zp ZP_WORD:24 , +Potential registers zp ZP_BYTE:26 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] : zp ZP_BYTE:26 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:27 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] : zp ZP_BYTE:27 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] : zp ZP_BYTE:28 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] : zp ZP_BYTE:29 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] : zp ZP_BYTE:30 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] : zp ZP_BYTE:31 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] : zp ZP_BYTE:32 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:33 [ play_collision::c#2 play_collision::c#1 ] : zp ZP_BYTE:33 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:34 [ play_collision::return#14 ] : zp ZP_BYTE:34 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:35 [ play_move_leftright::return#1 ] : zp ZP_BYTE:35 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:36 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] : zp ZP_BYTE:36 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] : zp ZP_BYTE:37 , reg byte x , +Potential registers zp ZP_WORD:38 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 ] : zp ZP_WORD:38 , +Potential registers zp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] : zp ZP_BYTE:40 , reg byte x , +Potential registers zp ZP_WORD:41 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] : zp ZP_WORD:41 , +Potential registers zp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] : zp ZP_BYTE:43 , reg byte x , +Potential registers zp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] : zp ZP_BYTE:44 , reg byte x , +Potential registers zp ZP_BYTE:45 [ play_move_down::return#2 ] : zp ZP_BYTE:45 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:46 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] : zp ZP_BYTE:46 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] : zp ZP_BYTE:47 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:48 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] : zp ZP_BYTE:48 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:49 [ play_remove_lines::x#2 play_remove_lines::x#1 ] : zp ZP_BYTE:49 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:50 [ play_remove_lines::full#4 play_remove_lines::full#2 ] : zp ZP_BYTE:50 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:51 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] : zp ZP_BYTE:51 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] : zp ZP_BYTE:52 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] : zp ZP_BYTE:53 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] : zp ZP_BYTE:54 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] : zp ZP_BYTE:55 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:56 [ play_lock_current::c#2 play_lock_current::c#1 ] : zp ZP_BYTE:56 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] : zp ZP_BYTE:57 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:58 [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] : zp ZP_BYTE:58 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] : zp ZP_BYTE:59 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:60 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] : zp ZP_BYTE:60 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:61 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] : zp ZP_BYTE:61 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] : zp ZP_BYTE:62 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] : zp ZP_BYTE:63 , reg byte x , +Potential registers zp ZP_BYTE:64 [ render_show::d018val#3 ] : zp ZP_BYTE:64 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:65 [ play_init::j#2 play_init::j#1 ] : zp ZP_BYTE:65 , reg byte x , reg byte y , +Potential registers zp ZP_WORD:66 [ play_init::pli#2 play_init::pli#1 ] : zp ZP_WORD:66 , +Potential registers zp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] : zp ZP_BYTE:68 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:69 [ sprites_init::s#2 sprites_init::s#1 ] : zp ZP_BYTE:69 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] : zp ZP_BYTE:70 , reg byte x , reg byte y , +Potential registers zp ZP_WORD:71 [ render_init::line#4 render_init::line#1 ] : zp ZP_WORD:71 , +Potential registers zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] : zp ZP_BYTE:73 , reg byte x , +Potential registers zp ZP_BYTE:74 [ render_init::c#2 render_init::c#1 ] : zp ZP_BYTE:74 , reg byte x , +Potential registers zp ZP_BYTE:75 [ render_init::i#2 render_init::i#1 ] : zp ZP_BYTE:75 , reg byte x , reg byte y , +Potential registers zp ZP_WORD:76 [ render_init::li_1#2 render_init::li_1#1 ] : zp ZP_WORD:76 , +Potential registers zp ZP_WORD:78 [ render_init::li_2#2 render_init::li_2#1 ] : zp ZP_WORD:78 , Potential registers zp ZP_WORD:80 [ fill::addr#2 fill::addr#1 ] : zp ZP_WORD:80 , -Potential registers zp ZP_BYTE:82 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] : zp ZP_BYTE:82 , -Potential registers zp ZP_BYTE:83 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] : zp ZP_BYTE:83 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:84 [ irq_raster_next#0 ] : zp ZP_BYTE:84 , -Potential registers zp ZP_BYTE:85 [ irq_sprite_ypos#0 ] : zp ZP_BYTE:85 , -Potential registers zp ZP_BYTE:86 [ irq_sprite_ptr#0 ] : zp ZP_BYTE:86 , -Potential registers zp ZP_BYTE:87 [ irq_cnt#0 ] : zp ZP_BYTE:87 , -Potential registers zp ZP_BYTE:88 [ keyboard_event_get::return#3 ] : zp ZP_BYTE:88 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:89 [ main::key_event#0 ] : zp ZP_BYTE:89 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:90 [ play_move_down::key_event#0 ] : zp ZP_BYTE:90 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:91 [ play_move_down::return#3 ] : zp ZP_BYTE:91 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:92 [ main::$12 ] : zp ZP_BYTE:92 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:93 [ main::render#1 ] : zp ZP_BYTE:93 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:94 [ play_move_leftright::key_event#0 ] : zp ZP_BYTE:94 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:95 [ play_move_leftright::return#4 ] : zp ZP_BYTE:95 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:96 [ main::$13 ] : zp ZP_BYTE:96 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:97 [ main::render#2 ] : zp ZP_BYTE:97 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:98 [ play_move_rotate::key_event#0 ] : zp ZP_BYTE:98 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:99 [ play_move_rotate::return#4 ] : zp ZP_BYTE:99 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:100 [ main::$14 ] : zp ZP_BYTE:100 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:101 [ main::render#3 ] : zp ZP_BYTE:101 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_WORD:102 [ render_current::screen_line#0 ] : zp ZP_WORD:102 , -Potential registers zp ZP_BYTE:104 [ render_current::current_cell#0 ] : zp ZP_BYTE:104 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:105 [ render_playfield::$2 ] : zp ZP_BYTE:105 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:106 [ play_move_rotate::$2 ] : zp ZP_BYTE:106 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:107 [ play_collision::return#13 ] : zp ZP_BYTE:107 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:108 [ play_move_rotate::$6 ] : zp ZP_BYTE:108 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:109 [ play_move_rotate::$4 ] : zp ZP_BYTE:109 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_WORD:110 [ play_collision::piece_gfx#0 ] : zp ZP_WORD:110 , -Potential registers zp ZP_WORD:112 [ play_collision::playfield_line#0 ] : zp ZP_WORD:112 , -Potential registers zp ZP_BYTE:114 [ play_collision::i#1 ] : zp ZP_BYTE:114 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:115 [ play_collision::$7 ] : zp ZP_BYTE:115 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:116 [ play_collision::return#12 ] : zp ZP_BYTE:116 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:117 [ play_move_leftright::$4 ] : zp ZP_BYTE:117 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:118 [ play_collision::return#1 ] : zp ZP_BYTE:118 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:119 [ play_move_leftright::$8 ] : zp ZP_BYTE:119 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:120 [ keyboard_event_pressed::return#12 ] : zp ZP_BYTE:120 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:121 [ play_move_down::$2 ] : zp ZP_BYTE:121 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:122 [ play_collision::return#0 ] : zp ZP_BYTE:122 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:123 [ play_move_down::$12 ] : zp ZP_BYTE:123 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:124 [ play_spawn_current::$3 ] : zp ZP_BYTE:124 , reg byte x , -Potential registers zp ZP_BYTE:125 [ sid_rnd::return#2 ] : zp ZP_BYTE:125 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:126 [ play_spawn_current::$1 ] : zp ZP_BYTE:126 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:127 [ sid_rnd::return#0 ] : zp ZP_BYTE:127 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:128 [ play_remove_lines::c#0 ] : zp ZP_BYTE:128 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_WORD:129 [ play_lock_current::playfield_line#0 ] : zp ZP_WORD:129 , -Potential registers zp ZP_BYTE:131 [ play_lock_current::i#1 ] : zp ZP_BYTE:131 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:132 [ keyboard_event_pressed::$0 ] : zp ZP_BYTE:132 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] : zp ZP_BYTE:133 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:134 [ keyboard_event_pressed::$1 ] : zp ZP_BYTE:134 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:135 [ keyboard_event_pressed::return#11 ] : zp ZP_BYTE:135 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:136 [ keyboard_matrix_read::rowid#0 ] : zp ZP_BYTE:136 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:137 [ keyboard_matrix_read::return#2 ] : zp ZP_BYTE:137 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] : zp ZP_BYTE:138 , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:139 [ keyboard_event_pressed::return#0 ] : zp ZP_BYTE:139 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:140 [ keyboard_event_scan::$14 ] : zp ZP_BYTE:140 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:141 [ keyboard_event_pressed::return#1 ] : zp ZP_BYTE:141 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:142 [ keyboard_event_scan::$18 ] : zp ZP_BYTE:142 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:143 [ keyboard_event_pressed::return#2 ] : zp ZP_BYTE:143 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:144 [ keyboard_event_scan::$22 ] : zp ZP_BYTE:144 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:145 [ keyboard_event_pressed::return#10 ] : zp ZP_BYTE:145 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:146 [ keyboard_event_scan::$26 ] : zp ZP_BYTE:146 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:147 [ keyboard_modifiers#5 ] : zp ZP_BYTE:147 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:148 [ keyboard_event_scan::$3 ] : zp ZP_BYTE:148 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:149 [ keyboard_event_scan::$4 ] : zp ZP_BYTE:149 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:150 [ keyboard_event_scan::event_type#0 ] : zp ZP_BYTE:150 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:151 [ keyboard_event_scan::$11 ] : zp ZP_BYTE:151 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:152 [ keyboard_matrix_read::return#0 ] : zp ZP_BYTE:152 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:153 [ play_init::$1 ] : zp ZP_BYTE:153 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:154 [ sprites_init::s2#0 ] : zp ZP_BYTE:154 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:155 [ render_init::$11 ] : zp ZP_BYTE:155 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_WORD:156 [ render_init::$18 ] : zp ZP_WORD:156 , -Potential registers zp ZP_BYTE:158 [ irq::ypos#0 ] : zp ZP_BYTE:158 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:159 [ irq::ptr#0 ] : zp ZP_BYTE:159 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:160 [ irq::ptr#1 ] : zp ZP_BYTE:160 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:161 [ irq::ptr#2 ] : zp ZP_BYTE:161 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:162 [ irq_cnt#1 ] : zp ZP_BYTE:162 , -Potential registers zp ZP_BYTE:163 [ irq_sprite_ypos#2 ] : zp ZP_BYTE:163 , -Potential registers zp ZP_BYTE:164 [ irq_sprite_ptr#2 ] : zp ZP_BYTE:164 , -Potential registers zp ZP_BYTE:165 [ irq::$3 ] : zp ZP_BYTE:165 , reg byte a , reg byte x , reg byte y , -Potential registers zp ZP_BYTE:166 [ irq_cnt#13 ] : zp ZP_BYTE:166 , -Potential registers zp ZP_BYTE:167 [ irq_sprite_ypos#1 ] : zp ZP_BYTE:167 , -Potential registers zp ZP_BYTE:168 [ irq_sprite_ptr#1 ] : zp ZP_BYTE:168 , +Potential registers zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] : zp ZP_BYTE:82 , reg byte x , +Potential registers zp ZP_WORD:83 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] : zp ZP_WORD:83 , +Potential registers zp ZP_BYTE:85 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] : zp ZP_BYTE:85 , reg byte x , reg byte y , +Potential registers zp ZP_WORD:86 [ render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] : zp ZP_WORD:86 , +Potential registers zp ZP_BYTE:88 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] : zp ZP_BYTE:88 , reg byte x , +Potential registers zp ZP_BYTE:89 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] : zp ZP_BYTE:89 , +Potential registers zp ZP_BYTE:90 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] : zp ZP_BYTE:90 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:91 [ irq_raster_next#0 ] : zp ZP_BYTE:91 , +Potential registers zp ZP_BYTE:92 [ irq_sprite_ypos#0 ] : zp ZP_BYTE:92 , +Potential registers zp ZP_BYTE:93 [ irq_sprite_ptr#0 ] : zp ZP_BYTE:93 , +Potential registers zp ZP_BYTE:94 [ irq_cnt#0 ] : zp ZP_BYTE:94 , +Potential registers zp ZP_BYTE:95 [ main::$9 ] : zp ZP_BYTE:95 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:96 [ keyboard_event_get::return#3 ] : zp ZP_BYTE:96 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:97 [ main::key_event#0 ] : zp ZP_BYTE:97 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:98 [ play_move_down::key_event#0 ] : zp ZP_BYTE:98 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:99 [ play_move_down::return#3 ] : zp ZP_BYTE:99 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:100 [ main::$13 ] : zp ZP_BYTE:100 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:101 [ main::render#1 ] : zp ZP_BYTE:101 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:102 [ play_move_leftright::key_event#0 ] : zp ZP_BYTE:102 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:103 [ play_move_leftright::return#4 ] : zp ZP_BYTE:103 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:104 [ main::$14 ] : zp ZP_BYTE:104 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:105 [ main::render#2 ] : zp ZP_BYTE:105 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:106 [ play_move_rotate::key_event#0 ] : zp ZP_BYTE:106 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:107 [ play_move_rotate::return#4 ] : zp ZP_BYTE:107 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:108 [ main::$15 ] : zp ZP_BYTE:108 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:109 [ main::render#3 ] : zp ZP_BYTE:109 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:110 [ render_current::$5 ] : zp ZP_BYTE:110 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_WORD:111 [ render_current::screen_line#0 ] : zp ZP_WORD:111 , +Potential registers zp ZP_BYTE:113 [ render_current::current_cell#0 ] : zp ZP_BYTE:113 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:114 [ render_playfield::$2 ] : zp ZP_BYTE:114 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:115 [ render_playfield::$3 ] : zp ZP_BYTE:115 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:116 [ play_move_rotate::$2 ] : zp ZP_BYTE:116 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:117 [ play_collision::return#13 ] : zp ZP_BYTE:117 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:118 [ play_move_rotate::$6 ] : zp ZP_BYTE:118 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:119 [ play_move_rotate::$4 ] : zp ZP_BYTE:119 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_WORD:120 [ play_collision::piece_gfx#0 ] : zp ZP_WORD:120 , +Potential registers zp ZP_WORD:122 [ play_collision::playfield_line#0 ] : zp ZP_WORD:122 , +Potential registers zp ZP_BYTE:124 [ play_collision::i#1 ] : zp ZP_BYTE:124 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:125 [ play_collision::$7 ] : zp ZP_BYTE:125 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:126 [ play_collision::return#12 ] : zp ZP_BYTE:126 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:127 [ play_move_leftright::$4 ] : zp ZP_BYTE:127 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:128 [ play_collision::return#1 ] : zp ZP_BYTE:128 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:129 [ play_move_leftright::$8 ] : zp ZP_BYTE:129 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:130 [ keyboard_event_pressed::return#12 ] : zp ZP_BYTE:130 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:131 [ play_move_down::$2 ] : zp ZP_BYTE:131 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:132 [ play_collision::return#0 ] : zp ZP_BYTE:132 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:133 [ play_move_down::$12 ] : zp ZP_BYTE:133 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:134 [ play_spawn_current::$3 ] : zp ZP_BYTE:134 , reg byte x , +Potential registers zp ZP_BYTE:135 [ sid_rnd::return#2 ] : zp ZP_BYTE:135 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:136 [ play_spawn_current::$1 ] : zp ZP_BYTE:136 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:137 [ sid_rnd::return#0 ] : zp ZP_BYTE:137 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:138 [ play_remove_lines::c#0 ] : zp ZP_BYTE:138 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_WORD:139 [ play_lock_current::playfield_line#0 ] : zp ZP_WORD:139 , +Potential registers zp ZP_BYTE:141 [ play_lock_current::i#1 ] : zp ZP_BYTE:141 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:142 [ keyboard_event_pressed::$0 ] : zp ZP_BYTE:142 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] : zp ZP_BYTE:143 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:144 [ keyboard_event_pressed::$1 ] : zp ZP_BYTE:144 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:145 [ keyboard_event_pressed::return#11 ] : zp ZP_BYTE:145 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:146 [ keyboard_matrix_read::rowid#0 ] : zp ZP_BYTE:146 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:147 [ keyboard_matrix_read::return#2 ] : zp ZP_BYTE:147 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] : zp ZP_BYTE:148 , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:149 [ keyboard_event_pressed::return#0 ] : zp ZP_BYTE:149 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:150 [ keyboard_event_scan::$14 ] : zp ZP_BYTE:150 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:151 [ keyboard_event_pressed::return#1 ] : zp ZP_BYTE:151 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:152 [ keyboard_event_scan::$18 ] : zp ZP_BYTE:152 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:153 [ keyboard_event_pressed::return#2 ] : zp ZP_BYTE:153 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:154 [ keyboard_event_scan::$22 ] : zp ZP_BYTE:154 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:155 [ keyboard_event_pressed::return#10 ] : zp ZP_BYTE:155 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:156 [ keyboard_event_scan::$26 ] : zp ZP_BYTE:156 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:157 [ keyboard_modifiers#5 ] : zp ZP_BYTE:157 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:158 [ keyboard_event_scan::$3 ] : zp ZP_BYTE:158 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:159 [ keyboard_event_scan::$4 ] : zp ZP_BYTE:159 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:160 [ keyboard_event_scan::event_type#0 ] : zp ZP_BYTE:160 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:161 [ keyboard_event_scan::$11 ] : zp ZP_BYTE:161 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:162 [ keyboard_matrix_read::return#0 ] : zp ZP_BYTE:162 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:163 [ play_init::$1 ] : zp ZP_BYTE:163 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:164 [ sprites_init::s2#0 ] : zp ZP_BYTE:164 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_WORD:165 [ render_init::$12 ] : zp ZP_WORD:165 , +Potential registers zp ZP_BYTE:167 [ render_init::$22 ] : zp ZP_BYTE:167 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:168 [ render_init::$23 ] : zp ZP_BYTE:168 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:169 [ irq::ypos#0 ] : zp ZP_BYTE:169 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:170 [ irq::ptr#0 ] : zp ZP_BYTE:170 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:171 [ irq::ptr#1 ] : zp ZP_BYTE:171 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:172 [ irq::ptr#2 ] : zp ZP_BYTE:172 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:173 [ irq_cnt#1 ] : zp ZP_BYTE:173 , +Potential registers zp ZP_BYTE:174 [ irq_sprite_ypos#2 ] : zp ZP_BYTE:174 , +Potential registers zp ZP_BYTE:175 [ irq_sprite_ptr#2 ] : zp ZP_BYTE:175 , +Potential registers zp ZP_BYTE:176 [ irq::$3 ] : zp ZP_BYTE:176 , reg byte a , reg byte x , reg byte y , +Potential registers zp ZP_BYTE:177 [ irq_cnt#13 ] : zp ZP_BYTE:177 , +Potential registers zp ZP_BYTE:178 [ irq_sprite_ypos#1 ] : zp ZP_BYTE:178 , +Potential registers zp ZP_BYTE:179 [ irq_sprite_ptr#1 ] : zp ZP_BYTE:179 , REGISTER UPLIFT SCOPES -Uplift Scope [keyboard_event_scan] 2,002: zp ZP_BYTE:148 [ keyboard_event_scan::$3 ] 2,002: zp ZP_BYTE:149 [ keyboard_event_scan::$4 ] 2,002: zp ZP_BYTE:150 [ keyboard_event_scan::event_type#0 ] 2,002: zp ZP_BYTE:151 [ keyboard_event_scan::$11 ] 1,787.5: zp ZP_BYTE:57 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] 1,195.02: zp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] 211.74: zp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] 128.06: zp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] 4: zp ZP_BYTE:140 [ keyboard_event_scan::$14 ] 4: zp ZP_BYTE:142 [ keyboard_event_scan::$18 ] 4: zp ZP_BYTE:144 [ keyboard_event_scan::$22 ] 4: zp ZP_BYTE:146 [ keyboard_event_scan::$26 ] -Uplift Scope [play_collision] 3,823.33: zp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] 2,002: zp ZP_BYTE:115 [ play_collision::$7 ] 1,340.75: zp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] 1,223.44: zp ZP_BYTE:29 [ play_collision::c#2 play_collision::c#1 ] 161.77: zp ZP_BYTE:114 [ play_collision::i#1 ] 141.57: zp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] 113.62: zp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] 78.71: zp ZP_WORD:112 [ play_collision::playfield_line#0 ] 47.76: zp ZP_WORD:110 [ play_collision::piece_gfx#0 ] 18: zp ZP_BYTE:22 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] 10: zp ZP_BYTE:23 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] 9.29: zp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] 4: zp ZP_BYTE:107 [ play_collision::return#13 ] 4: zp ZP_BYTE:116 [ play_collision::return#12 ] 4: zp ZP_BYTE:118 [ play_collision::return#1 ] 4: zp ZP_BYTE:122 [ play_collision::return#0 ] 1.33: zp ZP_BYTE:30 [ play_collision::return#14 ] -Uplift Scope [render_current] 2,544.35: zp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] 1,787.5: zp ZP_BYTE:12 [ render_current::c#2 render_current::c#1 ] 1,553.5: zp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] 1,001: zp ZP_BYTE:104 [ render_current::current_cell#0 ] 163.38: zp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] 103.02: zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] 100.18: zp ZP_WORD:102 [ render_current::screen_line#0 ] -Uplift Scope [play_lock_current] 3,823.33: zp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] 1,478.5: zp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] 1,401.4: zp ZP_BYTE:52 [ play_lock_current::c#2 play_lock_current::c#1 ] 233.67: zp ZP_BYTE:131 [ play_lock_current::i#1 ] 117.83: zp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] 110.2: zp ZP_WORD:129 [ play_lock_current::playfield_line#0 ] 82.23: zp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -Uplift Scope [play_remove_lines] 1,915.77: zp ZP_BYTE:44 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] 1,903.43: zp ZP_BYTE:47 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] 1,751.75: zp ZP_BYTE:45 [ play_remove_lines::x#2 play_remove_lines::x#1 ] 821: zp ZP_BYTE:46 [ play_remove_lines::full#4 play_remove_lines::full#2 ] 600.6: zp ZP_BYTE:128 [ play_remove_lines::c#0 ] 165.93: zp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] -Uplift Scope [] 5,895.76: zp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] 74.29: zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] 61.29: zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] 32.62: zp ZP_WORD:37 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] 27.62: zp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] 26: zp ZP_WORD:20 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] 21.5: zp ZP_BYTE:3 [ current_ypos#9 current_ypos#83 current_ypos#84 ] 20: zp ZP_BYTE:147 [ keyboard_modifiers#5 ] 20: zp ZP_BYTE:163 [ irq_sprite_ypos#2 ] 20: zp ZP_BYTE:164 [ irq_sprite_ptr#2 ] 20: zp ZP_BYTE:166 [ irq_cnt#13 ] 20: zp ZP_BYTE:167 [ irq_sprite_ypos#1 ] 20: zp ZP_BYTE:168 [ irq_sprite_ptr#1 ] 18.48: zp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] 14.91: zp ZP_WORD:34 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 ] 14.1: zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] 11.67: zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] 11.6: zp ZP_BYTE:56 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] 8.96: zp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] 8.33: zp ZP_BYTE:82 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] 4: zp ZP_BYTE:162 [ irq_cnt#1 ] 2.35: zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] 1: zp ZP_BYTE:85 [ irq_sprite_ypos#0 ] 0.33: zp ZP_BYTE:86 [ irq_sprite_ptr#0 ] 0.29: zp ZP_BYTE:87 [ irq_cnt#0 ] 0.25: zp ZP_BYTE:84 [ irq_raster_next#0 ] -Uplift Scope [render_playfield] 2,254.5: zp ZP_WORD:15 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] 2,002: zp ZP_BYTE:17 [ render_playfield::c#2 render_playfield::c#1 ] 1,522.6: zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] 202: zp ZP_BYTE:105 [ render_playfield::$2 ] 185.17: zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] -Uplift Scope [render_screen_original] 779.94: zp ZP_BYTE:79 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] 676.1: zp ZP_WORD:77 [ render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] 580.75: zp ZP_BYTE:76 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] 233.98: zp ZP_WORD:74 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] 17.5: zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] -Uplift Scope [render_init] 252.5: zp ZP_BYTE:72 [ render_init::c#2 render_init::c#1 ] 202: zp ZP_WORD:156 [ render_init::$18 ] 27.83: zp ZP_WORD:69 [ render_init::line#4 render_init::line#1 ] 24.75: zp ZP_BYTE:66 [ render_init::i#2 render_init::i#1 ] 22: zp ZP_BYTE:155 [ render_init::$11 ] 19.64: zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] 18.33: zp ZP_WORD:67 [ render_init::li#2 render_init::li#1 ] -Uplift Scope [play_spawn_current] 237: zp ZP_BYTE:42 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] 202: zp ZP_BYTE:126 [ play_spawn_current::$1 ] 0.13: zp ZP_BYTE:124 [ play_spawn_current::$3 ] -Uplift Scope [keyboard_matrix_read] 202: zp ZP_BYTE:137 [ keyboard_matrix_read::return#2 ] 103: zp ZP_BYTE:136 [ keyboard_matrix_read::rowid#0 ] 34.33: zp ZP_BYTE:152 [ keyboard_matrix_read::return#0 ] -Uplift Scope [sid_rnd] 202: zp ZP_BYTE:125 [ sid_rnd::return#2 ] 34.33: zp ZP_BYTE:127 [ sid_rnd::return#0 ] -Uplift Scope [main] 22: zp ZP_BYTE:92 [ main::$12 ] 22: zp ZP_BYTE:96 [ main::$13 ] 22: zp ZP_BYTE:100 [ main::$14 ] 22: zp ZP_BYTE:101 [ main::render#3 ] 4.4: zp ZP_BYTE:93 [ main::render#1 ] 4.4: zp ZP_BYTE:97 [ main::render#2 ] 4: zp ZP_BYTE:89 [ main::key_event#0 ] -Uplift Scope [play_init] 23.83: zp ZP_BYTE:60 [ play_init::j#2 play_init::j#1 ] 22: zp ZP_BYTE:153 [ play_init::$1 ] 13.93: zp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] 13.75: zp ZP_WORD:61 [ play_init::pli#2 play_init::pli#1 ] -Uplift Scope [sprites_init] 25.3: zp ZP_BYTE:64 [ sprites_init::s#2 sprites_init::s#1 ] 22: zp ZP_BYTE:154 [ sprites_init::s2#0 ] 15.58: zp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Uplift Scope [play_move_down] 22: zp ZP_BYTE:91 [ play_move_down::return#3 ] 20: zp ZP_BYTE:32 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] 6.5: zp ZP_BYTE:90 [ play_move_down::key_event#0 ] 4: zp ZP_BYTE:121 [ play_move_down::$2 ] 4: zp ZP_BYTE:123 [ play_move_down::$12 ] 3.67: zp ZP_BYTE:41 [ play_move_down::return#2 ] -Uplift Scope [play_move_rotate] 22: zp ZP_BYTE:99 [ play_move_rotate::return#4 ] 8.89: zp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] 7.5: zp ZP_BYTE:98 [ play_move_rotate::key_event#0 ] 4: zp ZP_BYTE:106 [ play_move_rotate::$2 ] 4: zp ZP_BYTE:108 [ play_move_rotate::$6 ] 4: zp ZP_BYTE:109 [ play_move_rotate::$4 ] 3.67: zp ZP_BYTE:18 [ play_move_rotate::return#1 ] -Uplift Scope [play_move_leftright] 22: zp ZP_BYTE:95 [ play_move_leftright::return#4 ] 7.5: zp ZP_BYTE:94 [ play_move_leftright::key_event#0 ] 4: zp ZP_BYTE:117 [ play_move_leftright::$4 ] 4: zp ZP_BYTE:119 [ play_move_leftright::$8 ] 3.67: zp ZP_BYTE:31 [ play_move_leftright::return#1 ] -Uplift Scope [keyboard_event_pressed] 4: zp ZP_BYTE:120 [ keyboard_event_pressed::return#12 ] 4: zp ZP_BYTE:132 [ keyboard_event_pressed::$0 ] 4: zp ZP_BYTE:134 [ keyboard_event_pressed::$1 ] 4: zp ZP_BYTE:139 [ keyboard_event_pressed::return#0 ] 4: zp ZP_BYTE:141 [ keyboard_event_pressed::return#1 ] 4: zp ZP_BYTE:143 [ keyboard_event_pressed::return#2 ] 4: zp ZP_BYTE:145 [ keyboard_event_pressed::return#10 ] 2: zp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] 1.71: zp ZP_BYTE:135 [ keyboard_event_pressed::return#11 ] 1.33: zp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] +Uplift Scope [keyboard_event_scan] 2,002: zp ZP_BYTE:158 [ keyboard_event_scan::$3 ] 2,002: zp ZP_BYTE:159 [ keyboard_event_scan::$4 ] 2,002: zp ZP_BYTE:160 [ keyboard_event_scan::event_type#0 ] 2,002: zp ZP_BYTE:161 [ keyboard_event_scan::$11 ] 1,787.5: zp ZP_BYTE:61 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] 1,195.02: zp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] 211.74: zp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] 128.06: zp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] 4: zp ZP_BYTE:150 [ keyboard_event_scan::$14 ] 4: zp ZP_BYTE:152 [ keyboard_event_scan::$18 ] 4: zp ZP_BYTE:154 [ keyboard_event_scan::$22 ] 4: zp ZP_BYTE:156 [ keyboard_event_scan::$26 ] +Uplift Scope [play_collision] 3,823.33: zp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] 2,002: zp ZP_BYTE:125 [ play_collision::$7 ] 1,340.75: zp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] 1,223.44: zp ZP_BYTE:33 [ play_collision::c#2 play_collision::c#1 ] 161.77: zp ZP_BYTE:124 [ play_collision::i#1 ] 141.57: zp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] 113.62: zp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] 78.71: zp ZP_WORD:122 [ play_collision::playfield_line#0 ] 47.76: zp ZP_WORD:120 [ play_collision::piece_gfx#0 ] 18: zp ZP_BYTE:26 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] 10: zp ZP_BYTE:27 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] 9.29: zp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] 4: zp ZP_BYTE:117 [ play_collision::return#13 ] 4: zp ZP_BYTE:126 [ play_collision::return#12 ] 4: zp ZP_BYTE:128 [ play_collision::return#1 ] 4: zp ZP_BYTE:132 [ play_collision::return#0 ] 1.33: zp ZP_BYTE:34 [ play_collision::return#14 ] +Uplift Scope [render_current] 2,534.25: zp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] 1,787.5: zp ZP_BYTE:15 [ render_current::c#2 render_current::c#1 ] 1,553.5: zp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] 1,001: zp ZP_BYTE:113 [ render_current::current_cell#0 ] 202: zp ZP_BYTE:110 [ render_current::$5 ] 162.72: zp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] 101.16: zp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] 100.18: zp ZP_WORD:111 [ render_current::screen_line#0 ] +Uplift Scope [play_lock_current] 3,823.33: zp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] 1,478.5: zp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] 1,401.4: zp ZP_BYTE:56 [ play_lock_current::c#2 play_lock_current::c#1 ] 233.67: zp ZP_BYTE:141 [ play_lock_current::i#1 ] 117.83: zp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] 110.2: zp ZP_WORD:139 [ play_lock_current::playfield_line#0 ] 82.23: zp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +Uplift Scope [play_remove_lines] 1,915.77: zp ZP_BYTE:48 [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] 1,903.43: zp ZP_BYTE:51 [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] 1,751.75: zp ZP_BYTE:49 [ play_remove_lines::x#2 play_remove_lines::x#1 ] 821: zp ZP_BYTE:50 [ play_remove_lines::full#4 play_remove_lines::full#2 ] 600.6: zp ZP_BYTE:138 [ play_remove_lines::c#0 ] 165.93: zp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] +Uplift Scope [] 5,894.95: zp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] 72.09: zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] 59.09: zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] 31.48: zp ZP_WORD:41 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] 30.62: zp ZP_BYTE:16 [ render_screen_render#18 render_screen_render#69 ] 26.72: zp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] 26: zp ZP_WORD:24 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] 21.69: zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] 21.03: zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] 20.4: zp ZP_BYTE:5 [ current_ypos#9 current_ypos#83 current_ypos#84 ] 20: zp ZP_BYTE:157 [ keyboard_modifiers#5 ] 20: zp ZP_BYTE:174 [ irq_sprite_ypos#2 ] 20: zp ZP_BYTE:175 [ irq_sprite_ptr#2 ] 20: zp ZP_BYTE:177 [ irq_cnt#13 ] 20: zp ZP_BYTE:178 [ irq_sprite_ypos#1 ] 20: zp ZP_BYTE:179 [ irq_sprite_ptr#1 ] 18.31: zp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] 14.86: zp ZP_WORD:38 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 ] 13.85: zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] 11.61: zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] 11.6: zp ZP_BYTE:60 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] 10.59: zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] 8.69: zp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] 8.33: zp ZP_BYTE:89 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] 4: zp ZP_BYTE:173 [ irq_cnt#1 ] 2.06: zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] 0.81: zp ZP_BYTE:92 [ irq_sprite_ypos#0 ] 0.27: zp ZP_BYTE:93 [ irq_sprite_ptr#0 ] 0.22: zp ZP_BYTE:94 [ irq_cnt#0 ] 0.2: zp ZP_BYTE:91 [ irq_raster_next#0 ] +Uplift Scope [render_playfield] 2,254.5: zp ZP_WORD:19 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] 2,002: zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] 1,505.77: zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] 202: zp ZP_BYTE:114 [ render_playfield::$2 ] 202: zp ZP_BYTE:115 [ render_playfield::$3 ] 181.8: zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] +Uplift Scope [render_screen_original] 779.94: zp ZP_BYTE:88 [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] 680.1: zp ZP_WORD:86 [ render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] 580.75: zp ZP_BYTE:85 [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] 233.98: zp ZP_WORD:83 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] 17.5: zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] +Uplift Scope [render_init] 252.5: zp ZP_BYTE:74 [ render_init::c#2 render_init::c#1 ] 202: zp ZP_WORD:165 [ render_init::$12 ] 27.83: zp ZP_WORD:71 [ render_init::line#4 render_init::line#1 ] 22.79: zp ZP_BYTE:75 [ render_init::i#2 render_init::i#1 ] 22: zp ZP_BYTE:167 [ render_init::$22 ] 22: zp ZP_BYTE:168 [ render_init::$23 ] 19.64: zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] 12.83: zp ZP_WORD:78 [ render_init::li_2#2 render_init::li_2#1 ] 12.1: zp ZP_WORD:76 [ render_init::li_1#2 render_init::li_1#1 ] +Uplift Scope [play_spawn_current] 237: zp ZP_BYTE:46 [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] 202: zp ZP_BYTE:136 [ play_spawn_current::$1 ] 0.13: zp ZP_BYTE:134 [ play_spawn_current::$3 ] +Uplift Scope [keyboard_matrix_read] 202: zp ZP_BYTE:147 [ keyboard_matrix_read::return#2 ] 103: zp ZP_BYTE:146 [ keyboard_matrix_read::rowid#0 ] 34.33: zp ZP_BYTE:162 [ keyboard_matrix_read::return#0 ] +Uplift Scope [sid_rnd] 202: zp ZP_BYTE:135 [ sid_rnd::return#2 ] 34.33: zp ZP_BYTE:137 [ sid_rnd::return#0 ] +Uplift Scope [main] 22: zp ZP_BYTE:95 [ main::$9 ] 22: zp ZP_BYTE:100 [ main::$13 ] 22: zp ZP_BYTE:104 [ main::$14 ] 22: zp ZP_BYTE:108 [ main::$15 ] 22: zp ZP_BYTE:109 [ main::render#3 ] 4.4: zp ZP_BYTE:101 [ main::render#1 ] 4.4: zp ZP_BYTE:105 [ main::render#2 ] 4: zp ZP_BYTE:97 [ main::key_event#0 ] +Uplift Scope [play_init] 23.83: zp ZP_BYTE:65 [ play_init::j#2 play_init::j#1 ] 22: zp ZP_BYTE:163 [ play_init::$1 ] 13.93: zp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] 13.75: zp ZP_WORD:66 [ play_init::pli#2 play_init::pli#1 ] +Uplift Scope [sprites_init] 25.3: zp ZP_BYTE:69 [ sprites_init::s#2 sprites_init::s#1 ] 22: zp ZP_BYTE:164 [ sprites_init::s2#0 ] 15.58: zp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Uplift Scope [play_move_down] 22: zp ZP_BYTE:99 [ play_move_down::return#3 ] 20: zp ZP_BYTE:36 [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] 6.5: zp ZP_BYTE:98 [ play_move_down::key_event#0 ] 4: zp ZP_BYTE:131 [ play_move_down::$2 ] 4: zp ZP_BYTE:133 [ play_move_down::$12 ] 3.67: zp ZP_BYTE:45 [ play_move_down::return#2 ] +Uplift Scope [play_move_rotate] 22: zp ZP_BYTE:107 [ play_move_rotate::return#4 ] 8.89: zp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] 7.5: zp ZP_BYTE:106 [ play_move_rotate::key_event#0 ] 4: zp ZP_BYTE:116 [ play_move_rotate::$2 ] 4: zp ZP_BYTE:118 [ play_move_rotate::$6 ] 4: zp ZP_BYTE:119 [ play_move_rotate::$4 ] 3.67: zp ZP_BYTE:22 [ play_move_rotate::return#1 ] +Uplift Scope [play_move_leftright] 22: zp ZP_BYTE:103 [ play_move_leftright::return#4 ] 7.5: zp ZP_BYTE:102 [ play_move_leftright::key_event#0 ] 4: zp ZP_BYTE:127 [ play_move_leftright::$4 ] 4: zp ZP_BYTE:129 [ play_move_leftright::$8 ] 3.67: zp ZP_BYTE:35 [ play_move_leftright::return#1 ] +Uplift Scope [keyboard_event_pressed] 4: zp ZP_BYTE:130 [ keyboard_event_pressed::return#12 ] 4: zp ZP_BYTE:142 [ keyboard_event_pressed::$0 ] 4: zp ZP_BYTE:144 [ keyboard_event_pressed::$1 ] 4: zp ZP_BYTE:149 [ keyboard_event_pressed::return#0 ] 4: zp ZP_BYTE:151 [ keyboard_event_pressed::return#1 ] 4: zp ZP_BYTE:153 [ keyboard_event_pressed::return#2 ] 4: zp ZP_BYTE:155 [ keyboard_event_pressed::return#10 ] 2: zp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] 1.71: zp ZP_BYTE:145 [ keyboard_event_pressed::return#11 ] 1.33: zp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] Uplift Scope [fill] 33: zp ZP_WORD:80 [ fill::addr#2 fill::addr#1 ] -Uplift Scope [keyboard_event_get] 22: zp ZP_BYTE:88 [ keyboard_event_get::return#3 ] 8.33: zp ZP_BYTE:54 [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] -Uplift Scope [irq] 12.67: zp ZP_BYTE:83 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] 4: zp ZP_BYTE:161 [ irq::ptr#2 ] 4: zp ZP_BYTE:165 [ irq::$3 ] 3: zp ZP_BYTE:159 [ irq::ptr#0 ] 2.67: zp ZP_BYTE:160 [ irq::ptr#1 ] 2.5: zp ZP_BYTE:158 [ irq::ypos#0 ] +Uplift Scope [keyboard_event_get] 22: zp ZP_BYTE:96 [ keyboard_event_get::return#3 ] 8.33: zp ZP_BYTE:58 [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] +Uplift Scope [irq] 12.67: zp ZP_BYTE:90 [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] 4: zp ZP_BYTE:176 [ irq::$3 ] 3: zp ZP_BYTE:172 [ irq::ptr#2 ] 2.67: zp ZP_BYTE:170 [ irq::ptr#0 ] 2.5: zp ZP_BYTE:169 [ irq::ypos#0 ] 2.4: zp ZP_BYTE:171 [ irq::ptr#1 ] +Uplift Scope [render_show] 2: zp ZP_BYTE:64 [ render_show::d018val#3 ] Uplift Scope [sid_rnd_init] +Uplift Scope [render_screen_swap] Uplift Scope [sprites_irq_init] -Uplifting [keyboard_event_scan] best 624839 combination reg byte a [ keyboard_event_scan::$3 ] reg byte a [ keyboard_event_scan::$4 ] reg byte a [ keyboard_event_scan::event_type#0 ] reg byte a [ keyboard_event_scan::$11 ] zp ZP_BYTE:57 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] zp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] zp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] zp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] zp ZP_BYTE:140 [ keyboard_event_scan::$14 ] zp ZP_BYTE:142 [ keyboard_event_scan::$18 ] zp ZP_BYTE:144 [ keyboard_event_scan::$22 ] zp ZP_BYTE:146 [ keyboard_event_scan::$26 ] +Uplifting [keyboard_event_scan] best 627012 combination reg byte a [ keyboard_event_scan::$3 ] reg byte a [ keyboard_event_scan::$4 ] reg byte a [ keyboard_event_scan::event_type#0 ] reg byte a [ keyboard_event_scan::$11 ] zp ZP_BYTE:61 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] zp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] zp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] zp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] zp ZP_BYTE:150 [ keyboard_event_scan::$14 ] zp ZP_BYTE:152 [ keyboard_event_scan::$18 ] zp ZP_BYTE:154 [ keyboard_event_scan::$22 ] zp ZP_BYTE:156 [ keyboard_event_scan::$26 ] Limited combination testing to 100 combinations of 5308416 possible. -Uplifting [play_collision] best 609839 combination zp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] reg byte a [ play_collision::$7 ] zp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] reg byte x [ play_collision::c#2 play_collision::c#1 ] zp ZP_BYTE:114 [ play_collision::i#1 ] zp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] zp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] zp ZP_WORD:112 [ play_collision::playfield_line#0 ] zp ZP_WORD:110 [ play_collision::piece_gfx#0 ] zp ZP_BYTE:22 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] zp ZP_BYTE:23 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] zp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] zp ZP_BYTE:107 [ play_collision::return#13 ] zp ZP_BYTE:116 [ play_collision::return#12 ] zp ZP_BYTE:118 [ play_collision::return#1 ] zp ZP_BYTE:122 [ play_collision::return#0 ] zp ZP_BYTE:30 [ play_collision::return#14 ] +Uplifting [play_collision] best 612012 combination zp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] reg byte a [ play_collision::$7 ] zp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] reg byte x [ play_collision::c#2 play_collision::c#1 ] zp ZP_BYTE:124 [ play_collision::i#1 ] zp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] zp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] zp ZP_WORD:122 [ play_collision::playfield_line#0 ] zp ZP_WORD:120 [ play_collision::piece_gfx#0 ] zp ZP_BYTE:26 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] zp ZP_BYTE:27 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] zp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] zp ZP_BYTE:117 [ play_collision::return#13 ] zp ZP_BYTE:126 [ play_collision::return#12 ] zp ZP_BYTE:128 [ play_collision::return#1 ] zp ZP_BYTE:132 [ play_collision::return#0 ] zp ZP_BYTE:34 [ play_collision::return#14 ] Limited combination testing to 100 combinations of 80621568 possible. -Uplifting [render_current] best 594839 combination zp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] reg byte x [ render_current::c#2 render_current::c#1 ] zp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] reg byte a [ render_current::current_cell#0 ] zp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] zp ZP_WORD:102 [ render_current::screen_line#0 ] -Limited combination testing to 100 combinations of 972 possible. -Uplifting [play_lock_current] best 585839 combination zp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] zp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] reg byte x [ play_lock_current::c#2 play_lock_current::c#1 ] zp ZP_BYTE:131 [ play_lock_current::i#1 ] zp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] zp ZP_WORD:129 [ play_lock_current::playfield_line#0 ] zp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +Uplifting [render_current] best 597012 combination zp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] reg byte x [ render_current::c#2 render_current::c#1 ] zp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] reg byte a [ render_current::current_cell#0 ] zp ZP_BYTE:110 [ render_current::$5 ] zp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] zp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] zp ZP_WORD:111 [ render_current::screen_line#0 ] +Limited combination testing to 100 combinations of 3888 possible. +Uplifting [play_lock_current] best 588012 combination zp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] zp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] reg byte x [ play_lock_current::c#2 play_lock_current::c#1 ] zp ZP_BYTE:141 [ play_lock_current::i#1 ] zp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] zp ZP_WORD:139 [ play_lock_current::playfield_line#0 ] zp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] Limited combination testing to 100 combinations of 729 possible. -Uplifting [play_remove_lines] best 572139 combination reg byte y [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] reg byte x [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] zp ZP_BYTE:45 [ play_remove_lines::x#2 play_remove_lines::x#1 ] zp ZP_BYTE:46 [ play_remove_lines::full#4 play_remove_lines::full#2 ] zp ZP_BYTE:128 [ play_remove_lines::c#0 ] zp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] +Uplifting [play_remove_lines] best 574312 combination reg byte y [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] reg byte x [ play_remove_lines::w#6 play_remove_lines::w#4 play_remove_lines::w#12 play_remove_lines::w#11 play_remove_lines::w#1 play_remove_lines::w#2 play_remove_lines::w#3 ] zp ZP_BYTE:49 [ play_remove_lines::x#2 play_remove_lines::x#1 ] zp ZP_BYTE:50 [ play_remove_lines::full#4 play_remove_lines::full#2 ] zp ZP_BYTE:138 [ play_remove_lines::c#0 ] zp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] Limited combination testing to 100 combinations of 1728 possible. -Uplifting [] best 572102 combination zp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] zp ZP_WORD:37 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] zp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] zp ZP_WORD:20 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] reg byte x [ current_ypos#9 current_ypos#83 current_ypos#84 ] reg byte a [ keyboard_modifiers#5 ] zp ZP_BYTE:163 [ irq_sprite_ypos#2 ] zp ZP_BYTE:164 [ irq_sprite_ptr#2 ] zp ZP_BYTE:166 [ irq_cnt#13 ] zp ZP_BYTE:167 [ irq_sprite_ypos#1 ] zp ZP_BYTE:168 [ irq_sprite_ptr#1 ] zp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] zp ZP_WORD:34 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 ] zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] zp ZP_BYTE:56 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] zp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] zp ZP_BYTE:82 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] zp ZP_BYTE:162 [ irq_cnt#1 ] zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] zp ZP_BYTE:85 [ irq_sprite_ypos#0 ] zp ZP_BYTE:86 [ irq_sprite_ptr#0 ] zp ZP_BYTE:87 [ irq_cnt#0 ] zp ZP_BYTE:84 [ irq_raster_next#0 ] -Limited combination testing to 100 combinations of 20736 possible. -Uplifting [render_playfield] best 562702 combination zp ZP_WORD:15 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] reg byte x [ render_playfield::c#2 render_playfield::c#1 ] zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] reg byte a [ render_playfield::$2 ] zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] -Uplifting [render_screen_original] best 559602 combination reg byte x [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] zp ZP_WORD:77 [ render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] reg byte y [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] zp ZP_WORD:74 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] -Uplifting [render_init] best 558462 combination reg byte x [ render_init::c#2 render_init::c#1 ] zp ZP_WORD:156 [ render_init::$18 ] zp ZP_WORD:69 [ render_init::line#4 render_init::line#1 ] reg byte x [ render_init::i#2 render_init::i#1 ] reg byte a [ render_init::$11 ] zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] zp ZP_WORD:67 [ render_init::li#2 render_init::li#1 ] -Uplifting [play_spawn_current] best 557152 combination reg byte x [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] reg byte a [ play_spawn_current::$1 ] zp ZP_BYTE:124 [ play_spawn_current::$3 ] -Uplifting [keyboard_matrix_read] best 555946 combination reg byte a [ keyboard_matrix_read::return#2 ] reg byte x [ keyboard_matrix_read::rowid#0 ] reg byte a [ keyboard_matrix_read::return#0 ] -Uplifting [sid_rnd] best 555043 combination reg byte a [ sid_rnd::return#2 ] reg byte a [ sid_rnd::return#0 ] -Uplifting [main] best 554803 combination reg byte a [ main::$12 ] reg byte a [ main::$13 ] reg byte a [ main::$14 ] reg byte a [ main::render#3 ] zp ZP_BYTE:93 [ main::render#1 ] zp ZP_BYTE:97 [ main::render#2 ] zp ZP_BYTE:89 [ main::key_event#0 ] -Limited combination testing to 100 combinations of 6912 possible. -Uplifting [play_init] best 554633 combination reg byte x [ play_init::j#2 play_init::j#1 ] reg byte a [ play_init::$1 ] zp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] zp ZP_WORD:61 [ play_init::pli#2 play_init::pli#1 ] -Uplifting [sprites_init] best 554463 combination reg byte x [ sprites_init::s#2 sprites_init::s#1 ] reg byte a [ sprites_init::s2#0 ] zp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Uplifting [play_move_down] best 554349 combination reg byte a [ play_move_down::return#3 ] reg byte x [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] reg byte a [ play_move_down::key_event#0 ] reg byte a [ play_move_down::$2 ] zp ZP_BYTE:123 [ play_move_down::$12 ] zp ZP_BYTE:41 [ play_move_down::return#2 ] +Uplifting [] best 574179 combination zp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] zp ZP_WORD:41 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] reg byte x [ render_screen_render#18 render_screen_render#69 ] zp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] zp ZP_WORD:24 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] zp ZP_BYTE:5 [ current_ypos#9 current_ypos#83 current_ypos#84 ] zp ZP_BYTE:157 [ keyboard_modifiers#5 ] zp ZP_BYTE:174 [ irq_sprite_ypos#2 ] zp ZP_BYTE:175 [ irq_sprite_ptr#2 ] zp ZP_BYTE:177 [ irq_cnt#13 ] zp ZP_BYTE:178 [ irq_sprite_ypos#1 ] zp ZP_BYTE:179 [ irq_sprite_ptr#1 ] zp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] zp ZP_WORD:38 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 ] zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] zp ZP_BYTE:60 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] zp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] zp ZP_BYTE:89 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] zp ZP_BYTE:173 [ irq_cnt#1 ] zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] zp ZP_BYTE:92 [ irq_sprite_ypos#0 ] zp ZP_BYTE:93 [ irq_sprite_ptr#0 ] zp ZP_BYTE:94 [ irq_cnt#0 ] zp ZP_BYTE:91 [ irq_raster_next#0 ] +Limited combination testing to 100 combinations of 497664 possible. +Uplifting [render_playfield] best 573579 combination zp ZP_WORD:19 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] reg byte a [ render_playfield::$2 ] reg byte a [ render_playfield::$3 ] zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] +Limited combination testing to 100 combinations of 128 possible. +Uplifting [render_screen_original] best 570479 combination reg byte x [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] zp ZP_WORD:86 [ render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] reg byte y [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] zp ZP_WORD:83 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] +Uplifting [render_init] best 569289 combination reg byte x [ render_init::c#2 render_init::c#1 ] zp ZP_WORD:165 [ render_init::$12 ] zp ZP_WORD:71 [ render_init::line#4 render_init::line#1 ] reg byte x [ render_init::i#2 render_init::i#1 ] reg byte a [ render_init::$22 ] reg byte a [ render_init::$23 ] zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] zp ZP_WORD:78 [ render_init::li_2#2 render_init::li_2#1 ] zp ZP_WORD:76 [ render_init::li_1#2 render_init::li_1#1 ] +Limited combination testing to 100 combinations of 192 possible. +Uplifting [play_spawn_current] best 567979 combination reg byte x [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] reg byte a [ play_spawn_current::$1 ] zp ZP_BYTE:134 [ play_spawn_current::$3 ] +Uplifting [keyboard_matrix_read] best 566773 combination reg byte a [ keyboard_matrix_read::return#2 ] reg byte x [ keyboard_matrix_read::rowid#0 ] reg byte a [ keyboard_matrix_read::return#0 ] +Uplifting [sid_rnd] best 565870 combination reg byte a [ sid_rnd::return#2 ] reg byte a [ sid_rnd::return#0 ] +Uplifting [main] best 565630 combination reg byte a [ main::$9 ] reg byte a [ main::$13 ] reg byte a [ main::$14 ] reg byte a [ main::$15 ] zp ZP_BYTE:109 [ main::render#3 ] zp ZP_BYTE:101 [ main::render#1 ] zp ZP_BYTE:105 [ main::render#2 ] zp ZP_BYTE:97 [ main::key_event#0 ] +Limited combination testing to 100 combinations of 27648 possible. +Uplifting [play_init] best 565460 combination reg byte x [ play_init::j#2 play_init::j#1 ] reg byte a [ play_init::$1 ] zp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] zp ZP_WORD:66 [ play_init::pli#2 play_init::pli#1 ] +Uplifting [sprites_init] best 565290 combination reg byte x [ sprites_init::s#2 sprites_init::s#1 ] reg byte a [ sprites_init::s2#0 ] zp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Uplifting [play_move_down] best 565176 combination reg byte a [ play_move_down::return#3 ] reg byte x [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] reg byte a [ play_move_down::key_event#0 ] reg byte a [ play_move_down::$2 ] zp ZP_BYTE:133 [ play_move_down::$12 ] zp ZP_BYTE:45 [ play_move_down::return#2 ] Limited combination testing to 100 combinations of 3072 possible. -Uplifting [play_move_rotate] best 554247 combination reg byte a [ play_move_rotate::return#4 ] zp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] reg byte a [ play_move_rotate::key_event#0 ] reg byte a [ play_move_rotate::$2 ] zp ZP_BYTE:108 [ play_move_rotate::$6 ] zp ZP_BYTE:109 [ play_move_rotate::$4 ] zp ZP_BYTE:18 [ play_move_rotate::return#1 ] +Uplifting [play_move_rotate] best 565074 combination reg byte a [ play_move_rotate::return#4 ] zp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] reg byte a [ play_move_rotate::key_event#0 ] reg byte a [ play_move_rotate::$2 ] zp ZP_BYTE:118 [ play_move_rotate::$6 ] zp ZP_BYTE:119 [ play_move_rotate::$4 ] zp ZP_BYTE:22 [ play_move_rotate::return#1 ] Limited combination testing to 100 combinations of 12288 possible. -Uplifting [play_move_leftright] best 554139 combination reg byte a [ play_move_leftright::return#4 ] reg byte a [ play_move_leftright::key_event#0 ] reg byte a [ play_move_leftright::$4 ] reg byte a [ play_move_leftright::$8 ] zp ZP_BYTE:31 [ play_move_leftright::return#1 ] +Uplifting [play_move_leftright] best 564966 combination reg byte a [ play_move_leftright::return#4 ] reg byte a [ play_move_leftright::key_event#0 ] reg byte a [ play_move_leftright::$4 ] reg byte a [ play_move_leftright::$8 ] zp ZP_BYTE:35 [ play_move_leftright::return#1 ] Limited combination testing to 100 combinations of 1024 possible. -Uplifting [keyboard_event_pressed] best 554119 combination reg byte a [ keyboard_event_pressed::return#12 ] reg byte a [ keyboard_event_pressed::$0 ] reg byte a [ keyboard_event_pressed::$1 ] reg byte a [ keyboard_event_pressed::return#0 ] zp ZP_BYTE:141 [ keyboard_event_pressed::return#1 ] zp ZP_BYTE:143 [ keyboard_event_pressed::return#2 ] zp ZP_BYTE:145 [ keyboard_event_pressed::return#10 ] zp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] zp ZP_BYTE:135 [ keyboard_event_pressed::return#11 ] zp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] +Uplifting [keyboard_event_pressed] best 564946 combination reg byte a [ keyboard_event_pressed::return#12 ] reg byte a [ keyboard_event_pressed::$0 ] reg byte a [ keyboard_event_pressed::$1 ] reg byte a [ keyboard_event_pressed::return#0 ] zp ZP_BYTE:151 [ keyboard_event_pressed::return#1 ] zp ZP_BYTE:153 [ keyboard_event_pressed::return#2 ] zp ZP_BYTE:155 [ keyboard_event_pressed::return#10 ] zp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] zp ZP_BYTE:145 [ keyboard_event_pressed::return#11 ] zp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] Limited combination testing to 100 combinations of 589824 possible. -Uplifting [fill] best 554119 combination zp ZP_WORD:80 [ fill::addr#2 fill::addr#1 ] -Uplifting [keyboard_event_get] best 554023 combination reg byte a [ keyboard_event_get::return#3 ] reg byte a [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] -Uplifting [irq] best 553994 combination reg byte x [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] reg byte x [ irq::ptr#2 ] reg byte a [ irq::$3 ] reg byte a [ irq::ptr#0 ] zp ZP_BYTE:160 [ irq::ptr#1 ] zp ZP_BYTE:158 [ irq::ypos#0 ] +Uplifting [fill] best 564946 combination zp ZP_WORD:80 [ fill::addr#2 fill::addr#1 ] +Uplifting [keyboard_event_get] best 564850 combination reg byte a [ keyboard_event_get::return#3 ] reg byte a [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] +Uplifting [irq] best 564815 combination reg byte x [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] reg byte a [ irq::$3 ] reg byte x [ irq::ptr#2 ] reg byte a [ irq::ptr#0 ] zp ZP_BYTE:169 [ irq::ypos#0 ] zp ZP_BYTE:171 [ irq::ptr#1 ] Limited combination testing to 100 combinations of 3072 possible. -Uplifting [sid_rnd_init] best 553994 combination -Uplifting [sprites_irq_init] best 553994 combination -Attempting to uplift remaining variables inzp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] -Uplifting [] best 553994 combination zp ZP_BYTE:59 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] -Uplifting [play_collision] best 553994 combination zp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] -Attempting to uplift remaining variables inzp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] -Uplifting [play_lock_current] best 553994 combination zp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] -Attempting to uplift remaining variables inzp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] -Uplifting [render_current] best 553994 combination zp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:57 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] -Uplifting [keyboard_event_scan] best 538994 combination reg byte x [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:45 [ play_remove_lines::x#2 play_remove_lines::x#1 ] -Uplifting [play_remove_lines] best 538994 combination zp ZP_BYTE:45 [ play_remove_lines::x#2 play_remove_lines::x#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] -Uplifting [render_current] best 538994 combination zp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] -Uplifting [render_playfield] best 538994 combination zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] -Uplifting [play_lock_current] best 538994 combination zp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] -Uplifting [play_collision] best 538994 combination zp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] -Uplifting [keyboard_event_scan] best 538994 combination zp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] -Attempting to uplift remaining variables inzp ZP_BYTE:46 [ play_remove_lines::full#4 play_remove_lines::full#2 ] -Uplifting [play_remove_lines] best 538994 combination zp ZP_BYTE:46 [ play_remove_lines::full#4 play_remove_lines::full#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:128 [ play_remove_lines::c#0 ] -Uplifting [play_remove_lines] best 538994 combination zp ZP_BYTE:128 [ play_remove_lines::c#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:131 [ play_lock_current::i#1 ] -Uplifting [play_lock_current] best 538994 combination zp ZP_BYTE:131 [ play_lock_current::i#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] -Uplifting [keyboard_event_scan] best 538994 combination zp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] -Uplifting [render_playfield] best 538994 combination zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] -Uplifting [play_remove_lines] best 538994 combination zp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] -Uplifting [render_current] best 538994 combination zp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:114 [ play_collision::i#1 ] -Uplifting [play_collision] best 538994 combination zp ZP_BYTE:114 [ play_collision::i#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] -Uplifting [play_collision] best 538994 combination zp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] -Uplifting [keyboard_event_scan] best 538994 combination zp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] -Uplifting [play_lock_current] best 538994 combination zp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] -Uplifting [play_collision] best 538994 combination zp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] -Uplifting [render_current] best 538994 combination zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -Uplifting [play_lock_current] best 538994 combination zp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] -Uplifting [] best 538994 combination zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] -Attempting to uplift remaining variables inzp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] -Uplifting [] best 538994 combination zp ZP_BYTE:40 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] -Attempting to uplift remaining variables inzp ZP_BYTE:163 [ irq_sprite_ypos#2 ] -Uplifting [] best 538994 combination zp ZP_BYTE:163 [ irq_sprite_ypos#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:164 [ irq_sprite_ptr#2 ] -Uplifting [] best 538994 combination zp ZP_BYTE:164 [ irq_sprite_ptr#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:166 [ irq_cnt#13 ] -Uplifting [] best 538994 combination zp ZP_BYTE:166 [ irq_cnt#13 ] -Attempting to uplift remaining variables inzp ZP_BYTE:167 [ irq_sprite_ypos#1 ] -Uplifting [] best 538994 combination zp ZP_BYTE:167 [ irq_sprite_ypos#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:168 [ irq_sprite_ptr#1 ] -Uplifting [] best 538994 combination zp ZP_BYTE:168 [ irq_sprite_ptr#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] -Uplifting [render_init] best 538994 combination zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -Uplifting [] best 538994 combination zp ZP_BYTE:39 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:22 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] -Uplifting [play_collision] best 538981 combination reg byte x [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] -Attempting to uplift remaining variables inzp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] -Uplifting [render_screen_original] best 538981 combination zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Uplifting [sprites_init] best 538981 combination zp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] -Uplifting [] best 538981 combination zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] -Attempting to uplift remaining variables inzp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] -Uplifting [play_init] best 538981 combination zp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] -Uplifting [] best 538981 combination zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:56 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] -Uplifting [] best 538970 combination reg byte x [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] -Attempting to uplift remaining variables inzp ZP_BYTE:23 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] -Uplifting [play_collision] best 538957 combination reg byte y [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] -Attempting to uplift remaining variables inzp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] -Uplifting [play_collision] best 538957 combination zp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] -Attempting to uplift remaining variables inzp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -Uplifting [] best 538957 combination zp ZP_BYTE:36 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -Attempting to uplift remaining variables inzp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] -Uplifting [play_move_rotate] best 538957 combination zp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:82 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] -Uplifting [] best 538957 combination zp ZP_BYTE:82 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:93 [ main::render#1 ] -Uplifting [main] best 538957 combination zp ZP_BYTE:93 [ main::render#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:97 [ main::render#2 ] -Uplifting [main] best 538957 combination zp ZP_BYTE:97 [ main::render#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:89 [ main::key_event#0 ] -Uplifting [main] best 538957 combination zp ZP_BYTE:89 [ main::key_event#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:107 [ play_collision::return#13 ] -Uplifting [play_collision] best 538951 combination reg byte a [ play_collision::return#13 ] -Attempting to uplift remaining variables inzp ZP_BYTE:108 [ play_move_rotate::$6 ] -Uplifting [play_move_rotate] best 538945 combination reg byte a [ play_move_rotate::$6 ] -Attempting to uplift remaining variables inzp ZP_BYTE:109 [ play_move_rotate::$4 ] -Uplifting [play_move_rotate] best 538939 combination reg byte a [ play_move_rotate::$4 ] -Attempting to uplift remaining variables inzp ZP_BYTE:116 [ play_collision::return#12 ] -Uplifting [play_collision] best 538933 combination reg byte a [ play_collision::return#12 ] -Attempting to uplift remaining variables inzp ZP_BYTE:118 [ play_collision::return#1 ] -Uplifting [play_collision] best 538927 combination reg byte a [ play_collision::return#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:122 [ play_collision::return#0 ] -Uplifting [play_collision] best 538921 combination reg byte a [ play_collision::return#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:123 [ play_move_down::$12 ] -Uplifting [play_move_down] best 538915 combination reg byte a [ play_move_down::$12 ] -Attempting to uplift remaining variables inzp ZP_BYTE:140 [ keyboard_event_scan::$14 ] -Uplifting [keyboard_event_scan] best 538909 combination reg byte a [ keyboard_event_scan::$14 ] -Attempting to uplift remaining variables inzp ZP_BYTE:141 [ keyboard_event_pressed::return#1 ] -Uplifting [keyboard_event_pressed] best 538903 combination reg byte a [ keyboard_event_pressed::return#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:142 [ keyboard_event_scan::$18 ] -Uplifting [keyboard_event_scan] best 538897 combination reg byte a [ keyboard_event_scan::$18 ] -Attempting to uplift remaining variables inzp ZP_BYTE:143 [ keyboard_event_pressed::return#2 ] -Uplifting [keyboard_event_pressed] best 538891 combination reg byte a [ keyboard_event_pressed::return#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:144 [ keyboard_event_scan::$22 ] -Uplifting [keyboard_event_scan] best 538885 combination reg byte a [ keyboard_event_scan::$22 ] -Attempting to uplift remaining variables inzp ZP_BYTE:145 [ keyboard_event_pressed::return#10 ] -Uplifting [keyboard_event_pressed] best 538879 combination reg byte a [ keyboard_event_pressed::return#10 ] -Attempting to uplift remaining variables inzp ZP_BYTE:146 [ keyboard_event_scan::$26 ] -Uplifting [keyboard_event_scan] best 538873 combination reg byte a [ keyboard_event_scan::$26 ] -Attempting to uplift remaining variables inzp ZP_BYTE:162 [ irq_cnt#1 ] -Uplifting [] best 538873 combination zp ZP_BYTE:162 [ irq_cnt#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:18 [ play_move_rotate::return#1 ] -Uplifting [play_move_rotate] best 538837 combination reg byte a [ play_move_rotate::return#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:31 [ play_move_leftright::return#1 ] -Uplifting [play_move_leftright] best 538801 combination reg byte a [ play_move_leftright::return#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:41 [ play_move_down::return#2 ] -Uplifting [play_move_down] best 538785 combination reg byte x [ play_move_down::return#2 ] -Attempting to uplift remaining variables inzp ZP_BYTE:160 [ irq::ptr#1 ] -Uplifting [irq] best 538773 combination reg byte x [ irq::ptr#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:158 [ irq::ypos#0 ] -Uplifting [irq] best 538758 combination reg byte a [ irq::ypos#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] -Uplifting [] best 538758 combination zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] -Attempting to uplift remaining variables inzp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] -Uplifting [keyboard_event_pressed] best 538758 combination zp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:135 [ keyboard_event_pressed::return#11 ] -Uplifting [keyboard_event_pressed] best 538740 combination reg byte a [ keyboard_event_pressed::return#11 ] -Attempting to uplift remaining variables inzp ZP_BYTE:30 [ play_collision::return#14 ] -Uplifting [play_collision] best 538713 combination reg byte a [ play_collision::return#14 ] -Attempting to uplift remaining variables inzp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] -Uplifting [keyboard_event_pressed] best 538713 combination zp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] -Attempting to uplift remaining variables inzp ZP_BYTE:85 [ irq_sprite_ypos#0 ] -Uplifting [] best 538713 combination zp ZP_BYTE:85 [ irq_sprite_ypos#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:86 [ irq_sprite_ptr#0 ] -Uplifting [] best 538713 combination zp ZP_BYTE:86 [ irq_sprite_ptr#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:87 [ irq_cnt#0 ] -Uplifting [] best 538713 combination zp ZP_BYTE:87 [ irq_cnt#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:84 [ irq_raster_next#0 ] -Uplifting [] best 538713 combination zp ZP_BYTE:84 [ irq_raster_next#0 ] -Attempting to uplift remaining variables inzp ZP_BYTE:124 [ play_spawn_current::$3 ] -Uplifting [play_spawn_current] best 538713 combination zp ZP_BYTE:124 [ play_spawn_current::$3 ] -Coalescing zero page register with common assignment [ zp ZP_WORD:20 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] ] with [ zp ZP_WORD:110 [ play_collision::piece_gfx#0 ] ] - score: 1 -Coalescing zero page register with common assignment [ zp ZP_BYTE:33 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 ] ] with [ zp ZP_BYTE:48 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] ] - score: 1 -Coalescing zero page register with common assignment [ zp ZP_BYTE:82 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] ] with [ zp ZP_BYTE:84 [ irq_raster_next#0 ] ] - score: 1 -Coalescing zero page register with common assignment [ zp ZP_BYTE:85 [ irq_sprite_ypos#0 ] ] with [ zp ZP_BYTE:163 [ irq_sprite_ypos#2 ] ] - score: 1 -Coalescing zero page register with common assignment [ zp ZP_BYTE:86 [ irq_sprite_ptr#0 ] ] with [ zp ZP_BYTE:164 [ irq_sprite_ptr#2 ] ] - score: 1 -Coalescing zero page register with common assignment [ zp ZP_BYTE:87 [ irq_cnt#0 ] ] with [ zp ZP_BYTE:162 [ irq_cnt#1 ] ] - score: 1 -Coalescing zero page register with common assignment [ zp ZP_BYTE:93 [ main::render#1 ] ] with [ zp ZP_BYTE:97 [ main::render#2 ] ] - score: 1 -Coalescing zero page register [ zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] ] with [ zp ZP_BYTE:43 [ play_remove_lines::y#8 play_remove_lines::y#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 ] ] with [ zp ZP_BYTE:49 [ play_lock_current::l#6 play_lock_current::l#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 ] ] with [ zp ZP_BYTE:63 [ play_init::idx#2 play_init::idx#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_init::idx#2 play_init::idx#1 ] ] with [ zp ZP_BYTE:65 [ sprites_init::xpos#2 sprites_init::xpos#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 ] ] with [ zp ZP_BYTE:71 [ render_init::l#4 render_init::l#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 render_init::l#4 render_init::l#1 ] ] with [ zp ZP_BYTE:73 [ render_screen_original::y#8 render_screen_original::y#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 render_init::l#4 render_init::l#1 render_screen_original::y#8 render_screen_original::y#1 ] ] with [ zp ZP_BYTE:124 [ play_spawn_current::$3 ] ] -Coalescing zero page register [ zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 ] ] with [ zp ZP_BYTE:13 [ render_playfield::l#2 render_playfield::l#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 ] ] with [ zp ZP_BYTE:19 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] ] -Coalescing zero page register [ zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] ] with [ zp ZP_BYTE:45 [ play_remove_lines::x#2 play_remove_lines::x#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 ] ] with [ zp ZP_BYTE:50 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] ] -Coalescing zero page register [ zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] ] with [ zp ZP_BYTE:53 [ keyboard_event_pressed::keycode#5 ] ] -Coalescing zero page register [ zp ZP_BYTE:4 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 ] ] with [ zp ZP_BYTE:55 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] ] with [ zp ZP_WORD:15 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] ] with [ zp ZP_WORD:20 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 ] ] with [ zp ZP_WORD:61 [ play_init::pli#2 play_init::pli#1 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 ] ] with [ zp ZP_WORD:67 [ render_init::li#2 render_init::li#1 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::li#2 render_init::li#1 ] ] with [ zp ZP_WORD:69 [ render_init::line#4 render_init::line#1 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::li#2 render_init::li#1 render_init::line#4 render_init::line#1 ] ] with [ zp ZP_WORD:74 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::li#2 render_init::li#1 render_init::line#4 render_init::line#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] ] with [ zp ZP_WORD:80 [ fill::addr#2 fill::addr#1 ] ] -Coalescing zero page register [ zp ZP_WORD:5 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::li#2 render_init::li#1 render_init::line#4 render_init::line#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 fill::addr#2 fill::addr#1 ] ] with [ zp ZP_WORD:129 [ play_lock_current::playfield_line#0 ] ] -Coalescing zero page register [ zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] ] with [ zp ZP_BYTE:14 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] ] with [ zp ZP_BYTE:24 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] ] -Coalescing zero page register [ zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] ] with [ zp ZP_BYTE:46 [ play_remove_lines::full#4 play_remove_lines::full#2 ] ] -Coalescing zero page register [ zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 ] ] with [ zp ZP_BYTE:51 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] ] with [ zp ZP_BYTE:58 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] ] -Coalescing zero page register [ zp ZP_BYTE:7 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] ] with [ zp ZP_BYTE:133 [ keyboard_event_pressed::row_bits#0 ] ] -Coalescing zero page register [ zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] ] with [ zp ZP_BYTE:25 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] ] with [ zp ZP_BYTE:128 [ play_remove_lines::c#0 ] ] -Coalescing zero page register [ zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 ] ] with [ zp ZP_BYTE:131 [ play_lock_current::i#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:8 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 ] ] with [ zp ZP_BYTE:138 [ keyboard_event_scan::row_scan#0 ] ] -Coalescing zero page register [ zp ZP_BYTE:9 [ render_current::l#4 render_current::l#1 ] ] with [ zp ZP_BYTE:26 [ play_collision::l#6 play_collision::l#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:10 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] ] with [ zp ZP_BYTE:27 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] ] -Coalescing zero page register [ zp ZP_BYTE:11 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] ] with [ zp ZP_BYTE:28 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] ] -Coalescing zero page register [ zp ZP_WORD:34 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 ] ] with [ zp ZP_WORD:77 [ render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] ] -Coalescing zero page register [ zp ZP_WORD:34 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 ] ] with [ zp ZP_WORD:156 [ render_init::$18 ] ] -Coalescing zero page register [ zp ZP_BYTE:85 [ irq_sprite_ypos#0 irq_sprite_ypos#2 ] ] with [ zp ZP_BYTE:167 [ irq_sprite_ypos#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:86 [ irq_sprite_ptr#0 irq_sprite_ptr#2 ] ] with [ zp ZP_BYTE:168 [ irq_sprite_ptr#1 ] ] -Coalescing zero page register [ zp ZP_BYTE:87 [ irq_cnt#0 irq_cnt#1 ] ] with [ zp ZP_BYTE:166 [ irq_cnt#13 ] ] -Coalescing zero page register [ zp ZP_WORD:102 [ render_current::screen_line#0 ] ] with [ zp ZP_WORD:112 [ play_collision::playfield_line#0 ] ] -Allocated (was zp ZP_BYTE:4) zp ZP_BYTE:3 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] -Allocated (was zp ZP_WORD:5) zp ZP_WORD:4 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::li#2 render_init::li#1 render_init::line#4 render_init::line#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 fill::addr#2 fill::addr#1 play_lock_current::playfield_line#0 ] -Allocated (was zp ZP_BYTE:7) zp ZP_BYTE:6 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 keyboard_event_pressed::row_bits#0 ] -Allocated (was zp ZP_BYTE:8) zp ZP_BYTE:7 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 keyboard_event_scan::row_scan#0 ] -Allocated (was zp ZP_BYTE:9) zp ZP_BYTE:8 [ render_current::l#4 render_current::l#1 play_collision::l#6 play_collision::l#1 ] -Allocated (was zp ZP_BYTE:10) zp ZP_BYTE:9 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] -Allocated (was zp ZP_BYTE:11) zp ZP_BYTE:10 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 play_collision::col#2 play_collision::col#9 play_collision::col#1 ] -Allocated (was zp ZP_BYTE:33) zp ZP_BYTE:11 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -Allocated (was zp ZP_WORD:34) zp ZP_WORD:12 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 render_init::$18 ] -Allocated (was zp ZP_BYTE:36) zp ZP_BYTE:14 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -Allocated (was zp ZP_WORD:37) zp ZP_WORD:15 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] -Allocated (was zp ZP_BYTE:39) zp ZP_BYTE:17 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -Allocated (was zp ZP_BYTE:40) zp ZP_BYTE:18 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] -Allocated (was zp ZP_BYTE:59) zp ZP_BYTE:19 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] -Allocated (was zp ZP_BYTE:82) zp ZP_BYTE:20 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 irq_raster_next#0 ] -Allocated (was zp ZP_BYTE:85) zp ZP_BYTE:21 [ irq_sprite_ypos#0 irq_sprite_ypos#2 irq_sprite_ypos#1 ] -Allocated (was zp ZP_BYTE:86) zp ZP_BYTE:22 [ irq_sprite_ptr#0 irq_sprite_ptr#2 irq_sprite_ptr#1 ] -Allocated (was zp ZP_BYTE:87) zp ZP_BYTE:23 [ irq_cnt#0 irq_cnt#1 irq_cnt#13 ] -Allocated (was zp ZP_BYTE:89) zp ZP_BYTE:24 [ main::key_event#0 ] -Allocated (was zp ZP_BYTE:93) zp ZP_BYTE:25 [ main::render#1 main::render#2 ] -Allocated (was zp ZP_WORD:102) zp ZP_WORD:26 [ render_current::screen_line#0 play_collision::playfield_line#0 ] -Allocated (was zp ZP_BYTE:114) zp ZP_BYTE:28 [ play_collision::i#1 ] +Uplifting [render_show] best 564806 combination reg byte a [ render_show::d018val#3 ] +Uplifting [sid_rnd_init] best 564806 combination +Uplifting [render_screen_swap] best 564806 combination +Uplifting [sprites_irq_init] best 564806 combination +Attempting to uplift remaining variables inzp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +Uplifting [] best 564806 combination zp ZP_BYTE:63 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] +Uplifting [play_collision] best 564806 combination zp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] +Attempting to uplift remaining variables inzp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] +Uplifting [play_lock_current] best 564806 combination zp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] +Attempting to uplift remaining variables inzp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] +Uplifting [render_current] best 564806 combination zp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] +Uplifting [render_playfield] best 564806 combination zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:61 [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] +Uplifting [keyboard_event_scan] best 549806 combination reg byte x [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:49 [ play_remove_lines::x#2 play_remove_lines::x#1 ] +Uplifting [play_remove_lines] best 549806 combination zp ZP_BYTE:49 [ play_remove_lines::x#2 play_remove_lines::x#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] +Uplifting [render_current] best 549806 combination zp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] +Uplifting [render_playfield] best 549806 combination zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] +Uplifting [play_lock_current] best 549806 combination zp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +Uplifting [play_collision] best 549806 combination zp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] +Uplifting [keyboard_event_scan] best 549806 combination zp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] +Attempting to uplift remaining variables inzp ZP_BYTE:50 [ play_remove_lines::full#4 play_remove_lines::full#2 ] +Uplifting [play_remove_lines] best 549806 combination zp ZP_BYTE:50 [ play_remove_lines::full#4 play_remove_lines::full#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:138 [ play_remove_lines::c#0 ] +Uplifting [play_remove_lines] best 549806 combination zp ZP_BYTE:138 [ play_remove_lines::c#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:141 [ play_lock_current::i#1 ] +Uplifting [play_lock_current] best 549806 combination zp ZP_BYTE:141 [ play_lock_current::i#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] +Uplifting [keyboard_event_scan] best 549806 combination zp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:110 [ render_current::$5 ] +Uplifting [render_current] best 549406 combination reg byte a [ render_current::$5 ] +Attempting to uplift remaining variables inzp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] +Uplifting [render_playfield] best 549406 combination zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] +Uplifting [play_remove_lines] best 549406 combination zp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] +Uplifting [render_current] best 549406 combination zp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:124 [ play_collision::i#1 ] +Uplifting [play_collision] best 549406 combination zp ZP_BYTE:124 [ play_collision::i#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] +Uplifting [play_collision] best 549406 combination zp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] +Uplifting [keyboard_event_scan] best 549406 combination zp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] +Uplifting [play_lock_current] best 549406 combination zp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] +Uplifting [play_collision] best 549406 combination zp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] +Uplifting [render_current] best 549406 combination zp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +Uplifting [play_lock_current] best 549406 combination zp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] +Uplifting [] best 549406 combination zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] +Attempting to uplift remaining variables inzp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] +Uplifting [] best 549406 combination zp ZP_BYTE:44 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:109 [ main::render#3 ] +Uplifting [main] best 549346 combination reg byte a [ main::render#3 ] +Attempting to uplift remaining variables inzp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] +Uplifting [] best 549346 combination zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] +Attempting to uplift remaining variables inzp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] +Uplifting [] best 549346 combination zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] +Attempting to uplift remaining variables inzp ZP_BYTE:5 [ current_ypos#9 current_ypos#83 current_ypos#84 ] +Uplifting [] best 549312 combination reg byte x [ current_ypos#9 current_ypos#83 current_ypos#84 ] +Attempting to uplift remaining variables inzp ZP_BYTE:157 [ keyboard_modifiers#5 ] +Uplifting [] best 549309 combination reg byte a [ keyboard_modifiers#5 ] +Attempting to uplift remaining variables inzp ZP_BYTE:174 [ irq_sprite_ypos#2 ] +Uplifting [] best 549309 combination zp ZP_BYTE:174 [ irq_sprite_ypos#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:175 [ irq_sprite_ptr#2 ] +Uplifting [] best 549309 combination zp ZP_BYTE:175 [ irq_sprite_ptr#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:177 [ irq_cnt#13 ] +Uplifting [] best 549309 combination zp ZP_BYTE:177 [ irq_cnt#13 ] +Attempting to uplift remaining variables inzp ZP_BYTE:178 [ irq_sprite_ypos#1 ] +Uplifting [] best 549309 combination zp ZP_BYTE:178 [ irq_sprite_ypos#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:179 [ irq_sprite_ptr#1 ] +Uplifting [] best 549309 combination zp ZP_BYTE:179 [ irq_sprite_ptr#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] +Uplifting [render_init] best 549309 combination zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +Uplifting [] best 549309 combination zp ZP_BYTE:43 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:26 [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] +Uplifting [play_collision] best 549296 combination reg byte x [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] +Attempting to uplift remaining variables inzp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] +Uplifting [render_screen_original] best 549296 combination zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Uplifting [sprites_init] best 549296 combination zp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] +Uplifting [play_init] best 549296 combination zp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] +Uplifting [] best 549296 combination zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] +Attempting to uplift remaining variables inzp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] +Uplifting [] best 549296 combination zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:60 [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] +Uplifting [] best 549285 combination reg byte x [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] +Attempting to uplift remaining variables inzp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] +Uplifting [] best 549285 combination zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] +Attempting to uplift remaining variables inzp ZP_BYTE:27 [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] +Uplifting [play_collision] best 549272 combination reg byte y [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] +Attempting to uplift remaining variables inzp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] +Uplifting [play_collision] best 549272 combination zp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] +Attempting to uplift remaining variables inzp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] +Uplifting [play_move_rotate] best 549272 combination zp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +Uplifting [] best 549272 combination zp ZP_BYTE:40 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +Attempting to uplift remaining variables inzp ZP_BYTE:89 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] +Uplifting [] best 549272 combination zp ZP_BYTE:89 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:101 [ main::render#1 ] +Uplifting [main] best 549272 combination zp ZP_BYTE:101 [ main::render#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:105 [ main::render#2 ] +Uplifting [main] best 549272 combination zp ZP_BYTE:105 [ main::render#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:97 [ main::key_event#0 ] +Uplifting [main] best 549272 combination zp ZP_BYTE:97 [ main::key_event#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:117 [ play_collision::return#13 ] +Uplifting [play_collision] best 549266 combination reg byte a [ play_collision::return#13 ] +Attempting to uplift remaining variables inzp ZP_BYTE:118 [ play_move_rotate::$6 ] +Uplifting [play_move_rotate] best 549260 combination reg byte a [ play_move_rotate::$6 ] +Attempting to uplift remaining variables inzp ZP_BYTE:119 [ play_move_rotate::$4 ] +Uplifting [play_move_rotate] best 549254 combination reg byte a [ play_move_rotate::$4 ] +Attempting to uplift remaining variables inzp ZP_BYTE:126 [ play_collision::return#12 ] +Uplifting [play_collision] best 549248 combination reg byte a [ play_collision::return#12 ] +Attempting to uplift remaining variables inzp ZP_BYTE:128 [ play_collision::return#1 ] +Uplifting [play_collision] best 549242 combination reg byte a [ play_collision::return#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:132 [ play_collision::return#0 ] +Uplifting [play_collision] best 549236 combination reg byte a [ play_collision::return#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:133 [ play_move_down::$12 ] +Uplifting [play_move_down] best 549230 combination reg byte a [ play_move_down::$12 ] +Attempting to uplift remaining variables inzp ZP_BYTE:150 [ keyboard_event_scan::$14 ] +Uplifting [keyboard_event_scan] best 549224 combination reg byte a [ keyboard_event_scan::$14 ] +Attempting to uplift remaining variables inzp ZP_BYTE:151 [ keyboard_event_pressed::return#1 ] +Uplifting [keyboard_event_pressed] best 549218 combination reg byte a [ keyboard_event_pressed::return#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:152 [ keyboard_event_scan::$18 ] +Uplifting [keyboard_event_scan] best 549212 combination reg byte a [ keyboard_event_scan::$18 ] +Attempting to uplift remaining variables inzp ZP_BYTE:153 [ keyboard_event_pressed::return#2 ] +Uplifting [keyboard_event_pressed] best 549206 combination reg byte a [ keyboard_event_pressed::return#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:154 [ keyboard_event_scan::$22 ] +Uplifting [keyboard_event_scan] best 549200 combination reg byte a [ keyboard_event_scan::$22 ] +Attempting to uplift remaining variables inzp ZP_BYTE:155 [ keyboard_event_pressed::return#10 ] +Uplifting [keyboard_event_pressed] best 549194 combination reg byte a [ keyboard_event_pressed::return#10 ] +Attempting to uplift remaining variables inzp ZP_BYTE:156 [ keyboard_event_scan::$26 ] +Uplifting [keyboard_event_scan] best 549188 combination reg byte a [ keyboard_event_scan::$26 ] +Attempting to uplift remaining variables inzp ZP_BYTE:173 [ irq_cnt#1 ] +Uplifting [] best 549188 combination zp ZP_BYTE:173 [ irq_cnt#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:22 [ play_move_rotate::return#1 ] +Uplifting [play_move_rotate] best 549152 combination reg byte a [ play_move_rotate::return#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:35 [ play_move_leftright::return#1 ] +Uplifting [play_move_leftright] best 549116 combination reg byte a [ play_move_leftright::return#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:45 [ play_move_down::return#2 ] +Uplifting [play_move_down] best 549100 combination reg byte x [ play_move_down::return#2 ] +Attempting to uplift remaining variables inzp ZP_BYTE:169 [ irq::ypos#0 ] +Uplifting [irq] best 549085 combination reg byte a [ irq::ypos#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:171 [ irq::ptr#1 ] +Uplifting [irq] best 549067 combination reg byte x [ irq::ptr#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] +Uplifting [] best 549067 combination zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] +Attempting to uplift remaining variables inzp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] +Uplifting [keyboard_event_pressed] best 549067 combination zp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:145 [ keyboard_event_pressed::return#11 ] +Uplifting [keyboard_event_pressed] best 549049 combination reg byte a [ keyboard_event_pressed::return#11 ] +Attempting to uplift remaining variables inzp ZP_BYTE:34 [ play_collision::return#14 ] +Uplifting [play_collision] best 549022 combination reg byte a [ play_collision::return#14 ] +Attempting to uplift remaining variables inzp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] +Uplifting [keyboard_event_pressed] best 549022 combination zp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] +Attempting to uplift remaining variables inzp ZP_BYTE:92 [ irq_sprite_ypos#0 ] +Uplifting [] best 549022 combination zp ZP_BYTE:92 [ irq_sprite_ypos#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:93 [ irq_sprite_ptr#0 ] +Uplifting [] best 549022 combination zp ZP_BYTE:93 [ irq_sprite_ptr#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:94 [ irq_cnt#0 ] +Uplifting [] best 549022 combination zp ZP_BYTE:94 [ irq_cnt#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:91 [ irq_raster_next#0 ] +Uplifting [] best 549022 combination zp ZP_BYTE:91 [ irq_raster_next#0 ] +Attempting to uplift remaining variables inzp ZP_BYTE:134 [ play_spawn_current::$3 ] +Uplifting [play_spawn_current] best 549022 combination zp ZP_BYTE:134 [ play_spawn_current::$3 ] +Coalescing zero page register with common assignment [ zp ZP_WORD:24 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 ] ] with [ zp ZP_WORD:120 [ play_collision::piece_gfx#0 ] ] - score: 1 +Coalescing zero page register with common assignment [ zp ZP_BYTE:37 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 ] ] with [ zp ZP_BYTE:52 [ play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] ] - score: 1 +Coalescing zero page register with common assignment [ zp ZP_BYTE:89 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 ] ] with [ zp ZP_BYTE:91 [ irq_raster_next#0 ] ] - score: 1 +Coalescing zero page register with common assignment [ zp ZP_BYTE:92 [ irq_sprite_ypos#0 ] ] with [ zp ZP_BYTE:174 [ irq_sprite_ypos#2 ] ] - score: 1 +Coalescing zero page register with common assignment [ zp ZP_BYTE:93 [ irq_sprite_ptr#0 ] ] with [ zp ZP_BYTE:175 [ irq_sprite_ptr#2 ] ] - score: 1 +Coalescing zero page register with common assignment [ zp ZP_BYTE:94 [ irq_cnt#0 ] ] with [ zp ZP_BYTE:173 [ irq_cnt#1 ] ] - score: 1 +Coalescing zero page register with common assignment [ zp ZP_BYTE:101 [ main::render#1 ] ] with [ zp ZP_BYTE:105 [ main::render#2 ] ] - score: 1 +Coalescing zero page register [ zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 ] ] with [ zp ZP_BYTE:68 [ play_init::idx#2 play_init::idx#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 play_init::idx#2 play_init::idx#1 ] ] with [ zp ZP_BYTE:70 [ sprites_init::xpos#2 sprites_init::xpos#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 ] ] with [ zp ZP_BYTE:73 [ render_init::l#4 render_init::l#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 render_init::l#4 render_init::l#1 ] ] with [ zp ZP_BYTE:82 [ render_screen_original::y#8 render_screen_original::y#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 ] ] with [ zp ZP_BYTE:47 [ play_remove_lines::y#8 play_remove_lines::y#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 ] ] with [ zp ZP_BYTE:53 [ play_lock_current::l#6 play_lock_current::l#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 ] ] with [ zp ZP_BYTE:134 [ play_spawn_current::$3 ] ] +Coalescing zero page register [ zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 ] ] with [ zp ZP_BYTE:17 [ render_playfield::l#2 render_playfield::l#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 ] ] with [ zp ZP_BYTE:23 [ play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] ] +Coalescing zero page register [ zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 ] ] with [ zp ZP_BYTE:49 [ play_remove_lines::x#2 play_remove_lines::x#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 ] ] with [ zp ZP_BYTE:54 [ play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] ] +Coalescing zero page register [ zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 ] ] with [ zp ZP_BYTE:57 [ keyboard_event_pressed::keycode#5 ] ] +Coalescing zero page register [ zp ZP_BYTE:6 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 ] ] with [ zp ZP_BYTE:59 [ keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 ] ] with [ zp ZP_BYTE:18 [ render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 ] ] with [ zp ZP_BYTE:28 [ play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] ] +Coalescing zero page register [ zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 ] ] with [ zp ZP_BYTE:50 [ play_remove_lines::full#4 play_remove_lines::full#2 ] ] +Coalescing zero page register [ zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 ] ] with [ zp ZP_BYTE:55 [ play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 ] ] with [ zp ZP_BYTE:62 [ keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] ] +Coalescing zero page register [ zp ZP_BYTE:7 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 ] ] with [ zp ZP_BYTE:143 [ keyboard_event_pressed::row_bits#0 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 ] ] with [ zp ZP_WORD:19 [ render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 ] ] with [ zp ZP_WORD:24 [ current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 ] ] with [ zp ZP_WORD:66 [ play_init::pli#2 play_init::pli#1 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 ] ] with [ zp ZP_WORD:71 [ render_init::line#4 render_init::line#1 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::line#4 render_init::line#1 ] ] with [ zp ZP_WORD:76 [ render_init::li_1#2 render_init::li_1#1 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::line#4 render_init::line#1 render_init::li_1#2 render_init::li_1#1 ] ] with [ zp ZP_WORD:80 [ fill::addr#2 fill::addr#1 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::line#4 render_init::line#1 render_init::li_1#2 render_init::li_1#1 fill::addr#2 fill::addr#1 ] ] with [ zp ZP_WORD:83 [ render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] ] +Coalescing zero page register [ zp ZP_WORD:8 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::line#4 render_init::line#1 render_init::li_1#2 render_init::li_1#1 fill::addr#2 fill::addr#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 ] ] with [ zp ZP_WORD:139 [ play_lock_current::playfield_line#0 ] ] +Coalescing zero page register [ zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 ] ] with [ zp ZP_BYTE:21 [ render_playfield::c#2 render_playfield::c#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::c#2 render_playfield::c#1 ] ] with [ zp ZP_BYTE:29 [ play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::c#2 render_playfield::c#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 ] ] with [ zp ZP_BYTE:138 [ play_remove_lines::c#0 ] ] +Coalescing zero page register [ zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::c#2 render_playfield::c#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 ] ] with [ zp ZP_BYTE:141 [ play_lock_current::i#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:10 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::c#2 render_playfield::c#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 ] ] with [ zp ZP_BYTE:148 [ keyboard_event_scan::row_scan#0 ] ] +Coalescing zero page register [ zp ZP_BYTE:11 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 ] ] with [ zp ZP_BYTE:30 [ play_collision::l#6 play_collision::l#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:12 [ render_current::l#4 render_current::l#1 ] ] with [ zp ZP_BYTE:31 [ play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] ] +Coalescing zero page register [ zp ZP_BYTE:13 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 ] ] with [ zp ZP_BYTE:32 [ play_collision::col#2 play_collision::col#9 play_collision::col#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:14 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 ] ] with [ zp ZP_BYTE:97 [ main::key_event#0 ] ] +Coalescing zero page register [ zp ZP_WORD:38 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 ] ] with [ zp ZP_WORD:78 [ render_init::li_2#2 render_init::li_2#1 ] ] +Coalescing zero page register [ zp ZP_WORD:38 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 render_init::li_2#2 render_init::li_2#1 ] ] with [ zp ZP_WORD:86 [ render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] ] +Coalescing zero page register [ zp ZP_WORD:38 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 render_init::li_2#2 render_init::li_2#1 render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 ] ] with [ zp ZP_WORD:165 [ render_init::$12 ] ] +Coalescing zero page register [ zp ZP_BYTE:92 [ irq_sprite_ypos#0 irq_sprite_ypos#2 ] ] with [ zp ZP_BYTE:178 [ irq_sprite_ypos#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:93 [ irq_sprite_ptr#0 irq_sprite_ptr#2 ] ] with [ zp ZP_BYTE:179 [ irq_sprite_ptr#1 ] ] +Coalescing zero page register [ zp ZP_BYTE:94 [ irq_cnt#0 irq_cnt#1 ] ] with [ zp ZP_BYTE:177 [ irq_cnt#13 ] ] +Coalescing zero page register [ zp ZP_WORD:111 [ render_current::screen_line#0 ] ] with [ zp ZP_WORD:122 [ play_collision::playfield_line#0 ] ] +Allocated (was zp ZP_BYTE:6) zp ZP_BYTE:5 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] +Allocated (was zp ZP_BYTE:7) zp ZP_BYTE:6 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 keyboard_event_pressed::row_bits#0 ] +Allocated (was zp ZP_WORD:8) zp ZP_WORD:7 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::line#4 render_init::line#1 render_init::li_1#2 render_init::li_1#1 fill::addr#2 fill::addr#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 play_lock_current::playfield_line#0 ] +Allocated (was zp ZP_BYTE:10) zp ZP_BYTE:9 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::c#2 render_playfield::c#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 keyboard_event_scan::row_scan#0 ] +Allocated (was zp ZP_BYTE:11) zp ZP_BYTE:10 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::l#6 play_collision::l#1 ] +Allocated (was zp ZP_BYTE:12) zp ZP_BYTE:11 [ render_current::l#4 render_current::l#1 play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] +Allocated (was zp ZP_BYTE:13) zp ZP_BYTE:12 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +Allocated (was zp ZP_BYTE:14) zp ZP_BYTE:13 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 main::key_event#0 ] +Allocated (was zp ZP_BYTE:37) zp ZP_BYTE:14 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +Allocated (was zp ZP_WORD:38) zp ZP_WORD:15 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 render_init::li_2#2 render_init::li_2#1 render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 render_init::$12 ] +Allocated (was zp ZP_BYTE:40) zp ZP_BYTE:17 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +Allocated (was zp ZP_WORD:41) zp ZP_WORD:18 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] +Allocated (was zp ZP_BYTE:43) zp ZP_BYTE:20 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +Allocated (was zp ZP_BYTE:44) zp ZP_BYTE:21 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] +Allocated (was zp ZP_BYTE:63) zp ZP_BYTE:22 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +Allocated (was zp ZP_BYTE:89) zp ZP_BYTE:23 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 irq_raster_next#0 ] +Allocated (was zp ZP_BYTE:92) zp ZP_BYTE:24 [ irq_sprite_ypos#0 irq_sprite_ypos#2 irq_sprite_ypos#1 ] +Allocated (was zp ZP_BYTE:93) zp ZP_BYTE:25 [ irq_sprite_ptr#0 irq_sprite_ptr#2 irq_sprite_ptr#1 ] +Allocated (was zp ZP_BYTE:94) zp ZP_BYTE:26 [ irq_cnt#0 irq_cnt#1 irq_cnt#13 ] +Allocated (was zp ZP_BYTE:101) zp ZP_BYTE:27 [ main::render#1 main::render#2 ] +Allocated (was zp ZP_WORD:111) zp ZP_WORD:28 [ render_current::screen_line#0 play_collision::playfield_line#0 ] +Allocated (was zp ZP_BYTE:124) zp ZP_BYTE:30 [ play_collision::i#1 ] Interrupt procedure irq clobbers AXCNZV -Removing interrupt register storage sty regy+1 in SEG875 entry interrupt(HARDWARE_CLOBBER) -Removing interrupt register storage regy: in SEG913 [449] return - exit interrupt(HARDWARE_CLOBBER) -Removing interrupt register storage ldy #00 in SEG913 [449] return - exit interrupt(HARDWARE_CLOBBER) +Removing interrupt register storage sty regy+1 in SEG921 entry interrupt(HARDWARE_CLOBBER) +Removing interrupt register storage regy: in SEG963 [473] return - exit interrupt(HARDWARE_CLOBBER) +Removing interrupt register storage ldy #00 in SEG963 [473] return - exit interrupt(HARDWARE_CLOBBER) ASSEMBLER BEFORE OPTIMIZATION //SEG0 Basic Upstart @@ -12171,12 +12971,13 @@ ASSEMBLER BEFORE OPTIMIZATION .label SID_VOICE3_CONTROL = $d412 .const SID_CONTROL_NOISE = $80 .label SID_VOICE3_OSC = $d41b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 + .label PLAYFIELD_SCREEN_ORIGINAL = $1800 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a - .label PLAYFIELD_SCREEN_ORIGINAL = $2c00 .const IRQ_RASTER_FIRST = $31 .const current_movedown_slow = $32 .const current_movedown_fast = 5 @@ -12185,34 +12986,39 @@ ASSEMBLER BEFORE OPTIMIZATION .const COLLISION_BOTTOM = 2 .const COLLISION_LEFT = 4 .const COLLISION_RIGHT = 8 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 - .label keyboard_events_size = $13 - .label irq_raster_next = $14 - .label irq_sprite_ypos = $15 - .label irq_sprite_ptr = $16 - .label irq_cnt = $17 - .label current_movedown_counter = 2 - .label current_ypos = $b - .label current_piece_gfx = $f - .label current_xpos = $11 - .label current_piece_char = $12 - .label current_orientation = $e - .label current_piece = $c - .label current_piece_12 = 4 - .label current_xpos_47 = 3 - .label current_piece_gfx_52 = 4 - .label current_piece_char_62 = 6 - .label current_xpos_109 = 3 - .label current_xpos_110 = 3 - .label current_piece_gfx_99 = 4 - .label current_piece_gfx_100 = 4 - .label current_piece_char_87 = 6 - .label current_piece_char_88 = 6 - .label current_piece_73 = 4 - .label current_piece_74 = 4 - .label current_piece_75 = 4 - .label current_piece_76 = 4 + .label keyboard_events_size = $16 + .label irq_raster_next = $17 + .label irq_sprite_ypos = $18 + .label irq_sprite_ptr = $19 + .label irq_cnt = $1a + .label current_movedown_counter = 4 + .label current_ypos = $e + .label current_piece_gfx = $12 + .label current_xpos = $14 + .label current_piece_char = $15 + .label current_orientation = $11 + .label render_screen_render = 3 + .label render_screen_show = 2 + .label current_piece = $f + .label current_piece_12 = 7 + .label render_screen_render_27 = 5 + .label current_xpos_47 = 6 + .label current_piece_gfx_52 = 7 + .label current_piece_char_62 = 9 + .label render_screen_render_68 = 5 + .label current_xpos_109 = 6 + .label current_xpos_110 = 6 + .label current_piece_gfx_99 = 7 + .label current_piece_gfx_100 = 7 + .label current_piece_char_87 = 9 + .label current_piece_char_88 = 9 + .label current_piece_73 = 7 + .label current_piece_74 = 7 + .label current_piece_75 = 7 + .label current_piece_76 = 7 //SEG2 @begin bbegin: jmp b14 @@ -12220,573 +13026,637 @@ bbegin: b14: //SEG4 kickasm(location (const byte*) PLAYFIELD_CHARSET#0) {{ .fill 8,$00 // Place a filled char at the start of the charset .import binary "nes-screen.imap" }} //SEG5 kickasm(location (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0) {{ .import binary "nes-screen.iscr" }} - jmp b18 -//SEG6 @18 -b18: + jmp b20 +//SEG6 @20 +b20: //SEG7 kickasm(location (const byte*) PLAYFIELD_SPRITES#0) {{ .var sprites = LoadPicture("nes-playfield.png", List().add($010101, $000000)) .for(var sy=0;sy<10;sy++) { .for(var sx=0;sx<3;sx++) { .for (var y=0;y<21; y++) { .for (var c=0; c<3; c++) { .byte sprites.getSinglecolorByte(sx*3+c,sy*21+y) } } .byte 0 } } }} - jmp b19 -//SEG8 @19 -b19: + jmp b21 +//SEG8 @21 +b21: //SEG9 [4] (byte) irq_raster_next#0 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next //SEG10 [5] (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos -//SEG11 [6] phi from @19 to toSpritePtr1 [phi:@19->toSpritePtr1] -toSpritePtr1_from_b19: +//SEG11 [6] phi from @21 to toSpritePtr1 [phi:@21->toSpritePtr1] +toSpritePtr1_from_b21: jmp toSpritePtr1 //SEG12 toSpritePtr1 toSpritePtr1: - jmp b31 -//SEG13 @31 -b31: + jmp b33 +//SEG13 @33 +b33: //SEG14 [7] (byte) irq_sprite_ptr#0 ← (const byte) toSpritePtr1_return#0 -- vbuz1=vbuc1 lda #toSpritePtr1_return sta irq_sprite_ptr //SEG15 [8] (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt -//SEG16 [9] phi from @31 to @30 [phi:@31->@30] -b30_from_b31: - jmp b30 -//SEG17 @30 -b30: +//SEG16 [9] phi from @33 to @32 [phi:@33->@32] +b32_from_b33: + jmp b32 +//SEG17 @32 +b32: //SEG18 [10] call main -//SEG19 [12] phi from @30 to main [phi:@30->main] -main_from_b30: +//SEG19 [12] phi from @32 to main [phi:@32->main] +main_from_b32: jsr main -//SEG20 [11] phi from @30 to @end [phi:@30->@end] -bend_from_b30: +//SEG20 [11] phi from @32 to @end [phi:@32->@end] +bend_from_b32: jmp bend //SEG21 @end bend: //SEG22 main main: { - .label key_event = $18 - .label render = $19 + .label key_event = $d + .label render = $1b //SEG23 [13] call sid_rnd_init jsr sid_rnd_init - jmp b21 - //SEG24 main::@21 - b21: + jmp b15 + //SEG24 main::@15 + b15: //SEG25 asm { sei } sei //SEG26 [15] call render_init - //SEG27 [356] phi from main::@21 to render_init [phi:main::@21->render_init] - render_init_from_b21: + //SEG27 [373] phi from main::@15 to render_init [phi:main::@15->render_init] + render_init_from_b15: jsr render_init - //SEG28 [16] phi from main::@21 to main::@22 [phi:main::@21->main::@22] - b22_from_b21: - jmp b22 - //SEG29 main::@22 - b22: + //SEG28 [16] phi from main::@15 to main::@16 [phi:main::@15->main::@16] + b16_from_b15: + jmp b16 + //SEG29 main::@16 + b16: //SEG30 [17] call sprites_init jsr sprites_init - //SEG31 [18] phi from main::@22 to main::@23 [phi:main::@22->main::@23] - b23_from_b22: - jmp b23 - //SEG32 main::@23 - b23: + //SEG31 [18] phi from main::@16 to main::@17 [phi:main::@16->main::@17] + b17_from_b16: + jmp b17 + //SEG32 main::@17 + b17: //SEG33 [19] call sprites_irq_init jsr sprites_irq_init - //SEG34 [20] phi from main::@23 to main::@24 [phi:main::@23->main::@24] - b24_from_b23: - jmp b24 - //SEG35 main::@24 - b24: + //SEG34 [20] phi from main::@17 to main::@18 [phi:main::@17->main::@18] + b18_from_b17: + jmp b18 + //SEG35 main::@18 + b18: //SEG36 [21] call play_init - //SEG37 [321] phi from main::@24 to play_init [phi:main::@24->play_init] - play_init_from_b24: + //SEG37 [338] phi from main::@18 to play_init [phi:main::@18->play_init] + play_init_from_b18: jsr play_init - //SEG38 [22] phi from main::@24 to main::@25 [phi:main::@24->main::@25] - b25_from_b24: - jmp b25 - //SEG39 main::@25 - b25: + //SEG38 [22] phi from main::@18 to main::@19 [phi:main::@18->main::@19] + b19_from_b18: + jmp b19 + //SEG39 main::@19 + b19: //SEG40 [23] call play_spawn_current - //SEG41 [199] phi from main::@25 to play_spawn_current [phi:main::@25->play_spawn_current] - play_spawn_current_from_b25: + //SEG41 [210] phi from main::@19 to play_spawn_current [phi:main::@19->play_spawn_current] + play_spawn_current_from_b19: jsr play_spawn_current - //SEG42 [24] phi from main::@25 to main::@26 [phi:main::@25->main::@26] - b26_from_b25: - jmp b26 - //SEG43 main::@26 - b26: + //SEG42 [24] phi from main::@19 to main::@20 [phi:main::@19->main::@20] + b20_from_b19: + jmp b20 + //SEG43 main::@20 + b20: //SEG44 [25] call render_playfield - //SEG45 [87] phi from main::@26 to render_playfield [phi:main::@26->render_playfield] - render_playfield_from_b26: + //SEG45 [97] phi from main::@20 to render_playfield [phi:main::@20->render_playfield] + render_playfield_from_b20: + //SEG46 [97] phi (byte) render_screen_render#18 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@20->render_playfield#0] -- vbuxx=vbuc1 + ldx #$40 jsr render_playfield - jmp b27 - //SEG46 main::@27 - b27: - //SEG47 [26] (byte~) current_ypos#83 ← (byte) current_ypos#18 -- vbuxx=vbuz1 + jmp b21 + //SEG47 main::@21 + b21: + //SEG48 [26] (byte~) current_ypos#83 ← (byte) current_ypos#18 -- vbuxx=vbuz1 ldx current_ypos - //SEG48 [27] (byte~) current_xpos#109 ← (byte) current_xpos#23 -- vbuz1=vbuz2 + //SEG49 [27] (byte~) current_xpos#109 ← (byte) current_xpos#23 -- vbuz1=vbuz2 lda current_xpos sta current_xpos_109 - //SEG49 [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 -- pbuz1=pbuz2 + //SEG50 [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 -- pbuz1=pbuz2 lda current_piece_gfx sta current_piece_gfx_99 lda current_piece_gfx+1 sta current_piece_gfx_99+1 - //SEG50 [29] (byte~) current_piece_char#87 ← (byte) current_piece_char#12 -- vbuz1=vbuz2 + //SEG51 [29] (byte~) current_piece_char#87 ← (byte) current_piece_char#12 -- vbuz1=vbuz2 lda current_piece_char sta current_piece_char_87 - //SEG51 [30] call render_current - //SEG52 [65] phi from main::@27 to render_current [phi:main::@27->render_current] - render_current_from_b27: - //SEG53 [65] phi (byte) current_piece_char#62 = (byte~) current_piece_char#87 [phi:main::@27->render_current#0] -- register_copy - //SEG54 [65] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#99 [phi:main::@27->render_current#1] -- register_copy - //SEG55 [65] phi (byte) current_xpos#47 = (byte~) current_xpos#109 [phi:main::@27->render_current#2] -- register_copy - //SEG56 [65] phi (byte) current_ypos#9 = (byte~) current_ypos#83 [phi:main::@27->render_current#3] -- register_copy + //SEG52 [30] call render_current + //SEG53 [74] phi from main::@21 to render_current [phi:main::@21->render_current] + render_current_from_b21: + //SEG54 [74] phi (byte) current_piece_char#62 = (byte~) current_piece_char#87 [phi:main::@21->render_current#0] -- register_copy + //SEG55 [74] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#99 [phi:main::@21->render_current#1] -- register_copy + //SEG56 [74] phi (byte) current_xpos#47 = (byte~) current_xpos#109 [phi:main::@21->render_current#2] -- register_copy + //SEG57 [74] phi (byte) render_screen_render#27 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@21->render_current#3] -- vbuz1=vbuc1 + lda #$40 + sta render_screen_render_27 + //SEG58 [74] phi (byte) current_ypos#9 = (byte~) current_ypos#83 [phi:main::@21->render_current#4] -- register_copy jsr render_current - //SEG57 [31] (byte*~) current_piece#72 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG59 [31] (byte*~) current_piece#71 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 ldy play_spawn_current._3 lda PIECES,y sta current_piece lda PIECES+1,y sta current_piece+1 - //SEG58 [32] phi from main::@27 to main::@1 [phi:main::@27->main::@1] - b1_from_b27: - //SEG59 [32] phi (byte) current_movedown_counter#12 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#0] -- vbuz1=vbuc1 + //SEG60 [32] phi from main::@21 to main::@1 [phi:main::@21->main::@1] + b1_from_b21: + //SEG61 [32] phi (byte) current_movedown_counter#12 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#0] -- vbuz1=vbuc1 lda #0 sta current_movedown_counter - //SEG60 [32] phi (byte) keyboard_events_size#19 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#1] -- vbuz1=vbuc1 + //SEG62 [32] phi (byte) keyboard_events_size#19 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#1] -- vbuz1=vbuc1 lda #0 sta keyboard_events_size - //SEG61 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#12 [phi:main::@27->main::@1#2] -- register_copy - //SEG62 [32] phi (byte) current_ypos#21 = (byte) current_ypos#18 [phi:main::@27->main::@1#3] -- register_copy - //SEG63 [32] phi (byte) current_xpos#10 = (byte) current_xpos#23 [phi:main::@27->main::@1#4] -- register_copy - //SEG64 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#16 [phi:main::@27->main::@1#5] -- register_copy - //SEG65 [32] phi (byte) current_orientation#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#6] -- vbuz1=vbuc1 + //SEG63 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#12 [phi:main::@21->main::@1#2] -- register_copy + //SEG64 [32] phi (byte) current_ypos#21 = (byte) current_ypos#18 [phi:main::@21->main::@1#3] -- register_copy + //SEG65 [32] phi (byte) current_xpos#10 = (byte) current_xpos#23 [phi:main::@21->main::@1#4] -- register_copy + //SEG66 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#16 [phi:main::@21->main::@1#5] -- register_copy + //SEG67 [32] phi (byte) current_orientation#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#6] -- vbuz1=vbuc1 lda #0 sta current_orientation - //SEG66 [32] phi (byte*) current_piece#16 = (byte*~) current_piece#72 [phi:main::@27->main::@1#7] -- register_copy + //SEG68 [32] phi (byte*) current_piece#16 = (byte*~) current_piece#71 [phi:main::@21->main::@1#7] -- register_copy + //SEG69 [32] phi (byte) render_screen_render#15 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@21->main::@1#8] -- vbuz1=vbuc1 + lda #$40 + sta render_screen_render + //SEG70 [32] phi (byte) render_screen_show#15 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#9] -- vbuz1=vbuc1 + lda #0 + sta render_screen_show jmp b1 - //SEG67 main::@1 + //SEG71 main::@1 b1: jmp b4 - //SEG68 main::@4 + //SEG72 main::@4 b4: - //SEG69 [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 -- _deref_pbuc1_neq_vbuc2_then_la1 + //SEG73 [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 -- _deref_pbuc1_neq_vbuc2_then_la1 lda RASTER cmp #$ff bne b4 - jmp b7 - //SEG70 main::@7 - b7: - //SEG71 [34] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@7 -- _deref_pbuc1_neq_vbuc2_then_la1 - lda RASTER - cmp #$fe - bne b7 - jmp b9 - //SEG72 main::@9 - b9: - //SEG73 [35] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_inc__deref_pbuc1 - inc BORDERCOL - //SEG74 [36] call keyboard_event_scan - //SEG75 [265] phi from main::@9 to keyboard_event_scan [phi:main::@9->keyboard_event_scan] - keyboard_event_scan_from_b9: + jmp b6 + //SEG74 main::@6 + b6: + //SEG75 [34] (byte~) main::$9 ← (byte) render_screen_show#15 >> (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuaa=vbuz1_ror_4 + lda render_screen_show + lsr + lsr + lsr + lsr + //SEG76 [35] *((const byte*) BORDERCOL#0) ← (byte~) main::$9 -- _deref_pbuc1=vbuaa + sta BORDERCOL + //SEG77 [36] call render_show + jsr render_show + //SEG78 [37] phi from main::@6 to main::@23 [phi:main::@6->main::@23] + b23_from_b6: + jmp b23 + //SEG79 main::@23 + b23: + //SEG80 [38] call keyboard_event_scan + //SEG81 [276] phi from main::@23 to keyboard_event_scan [phi:main::@23->keyboard_event_scan] + keyboard_event_scan_from_b23: jsr keyboard_event_scan - //SEG76 [37] phi from main::@9 to main::@29 [phi:main::@9->main::@29] - b29_from_b9: - jmp b29 - //SEG77 main::@29 - b29: - //SEG78 [38] call keyboard_event_get + //SEG82 [39] phi from main::@23 to main::@24 [phi:main::@23->main::@24] + b24_from_b23: + jmp b24 + //SEG83 main::@24 + b24: + //SEG84 [40] call keyboard_event_get jsr keyboard_event_get - //SEG79 [39] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 + //SEG85 [41] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 // (byte) keyboard_event_get::return#3 = (byte) keyboard_event_get::return#2 // register copy reg byte a - jmp b30 - //SEG80 main::@30 - b30: - //SEG81 [40] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 -- vbuz1=vbuaa + jmp b25 + //SEG86 main::@25 + b25: + //SEG87 [42] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 -- vbuz1=vbuaa sta key_event - //SEG82 [41] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 + //SEG88 [43] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 lda key_event - //SEG83 [42] call play_move_down + //SEG89 [44] call play_move_down jsr play_move_down - //SEG84 [43] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 -- vbuaa=vbuxx + //SEG90 [45] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 -- vbuaa=vbuxx txa - jmp b31 - //SEG85 main::@31 - b31: - //SEG86 [44] (byte~) main::$12 ← (byte) play_move_down::return#3 - // (byte~) main::$12 = (byte) play_move_down::return#3 // register copy reg byte a - //SEG87 [45] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$12 -- vbuz1=vbuc1_plus_vbuaa + jmp b26 + //SEG91 main::@26 + b26: + //SEG92 [46] (byte~) main::$13 ← (byte) play_move_down::return#3 + // (byte~) main::$13 = (byte) play_move_down::return#3 // register copy reg byte a + //SEG93 [47] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$13 -- vbuz1=vbuc1_plus_vbuaa clc adc #0 sta render - //SEG88 [46] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 + //SEG94 [48] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 lda key_event - //SEG89 [47] call play_move_leftright + //SEG95 [49] call play_move_leftright jsr play_move_leftright - //SEG90 [48] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 + //SEG96 [50] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 // (byte) play_move_leftright::return#4 = (byte) play_move_leftright::return#1 // register copy reg byte a - jmp b32 - //SEG91 main::@32 - b32: - //SEG92 [49] (byte~) main::$13 ← (byte) play_move_leftright::return#4 - // (byte~) main::$13 = (byte) play_move_leftright::return#4 // register copy reg byte a - //SEG93 [50] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$13 -- vbuz1=vbuz1_plus_vbuaa + jmp b27 + //SEG97 main::@27 + b27: + //SEG98 [51] (byte~) main::$14 ← (byte) play_move_leftright::return#4 + // (byte~) main::$14 = (byte) play_move_leftright::return#4 // register copy reg byte a + //SEG99 [52] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$14 -- vbuz1=vbuz1_plus_vbuaa clc adc render sta render - //SEG94 [51] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 + //SEG100 [53] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 lda key_event - //SEG95 [52] call play_move_rotate + //SEG101 [54] call play_move_rotate jsr play_move_rotate - //SEG96 [53] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 + //SEG102 [55] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 // (byte) play_move_rotate::return#4 = (byte) play_move_rotate::return#1 // register copy reg byte a - jmp b33 - //SEG97 main::@33 - b33: - //SEG98 [54] (byte~) main::$14 ← (byte) play_move_rotate::return#4 - // (byte~) main::$14 = (byte) play_move_rotate::return#4 // register copy reg byte a - //SEG99 [55] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$14 -- vbuaa=vbuz1_plus_vbuaa + jmp b28 + //SEG103 main::@28 + b28: + //SEG104 [56] (byte~) main::$15 ← (byte) play_move_rotate::return#4 + // (byte~) main::$15 = (byte) play_move_rotate::return#4 // register copy reg byte a + //SEG105 [57] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$15 -- vbuaa=vbuz1_plus_vbuaa clc adc render - //SEG100 [56] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@10 -- vbuaa_eq_0_then_la1 + //SEG106 [58] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@7 -- vbuaa_eq_0_then_la1 cmp #0 - beq b10 - //SEG101 [57] phi from main::@33 to main::@19 [phi:main::@33->main::@19] - b19_from_b33: - jmp b19 - //SEG102 main::@19 - b19: - //SEG103 [58] call render_playfield - //SEG104 [87] phi from main::@19 to render_playfield [phi:main::@19->render_playfield] - render_playfield_from_b19: + beq b7_from_b28 + jmp b13 + //SEG107 main::@13 + b13: + //SEG108 [59] (byte~) render_screen_render#69 ← (byte) render_screen_render#15 -- vbuxx=vbuz1 + ldx render_screen_render + //SEG109 [60] call render_playfield + //SEG110 [97] phi from main::@13 to render_playfield [phi:main::@13->render_playfield] + render_playfield_from_b13: + //SEG111 [97] phi (byte) render_screen_render#18 = (byte~) render_screen_render#69 [phi:main::@13->render_playfield#0] -- register_copy jsr render_playfield - jmp b34 - //SEG105 main::@34 - b34: - //SEG106 [59] (byte~) current_ypos#84 ← (byte) current_ypos#13 -- vbuxx=vbuz1 + jmp b29 + //SEG112 main::@29 + b29: + //SEG113 [61] (byte~) current_ypos#84 ← (byte) current_ypos#13 -- vbuxx=vbuz1 ldx current_ypos - //SEG107 [60] (byte~) current_xpos#110 ← (byte) current_xpos#19 -- vbuz1=vbuz2 + //SEG114 [62] (byte~) render_screen_render#68 ← (byte) render_screen_render#15 -- vbuz1=vbuz2 + lda render_screen_render + sta render_screen_render_68 + //SEG115 [63] (byte~) current_xpos#110 ← (byte) current_xpos#19 -- vbuz1=vbuz2 lda current_xpos sta current_xpos_110 - //SEG108 [61] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 -- pbuz1=pbuz2 + //SEG116 [64] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 -- pbuz1=pbuz2 lda current_piece_gfx sta current_piece_gfx_100 lda current_piece_gfx+1 sta current_piece_gfx_100+1 - //SEG109 [62] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 -- vbuz1=vbuz2 + //SEG117 [65] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 -- vbuz1=vbuz2 lda current_piece_char sta current_piece_char_88 - //SEG110 [63] call render_current - //SEG111 [65] phi from main::@34 to render_current [phi:main::@34->render_current] - render_current_from_b34: - //SEG112 [65] phi (byte) current_piece_char#62 = (byte~) current_piece_char#88 [phi:main::@34->render_current#0] -- register_copy - //SEG113 [65] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#100 [phi:main::@34->render_current#1] -- register_copy - //SEG114 [65] phi (byte) current_xpos#47 = (byte~) current_xpos#110 [phi:main::@34->render_current#2] -- register_copy - //SEG115 [65] phi (byte) current_ypos#9 = (byte~) current_ypos#84 [phi:main::@34->render_current#3] -- register_copy + //SEG118 [66] call render_current + //SEG119 [74] phi from main::@29 to render_current [phi:main::@29->render_current] + render_current_from_b29: + //SEG120 [74] phi (byte) current_piece_char#62 = (byte~) current_piece_char#88 [phi:main::@29->render_current#0] -- register_copy + //SEG121 [74] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#100 [phi:main::@29->render_current#1] -- register_copy + //SEG122 [74] phi (byte) current_xpos#47 = (byte~) current_xpos#110 [phi:main::@29->render_current#2] -- register_copy + //SEG123 [74] phi (byte) render_screen_render#27 = (byte~) render_screen_render#68 [phi:main::@29->render_current#3] -- register_copy + //SEG124 [74] phi (byte) current_ypos#9 = (byte~) current_ypos#84 [phi:main::@29->render_current#4] -- register_copy jsr render_current - jmp b10 - //SEG116 main::@10 - b10: - //SEG117 [64] *((const byte*) BORDERCOL#0) ← -- *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_dec__deref_pbuc1 - dec BORDERCOL - //SEG118 [32] phi from main::@10 to main::@1 [phi:main::@10->main::@1] - b1_from_b10: - //SEG119 [32] phi (byte) current_movedown_counter#12 = (byte) current_movedown_counter#10 [phi:main::@10->main::@1#0] -- register_copy - //SEG120 [32] phi (byte) keyboard_events_size#19 = (byte) keyboard_events_size#16 [phi:main::@10->main::@1#1] -- register_copy - //SEG121 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#1 [phi:main::@10->main::@1#2] -- register_copy - //SEG122 [32] phi (byte) current_ypos#21 = (byte) current_ypos#13 [phi:main::@10->main::@1#3] -- register_copy - //SEG123 [32] phi (byte) current_xpos#10 = (byte) current_xpos#19 [phi:main::@10->main::@1#4] -- register_copy - //SEG124 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#14 [phi:main::@10->main::@1#5] -- register_copy - //SEG125 [32] phi (byte) current_orientation#10 = (byte) current_orientation#19 [phi:main::@10->main::@1#6] -- register_copy - //SEG126 [32] phi (byte*) current_piece#16 = (byte*) current_piece#10 [phi:main::@10->main::@1#7] -- register_copy + //SEG125 [67] phi from main::@29 to main::@30 [phi:main::@29->main::@30] + b30_from_b29: + jmp b30 + //SEG126 main::@30 + b30: + //SEG127 [68] call render_screen_swap + jsr render_screen_swap + //SEG128 [69] phi from main::@28 main::@30 to main::@7 [phi:main::@28/main::@30->main::@7] + b7_from_b28: + b7_from_b30: + //SEG129 [69] phi (byte) render_screen_render#31 = (byte) render_screen_render#15 [phi:main::@28/main::@30->main::@7#0] -- register_copy + //SEG130 [69] phi (byte) render_screen_show#24 = (byte) render_screen_show#15 [phi:main::@28/main::@30->main::@7#1] -- register_copy + jmp b7 + //SEG131 main::@7 + b7: + //SEG132 [70] *((const byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 + lda #0 + sta BORDERCOL + //SEG133 [32] phi from main::@7 to main::@1 [phi:main::@7->main::@1] + b1_from_b7: + //SEG134 [32] phi (byte) current_movedown_counter#12 = (byte) current_movedown_counter#10 [phi:main::@7->main::@1#0] -- register_copy + //SEG135 [32] phi (byte) keyboard_events_size#19 = (byte) keyboard_events_size#16 [phi:main::@7->main::@1#1] -- register_copy + //SEG136 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#1 [phi:main::@7->main::@1#2] -- register_copy + //SEG137 [32] phi (byte) current_ypos#21 = (byte) current_ypos#13 [phi:main::@7->main::@1#3] -- register_copy + //SEG138 [32] phi (byte) current_xpos#10 = (byte) current_xpos#19 [phi:main::@7->main::@1#4] -- register_copy + //SEG139 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#14 [phi:main::@7->main::@1#5] -- register_copy + //SEG140 [32] phi (byte) current_orientation#10 = (byte) current_orientation#19 [phi:main::@7->main::@1#6] -- register_copy + //SEG141 [32] phi (byte*) current_piece#16 = (byte*) current_piece#10 [phi:main::@7->main::@1#7] -- register_copy + //SEG142 [32] phi (byte) render_screen_render#15 = (byte) render_screen_render#31 [phi:main::@7->main::@1#8] -- register_copy + //SEG143 [32] phi (byte) render_screen_show#15 = (byte) render_screen_show#24 [phi:main::@7->main::@1#9] -- register_copy jmp b1 } -//SEG127 render_current +//SEG144 render_screen_swap +render_screen_swap: { + //SEG145 [71] (byte) render_screen_render#10 ← (byte) render_screen_render#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz1_bxor_vbuc1 + lda render_screen_render + eor #$40 + sta render_screen_render + //SEG146 [72] (byte) render_screen_show#11 ← (byte) render_screen_show#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz1_bxor_vbuc1 + lda render_screen_show + eor #$40 + sta render_screen_show + jmp breturn + //SEG147 render_screen_swap::@return + breturn: + //SEG148 [73] return + rts +} +//SEG149 render_current render_current: { - .label ypos2 = 7 - .label screen_line = $1a - .label xpos = $a - .label i = 9 - .label l = 8 - //SEG128 [66] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 + .label ypos2 = $a + .label screen_line = $1c + .label xpos = $d + .label i = $c + .label l = $b + //SEG150 [75] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 txa asl sta ypos2 - //SEG129 [67] phi from render_current to render_current::@1 [phi:render_current->render_current::@1] + //SEG151 [76] phi from render_current to render_current::@1 [phi:render_current->render_current::@1] b1_from_render_current: - //SEG130 [67] phi (byte) render_current::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#0] -- vbuz1=vbuc1 + //SEG152 [76] phi (byte) render_current::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG131 [67] phi (byte) render_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#1] -- vbuz1=vbuc1 + //SEG153 [76] phi (byte) render_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#1] -- vbuz1=vbuc1 lda #0 sta i - //SEG132 [67] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#0 [phi:render_current->render_current::@1#2] -- register_copy + //SEG154 [76] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#0 [phi:render_current->render_current::@1#2] -- register_copy jmp b1 - //SEG133 [67] phi from render_current::@3 to render_current::@1 [phi:render_current::@3->render_current::@1] + //SEG155 [76] phi from render_current::@3 to render_current::@1 [phi:render_current::@3->render_current::@1] b1_from_b3: - //SEG134 [67] phi (byte) render_current::l#4 = (byte) render_current::l#1 [phi:render_current::@3->render_current::@1#0] -- register_copy - //SEG135 [67] phi (byte) render_current::i#3 = (byte) render_current::i#8 [phi:render_current::@3->render_current::@1#1] -- register_copy - //SEG136 [67] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#1 [phi:render_current::@3->render_current::@1#2] -- register_copy + //SEG156 [76] phi (byte) render_current::l#4 = (byte) render_current::l#1 [phi:render_current::@3->render_current::@1#0] -- register_copy + //SEG157 [76] phi (byte) render_current::i#3 = (byte) render_current::i#8 [phi:render_current::@3->render_current::@1#1] -- register_copy + //SEG158 [76] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#1 [phi:render_current::@3->render_current::@1#2] -- register_copy jmp b1 - //SEG137 render_current::@1 + //SEG159 render_current::@1 b1: - //SEG138 [68] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 -- vbuz1_gt_vbuc1_then_la1 + //SEG160 [77] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 -- vbuz1_gt_vbuc1_then_la1 lda ypos2 cmp #2 beq !+ bcs b13 !: jmp b7 - //SEG139 render_current::@7 + //SEG161 render_current::@7 b7: - //SEG140 [69] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 + //SEG162 [78] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 lda #4 clc adc i sta i - //SEG141 [70] phi from render_current::@5 render_current::@7 to render_current::@3 [phi:render_current::@5/render_current::@7->render_current::@3] + //SEG163 [79] phi from render_current::@5 render_current::@7 to render_current::@3 [phi:render_current::@5/render_current::@7->render_current::@3] b3_from_b5: b3_from_b7: - //SEG142 [70] phi (byte) render_current::i#8 = (byte) render_current::i#10 [phi:render_current::@5/render_current::@7->render_current::@3#0] -- register_copy + //SEG164 [79] phi (byte) render_current::i#8 = (byte) render_current::i#10 [phi:render_current::@5/render_current::@7->render_current::@3#0] -- register_copy jmp b3 - //SEG143 render_current::@3 + //SEG165 render_current::@3 b3: - //SEG144 [71] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG166 [80] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG145 [72] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 -- vbuz1=_inc_vbuz1 + //SEG167 [81] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 -- vbuz1=_inc_vbuz1 inc l - //SEG146 [73] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG168 [82] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b1_from_b3 jmp breturn - //SEG147 render_current::@return + //SEG169 render_current::@return breturn: - //SEG148 [74] return + //SEG170 [83] return rts - //SEG149 render_current::@13 + //SEG171 render_current::@13 b13: - //SEG150 [75] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 -- vbuz1_lt_vbuc1_then_la1 + //SEG172 [84] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 -- vbuz1_lt_vbuc1_then_la1 lda ypos2 cmp #2*PLAYFIELD_LINES bcc b2 jmp b7 - //SEG151 render_current::@2 + //SEG173 render_current::@2 b2: - //SEG152 [76] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 - ldy ypos2 - lda screen_lines,y + //SEG174 [85] (byte~) render_current::$5 ← (byte) render_screen_render#27 + (byte) render_current::ypos2#2 -- vbuaa=vbuz1_plus_vbuz2 + lda render_screen_render_27 + clc + adc ypos2 + //SEG175 [86] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) -- pbuz1=pptc1_derefidx_vbuaa + tay + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 - //SEG153 [77] (byte) render_current::xpos#0 ← (byte) current_xpos#47 -- vbuz1=vbuz2 + //SEG176 [87] (byte) render_current::xpos#0 ← (byte) current_xpos#47 -- vbuz1=vbuz2 lda current_xpos_47 sta xpos - //SEG154 [78] phi from render_current::@2 to render_current::@4 [phi:render_current::@2->render_current::@4] + //SEG177 [88] phi from render_current::@2 to render_current::@4 [phi:render_current::@2->render_current::@4] b4_from_b2: - //SEG155 [78] phi (byte) render_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current::@2->render_current::@4#0] -- vbuxx=vbuc1 + //SEG178 [88] phi (byte) render_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current::@2->render_current::@4#0] -- vbuxx=vbuc1 ldx #0 - //SEG156 [78] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#0 [phi:render_current::@2->render_current::@4#1] -- register_copy - //SEG157 [78] phi (byte) render_current::i#4 = (byte) render_current::i#3 [phi:render_current::@2->render_current::@4#2] -- register_copy + //SEG179 [88] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#0 [phi:render_current::@2->render_current::@4#1] -- register_copy + //SEG180 [88] phi (byte) render_current::i#4 = (byte) render_current::i#3 [phi:render_current::@2->render_current::@4#2] -- register_copy jmp b4 - //SEG158 [78] phi from render_current::@5 to render_current::@4 [phi:render_current::@5->render_current::@4] + //SEG181 [88] phi from render_current::@5 to render_current::@4 [phi:render_current::@5->render_current::@4] b4_from_b5: - //SEG159 [78] phi (byte) render_current::c#2 = (byte) render_current::c#1 [phi:render_current::@5->render_current::@4#0] -- register_copy - //SEG160 [78] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#1 [phi:render_current::@5->render_current::@4#1] -- register_copy - //SEG161 [78] phi (byte) render_current::i#4 = (byte) render_current::i#10 [phi:render_current::@5->render_current::@4#2] -- register_copy + //SEG182 [88] phi (byte) render_current::c#2 = (byte) render_current::c#1 [phi:render_current::@5->render_current::@4#0] -- register_copy + //SEG183 [88] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#1 [phi:render_current::@5->render_current::@4#1] -- register_copy + //SEG184 [88] phi (byte) render_current::i#4 = (byte) render_current::i#10 [phi:render_current::@5->render_current::@4#2] -- register_copy jmp b4 - //SEG162 render_current::@4 + //SEG185 render_current::@4 b4: - //SEG163 [79] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) -- vbuaa=pbuz1_derefidx_vbuz2 + //SEG186 [89] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) -- vbuaa=pbuz1_derefidx_vbuz2 ldy i lda (current_piece_gfx_52),y - //SEG164 [80] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 -- vbuz1=_inc_vbuz1 + //SEG187 [90] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 -- vbuz1=_inc_vbuz1 inc i - //SEG165 [81] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 -- vbuaa_eq_0_then_la1 + //SEG188 [91] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 -- vbuaa_eq_0_then_la1 cmp #0 beq b5 jmp b9 - //SEG166 render_current::@9 + //SEG189 render_current::@9 b9: - //SEG167 [82] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 -- vbuz1_ge_vbuc1_then_la1 + //SEG190 [92] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 -- vbuz1_ge_vbuc1_then_la1 lda xpos cmp #PLAYFIELD_COLS bcs b5 jmp b10 - //SEG168 render_current::@10 + //SEG191 render_current::@10 b10: - //SEG169 [83] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 -- pbuz1_derefidx_vbuz2=vbuz3 + //SEG192 [93] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 -- pbuz1_derefidx_vbuz2=vbuz3 lda current_piece_char_62 ldy xpos sta (screen_line),y jmp b5 - //SEG170 render_current::@5 + //SEG193 render_current::@5 b5: - //SEG171 [84] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 -- vbuz1=_inc_vbuz1 + //SEG194 [94] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 -- vbuz1=_inc_vbuz1 inc xpos - //SEG172 [85] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 -- vbuxx=_inc_vbuxx + //SEG195 [95] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 -- vbuxx=_inc_vbuxx inx - //SEG173 [86] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 -- vbuxx_neq_vbuc1_then_la1 + //SEG196 [96] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b4_from_b5 jmp b3_from_b5 } -//SEG174 render_playfield +//SEG197 render_playfield render_playfield: { - .label screen_line = 4 + .label screen_line = 7 .label i = 6 - .label l = 3 - //SEG175 [88] phi from render_playfield to render_playfield::@1 [phi:render_playfield->render_playfield::@1] + .label c = 9 + .label l = 5 + //SEG198 [98] phi from render_playfield to render_playfield::@1 [phi:render_playfield->render_playfield::@1] b1_from_render_playfield: - //SEG176 [88] phi (byte) render_playfield::i#3 = (const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#0] -- vbuz1=vbuc1 + //SEG199 [98] phi (byte) render_playfield::i#3 = (const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#0] -- vbuz1=vbuc1 lda #PLAYFIELD_COLS*2 sta i - //SEG177 [88] phi (byte) render_playfield::l#2 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#1] -- vbuz1=vbuc1 + //SEG200 [98] phi (byte) render_playfield::l#2 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#1] -- vbuz1=vbuc1 lda #2 sta l jmp b1 - //SEG178 [88] phi from render_playfield::@3 to render_playfield::@1 [phi:render_playfield::@3->render_playfield::@1] + //SEG201 [98] phi from render_playfield::@3 to render_playfield::@1 [phi:render_playfield::@3->render_playfield::@1] b1_from_b3: - //SEG179 [88] phi (byte) render_playfield::i#3 = (byte) render_playfield::i#1 [phi:render_playfield::@3->render_playfield::@1#0] -- register_copy - //SEG180 [88] phi (byte) render_playfield::l#2 = (byte) render_playfield::l#1 [phi:render_playfield::@3->render_playfield::@1#1] -- register_copy + //SEG202 [98] phi (byte) render_playfield::i#3 = (byte) render_playfield::i#1 [phi:render_playfield::@3->render_playfield::@1#0] -- register_copy + //SEG203 [98] phi (byte) render_playfield::l#2 = (byte) render_playfield::l#1 [phi:render_playfield::@3->render_playfield::@1#1] -- register_copy jmp b1 - //SEG181 render_playfield::@1 + //SEG204 render_playfield::@1 b1: - //SEG182 [89] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuz1_rol_1 + //SEG205 [99] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuz1_rol_1 lda l asl - //SEG183 [90] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) -- pbuz1=pptc1_derefidx_vbuaa + //SEG206 [100] (byte~) render_playfield::$3 ← (byte) render_screen_render#18 + (byte~) render_playfield::$2 -- vbuaa=vbuxx_plus_vbuaa + stx $ff + clc + adc $ff + //SEG207 [101] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) -- pbuz1=pptc1_derefidx_vbuaa tay - lda screen_lines,y + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 - //SEG184 [91] phi from render_playfield::@1 to render_playfield::@2 [phi:render_playfield::@1->render_playfield::@2] + //SEG208 [102] phi from render_playfield::@1 to render_playfield::@2 [phi:render_playfield::@1->render_playfield::@2] b2_from_b1: - //SEG185 [91] phi (byte) render_playfield::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_playfield::@1->render_playfield::@2#0] -- vbuxx=vbuc1 - ldx #0 - //SEG186 [91] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#0 [phi:render_playfield::@1->render_playfield::@2#1] -- register_copy - //SEG187 [91] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#3 [phi:render_playfield::@1->render_playfield::@2#2] -- register_copy + //SEG209 [102] phi (byte) render_playfield::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_playfield::@1->render_playfield::@2#0] -- vbuz1=vbuc1 + lda #0 + sta c + //SEG210 [102] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#0 [phi:render_playfield::@1->render_playfield::@2#1] -- register_copy + //SEG211 [102] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#3 [phi:render_playfield::@1->render_playfield::@2#2] -- register_copy jmp b2 - //SEG188 [91] phi from render_playfield::@2 to render_playfield::@2 [phi:render_playfield::@2->render_playfield::@2] + //SEG212 [102] phi from render_playfield::@2 to render_playfield::@2 [phi:render_playfield::@2->render_playfield::@2] b2_from_b2: - //SEG189 [91] phi (byte) render_playfield::c#2 = (byte) render_playfield::c#1 [phi:render_playfield::@2->render_playfield::@2#0] -- register_copy - //SEG190 [91] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#1 [phi:render_playfield::@2->render_playfield::@2#1] -- register_copy - //SEG191 [91] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#1 [phi:render_playfield::@2->render_playfield::@2#2] -- register_copy + //SEG213 [102] phi (byte) render_playfield::c#2 = (byte) render_playfield::c#1 [phi:render_playfield::@2->render_playfield::@2#0] -- register_copy + //SEG214 [102] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#1 [phi:render_playfield::@2->render_playfield::@2#1] -- register_copy + //SEG215 [102] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#1 [phi:render_playfield::@2->render_playfield::@2#2] -- register_copy jmp b2 - //SEG192 render_playfield::@2 + //SEG216 render_playfield::@2 b2: - //SEG193 [92] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) -- _deref_pbuz1=pbuc1_derefidx_vbuz2 + //SEG217 [103] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) -- _deref_pbuz1=pbuc1_derefidx_vbuz2 ldy i lda playfield,y ldy #0 sta (screen_line),y - //SEG194 [93] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 -- pbuz1=_inc_pbuz1 + //SEG218 [104] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 -- pbuz1=_inc_pbuz1 inc screen_line bne !+ inc screen_line+1 !: - //SEG195 [94] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 -- vbuz1=_inc_vbuz1 + //SEG219 [105] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 -- vbuz1=_inc_vbuz1 inc i - //SEG196 [95] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 -- vbuxx=_inc_vbuxx - inx - //SEG197 [96] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 -- vbuxx_neq_vbuc1_then_la1 - cpx #PLAYFIELD_COLS-1+1 + //SEG220 [106] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 -- vbuz1=_inc_vbuz1 + inc c + //SEG221 [107] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 -- vbuz1_neq_vbuc1_then_la1 + lda c + cmp #PLAYFIELD_COLS-1+1 bne b2_from_b2 jmp b3 - //SEG198 render_playfield::@3 + //SEG222 render_playfield::@3 b3: - //SEG199 [97] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 -- vbuz1=_inc_vbuz1 + //SEG223 [108] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 -- vbuz1=_inc_vbuz1 inc l - //SEG200 [98] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG224 [109] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #PLAYFIELD_LINES-1+1 bne b1_from_b3 jmp breturn - //SEG201 render_playfield::@return + //SEG225 render_playfield::@return breturn: - //SEG202 [99] return + //SEG226 [110] return rts } -//SEG203 play_move_rotate +//SEG227 play_move_rotate play_move_rotate: { - .label orientation = 3 - //SEG204 [100] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 -- vbuaa_eq_vbuc1_then_la1 + .label orientation = 5 + //SEG228 [111] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 -- vbuaa_eq_vbuc1_then_la1 cmp #KEY_Z beq b1 jmp b6 - //SEG205 play_move_rotate::@6 + //SEG229 play_move_rotate::@6 b6: - //SEG206 [101] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 -- vbuaa_eq_vbuc1_then_la1 + //SEG230 [112] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 -- vbuaa_eq_vbuc1_then_la1 cmp #KEY_X beq b2 - //SEG207 [102] phi from play_move_rotate::@14 play_move_rotate::@6 to play_move_rotate::@return [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return] + //SEG231 [113] phi from play_move_rotate::@14 play_move_rotate::@6 to play_move_rotate::@return [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return] breturn_from_b14: breturn_from_b6: - //SEG208 [102] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#1 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#0] -- register_copy - //SEG209 [102] phi (byte) current_orientation#19 = (byte) current_orientation#14 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#1] -- register_copy - //SEG210 [102] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#2] -- vbuaa=vbuc1 + //SEG232 [113] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#1 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#0] -- register_copy + //SEG233 [113] phi (byte) current_orientation#19 = (byte) current_orientation#14 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#1] -- register_copy + //SEG234 [113] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#2] -- vbuaa=vbuc1 lda #0 jmp breturn - //SEG211 play_move_rotate::@return + //SEG235 play_move_rotate::@return breturn: - //SEG212 [103] return + //SEG236 [114] return rts - //SEG213 play_move_rotate::@2 + //SEG237 play_move_rotate::@2 b2: - //SEG214 [104] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_plus_vbuc1 + //SEG238 [115] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_plus_vbuc1 lda #$10 clc adc current_orientation - //SEG215 [105] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 + //SEG239 [116] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 and #$3f sta orientation - //SEG216 [106] phi from play_move_rotate::@1 play_move_rotate::@2 to play_move_rotate::@4 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4] + //SEG240 [117] phi from play_move_rotate::@1 play_move_rotate::@2 to play_move_rotate::@4 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4] b4_from_b1: b4_from_b2: - //SEG217 [106] phi (byte) play_move_rotate::orientation#3 = (byte) play_move_rotate::orientation#1 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4#0] -- register_copy + //SEG241 [117] phi (byte) play_move_rotate::orientation#3 = (byte) play_move_rotate::orientation#1 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4#0] -- register_copy jmp b4 - //SEG218 play_move_rotate::@4 + //SEG242 play_move_rotate::@4 b4: - //SEG219 [107] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 -- vbuz1=vbuz2 + //SEG243 [118] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 -- vbuz1=vbuz2 lda current_xpos sta play_collision.xpos - //SEG220 [108] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 -- vbuyy=vbuz1 + //SEG244 [119] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 -- vbuyy=vbuz1 ldy current_ypos - //SEG221 [109] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 -- vbuxx=vbuz1 + //SEG245 [120] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 -- vbuxx=vbuz1 ldx orientation - //SEG222 [110] (byte*~) current_piece#76 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG246 [121] (byte*~) current_piece#76 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_76 lda current_piece+1 sta current_piece_76+1 - //SEG223 [111] call play_collision - //SEG224 [119] phi from play_move_rotate::@4 to play_collision [phi:play_move_rotate::@4->play_collision] + //SEG247 [122] call play_collision + //SEG248 [130] phi from play_move_rotate::@4 to play_collision [phi:play_move_rotate::@4->play_collision] play_collision_from_b4: - //SEG225 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#3 [phi:play_move_rotate::@4->play_collision#0] -- register_copy - //SEG226 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#3 [phi:play_move_rotate::@4->play_collision#1] -- register_copy - //SEG227 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#3 [phi:play_move_rotate::@4->play_collision#2] -- register_copy - //SEG228 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#76 [phi:play_move_rotate::@4->play_collision#3] -- register_copy + //SEG249 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#3 [phi:play_move_rotate::@4->play_collision#0] -- register_copy + //SEG250 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#3 [phi:play_move_rotate::@4->play_collision#1] -- register_copy + //SEG251 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#3 [phi:play_move_rotate::@4->play_collision#2] -- register_copy + //SEG252 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#76 [phi:play_move_rotate::@4->play_collision#3] -- register_copy jsr play_collision - //SEG229 [112] (byte) play_collision::return#13 ← (byte) play_collision::return#14 + //SEG253 [123] (byte) play_collision::return#13 ← (byte) play_collision::return#14 // (byte) play_collision::return#13 = (byte) play_collision::return#14 // register copy reg byte a jmp b14 - //SEG230 play_move_rotate::@14 + //SEG254 play_move_rotate::@14 b14: - //SEG231 [113] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 + //SEG255 [124] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 // (byte~) play_move_rotate::$6 = (byte) play_collision::return#13 // register copy reg byte a - //SEG232 [114] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG256 [125] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return -- vbuaa_neq_vbuc1_then_la1 cmp #COLLISION_NONE bne breturn_from_b14 jmp b11 - //SEG233 play_move_rotate::@11 + //SEG257 play_move_rotate::@11 b11: - //SEG234 [115] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 + //SEG258 [126] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 lda orientation sta current_orientation - //SEG235 [116] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 -- pbuz1=pbuz2_plus_vbuz3 + //SEG259 [127] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 -- pbuz1=pbuz2_plus_vbuz3 lda current_orientation clc adc current_piece @@ -12794,38 +13664,38 @@ play_move_rotate: { lda #0 adc current_piece+1 sta current_piece_gfx+1 - //SEG236 [102] phi from play_move_rotate::@11 to play_move_rotate::@return [phi:play_move_rotate::@11->play_move_rotate::@return] + //SEG260 [113] phi from play_move_rotate::@11 to play_move_rotate::@return [phi:play_move_rotate::@11->play_move_rotate::@return] breturn_from_b11: - //SEG237 [102] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#3 [phi:play_move_rotate::@11->play_move_rotate::@return#0] -- register_copy - //SEG238 [102] phi (byte) current_orientation#19 = (byte) current_orientation#4 [phi:play_move_rotate::@11->play_move_rotate::@return#1] -- register_copy - //SEG239 [102] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_rotate::@11->play_move_rotate::@return#2] -- vbuaa=vbuc1 + //SEG261 [113] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#3 [phi:play_move_rotate::@11->play_move_rotate::@return#0] -- register_copy + //SEG262 [113] phi (byte) current_orientation#19 = (byte) current_orientation#4 [phi:play_move_rotate::@11->play_move_rotate::@return#1] -- register_copy + //SEG263 [113] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_rotate::@11->play_move_rotate::@return#2] -- vbuaa=vbuc1 lda #1 jmp breturn - //SEG240 play_move_rotate::@1 + //SEG264 play_move_rotate::@1 b1: - //SEG241 [117] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_minus_vbuc1 + //SEG265 [128] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_minus_vbuc1 lda current_orientation sec sbc #$10 - //SEG242 [118] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 + //SEG266 [129] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 and #$3f sta orientation jmp b4_from_b1 } -//SEG243 play_collision +//SEG267 play_collision play_collision: { .label xpos = 6 - .label piece_gfx = 4 - .label ypos2 = 7 - .label playfield_line = $1a - .label i = $1c - .label col = $a - .label l = 8 - .label i_2 = 9 - .label i_3 = 9 - .label i_11 = 9 - .label i_13 = 9 - //SEG244 [120] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 -- pbuz1=pbuz1_plus_vbuxx + .label piece_gfx = 7 + .label ypos2 = 9 + .label playfield_line = $1c + .label i = $1e + .label col = $c + .label l = $a + .label i_2 = $b + .label i_3 = $b + .label i_11 = $b + .label i_13 = $b + //SEG268 [131] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 -- pbuz1=pbuz1_plus_vbuxx txa clc adc piece_gfx @@ -12833,1162 +13703,1200 @@ play_collision: { lda #0 adc piece_gfx+1 sta piece_gfx+1 - //SEG245 [121] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuyy_rol_1 + //SEG269 [132] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuyy_rol_1 tya asl sta ypos2 - //SEG246 [122] phi from play_collision to play_collision::@1 [phi:play_collision->play_collision::@1] + //SEG270 [133] phi from play_collision to play_collision::@1 [phi:play_collision->play_collision::@1] b1_from_play_collision: - //SEG247 [122] phi (byte) play_collision::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#0] -- vbuz1=vbuc1 + //SEG271 [133] phi (byte) play_collision::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG248 [122] phi (byte) play_collision::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#1] -- vbuz1=vbuc1 + //SEG272 [133] phi (byte) play_collision::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#1] -- vbuz1=vbuc1 lda #0 sta i_3 - //SEG249 [122] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#0 [phi:play_collision->play_collision::@1#2] -- register_copy + //SEG273 [133] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#0 [phi:play_collision->play_collision::@1#2] -- register_copy jmp b1 - //SEG250 play_collision::@1 + //SEG274 play_collision::@1 b1: - //SEG251 [123] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG275 [134] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 ldy ypos2 lda playfield_lines,y sta playfield_line lda playfield_lines+1,y sta playfield_line+1 - //SEG252 [124] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 -- vbuz1=vbuz2 + //SEG276 [135] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 -- vbuz1=vbuz2 lda xpos sta col - //SEG253 [125] phi from play_collision::@1 to play_collision::@2 [phi:play_collision::@1->play_collision::@2] + //SEG277 [136] phi from play_collision::@1 to play_collision::@2 [phi:play_collision::@1->play_collision::@2] b2_from_b1: - //SEG254 [125] phi (byte) play_collision::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision::@1->play_collision::@2#0] -- vbuxx=vbuc1 + //SEG278 [136] phi (byte) play_collision::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision::@1->play_collision::@2#0] -- vbuxx=vbuc1 ldx #0 - //SEG255 [125] phi (byte) play_collision::col#2 = (byte~) play_collision::col#9 [phi:play_collision::@1->play_collision::@2#1] -- register_copy - //SEG256 [125] phi (byte) play_collision::i#2 = (byte) play_collision::i#3 [phi:play_collision::@1->play_collision::@2#2] -- register_copy + //SEG279 [136] phi (byte) play_collision::col#2 = (byte~) play_collision::col#9 [phi:play_collision::@1->play_collision::@2#1] -- register_copy + //SEG280 [136] phi (byte) play_collision::i#2 = (byte) play_collision::i#3 [phi:play_collision::@1->play_collision::@2#2] -- register_copy jmp b2 - //SEG257 play_collision::@2 + //SEG281 play_collision::@2 b2: - //SEG258 [126] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 -- vbuz1=_inc_vbuz2 + //SEG282 [137] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 -- vbuz1=_inc_vbuz2 ldy i_2 iny sty i - //SEG259 [127] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG283 [138] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy i_2 lda (piece_gfx),y cmp #0 beq b3 jmp b8 - //SEG260 play_collision::@8 + //SEG284 play_collision::@8 b8: - //SEG261 [128] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 -- vbuz1_lt_vbuc1_then_la1 + //SEG285 [139] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 -- vbuz1_lt_vbuc1_then_la1 lda ypos2 cmp #2*PLAYFIELD_LINES bcc b4 - //SEG262 [129] phi from play_collision::@8 to play_collision::@return [phi:play_collision::@8->play_collision::@return] + //SEG286 [140] phi from play_collision::@8 to play_collision::@return [phi:play_collision::@8->play_collision::@return] breturn_from_b8: - //SEG263 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_BOTTOM#0 [phi:play_collision::@8->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG287 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_BOTTOM#0 [phi:play_collision::@8->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_BOTTOM jmp breturn - //SEG264 play_collision::@return + //SEG288 play_collision::@return breturn: - //SEG265 [130] return + //SEG289 [141] return rts - //SEG266 play_collision::@4 + //SEG290 play_collision::@4 b4: - //SEG267 [131] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 -- vbuaa=vbuz1_band_vbuc1 + //SEG291 [142] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 -- vbuaa=vbuz1_band_vbuc1 lda #$80 and col - //SEG268 [132] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 -- vbuaa_eq_0_then_la1 + //SEG292 [143] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 -- vbuaa_eq_0_then_la1 cmp #0 beq b5 - //SEG269 [129] phi from play_collision::@4 to play_collision::@return [phi:play_collision::@4->play_collision::@return] + //SEG293 [140] phi from play_collision::@4 to play_collision::@return [phi:play_collision::@4->play_collision::@return] breturn_from_b4: - //SEG270 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_LEFT#0 [phi:play_collision::@4->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG294 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_LEFT#0 [phi:play_collision::@4->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_LEFT jmp breturn - //SEG271 play_collision::@5 + //SEG295 play_collision::@5 b5: - //SEG272 [133] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 -- vbuz1_lt_vbuc1_then_la1 + //SEG296 [144] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 -- vbuz1_lt_vbuc1_then_la1 lda col cmp #PLAYFIELD_COLS bcc b6 - //SEG273 [129] phi from play_collision::@5 to play_collision::@return [phi:play_collision::@5->play_collision::@return] + //SEG297 [140] phi from play_collision::@5 to play_collision::@return [phi:play_collision::@5->play_collision::@return] breturn_from_b5: - //SEG274 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_RIGHT#0 [phi:play_collision::@5->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG298 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_RIGHT#0 [phi:play_collision::@5->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_RIGHT jmp breturn - //SEG275 play_collision::@6 + //SEG299 play_collision::@6 b6: - //SEG276 [134] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG300 [145] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy col lda (playfield_line),y cmp #0 beq b3 - //SEG277 [129] phi from play_collision::@6 to play_collision::@return [phi:play_collision::@6->play_collision::@return] + //SEG301 [140] phi from play_collision::@6 to play_collision::@return [phi:play_collision::@6->play_collision::@return] breturn_from_b6: - //SEG278 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_PLAYFIELD#0 [phi:play_collision::@6->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG302 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_PLAYFIELD#0 [phi:play_collision::@6->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_PLAYFIELD jmp breturn - //SEG279 play_collision::@3 + //SEG303 play_collision::@3 b3: - //SEG280 [135] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 -- vbuz1=_inc_vbuz1 + //SEG304 [146] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 -- vbuz1=_inc_vbuz1 inc col - //SEG281 [136] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 -- vbuxx=_inc_vbuxx + //SEG305 [147] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 -- vbuxx=_inc_vbuxx inx - //SEG282 [137] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 -- vbuxx_neq_vbuc1_then_la1 + //SEG306 [148] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b21 jmp b17 - //SEG283 play_collision::@17 + //SEG307 play_collision::@17 b17: - //SEG284 [138] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG308 [149] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG285 [139] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 -- vbuz1=_inc_vbuz1 + //SEG309 [150] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 -- vbuz1=_inc_vbuz1 inc l - //SEG286 [140] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 -- vbuz1_neq_vbuc1_then_la1 + //SEG310 [151] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b20 - //SEG287 [129] phi from play_collision::@17 to play_collision::@return [phi:play_collision::@17->play_collision::@return] + //SEG311 [140] phi from play_collision::@17 to play_collision::@return [phi:play_collision::@17->play_collision::@return] breturn_from_b17: - //SEG288 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_NONE#0 [phi:play_collision::@17->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG312 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_NONE#0 [phi:play_collision::@17->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_NONE jmp breturn - //SEG289 play_collision::@20 + //SEG313 play_collision::@20 b20: - //SEG290 [141] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 + //SEG314 [152] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 lda i sta i_11 - //SEG291 [122] phi from play_collision::@20 to play_collision::@1 [phi:play_collision::@20->play_collision::@1] + //SEG315 [133] phi from play_collision::@20 to play_collision::@1 [phi:play_collision::@20->play_collision::@1] b1_from_b20: - //SEG292 [122] phi (byte) play_collision::l#6 = (byte) play_collision::l#1 [phi:play_collision::@20->play_collision::@1#0] -- register_copy - //SEG293 [122] phi (byte) play_collision::i#3 = (byte~) play_collision::i#11 [phi:play_collision::@20->play_collision::@1#1] -- register_copy - //SEG294 [122] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#1 [phi:play_collision::@20->play_collision::@1#2] -- register_copy + //SEG316 [133] phi (byte) play_collision::l#6 = (byte) play_collision::l#1 [phi:play_collision::@20->play_collision::@1#0] -- register_copy + //SEG317 [133] phi (byte) play_collision::i#3 = (byte~) play_collision::i#11 [phi:play_collision::@20->play_collision::@1#1] -- register_copy + //SEG318 [133] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#1 [phi:play_collision::@20->play_collision::@1#2] -- register_copy jmp b1 - //SEG295 play_collision::@21 + //SEG319 play_collision::@21 b21: - //SEG296 [142] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 + //SEG320 [153] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 lda i sta i_13 - //SEG297 [125] phi from play_collision::@21 to play_collision::@2 [phi:play_collision::@21->play_collision::@2] + //SEG321 [136] phi from play_collision::@21 to play_collision::@2 [phi:play_collision::@21->play_collision::@2] b2_from_b21: - //SEG298 [125] phi (byte) play_collision::c#2 = (byte) play_collision::c#1 [phi:play_collision::@21->play_collision::@2#0] -- register_copy - //SEG299 [125] phi (byte) play_collision::col#2 = (byte) play_collision::col#1 [phi:play_collision::@21->play_collision::@2#1] -- register_copy - //SEG300 [125] phi (byte) play_collision::i#2 = (byte~) play_collision::i#13 [phi:play_collision::@21->play_collision::@2#2] -- register_copy + //SEG322 [136] phi (byte) play_collision::c#2 = (byte) play_collision::c#1 [phi:play_collision::@21->play_collision::@2#0] -- register_copy + //SEG323 [136] phi (byte) play_collision::col#2 = (byte) play_collision::col#1 [phi:play_collision::@21->play_collision::@2#1] -- register_copy + //SEG324 [136] phi (byte) play_collision::i#2 = (byte~) play_collision::i#13 [phi:play_collision::@21->play_collision::@2#2] -- register_copy jmp b2 } -//SEG301 play_move_leftright +//SEG325 play_move_leftright play_move_leftright: { - //SEG302 [143] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 -- vbuaa_eq_vbuc1_then_la1 + //SEG326 [154] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 -- vbuaa_eq_vbuc1_then_la1 cmp #KEY_COMMA beq b1 jmp b6 - //SEG303 play_move_leftright::@6 + //SEG327 play_move_leftright::@6 b6: - //SEG304 [144] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG328 [155] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 cmp #KEY_DOT bne breturn_from_b6 jmp b7 - //SEG305 play_move_leftright::@7 + //SEG329 play_move_leftright::@7 b7: - //SEG306 [145] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 + //SEG330 [156] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 ldy current_xpos iny sty play_collision.xpos - //SEG307 [146] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 -- vbuyy=vbuz1 + //SEG331 [157] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 -- vbuyy=vbuz1 ldy current_ypos - //SEG308 [147] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 -- vbuxx=vbuz1 + //SEG332 [158] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 -- vbuxx=vbuz1 ldx current_orientation - //SEG309 [148] (byte*~) current_piece#75 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG333 [159] (byte*~) current_piece#75 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_75 lda current_piece+1 sta current_piece_75+1 - //SEG310 [149] call play_collision - //SEG311 [119] phi from play_move_leftright::@7 to play_collision [phi:play_move_leftright::@7->play_collision] + //SEG334 [160] call play_collision + //SEG335 [130] phi from play_move_leftright::@7 to play_collision [phi:play_move_leftright::@7->play_collision] play_collision_from_b7: - //SEG312 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#2 [phi:play_move_leftright::@7->play_collision#0] -- register_copy - //SEG313 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#2 [phi:play_move_leftright::@7->play_collision#1] -- register_copy - //SEG314 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#2 [phi:play_move_leftright::@7->play_collision#2] -- register_copy - //SEG315 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#75 [phi:play_move_leftright::@7->play_collision#3] -- register_copy + //SEG336 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#2 [phi:play_move_leftright::@7->play_collision#0] -- register_copy + //SEG337 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#2 [phi:play_move_leftright::@7->play_collision#1] -- register_copy + //SEG338 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#2 [phi:play_move_leftright::@7->play_collision#2] -- register_copy + //SEG339 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#75 [phi:play_move_leftright::@7->play_collision#3] -- register_copy jsr play_collision - //SEG316 [150] (byte) play_collision::return#12 ← (byte) play_collision::return#14 + //SEG340 [161] (byte) play_collision::return#12 ← (byte) play_collision::return#14 // (byte) play_collision::return#12 = (byte) play_collision::return#14 // register copy reg byte a jmp b15 - //SEG317 play_move_leftright::@15 + //SEG341 play_move_leftright::@15 b15: - //SEG318 [151] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 + //SEG342 [162] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 // (byte~) play_move_leftright::$4 = (byte) play_collision::return#12 // register copy reg byte a - //SEG319 [152] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG343 [163] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 cmp #COLLISION_NONE bne breturn_from_b15 jmp b8 - //SEG320 play_move_leftright::@8 + //SEG344 play_move_leftright::@8 b8: - //SEG321 [153] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 -- vbuz1=_inc_vbuz1 + //SEG345 [164] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 -- vbuz1=_inc_vbuz1 inc current_xpos - //SEG322 [154] phi from play_move_leftright::@11 play_move_leftright::@8 to play_move_leftright::@return [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return] + //SEG346 [165] phi from play_move_leftright::@11 play_move_leftright::@8 to play_move_leftright::@return [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return] breturn_from_b11: breturn_from_b8: - //SEG323 [154] phi (byte) current_xpos#19 = (byte) current_xpos#4 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#0] -- register_copy - //SEG324 [154] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#1] -- vbuaa=vbuc1 + //SEG347 [165] phi (byte) current_xpos#19 = (byte) current_xpos#4 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#0] -- register_copy + //SEG348 [165] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#1] -- vbuaa=vbuc1 lda #1 jmp breturn - //SEG325 [154] phi from play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 to play_move_leftright::@return [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return] + //SEG349 [165] phi from play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 to play_move_leftright::@return [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return] breturn_from_b14: breturn_from_b15: breturn_from_b6: - //SEG326 [154] phi (byte) current_xpos#19 = (byte) current_xpos#1 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#0] -- register_copy - //SEG327 [154] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#1] -- vbuaa=vbuc1 + //SEG350 [165] phi (byte) current_xpos#19 = (byte) current_xpos#1 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#0] -- register_copy + //SEG351 [165] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#1] -- vbuaa=vbuc1 lda #0 jmp breturn - //SEG328 play_move_leftright::@return + //SEG352 play_move_leftright::@return breturn: - //SEG329 [155] return + //SEG353 [166] return rts - //SEG330 play_move_leftright::@1 + //SEG354 play_move_leftright::@1 b1: - //SEG331 [156] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_minus_1 + //SEG355 [167] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_minus_1 ldx current_xpos dex stx play_collision.xpos - //SEG332 [157] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 -- vbuyy=vbuz1 + //SEG356 [168] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 -- vbuyy=vbuz1 ldy current_ypos - //SEG333 [158] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 -- vbuxx=vbuz1 + //SEG357 [169] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 -- vbuxx=vbuz1 ldx current_orientation - //SEG334 [159] (byte*~) current_piece#74 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG358 [170] (byte*~) current_piece#74 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_74 lda current_piece+1 sta current_piece_74+1 - //SEG335 [160] call play_collision - //SEG336 [119] phi from play_move_leftright::@1 to play_collision [phi:play_move_leftright::@1->play_collision] + //SEG359 [171] call play_collision + //SEG360 [130] phi from play_move_leftright::@1 to play_collision [phi:play_move_leftright::@1->play_collision] play_collision_from_b1: - //SEG337 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#1 [phi:play_move_leftright::@1->play_collision#0] -- register_copy - //SEG338 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#1 [phi:play_move_leftright::@1->play_collision#1] -- register_copy - //SEG339 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#1 [phi:play_move_leftright::@1->play_collision#2] -- register_copy - //SEG340 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#74 [phi:play_move_leftright::@1->play_collision#3] -- register_copy + //SEG361 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#1 [phi:play_move_leftright::@1->play_collision#0] -- register_copy + //SEG362 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#1 [phi:play_move_leftright::@1->play_collision#1] -- register_copy + //SEG363 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#1 [phi:play_move_leftright::@1->play_collision#2] -- register_copy + //SEG364 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#74 [phi:play_move_leftright::@1->play_collision#3] -- register_copy jsr play_collision - //SEG341 [161] (byte) play_collision::return#1 ← (byte) play_collision::return#14 + //SEG365 [172] (byte) play_collision::return#1 ← (byte) play_collision::return#14 // (byte) play_collision::return#1 = (byte) play_collision::return#14 // register copy reg byte a jmp b14 - //SEG342 play_move_leftright::@14 + //SEG366 play_move_leftright::@14 b14: - //SEG343 [162] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 + //SEG367 [173] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 // (byte~) play_move_leftright::$8 = (byte) play_collision::return#1 // register copy reg byte a - //SEG344 [163] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG368 [174] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 cmp #COLLISION_NONE bne breturn_from_b14 jmp b11 - //SEG345 play_move_leftright::@11 + //SEG369 play_move_leftright::@11 b11: - //SEG346 [164] (byte) current_xpos#4 ← -- (byte) current_xpos#1 -- vbuz1=_dec_vbuz1 + //SEG370 [175] (byte) current_xpos#4 ← -- (byte) current_xpos#1 -- vbuz1=_dec_vbuz1 dec current_xpos jmp breturn_from_b11 } -//SEG347 play_move_down +//SEG371 play_move_down play_move_down: { - //SEG348 [165] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 -- vbuz1=_inc_vbuz1 + //SEG372 [176] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 -- vbuz1=_inc_vbuz1 inc current_movedown_counter - //SEG349 [166] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 -- vbuaa_neq_vbuc1_then_la1 + //SEG373 [177] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 -- vbuaa_neq_vbuc1_then_la1 cmp #KEY_SPACE bne b1_from_play_move_down - //SEG350 [167] phi from play_move_down to play_move_down::@8 [phi:play_move_down->play_move_down::@8] + //SEG374 [178] phi from play_move_down to play_move_down::@8 [phi:play_move_down->play_move_down::@8] b8_from_play_move_down: jmp b8 - //SEG351 play_move_down::@8 + //SEG375 play_move_down::@8 b8: - //SEG352 [168] phi from play_move_down::@8 to play_move_down::@1 [phi:play_move_down::@8->play_move_down::@1] + //SEG376 [179] phi from play_move_down::@8 to play_move_down::@1 [phi:play_move_down::@8->play_move_down::@1] b1_from_b8: - //SEG353 [168] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@8->play_move_down::@1#0] -- vbuxx=vbuc1 + //SEG377 [179] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@8->play_move_down::@1#0] -- vbuxx=vbuc1 ldx #1 jmp b1 - //SEG354 [168] phi from play_move_down to play_move_down::@1 [phi:play_move_down->play_move_down::@1] + //SEG378 [179] phi from play_move_down to play_move_down::@1 [phi:play_move_down->play_move_down::@1] b1_from_play_move_down: - //SEG355 [168] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down->play_move_down::@1#0] -- vbuxx=vbuc1 + //SEG379 [179] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down->play_move_down::@1#0] -- vbuxx=vbuc1 ldx #0 jmp b1 - //SEG356 play_move_down::@1 + //SEG380 play_move_down::@1 b1: - //SEG357 [169] call keyboard_event_pressed - //SEG358 [254] phi from play_move_down::@1 to keyboard_event_pressed [phi:play_move_down::@1->keyboard_event_pressed] + //SEG381 [180] call keyboard_event_pressed + //SEG382 [265] phi from play_move_down::@1 to keyboard_event_pressed [phi:play_move_down::@1->keyboard_event_pressed] keyboard_event_pressed_from_b1: - //SEG359 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_SPACE#0 [phi:play_move_down::@1->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG383 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_SPACE#0 [phi:play_move_down::@1->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_SPACE sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG360 [170] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 + //SEG384 [181] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#12 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a jmp b17 - //SEG361 play_move_down::@17 + //SEG385 play_move_down::@17 b17: - //SEG362 [171] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 + //SEG386 [182] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 // (byte~) play_move_down::$2 = (byte) keyboard_event_pressed::return#12 // register copy reg byte a - //SEG363 [172] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 -- vbuaa_eq_0_then_la1 + //SEG387 [183] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 -- vbuaa_eq_0_then_la1 cmp #0 beq b2_from_b17 jmp b9 - //SEG364 play_move_down::@9 + //SEG388 play_move_down::@9 b9: - //SEG365 [173] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 -- vbuz1_lt_vbuc1_then_la1 + //SEG389 [184] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 -- vbuz1_lt_vbuc1_then_la1 lda current_movedown_counter cmp #current_movedown_fast bcc b2_from_b9 jmp b10 - //SEG366 play_move_down::@10 + //SEG390 play_move_down::@10 b10: - //SEG367 [174] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 -- vbuxx=_inc_vbuxx + //SEG391 [185] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 -- vbuxx=_inc_vbuxx inx - //SEG368 [175] phi from play_move_down::@10 play_move_down::@17 play_move_down::@9 to play_move_down::@2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2] + //SEG392 [186] phi from play_move_down::@10 play_move_down::@17 play_move_down::@9 to play_move_down::@2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2] b2_from_b10: b2_from_b17: b2_from_b9: - //SEG369 [175] phi (byte) play_move_down::movedown#7 = (byte) play_move_down::movedown#2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2#0] -- register_copy + //SEG393 [186] phi (byte) play_move_down::movedown#7 = (byte) play_move_down::movedown#2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2#0] -- register_copy jmp b2 - //SEG370 play_move_down::@2 + //SEG394 play_move_down::@2 b2: - //SEG371 [176] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 -- vbuz1_lt_vbuc1_then_la1 + //SEG395 [187] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 -- vbuz1_lt_vbuc1_then_la1 lda current_movedown_counter cmp #current_movedown_slow bcc b4_from_b2 jmp b11 - //SEG372 play_move_down::@11 + //SEG396 play_move_down::@11 b11: - //SEG373 [177] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 -- vbuxx=_inc_vbuxx + //SEG397 [188] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 -- vbuxx=_inc_vbuxx inx - //SEG374 [178] phi from play_move_down::@11 play_move_down::@2 to play_move_down::@4 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4] + //SEG398 [189] phi from play_move_down::@11 play_move_down::@2 to play_move_down::@4 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4] b4_from_b11: b4_from_b2: - //SEG375 [178] phi (byte) play_move_down::movedown#6 = (byte) play_move_down::movedown#3 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4#0] -- register_copy + //SEG399 [189] phi (byte) play_move_down::movedown#6 = (byte) play_move_down::movedown#3 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4#0] -- register_copy jmp b4 - //SEG376 play_move_down::@4 + //SEG400 play_move_down::@4 b4: - //SEG377 [179] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return -- vbuxx_eq_0_then_la1 + //SEG401 [190] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return -- vbuxx_eq_0_then_la1 cpx #0 beq breturn_from_b4 jmp b12 - //SEG378 play_move_down::@12 + //SEG402 play_move_down::@12 b12: - //SEG379 [180] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=vbuz1_plus_1 + //SEG403 [191] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=vbuz1_plus_1 ldy current_ypos iny - //SEG380 [181] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 + //SEG404 [192] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 lda current_xpos sta play_collision.xpos - //SEG381 [182] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 -- vbuxx=vbuz1 + //SEG405 [193] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 -- vbuxx=vbuz1 ldx current_orientation - //SEG382 [183] (byte*~) current_piece#73 ← (byte*) current_piece#16 -- pbuz1=pbuz2 + //SEG406 [194] (byte*~) current_piece#73 ← (byte*) current_piece#16 -- pbuz1=pbuz2 lda current_piece sta current_piece_73 lda current_piece+1 sta current_piece_73+1 - //SEG383 [184] call play_collision - //SEG384 [119] phi from play_move_down::@12 to play_collision [phi:play_move_down::@12->play_collision] + //SEG407 [195] call play_collision + //SEG408 [130] phi from play_move_down::@12 to play_collision [phi:play_move_down::@12->play_collision] play_collision_from_b12: - //SEG385 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#0 [phi:play_move_down::@12->play_collision#0] -- register_copy - //SEG386 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#0 [phi:play_move_down::@12->play_collision#1] -- register_copy - //SEG387 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#0 [phi:play_move_down::@12->play_collision#2] -- register_copy - //SEG388 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#73 [phi:play_move_down::@12->play_collision#3] -- register_copy + //SEG409 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#0 [phi:play_move_down::@12->play_collision#0] -- register_copy + //SEG410 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#0 [phi:play_move_down::@12->play_collision#1] -- register_copy + //SEG411 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#0 [phi:play_move_down::@12->play_collision#2] -- register_copy + //SEG412 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#73 [phi:play_move_down::@12->play_collision#3] -- register_copy jsr play_collision - //SEG389 [185] (byte) play_collision::return#0 ← (byte) play_collision::return#14 + //SEG413 [196] (byte) play_collision::return#0 ← (byte) play_collision::return#14 // (byte) play_collision::return#0 = (byte) play_collision::return#14 // register copy reg byte a jmp b18 - //SEG390 play_move_down::@18 + //SEG414 play_move_down::@18 b18: - //SEG391 [186] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 + //SEG415 [197] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 // (byte~) play_move_down::$12 = (byte) play_collision::return#0 // register copy reg byte a - //SEG392 [187] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 -- vbuaa_eq_vbuc1_then_la1 + //SEG416 [198] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 -- vbuaa_eq_vbuc1_then_la1 cmp #COLLISION_NONE beq b6 - //SEG393 [188] phi from play_move_down::@18 to play_move_down::@13 [phi:play_move_down::@18->play_move_down::@13] + //SEG417 [199] phi from play_move_down::@18 to play_move_down::@13 [phi:play_move_down::@18->play_move_down::@13] b13_from_b18: jmp b13 - //SEG394 play_move_down::@13 + //SEG418 play_move_down::@13 b13: - //SEG395 [189] call play_lock_current + //SEG419 [200] call play_lock_current jsr play_lock_current - //SEG396 [190] phi from play_move_down::@13 to play_move_down::@19 [phi:play_move_down::@13->play_move_down::@19] + //SEG420 [201] phi from play_move_down::@13 to play_move_down::@19 [phi:play_move_down::@13->play_move_down::@19] b19_from_b13: jmp b19 - //SEG397 play_move_down::@19 + //SEG421 play_move_down::@19 b19: - //SEG398 [191] call play_remove_lines - //SEG399 [215] phi from play_move_down::@19 to play_remove_lines [phi:play_move_down::@19->play_remove_lines] + //SEG422 [202] call play_remove_lines + //SEG423 [226] phi from play_move_down::@19 to play_remove_lines [phi:play_move_down::@19->play_remove_lines] play_remove_lines_from_b19: jsr play_remove_lines - //SEG400 [192] phi from play_move_down::@19 to play_move_down::@20 [phi:play_move_down::@19->play_move_down::@20] + //SEG424 [203] phi from play_move_down::@19 to play_move_down::@20 [phi:play_move_down::@19->play_move_down::@20] b20_from_b19: jmp b20 - //SEG401 play_move_down::@20 + //SEG425 play_move_down::@20 b20: - //SEG402 [193] call play_spawn_current - //SEG403 [199] phi from play_move_down::@20 to play_spawn_current [phi:play_move_down::@20->play_spawn_current] + //SEG426 [204] call play_spawn_current + //SEG427 [210] phi from play_move_down::@20 to play_spawn_current [phi:play_move_down::@20->play_spawn_current] play_spawn_current_from_b20: jsr play_spawn_current - //SEG404 [194] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG428 [205] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 ldy play_spawn_current._3 lda PIECES,y sta current_piece lda PIECES+1,y sta current_piece+1 - //SEG405 [195] phi from play_move_down::@20 to play_move_down::@7 [phi:play_move_down::@20->play_move_down::@7] + //SEG429 [206] phi from play_move_down::@20 to play_move_down::@7 [phi:play_move_down::@20->play_move_down::@7] b7_from_b20: - //SEG406 [195] phi (byte) current_piece_char#20 = (byte) current_piece_char#12 [phi:play_move_down::@20->play_move_down::@7#0] -- register_copy - //SEG407 [195] phi (byte) current_xpos#33 = (byte) current_xpos#23 [phi:play_move_down::@20->play_move_down::@7#1] -- register_copy - //SEG408 [195] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#16 [phi:play_move_down::@20->play_move_down::@7#2] -- register_copy - //SEG409 [195] phi (byte) current_orientation#29 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@20->play_move_down::@7#3] -- vbuz1=vbuc1 + //SEG430 [206] phi (byte) current_piece_char#20 = (byte) current_piece_char#12 [phi:play_move_down::@20->play_move_down::@7#0] -- register_copy + //SEG431 [206] phi (byte) current_xpos#33 = (byte) current_xpos#23 [phi:play_move_down::@20->play_move_down::@7#1] -- register_copy + //SEG432 [206] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#16 [phi:play_move_down::@20->play_move_down::@7#2] -- register_copy + //SEG433 [206] phi (byte) current_orientation#29 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@20->play_move_down::@7#3] -- vbuz1=vbuc1 lda #0 sta current_orientation - //SEG410 [195] phi (byte*) current_piece#20 = (byte*~) current_piece#77 [phi:play_move_down::@20->play_move_down::@7#4] -- register_copy - //SEG411 [195] phi (byte) current_ypos#29 = (byte) current_ypos#18 [phi:play_move_down::@20->play_move_down::@7#5] -- register_copy + //SEG434 [206] phi (byte*) current_piece#20 = (byte*~) current_piece#77 [phi:play_move_down::@20->play_move_down::@7#4] -- register_copy + //SEG435 [206] phi (byte) current_ypos#29 = (byte) current_ypos#18 [phi:play_move_down::@20->play_move_down::@7#5] -- register_copy jmp b7 - //SEG412 play_move_down::@7 + //SEG436 play_move_down::@7 b7: - //SEG413 [196] phi from play_move_down::@7 to play_move_down::@return [phi:play_move_down::@7->play_move_down::@return] + //SEG437 [207] phi from play_move_down::@7 to play_move_down::@return [phi:play_move_down::@7->play_move_down::@return] breturn_from_b7: - //SEG414 [196] phi (byte) current_piece_char#1 = (byte) current_piece_char#20 [phi:play_move_down::@7->play_move_down::@return#0] -- register_copy - //SEG415 [196] phi (byte) current_xpos#1 = (byte) current_xpos#33 [phi:play_move_down::@7->play_move_down::@return#1] -- register_copy - //SEG416 [196] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#26 [phi:play_move_down::@7->play_move_down::@return#2] -- register_copy - //SEG417 [196] phi (byte) current_orientation#14 = (byte) current_orientation#29 [phi:play_move_down::@7->play_move_down::@return#3] -- register_copy - //SEG418 [196] phi (byte*) current_piece#10 = (byte*) current_piece#20 [phi:play_move_down::@7->play_move_down::@return#4] -- register_copy - //SEG419 [196] phi (byte) current_ypos#13 = (byte) current_ypos#29 [phi:play_move_down::@7->play_move_down::@return#5] -- register_copy - //SEG420 [196] phi (byte) current_movedown_counter#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@7->play_move_down::@return#6] -- vbuz1=vbuc1 + //SEG438 [207] phi (byte) current_piece_char#1 = (byte) current_piece_char#20 [phi:play_move_down::@7->play_move_down::@return#0] -- register_copy + //SEG439 [207] phi (byte) current_xpos#1 = (byte) current_xpos#33 [phi:play_move_down::@7->play_move_down::@return#1] -- register_copy + //SEG440 [207] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#26 [phi:play_move_down::@7->play_move_down::@return#2] -- register_copy + //SEG441 [207] phi (byte) current_orientation#14 = (byte) current_orientation#29 [phi:play_move_down::@7->play_move_down::@return#3] -- register_copy + //SEG442 [207] phi (byte*) current_piece#10 = (byte*) current_piece#20 [phi:play_move_down::@7->play_move_down::@return#4] -- register_copy + //SEG443 [207] phi (byte) current_ypos#13 = (byte) current_ypos#29 [phi:play_move_down::@7->play_move_down::@return#5] -- register_copy + //SEG444 [207] phi (byte) current_movedown_counter#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@7->play_move_down::@return#6] -- vbuz1=vbuc1 lda #0 sta current_movedown_counter - //SEG421 [196] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@7->play_move_down::@return#7] -- vbuxx=vbuc1 + //SEG445 [207] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@7->play_move_down::@return#7] -- vbuxx=vbuc1 ldx #1 jmp breturn - //SEG422 [196] phi from play_move_down::@4 to play_move_down::@return [phi:play_move_down::@4->play_move_down::@return] + //SEG446 [207] phi from play_move_down::@4 to play_move_down::@return [phi:play_move_down::@4->play_move_down::@return] breturn_from_b4: - //SEG423 [196] phi (byte) current_piece_char#1 = (byte) current_piece_char#15 [phi:play_move_down::@4->play_move_down::@return#0] -- register_copy - //SEG424 [196] phi (byte) current_xpos#1 = (byte) current_xpos#10 [phi:play_move_down::@4->play_move_down::@return#1] -- register_copy - //SEG425 [196] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#20 [phi:play_move_down::@4->play_move_down::@return#2] -- register_copy - //SEG426 [196] phi (byte) current_orientation#14 = (byte) current_orientation#10 [phi:play_move_down::@4->play_move_down::@return#3] -- register_copy - //SEG427 [196] phi (byte*) current_piece#10 = (byte*) current_piece#16 [phi:play_move_down::@4->play_move_down::@return#4] -- register_copy - //SEG428 [196] phi (byte) current_ypos#13 = (byte) current_ypos#21 [phi:play_move_down::@4->play_move_down::@return#5] -- register_copy - //SEG429 [196] phi (byte) current_movedown_counter#10 = (byte) current_movedown_counter#1 [phi:play_move_down::@4->play_move_down::@return#6] -- register_copy - //SEG430 [196] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@4->play_move_down::@return#7] -- vbuxx=vbuc1 + //SEG447 [207] phi (byte) current_piece_char#1 = (byte) current_piece_char#15 [phi:play_move_down::@4->play_move_down::@return#0] -- register_copy + //SEG448 [207] phi (byte) current_xpos#1 = (byte) current_xpos#10 [phi:play_move_down::@4->play_move_down::@return#1] -- register_copy + //SEG449 [207] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#20 [phi:play_move_down::@4->play_move_down::@return#2] -- register_copy + //SEG450 [207] phi (byte) current_orientation#14 = (byte) current_orientation#10 [phi:play_move_down::@4->play_move_down::@return#3] -- register_copy + //SEG451 [207] phi (byte*) current_piece#10 = (byte*) current_piece#16 [phi:play_move_down::@4->play_move_down::@return#4] -- register_copy + //SEG452 [207] phi (byte) current_ypos#13 = (byte) current_ypos#21 [phi:play_move_down::@4->play_move_down::@return#5] -- register_copy + //SEG453 [207] phi (byte) current_movedown_counter#10 = (byte) current_movedown_counter#1 [phi:play_move_down::@4->play_move_down::@return#6] -- register_copy + //SEG454 [207] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@4->play_move_down::@return#7] -- vbuxx=vbuc1 ldx #0 jmp breturn - //SEG431 play_move_down::@return + //SEG455 play_move_down::@return breturn: - //SEG432 [197] return + //SEG456 [208] return rts - //SEG433 play_move_down::@6 + //SEG457 play_move_down::@6 b6: - //SEG434 [198] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 -- vbuz1=_inc_vbuz1 + //SEG458 [209] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 -- vbuz1=_inc_vbuz1 inc current_ypos - //SEG435 [195] phi from play_move_down::@6 to play_move_down::@7 [phi:play_move_down::@6->play_move_down::@7] + //SEG459 [206] phi from play_move_down::@6 to play_move_down::@7 [phi:play_move_down::@6->play_move_down::@7] b7_from_b6: - //SEG436 [195] phi (byte) current_piece_char#20 = (byte) current_piece_char#15 [phi:play_move_down::@6->play_move_down::@7#0] -- register_copy - //SEG437 [195] phi (byte) current_xpos#33 = (byte) current_xpos#10 [phi:play_move_down::@6->play_move_down::@7#1] -- register_copy - //SEG438 [195] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#20 [phi:play_move_down::@6->play_move_down::@7#2] -- register_copy - //SEG439 [195] phi (byte) current_orientation#29 = (byte) current_orientation#10 [phi:play_move_down::@6->play_move_down::@7#3] -- register_copy - //SEG440 [195] phi (byte*) current_piece#20 = (byte*) current_piece#16 [phi:play_move_down::@6->play_move_down::@7#4] -- register_copy - //SEG441 [195] phi (byte) current_ypos#29 = (byte) current_ypos#0 [phi:play_move_down::@6->play_move_down::@7#5] -- register_copy + //SEG460 [206] phi (byte) current_piece_char#20 = (byte) current_piece_char#15 [phi:play_move_down::@6->play_move_down::@7#0] -- register_copy + //SEG461 [206] phi (byte) current_xpos#33 = (byte) current_xpos#10 [phi:play_move_down::@6->play_move_down::@7#1] -- register_copy + //SEG462 [206] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#20 [phi:play_move_down::@6->play_move_down::@7#2] -- register_copy + //SEG463 [206] phi (byte) current_orientation#29 = (byte) current_orientation#10 [phi:play_move_down::@6->play_move_down::@7#3] -- register_copy + //SEG464 [206] phi (byte*) current_piece#20 = (byte*) current_piece#16 [phi:play_move_down::@6->play_move_down::@7#4] -- register_copy + //SEG465 [206] phi (byte) current_ypos#29 = (byte) current_ypos#0 [phi:play_move_down::@6->play_move_down::@7#5] -- register_copy jmp b7 } -//SEG442 play_spawn_current +//SEG466 play_spawn_current play_spawn_current: { - .label _3 = 2 - //SEG443 [200] phi from play_spawn_current to play_spawn_current::@1 [phi:play_spawn_current->play_spawn_current::@1] + .label _3 = 4 + //SEG467 [211] phi from play_spawn_current to play_spawn_current::@1 [phi:play_spawn_current->play_spawn_current::@1] b1_from_play_spawn_current: - //SEG444 [200] phi (byte) play_spawn_current::piece_idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 7 [phi:play_spawn_current->play_spawn_current::@1#0] -- vbuxx=vbuc1 + //SEG468 [211] phi (byte) play_spawn_current::piece_idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 7 [phi:play_spawn_current->play_spawn_current::@1#0] -- vbuxx=vbuc1 ldx #7 jmp b1 - //SEG445 play_spawn_current::@1 + //SEG469 play_spawn_current::@1 b1: - //SEG446 [201] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 -- vbuxx_eq_vbuc1_then_la1 + //SEG470 [212] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 -- vbuxx_eq_vbuc1_then_la1 cpx #7 beq b2_from_b1 jmp b3 - //SEG447 play_spawn_current::@3 + //SEG471 play_spawn_current::@3 b3: - //SEG448 [202] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 + //SEG472 [213] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 txa asl sta _3 - //SEG449 [203] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuz1=pptc1_derefidx_vbuz2_plus_0 + //SEG473 [214] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuz1=pptc1_derefidx_vbuz2_plus_0 ldy _3 lda PIECES,y sta current_piece_gfx lda PIECES+1,y sta current_piece_gfx+1 - //SEG450 [204] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx + //SEG474 [215] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx lda PIECES_START_X,x sta current_xpos - //SEG451 [205] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx + //SEG475 [216] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx lda PIECES_START_Y,x sta current_ypos - //SEG452 [206] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx + //SEG476 [217] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx lda PIECES_CHARS,x sta current_piece_char jmp breturn - //SEG453 play_spawn_current::@return + //SEG477 play_spawn_current::@return breturn: - //SEG454 [207] return + //SEG478 [218] return rts - //SEG455 [208] phi from play_spawn_current::@1 to play_spawn_current::@2 [phi:play_spawn_current::@1->play_spawn_current::@2] + //SEG479 [219] phi from play_spawn_current::@1 to play_spawn_current::@2 [phi:play_spawn_current::@1->play_spawn_current::@2] b2_from_b1: jmp b2 - //SEG456 play_spawn_current::@2 + //SEG480 play_spawn_current::@2 b2: - //SEG457 [209] call sid_rnd + //SEG481 [220] call sid_rnd jsr sid_rnd - //SEG458 [210] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 + //SEG482 [221] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 // (byte) sid_rnd::return#2 = (byte) sid_rnd::return#0 // register copy reg byte a jmp b7 - //SEG459 play_spawn_current::@7 + //SEG483 play_spawn_current::@7 b7: - //SEG460 [211] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 + //SEG484 [222] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 // (byte~) play_spawn_current::$1 = (byte) sid_rnd::return#2 // register copy reg byte a - //SEG461 [212] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuxx=vbuaa_band_vbuc1 + //SEG485 [223] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuxx=vbuaa_band_vbuc1 and #7 tax - //SEG462 [200] phi from play_spawn_current::@7 to play_spawn_current::@1 [phi:play_spawn_current::@7->play_spawn_current::@1] + //SEG486 [211] phi from play_spawn_current::@7 to play_spawn_current::@1 [phi:play_spawn_current::@7->play_spawn_current::@1] b1_from_b7: - //SEG463 [200] phi (byte) play_spawn_current::piece_idx#2 = (byte) play_spawn_current::piece_idx#1 [phi:play_spawn_current::@7->play_spawn_current::@1#0] -- register_copy + //SEG487 [211] phi (byte) play_spawn_current::piece_idx#2 = (byte) play_spawn_current::piece_idx#1 [phi:play_spawn_current::@7->play_spawn_current::@1#0] -- register_copy jmp b1 } -//SEG464 sid_rnd +//SEG488 sid_rnd sid_rnd: { - //SEG465 [213] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) -- vbuaa=_deref_pbuc1 + //SEG489 [224] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) -- vbuaa=_deref_pbuc1 lda SID_VOICE3_OSC jmp breturn - //SEG466 sid_rnd::@return + //SEG490 sid_rnd::@return breturn: - //SEG467 [214] return + //SEG491 [225] return rts } -//SEG468 play_remove_lines +//SEG492 play_remove_lines play_remove_lines: { - .label c = 7 - .label x = 3 - .label y = 2 + .label c = 9 + .label x = 5 + .label y = 4 .label full = 6 - //SEG469 [216] phi from play_remove_lines to play_remove_lines::@1 [phi:play_remove_lines->play_remove_lines::@1] + //SEG493 [227] phi from play_remove_lines to play_remove_lines::@1 [phi:play_remove_lines->play_remove_lines::@1] b1_from_play_remove_lines: - //SEG470 [216] phi (byte) play_remove_lines::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines->play_remove_lines::@1#0] -- vbuz1=vbuc1 + //SEG494 [227] phi (byte) play_remove_lines::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines->play_remove_lines::@1#0] -- vbuz1=vbuc1 lda #0 sta y - //SEG471 [216] phi (byte) play_remove_lines::w#12 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#1] -- vbuxx=vbuc1 + //SEG495 [227] phi (byte) play_remove_lines::w#12 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#1] -- vbuxx=vbuc1 ldx #PLAYFIELD_LINES*PLAYFIELD_COLS-1 - //SEG472 [216] phi (byte) play_remove_lines::r#3 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#2] -- vbuyy=vbuc1 + //SEG496 [227] phi (byte) play_remove_lines::r#3 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#2] -- vbuyy=vbuc1 ldy #PLAYFIELD_LINES*PLAYFIELD_COLS-1 jmp b1 - //SEG473 [216] phi from play_remove_lines::@4 to play_remove_lines::@1 [phi:play_remove_lines::@4->play_remove_lines::@1] + //SEG497 [227] phi from play_remove_lines::@4 to play_remove_lines::@1 [phi:play_remove_lines::@4->play_remove_lines::@1] b1_from_b4: - //SEG474 [216] phi (byte) play_remove_lines::y#8 = (byte) play_remove_lines::y#1 [phi:play_remove_lines::@4->play_remove_lines::@1#0] -- register_copy - //SEG475 [216] phi (byte) play_remove_lines::w#12 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4->play_remove_lines::@1#1] -- register_copy - //SEG476 [216] phi (byte) play_remove_lines::r#3 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@4->play_remove_lines::@1#2] -- register_copy + //SEG498 [227] phi (byte) play_remove_lines::y#8 = (byte) play_remove_lines::y#1 [phi:play_remove_lines::@4->play_remove_lines::@1#0] -- register_copy + //SEG499 [227] phi (byte) play_remove_lines::w#12 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4->play_remove_lines::@1#1] -- register_copy + //SEG500 [227] phi (byte) play_remove_lines::r#3 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@4->play_remove_lines::@1#2] -- register_copy jmp b1 - //SEG477 play_remove_lines::@1 + //SEG501 play_remove_lines::@1 b1: - //SEG478 [217] phi from play_remove_lines::@1 to play_remove_lines::@2 [phi:play_remove_lines::@1->play_remove_lines::@2] + //SEG502 [228] phi from play_remove_lines::@1 to play_remove_lines::@2 [phi:play_remove_lines::@1->play_remove_lines::@2] b2_from_b1: - //SEG479 [217] phi (byte) play_remove_lines::full#4 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines::@1->play_remove_lines::@2#0] -- vbuz1=vbuc1 + //SEG503 [228] phi (byte) play_remove_lines::full#4 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines::@1->play_remove_lines::@2#0] -- vbuz1=vbuc1 lda #1 sta full - //SEG480 [217] phi (byte) play_remove_lines::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@1->play_remove_lines::@2#1] -- vbuz1=vbuc1 + //SEG504 [228] phi (byte) play_remove_lines::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@1->play_remove_lines::@2#1] -- vbuz1=vbuc1 lda #0 sta x - //SEG481 [217] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#12 [phi:play_remove_lines::@1->play_remove_lines::@2#2] -- register_copy - //SEG482 [217] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#3 [phi:play_remove_lines::@1->play_remove_lines::@2#3] -- register_copy + //SEG505 [228] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#12 [phi:play_remove_lines::@1->play_remove_lines::@2#2] -- register_copy + //SEG506 [228] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#3 [phi:play_remove_lines::@1->play_remove_lines::@2#3] -- register_copy jmp b2 - //SEG483 [217] phi from play_remove_lines::@3 to play_remove_lines::@2 [phi:play_remove_lines::@3->play_remove_lines::@2] + //SEG507 [228] phi from play_remove_lines::@3 to play_remove_lines::@2 [phi:play_remove_lines::@3->play_remove_lines::@2] b2_from_b3: - //SEG484 [217] phi (byte) play_remove_lines::full#4 = (byte) play_remove_lines::full#2 [phi:play_remove_lines::@3->play_remove_lines::@2#0] -- register_copy - //SEG485 [217] phi (byte) play_remove_lines::x#2 = (byte) play_remove_lines::x#1 [phi:play_remove_lines::@3->play_remove_lines::@2#1] -- register_copy - //SEG486 [217] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#1 [phi:play_remove_lines::@3->play_remove_lines::@2#2] -- register_copy - //SEG487 [217] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@3->play_remove_lines::@2#3] -- register_copy + //SEG508 [228] phi (byte) play_remove_lines::full#4 = (byte) play_remove_lines::full#2 [phi:play_remove_lines::@3->play_remove_lines::@2#0] -- register_copy + //SEG509 [228] phi (byte) play_remove_lines::x#2 = (byte) play_remove_lines::x#1 [phi:play_remove_lines::@3->play_remove_lines::@2#1] -- register_copy + //SEG510 [228] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#1 [phi:play_remove_lines::@3->play_remove_lines::@2#2] -- register_copy + //SEG511 [228] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@3->play_remove_lines::@2#3] -- register_copy jmp b2 - //SEG488 play_remove_lines::@2 + //SEG512 play_remove_lines::@2 b2: - //SEG489 [218] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) -- vbuz1=pbuc1_derefidx_vbuyy + //SEG513 [229] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) -- vbuz1=pbuc1_derefidx_vbuyy lda playfield,y sta c - //SEG490 [219] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 -- vbuyy=_dec_vbuyy + //SEG514 [230] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 -- vbuyy=_dec_vbuyy dey - //SEG491 [220] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 -- vbuz1_neq_0_then_la1 + //SEG515 [231] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 -- vbuz1_neq_0_then_la1 lda c cmp #0 bne b17_from_b2 - //SEG492 [221] phi from play_remove_lines::@2 to play_remove_lines::@3 [phi:play_remove_lines::@2->play_remove_lines::@3] + //SEG516 [232] phi from play_remove_lines::@2 to play_remove_lines::@3 [phi:play_remove_lines::@2->play_remove_lines::@3] b3_from_b2: - //SEG493 [221] phi (byte) play_remove_lines::full#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@2->play_remove_lines::@3#0] -- vbuz1=vbuc1 + //SEG517 [232] phi (byte) play_remove_lines::full#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@2->play_remove_lines::@3#0] -- vbuz1=vbuc1 lda #0 sta full jmp b3 - //SEG494 play_remove_lines::@3 + //SEG518 play_remove_lines::@3 b3: - //SEG495 [222] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 -- pbuc1_derefidx_vbuxx=vbuz1 + //SEG519 [233] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 -- pbuc1_derefidx_vbuxx=vbuz1 lda c sta playfield,x - //SEG496 [223] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 -- vbuxx=_dec_vbuxx + //SEG520 [234] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 -- vbuxx=_dec_vbuxx dex - //SEG497 [224] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 -- vbuz1=_inc_vbuz1 + //SEG521 [235] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 -- vbuz1=_inc_vbuz1 inc x - //SEG498 [225] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 -- vbuz1_neq_vbuc1_then_la1 + //SEG522 [236] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 -- vbuz1_neq_vbuc1_then_la1 lda x cmp #PLAYFIELD_COLS-1+1 bne b2_from_b3 jmp b9 - //SEG499 play_remove_lines::@9 + //SEG523 play_remove_lines::@9 b9: - //SEG500 [226] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 -- vbuz1_neq_vbuc1_then_la1 + //SEG524 [237] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 -- vbuz1_neq_vbuc1_then_la1 lda full cmp #1 bne b4_from_b9 jmp b10 - //SEG501 play_remove_lines::@10 + //SEG525 play_remove_lines::@10 b10: - //SEG502 [227] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuxx=vbuxx_plus_vbuc1 + //SEG526 [238] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuxx=vbuxx_plus_vbuc1 txa clc adc #PLAYFIELD_COLS tax - //SEG503 [228] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] + //SEG527 [239] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] b4_from_b10: b4_from_b9: - //SEG504 [228] phi (byte) play_remove_lines::w#11 = (byte) play_remove_lines::w#2 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4#0] -- register_copy + //SEG528 [239] phi (byte) play_remove_lines::w#11 = (byte) play_remove_lines::w#2 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4#0] -- register_copy jmp b4 - //SEG505 play_remove_lines::@4 + //SEG529 play_remove_lines::@4 b4: - //SEG506 [229] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 -- vbuz1=_inc_vbuz1 + //SEG530 [240] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 -- vbuz1=_inc_vbuz1 inc y - //SEG507 [230] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG531 [241] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 -- vbuz1_neq_vbuc1_then_la1 lda y cmp #PLAYFIELD_LINES-1+1 bne b1_from_b4 - //SEG508 [231] phi from play_remove_lines::@4 play_remove_lines::@6 to play_remove_lines::@5 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5] + //SEG532 [242] phi from play_remove_lines::@4 play_remove_lines::@6 to play_remove_lines::@5 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5] b5_from_b4: b5_from_b6: - //SEG509 [231] phi (byte) play_remove_lines::w#6 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5#0] -- register_copy + //SEG533 [242] phi (byte) play_remove_lines::w#6 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5#0] -- register_copy jmp b5 - //SEG510 play_remove_lines::@5 + //SEG534 play_remove_lines::@5 b5: - //SEG511 [232] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 -- vbuxx_neq_vbuc1_then_la1 + //SEG535 [243] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 -- vbuxx_neq_vbuc1_then_la1 cpx #$ff bne b6 jmp breturn - //SEG512 play_remove_lines::@return + //SEG536 play_remove_lines::@return breturn: - //SEG513 [233] return + //SEG537 [244] return rts - //SEG514 play_remove_lines::@6 + //SEG538 play_remove_lines::@6 b6: - //SEG515 [234] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuc1_derefidx_vbuxx=vbuc2 + //SEG539 [245] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuc1_derefidx_vbuxx=vbuc2 lda #0 sta playfield,x - //SEG516 [235] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 -- vbuxx=_dec_vbuxx + //SEG540 [246] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 -- vbuxx=_dec_vbuxx dex jmp b5_from_b6 - //SEG517 [236] phi from play_remove_lines::@2 to play_remove_lines::@17 [phi:play_remove_lines::@2->play_remove_lines::@17] + //SEG541 [247] phi from play_remove_lines::@2 to play_remove_lines::@17 [phi:play_remove_lines::@2->play_remove_lines::@17] b17_from_b2: jmp b17 - //SEG518 play_remove_lines::@17 + //SEG542 play_remove_lines::@17 b17: - //SEG519 [221] phi from play_remove_lines::@17 to play_remove_lines::@3 [phi:play_remove_lines::@17->play_remove_lines::@3] + //SEG543 [232] phi from play_remove_lines::@17 to play_remove_lines::@3 [phi:play_remove_lines::@17->play_remove_lines::@3] b3_from_b17: - //SEG520 [221] phi (byte) play_remove_lines::full#2 = (byte) play_remove_lines::full#4 [phi:play_remove_lines::@17->play_remove_lines::@3#0] -- register_copy + //SEG544 [232] phi (byte) play_remove_lines::full#2 = (byte) play_remove_lines::full#4 [phi:play_remove_lines::@17->play_remove_lines::@3#0] -- register_copy jmp b3 } -//SEG521 play_lock_current +//SEG545 play_lock_current play_lock_current: { - .label ypos2 = $b - .label playfield_line = 4 + .label ypos2 = $e + .label playfield_line = 7 .label col = 6 - .label i = 7 - .label l = 2 - .label i_2 = 3 - .label i_3 = 3 - .label i_7 = 3 - .label i_9 = 3 - //SEG522 [237] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_rol_1 + .label i = 9 + .label l = 4 + .label i_2 = 5 + .label i_3 = 5 + .label i_7 = 5 + .label i_9 = 5 + //SEG546 [248] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_rol_1 asl ypos2 - //SEG523 [238] phi from play_lock_current to play_lock_current::@1 [phi:play_lock_current->play_lock_current::@1] + //SEG547 [249] phi from play_lock_current to play_lock_current::@1 [phi:play_lock_current->play_lock_current::@1] b1_from_play_lock_current: - //SEG524 [238] phi (byte) play_lock_current::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#0] -- vbuz1=vbuc1 + //SEG548 [249] phi (byte) play_lock_current::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG525 [238] phi (byte) play_lock_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#1] -- vbuz1=vbuc1 + //SEG549 [249] phi (byte) play_lock_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#1] -- vbuz1=vbuc1 lda #0 sta i_3 - //SEG526 [238] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#0 [phi:play_lock_current->play_lock_current::@1#2] -- register_copy + //SEG550 [249] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#0 [phi:play_lock_current->play_lock_current::@1#2] -- register_copy jmp b1 - //SEG527 play_lock_current::@1 + //SEG551 play_lock_current::@1 b1: - //SEG528 [239] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG552 [250] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 ldy ypos2 lda playfield_lines,y sta playfield_line lda playfield_lines+1,y sta playfield_line+1 - //SEG529 [240] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 + //SEG553 [251] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 lda current_xpos sta col - //SEG530 [241] phi from play_lock_current::@1 to play_lock_current::@2 [phi:play_lock_current::@1->play_lock_current::@2] + //SEG554 [252] phi from play_lock_current::@1 to play_lock_current::@2 [phi:play_lock_current::@1->play_lock_current::@2] b2_from_b1: - //SEG531 [241] phi (byte) play_lock_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current::@1->play_lock_current::@2#0] -- vbuxx=vbuc1 + //SEG555 [252] phi (byte) play_lock_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current::@1->play_lock_current::@2#0] -- vbuxx=vbuc1 ldx #0 - //SEG532 [241] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#0 [phi:play_lock_current::@1->play_lock_current::@2#1] -- register_copy - //SEG533 [241] phi (byte) play_lock_current::i#2 = (byte) play_lock_current::i#3 [phi:play_lock_current::@1->play_lock_current::@2#2] -- register_copy + //SEG556 [252] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#0 [phi:play_lock_current::@1->play_lock_current::@2#1] -- register_copy + //SEG557 [252] phi (byte) play_lock_current::i#2 = (byte) play_lock_current::i#3 [phi:play_lock_current::@1->play_lock_current::@2#2] -- register_copy jmp b2 - //SEG534 play_lock_current::@2 + //SEG558 play_lock_current::@2 b2: - //SEG535 [242] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 -- vbuz1=_inc_vbuz2 + //SEG559 [253] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 -- vbuz1=_inc_vbuz2 ldy i_2 iny sty i - //SEG536 [243] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG560 [254] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy i_2 lda (current_piece_gfx),y cmp #0 beq b3 jmp b4 - //SEG537 play_lock_current::@4 + //SEG561 play_lock_current::@4 b4: - //SEG538 [244] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 -- pbuz1_derefidx_vbuz2=vbuz3 + //SEG562 [255] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 -- pbuz1_derefidx_vbuz2=vbuz3 lda current_piece_char ldy col sta (playfield_line),y jmp b3 - //SEG539 play_lock_current::@3 + //SEG563 play_lock_current::@3 b3: - //SEG540 [245] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 -- vbuz1=_inc_vbuz1 + //SEG564 [256] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 -- vbuz1=_inc_vbuz1 inc col - //SEG541 [246] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 -- vbuxx=_inc_vbuxx + //SEG565 [257] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 -- vbuxx=_inc_vbuxx inx - //SEG542 [247] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 -- vbuxx_neq_vbuc1_then_la1 + //SEG566 [258] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b8 jmp b5 - //SEG543 play_lock_current::@5 + //SEG567 play_lock_current::@5 b5: - //SEG544 [248] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG568 [259] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG545 [249] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 -- vbuz1=_inc_vbuz1 + //SEG569 [260] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 -- vbuz1=_inc_vbuz1 inc l - //SEG546 [250] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 -- vbuz1_neq_vbuc1_then_la1 + //SEG570 [261] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b7 jmp breturn - //SEG547 play_lock_current::@return + //SEG571 play_lock_current::@return breturn: - //SEG548 [251] return + //SEG572 [262] return rts - //SEG549 play_lock_current::@7 + //SEG573 play_lock_current::@7 b7: - //SEG550 [252] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 + //SEG574 [263] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 lda i sta i_7 - //SEG551 [238] phi from play_lock_current::@7 to play_lock_current::@1 [phi:play_lock_current::@7->play_lock_current::@1] + //SEG575 [249] phi from play_lock_current::@7 to play_lock_current::@1 [phi:play_lock_current::@7->play_lock_current::@1] b1_from_b7: - //SEG552 [238] phi (byte) play_lock_current::l#6 = (byte) play_lock_current::l#1 [phi:play_lock_current::@7->play_lock_current::@1#0] -- register_copy - //SEG553 [238] phi (byte) play_lock_current::i#3 = (byte~) play_lock_current::i#7 [phi:play_lock_current::@7->play_lock_current::@1#1] -- register_copy - //SEG554 [238] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#1 [phi:play_lock_current::@7->play_lock_current::@1#2] -- register_copy + //SEG576 [249] phi (byte) play_lock_current::l#6 = (byte) play_lock_current::l#1 [phi:play_lock_current::@7->play_lock_current::@1#0] -- register_copy + //SEG577 [249] phi (byte) play_lock_current::i#3 = (byte~) play_lock_current::i#7 [phi:play_lock_current::@7->play_lock_current::@1#1] -- register_copy + //SEG578 [249] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#1 [phi:play_lock_current::@7->play_lock_current::@1#2] -- register_copy jmp b1 - //SEG555 play_lock_current::@8 + //SEG579 play_lock_current::@8 b8: - //SEG556 [253] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 + //SEG580 [264] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 lda i sta i_9 - //SEG557 [241] phi from play_lock_current::@8 to play_lock_current::@2 [phi:play_lock_current::@8->play_lock_current::@2] + //SEG581 [252] phi from play_lock_current::@8 to play_lock_current::@2 [phi:play_lock_current::@8->play_lock_current::@2] b2_from_b8: - //SEG558 [241] phi (byte) play_lock_current::c#2 = (byte) play_lock_current::c#1 [phi:play_lock_current::@8->play_lock_current::@2#0] -- register_copy - //SEG559 [241] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#1 [phi:play_lock_current::@8->play_lock_current::@2#1] -- register_copy - //SEG560 [241] phi (byte) play_lock_current::i#2 = (byte~) play_lock_current::i#9 [phi:play_lock_current::@8->play_lock_current::@2#2] -- register_copy + //SEG582 [252] phi (byte) play_lock_current::c#2 = (byte) play_lock_current::c#1 [phi:play_lock_current::@8->play_lock_current::@2#0] -- register_copy + //SEG583 [252] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#1 [phi:play_lock_current::@8->play_lock_current::@2#1] -- register_copy + //SEG584 [252] phi (byte) play_lock_current::i#2 = (byte~) play_lock_current::i#9 [phi:play_lock_current::@8->play_lock_current::@2#2] -- register_copy jmp b2 } -//SEG561 keyboard_event_pressed +//SEG585 keyboard_event_pressed keyboard_event_pressed: { .label row_bits = 6 - .label keycode = 3 - //SEG562 [255] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuaa=vbuz1_ror_3 + .label keycode = 5 + //SEG586 [266] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuaa=vbuz1_ror_3 lda keycode lsr lsr lsr - //SEG563 [256] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) -- vbuz1=pbuc1_derefidx_vbuaa + //SEG587 [267] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) -- vbuz1=pbuc1_derefidx_vbuaa tay lda keyboard_scan_values,y sta row_bits - //SEG564 [257] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuz1_band_vbuc1 + //SEG588 [268] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuz1_band_vbuc1 lda #7 and keycode - //SEG565 [258] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuaa + //SEG589 [269] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuaa tay lda keyboard_matrix_col_bitmask,y and row_bits jmp breturn - //SEG566 keyboard_event_pressed::@return + //SEG590 keyboard_event_pressed::@return breturn: - //SEG567 [259] return + //SEG591 [270] return rts } -//SEG568 keyboard_event_get +//SEG592 keyboard_event_get keyboard_event_get: { - //SEG569 [260] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return -- vbuz1_eq_0_then_la1 + //SEG593 [271] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return -- vbuz1_eq_0_then_la1 lda keyboard_events_size cmp #0 beq breturn_from_keyboard_event_get jmp b3 - //SEG570 keyboard_event_get::@3 + //SEG594 keyboard_event_get::@3 b3: - //SEG571 [261] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 -- vbuz1=_dec_vbuz1 + //SEG595 [272] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 -- vbuz1=_dec_vbuz1 dec keyboard_events_size - //SEG572 [262] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) -- vbuaa=pbuc1_derefidx_vbuz1 + //SEG596 [273] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) -- vbuaa=pbuc1_derefidx_vbuz1 ldy keyboard_events_size lda keyboard_events,y - //SEG573 [263] phi from keyboard_event_get::@3 to keyboard_event_get::@return [phi:keyboard_event_get::@3->keyboard_event_get::@return] + //SEG597 [274] phi from keyboard_event_get::@3 to keyboard_event_get::@return [phi:keyboard_event_get::@3->keyboard_event_get::@return] breturn_from_b3: - //SEG574 [263] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#4 [phi:keyboard_event_get::@3->keyboard_event_get::@return#0] -- register_copy - //SEG575 [263] phi (byte) keyboard_event_get::return#2 = (byte) keyboard_event_get::return#1 [phi:keyboard_event_get::@3->keyboard_event_get::@return#1] -- register_copy + //SEG598 [274] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#4 [phi:keyboard_event_get::@3->keyboard_event_get::@return#0] -- register_copy + //SEG599 [274] phi (byte) keyboard_event_get::return#2 = (byte) keyboard_event_get::return#1 [phi:keyboard_event_get::@3->keyboard_event_get::@return#1] -- register_copy jmp breturn - //SEG576 [263] phi from keyboard_event_get to keyboard_event_get::@return [phi:keyboard_event_get->keyboard_event_get::@return] + //SEG600 [274] phi from keyboard_event_get to keyboard_event_get::@return [phi:keyboard_event_get->keyboard_event_get::@return] breturn_from_keyboard_event_get: - //SEG577 [263] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#13 [phi:keyboard_event_get->keyboard_event_get::@return#0] -- register_copy - //SEG578 [263] phi (byte) keyboard_event_get::return#2 = (byte/word/signed word/dword/signed dword) 255 [phi:keyboard_event_get->keyboard_event_get::@return#1] -- vbuaa=vbuc1 + //SEG601 [274] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#13 [phi:keyboard_event_get->keyboard_event_get::@return#0] -- register_copy + //SEG602 [274] phi (byte) keyboard_event_get::return#2 = (byte/word/signed word/dword/signed dword) 255 [phi:keyboard_event_get->keyboard_event_get::@return#1] -- vbuaa=vbuc1 lda #$ff jmp breturn - //SEG579 keyboard_event_get::@return + //SEG603 keyboard_event_get::@return breturn: - //SEG580 [264] return + //SEG604 [275] return rts } -//SEG581 keyboard_event_scan +//SEG605 keyboard_event_scan keyboard_event_scan: { - .label row_scan = 7 + .label row_scan = 9 .label keycode = 6 - .label row = 3 - //SEG582 [266] phi from keyboard_event_scan to keyboard_event_scan::@1 [phi:keyboard_event_scan->keyboard_event_scan::@1] + .label row = 5 + //SEG606 [277] phi from keyboard_event_scan to keyboard_event_scan::@1 [phi:keyboard_event_scan->keyboard_event_scan::@1] b1_from_keyboard_event_scan: - //SEG583 [266] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#19 [phi:keyboard_event_scan->keyboard_event_scan::@1#0] -- register_copy - //SEG584 [266] phi (byte) keyboard_event_scan::keycode#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#1] -- vbuz1=vbuc1 + //SEG607 [277] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#19 [phi:keyboard_event_scan->keyboard_event_scan::@1#0] -- register_copy + //SEG608 [277] phi (byte) keyboard_event_scan::keycode#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#1] -- vbuz1=vbuc1 lda #0 sta keycode - //SEG585 [266] phi (byte) keyboard_event_scan::row#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#2] -- vbuz1=vbuc1 + //SEG609 [277] phi (byte) keyboard_event_scan::row#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#2] -- vbuz1=vbuc1 lda #0 sta row jmp b1 - //SEG586 [266] phi from keyboard_event_scan::@3 to keyboard_event_scan::@1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1] + //SEG610 [277] phi from keyboard_event_scan::@3 to keyboard_event_scan::@1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1] b1_from_b3: - //SEG587 [266] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#13 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#0] -- register_copy - //SEG588 [266] phi (byte) keyboard_event_scan::keycode#11 = (byte) keyboard_event_scan::keycode#14 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#1] -- register_copy - //SEG589 [266] phi (byte) keyboard_event_scan::row#2 = (byte) keyboard_event_scan::row#1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#2] -- register_copy + //SEG611 [277] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#13 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#0] -- register_copy + //SEG612 [277] phi (byte) keyboard_event_scan::keycode#11 = (byte) keyboard_event_scan::keycode#14 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#1] -- register_copy + //SEG613 [277] phi (byte) keyboard_event_scan::row#2 = (byte) keyboard_event_scan::row#1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#2] -- register_copy jmp b1 - //SEG590 keyboard_event_scan::@1 + //SEG614 keyboard_event_scan::@1 b1: - //SEG591 [267] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 -- vbuxx=vbuz1 + //SEG615 [278] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 -- vbuxx=vbuz1 ldx row - //SEG592 [268] call keyboard_matrix_read + //SEG616 [279] call keyboard_matrix_read jsr keyboard_matrix_read - //SEG593 [269] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 + //SEG617 [280] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 // (byte) keyboard_matrix_read::return#2 = (byte) keyboard_matrix_read::return#0 // register copy reg byte a jmp b25 - //SEG594 keyboard_event_scan::@25 + //SEG618 keyboard_event_scan::@25 b25: - //SEG595 [270] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 -- vbuz1=vbuaa + //SEG619 [281] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 -- vbuz1=vbuaa sta row_scan - //SEG596 [271] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 -- vbuz1_neq_pbuc1_derefidx_vbuz2_then_la1 + //SEG620 [282] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 -- vbuz1_neq_pbuc1_derefidx_vbuz2_then_la1 lda row_scan ldy row cmp keyboard_scan_values,y bne b4_from_b25 jmp b13 - //SEG597 keyboard_event_scan::@13 + //SEG621 keyboard_event_scan::@13 b13: - //SEG598 [272] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 + //SEG622 [283] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lda #8 clc adc keycode sta keycode - //SEG599 [273] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] + //SEG623 [284] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] b3_from_b13: b3_from_b19: - //SEG600 [273] phi (byte) keyboard_events_size#13 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy - //SEG601 [273] phi (byte) keyboard_event_scan::keycode#14 = (byte) keyboard_event_scan::keycode#1 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#1] -- register_copy + //SEG624 [284] phi (byte) keyboard_events_size#13 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy + //SEG625 [284] phi (byte) keyboard_event_scan::keycode#14 = (byte) keyboard_event_scan::keycode#1 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#1] -- register_copy jmp b3 - //SEG602 keyboard_event_scan::@3 + //SEG626 keyboard_event_scan::@3 b3: - //SEG603 [274] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 -- vbuz1=_inc_vbuz1 + //SEG627 [285] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 -- vbuz1=_inc_vbuz1 inc row - //SEG604 [275] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG628 [286] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 -- vbuz1_neq_vbuc1_then_la1 lda row cmp #8 bne b1_from_b3 - //SEG605 [276] phi from keyboard_event_scan::@3 to keyboard_event_scan::@20 [phi:keyboard_event_scan::@3->keyboard_event_scan::@20] + //SEG629 [287] phi from keyboard_event_scan::@3 to keyboard_event_scan::@20 [phi:keyboard_event_scan::@3->keyboard_event_scan::@20] b20_from_b3: jmp b20 - //SEG606 keyboard_event_scan::@20 + //SEG630 keyboard_event_scan::@20 b20: - //SEG607 [277] call keyboard_event_pressed - //SEG608 [254] phi from keyboard_event_scan::@20 to keyboard_event_pressed [phi:keyboard_event_scan::@20->keyboard_event_pressed] + //SEG631 [288] call keyboard_event_pressed + //SEG632 [265] phi from keyboard_event_scan::@20 to keyboard_event_pressed [phi:keyboard_event_scan::@20->keyboard_event_pressed] keyboard_event_pressed_from_b20: - //SEG609 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_LSHIFT#0 [phi:keyboard_event_scan::@20->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG633 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_LSHIFT#0 [phi:keyboard_event_scan::@20->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_LSHIFT sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG610 [278] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 + //SEG634 [289] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#0 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a jmp b26 - //SEG611 keyboard_event_scan::@26 + //SEG635 keyboard_event_scan::@26 b26: - //SEG612 [279] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 + //SEG636 [290] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 // (byte~) keyboard_event_scan::$14 = (byte) keyboard_event_pressed::return#0 // register copy reg byte a - //SEG613 [280] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 -- vbuaa_eq_0_then_la1 + //SEG637 [291] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 -- vbuaa_eq_0_then_la1 cmp #0 beq b9_from_b26 - //SEG614 [281] phi from keyboard_event_scan::@26 to keyboard_event_scan::@21 [phi:keyboard_event_scan::@26->keyboard_event_scan::@21] + //SEG638 [292] phi from keyboard_event_scan::@26 to keyboard_event_scan::@21 [phi:keyboard_event_scan::@26->keyboard_event_scan::@21] b21_from_b26: jmp b21 - //SEG615 keyboard_event_scan::@21 + //SEG639 keyboard_event_scan::@21 b21: - //SEG616 [282] phi from keyboard_event_scan::@21 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9] + //SEG640 [293] phi from keyboard_event_scan::@21 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9] b9_from_b21: - //SEG617 [282] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 + //SEG641 [293] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 ldx #0|KEY_MODIFIER_LSHIFT jmp b9 - //SEG618 [282] phi from keyboard_event_scan::@26 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9] + //SEG642 [293] phi from keyboard_event_scan::@26 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9] b9_from_b26: - //SEG619 [282] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 + //SEG643 [293] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 ldx #0 jmp b9 - //SEG620 keyboard_event_scan::@9 + //SEG644 keyboard_event_scan::@9 b9: - //SEG621 [283] call keyboard_event_pressed - //SEG622 [254] phi from keyboard_event_scan::@9 to keyboard_event_pressed [phi:keyboard_event_scan::@9->keyboard_event_pressed] + //SEG645 [294] call keyboard_event_pressed + //SEG646 [265] phi from keyboard_event_scan::@9 to keyboard_event_pressed [phi:keyboard_event_scan::@9->keyboard_event_pressed] keyboard_event_pressed_from_b9: - //SEG623 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_RSHIFT#0 [phi:keyboard_event_scan::@9->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG647 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_RSHIFT#0 [phi:keyboard_event_scan::@9->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_RSHIFT sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG624 [284] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 + //SEG648 [295] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#1 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a jmp b27 - //SEG625 keyboard_event_scan::@27 + //SEG649 keyboard_event_scan::@27 b27: - //SEG626 [285] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 + //SEG650 [296] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 // (byte~) keyboard_event_scan::$18 = (byte) keyboard_event_pressed::return#1 // register copy reg byte a - //SEG627 [286] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 -- vbuaa_eq_0_then_la1 + //SEG651 [297] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 -- vbuaa_eq_0_then_la1 cmp #0 beq b10_from_b27 jmp b22 - //SEG628 keyboard_event_scan::@22 + //SEG652 keyboard_event_scan::@22 b22: - //SEG629 [287] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 -- vbuxx=vbuxx_bor_vbuc1 + //SEG653 [298] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 -- vbuxx=vbuxx_bor_vbuc1 txa ora #KEY_MODIFIER_RSHIFT tax - //SEG630 [288] phi from keyboard_event_scan::@22 keyboard_event_scan::@27 to keyboard_event_scan::@10 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10] + //SEG654 [299] phi from keyboard_event_scan::@22 keyboard_event_scan::@27 to keyboard_event_scan::@10 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10] b10_from_b22: b10_from_b27: - //SEG631 [288] phi (byte) keyboard_modifiers#12 = (byte) keyboard_modifiers#3 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10#0] -- register_copy + //SEG655 [299] phi (byte) keyboard_modifiers#12 = (byte) keyboard_modifiers#3 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10#0] -- register_copy jmp b10 - //SEG632 keyboard_event_scan::@10 + //SEG656 keyboard_event_scan::@10 b10: - //SEG633 [289] call keyboard_event_pressed - //SEG634 [254] phi from keyboard_event_scan::@10 to keyboard_event_pressed [phi:keyboard_event_scan::@10->keyboard_event_pressed] + //SEG657 [300] call keyboard_event_pressed + //SEG658 [265] phi from keyboard_event_scan::@10 to keyboard_event_pressed [phi:keyboard_event_scan::@10->keyboard_event_pressed] keyboard_event_pressed_from_b10: - //SEG635 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_CTRL#0 [phi:keyboard_event_scan::@10->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG659 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_CTRL#0 [phi:keyboard_event_scan::@10->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_CTRL sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG636 [290] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 + //SEG660 [301] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#2 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a jmp b28 - //SEG637 keyboard_event_scan::@28 + //SEG661 keyboard_event_scan::@28 b28: - //SEG638 [291] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 + //SEG662 [302] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 // (byte~) keyboard_event_scan::$22 = (byte) keyboard_event_pressed::return#2 // register copy reg byte a - //SEG639 [292] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 -- vbuaa_eq_0_then_la1 + //SEG663 [303] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 -- vbuaa_eq_0_then_la1 cmp #0 beq b11_from_b28 jmp b23 - //SEG640 keyboard_event_scan::@23 + //SEG664 keyboard_event_scan::@23 b23: - //SEG641 [293] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 -- vbuxx=vbuxx_bor_vbuc1 + //SEG665 [304] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 -- vbuxx=vbuxx_bor_vbuc1 txa ora #KEY_MODIFIER_CTRL tax - //SEG642 [294] phi from keyboard_event_scan::@23 keyboard_event_scan::@28 to keyboard_event_scan::@11 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11] + //SEG666 [305] phi from keyboard_event_scan::@23 keyboard_event_scan::@28 to keyboard_event_scan::@11 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11] b11_from_b23: b11_from_b28: - //SEG643 [294] phi (byte) keyboard_modifiers#13 = (byte) keyboard_modifiers#4 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11#0] -- register_copy + //SEG667 [305] phi (byte) keyboard_modifiers#13 = (byte) keyboard_modifiers#4 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11#0] -- register_copy jmp b11 - //SEG644 keyboard_event_scan::@11 + //SEG668 keyboard_event_scan::@11 b11: - //SEG645 [295] call keyboard_event_pressed - //SEG646 [254] phi from keyboard_event_scan::@11 to keyboard_event_pressed [phi:keyboard_event_scan::@11->keyboard_event_pressed] + //SEG669 [306] call keyboard_event_pressed + //SEG670 [265] phi from keyboard_event_scan::@11 to keyboard_event_pressed [phi:keyboard_event_scan::@11->keyboard_event_pressed] keyboard_event_pressed_from_b11: - //SEG647 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_COMMODORE#0 [phi:keyboard_event_scan::@11->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG671 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_COMMODORE#0 [phi:keyboard_event_scan::@11->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_COMMODORE sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG648 [296] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 + //SEG672 [307] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#10 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a jmp b29 - //SEG649 keyboard_event_scan::@29 + //SEG673 keyboard_event_scan::@29 b29: - //SEG650 [297] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 + //SEG674 [308] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 // (byte~) keyboard_event_scan::$26 = (byte) keyboard_event_pressed::return#10 // register copy reg byte a - //SEG651 [298] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return -- vbuaa_eq_0_then_la1 + //SEG675 [309] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return -- vbuaa_eq_0_then_la1 cmp #0 beq breturn jmp b24 - //SEG652 keyboard_event_scan::@24 + //SEG676 keyboard_event_scan::@24 b24: - //SEG653 [299] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 -- vbuaa=vbuxx_bor_vbuc1 + //SEG677 [310] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 -- vbuaa=vbuxx_bor_vbuc1 txa ora #KEY_MODIFIER_COMMODORE jmp breturn - //SEG654 keyboard_event_scan::@return + //SEG678 keyboard_event_scan::@return breturn: - //SEG655 [300] return + //SEG679 [311] return rts - //SEG656 [301] phi from keyboard_event_scan::@25 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4] + //SEG680 [312] phi from keyboard_event_scan::@25 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4] b4_from_b25: - //SEG657 [301] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#0] -- register_copy - //SEG658 [301] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#11 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#1] -- register_copy - //SEG659 [301] phi (byte) keyboard_event_scan::col#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#2] -- vbuxx=vbuc1 + //SEG681 [312] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#0] -- register_copy + //SEG682 [312] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#11 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#1] -- register_copy + //SEG683 [312] phi (byte) keyboard_event_scan::col#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#2] -- vbuxx=vbuc1 ldx #0 jmp b4 - //SEG660 [301] phi from keyboard_event_scan::@5 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4] + //SEG684 [312] phi from keyboard_event_scan::@5 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4] b4_from_b5: - //SEG661 [301] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#30 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#0] -- register_copy - //SEG662 [301] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#15 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#1] -- register_copy - //SEG663 [301] phi (byte) keyboard_event_scan::col#2 = (byte) keyboard_event_scan::col#1 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#2] -- register_copy + //SEG685 [312] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#30 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#0] -- register_copy + //SEG686 [312] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#15 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#1] -- register_copy + //SEG687 [312] phi (byte) keyboard_event_scan::col#2 = (byte) keyboard_event_scan::col#1 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#2] -- register_copy jmp b4 - //SEG664 keyboard_event_scan::@4 + //SEG688 keyboard_event_scan::@4 b4: - //SEG665 [302] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) -- vbuaa=vbuz1_bxor_pbuc1_derefidx_vbuz2 + //SEG689 [313] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) -- vbuaa=vbuz1_bxor_pbuc1_derefidx_vbuz2 lda row_scan ldy row eor keyboard_scan_values,y - //SEG666 [303] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuaa_band_pbuc1_derefidx_vbuxx + //SEG690 [314] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuaa_band_pbuc1_derefidx_vbuxx and keyboard_matrix_col_bitmask,x - //SEG667 [304] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 -- vbuaa_eq_0_then_la1 + //SEG691 [315] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 -- vbuaa_eq_0_then_la1 cmp #0 beq b5_from_b4 jmp b15 - //SEG668 keyboard_event_scan::@15 + //SEG692 keyboard_event_scan::@15 b15: - //SEG669 [305] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 -- vbuz1_eq_vbuc1_then_la1 + //SEG693 [316] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 -- vbuz1_eq_vbuc1_then_la1 lda keyboard_events_size cmp #8 beq b5_from_b15 jmp b16 - //SEG670 keyboard_event_scan::@16 + //SEG694 keyboard_event_scan::@16 b16: - //SEG671 [306] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuxx + //SEG695 [317] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuxx lda keyboard_matrix_col_bitmask,x and row_scan - //SEG672 [307] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 -- vbuaa_eq_0_then_la1 + //SEG696 [318] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 -- vbuaa_eq_0_then_la1 cmp #0 beq b7 jmp b17 - //SEG673 keyboard_event_scan::@17 + //SEG697 keyboard_event_scan::@17 b17: - //SEG674 [308] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG698 [319] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 -- pbuc1_derefidx_vbuz1=vbuz2 lda keycode ldy keyboard_events_size sta keyboard_events,y - //SEG675 [309] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 + //SEG699 [320] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 inc keyboard_events_size - //SEG676 [310] phi from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 to keyboard_event_scan::@5 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5] + //SEG700 [321] phi from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 to keyboard_event_scan::@5 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5] b5_from_b15: b5_from_b17: b5_from_b4: b5_from_b7: - //SEG677 [310] phi (byte) keyboard_events_size#30 = (byte) keyboard_events_size#10 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5#0] -- register_copy + //SEG701 [321] phi (byte) keyboard_events_size#30 = (byte) keyboard_events_size#10 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5#0] -- register_copy jmp b5 - //SEG678 keyboard_event_scan::@5 + //SEG702 keyboard_event_scan::@5 b5: - //SEG679 [311] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 -- vbuz1=_inc_vbuz1 + //SEG703 [322] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 -- vbuz1=_inc_vbuz1 inc keycode - //SEG680 [312] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 -- vbuxx=_inc_vbuxx + //SEG704 [323] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 -- vbuxx=_inc_vbuxx inx - //SEG681 [313] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 -- vbuxx_neq_vbuc1_then_la1 + //SEG705 [324] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 -- vbuxx_neq_vbuc1_then_la1 cpx #8 bne b4_from_b5 jmp b19 - //SEG682 keyboard_event_scan::@19 + //SEG706 keyboard_event_scan::@19 b19: - //SEG683 [314] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG707 [325] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 -- pbuc1_derefidx_vbuz1=vbuz2 lda row_scan ldy row sta keyboard_scan_values,y jmp b3_from_b19 - //SEG684 keyboard_event_scan::@7 + //SEG708 keyboard_event_scan::@7 b7: - //SEG685 [315] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuaa=vbuz1_bor_vbuc1 + //SEG709 [326] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuaa=vbuz1_bor_vbuc1 lda #$40 ora keycode - //SEG686 [316] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 -- pbuc1_derefidx_vbuz1=vbuaa + //SEG710 [327] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 -- pbuc1_derefidx_vbuz1=vbuaa ldy keyboard_events_size sta keyboard_events,y - //SEG687 [317] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 + //SEG711 [328] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 inc keyboard_events_size jmp b5_from_b7 } -//SEG688 keyboard_matrix_read +//SEG712 keyboard_matrix_read keyboard_matrix_read: { - //SEG689 [318] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) -- _deref_pbuc1=pbuc2_derefidx_vbuxx + //SEG713 [329] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) -- _deref_pbuc1=pbuc2_derefidx_vbuxx lda keyboard_matrix_row_bitmask,x sta CIA1_PORT_A - //SEG690 [319] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) -- vbuaa=_bnot__deref_pbuc1 + //SEG714 [330] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) -- vbuaa=_bnot__deref_pbuc1 lda CIA1_PORT_B eor #$ff jmp breturn - //SEG691 keyboard_matrix_read::@return + //SEG715 keyboard_matrix_read::@return breturn: - //SEG692 [320] return + //SEG716 [331] return rts } -//SEG693 play_init +//SEG717 render_show +render_show: { + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const toD0182_return = (>(PLAYFIELD_SCREEN_2&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + //SEG718 [332] if((byte) render_screen_show#15==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_show::toD0181 -- vbuz1_eq_0_then_la1 + lda render_screen_show + cmp #0 + beq toD0181_from_render_show + //SEG719 [333] phi from render_show to render_show::toD0182 [phi:render_show->render_show::toD0182] + toD0182_from_render_show: + jmp toD0182 + //SEG720 render_show::toD0182 + toD0182: + //SEG721 [334] phi from render_show::toD0182 to render_show::@2 [phi:render_show::toD0182->render_show::@2] + b2_from_toD0182: + //SEG722 [334] phi (byte) render_show::d018val#3 = (const byte) render_show::toD0182_return#0 [phi:render_show::toD0182->render_show::@2#0] -- vbuaa=vbuc1 + lda #toD0182_return + jmp b2 + //SEG723 render_show::@2 + b2: + //SEG724 [335] *((const byte*) D018#0) ← (byte) render_show::d018val#3 -- _deref_pbuc1=vbuaa + sta D018 + jmp breturn + //SEG725 render_show::@return + breturn: + //SEG726 [336] return + rts + //SEG727 [337] phi from render_show to render_show::toD0181 [phi:render_show->render_show::toD0181] + toD0181_from_render_show: + jmp toD0181 + //SEG728 render_show::toD0181 + toD0181: + //SEG729 [334] phi from render_show::toD0181 to render_show::@2 [phi:render_show::toD0181->render_show::@2] + b2_from_toD0181: + //SEG730 [334] phi (byte) render_show::d018val#3 = (const byte) render_show::toD0181_return#0 [phi:render_show::toD0181->render_show::@2#0] -- vbuaa=vbuc1 + lda #toD0181_return + jmp b2 +} +//SEG731 play_init play_init: { - .label pli = 4 + .label pli = 7 .label idx = 2 - //SEG694 [322] phi from play_init to play_init::@1 [phi:play_init->play_init::@1] + //SEG732 [339] phi from play_init to play_init::@1 [phi:play_init->play_init::@1] b1_from_play_init: - //SEG695 [322] phi (byte) play_init::idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#0] -- vbuz1=vbuc1 + //SEG733 [339] phi (byte) play_init::idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#0] -- vbuz1=vbuc1 lda #0 sta idx - //SEG696 [322] phi (byte*) play_init::pli#2 = (const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 [phi:play_init->play_init::@1#1] -- pbuz1=pbuc1 + //SEG734 [339] phi (byte*) play_init::pli#2 = (const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 [phi:play_init->play_init::@1#1] -- pbuz1=pbuc1 lda #playfield sta pli+1 - //SEG697 [322] phi (byte) play_init::j#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#2] -- vbuxx=vbuc1 + //SEG735 [339] phi (byte) play_init::j#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#2] -- vbuxx=vbuc1 ldx #0 jmp b1 - //SEG698 [322] phi from play_init::@1 to play_init::@1 [phi:play_init::@1->play_init::@1] + //SEG736 [339] phi from play_init::@1 to play_init::@1 [phi:play_init::@1->play_init::@1] b1_from_b1: - //SEG699 [322] phi (byte) play_init::idx#2 = (byte) play_init::idx#1 [phi:play_init::@1->play_init::@1#0] -- register_copy - //SEG700 [322] phi (byte*) play_init::pli#2 = (byte*) play_init::pli#1 [phi:play_init::@1->play_init::@1#1] -- register_copy - //SEG701 [322] phi (byte) play_init::j#2 = (byte) play_init::j#1 [phi:play_init::@1->play_init::@1#2] -- register_copy + //SEG737 [339] phi (byte) play_init::idx#2 = (byte) play_init::idx#1 [phi:play_init::@1->play_init::@1#0] -- register_copy + //SEG738 [339] phi (byte*) play_init::pli#2 = (byte*) play_init::pli#1 [phi:play_init::@1->play_init::@1#1] -- register_copy + //SEG739 [339] phi (byte) play_init::j#2 = (byte) play_init::j#1 [phi:play_init::@1->play_init::@1#2] -- register_copy jmp b1 - //SEG702 play_init::@1 + //SEG740 play_init::@1 b1: - //SEG703 [323] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 + //SEG741 [340] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 txa asl - //SEG704 [324] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 -- pptc1_derefidx_vbuaa=pbuz1 + //SEG742 [341] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 -- pptc1_derefidx_vbuaa=pbuz1 tay lda pli sta playfield_lines,y lda pli+1 sta playfield_lines+1,y - //SEG705 [325] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 -- pbuc1_derefidx_vbuxx=vbuz1 + //SEG743 [342] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 -- pbuc1_derefidx_vbuxx=vbuz1 lda idx sta playfield_lines_idx,x - //SEG706 [326] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 -- pbuz1=pbuz1_plus_vbuc1 + //SEG744 [343] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 -- pbuz1=pbuz1_plus_vbuc1 lda pli clc adc #PLAYFIELD_COLS @@ -13996,278 +14904,250 @@ play_init: { bcc !+ inc pli+1 !: - //SEG707 [327] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 + //SEG745 [344] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lda #PLAYFIELD_COLS clc adc idx sta idx - //SEG708 [328] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuxx=_inc_vbuxx + //SEG746 [345] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuxx=_inc_vbuxx inx - //SEG709 [329] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 -- vbuxx_neq_vbuc1_then_la1 + //SEG747 [346] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 -- vbuxx_neq_vbuc1_then_la1 cpx #PLAYFIELD_LINES-1+1 bne b1_from_b1 jmp b2 - //SEG710 play_init::@2 + //SEG748 play_init::@2 b2: - //SEG711 [330] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 -- _deref_pbuc1=vbuc2 + //SEG749 [347] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 -- _deref_pbuc1=vbuc2 lda #PLAYFIELD_COLS*PLAYFIELD_LINES sta playfield_lines_idx+PLAYFIELD_LINES jmp breturn - //SEG712 play_init::@return + //SEG750 play_init::@return breturn: - //SEG713 [331] return + //SEG751 [348] return rts } -//SEG714 sprites_irq_init +//SEG752 sprites_irq_init sprites_irq_init: { - //SEG715 asm { sei } + //SEG753 asm { sei } sei - //SEG716 [333] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG754 [350] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG717 asm { ldaCIA1_INTERRUPT } + //SEG755 asm { ldaCIA1_INTERRUPT } lda CIA1_INTERRUPT - //SEG718 [335] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 + //SEG756 [352] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 lda #PROCPORT_DDR_MEMORY_MASK sta PROCPORT_DDR - //SEG719 [336] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 + //SEG757 [353] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 lda #PROCPORT_RAM_IO sta PROCPORT - //SEG720 [337] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 + //SEG758 [354] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 lda #CIA_INTERRUPT_CLEAR sta CIA1_INTERRUPT - //SEG721 [338] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + //SEG759 [355] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda VIC_CONTROL and #$7f sta VIC_CONTROL - //SEG722 [339] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 -- _deref_pbuc1=vbuc2 + //SEG760 [356] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER_FIRST sta RASTER - //SEG723 [340] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG761 [357] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_ENABLE - //SEG724 [341] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 + //SEG762 [358] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 lda #irq sta HARDWARE_IRQ+1 - //SEG725 asm { cli } + //SEG763 asm { cli } cli jmp breturn - //SEG726 sprites_irq_init::@return + //SEG764 sprites_irq_init::@return breturn: - //SEG727 [343] return + //SEG765 [360] return rts } -//SEG728 sprites_init +//SEG766 sprites_init sprites_init: { .label xpos = 2 - //SEG729 [344] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 -- _deref_pbuc1=vbuc2 + //SEG767 [361] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 -- _deref_pbuc1=vbuc2 lda #$f sta SPRITES_ENABLE - //SEG730 [345] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 + //SEG768 [362] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 lda #0 sta SPRITES_MC - //SEG731 [346] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) -- _deref_pbuc1=_deref_pbuc2 + //SEG769 [363] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) -- _deref_pbuc1=_deref_pbuc2 lda SPRITES_MC sta SPRITES_EXPAND_Y - //SEG732 [347] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) -- _deref_pbuc1=_deref_pbuc2 + //SEG770 [364] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) -- _deref_pbuc1=_deref_pbuc2 lda SPRITES_EXPAND_Y sta SPRITES_EXPAND_X - //SEG733 [348] phi from sprites_init to sprites_init::@1 [phi:sprites_init->sprites_init::@1] + //SEG771 [365] phi from sprites_init to sprites_init::@1 [phi:sprites_init->sprites_init::@1] b1_from_sprites_init: - //SEG734 [348] phi (byte) sprites_init::xpos#2 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 [phi:sprites_init->sprites_init::@1#0] -- vbuz1=vbuc1 + //SEG772 [365] phi (byte) sprites_init::xpos#2 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 [phi:sprites_init->sprites_init::@1#0] -- vbuz1=vbuc1 lda #$18+$f*8 sta xpos - //SEG735 [348] phi (byte) sprites_init::s#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:sprites_init->sprites_init::@1#1] -- vbuxx=vbuc1 + //SEG773 [365] phi (byte) sprites_init::s#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:sprites_init->sprites_init::@1#1] -- vbuxx=vbuc1 ldx #0 jmp b1 - //SEG736 [348] phi from sprites_init::@1 to sprites_init::@1 [phi:sprites_init::@1->sprites_init::@1] + //SEG774 [365] phi from sprites_init::@1 to sprites_init::@1 [phi:sprites_init::@1->sprites_init::@1] b1_from_b1: - //SEG737 [348] phi (byte) sprites_init::xpos#2 = (byte) sprites_init::xpos#1 [phi:sprites_init::@1->sprites_init::@1#0] -- register_copy - //SEG738 [348] phi (byte) sprites_init::s#2 = (byte) sprites_init::s#1 [phi:sprites_init::@1->sprites_init::@1#1] -- register_copy + //SEG775 [365] phi (byte) sprites_init::xpos#2 = (byte) sprites_init::xpos#1 [phi:sprites_init::@1->sprites_init::@1#0] -- register_copy + //SEG776 [365] phi (byte) sprites_init::s#2 = (byte) sprites_init::s#1 [phi:sprites_init::@1->sprites_init::@1#1] -- register_copy jmp b1 - //SEG739 sprites_init::@1 + //SEG777 sprites_init::@1 b1: - //SEG740 [349] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 + //SEG778 [366] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 txa asl - //SEG741 [350] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 -- pbuc1_derefidx_vbuaa=vbuz1 + //SEG779 [367] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 -- pbuc1_derefidx_vbuaa=vbuz1 tay lda xpos sta SPRITES_XPOS,y - //SEG742 [351] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 -- pbuc1_derefidx_vbuxx=vbuc2 + //SEG780 [368] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 -- pbuc1_derefidx_vbuxx=vbuc2 lda #BLACK sta SPRITES_COLS,x - //SEG743 [352] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 -- vbuz1=vbuz1_plus_vbuc1 + //SEG781 [369] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 -- vbuz1=vbuz1_plus_vbuc1 lda #$18 clc adc xpos sta xpos - //SEG744 [353] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuxx=_inc_vbuxx + //SEG782 [370] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuxx=_inc_vbuxx inx - //SEG745 [354] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 -- vbuxx_neq_vbuc1_then_la1 + //SEG783 [371] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b1_from_b1 jmp breturn - //SEG746 sprites_init::@return + //SEG784 sprites_init::@return breturn: - //SEG747 [355] return + //SEG785 [372] return rts } -//SEG748 render_init +//SEG786 render_init render_init: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f - .label _18 = $c - .label li = 4 - .label line = 4 + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_CHARSET)>>6 + .label _12 = $f + .label line = 7 .label l = 2 + .label li_1 = 7 + .label li_2 = $f jmp vicSelectGfxBank1 - //SEG749 render_init::vicSelectGfxBank1 + //SEG787 render_init::vicSelectGfxBank1 vicSelectGfxBank1: - //SEG750 [357] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 + //SEG788 [374] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 lda #3 sta CIA2_PORT_A_DDR - //SEG751 [358] phi from render_init::vicSelectGfxBank1 to render_init::vicSelectGfxBank1_toDd001 [phi:render_init::vicSelectGfxBank1->render_init::vicSelectGfxBank1_toDd001] + //SEG789 [375] phi from render_init::vicSelectGfxBank1 to render_init::vicSelectGfxBank1_toDd001 [phi:render_init::vicSelectGfxBank1->render_init::vicSelectGfxBank1_toDd001] vicSelectGfxBank1_toDd001_from_vicSelectGfxBank1: jmp vicSelectGfxBank1_toDd001 - //SEG752 render_init::vicSelectGfxBank1_toDd001 + //SEG790 render_init::vicSelectGfxBank1_toDd001 vicSelectGfxBank1_toDd001: jmp vicSelectGfxBank1_b1 - //SEG753 render_init::vicSelectGfxBank1_@1 + //SEG791 render_init::vicSelectGfxBank1_@1 vicSelectGfxBank1_b1: - //SEG754 [359] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 -- _deref_pbuc1=vbuc2 + //SEG792 [376] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 -- _deref_pbuc1=vbuc2 lda #vicSelectGfxBank1_toDd001_return sta CIA2_PORT_A - //SEG755 [360] phi from render_init::vicSelectGfxBank1_@1 to render_init::toD0181 [phi:render_init::vicSelectGfxBank1_@1->render_init::toD0181] - toD0181_from_vicSelectGfxBank1_b1: - jmp toD0181 - //SEG756 render_init::toD0181 - toD0181: - jmp b8 - //SEG757 render_init::@8 - b8: - //SEG758 [361] *((const byte*) D018#0) ← (const byte) render_init::toD0181_return#0 -- _deref_pbuc1=vbuc2 - lda #toD0181_return - sta D018 - //SEG759 [362] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 + jmp b7 + //SEG793 render_init::@7 + b7: + //SEG794 [377] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 lda #VIC_ECM|VIC_DEN|VIC_RSEL|3 sta D011 - //SEG760 [363] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG795 [378] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BGCOL1 - //SEG761 [364] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 -- _deref_pbuc1=vbuc2 + //SEG796 [379] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 -- _deref_pbuc1=vbuc2 lda #BLUE sta BGCOL2 - //SEG762 [365] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 -- _deref_pbuc1=vbuc2 + //SEG797 [380] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 -- _deref_pbuc1=vbuc2 lda #CYAN sta BGCOL3 - //SEG763 [366] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 -- _deref_pbuc1=vbuc2 + //SEG798 [381] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 -- _deref_pbuc1=vbuc2 lda #GREY sta BGCOL4 - //SEG764 [367] call fill - //SEG765 [412] phi from render_init::@8 to fill [phi:render_init::@8->fill] - fill_from_b8: - jsr fill - //SEG766 [368] phi from render_init::@8 to render_init::@9 [phi:render_init::@8->render_init::@9] + //SEG799 [382] call render_screen_original + //SEG800 [412] phi from render_init::@7 to render_screen_original [phi:render_init::@7->render_screen_original] + render_screen_original_from_b7: + //SEG801 [412] phi (byte*) render_screen_original::screen#11 = (const byte*) PLAYFIELD_SCREEN_1#0 [phi:render_init::@7->render_screen_original#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_1 + sta render_screen_original.screen+1 + jsr render_screen_original + //SEG802 [383] phi from render_init::@7 to render_init::@8 [phi:render_init::@7->render_init::@8] + b8_from_b7: + jmp b8 + //SEG803 render_init::@8 + b8: + //SEG804 [384] call render_screen_original + //SEG805 [412] phi from render_init::@8 to render_screen_original [phi:render_init::@8->render_screen_original] + render_screen_original_from_b8: + //SEG806 [412] phi (byte*) render_screen_original::screen#11 = (const byte*) PLAYFIELD_SCREEN_2#0 [phi:render_init::@8->render_screen_original#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_2 + sta render_screen_original.screen+1 + jsr render_screen_original + //SEG807 [385] phi from render_init::@8 to render_init::@9 [phi:render_init::@8->render_init::@9] b9_from_b8: jmp b9 - //SEG767 render_init::@9 + //SEG808 render_init::@9 b9: - //SEG768 [369] call render_screen_original - //SEG769 [386] phi from render_init::@9 to render_screen_original [phi:render_init::@9->render_screen_original] - render_screen_original_from_b9: - jsr render_screen_original - //SEG770 [370] phi from render_init::@9 to render_init::@1 [phi:render_init::@9->render_init::@1] + //SEG809 [386] call fill + //SEG810 [406] phi from render_init::@9 to fill [phi:render_init::@9->fill] + fill_from_b9: + jsr fill + //SEG811 [387] phi from render_init::@9 to render_init::@1 [phi:render_init::@9->render_init::@1] b1_from_b9: - //SEG771 [370] phi (byte*) render_init::li#2 = (const byte*) PLAYFIELD_SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@9->render_init::@1#0] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN+2*$28+$10 - sta li+1 - //SEG772 [370] phi (byte) render_init::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@9->render_init::@1#1] -- vbuxx=vbuc1 - ldx #0 - jmp b1 - //SEG773 [370] phi from render_init::@1 to render_init::@1 [phi:render_init::@1->render_init::@1] - b1_from_b1: - //SEG774 [370] phi (byte*) render_init::li#2 = (byte*) render_init::li#1 [phi:render_init::@1->render_init::@1#0] -- register_copy - //SEG775 [370] phi (byte) render_init::i#2 = (byte) render_init::i#1 [phi:render_init::@1->render_init::@1#1] -- register_copy - jmp b1 - //SEG776 render_init::@1 - b1: - //SEG777 [371] (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 - txa - asl - //SEG778 [372] *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 -- pptc1_derefidx_vbuaa=pbuz1 - tay - lda li - sta screen_lines,y - lda li+1 - sta screen_lines+1,y - //SEG779 [373] (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 - lda li - clc - adc #$28 - sta li - bcc !+ - inc li+1 - !: - //SEG780 [374] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 -- vbuxx=_inc_vbuxx - inx - //SEG781 [375] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 -- vbuxx_neq_vbuc1_then_la1 - cpx #PLAYFIELD_LINES-1+1 - bne b1_from_b1 - //SEG782 [376] phi from render_init::@1 to render_init::@2 [phi:render_init::@1->render_init::@2] - b2_from_b1: - //SEG783 [376] phi (byte) render_init::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_init::@1->render_init::@2#0] -- vbuz1=vbuc1 + //SEG812 [387] phi (byte) render_init::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_init::@9->render_init::@1#0] -- vbuz1=vbuc1 lda #2 sta l - //SEG784 [376] phi (byte*) render_init::line#4 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@1->render_init::@2#1] -- pbuz1=pbuc1 + //SEG813 [387] phi (byte*) render_init::line#4 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@9->render_init::@1#1] -- pbuz1=pbuc1 lda #COLS+4*$28+$10 sta line+1 - jmp b2 - //SEG785 [376] phi from render_init::@5 to render_init::@2 [phi:render_init::@5->render_init::@2] - b2_from_b5: - //SEG786 [376] phi (byte) render_init::l#4 = (byte) render_init::l#1 [phi:render_init::@5->render_init::@2#0] -- register_copy - //SEG787 [376] phi (byte*) render_init::line#4 = (byte*) render_init::line#1 [phi:render_init::@5->render_init::@2#1] -- register_copy - jmp b2 - //SEG788 render_init::@2 - b2: - //SEG789 [377] phi from render_init::@2 to render_init::@3 [phi:render_init::@2->render_init::@3] - b3_from_b2: - //SEG790 [377] phi (byte) render_init::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@2->render_init::@3#0] -- vbuxx=vbuc1 + jmp b1 + //SEG814 [387] phi from render_init::@4 to render_init::@1 [phi:render_init::@4->render_init::@1] + b1_from_b4: + //SEG815 [387] phi (byte) render_init::l#4 = (byte) render_init::l#1 [phi:render_init::@4->render_init::@1#0] -- register_copy + //SEG816 [387] phi (byte*) render_init::line#4 = (byte*) render_init::line#1 [phi:render_init::@4->render_init::@1#1] -- register_copy + jmp b1 + //SEG817 render_init::@1 + b1: + //SEG818 [388] phi from render_init::@1 to render_init::@2 [phi:render_init::@1->render_init::@2] + b2_from_b1: + //SEG819 [388] phi (byte) render_init::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@1->render_init::@2#0] -- vbuxx=vbuc1 ldx #0 - jmp b3 - //SEG791 [377] phi from render_init::@3 to render_init::@3 [phi:render_init::@3->render_init::@3] - b3_from_b3: - //SEG792 [377] phi (byte) render_init::c#2 = (byte) render_init::c#1 [phi:render_init::@3->render_init::@3#0] -- register_copy - jmp b3 - //SEG793 render_init::@3 - b3: - //SEG794 [378] (byte*~) render_init::$18 ← (byte*) render_init::line#4 + (byte) render_init::c#2 -- pbuz1=pbuz2_plus_vbuxx + jmp b2 + //SEG820 [388] phi from render_init::@2 to render_init::@2 [phi:render_init::@2->render_init::@2] + b2_from_b2: + //SEG821 [388] phi (byte) render_init::c#2 = (byte) render_init::c#1 [phi:render_init::@2->render_init::@2#0] -- register_copy + jmp b2 + //SEG822 render_init::@2 + b2: + //SEG823 [389] (byte*~) render_init::$12 ← (byte*) render_init::line#4 + (byte) render_init::c#2 -- pbuz1=pbuz2_plus_vbuxx txa clc adc line - sta _18 + sta _12 lda #0 adc line+1 - sta _18+1 - //SEG795 [379] *((byte*~) render_init::$18) ← (const byte) WHITE#0 -- _deref_pbuz1=vbuc1 + sta _12+1 + //SEG824 [390] *((byte*~) render_init::$12) ← (const byte) WHITE#0 -- _deref_pbuz1=vbuc1 lda #WHITE ldy #0 - sta (_18),y - //SEG796 [380] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 -- vbuxx=_inc_vbuxx + sta (_12),y + //SEG825 [391] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 -- vbuxx=_inc_vbuxx inx - //SEG797 [381] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 -- vbuxx_neq_vbuc1_then_la1 + //SEG826 [392] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 -- vbuxx_neq_vbuc1_then_la1 cpx #PLAYFIELD_COLS-1+1 - bne b3_from_b3 - jmp b5 - //SEG798 render_init::@5 - b5: - //SEG799 [382] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + bne b2_from_b2 + jmp b4 + //SEG827 render_init::@4 + b4: + //SEG828 [393] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 lda line clc adc #$28 @@ -14275,202 +15155,109 @@ render_init: { bcc !+ inc line+1 !: - //SEG800 [383] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 -- vbuz1=_inc_vbuz1 + //SEG829 [394] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 -- vbuz1=_inc_vbuz1 inc l - //SEG801 [384] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 -- vbuz1_neq_vbuc1_then_la1 + //SEG830 [395] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #PLAYFIELD_LINES-1+1 - bne b2_from_b5 - jmp breturn - //SEG802 render_init::@return - breturn: - //SEG803 [385] return - rts -} -//SEG804 render_screen_original -render_screen_original: { - .const SPACE = 0 - .label screen = $c - .label orig = 4 - .label y = 2 - //SEG805 [387] phi from render_screen_original to render_screen_original::@1 [phi:render_screen_original->render_screen_original::@1] - b1_from_render_screen_original: - //SEG806 [387] phi (byte) render_screen_original::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original->render_screen_original::@1#0] -- vbuz1=vbuc1 - lda #0 - sta y - //SEG807 [387] phi (byte*) render_screen_original::orig#5 = (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_screen_original->render_screen_original::@1#1] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN_ORIGINAL+$20*2 - sta orig+1 - //SEG808 [387] phi (byte*) render_screen_original::screen#7 = (const byte*) PLAYFIELD_SCREEN#0 [phi:render_screen_original->render_screen_original::@1#2] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN - sta screen+1 - jmp b1 - //SEG809 [387] phi from render_screen_original::@9 to render_screen_original::@1 [phi:render_screen_original::@9->render_screen_original::@1] - b1_from_b9: - //SEG810 [387] phi (byte) render_screen_original::y#8 = (byte) render_screen_original::y#1 [phi:render_screen_original::@9->render_screen_original::@1#0] -- register_copy - //SEG811 [387] phi (byte*) render_screen_original::orig#5 = (byte*) render_screen_original::orig#1 [phi:render_screen_original::@9->render_screen_original::@1#1] -- register_copy - //SEG812 [387] phi (byte*) render_screen_original::screen#7 = (byte*) render_screen_original::screen#11 [phi:render_screen_original::@9->render_screen_original::@1#2] -- register_copy - jmp b1 - //SEG813 render_screen_original::@1 - b1: - //SEG814 [388] phi from render_screen_original::@1 to render_screen_original::@2 [phi:render_screen_original::@1->render_screen_original::@2] - b2_from_b1: - //SEG815 [388] phi (byte) render_screen_original::x#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original::@1->render_screen_original::@2#0] -- vbuxx=vbuc1 - ldx #0 - //SEG816 [388] phi (byte*) render_screen_original::screen#4 = (byte*) render_screen_original::screen#7 [phi:render_screen_original::@1->render_screen_original::@2#1] -- register_copy - jmp b2 - //SEG817 [388] phi from render_screen_original::@2 to render_screen_original::@2 [phi:render_screen_original::@2->render_screen_original::@2] - b2_from_b2: - //SEG818 [388] phi (byte) render_screen_original::x#4 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2->render_screen_original::@2#0] -- register_copy - //SEG819 [388] phi (byte*) render_screen_original::screen#4 = (byte*) render_screen_original::screen#1 [phi:render_screen_original::@2->render_screen_original::@2#1] -- register_copy - jmp b2 - //SEG820 render_screen_original::@2 - b2: - //SEG821 [389] *((byte*) render_screen_original::screen#4) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 - lda #SPACE - ldy #0 - sta (screen),y - //SEG822 [390] (byte*) render_screen_original::screen#1 ← ++ (byte*) render_screen_original::screen#4 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG823 [391] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 -- vbuxx=_inc_vbuxx - inx - //SEG824 [392] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 -- vbuxx_neq_vbuc1_then_la1 - cpx #4 - bne b2_from_b2 - //SEG825 [393] phi from render_screen_original::@2 render_screen_original::@4 to render_screen_original::@3 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3] - b3_from_b2: + bne b1_from_b4 + //SEG831 [396] phi from render_init::@4 to render_init::@3 [phi:render_init::@4->render_init::@3] b3_from_b4: - //SEG826 [393] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#0] -- register_copy - //SEG827 [393] phi (byte) render_screen_original::x#5 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#1] -- register_copy - //SEG828 [393] phi (byte*) render_screen_original::orig#2 = (byte*) render_screen_original::orig#5 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#2] -- register_copy + //SEG832 [396] phi (byte*) render_init::li_2#2 = (const byte*) PLAYFIELD_SCREEN_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@4->render_init::@3#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_2+2*$28+$10 + sta li_2+1 + //SEG833 [396] phi (byte*) render_init::li_1#2 = (const byte*) PLAYFIELD_SCREEN_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@4->render_init::@3#1] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_1+2*$28+$10 + sta li_1+1 + //SEG834 [396] phi (byte) render_init::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@4->render_init::@3#2] -- vbuxx=vbuc1 + ldx #0 jmp b3 - //SEG829 render_screen_original::@3 + //SEG835 [396] phi from render_init::@3 to render_init::@3 [phi:render_init::@3->render_init::@3] + b3_from_b3: + //SEG836 [396] phi (byte*) render_init::li_2#2 = (byte*) render_init::li_2#1 [phi:render_init::@3->render_init::@3#0] -- register_copy + //SEG837 [396] phi (byte*) render_init::li_1#2 = (byte*) render_init::li_1#1 [phi:render_init::@3->render_init::@3#1] -- register_copy + //SEG838 [396] phi (byte) render_init::i#2 = (byte) render_init::i#1 [phi:render_init::@3->render_init::@3#2] -- register_copy + jmp b3 + //SEG839 render_init::@3 b3: - //SEG830 [394] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=_deref_pbuz1_plus_1 - ldy #0 - lda (orig),y - tay - iny - //SEG831 [395] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 -- pbuz1=_inc_pbuz1 - inc orig - bne !+ - inc orig+1 - !: - //SEG832 [396] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 -- vbuxx_gt_vbuc1_then_la1 + //SEG840 [397] (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 txa - cmp #$e - beq !+ - bcs b11 - !: - //SEG833 [397] phi from render_screen_original::@3 render_screen_original::@7 to render_screen_original::@4 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4] - b4_from_b3: - b4_from_b7: - //SEG834 [397] phi (byte) render_screen_original::c#2 = (byte) render_screen_original::c#0 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4#0] -- register_copy - jmp b4 - //SEG835 render_screen_original::@4 - b4: - //SEG836 [398] *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 -- _deref_pbuz1=vbuyy - tya - ldy #0 - sta (screen),y - //SEG837 [399] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG838 [400] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 -- vbuxx=_inc_vbuxx - inx - //SEG839 [401] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 -- vbuxx_neq_vbuc1_then_la1 - cpx #$24 - bne b3_from_b4 - //SEG840 [402] phi from render_screen_original::@4 render_screen_original::@5 to render_screen_original::@5 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5] - b5_from_b4: - b5_from_b5: - //SEG841 [402] phi (byte) render_screen_original::x#7 = (byte) render_screen_original::x#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#0] -- register_copy - //SEG842 [402] phi (byte*) render_screen_original::screen#6 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#1] -- register_copy - jmp b5 - //SEG843 render_screen_original::@5 - b5: - //SEG844 [403] *((byte*) render_screen_original::screen#6) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 - lda #SPACE - ldy #0 - sta (screen),y - //SEG845 [404] (byte*) render_screen_original::screen#11 ← ++ (byte*) render_screen_original::screen#6 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG846 [405] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 -- vbuxx=_inc_vbuxx - inx - //SEG847 [406] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 -- vbuxx_neq_vbuc1_then_la1 - cpx #$28 - bne b5_from_b5 - jmp b9 - //SEG848 render_screen_original::@9 - b9: - //SEG849 [407] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 -- vbuz1=_inc_vbuz1 - inc y - //SEG850 [408] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 -- vbuz1_neq_vbuc1_then_la1 - lda y - cmp #$19 - bne b1_from_b9 - jmp breturn - //SEG851 render_screen_original::@return - breturn: - //SEG852 [409] return - rts - //SEG853 render_screen_original::@11 - b11: - //SEG854 [410] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 -- vbuxx_lt_vbuc1_then_la1 - cpx #$1b - bcc b7 - //SEG855 [397] phi from render_screen_original::@11 to render_screen_original::@4 [phi:render_screen_original::@11->render_screen_original::@4] - b4_from_b11: - jmp b4 - //SEG856 render_screen_original::@7 - b7: - //SEG857 [411] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 -- vbuyy=vbuyy_bor_vbuc1 - tya - ora #$c0 + asl + //SEG841 [398] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 -- pptc1_derefidx_vbuaa=pbuz1 tay - jmp b4_from_b7 + lda li_1 + sta screen_lines_1,y + lda li_1+1 + sta screen_lines_1+1,y + //SEG842 [399] (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 + txa + asl + //SEG843 [400] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 -- pptc1_derefidx_vbuaa=pbuz1 + tay + lda li_2 + sta screen_lines_2,y + lda li_2+1 + sta screen_lines_2+1,y + //SEG844 [401] (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + lda li_1 + clc + adc #$28 + sta li_1 + bcc !+ + inc li_1+1 + !: + //SEG845 [402] (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + lda li_2 + clc + adc #$28 + sta li_2 + bcc !+ + inc li_2+1 + !: + //SEG846 [403] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 -- vbuxx=_inc_vbuxx + inx + //SEG847 [404] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 -- vbuxx_neq_vbuc1_then_la1 + cpx #PLAYFIELD_LINES-1+1 + bne b3_from_b3 + jmp breturn + //SEG848 render_init::@return + breturn: + //SEG849 [405] return + rts } -//SEG858 fill +//SEG850 fill fill: { .const size = $3e8 .label end = COLS+size - .label addr = 4 - //SEG859 [413] phi from fill to fill::@1 [phi:fill->fill::@1] + .label addr = 7 + //SEG851 [407] phi from fill to fill::@1 [phi:fill->fill::@1] b1_from_fill: - //SEG860 [413] phi (byte*) fill::addr#2 = (const byte*) COLS#0 [phi:fill->fill::@1#0] -- pbuz1=pbuc1 + //SEG852 [407] phi (byte*) fill::addr#2 = (const byte*) COLS#0 [phi:fill->fill::@1#0] -- pbuz1=pbuc1 lda #COLS sta addr+1 jmp b1 - //SEG861 [413] phi from fill::@1 to fill::@1 [phi:fill::@1->fill::@1] + //SEG853 [407] phi from fill::@1 to fill::@1 [phi:fill::@1->fill::@1] b1_from_b1: - //SEG862 [413] phi (byte*) fill::addr#2 = (byte*) fill::addr#1 [phi:fill::@1->fill::@1#0] -- register_copy + //SEG854 [407] phi (byte*) fill::addr#2 = (byte*) fill::addr#1 [phi:fill::@1->fill::@1#0] -- register_copy jmp b1 - //SEG863 fill::@1 + //SEG855 fill::@1 b1: - //SEG864 [414] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 -- _deref_pbuz1=vbuc1 + //SEG856 [408] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 -- _deref_pbuz1=vbuc1 lda #DARK_GREY ldy #0 sta (addr),y - //SEG865 [415] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 -- pbuz1=_inc_pbuz1 + //SEG857 [409] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 -- pbuz1=_inc_pbuz1 inc addr bne !+ inc addr+1 !: - //SEG866 [416] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 -- pbuz1_neq_pbuc1_then_la1 + //SEG858 [410] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 -- pbuz1_neq_pbuc1_then_la1 lda addr+1 cmp #>end bne b1_from_b1 @@ -14478,159 +15265,318 @@ fill: { cmp #render_screen_original::@1] + b1_from_render_screen_original: + //SEG863 [413] phi (byte) render_screen_original::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original->render_screen_original::@1#0] -- vbuz1=vbuc1 + lda #0 + sta y + //SEG864 [413] phi (byte*) render_screen_original::orig#5 = (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_screen_original->render_screen_original::@1#1] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_ORIGINAL+$20*2 + sta orig+1 + //SEG865 [413] phi (byte*) render_screen_original::screen#8 = (byte*) render_screen_original::screen#11 [phi:render_screen_original->render_screen_original::@1#2] -- register_copy + jmp b1 + //SEG866 [413] phi from render_screen_original::@9 to render_screen_original::@1 [phi:render_screen_original::@9->render_screen_original::@1] + b1_from_b9: + //SEG867 [413] phi (byte) render_screen_original::y#8 = (byte) render_screen_original::y#1 [phi:render_screen_original::@9->render_screen_original::@1#0] -- register_copy + //SEG868 [413] phi (byte*) render_screen_original::orig#5 = (byte*) render_screen_original::orig#1 [phi:render_screen_original::@9->render_screen_original::@1#1] -- register_copy + //SEG869 [413] phi (byte*) render_screen_original::screen#8 = (byte*) render_screen_original::screen#12 [phi:render_screen_original::@9->render_screen_original::@1#2] -- register_copy + jmp b1 + //SEG870 render_screen_original::@1 + b1: + //SEG871 [414] phi from render_screen_original::@1 to render_screen_original::@2 [phi:render_screen_original::@1->render_screen_original::@2] + b2_from_b1: + //SEG872 [414] phi (byte) render_screen_original::x#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original::@1->render_screen_original::@2#0] -- vbuxx=vbuc1 + ldx #0 + //SEG873 [414] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#8 [phi:render_screen_original::@1->render_screen_original::@2#1] -- register_copy + jmp b2 + //SEG874 [414] phi from render_screen_original::@2 to render_screen_original::@2 [phi:render_screen_original::@2->render_screen_original::@2] + b2_from_b2: + //SEG875 [414] phi (byte) render_screen_original::x#4 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2->render_screen_original::@2#0] -- register_copy + //SEG876 [414] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@2->render_screen_original::@2#1] -- register_copy + jmp b2 + //SEG877 render_screen_original::@2 + b2: + //SEG878 [415] *((byte*) render_screen_original::screen#5) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 + lda #SPACE + ldy #0 + sta (screen),y + //SEG879 [416] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG880 [417] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 -- vbuxx=_inc_vbuxx + inx + //SEG881 [418] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 -- vbuxx_neq_vbuc1_then_la1 + cpx #4 + bne b2_from_b2 + //SEG882 [419] phi from render_screen_original::@2 render_screen_original::@4 to render_screen_original::@3 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3] + b3_from_b2: + b3_from_b4: + //SEG883 [419] phi (byte*) render_screen_original::screen#10 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#0] -- register_copy + //SEG884 [419] phi (byte) render_screen_original::x#5 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#1] -- register_copy + //SEG885 [419] phi (byte*) render_screen_original::orig#2 = (byte*) render_screen_original::orig#5 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#2] -- register_copy + jmp b3 + //SEG886 render_screen_original::@3 + b3: + //SEG887 [420] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=_deref_pbuz1_plus_1 + ldy #0 + lda (orig),y + tay + iny + //SEG888 [421] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 -- pbuz1=_inc_pbuz1 + inc orig + bne !+ + inc orig+1 + !: + //SEG889 [422] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 -- vbuxx_gt_vbuc1_then_la1 + txa + cmp #$e + beq !+ + bcs b11 + !: + //SEG890 [423] phi from render_screen_original::@3 render_screen_original::@7 to render_screen_original::@4 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4] + b4_from_b3: + b4_from_b7: + //SEG891 [423] phi (byte) render_screen_original::c#2 = (byte) render_screen_original::c#0 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4#0] -- register_copy + jmp b4 + //SEG892 render_screen_original::@4 + b4: + //SEG893 [424] *((byte*) render_screen_original::screen#10) ← (byte) render_screen_original::c#2 -- _deref_pbuz1=vbuyy + tya + ldy #0 + sta (screen),y + //SEG894 [425] (byte*) render_screen_original::screen#3 ← ++ (byte*) render_screen_original::screen#10 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG895 [426] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 -- vbuxx=_inc_vbuxx + inx + //SEG896 [427] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 -- vbuxx_neq_vbuc1_then_la1 + cpx #$24 + bne b3_from_b4 + //SEG897 [428] phi from render_screen_original::@4 render_screen_original::@5 to render_screen_original::@5 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5] + b5_from_b4: + b5_from_b5: + //SEG898 [428] phi (byte) render_screen_original::x#7 = (byte) render_screen_original::x#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#0] -- register_copy + //SEG899 [428] phi (byte*) render_screen_original::screen#7 = (byte*) render_screen_original::screen#3 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#1] -- register_copy + jmp b5 + //SEG900 render_screen_original::@5 + b5: + //SEG901 [429] *((byte*) render_screen_original::screen#7) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 + lda #SPACE + ldy #0 + sta (screen),y + //SEG902 [430] (byte*) render_screen_original::screen#12 ← ++ (byte*) render_screen_original::screen#7 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG903 [431] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 -- vbuxx=_inc_vbuxx + inx + //SEG904 [432] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 -- vbuxx_neq_vbuc1_then_la1 + cpx #$28 + bne b5_from_b5 + jmp b9 + //SEG905 render_screen_original::@9 + b9: + //SEG906 [433] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 -- vbuz1=_inc_vbuz1 + inc y + //SEG907 [434] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 -- vbuz1_neq_vbuc1_then_la1 + lda y + cmp #$19 + bne b1_from_b9 + jmp breturn + //SEG908 render_screen_original::@return + breturn: + //SEG909 [435] return + rts + //SEG910 render_screen_original::@11 + b11: + //SEG911 [436] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 -- vbuxx_lt_vbuc1_then_la1 + cpx #$1b + bcc b7 + //SEG912 [423] phi from render_screen_original::@11 to render_screen_original::@4 [phi:render_screen_original::@11->render_screen_original::@4] + b4_from_b11: + jmp b4 + //SEG913 render_screen_original::@7 + b7: + //SEG914 [437] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 -- vbuyy=vbuyy_bor_vbuc1 + tya + ora #$c0 + tay + jmp b4_from_b7 +} +//SEG915 sid_rnd_init sid_rnd_init: { - //SEG870 [418] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 -- _deref_pwuc1=vwuc2 + //SEG916 [438] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 -- _deref_pwuc1=vwuc2 lda #<$ffff sta SID_VOICE3_FREQ lda #>$ffff sta SID_VOICE3_FREQ+1 - //SEG871 [419] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 -- _deref_pbuc1=vbuc2 + //SEG917 [439] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 -- _deref_pbuc1=vbuc2 lda #SID_CONTROL_NOISE sta SID_VOICE3_CONTROL jmp breturn - //SEG872 sid_rnd_init::@return + //SEG918 sid_rnd_init::@return breturn: - //SEG873 [420] return + //SEG919 [440] return rts } -//SEG874 irq +//SEG920 irq irq: { .const toSpritePtr2_return = PLAYFIELD_SPRITES>>6 - //SEG875 entry interrupt(HARDWARE_CLOBBER) + //SEG921 entry interrupt(HARDWARE_CLOBBER) sta rega+1 stx regx+1 - //SEG876 [421] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 -- _deref_pbuc1=vbuc2 + //SEG922 [441] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 -- _deref_pbuc1=vbuc2 lda #DARK_GREY sta BORDERCOL - //SEG877 [422] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 -- vbuaa=vbuz1 + //SEG923 [442] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 -- vbuaa=vbuz1 lda irq_sprite_ypos - //SEG878 [423] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG924 [443] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS - //SEG879 [424] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG925 [444] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS+2 - //SEG880 [425] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG926 [445] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS+4 - //SEG881 [426] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG927 [446] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS+6 jmp b1 - //SEG882 irq::@1 + //SEG928 irq::@1 b1: - //SEG883 [427] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 -- _deref_pbuc1_neq_vbuz1_then_la1 + //SEG929 [447] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 -- _deref_pbuc1_neq_vbuz1_then_la1 lda RASTER cmp irq_sprite_ypos bne b1 jmp b5 - //SEG884 irq::@5 + //SEG930 irq::@5 b5: - //SEG885 [428] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuaa=vbuz1 + //SEG931 [448] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuaa=vbuz1 lda irq_sprite_ptr - //SEG886 [429] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa - sta PLAYFIELD_SPRITE_PTRS - //SEG887 [430] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa + //SEG932 [449] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_1 + //SEG933 [450] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_2 + //SEG934 [451] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa tax inx - //SEG888 [431] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+1 - //SEG889 [432] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+2 - //SEG890 [433] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx + //SEG935 [452] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+1 + //SEG936 [453] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+1 + //SEG937 [454] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+2 + //SEG938 [455] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+2 + //SEG939 [456] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx inx - //SEG891 [434] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+3 - //SEG892 [435] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 + //SEG940 [457] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+3 + //SEG941 [458] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+3 + //SEG942 [459] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 inc irq_cnt - //SEG893 [436] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG943 [460] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 lda irq_cnt cmp #$a beq b2 jmp b6 - //SEG894 irq::@6 + //SEG944 irq::@6 b6: - //SEG895 [437] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG945 [461] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_raster_next sta irq_raster_next - //SEG896 [438] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG946 [462] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_sprite_ypos sta irq_sprite_ypos - //SEG897 [439] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 + //SEG947 [463] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lda #3 clc adc irq_sprite_ptr sta irq_sprite_ptr - //SEG898 [440] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] + //SEG948 [464] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] b3_from_b6: b3_from_b9: - //SEG899 [440] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy + //SEG949 [464] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy jmp b3 - //SEG900 irq::@3 + //SEG950 irq::@3 b3: - //SEG901 [441] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 + //SEG951 [465] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 ldx irq_raster_next - //SEG902 [442] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 + //SEG952 [466] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 txa and #7 - //SEG903 [443] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 + //SEG953 [467] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 cmp #3 bne b4_from_b3 jmp b8 - //SEG904 irq::@8 + //SEG954 irq::@8 b8: - //SEG905 [444] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 + //SEG955 [468] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 dex - //SEG906 [445] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] + //SEG956 [469] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] b4_from_b3: b4_from_b8: - //SEG907 [445] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy + //SEG957 [469] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy jmp b4 - //SEG908 irq::@4 + //SEG958 irq::@4 b4: - //SEG909 [446] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx + //SEG959 [470] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx stx RASTER - //SEG910 [447] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG960 [471] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG911 [448] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG961 [472] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BORDERCOL jmp breturn - //SEG912 irq::@return + //SEG962 irq::@return breturn: - //SEG913 [449] return - exit interrupt(HARDWARE_CLOBBER) + //SEG963 [473] return - exit interrupt(HARDWARE_CLOBBER) rega: lda #00 regx: ldx #00 rti - //SEG914 irq::@2 + //SEG964 irq::@2 b2: - //SEG915 [450] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 + //SEG965 [474] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt - //SEG916 [451] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 + //SEG966 [475] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next - //SEG917 [452] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 + //SEG967 [476] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos - //SEG918 [453] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] + //SEG968 [477] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] toSpritePtr2_from_b2: jmp toSpritePtr2 - //SEG919 irq::toSpritePtr2 + //SEG969 irq::toSpritePtr2 toSpritePtr2: jmp b9 - //SEG920 irq::@9 + //SEG970 irq::@9 b9: - //SEG921 [454] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 + //SEG971 [478] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 lda #toSpritePtr2_return sta irq_sprite_ptr jmp b3_from_b9 @@ -14656,7 +15602,10 @@ irq: { PIECES_CHARS: .byte $58, $59, $99, $59, $58, $58, $99 PIECES_START_X: .byte 4, 4, 4, 4, 4, 3, 4 PIECES_START_Y: .byte 2, 1, 1, 1, 2, 0, 1 - screen_lines: .fill 2*PLAYFIELD_LINES, 0 + .align $80 + screen_lines_1: .fill 2*PLAYFIELD_LINES, 0 + .align $40 + screen_lines_2: .fill 2*PLAYFIELD_LINES, 0 playfield_lines: .fill 2*PLAYFIELD_LINES, 0 playfield: .fill PLAYFIELD_LINES*PLAYFIELD_COLS, 0 PIECES: .word PIECE_T, PIECE_S, PIECE_Z, PIECE_J, PIECE_O, PIECE_I, PIECE_L @@ -14684,31 +15633,33 @@ irq: { ASSEMBLER OPTIMIZATIONS Removing instruction jmp b14 +Removing instruction jmp b20 +Removing instruction jmp b21 +Removing instruction jmp toSpritePtr1 +Removing instruction jmp b33 +Removing instruction jmp b32 +Removing instruction jmp bend +Removing instruction jmp b15 +Removing instruction jmp b16 +Removing instruction jmp b17 Removing instruction jmp b18 Removing instruction jmp b19 -Removing instruction jmp toSpritePtr1 -Removing instruction jmp b31 -Removing instruction jmp b30 -Removing instruction jmp bend +Removing instruction jmp b20 Removing instruction jmp b21 -Removing instruction jmp b22 +Removing instruction jmp b1 +Removing instruction jmp b4 +Removing instruction jmp b6 Removing instruction jmp b23 Removing instruction jmp b24 Removing instruction jmp b25 Removing instruction jmp b26 Removing instruction jmp b27 -Removing instruction jmp b1 -Removing instruction jmp b4 -Removing instruction jmp b7 -Removing instruction jmp b9 +Removing instruction jmp b28 +Removing instruction jmp b13 Removing instruction jmp b29 Removing instruction jmp b30 -Removing instruction jmp b31 -Removing instruction jmp b32 -Removing instruction jmp b33 -Removing instruction jmp b19 -Removing instruction jmp b34 -Removing instruction jmp b10 +Removing instruction jmp b7 +Removing instruction jmp breturn Removing instruction jmp b1 Removing instruction jmp b7 Removing instruction jmp b3 @@ -14801,6 +15752,10 @@ Removing instruction jmp b17 Removing instruction jmp b5 Removing instruction jmp b19 Removing instruction jmp breturn +Removing instruction jmp toD0182 +Removing instruction jmp b2 +Removing instruction jmp breturn +Removing instruction jmp toD0181 Removing instruction jmp b1 Removing instruction jmp b2 Removing instruction jmp breturn @@ -14810,13 +15765,15 @@ Removing instruction jmp breturn Removing instruction jmp vicSelectGfxBank1 Removing instruction jmp vicSelectGfxBank1_toDd001 Removing instruction jmp vicSelectGfxBank1_b1 -Removing instruction jmp toD0181 +Removing instruction jmp b7 Removing instruction jmp b8 Removing instruction jmp b9 Removing instruction jmp b1 Removing instruction jmp b2 +Removing instruction jmp b4 Removing instruction jmp b3 -Removing instruction jmp b5 +Removing instruction jmp breturn +Removing instruction jmp b1 Removing instruction jmp breturn Removing instruction jmp b1 Removing instruction jmp b2 @@ -14825,8 +15782,6 @@ Removing instruction jmp b4 Removing instruction jmp b5 Removing instruction jmp b9 Removing instruction jmp breturn -Removing instruction jmp b1 -Removing instruction jmp breturn Removing instruction jmp breturn Removing instruction jmp b1 Removing instruction jmp b5 @@ -14852,6 +15807,7 @@ Removing instruction lda row_scan Removing instruction lda SPRITES_MC Removing instruction lda SPRITES_EXPAND_Y Succesful ASM optimization Pass5UnnecesaryLoadElimination +Replacing label b7_from_b28 with b7 Replacing label b1 with b4 Replacing label b1_from_b3 with b1 Replacing label b4_from_b5 with b4 @@ -14880,40 +15836,44 @@ Replacing label b5_from_b15 with b5 Replacing label b4_from_b5 with b4 Replacing label b3_from_b19 with b3 Replacing label b5_from_b7 with b5 +Replacing label toD0181_from_render_show with toD0181 Replacing label b1_from_b1 with b1 Replacing label b1_from_b1 with b1 -Replacing label b1_from_b1 with b1 +Replacing label b2_from_b2 with b2 +Replacing label b1_from_b4 with b1 Replacing label b3_from_b3 with b3 -Replacing label b2_from_b5 with b2 +Replacing label b1_from_b1 with b1 +Replacing label b1_from_b1 with b1 Replacing label b2_from_b2 with b2 Replacing label b3_from_b4 with b3 Replacing label b5_from_b5 with b5 Replacing label b1_from_b9 with b1 Replacing label b4_from_b7 with b4 -Replacing label b1_from_b1 with b1 -Replacing label b1_from_b1 with b1 Replacing label b4_from_b3 with b4 Replacing label b3_from_b9 with b3 Removing instruction b14: -Removing instruction b18: -Removing instruction b19: -Removing instruction toSpritePtr1_from_b19: +Removing instruction b20: +Removing instruction b21: +Removing instruction toSpritePtr1_from_b21: Removing instruction toSpritePtr1: -Removing instruction b30_from_b31: -Removing instruction main_from_b30: -Removing instruction bend_from_b30: -Removing instruction b22_from_b21: -Removing instruction b23_from_b22: -Removing instruction b24_from_b23: -Removing instruction play_init_from_b24: -Removing instruction b25_from_b24: -Removing instruction play_spawn_current_from_b25: -Removing instruction b26_from_b25: -Removing instruction render_playfield_from_b26: +Removing instruction b32_from_b33: +Removing instruction main_from_b32: +Removing instruction bend_from_b32: +Removing instruction b16_from_b15: +Removing instruction b17_from_b16: +Removing instruction b18_from_b17: +Removing instruction play_init_from_b18: +Removing instruction b19_from_b18: +Removing instruction play_spawn_current_from_b19: +Removing instruction b20_from_b19: +Removing instruction render_playfield_from_b20: Removing instruction b1: -Removing instruction b29_from_b9: -Removing instruction b19_from_b33: -Removing instruction render_playfield_from_b19: +Removing instruction b23_from_b6: +Removing instruction keyboard_event_scan_from_b23: +Removing instruction b24_from_b23: +Removing instruction b30_from_b29: +Removing instruction b7_from_b28: +Removing instruction b7_from_b30: Removing instruction b1_from_b3: Removing instruction b3_from_b5: Removing instruction b3_from_b7: @@ -14969,18 +15929,23 @@ Removing instruction b5_from_b15: Removing instruction b5_from_b17: Removing instruction b5_from_b4: Removing instruction b5_from_b7: +Removing instruction toD0182_from_render_show: +Removing instruction b2_from_toD0182: +Removing instruction toD0181_from_render_show: +Removing instruction b2_from_toD0181: Removing instruction b1_from_b1: Removing instruction b1_from_b1: Removing instruction vicSelectGfxBank1_toDd001_from_vicSelectGfxBank1: Removing instruction vicSelectGfxBank1_toDd001: -Removing instruction toD0181_from_vicSelectGfxBank1_b1: -Removing instruction toD0181: +Removing instruction b8_from_b7: +Removing instruction render_screen_original_from_b8: Removing instruction b9_from_b8: -Removing instruction render_screen_original_from_b9: -Removing instruction b1_from_b1: -Removing instruction b2_from_b5: -Removing instruction b3_from_b2: +Removing instruction fill_from_b9: +Removing instruction b1_from_b4: +Removing instruction b2_from_b1: +Removing instruction b2_from_b2: Removing instruction b3_from_b3: +Removing instruction b1_from_b1: Removing instruction b1_from_b9: Removing instruction b2_from_b1: Removing instruction b2_from_b2: @@ -14990,7 +15955,6 @@ Removing instruction b4_from_b3: Removing instruction b4_from_b7: Removing instruction b5_from_b4: Removing instruction b5_from_b5: -Removing instruction b1_from_b1: Removing instruction b3_from_b6: Removing instruction b3_from_b9: Removing instruction b4_from_b3: @@ -14999,30 +15963,33 @@ Removing instruction breturn: Removing instruction toSpritePtr2_from_b2: Removing instruction toSpritePtr2: Succesful ASM optimization Pass5RedundantLabelElimination -Removing instruction b31: -Removing instruction b30: +Removing instruction b33: +Removing instruction b32: Removing instruction bend: +Removing instruction b15: +Removing instruction render_init_from_b15: +Removing instruction b16: +Removing instruction b17: +Removing instruction b18: +Removing instruction b19: +Removing instruction b20: Removing instruction b21: -Removing instruction render_init_from_b21: -Removing instruction b22: +Removing instruction render_current_from_b21: +Removing instruction b1_from_b21: +Removing instruction b6: Removing instruction b23: Removing instruction b24: Removing instruction b25: Removing instruction b26: Removing instruction b27: -Removing instruction render_current_from_b27: -Removing instruction b1_from_b27: -Removing instruction b9: -Removing instruction keyboard_event_scan_from_b9: +Removing instruction b28: +Removing instruction b13: +Removing instruction render_playfield_from_b13: Removing instruction b29: +Removing instruction render_current_from_b29: Removing instruction b30: -Removing instruction b31: -Removing instruction b32: -Removing instruction b33: -Removing instruction b19: -Removing instruction b34: -Removing instruction render_current_from_b34: -Removing instruction b1_from_b10: +Removing instruction b1_from_b7: +Removing instruction breturn: Removing instruction b1_from_render_current: Removing instruction breturn: Removing instruction b4_from_b2: @@ -15107,6 +16074,8 @@ Removing instruction b16: Removing instruction b17: Removing instruction b19: Removing instruction breturn: +Removing instruction toD0182: +Removing instruction breturn: Removing instruction b1_from_play_init: Removing instruction b2: Removing instruction breturn: @@ -15115,19 +16084,20 @@ Removing instruction b1_from_sprites_init: Removing instruction breturn: Removing instruction vicSelectGfxBank1: Removing instruction vicSelectGfxBank1_b1: +Removing instruction b7: +Removing instruction render_screen_original_from_b7: Removing instruction b8: -Removing instruction fill_from_b8: Removing instruction b9: Removing instruction b1_from_b9: -Removing instruction b2_from_b1: -Removing instruction b5: +Removing instruction b4: +Removing instruction b3_from_b4: +Removing instruction breturn: +Removing instruction b1_from_fill: Removing instruction breturn: Removing instruction b1_from_render_screen_original: Removing instruction b9: Removing instruction breturn: Removing instruction b4_from_b11: -Removing instruction b1_from_fill: -Removing instruction breturn: Removing instruction breturn: Removing instruction b5: Removing instruction b6: @@ -15159,8 +16129,8 @@ Removing instruction jmp b1 Removing instruction jmp b2 Removing instruction jmp b3 Removing instruction jmp b1 -Removing instruction jmp b2 Removing instruction jmp b1 +Removing instruction jmp b2 Succesful ASM optimization Pass5NextJumpElimination Removing instruction b17: Succesful ASM optimization Pass5UnusedLabelElimination @@ -15169,10 +16139,10 @@ Succesful ASM optimization Pass5UnreachableCodeElimination FINAL SYMBOL TABLE (label) @14 -(label) @18 -(label) @19 -(label) @30 -(label) @31 +(label) @20 +(label) @21 +(label) @32 +(label) @33 (label) @begin (label) @end (byte*) BGCOL @@ -15364,15 +16334,19 @@ FINAL SYMBOL TABLE (const byte) PLAYFIELD_COLS#0 PLAYFIELD_COLS = (byte/signed byte/word/signed word/dword/signed dword) 10 (byte) PLAYFIELD_LINES (const byte) PLAYFIELD_LINES#0 PLAYFIELD_LINES = (byte/signed byte/word/signed word/dword/signed dword) 22 -(byte*) PLAYFIELD_SCREEN -(const byte*) PLAYFIELD_SCREEN#0 PLAYFIELD_SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_1 +(const byte*) PLAYFIELD_SCREEN_1#0 PLAYFIELD_SCREEN_1 = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_2 +(const byte*) PLAYFIELD_SCREEN_2#0 PLAYFIELD_SCREEN_2 = ((byte*))(word/signed word/dword/signed dword) 11264 (byte*) PLAYFIELD_SCREEN_ORIGINAL -(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0 PLAYFIELD_SCREEN_ORIGINAL = ((byte*))(word/signed word/dword/signed dword) 11264 +(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0 PLAYFIELD_SCREEN_ORIGINAL = ((byte*))(word/signed word/dword/signed dword) 6144 (byte) PLAYFIELD_SCREEN_ORIGINAL_WIDTH (byte*) PLAYFIELD_SPRITES (const byte*) PLAYFIELD_SPRITES#0 PLAYFIELD_SPRITES = ((byte*))(word/signed word/dword/signed dword) 8192 -(byte*) PLAYFIELD_SPRITE_PTRS -(const byte*) PLAYFIELD_SPRITE_PTRS#0 PLAYFIELD_SPRITE_PTRS = (const byte*) PLAYFIELD_SCREEN#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(const byte*) PLAYFIELD_SPRITE_PTRS_1#0 PLAYFIELD_SPRITE_PTRS_1 = (const byte*) PLAYFIELD_SCREEN_1#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_2 +(const byte*) PLAYFIELD_SPRITE_PTRS_2#0 PLAYFIELD_SPRITE_PTRS_2 = (const byte*) PLAYFIELD_SCREEN_2#0+(const word) SPRITE_PTRS#0 (byte*) PROCPORT (const byte*) PROCPORT#0 PROCPORT = ((byte*))(byte/signed byte/word/signed word/dword/signed dword) 1 (byte) PROCPORT_BASIC_KERNEL_IO @@ -15444,74 +16418,74 @@ FINAL SYMBOL TABLE (const byte) WHITE#0 WHITE = (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) YELLOW (byte) current_movedown_counter -(byte) current_movedown_counter#1 current_movedown_counter zp ZP_BYTE:2 0.5333333333333333 -(byte) current_movedown_counter#10 current_movedown_counter zp ZP_BYTE:2 0.52 -(byte) current_movedown_counter#12 current_movedown_counter zp ZP_BYTE:2 1.3 +(byte) current_movedown_counter#1 current_movedown_counter zp ZP_BYTE:4 0.5333333333333333 +(byte) current_movedown_counter#10 current_movedown_counter zp ZP_BYTE:4 0.4482758620689655 +(byte) current_movedown_counter#12 current_movedown_counter zp ZP_BYTE:4 1.0833333333333333 (byte) current_movedown_fast (const byte) current_movedown_fast#0 current_movedown_fast = (byte/signed byte/word/signed word/dword/signed dword) 5 (byte) current_movedown_slow (const byte) current_movedown_slow#0 current_movedown_slow = (byte/signed byte/word/signed word/dword/signed dword) 50 (byte) current_orientation -(byte) current_orientation#10 current_orientation zp ZP_BYTE:14 0.5 -(byte) current_orientation#14 current_orientation zp ZP_BYTE:14 0.32653061224489793 -(byte) current_orientation#19 current_orientation zp ZP_BYTE:14 1.1333333333333333 -(byte) current_orientation#29 current_orientation zp ZP_BYTE:14 4.0 -(byte) current_orientation#4 current_orientation zp ZP_BYTE:14 3.0 +(byte) current_orientation#10 current_orientation zp ZP_BYTE:17 0.4722222222222223 +(byte) current_orientation#14 current_orientation zp ZP_BYTE:17 0.32653061224489793 +(byte) current_orientation#19 current_orientation zp ZP_BYTE:17 0.8947368421052632 +(byte) current_orientation#29 current_orientation zp ZP_BYTE:17 4.0 +(byte) current_orientation#4 current_orientation zp ZP_BYTE:17 3.0 (byte*) current_piece -(byte*) current_piece#10 current_piece zp ZP_WORD:12 0.3484848484848484 -(byte*) current_piece#12 current_piece#12 zp ZP_WORD:4 10.0 -(byte*) current_piece#16 current_piece zp ZP_WORD:12 0.5588235294117647 -(byte*) current_piece#20 current_piece zp ZP_WORD:12 6.0 -(byte*~) current_piece#72 current_piece zp ZP_WORD:12 4.0 -(byte*~) current_piece#73 current_piece#73 zp ZP_WORD:4 4.0 -(byte*~) current_piece#74 current_piece#74 zp ZP_WORD:4 4.0 -(byte*~) current_piece#75 current_piece#75 zp ZP_WORD:4 4.0 -(byte*~) current_piece#76 current_piece#76 zp ZP_WORD:4 4.0 -(byte*~) current_piece#77 current_piece zp ZP_WORD:12 4.0 +(byte*) current_piece#10 current_piece zp ZP_WORD:15 0.3285714285714286 +(byte*) current_piece#12 current_piece#12 zp ZP_WORD:7 10.0 +(byte*) current_piece#16 current_piece zp ZP_WORD:15 0.5277777777777779 +(byte*) current_piece#20 current_piece zp ZP_WORD:15 6.0 +(byte*~) current_piece#71 current_piece zp ZP_WORD:15 4.0 +(byte*~) current_piece#73 current_piece#73 zp ZP_WORD:7 4.0 +(byte*~) current_piece#74 current_piece#74 zp ZP_WORD:7 4.0 +(byte*~) current_piece#75 current_piece#75 zp ZP_WORD:7 4.0 +(byte*~) current_piece#76 current_piece#76 zp ZP_WORD:7 4.0 +(byte*~) current_piece#77 current_piece zp ZP_WORD:15 4.0 (byte) current_piece_char -(byte) current_piece_char#1 current_piece_char zp ZP_BYTE:18 1.04 -(byte) current_piece_char#12 current_piece_char zp ZP_BYTE:18 0.6153846153846154 -(byte) current_piece_char#15 current_piece_char zp ZP_BYTE:18 19.96078431372549 -(byte) current_piece_char#20 current_piece_char zp ZP_BYTE:18 6.0 -(byte) current_piece_char#62 current_piece_char#62 zp ZP_BYTE:6 48.285714285714285 -(byte~) current_piece_char#87 current_piece_char#87 zp ZP_BYTE:6 4.0 -(byte~) current_piece_char#88 current_piece_char#88 zp ZP_BYTE:6 22.0 +(byte) current_piece_char#1 current_piece_char zp ZP_BYTE:21 0.896551724137931 +(byte) current_piece_char#12 current_piece_char zp ZP_BYTE:21 0.6153846153846154 +(byte) current_piece_char#15 current_piece_char zp ZP_BYTE:21 19.20754716981132 +(byte) current_piece_char#20 current_piece_char zp ZP_BYTE:21 6.0 +(byte) current_piece_char#62 current_piece_char#62 zp ZP_BYTE:9 46.09090909090909 +(byte~) current_piece_char#87 current_piece_char#87 zp ZP_BYTE:9 4.0 +(byte~) current_piece_char#88 current_piece_char#88 zp ZP_BYTE:9 22.0 (byte*) current_piece_gfx -(byte*) current_piece_gfx#1 current_piece_gfx zp ZP_WORD:15 0.2962962962962963 -(byte*~) current_piece_gfx#100 current_piece_gfx#100 zp ZP_WORD:4 11.0 -(byte*) current_piece_gfx#14 current_piece_gfx zp ZP_WORD:15 1.8666666666666665 -(byte*) current_piece_gfx#16 current_piece_gfx zp ZP_WORD:15 0.5 -(byte*) current_piece_gfx#20 current_piece_gfx zp ZP_WORD:15 19.96078431372549 -(byte*) current_piece_gfx#26 current_piece_gfx zp ZP_WORD:15 6.0 -(byte*) current_piece_gfx#3 current_piece_gfx zp ZP_WORD:15 4.0 -(byte*) current_piece_gfx#52 current_piece_gfx#52 zp ZP_WORD:4 48.285714285714285 -(byte*~) current_piece_gfx#99 current_piece_gfx#99 zp ZP_WORD:4 2.0 +(byte*) current_piece_gfx#1 current_piece_gfx zp ZP_WORD:18 0.2962962962962963 +(byte*~) current_piece_gfx#100 current_piece_gfx#100 zp ZP_WORD:7 11.0 +(byte*) current_piece_gfx#14 current_piece_gfx zp ZP_WORD:18 1.4736842105263155 +(byte*) current_piece_gfx#16 current_piece_gfx zp ZP_WORD:18 0.5 +(byte*) current_piece_gfx#20 current_piece_gfx zp ZP_WORD:18 19.20754716981132 +(byte*) current_piece_gfx#26 current_piece_gfx zp ZP_WORD:18 6.0 +(byte*) current_piece_gfx#3 current_piece_gfx zp ZP_WORD:18 4.0 +(byte*) current_piece_gfx#52 current_piece_gfx#52 zp ZP_WORD:7 46.09090909090909 +(byte*~) current_piece_gfx#99 current_piece_gfx#99 zp ZP_WORD:7 2.0 (byte) current_xpos -(byte) current_xpos#1 current_xpos zp ZP_BYTE:17 0.72 -(byte) current_xpos#10 current_xpos zp ZP_BYTE:17 2.3529411764705883 -(byte~) current_xpos#109 current_xpos#109 zp ZP_BYTE:3 1.3333333333333333 -(byte~) current_xpos#110 current_xpos#110 zp ZP_BYTE:3 7.333333333333333 -(byte) current_xpos#19 current_xpos zp ZP_BYTE:17 0.871794871794872 -(byte) current_xpos#2 current_xpos zp ZP_BYTE:17 4.0 -(byte) current_xpos#23 current_xpos zp ZP_BYTE:17 0.5333333333333333 -(byte) current_xpos#33 current_xpos zp ZP_BYTE:17 6.0 -(byte) current_xpos#4 current_xpos zp ZP_BYTE:17 4.0 -(byte) current_xpos#47 current_xpos#47 zp ZP_BYTE:3 5.428571428571429 +(byte) current_xpos#1 current_xpos zp ZP_BYTE:20 0.72 +(byte) current_xpos#10 current_xpos zp ZP_BYTE:20 2.2641509433962264 +(byte~) current_xpos#109 current_xpos#109 zp ZP_BYTE:6 1.3333333333333333 +(byte~) current_xpos#110 current_xpos#110 zp ZP_BYTE:6 7.333333333333333 +(byte) current_xpos#19 current_xpos zp ZP_BYTE:20 0.7906976744186045 +(byte) current_xpos#2 current_xpos zp ZP_BYTE:20 4.0 +(byte) current_xpos#23 current_xpos zp ZP_BYTE:20 0.5333333333333333 +(byte) current_xpos#33 current_xpos zp ZP_BYTE:20 6.0 +(byte) current_xpos#4 current_xpos zp ZP_BYTE:20 4.0 +(byte) current_xpos#47 current_xpos#47 zp ZP_BYTE:6 5.181818181818182 (byte) current_ypos -(byte) current_ypos#0 current_ypos zp ZP_BYTE:11 4.0 -(byte) current_ypos#13 current_ypos zp ZP_BYTE:11 0.48484848484848475 -(byte) current_ypos#18 current_ypos zp ZP_BYTE:11 0.5714285714285714 -(byte) current_ypos#21 current_ypos zp ZP_BYTE:11 0.6176470588235294 -(byte) current_ypos#29 current_ypos zp ZP_BYTE:11 6.0 +(byte) current_ypos#0 current_ypos zp ZP_BYTE:14 4.0 +(byte) current_ypos#13 current_ypos zp ZP_BYTE:14 0.4571428571428572 +(byte) current_ypos#18 current_ypos zp ZP_BYTE:14 0.5714285714285714 +(byte) current_ypos#21 current_ypos zp ZP_BYTE:14 0.5833333333333335 +(byte) current_ypos#29 current_ypos zp ZP_BYTE:14 6.0 (byte~) current_ypos#83 reg byte x 1.0 -(byte~) current_ypos#84 reg byte x 5.5 +(byte~) current_ypos#84 reg byte x 4.4 (byte) current_ypos#9 reg byte x 15.0 (void()) fill((byte*) fill::start , (word) fill::size , (byte) fill::val) (label) fill::@1 (label) fill::@return (byte*) fill::addr -(byte*) fill::addr#1 addr zp ZP_WORD:4 16.5 -(byte*) fill::addr#2 addr zp ZP_WORD:4 16.5 +(byte*) fill::addr#1 addr zp ZP_WORD:7 16.5 +(byte*) fill::addr#2 addr zp ZP_WORD:7 16.5 (byte*) fill::end (const byte*) fill::end#0 end = (const byte*) COLS#0+(const word) fill::size#0 (word) fill::size @@ -15530,9 +16504,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) irq::@9 (label) irq::@return (byte) irq::ptr -(byte) irq::ptr#0 reg byte a 3.0 -(byte) irq::ptr#1 reg byte x 2.6666666666666665 -(byte) irq::ptr#2 reg byte x 4.0 +(byte) irq::ptr#0 reg byte a 2.6666666666666665 +(byte) irq::ptr#1 reg byte x 2.4 +(byte) irq::ptr#2 reg byte x 3.0 (byte) irq::raster_next (byte) irq::raster_next#0 reg byte x 2.6666666666666665 (byte) irq::raster_next#1 reg byte x 4.0 @@ -15547,22 +16521,22 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) irq::ypos (byte) irq::ypos#0 reg byte a 2.5 (byte) irq_cnt -(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:23 0.2857142857142857 -(byte) irq_cnt#1 irq_cnt zp ZP_BYTE:23 4.0 -(byte) irq_cnt#13 irq_cnt zp ZP_BYTE:23 20.0 +(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:26 0.2222222222222222 +(byte) irq_cnt#1 irq_cnt zp ZP_BYTE:26 4.0 +(byte) irq_cnt#13 irq_cnt zp ZP_BYTE:26 20.0 (byte) irq_raster_next -(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:20 0.25 -(byte) irq_raster_next#1 irq_raster_next zp ZP_BYTE:20 1.0 -(byte) irq_raster_next#12 irq_raster_next zp ZP_BYTE:20 6.0 -(byte) irq_raster_next#2 irq_raster_next zp ZP_BYTE:20 1.3333333333333333 +(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:23 0.2 +(byte) irq_raster_next#1 irq_raster_next zp ZP_BYTE:23 1.0 +(byte) irq_raster_next#12 irq_raster_next zp ZP_BYTE:23 6.0 +(byte) irq_raster_next#2 irq_raster_next zp ZP_BYTE:23 1.3333333333333333 (byte) irq_sprite_ptr -(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:22 0.3333333333333333 -(byte) irq_sprite_ptr#1 irq_sprite_ptr zp ZP_BYTE:22 20.0 -(byte) irq_sprite_ptr#2 irq_sprite_ptr zp ZP_BYTE:22 20.0 +(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:25 0.2727272727272727 +(byte) irq_sprite_ptr#1 irq_sprite_ptr zp ZP_BYTE:25 20.0 +(byte) irq_sprite_ptr#2 irq_sprite_ptr zp ZP_BYTE:25 20.0 (byte) irq_sprite_ypos -(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:21 1.0 -(byte) irq_sprite_ypos#1 irq_sprite_ypos zp ZP_BYTE:21 20.0 -(byte) irq_sprite_ypos#2 irq_sprite_ypos zp ZP_BYTE:21 20.0 +(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:24 0.8095238095238095 +(byte) irq_sprite_ypos#1 irq_sprite_ypos zp ZP_BYTE:24 20.0 +(byte) irq_sprite_ypos#2 irq_sprite_ypos zp ZP_BYTE:24 20.0 (byte[]) keyboard_char_keycodes (byte()) keyboard_event_get() (label) keyboard_event_get::@3 @@ -15576,7 +16550,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte~) keyboard_event_pressed::$1 reg byte a 4.0 (label) keyboard_event_pressed::@return (byte) keyboard_event_pressed::keycode -(byte) keyboard_event_pressed::keycode#5 keycode zp ZP_BYTE:3 1.3333333333333333 +(byte) keyboard_event_pressed::keycode#5 keycode zp ZP_BYTE:5 1.3333333333333333 (byte) keyboard_event_pressed::return (byte) keyboard_event_pressed::return#0 reg byte a 4.0 (byte) keyboard_event_pressed::return#1 reg byte a 4.0 @@ -15630,22 +16604,22 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) keyboard_event_scan::keycode#14 keycode zp ZP_BYTE:6 101.0 (byte) keyboard_event_scan::keycode#15 keycode zp ZP_BYTE:6 525.75 (byte) keyboard_event_scan::row -(byte) keyboard_event_scan::row#1 row zp ZP_BYTE:3 151.5 -(byte) keyboard_event_scan::row#2 row zp ZP_BYTE:3 60.24 +(byte) keyboard_event_scan::row#1 row zp ZP_BYTE:5 151.5 +(byte) keyboard_event_scan::row#2 row zp ZP_BYTE:5 60.24 (byte) keyboard_event_scan::row_scan -(byte) keyboard_event_scan::row_scan#0 row_scan zp ZP_BYTE:7 128.05555555555557 +(byte) keyboard_event_scan::row_scan#0 row_scan zp ZP_BYTE:9 128.05555555555557 (byte[8]) keyboard_events (const byte[8]) keyboard_events#0 keyboard_events = { fill( 8, 0) } (byte) keyboard_events_size -(byte) keyboard_events_size#1 keyboard_events_size zp ZP_BYTE:19 2002.0 -(byte) keyboard_events_size#10 keyboard_events_size zp ZP_BYTE:19 810.9000000000001 -(byte) keyboard_events_size#13 keyboard_events_size zp ZP_BYTE:19 9.967741935483872 -(byte) keyboard_events_size#16 keyboard_events_size zp ZP_BYTE:19 0.5172413793103449 -(byte) keyboard_events_size#19 keyboard_events_size zp ZP_BYTE:19 2.6 -(byte) keyboard_events_size#2 keyboard_events_size zp ZP_BYTE:19 2002.0 -(byte) keyboard_events_size#29 keyboard_events_size zp ZP_BYTE:19 43.57142857142858 -(byte) keyboard_events_size#30 keyboard_events_size zp ZP_BYTE:19 1021.2 -(byte) keyboard_events_size#4 keyboard_events_size zp ZP_BYTE:19 3.0 +(byte) keyboard_events_size#1 keyboard_events_size zp ZP_BYTE:22 2002.0 +(byte) keyboard_events_size#10 keyboard_events_size zp ZP_BYTE:22 810.9000000000001 +(byte) keyboard_events_size#13 keyboard_events_size zp ZP_BYTE:22 9.967741935483872 +(byte) keyboard_events_size#16 keyboard_events_size zp ZP_BYTE:22 0.45454545454545453 +(byte) keyboard_events_size#19 keyboard_events_size zp ZP_BYTE:22 1.8571428571428572 +(byte) keyboard_events_size#2 keyboard_events_size zp ZP_BYTE:22 2002.0 +(byte) keyboard_events_size#29 keyboard_events_size zp ZP_BYTE:22 43.57142857142858 +(byte) keyboard_events_size#30 keyboard_events_size zp ZP_BYTE:22 1021.2 +(byte) keyboard_events_size#4 keyboard_events_size zp ZP_BYTE:22 3.0 (byte[8]) keyboard_matrix_col_bitmask (const byte[8]) keyboard_matrix_col_bitmask#0 keyboard_matrix_col_bitmask = { (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 2, (byte/signed byte/word/signed word/dword/signed dword) 4, (byte/signed byte/word/signed word/dword/signed dword) 8, (byte/signed byte/word/signed word/dword/signed dword) 16, (byte/signed byte/word/signed word/dword/signed dword) 32, (byte/signed byte/word/signed word/dword/signed dword) 64, (byte/word/signed word/dword/signed dword) 128 } (byte()) keyboard_matrix_read((byte) keyboard_matrix_read::rowid) @@ -15668,33 +16642,35 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte[8]) keyboard_scan_values (const byte[8]) keyboard_scan_values#0 keyboard_scan_values = { fill( 8, 0) } (void()) main() -(byte~) main::$12 reg byte a 22.0 (byte~) main::$13 reg byte a 22.0 (byte~) main::$14 reg byte a 22.0 +(byte~) main::$15 reg byte a 22.0 +(byte~) main::$9 reg byte a 22.0 (label) main::@1 -(label) main::@10 +(label) main::@13 +(label) main::@15 +(label) main::@16 +(label) main::@17 +(label) main::@18 (label) main::@19 +(label) main::@20 (label) main::@21 -(label) main::@22 (label) main::@23 (label) main::@24 (label) main::@25 (label) main::@26 (label) main::@27 +(label) main::@28 (label) main::@29 (label) main::@30 -(label) main::@31 -(label) main::@32 -(label) main::@33 -(label) main::@34 (label) main::@4 +(label) main::@6 (label) main::@7 -(label) main::@9 (byte) main::key_event -(byte) main::key_event#0 key_event zp ZP_BYTE:24 4.0 +(byte) main::key_event#0 key_event zp ZP_BYTE:13 4.0 (byte) main::render -(byte) main::render#1 render zp ZP_BYTE:25 4.4 -(byte) main::render#2 render zp ZP_BYTE:25 4.4 +(byte) main::render#1 render zp ZP_BYTE:27 4.4 +(byte) main::render#2 render zp ZP_BYTE:27 4.4 (byte) main::render#3 reg byte a 22.0 (byte()) play_collision((byte) play_collision::xpos , (byte) play_collision::ypos , (byte) play_collision::orientation) (byte~) play_collision::$7 reg byte a 2002.0 @@ -15713,18 +16689,18 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_collision::c#1 reg byte x 1001.0 (byte) play_collision::c#2 reg byte x 222.44444444444446 (byte) play_collision::col -(byte) play_collision::col#1 col zp ZP_BYTE:10 500.5 -(byte) play_collision::col#2 col zp ZP_BYTE:10 638.25 -(byte~) play_collision::col#9 col zp ZP_BYTE:10 202.0 +(byte) play_collision::col#1 col zp ZP_BYTE:12 500.5 +(byte) play_collision::col#2 col zp ZP_BYTE:12 638.25 +(byte~) play_collision::col#9 col zp ZP_BYTE:12 202.0 (byte) play_collision::i -(byte) play_collision::i#1 i zp ZP_BYTE:28 161.76923076923077 -(byte~) play_collision::i#11 i#11 zp ZP_BYTE:9 202.0 -(byte~) play_collision::i#13 i#13 zp ZP_BYTE:9 2002.0 -(byte) play_collision::i#2 i#2 zp ZP_BYTE:9 1552.0 -(byte) play_collision::i#3 i#3 zp ZP_BYTE:9 67.33333333333333 +(byte) play_collision::i#1 i zp ZP_BYTE:30 161.76923076923077 +(byte~) play_collision::i#11 i#11 zp ZP_BYTE:11 202.0 +(byte~) play_collision::i#13 i#13 zp ZP_BYTE:11 2002.0 +(byte) play_collision::i#2 i#2 zp ZP_BYTE:11 1552.0 +(byte) play_collision::i#3 i#3 zp ZP_BYTE:11 67.33333333333333 (byte) play_collision::l -(byte) play_collision::l#1 l zp ZP_BYTE:8 101.0 -(byte) play_collision::l#6 l zp ZP_BYTE:8 12.625 +(byte) play_collision::l#1 l zp ZP_BYTE:10 101.0 +(byte) play_collision::l#6 l zp ZP_BYTE:10 12.625 (byte) play_collision::orientation (byte) play_collision::orientation#0 reg byte x 2.0 (byte) play_collision::orientation#1 reg byte x 2.0 @@ -15732,9 +16708,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_collision::orientation#3 reg byte x 2.0 (byte) play_collision::orientation#4 reg byte x 10.0 (byte*) play_collision::piece_gfx -(byte*) play_collision::piece_gfx#0 piece_gfx zp ZP_WORD:4 47.76190476190476 +(byte*) play_collision::piece_gfx#0 piece_gfx zp ZP_WORD:7 47.76190476190476 (byte*) play_collision::playfield_line -(byte*) play_collision::playfield_line#0 playfield_line zp ZP_WORD:26 78.71428571428571 +(byte*) play_collision::playfield_line#0 playfield_line zp ZP_WORD:28 78.71428571428571 (byte) play_collision::return (byte) play_collision::return#0 reg byte a 4.0 (byte) play_collision::return#1 reg byte a 4.0 @@ -15754,9 +16730,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_collision::ypos#3 reg byte y 1.3333333333333333 (byte) play_collision::ypos#4 reg byte y 5.0 (byte) play_collision::ypos2 -(byte) play_collision::ypos2#0 ypos2 zp ZP_BYTE:7 4.0 -(byte) play_collision::ypos2#1 ypos2 zp ZP_BYTE:7 50.5 -(byte) play_collision::ypos2#2 ypos2 zp ZP_BYTE:7 87.06666666666668 +(byte) play_collision::ypos2#0 ypos2 zp ZP_BYTE:9 4.0 +(byte) play_collision::ypos2#1 ypos2 zp ZP_BYTE:9 50.5 +(byte) play_collision::ypos2#2 ypos2 zp ZP_BYTE:9 87.06666666666668 (void()) play_init() (byte~) play_init::$1 reg byte a 22.0 (label) play_init::@1 @@ -15769,8 +16745,8 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_init::j#1 reg byte x 16.5 (byte) play_init::j#2 reg byte x 7.333333333333333 (byte*) play_init::pli -(byte*) play_init::pli#1 pli zp ZP_WORD:4 5.5 -(byte*) play_init::pli#2 pli zp ZP_WORD:4 8.25 +(byte*) play_init::pli#1 pli zp ZP_WORD:7 5.5 +(byte*) play_init::pli#2 pli zp ZP_WORD:7 8.25 (void()) play_lock_current() (label) play_lock_current::@1 (label) play_lock_current::@2 @@ -15788,20 +16764,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_lock_current::col#1 col zp ZP_BYTE:6 500.5 (byte) play_lock_current::col#2 col zp ZP_BYTE:6 776.0 (byte) play_lock_current::i -(byte) play_lock_current::i#1 i zp ZP_BYTE:7 233.66666666666669 -(byte) play_lock_current::i#2 i#2 zp ZP_BYTE:3 1552.0 -(byte) play_lock_current::i#3 i#3 zp ZP_BYTE:3 67.33333333333333 -(byte~) play_lock_current::i#7 i#7 zp ZP_BYTE:3 202.0 -(byte~) play_lock_current::i#9 i#9 zp ZP_BYTE:3 2002.0 +(byte) play_lock_current::i#1 i zp ZP_BYTE:9 233.66666666666669 +(byte) play_lock_current::i#2 i#2 zp ZP_BYTE:5 1552.0 +(byte) play_lock_current::i#3 i#3 zp ZP_BYTE:5 67.33333333333333 +(byte~) play_lock_current::i#7 i#7 zp ZP_BYTE:5 202.0 +(byte~) play_lock_current::i#9 i#9 zp ZP_BYTE:5 2002.0 (byte) play_lock_current::l -(byte) play_lock_current::l#1 l zp ZP_BYTE:2 101.0 -(byte) play_lock_current::l#6 l zp ZP_BYTE:2 16.833333333333332 +(byte) play_lock_current::l#1 l zp ZP_BYTE:4 101.0 +(byte) play_lock_current::l#6 l zp ZP_BYTE:4 16.833333333333332 (byte*) play_lock_current::playfield_line -(byte*) play_lock_current::playfield_line#0 playfield_line zp ZP_WORD:4 110.19999999999999 +(byte*) play_lock_current::playfield_line#0 playfield_line zp ZP_WORD:7 110.19999999999999 (byte) play_lock_current::ypos2 -(byte) play_lock_current::ypos2#0 ypos2 zp ZP_BYTE:11 4.0 -(byte) play_lock_current::ypos2#1 ypos2 zp ZP_BYTE:11 50.5 -(byte) play_lock_current::ypos2#2 ypos2 zp ZP_BYTE:11 27.727272727272727 +(byte) play_lock_current::ypos2#0 ypos2 zp ZP_BYTE:14 4.0 +(byte) play_lock_current::ypos2#1 ypos2 zp ZP_BYTE:14 50.5 +(byte) play_lock_current::ypos2#2 ypos2 zp ZP_BYTE:14 27.727272727272727 (byte()) play_move_down((byte) play_move_down::key_event) (byte~) play_move_down::$12 reg byte a 4.0 (byte~) play_move_down::$2 reg byte a 4.0 @@ -15862,9 +16838,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_move_rotate::key_event (byte) play_move_rotate::key_event#0 reg byte a 7.5 (byte) play_move_rotate::orientation -(byte) play_move_rotate::orientation#1 orientation zp ZP_BYTE:3 4.0 -(byte) play_move_rotate::orientation#2 orientation zp ZP_BYTE:3 4.0 -(byte) play_move_rotate::orientation#3 orientation zp ZP_BYTE:3 0.8888888888888888 +(byte) play_move_rotate::orientation#1 orientation zp ZP_BYTE:5 4.0 +(byte) play_move_rotate::orientation#2 orientation zp ZP_BYTE:5 4.0 +(byte) play_move_rotate::orientation#3 orientation zp ZP_BYTE:5 0.8888888888888888 (byte) play_move_rotate::return (byte) play_move_rotate::return#1 reg byte a 3.6666666666666665 (byte) play_move_rotate::return#4 reg byte a 22.0 @@ -15880,7 +16856,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) play_remove_lines::@9 (label) play_remove_lines::@return (byte) play_remove_lines::c -(byte) play_remove_lines::c#0 c zp ZP_BYTE:7 600.5999999999999 +(byte) play_remove_lines::c#0 c zp ZP_BYTE:9 600.5999999999999 (byte) play_remove_lines::full (byte) play_remove_lines::full#2 full zp ZP_BYTE:6 420.59999999999997 (byte) play_remove_lines::full#4 full zp ZP_BYTE:6 400.4 @@ -15897,14 +16873,14 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_remove_lines::w#4 reg byte x 443.42857142857144 (byte) play_remove_lines::w#6 reg byte x 168.33333333333331 (byte) play_remove_lines::x -(byte) play_remove_lines::x#1 x zp ZP_BYTE:3 1501.5 -(byte) play_remove_lines::x#2 x zp ZP_BYTE:3 250.25 +(byte) play_remove_lines::x#1 x zp ZP_BYTE:5 1501.5 +(byte) play_remove_lines::x#2 x zp ZP_BYTE:5 250.25 (byte) play_remove_lines::y -(byte) play_remove_lines::y#1 y zp ZP_BYTE:2 151.5 -(byte) play_remove_lines::y#8 y zp ZP_BYTE:2 14.428571428571429 +(byte) play_remove_lines::y#1 y zp ZP_BYTE:4 151.5 +(byte) play_remove_lines::y#8 y zp ZP_BYTE:4 14.428571428571429 (void()) play_spawn_current() (byte~) play_spawn_current::$1 reg byte a 202.0 -(byte~) play_spawn_current::$3 $3 zp ZP_BYTE:2 0.13333333333333333 +(byte~) play_spawn_current::$3 $3 zp ZP_BYTE:4 0.13333333333333333 (label) play_spawn_current::@1 (label) play_spawn_current::@2 (label) play_spawn_current::@3 @@ -15920,6 +16896,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx (const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 playfield_lines_idx = { fill( PLAYFIELD_LINES#0+1, 0) } (void()) render_current() +(byte~) render_current::$5 reg byte a 202.0 (label) render_current::@1 (label) render_current::@10 (label) render_current::@13 @@ -15936,31 +16913,33 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_current::current_cell (byte) render_current::current_cell#0 reg byte a 1001.0 (byte) render_current::i -(byte) render_current::i#1 i zp ZP_BYTE:9 202.0 -(byte) render_current::i#10 i zp ZP_BYTE:9 429.0 -(byte) render_current::i#3 i zp ZP_BYTE:9 60.599999999999994 -(byte) render_current::i#4 i zp ZP_BYTE:9 1552.0 -(byte) render_current::i#8 i zp ZP_BYTE:9 300.75 +(byte) render_current::i#1 i zp ZP_BYTE:12 202.0 +(byte) render_current::i#10 i zp ZP_BYTE:12 429.0 +(byte) render_current::i#3 i zp ZP_BYTE:12 50.5 +(byte) render_current::i#4 i zp ZP_BYTE:12 1552.0 +(byte) render_current::i#8 i zp ZP_BYTE:12 300.75 (byte) render_current::l -(byte) render_current::l#1 l zp ZP_BYTE:8 151.5 -(byte) render_current::l#4 l zp ZP_BYTE:8 11.882352941176471 +(byte) render_current::l#1 l zp ZP_BYTE:11 151.5 +(byte) render_current::l#4 l zp ZP_BYTE:11 11.222222222222221 (byte*) render_current::screen_line -(byte*) render_current::screen_line#0 screen_line zp ZP_WORD:26 100.18181818181819 +(byte*) render_current::screen_line#0 screen_line zp ZP_WORD:28 100.18181818181819 (byte) render_current::xpos -(byte) render_current::xpos#0 xpos zp ZP_BYTE:10 202.0 -(byte) render_current::xpos#1 xpos zp ZP_BYTE:10 667.3333333333334 -(byte) render_current::xpos#2 xpos zp ZP_BYTE:10 684.1666666666667 +(byte) render_current::xpos#0 xpos zp ZP_BYTE:13 202.0 +(byte) render_current::xpos#1 xpos zp ZP_BYTE:13 667.3333333333334 +(byte) render_current::xpos#2 xpos zp ZP_BYTE:13 684.1666666666667 (byte) render_current::ypos2 -(byte) render_current::ypos2#0 ypos2 zp ZP_BYTE:7 4.0 -(byte) render_current::ypos2#1 ypos2 zp ZP_BYTE:7 67.33333333333333 -(byte) render_current::ypos2#2 ypos2 zp ZP_BYTE:7 31.6875 +(byte) render_current::ypos2#0 ypos2 zp ZP_BYTE:10 4.0 +(byte) render_current::ypos2#1 ypos2 zp ZP_BYTE:10 67.33333333333333 +(byte) render_current::ypos2#2 ypos2 zp ZP_BYTE:10 29.823529411764707 (void()) render_init() -(byte~) render_init::$11 reg byte a 22.0 -(byte*~) render_init::$18 $18 zp ZP_WORD:12 202.0 +(byte*~) render_init::$12 $12 zp ZP_WORD:15 202.0 +(byte~) render_init::$22 reg byte a 22.0 +(byte~) render_init::$23 reg byte a 22.0 (label) render_init::@1 (label) render_init::@2 (label) render_init::@3 -(label) render_init::@5 +(label) render_init::@4 +(label) render_init::@7 (label) render_init::@8 (label) render_init::@9 (label) render_init::@return @@ -15969,30 +16948,19 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_init::c#2 reg byte x 101.0 (byte) render_init::i (byte) render_init::i#1 reg byte x 16.5 -(byte) render_init::i#2 reg byte x 8.25 +(byte) render_init::i#2 reg byte x 6.285714285714286 (byte) render_init::l (byte) render_init::l#1 l zp ZP_BYTE:2 16.5 (byte) render_init::l#4 l zp ZP_BYTE:2 3.142857142857143 -(byte*) render_init::li -(byte*) render_init::li#1 li zp ZP_WORD:4 7.333333333333333 -(byte*) render_init::li#2 li zp ZP_WORD:4 11.0 +(byte*) render_init::li_1 +(byte*) render_init::li_1#1 li_1 zp ZP_WORD:7 5.5 +(byte*) render_init::li_1#2 li_1 zp ZP_WORD:7 6.6000000000000005 +(byte*) render_init::li_2 +(byte*) render_init::li_2#1 li_2 zp ZP_WORD:15 7.333333333333333 +(byte*) render_init::li_2#2 li_2 zp ZP_WORD:15 5.5 (byte*) render_init::line -(byte*) render_init::line#1 line zp ZP_WORD:4 7.333333333333333 -(byte*) render_init::line#4 line zp ZP_WORD:4 20.499999999999996 -(label) render_init::toD0181 -(word~) render_init::toD0181_$0 -(word~) render_init::toD0181_$1 -(word~) render_init::toD0181_$2 -(byte~) render_init::toD0181_$3 -(word~) render_init::toD0181_$4 -(byte~) render_init::toD0181_$5 -(byte~) render_init::toD0181_$6 -(byte~) render_init::toD0181_$7 -(byte~) render_init::toD0181_$8 -(byte*) render_init::toD0181_gfx -(byte) render_init::toD0181_return -(const byte) render_init::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 -(byte*) render_init::toD0181_screen +(byte*) render_init::line#1 line zp ZP_WORD:7 7.333333333333333 +(byte*) render_init::line#4 line zp ZP_WORD:7 20.499999999999996 (label) render_init::vicSelectGfxBank1 (byte~) render_init::vicSelectGfxBank1_$0 (label) render_init::vicSelectGfxBank1_@1 @@ -16004,27 +16972,28 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte/word/dword~) render_init::vicSelectGfxBank1_toDd001_$3 (byte*) render_init::vicSelectGfxBank1_toDd001_gfx (byte) render_init::vicSelectGfxBank1_toDd001_return -(const byte) render_init::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_SCREEN#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 +(const byte) render_init::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 (void()) render_playfield() (byte~) render_playfield::$2 reg byte a 202.0 +(byte~) render_playfield::$3 reg byte a 202.0 (label) render_playfield::@1 (label) render_playfield::@2 (label) render_playfield::@3 (label) render_playfield::@return (byte) render_playfield::c -(byte) render_playfield::c#1 reg byte x 1501.5 -(byte) render_playfield::c#2 reg byte x 500.5 +(byte) render_playfield::c#1 c zp ZP_BYTE:9 1501.5 +(byte) render_playfield::c#2 c zp ZP_BYTE:9 500.5 (byte) render_playfield::i (byte) render_playfield::i#1 i zp ZP_BYTE:6 420.59999999999997 (byte) render_playfield::i#2 i zp ZP_BYTE:6 1034.6666666666667 -(byte) render_playfield::i#3 i zp ZP_BYTE:6 67.33333333333333 +(byte) render_playfield::i#3 i zp ZP_BYTE:6 50.5 (byte) render_playfield::l -(byte) render_playfield::l#1 l zp ZP_BYTE:3 151.5 -(byte) render_playfield::l#2 l zp ZP_BYTE:3 33.666666666666664 +(byte) render_playfield::l#1 l zp ZP_BYTE:5 151.5 +(byte) render_playfield::l#2 l zp ZP_BYTE:5 30.299999999999997 (byte*) render_playfield::screen_line -(byte*) render_playfield::screen_line#0 screen_line zp ZP_WORD:4 202.0 -(byte*) render_playfield::screen_line#1 screen_line zp ZP_WORD:4 500.5 -(byte*) render_playfield::screen_line#2 screen_line zp ZP_WORD:4 1552.0 +(byte*) render_playfield::screen_line#0 screen_line zp ZP_WORD:7 202.0 +(byte*) render_playfield::screen_line#1 screen_line zp ZP_WORD:7 500.5 +(byte*) render_playfield::screen_line#2 screen_line zp ZP_WORD:7 1552.0 (void()) render_screen_original((byte*) render_screen_original::screen) (label) render_screen_original::@1 (label) render_screen_original::@11 @@ -16042,17 +17011,18 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_screen_original::c#1 reg byte y 202.0 (byte) render_screen_original::c#2 reg byte y 303.0 (byte*) render_screen_original::orig -(byte*) render_screen_original::orig#1 orig zp ZP_WORD:4 13.3125 -(byte*) render_screen_original::orig#2 orig zp ZP_WORD:4 202.0 -(byte*) render_screen_original::orig#5 orig zp ZP_WORD:4 18.666666666666664 +(byte*) render_screen_original::orig#1 orig zp ZP_WORD:7 13.3125 +(byte*) render_screen_original::orig#2 orig zp ZP_WORD:7 202.0 +(byte*) render_screen_original::orig#5 orig zp ZP_WORD:7 18.666666666666664 (byte*) render_screen_original::screen -(byte*) render_screen_original::screen#1 screen zp ZP_WORD:12 101.0 -(byte*) render_screen_original::screen#11 screen zp ZP_WORD:12 42.599999999999994 -(byte*) render_screen_original::screen#2 screen zp ZP_WORD:12 101.0 -(byte*) render_screen_original::screen#4 screen zp ZP_WORD:12 157.0 -(byte*) render_screen_original::screen#5 screen zp ZP_WORD:12 50.5 -(byte*) render_screen_original::screen#6 screen zp ZP_WORD:12 202.0 -(byte*) render_screen_original::screen#7 screen zp ZP_WORD:12 22.0 +(byte*) render_screen_original::screen#10 screen zp ZP_WORD:15 50.5 +(byte*) render_screen_original::screen#11 screen zp ZP_WORD:15 2.0 +(byte*) render_screen_original::screen#12 screen zp ZP_WORD:15 42.599999999999994 +(byte*) render_screen_original::screen#2 screen zp ZP_WORD:15 101.0 +(byte*) render_screen_original::screen#3 screen zp ZP_WORD:15 101.0 +(byte*) render_screen_original::screen#5 screen zp ZP_WORD:15 157.0 +(byte*) render_screen_original::screen#7 screen zp ZP_WORD:15 202.0 +(byte*) render_screen_original::screen#8 screen zp ZP_WORD:15 24.0 (byte) render_screen_original::x (byte) render_screen_original::x#1 reg byte x 202.0 (byte) render_screen_original::x#2 reg byte x 202.0 @@ -16063,8 +17033,57 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_screen_original::y (byte) render_screen_original::y#1 y zp ZP_BYTE:2 16.5 (byte) render_screen_original::y#8 y zp ZP_BYTE:2 1.0 -(byte*[PLAYFIELD_LINES#0]) screen_lines -(const byte*[PLAYFIELD_LINES#0]) screen_lines#0 screen_lines = { fill( PLAYFIELD_LINES#0, 0) } +(byte) render_screen_render +(byte) render_screen_render#10 render_screen_render zp ZP_BYTE:3 3.25 +(byte) render_screen_render#15 render_screen_render zp ZP_BYTE:3 1.277777777777778 +(byte) render_screen_render#18 reg byte x 8.615384615384615 +(byte) render_screen_render#27 render_screen_render#27 zp ZP_BYTE:5 5.090909090909091 +(byte) render_screen_render#31 render_screen_render zp ZP_BYTE:3 16.5 +(byte~) render_screen_render#68 render_screen_render#68 zp ZP_BYTE:5 5.5 +(byte~) render_screen_render#69 reg byte x 22.0 +(byte) render_screen_show +(byte) render_screen_show#11 render_screen_show zp ZP_BYTE:2 4.333333333333333 +(byte) render_screen_show#15 render_screen_show zp ZP_BYTE:2 0.8604651162790697 +(byte) render_screen_show#24 render_screen_show zp ZP_BYTE:2 16.5 +(void()) render_screen_swap() +(label) render_screen_swap::@return +(void()) render_show() +(label) render_show::@2 +(label) render_show::@return +(byte) render_show::d018val +(byte) render_show::d018val#3 reg byte a 2.0 +(label) render_show::toD0181 +(word~) render_show::toD0181_$0 +(word~) render_show::toD0181_$1 +(word~) render_show::toD0181_$2 +(byte~) render_show::toD0181_$3 +(word~) render_show::toD0181_$4 +(byte~) render_show::toD0181_$5 +(byte~) render_show::toD0181_$6 +(byte~) render_show::toD0181_$7 +(byte~) render_show::toD0181_$8 +(byte*) render_show::toD0181_gfx +(byte) render_show::toD0181_return +(const byte) render_show::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 +(byte*) render_show::toD0181_screen +(label) render_show::toD0182 +(word~) render_show::toD0182_$0 +(word~) render_show::toD0182_$1 +(word~) render_show::toD0182_$2 +(byte~) render_show::toD0182_$3 +(word~) render_show::toD0182_$4 +(byte~) render_show::toD0182_$5 +(byte~) render_show::toD0182_$6 +(byte~) render_show::toD0182_$7 +(byte~) render_show::toD0182_$8 +(byte*) render_show::toD0182_gfx +(byte) render_show::toD0182_return +(const byte) render_show::toD0182_return#0 toD0182_return = >((word))(const byte*) PLAYFIELD_SCREEN_2#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 +(byte*) render_show::toD0182_screen +(byte*[PLAYFIELD_LINES#0]) screen_lines_1 +(const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 screen_lines_1 = { fill( PLAYFIELD_LINES#0, 0) } +(byte*[PLAYFIELD_LINES#0]) screen_lines_2 +(const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 screen_lines_2 = { fill( PLAYFIELD_LINES#0, 0) } (byte()) sid_rnd() (label) sid_rnd::@return (byte) sid_rnd::return @@ -16093,17 +17112,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (const byte) toSpritePtr1_return#0 toSpritePtr1_return = ((byte))((word))(const byte*) PLAYFIELD_SPRITES#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 (byte*) toSpritePtr1_sprite -zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 render_init::l#4 render_init::l#1 render_screen_original::y#8 render_screen_original::y#1 play_spawn_current::$3 ] +zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 render_init::l#4 render_init::l#1 render_screen_original::y#8 render_screen_original::y#1 ] +zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] +zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_spawn_current::$3 ] reg byte x [ current_ypos#9 current_ypos#83 current_ypos#84 ] -zp ZP_BYTE:3 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] -zp ZP_WORD:4 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::li#2 render_init::li#1 render_init::line#4 render_init::line#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 fill::addr#2 fill::addr#1 play_lock_current::playfield_line#0 ] -zp ZP_BYTE:6 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 keyboard_event_pressed::row_bits#0 ] -zp ZP_BYTE:7 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 keyboard_event_scan::row_scan#0 ] -zp ZP_BYTE:8 [ render_current::l#4 render_current::l#1 play_collision::l#6 play_collision::l#1 ] -zp ZP_BYTE:9 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] -zp ZP_BYTE:10 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +zp ZP_BYTE:5 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] +zp ZP_BYTE:6 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 keyboard_event_pressed::row_bits#0 ] +zp ZP_WORD:7 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::line#4 render_init::line#1 render_init::li_1#2 render_init::li_1#1 fill::addr#2 fill::addr#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 play_lock_current::playfield_line#0 ] +zp ZP_BYTE:9 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::c#2 render_playfield::c#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 keyboard_event_scan::row_scan#0 ] +zp ZP_BYTE:10 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::l#6 play_collision::l#1 ] +zp ZP_BYTE:11 [ render_current::l#4 render_current::l#1 play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] +zp ZP_BYTE:12 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +zp ZP_BYTE:13 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 main::key_event#0 ] reg byte x [ render_current::c#2 render_current::c#1 ] -reg byte x [ render_playfield::c#2 render_playfield::c#1 ] +reg byte x [ render_screen_render#18 render_screen_render#69 ] reg byte a [ play_move_rotate::return#1 ] reg byte x [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] reg byte y [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] @@ -16111,12 +17133,12 @@ reg byte x [ play_collision::c#2 play_collision::c#1 ] reg byte a [ play_collision::return#14 ] reg byte a [ play_move_leftright::return#1 ] reg byte x [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] -zp ZP_BYTE:11 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -zp ZP_WORD:12 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 render_init::$18 ] -zp ZP_BYTE:14 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -zp ZP_WORD:15 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] -zp ZP_BYTE:17 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -zp ZP_BYTE:18 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] +zp ZP_BYTE:14 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +zp ZP_WORD:15 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 render_init::li_2#2 render_init::li_2#1 render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 render_init::$12 ] +zp ZP_BYTE:17 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +zp ZP_WORD:18 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] +zp ZP_BYTE:20 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +zp ZP_BYTE:21 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] reg byte x [ play_move_down::return#2 ] reg byte x [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] reg byte y [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] @@ -16125,39 +17147,42 @@ reg byte x [ play_lock_current::c#2 play_lock_current::c#1 ] reg byte a [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] reg byte x [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] reg byte x [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] -zp ZP_BYTE:19 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +zp ZP_BYTE:22 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +reg byte a [ render_show::d018val#3 ] reg byte x [ play_init::j#2 play_init::j#1 ] reg byte x [ sprites_init::s#2 sprites_init::s#1 ] -reg byte x [ render_init::i#2 render_init::i#1 ] reg byte x [ render_init::c#2 render_init::c#1 ] +reg byte x [ render_init::i#2 render_init::i#1 ] reg byte y [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] reg byte x [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] -zp ZP_BYTE:20 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 irq_raster_next#0 ] +zp ZP_BYTE:23 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 irq_raster_next#0 ] reg byte x [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] -zp ZP_BYTE:21 [ irq_sprite_ypos#0 irq_sprite_ypos#2 irq_sprite_ypos#1 ] -zp ZP_BYTE:22 [ irq_sprite_ptr#0 irq_sprite_ptr#2 irq_sprite_ptr#1 ] -zp ZP_BYTE:23 [ irq_cnt#0 irq_cnt#1 irq_cnt#13 ] +zp ZP_BYTE:24 [ irq_sprite_ypos#0 irq_sprite_ypos#2 irq_sprite_ypos#1 ] +zp ZP_BYTE:25 [ irq_sprite_ptr#0 irq_sprite_ptr#2 irq_sprite_ptr#1 ] +zp ZP_BYTE:26 [ irq_cnt#0 irq_cnt#1 irq_cnt#13 ] +reg byte a [ main::$9 ] reg byte a [ keyboard_event_get::return#3 ] -zp ZP_BYTE:24 [ main::key_event#0 ] reg byte a [ play_move_down::key_event#0 ] reg byte a [ play_move_down::return#3 ] -reg byte a [ main::$12 ] -zp ZP_BYTE:25 [ main::render#1 main::render#2 ] +reg byte a [ main::$13 ] +zp ZP_BYTE:27 [ main::render#1 main::render#2 ] reg byte a [ play_move_leftright::key_event#0 ] reg byte a [ play_move_leftright::return#4 ] -reg byte a [ main::$13 ] +reg byte a [ main::$14 ] reg byte a [ play_move_rotate::key_event#0 ] reg byte a [ play_move_rotate::return#4 ] -reg byte a [ main::$14 ] +reg byte a [ main::$15 ] reg byte a [ main::render#3 ] -zp ZP_WORD:26 [ render_current::screen_line#0 play_collision::playfield_line#0 ] +reg byte a [ render_current::$5 ] +zp ZP_WORD:28 [ render_current::screen_line#0 play_collision::playfield_line#0 ] reg byte a [ render_current::current_cell#0 ] reg byte a [ render_playfield::$2 ] +reg byte a [ render_playfield::$3 ] reg byte a [ play_move_rotate::$2 ] reg byte a [ play_collision::return#13 ] reg byte a [ play_move_rotate::$6 ] reg byte a [ play_move_rotate::$4 ] -zp ZP_BYTE:28 [ play_collision::i#1 ] +zp ZP_BYTE:30 [ play_collision::i#1 ] reg byte a [ play_collision::$7 ] reg byte a [ play_collision::return#12 ] reg byte a [ play_move_leftright::$4 ] @@ -16191,7 +17216,8 @@ reg byte a [ keyboard_event_scan::$11 ] reg byte a [ keyboard_matrix_read::return#0 ] reg byte a [ play_init::$1 ] reg byte a [ sprites_init::s2#0 ] -reg byte a [ render_init::$11 ] +reg byte a [ render_init::$22 ] +reg byte a [ render_init::$23 ] reg byte a [ irq::ypos#0 ] reg byte a [ irq::ptr#0 ] reg byte x [ irq::ptr#1 ] @@ -16200,7 +17226,7 @@ reg byte a [ irq::$3 ] FINAL ASSEMBLER -Score: 438201 +Score: 448735 //SEG0 Basic Upstart .pc = $801 "Basic" @@ -16265,12 +17291,13 @@ Score: 438201 .label SID_VOICE3_CONTROL = $d412 .const SID_CONTROL_NOISE = $80 .label SID_VOICE3_OSC = $d41b - .label PLAYFIELD_SCREEN = $400 + .label PLAYFIELD_SCREEN_1 = $400 + .label PLAYFIELD_SCREEN_2 = $2c00 + .label PLAYFIELD_SCREEN_ORIGINAL = $1800 .label PLAYFIELD_SPRITES = $2000 .label PLAYFIELD_CHARSET = $2800 .const PLAYFIELD_LINES = $16 .const PLAYFIELD_COLS = $a - .label PLAYFIELD_SCREEN_ORIGINAL = $2c00 .const IRQ_RASTER_FIRST = $31 .const current_movedown_slow = $32 .const current_movedown_fast = 5 @@ -16279,528 +17306,589 @@ Score: 438201 .const COLLISION_BOTTOM = 2 .const COLLISION_LEFT = 4 .const COLLISION_RIGHT = 8 - .label PLAYFIELD_SPRITE_PTRS = PLAYFIELD_SCREEN+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_1 = PLAYFIELD_SCREEN_1+SPRITE_PTRS + .label PLAYFIELD_SPRITE_PTRS_2 = PLAYFIELD_SCREEN_2+SPRITE_PTRS .const toSpritePtr1_return = PLAYFIELD_SPRITES>>6 - .label keyboard_events_size = $13 - .label irq_raster_next = $14 - .label irq_sprite_ypos = $15 - .label irq_sprite_ptr = $16 - .label irq_cnt = $17 - .label current_movedown_counter = 2 - .label current_ypos = $b - .label current_piece_gfx = $f - .label current_xpos = $11 - .label current_piece_char = $12 - .label current_orientation = $e - .label current_piece = $c - .label current_piece_12 = 4 - .label current_xpos_47 = 3 - .label current_piece_gfx_52 = 4 - .label current_piece_char_62 = 6 - .label current_xpos_109 = 3 - .label current_xpos_110 = 3 - .label current_piece_gfx_99 = 4 - .label current_piece_gfx_100 = 4 - .label current_piece_char_87 = 6 - .label current_piece_char_88 = 6 - .label current_piece_73 = 4 - .label current_piece_74 = 4 - .label current_piece_75 = 4 - .label current_piece_76 = 4 + .label keyboard_events_size = $16 + .label irq_raster_next = $17 + .label irq_sprite_ypos = $18 + .label irq_sprite_ptr = $19 + .label irq_cnt = $1a + .label current_movedown_counter = 4 + .label current_ypos = $e + .label current_piece_gfx = $12 + .label current_xpos = $14 + .label current_piece_char = $15 + .label current_orientation = $11 + .label render_screen_render = 3 + .label render_screen_show = 2 + .label current_piece = $f + .label current_piece_12 = 7 + .label render_screen_render_27 = 5 + .label current_xpos_47 = 6 + .label current_piece_gfx_52 = 7 + .label current_piece_char_62 = 9 + .label render_screen_render_68 = 5 + .label current_xpos_109 = 6 + .label current_xpos_110 = 6 + .label current_piece_gfx_99 = 7 + .label current_piece_gfx_100 = 7 + .label current_piece_char_87 = 9 + .label current_piece_char_88 = 9 + .label current_piece_73 = 7 + .label current_piece_74 = 7 + .label current_piece_75 = 7 + .label current_piece_76 = 7 //SEG2 @begin bbegin: //SEG3 @14 //SEG4 kickasm(location (const byte*) PLAYFIELD_CHARSET#0) {{ .fill 8,$00 // Place a filled char at the start of the charset .import binary "nes-screen.imap" }} //SEG5 kickasm(location (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0) {{ .import binary "nes-screen.iscr" }} -//SEG6 @18 +//SEG6 @20 //SEG7 kickasm(location (const byte*) PLAYFIELD_SPRITES#0) {{ .var sprites = LoadPicture("nes-playfield.png", List().add($010101, $000000)) .for(var sy=0;sy<10;sy++) { .for(var sx=0;sx<3;sx++) { .for (var y=0;y<21; y++) { .for (var c=0; c<3; c++) { .byte sprites.getSinglecolorByte(sx*3+c,sy*21+y) } } .byte 0 } } }} -//SEG8 @19 +//SEG8 @21 //SEG9 [4] (byte) irq_raster_next#0 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next //SEG10 [5] (byte) irq_sprite_ypos#0 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos -//SEG11 [6] phi from @19 to toSpritePtr1 [phi:@19->toSpritePtr1] +//SEG11 [6] phi from @21 to toSpritePtr1 [phi:@21->toSpritePtr1] //SEG12 toSpritePtr1 -//SEG13 @31 +//SEG13 @33 //SEG14 [7] (byte) irq_sprite_ptr#0 ← (const byte) toSpritePtr1_return#0 -- vbuz1=vbuc1 lda #toSpritePtr1_return sta irq_sprite_ptr //SEG15 [8] (byte) irq_cnt#0 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt -//SEG16 [9] phi from @31 to @30 [phi:@31->@30] -//SEG17 @30 +//SEG16 [9] phi from @33 to @32 [phi:@33->@32] +//SEG17 @32 //SEG18 [10] call main -//SEG19 [12] phi from @30 to main [phi:@30->main] +//SEG19 [12] phi from @32 to main [phi:@32->main] jsr main -//SEG20 [11] phi from @30 to @end [phi:@30->@end] +//SEG20 [11] phi from @32 to @end [phi:@32->@end] //SEG21 @end //SEG22 main main: { - .label key_event = $18 - .label render = $19 + .label key_event = $d + .label render = $1b //SEG23 [13] call sid_rnd_init jsr sid_rnd_init - //SEG24 main::@21 + //SEG24 main::@15 //SEG25 asm { sei } sei //SEG26 [15] call render_init - //SEG27 [356] phi from main::@21 to render_init [phi:main::@21->render_init] + //SEG27 [373] phi from main::@15 to render_init [phi:main::@15->render_init] jsr render_init - //SEG28 [16] phi from main::@21 to main::@22 [phi:main::@21->main::@22] - //SEG29 main::@22 + //SEG28 [16] phi from main::@15 to main::@16 [phi:main::@15->main::@16] + //SEG29 main::@16 //SEG30 [17] call sprites_init jsr sprites_init - //SEG31 [18] phi from main::@22 to main::@23 [phi:main::@22->main::@23] - //SEG32 main::@23 + //SEG31 [18] phi from main::@16 to main::@17 [phi:main::@16->main::@17] + //SEG32 main::@17 //SEG33 [19] call sprites_irq_init jsr sprites_irq_init - //SEG34 [20] phi from main::@23 to main::@24 [phi:main::@23->main::@24] - //SEG35 main::@24 + //SEG34 [20] phi from main::@17 to main::@18 [phi:main::@17->main::@18] + //SEG35 main::@18 //SEG36 [21] call play_init - //SEG37 [321] phi from main::@24 to play_init [phi:main::@24->play_init] + //SEG37 [338] phi from main::@18 to play_init [phi:main::@18->play_init] jsr play_init - //SEG38 [22] phi from main::@24 to main::@25 [phi:main::@24->main::@25] - //SEG39 main::@25 + //SEG38 [22] phi from main::@18 to main::@19 [phi:main::@18->main::@19] + //SEG39 main::@19 //SEG40 [23] call play_spawn_current - //SEG41 [199] phi from main::@25 to play_spawn_current [phi:main::@25->play_spawn_current] + //SEG41 [210] phi from main::@19 to play_spawn_current [phi:main::@19->play_spawn_current] jsr play_spawn_current - //SEG42 [24] phi from main::@25 to main::@26 [phi:main::@25->main::@26] - //SEG43 main::@26 + //SEG42 [24] phi from main::@19 to main::@20 [phi:main::@19->main::@20] + //SEG43 main::@20 //SEG44 [25] call render_playfield - //SEG45 [87] phi from main::@26 to render_playfield [phi:main::@26->render_playfield] + //SEG45 [97] phi from main::@20 to render_playfield [phi:main::@20->render_playfield] + //SEG46 [97] phi (byte) render_screen_render#18 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@20->render_playfield#0] -- vbuxx=vbuc1 + ldx #$40 jsr render_playfield - //SEG46 main::@27 - //SEG47 [26] (byte~) current_ypos#83 ← (byte) current_ypos#18 -- vbuxx=vbuz1 + //SEG47 main::@21 + //SEG48 [26] (byte~) current_ypos#83 ← (byte) current_ypos#18 -- vbuxx=vbuz1 ldx current_ypos - //SEG48 [27] (byte~) current_xpos#109 ← (byte) current_xpos#23 -- vbuz1=vbuz2 + //SEG49 [27] (byte~) current_xpos#109 ← (byte) current_xpos#23 -- vbuz1=vbuz2 lda current_xpos sta current_xpos_109 - //SEG49 [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 -- pbuz1=pbuz2 + //SEG50 [28] (byte*~) current_piece_gfx#99 ← (byte*) current_piece_gfx#16 -- pbuz1=pbuz2 lda current_piece_gfx sta current_piece_gfx_99 lda current_piece_gfx+1 sta current_piece_gfx_99+1 - //SEG50 [29] (byte~) current_piece_char#87 ← (byte) current_piece_char#12 -- vbuz1=vbuz2 + //SEG51 [29] (byte~) current_piece_char#87 ← (byte) current_piece_char#12 -- vbuz1=vbuz2 lda current_piece_char sta current_piece_char_87 - //SEG51 [30] call render_current - //SEG52 [65] phi from main::@27 to render_current [phi:main::@27->render_current] - //SEG53 [65] phi (byte) current_piece_char#62 = (byte~) current_piece_char#87 [phi:main::@27->render_current#0] -- register_copy - //SEG54 [65] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#99 [phi:main::@27->render_current#1] -- register_copy - //SEG55 [65] phi (byte) current_xpos#47 = (byte~) current_xpos#109 [phi:main::@27->render_current#2] -- register_copy - //SEG56 [65] phi (byte) current_ypos#9 = (byte~) current_ypos#83 [phi:main::@27->render_current#3] -- register_copy + //SEG52 [30] call render_current + //SEG53 [74] phi from main::@21 to render_current [phi:main::@21->render_current] + //SEG54 [74] phi (byte) current_piece_char#62 = (byte~) current_piece_char#87 [phi:main::@21->render_current#0] -- register_copy + //SEG55 [74] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#99 [phi:main::@21->render_current#1] -- register_copy + //SEG56 [74] phi (byte) current_xpos#47 = (byte~) current_xpos#109 [phi:main::@21->render_current#2] -- register_copy + //SEG57 [74] phi (byte) render_screen_render#27 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@21->render_current#3] -- vbuz1=vbuc1 + lda #$40 + sta render_screen_render_27 + //SEG58 [74] phi (byte) current_ypos#9 = (byte~) current_ypos#83 [phi:main::@21->render_current#4] -- register_copy jsr render_current - //SEG57 [31] (byte*~) current_piece#72 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG59 [31] (byte*~) current_piece#71 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 ldy play_spawn_current._3 lda PIECES,y sta current_piece lda PIECES+1,y sta current_piece+1 - //SEG58 [32] phi from main::@27 to main::@1 [phi:main::@27->main::@1] - //SEG59 [32] phi (byte) current_movedown_counter#12 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#0] -- vbuz1=vbuc1 + //SEG60 [32] phi from main::@21 to main::@1 [phi:main::@21->main::@1] + //SEG61 [32] phi (byte) current_movedown_counter#12 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#0] -- vbuz1=vbuc1 lda #0 sta current_movedown_counter - //SEG60 [32] phi (byte) keyboard_events_size#19 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#1] -- vbuz1=vbuc1 + //SEG62 [32] phi (byte) keyboard_events_size#19 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#1] -- vbuz1=vbuc1 sta keyboard_events_size - //SEG61 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#12 [phi:main::@27->main::@1#2] -- register_copy - //SEG62 [32] phi (byte) current_ypos#21 = (byte) current_ypos#18 [phi:main::@27->main::@1#3] -- register_copy - //SEG63 [32] phi (byte) current_xpos#10 = (byte) current_xpos#23 [phi:main::@27->main::@1#4] -- register_copy - //SEG64 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#16 [phi:main::@27->main::@1#5] -- register_copy - //SEG65 [32] phi (byte) current_orientation#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@27->main::@1#6] -- vbuz1=vbuc1 + //SEG63 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#12 [phi:main::@21->main::@1#2] -- register_copy + //SEG64 [32] phi (byte) current_ypos#21 = (byte) current_ypos#18 [phi:main::@21->main::@1#3] -- register_copy + //SEG65 [32] phi (byte) current_xpos#10 = (byte) current_xpos#23 [phi:main::@21->main::@1#4] -- register_copy + //SEG66 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#16 [phi:main::@21->main::@1#5] -- register_copy + //SEG67 [32] phi (byte) current_orientation#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#6] -- vbuz1=vbuc1 sta current_orientation - //SEG66 [32] phi (byte*) current_piece#16 = (byte*~) current_piece#72 [phi:main::@27->main::@1#7] -- register_copy - //SEG67 main::@1 - //SEG68 main::@4 + //SEG68 [32] phi (byte*) current_piece#16 = (byte*~) current_piece#71 [phi:main::@21->main::@1#7] -- register_copy + //SEG69 [32] phi (byte) render_screen_render#15 = (byte/signed byte/word/signed word/dword/signed dword) 64 [phi:main::@21->main::@1#8] -- vbuz1=vbuc1 + lda #$40 + sta render_screen_render + //SEG70 [32] phi (byte) render_screen_show#15 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:main::@21->main::@1#9] -- vbuz1=vbuc1 + lda #0 + sta render_screen_show + //SEG71 main::@1 + //SEG72 main::@4 b4: - //SEG69 [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 -- _deref_pbuc1_neq_vbuc2_then_la1 + //SEG73 [33] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 255) goto main::@4 -- _deref_pbuc1_neq_vbuc2_then_la1 lda RASTER cmp #$ff bne b4 - //SEG70 main::@7 - b7: - //SEG71 [34] if(*((const byte*) RASTER#0)!=(byte/word/signed word/dword/signed dword) 254) goto main::@7 -- _deref_pbuc1_neq_vbuc2_then_la1 - lda RASTER - cmp #$fe - bne b7 - //SEG72 main::@9 - //SEG73 [35] *((const byte*) BORDERCOL#0) ← ++ *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_inc__deref_pbuc1 - inc BORDERCOL - //SEG74 [36] call keyboard_event_scan - //SEG75 [265] phi from main::@9 to keyboard_event_scan [phi:main::@9->keyboard_event_scan] + //SEG74 main::@6 + //SEG75 [34] (byte~) main::$9 ← (byte) render_screen_show#15 >> (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuaa=vbuz1_ror_4 + lda render_screen_show + lsr + lsr + lsr + lsr + //SEG76 [35] *((const byte*) BORDERCOL#0) ← (byte~) main::$9 -- _deref_pbuc1=vbuaa + sta BORDERCOL + //SEG77 [36] call render_show + jsr render_show + //SEG78 [37] phi from main::@6 to main::@23 [phi:main::@6->main::@23] + //SEG79 main::@23 + //SEG80 [38] call keyboard_event_scan + //SEG81 [276] phi from main::@23 to keyboard_event_scan [phi:main::@23->keyboard_event_scan] jsr keyboard_event_scan - //SEG76 [37] phi from main::@9 to main::@29 [phi:main::@9->main::@29] - //SEG77 main::@29 - //SEG78 [38] call keyboard_event_get + //SEG82 [39] phi from main::@23 to main::@24 [phi:main::@23->main::@24] + //SEG83 main::@24 + //SEG84 [40] call keyboard_event_get jsr keyboard_event_get - //SEG79 [39] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 + //SEG85 [41] (byte) keyboard_event_get::return#3 ← (byte) keyboard_event_get::return#2 // (byte) keyboard_event_get::return#3 = (byte) keyboard_event_get::return#2 // register copy reg byte a - //SEG80 main::@30 - //SEG81 [40] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 -- vbuz1=vbuaa + //SEG86 main::@25 + //SEG87 [42] (byte) main::key_event#0 ← (byte) keyboard_event_get::return#3 -- vbuz1=vbuaa sta key_event - //SEG82 [41] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 - //SEG83 [42] call play_move_down + //SEG88 [43] (byte) play_move_down::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 + //SEG89 [44] call play_move_down jsr play_move_down - //SEG84 [43] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 -- vbuaa=vbuxx + //SEG90 [45] (byte) play_move_down::return#3 ← (byte) play_move_down::return#2 -- vbuaa=vbuxx txa - //SEG85 main::@31 - //SEG86 [44] (byte~) main::$12 ← (byte) play_move_down::return#3 - // (byte~) main::$12 = (byte) play_move_down::return#3 // register copy reg byte a - //SEG87 [45] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$12 -- vbuz1=vbuc1_plus_vbuaa + //SEG91 main::@26 + //SEG92 [46] (byte~) main::$13 ← (byte) play_move_down::return#3 + // (byte~) main::$13 = (byte) play_move_down::return#3 // register copy reg byte a + //SEG93 [47] (byte) main::render#1 ← (byte/signed byte/word/signed word/dword/signed dword) 0 + (byte~) main::$13 -- vbuz1=vbuc1_plus_vbuaa clc adc #0 sta render - //SEG88 [46] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 + //SEG94 [48] (byte) play_move_leftright::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 lda key_event - //SEG89 [47] call play_move_leftright + //SEG95 [49] call play_move_leftright jsr play_move_leftright - //SEG90 [48] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 + //SEG96 [50] (byte) play_move_leftright::return#4 ← (byte) play_move_leftright::return#1 // (byte) play_move_leftright::return#4 = (byte) play_move_leftright::return#1 // register copy reg byte a - //SEG91 main::@32 - //SEG92 [49] (byte~) main::$13 ← (byte) play_move_leftright::return#4 - // (byte~) main::$13 = (byte) play_move_leftright::return#4 // register copy reg byte a - //SEG93 [50] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$13 -- vbuz1=vbuz1_plus_vbuaa + //SEG97 main::@27 + //SEG98 [51] (byte~) main::$14 ← (byte) play_move_leftright::return#4 + // (byte~) main::$14 = (byte) play_move_leftright::return#4 // register copy reg byte a + //SEG99 [52] (byte) main::render#2 ← (byte) main::render#1 + (byte~) main::$14 -- vbuz1=vbuz1_plus_vbuaa clc adc render sta render - //SEG94 [51] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 + //SEG100 [53] (byte) play_move_rotate::key_event#0 ← (byte) main::key_event#0 -- vbuaa=vbuz1 lda key_event - //SEG95 [52] call play_move_rotate + //SEG101 [54] call play_move_rotate jsr play_move_rotate - //SEG96 [53] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 + //SEG102 [55] (byte) play_move_rotate::return#4 ← (byte) play_move_rotate::return#1 // (byte) play_move_rotate::return#4 = (byte) play_move_rotate::return#1 // register copy reg byte a - //SEG97 main::@33 - //SEG98 [54] (byte~) main::$14 ← (byte) play_move_rotate::return#4 - // (byte~) main::$14 = (byte) play_move_rotate::return#4 // register copy reg byte a - //SEG99 [55] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$14 -- vbuaa=vbuz1_plus_vbuaa + //SEG103 main::@28 + //SEG104 [56] (byte~) main::$15 ← (byte) play_move_rotate::return#4 + // (byte~) main::$15 = (byte) play_move_rotate::return#4 // register copy reg byte a + //SEG105 [57] (byte) main::render#3 ← (byte) main::render#2 + (byte~) main::$15 -- vbuaa=vbuz1_plus_vbuaa clc adc render - //SEG100 [56] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@10 -- vbuaa_eq_0_then_la1 + //SEG106 [58] if((byte) main::render#3==(byte/signed byte/word/signed word/dword/signed dword) 0) goto main::@7 -- vbuaa_eq_0_then_la1 cmp #0 - beq b10 - //SEG101 [57] phi from main::@33 to main::@19 [phi:main::@33->main::@19] - //SEG102 main::@19 - //SEG103 [58] call render_playfield - //SEG104 [87] phi from main::@19 to render_playfield [phi:main::@19->render_playfield] + beq b7 + //SEG107 main::@13 + //SEG108 [59] (byte~) render_screen_render#69 ← (byte) render_screen_render#15 -- vbuxx=vbuz1 + ldx render_screen_render + //SEG109 [60] call render_playfield + //SEG110 [97] phi from main::@13 to render_playfield [phi:main::@13->render_playfield] + //SEG111 [97] phi (byte) render_screen_render#18 = (byte~) render_screen_render#69 [phi:main::@13->render_playfield#0] -- register_copy jsr render_playfield - //SEG105 main::@34 - //SEG106 [59] (byte~) current_ypos#84 ← (byte) current_ypos#13 -- vbuxx=vbuz1 + //SEG112 main::@29 + //SEG113 [61] (byte~) current_ypos#84 ← (byte) current_ypos#13 -- vbuxx=vbuz1 ldx current_ypos - //SEG107 [60] (byte~) current_xpos#110 ← (byte) current_xpos#19 -- vbuz1=vbuz2 + //SEG114 [62] (byte~) render_screen_render#68 ← (byte) render_screen_render#15 -- vbuz1=vbuz2 + lda render_screen_render + sta render_screen_render_68 + //SEG115 [63] (byte~) current_xpos#110 ← (byte) current_xpos#19 -- vbuz1=vbuz2 lda current_xpos sta current_xpos_110 - //SEG108 [61] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 -- pbuz1=pbuz2 + //SEG116 [64] (byte*~) current_piece_gfx#100 ← (byte*) current_piece_gfx#14 -- pbuz1=pbuz2 lda current_piece_gfx sta current_piece_gfx_100 lda current_piece_gfx+1 sta current_piece_gfx_100+1 - //SEG109 [62] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 -- vbuz1=vbuz2 + //SEG117 [65] (byte~) current_piece_char#88 ← (byte) current_piece_char#1 -- vbuz1=vbuz2 lda current_piece_char sta current_piece_char_88 - //SEG110 [63] call render_current - //SEG111 [65] phi from main::@34 to render_current [phi:main::@34->render_current] - //SEG112 [65] phi (byte) current_piece_char#62 = (byte~) current_piece_char#88 [phi:main::@34->render_current#0] -- register_copy - //SEG113 [65] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#100 [phi:main::@34->render_current#1] -- register_copy - //SEG114 [65] phi (byte) current_xpos#47 = (byte~) current_xpos#110 [phi:main::@34->render_current#2] -- register_copy - //SEG115 [65] phi (byte) current_ypos#9 = (byte~) current_ypos#84 [phi:main::@34->render_current#3] -- register_copy + //SEG118 [66] call render_current + //SEG119 [74] phi from main::@29 to render_current [phi:main::@29->render_current] + //SEG120 [74] phi (byte) current_piece_char#62 = (byte~) current_piece_char#88 [phi:main::@29->render_current#0] -- register_copy + //SEG121 [74] phi (byte*) current_piece_gfx#52 = (byte*~) current_piece_gfx#100 [phi:main::@29->render_current#1] -- register_copy + //SEG122 [74] phi (byte) current_xpos#47 = (byte~) current_xpos#110 [phi:main::@29->render_current#2] -- register_copy + //SEG123 [74] phi (byte) render_screen_render#27 = (byte~) render_screen_render#68 [phi:main::@29->render_current#3] -- register_copy + //SEG124 [74] phi (byte) current_ypos#9 = (byte~) current_ypos#84 [phi:main::@29->render_current#4] -- register_copy jsr render_current - //SEG116 main::@10 - b10: - //SEG117 [64] *((const byte*) BORDERCOL#0) ← -- *((const byte*) BORDERCOL#0) -- _deref_pbuc1=_dec__deref_pbuc1 - dec BORDERCOL - //SEG118 [32] phi from main::@10 to main::@1 [phi:main::@10->main::@1] - //SEG119 [32] phi (byte) current_movedown_counter#12 = (byte) current_movedown_counter#10 [phi:main::@10->main::@1#0] -- register_copy - //SEG120 [32] phi (byte) keyboard_events_size#19 = (byte) keyboard_events_size#16 [phi:main::@10->main::@1#1] -- register_copy - //SEG121 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#1 [phi:main::@10->main::@1#2] -- register_copy - //SEG122 [32] phi (byte) current_ypos#21 = (byte) current_ypos#13 [phi:main::@10->main::@1#3] -- register_copy - //SEG123 [32] phi (byte) current_xpos#10 = (byte) current_xpos#19 [phi:main::@10->main::@1#4] -- register_copy - //SEG124 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#14 [phi:main::@10->main::@1#5] -- register_copy - //SEG125 [32] phi (byte) current_orientation#10 = (byte) current_orientation#19 [phi:main::@10->main::@1#6] -- register_copy - //SEG126 [32] phi (byte*) current_piece#16 = (byte*) current_piece#10 [phi:main::@10->main::@1#7] -- register_copy + //SEG125 [67] phi from main::@29 to main::@30 [phi:main::@29->main::@30] + //SEG126 main::@30 + //SEG127 [68] call render_screen_swap + jsr render_screen_swap + //SEG128 [69] phi from main::@28 main::@30 to main::@7 [phi:main::@28/main::@30->main::@7] + //SEG129 [69] phi (byte) render_screen_render#31 = (byte) render_screen_render#15 [phi:main::@28/main::@30->main::@7#0] -- register_copy + //SEG130 [69] phi (byte) render_screen_show#24 = (byte) render_screen_show#15 [phi:main::@28/main::@30->main::@7#1] -- register_copy + //SEG131 main::@7 + b7: + //SEG132 [70] *((const byte*) BORDERCOL#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 + lda #0 + sta BORDERCOL + //SEG133 [32] phi from main::@7 to main::@1 [phi:main::@7->main::@1] + //SEG134 [32] phi (byte) current_movedown_counter#12 = (byte) current_movedown_counter#10 [phi:main::@7->main::@1#0] -- register_copy + //SEG135 [32] phi (byte) keyboard_events_size#19 = (byte) keyboard_events_size#16 [phi:main::@7->main::@1#1] -- register_copy + //SEG136 [32] phi (byte) current_piece_char#15 = (byte) current_piece_char#1 [phi:main::@7->main::@1#2] -- register_copy + //SEG137 [32] phi (byte) current_ypos#21 = (byte) current_ypos#13 [phi:main::@7->main::@1#3] -- register_copy + //SEG138 [32] phi (byte) current_xpos#10 = (byte) current_xpos#19 [phi:main::@7->main::@1#4] -- register_copy + //SEG139 [32] phi (byte*) current_piece_gfx#20 = (byte*) current_piece_gfx#14 [phi:main::@7->main::@1#5] -- register_copy + //SEG140 [32] phi (byte) current_orientation#10 = (byte) current_orientation#19 [phi:main::@7->main::@1#6] -- register_copy + //SEG141 [32] phi (byte*) current_piece#16 = (byte*) current_piece#10 [phi:main::@7->main::@1#7] -- register_copy + //SEG142 [32] phi (byte) render_screen_render#15 = (byte) render_screen_render#31 [phi:main::@7->main::@1#8] -- register_copy + //SEG143 [32] phi (byte) render_screen_show#15 = (byte) render_screen_show#24 [phi:main::@7->main::@1#9] -- register_copy jmp b4 } -//SEG127 render_current +//SEG144 render_screen_swap +render_screen_swap: { + //SEG145 [71] (byte) render_screen_render#10 ← (byte) render_screen_render#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz1_bxor_vbuc1 + lda render_screen_render + eor #$40 + sta render_screen_render + //SEG146 [72] (byte) render_screen_show#11 ← (byte) render_screen_show#15 ^ (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuz1=vbuz1_bxor_vbuc1 + lda render_screen_show + eor #$40 + sta render_screen_show + //SEG147 render_screen_swap::@return + //SEG148 [73] return + rts +} +//SEG149 render_current render_current: { - .label ypos2 = 7 - .label screen_line = $1a - .label xpos = $a - .label i = 9 - .label l = 8 - //SEG128 [66] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 + .label ypos2 = $a + .label screen_line = $1c + .label xpos = $d + .label i = $c + .label l = $b + //SEG150 [75] (byte) render_current::ypos2#0 ← (byte) current_ypos#9 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 txa asl sta ypos2 - //SEG129 [67] phi from render_current to render_current::@1 [phi:render_current->render_current::@1] - //SEG130 [67] phi (byte) render_current::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#0] -- vbuz1=vbuc1 + //SEG151 [76] phi from render_current to render_current::@1 [phi:render_current->render_current::@1] + //SEG152 [76] phi (byte) render_current::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG131 [67] phi (byte) render_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#1] -- vbuz1=vbuc1 + //SEG153 [76] phi (byte) render_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current->render_current::@1#1] -- vbuz1=vbuc1 sta i - //SEG132 [67] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#0 [phi:render_current->render_current::@1#2] -- register_copy - //SEG133 [67] phi from render_current::@3 to render_current::@1 [phi:render_current::@3->render_current::@1] - //SEG134 [67] phi (byte) render_current::l#4 = (byte) render_current::l#1 [phi:render_current::@3->render_current::@1#0] -- register_copy - //SEG135 [67] phi (byte) render_current::i#3 = (byte) render_current::i#8 [phi:render_current::@3->render_current::@1#1] -- register_copy - //SEG136 [67] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#1 [phi:render_current::@3->render_current::@1#2] -- register_copy - //SEG137 render_current::@1 + //SEG154 [76] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#0 [phi:render_current->render_current::@1#2] -- register_copy + //SEG155 [76] phi from render_current::@3 to render_current::@1 [phi:render_current::@3->render_current::@1] + //SEG156 [76] phi (byte) render_current::l#4 = (byte) render_current::l#1 [phi:render_current::@3->render_current::@1#0] -- register_copy + //SEG157 [76] phi (byte) render_current::i#3 = (byte) render_current::i#8 [phi:render_current::@3->render_current::@1#1] -- register_copy + //SEG158 [76] phi (byte) render_current::ypos2#2 = (byte) render_current::ypos2#1 [phi:render_current::@3->render_current::@1#2] -- register_copy + //SEG159 render_current::@1 b1: - //SEG138 [68] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 -- vbuz1_gt_vbuc1_then_la1 + //SEG160 [77] if((byte) render_current::ypos2#2>(byte/signed byte/word/signed word/dword/signed dword) 2) goto render_current::@13 -- vbuz1_gt_vbuc1_then_la1 lda ypos2 cmp #2 beq !+ bcs b13 !: - //SEG139 render_current::@7 + //SEG161 render_current::@7 b7: - //SEG140 [69] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 + //SEG162 [78] (byte) render_current::i#1 ← (byte) render_current::i#3 + (byte/signed byte/word/signed word/dword/signed dword) 4 -- vbuz1=vbuz1_plus_vbuc1 lda #4 clc adc i sta i - //SEG141 [70] phi from render_current::@5 render_current::@7 to render_current::@3 [phi:render_current::@5/render_current::@7->render_current::@3] - //SEG142 [70] phi (byte) render_current::i#8 = (byte) render_current::i#10 [phi:render_current::@5/render_current::@7->render_current::@3#0] -- register_copy - //SEG143 render_current::@3 + //SEG163 [79] phi from render_current::@5 render_current::@7 to render_current::@3 [phi:render_current::@5/render_current::@7->render_current::@3] + //SEG164 [79] phi (byte) render_current::i#8 = (byte) render_current::i#10 [phi:render_current::@5/render_current::@7->render_current::@3#0] -- register_copy + //SEG165 render_current::@3 b3: - //SEG144 [71] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG166 [80] (byte) render_current::ypos2#1 ← (byte) render_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG145 [72] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 -- vbuz1=_inc_vbuz1 + //SEG167 [81] (byte) render_current::l#1 ← ++ (byte) render_current::l#4 -- vbuz1=_inc_vbuz1 inc l - //SEG146 [73] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG168 [82] if((byte) render_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b1 - //SEG147 render_current::@return - //SEG148 [74] return + //SEG169 render_current::@return + //SEG170 [83] return rts - //SEG149 render_current::@13 + //SEG171 render_current::@13 b13: - //SEG150 [75] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 -- vbuz1_lt_vbuc1_then_la1 + //SEG172 [84] if((byte) render_current::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto render_current::@2 -- vbuz1_lt_vbuc1_then_la1 lda ypos2 cmp #2*PLAYFIELD_LINES bcc b2 jmp b7 - //SEG151 render_current::@2 + //SEG173 render_current::@2 b2: - //SEG152 [76] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte) render_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 - ldy ypos2 - lda screen_lines,y + //SEG174 [85] (byte~) render_current::$5 ← (byte) render_screen_render#27 + (byte) render_current::ypos2#2 -- vbuaa=vbuz1_plus_vbuz2 + lda render_screen_render_27 + clc + adc ypos2 + //SEG175 [86] (byte*) render_current::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_current::$5) -- pbuz1=pptc1_derefidx_vbuaa + tay + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 - //SEG153 [77] (byte) render_current::xpos#0 ← (byte) current_xpos#47 -- vbuz1=vbuz2 + //SEG176 [87] (byte) render_current::xpos#0 ← (byte) current_xpos#47 -- vbuz1=vbuz2 lda current_xpos_47 sta xpos - //SEG154 [78] phi from render_current::@2 to render_current::@4 [phi:render_current::@2->render_current::@4] - //SEG155 [78] phi (byte) render_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current::@2->render_current::@4#0] -- vbuxx=vbuc1 + //SEG177 [88] phi from render_current::@2 to render_current::@4 [phi:render_current::@2->render_current::@4] + //SEG178 [88] phi (byte) render_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_current::@2->render_current::@4#0] -- vbuxx=vbuc1 ldx #0 - //SEG156 [78] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#0 [phi:render_current::@2->render_current::@4#1] -- register_copy - //SEG157 [78] phi (byte) render_current::i#4 = (byte) render_current::i#3 [phi:render_current::@2->render_current::@4#2] -- register_copy - //SEG158 [78] phi from render_current::@5 to render_current::@4 [phi:render_current::@5->render_current::@4] - //SEG159 [78] phi (byte) render_current::c#2 = (byte) render_current::c#1 [phi:render_current::@5->render_current::@4#0] -- register_copy - //SEG160 [78] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#1 [phi:render_current::@5->render_current::@4#1] -- register_copy - //SEG161 [78] phi (byte) render_current::i#4 = (byte) render_current::i#10 [phi:render_current::@5->render_current::@4#2] -- register_copy - //SEG162 render_current::@4 + //SEG179 [88] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#0 [phi:render_current::@2->render_current::@4#1] -- register_copy + //SEG180 [88] phi (byte) render_current::i#4 = (byte) render_current::i#3 [phi:render_current::@2->render_current::@4#2] -- register_copy + //SEG181 [88] phi from render_current::@5 to render_current::@4 [phi:render_current::@5->render_current::@4] + //SEG182 [88] phi (byte) render_current::c#2 = (byte) render_current::c#1 [phi:render_current::@5->render_current::@4#0] -- register_copy + //SEG183 [88] phi (byte) render_current::xpos#2 = (byte) render_current::xpos#1 [phi:render_current::@5->render_current::@4#1] -- register_copy + //SEG184 [88] phi (byte) render_current::i#4 = (byte) render_current::i#10 [phi:render_current::@5->render_current::@4#2] -- register_copy + //SEG185 render_current::@4 b4: - //SEG163 [79] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) -- vbuaa=pbuz1_derefidx_vbuz2 + //SEG186 [89] (byte) render_current::current_cell#0 ← *((byte*) current_piece_gfx#52 + (byte) render_current::i#4) -- vbuaa=pbuz1_derefidx_vbuz2 ldy i lda (current_piece_gfx_52),y - //SEG164 [80] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 -- vbuz1=_inc_vbuz1 + //SEG187 [90] (byte) render_current::i#10 ← ++ (byte) render_current::i#4 -- vbuz1=_inc_vbuz1 inc i - //SEG165 [81] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 -- vbuaa_eq_0_then_la1 + //SEG188 [91] if((byte) render_current::current_cell#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_current::@5 -- vbuaa_eq_0_then_la1 cmp #0 beq b5 - //SEG166 render_current::@9 - //SEG167 [82] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 -- vbuz1_ge_vbuc1_then_la1 + //SEG189 render_current::@9 + //SEG190 [92] if((byte) render_current::xpos#2>=(const byte) PLAYFIELD_COLS#0) goto render_current::@5 -- vbuz1_ge_vbuc1_then_la1 lda xpos cmp #PLAYFIELD_COLS bcs b5 - //SEG168 render_current::@10 - //SEG169 [83] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 -- pbuz1_derefidx_vbuz2=vbuz3 + //SEG191 render_current::@10 + //SEG192 [93] *((byte*) render_current::screen_line#0 + (byte) render_current::xpos#2) ← (byte) current_piece_char#62 -- pbuz1_derefidx_vbuz2=vbuz3 lda current_piece_char_62 ldy xpos sta (screen_line),y - //SEG170 render_current::@5 + //SEG193 render_current::@5 b5: - //SEG171 [84] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 -- vbuz1=_inc_vbuz1 + //SEG194 [94] (byte) render_current::xpos#1 ← ++ (byte) render_current::xpos#2 -- vbuz1=_inc_vbuz1 inc xpos - //SEG172 [85] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 -- vbuxx=_inc_vbuxx + //SEG195 [95] (byte) render_current::c#1 ← ++ (byte) render_current::c#2 -- vbuxx=_inc_vbuxx inx - //SEG173 [86] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 -- vbuxx_neq_vbuc1_then_la1 + //SEG196 [96] if((byte) render_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_current::@4 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b4 jmp b3 } -//SEG174 render_playfield +//SEG197 render_playfield render_playfield: { - .label screen_line = 4 + .label screen_line = 7 .label i = 6 - .label l = 3 - //SEG175 [88] phi from render_playfield to render_playfield::@1 [phi:render_playfield->render_playfield::@1] - //SEG176 [88] phi (byte) render_playfield::i#3 = (const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#0] -- vbuz1=vbuc1 + .label c = 9 + .label l = 5 + //SEG198 [98] phi from render_playfield to render_playfield::@1 [phi:render_playfield->render_playfield::@1] + //SEG199 [98] phi (byte) render_playfield::i#3 = (const byte) PLAYFIELD_COLS#0*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#0] -- vbuz1=vbuc1 lda #PLAYFIELD_COLS*2 sta i - //SEG177 [88] phi (byte) render_playfield::l#2 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#1] -- vbuz1=vbuc1 + //SEG200 [98] phi (byte) render_playfield::l#2 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_playfield->render_playfield::@1#1] -- vbuz1=vbuc1 lda #2 sta l - //SEG178 [88] phi from render_playfield::@3 to render_playfield::@1 [phi:render_playfield::@3->render_playfield::@1] - //SEG179 [88] phi (byte) render_playfield::i#3 = (byte) render_playfield::i#1 [phi:render_playfield::@3->render_playfield::@1#0] -- register_copy - //SEG180 [88] phi (byte) render_playfield::l#2 = (byte) render_playfield::l#1 [phi:render_playfield::@3->render_playfield::@1#1] -- register_copy - //SEG181 render_playfield::@1 + //SEG201 [98] phi from render_playfield::@3 to render_playfield::@1 [phi:render_playfield::@3->render_playfield::@1] + //SEG202 [98] phi (byte) render_playfield::i#3 = (byte) render_playfield::i#1 [phi:render_playfield::@3->render_playfield::@1#0] -- register_copy + //SEG203 [98] phi (byte) render_playfield::l#2 = (byte) render_playfield::l#1 [phi:render_playfield::@3->render_playfield::@1#1] -- register_copy + //SEG204 render_playfield::@1 b1: - //SEG182 [89] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuz1_rol_1 + //SEG205 [99] (byte~) render_playfield::$2 ← (byte) render_playfield::l#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuz1_rol_1 lda l asl - //SEG183 [90] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_playfield::$2) -- pbuz1=pptc1_derefidx_vbuaa + //SEG206 [100] (byte~) render_playfield::$3 ← (byte) render_screen_render#18 + (byte~) render_playfield::$2 -- vbuaa=vbuxx_plus_vbuaa + stx $ff + clc + adc $ff + //SEG207 [101] (byte*) render_playfield::screen_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_playfield::$3) -- pbuz1=pptc1_derefidx_vbuaa tay - lda screen_lines,y + lda screen_lines_1,y sta screen_line - lda screen_lines+1,y + lda screen_lines_1+1,y sta screen_line+1 - //SEG184 [91] phi from render_playfield::@1 to render_playfield::@2 [phi:render_playfield::@1->render_playfield::@2] - //SEG185 [91] phi (byte) render_playfield::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_playfield::@1->render_playfield::@2#0] -- vbuxx=vbuc1 - ldx #0 - //SEG186 [91] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#0 [phi:render_playfield::@1->render_playfield::@2#1] -- register_copy - //SEG187 [91] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#3 [phi:render_playfield::@1->render_playfield::@2#2] -- register_copy - //SEG188 [91] phi from render_playfield::@2 to render_playfield::@2 [phi:render_playfield::@2->render_playfield::@2] - //SEG189 [91] phi (byte) render_playfield::c#2 = (byte) render_playfield::c#1 [phi:render_playfield::@2->render_playfield::@2#0] -- register_copy - //SEG190 [91] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#1 [phi:render_playfield::@2->render_playfield::@2#1] -- register_copy - //SEG191 [91] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#1 [phi:render_playfield::@2->render_playfield::@2#2] -- register_copy - //SEG192 render_playfield::@2 + //SEG208 [102] phi from render_playfield::@1 to render_playfield::@2 [phi:render_playfield::@1->render_playfield::@2] + //SEG209 [102] phi (byte) render_playfield::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_playfield::@1->render_playfield::@2#0] -- vbuz1=vbuc1 + lda #0 + sta c + //SEG210 [102] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#0 [phi:render_playfield::@1->render_playfield::@2#1] -- register_copy + //SEG211 [102] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#3 [phi:render_playfield::@1->render_playfield::@2#2] -- register_copy + //SEG212 [102] phi from render_playfield::@2 to render_playfield::@2 [phi:render_playfield::@2->render_playfield::@2] + //SEG213 [102] phi (byte) render_playfield::c#2 = (byte) render_playfield::c#1 [phi:render_playfield::@2->render_playfield::@2#0] -- register_copy + //SEG214 [102] phi (byte*) render_playfield::screen_line#2 = (byte*) render_playfield::screen_line#1 [phi:render_playfield::@2->render_playfield::@2#1] -- register_copy + //SEG215 [102] phi (byte) render_playfield::i#2 = (byte) render_playfield::i#1 [phi:render_playfield::@2->render_playfield::@2#2] -- register_copy + //SEG216 render_playfield::@2 b2: - //SEG193 [92] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) -- _deref_pbuz1=pbuc1_derefidx_vbuz2 + //SEG217 [103] *((byte*) render_playfield::screen_line#2) ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) render_playfield::i#2) -- _deref_pbuz1=pbuc1_derefidx_vbuz2 ldy i lda playfield,y ldy #0 sta (screen_line),y - //SEG194 [93] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 -- pbuz1=_inc_pbuz1 + //SEG218 [104] (byte*) render_playfield::screen_line#1 ← ++ (byte*) render_playfield::screen_line#2 -- pbuz1=_inc_pbuz1 inc screen_line bne !+ inc screen_line+1 !: - //SEG195 [94] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 -- vbuz1=_inc_vbuz1 + //SEG219 [105] (byte) render_playfield::i#1 ← ++ (byte) render_playfield::i#2 -- vbuz1=_inc_vbuz1 inc i - //SEG196 [95] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 -- vbuxx=_inc_vbuxx - inx - //SEG197 [96] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 -- vbuxx_neq_vbuc1_then_la1 - cpx #PLAYFIELD_COLS-1+1 + //SEG220 [106] (byte) render_playfield::c#1 ← ++ (byte) render_playfield::c#2 -- vbuz1=_inc_vbuz1 + inc c + //SEG221 [107] if((byte) render_playfield::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@2 -- vbuz1_neq_vbuc1_then_la1 + lda c + cmp #PLAYFIELD_COLS-1+1 bne b2 - //SEG198 render_playfield::@3 - //SEG199 [97] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 -- vbuz1=_inc_vbuz1 + //SEG222 render_playfield::@3 + //SEG223 [108] (byte) render_playfield::l#1 ← ++ (byte) render_playfield::l#2 -- vbuz1=_inc_vbuz1 inc l - //SEG200 [98] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG224 [109] if((byte) render_playfield::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_playfield::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #PLAYFIELD_LINES-1+1 bne b1 - //SEG201 render_playfield::@return - //SEG202 [99] return + //SEG225 render_playfield::@return + //SEG226 [110] return rts } -//SEG203 play_move_rotate +//SEG227 play_move_rotate play_move_rotate: { - .label orientation = 3 - //SEG204 [100] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 -- vbuaa_eq_vbuc1_then_la1 + .label orientation = 5 + //SEG228 [111] if((byte) play_move_rotate::key_event#0==(const byte) KEY_Z#0) goto play_move_rotate::@1 -- vbuaa_eq_vbuc1_then_la1 cmp #KEY_Z beq b1 - //SEG205 play_move_rotate::@6 - //SEG206 [101] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 -- vbuaa_eq_vbuc1_then_la1 + //SEG229 play_move_rotate::@6 + //SEG230 [112] if((byte) play_move_rotate::key_event#0==(const byte) KEY_X#0) goto play_move_rotate::@2 -- vbuaa_eq_vbuc1_then_la1 cmp #KEY_X beq b2 - //SEG207 [102] phi from play_move_rotate::@14 play_move_rotate::@6 to play_move_rotate::@return [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return] + //SEG231 [113] phi from play_move_rotate::@14 play_move_rotate::@6 to play_move_rotate::@return [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return] b3: - //SEG208 [102] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#1 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#0] -- register_copy - //SEG209 [102] phi (byte) current_orientation#19 = (byte) current_orientation#14 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#1] -- register_copy - //SEG210 [102] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#2] -- vbuaa=vbuc1 + //SEG232 [113] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#1 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#0] -- register_copy + //SEG233 [113] phi (byte) current_orientation#19 = (byte) current_orientation#14 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#1] -- register_copy + //SEG234 [113] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_rotate::@14/play_move_rotate::@6->play_move_rotate::@return#2] -- vbuaa=vbuc1 lda #0 - //SEG211 play_move_rotate::@return + //SEG235 play_move_rotate::@return breturn: - //SEG212 [103] return + //SEG236 [114] return rts - //SEG213 play_move_rotate::@2 + //SEG237 play_move_rotate::@2 b2: - //SEG214 [104] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_plus_vbuc1 + //SEG238 [115] (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 ← (byte) current_orientation#14 + (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_plus_vbuc1 lda #$10 clc adc current_orientation - //SEG215 [105] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 + //SEG239 [116] (byte) play_move_rotate::orientation#2 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$2 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 and #$3f sta orientation - //SEG216 [106] phi from play_move_rotate::@1 play_move_rotate::@2 to play_move_rotate::@4 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4] - //SEG217 [106] phi (byte) play_move_rotate::orientation#3 = (byte) play_move_rotate::orientation#1 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4#0] -- register_copy - //SEG218 play_move_rotate::@4 + //SEG240 [117] phi from play_move_rotate::@1 play_move_rotate::@2 to play_move_rotate::@4 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4] + //SEG241 [117] phi (byte) play_move_rotate::orientation#3 = (byte) play_move_rotate::orientation#1 [phi:play_move_rotate::@1/play_move_rotate::@2->play_move_rotate::@4#0] -- register_copy + //SEG242 play_move_rotate::@4 b4: - //SEG219 [107] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 -- vbuz1=vbuz2 + //SEG243 [118] (byte) play_collision::xpos#3 ← (byte) current_xpos#19 -- vbuz1=vbuz2 lda current_xpos sta play_collision.xpos - //SEG220 [108] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 -- vbuyy=vbuz1 + //SEG244 [119] (byte) play_collision::ypos#3 ← (byte) current_ypos#13 -- vbuyy=vbuz1 ldy current_ypos - //SEG221 [109] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 -- vbuxx=vbuz1 + //SEG245 [120] (byte) play_collision::orientation#3 ← (byte) play_move_rotate::orientation#3 -- vbuxx=vbuz1 ldx orientation - //SEG222 [110] (byte*~) current_piece#76 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG246 [121] (byte*~) current_piece#76 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_76 lda current_piece+1 sta current_piece_76+1 - //SEG223 [111] call play_collision - //SEG224 [119] phi from play_move_rotate::@4 to play_collision [phi:play_move_rotate::@4->play_collision] - //SEG225 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#3 [phi:play_move_rotate::@4->play_collision#0] -- register_copy - //SEG226 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#3 [phi:play_move_rotate::@4->play_collision#1] -- register_copy - //SEG227 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#3 [phi:play_move_rotate::@4->play_collision#2] -- register_copy - //SEG228 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#76 [phi:play_move_rotate::@4->play_collision#3] -- register_copy + //SEG247 [122] call play_collision + //SEG248 [130] phi from play_move_rotate::@4 to play_collision [phi:play_move_rotate::@4->play_collision] + //SEG249 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#3 [phi:play_move_rotate::@4->play_collision#0] -- register_copy + //SEG250 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#3 [phi:play_move_rotate::@4->play_collision#1] -- register_copy + //SEG251 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#3 [phi:play_move_rotate::@4->play_collision#2] -- register_copy + //SEG252 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#76 [phi:play_move_rotate::@4->play_collision#3] -- register_copy jsr play_collision - //SEG229 [112] (byte) play_collision::return#13 ← (byte) play_collision::return#14 + //SEG253 [123] (byte) play_collision::return#13 ← (byte) play_collision::return#14 // (byte) play_collision::return#13 = (byte) play_collision::return#14 // register copy reg byte a - //SEG230 play_move_rotate::@14 - //SEG231 [113] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 + //SEG254 play_move_rotate::@14 + //SEG255 [124] (byte~) play_move_rotate::$6 ← (byte) play_collision::return#13 // (byte~) play_move_rotate::$6 = (byte) play_collision::return#13 // register copy reg byte a - //SEG232 [114] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG256 [125] if((byte~) play_move_rotate::$6!=(const byte) COLLISION_NONE#0) goto play_move_rotate::@return -- vbuaa_neq_vbuc1_then_la1 cmp #COLLISION_NONE bne b3 - //SEG233 play_move_rotate::@11 - //SEG234 [115] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 + //SEG257 play_move_rotate::@11 + //SEG258 [126] (byte) current_orientation#4 ← (byte) play_move_rotate::orientation#3 -- vbuz1=vbuz2 lda orientation sta current_orientation - //SEG235 [116] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 -- pbuz1=pbuz2_plus_vbuz3 + //SEG259 [127] (byte*) current_piece_gfx#3 ← (byte*) current_piece#10 + (byte) current_orientation#4 -- pbuz1=pbuz2_plus_vbuz3 clc adc current_piece sta current_piece_gfx lda #0 adc current_piece+1 sta current_piece_gfx+1 - //SEG236 [102] phi from play_move_rotate::@11 to play_move_rotate::@return [phi:play_move_rotate::@11->play_move_rotate::@return] - //SEG237 [102] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#3 [phi:play_move_rotate::@11->play_move_rotate::@return#0] -- register_copy - //SEG238 [102] phi (byte) current_orientation#19 = (byte) current_orientation#4 [phi:play_move_rotate::@11->play_move_rotate::@return#1] -- register_copy - //SEG239 [102] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_rotate::@11->play_move_rotate::@return#2] -- vbuaa=vbuc1 + //SEG260 [113] phi from play_move_rotate::@11 to play_move_rotate::@return [phi:play_move_rotate::@11->play_move_rotate::@return] + //SEG261 [113] phi (byte*) current_piece_gfx#14 = (byte*) current_piece_gfx#3 [phi:play_move_rotate::@11->play_move_rotate::@return#0] -- register_copy + //SEG262 [113] phi (byte) current_orientation#19 = (byte) current_orientation#4 [phi:play_move_rotate::@11->play_move_rotate::@return#1] -- register_copy + //SEG263 [113] phi (byte) play_move_rotate::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_rotate::@11->play_move_rotate::@return#2] -- vbuaa=vbuc1 lda #1 jmp breturn - //SEG240 play_move_rotate::@1 + //SEG264 play_move_rotate::@1 b1: - //SEG241 [117] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_minus_vbuc1 + //SEG265 [128] (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 ← (byte) current_orientation#14 - (byte/signed byte/word/signed word/dword/signed dword) 16 -- vbuaa=vbuz1_minus_vbuc1 lda current_orientation sec sbc #$10 - //SEG242 [118] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 + //SEG266 [129] (byte) play_move_rotate::orientation#1 ← (byte/signed word/word/dword/signed dword~) play_move_rotate::$4 & (byte/signed byte/word/signed word/dword/signed dword) 63 -- vbuz1=vbuaa_band_vbuc1 and #$3f sta orientation jmp b4 } -//SEG243 play_collision +//SEG267 play_collision play_collision: { .label xpos = 6 - .label piece_gfx = 4 - .label ypos2 = 7 - .label playfield_line = $1a - .label i = $1c - .label col = $a - .label l = 8 - .label i_2 = 9 - .label i_3 = 9 - .label i_11 = 9 - .label i_13 = 9 - //SEG244 [120] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 -- pbuz1=pbuz1_plus_vbuxx + .label piece_gfx = 7 + .label ypos2 = 9 + .label playfield_line = $1c + .label i = $1e + .label col = $c + .label l = $a + .label i_2 = $b + .label i_3 = $b + .label i_11 = $b + .label i_13 = $b + //SEG268 [131] (byte*) play_collision::piece_gfx#0 ← (byte*) current_piece#12 + (byte) play_collision::orientation#4 -- pbuz1=pbuz1_plus_vbuxx txa clc adc piece_gfx @@ -16808,956 +17896,984 @@ play_collision: { lda #0 adc piece_gfx+1 sta piece_gfx+1 - //SEG245 [121] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuyy_rol_1 + //SEG269 [132] (byte) play_collision::ypos2#0 ← (byte) play_collision::ypos#4 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuyy_rol_1 tya asl sta ypos2 - //SEG246 [122] phi from play_collision to play_collision::@1 [phi:play_collision->play_collision::@1] - //SEG247 [122] phi (byte) play_collision::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#0] -- vbuz1=vbuc1 + //SEG270 [133] phi from play_collision to play_collision::@1 [phi:play_collision->play_collision::@1] + //SEG271 [133] phi (byte) play_collision::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG248 [122] phi (byte) play_collision::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#1] -- vbuz1=vbuc1 + //SEG272 [133] phi (byte) play_collision::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision->play_collision::@1#1] -- vbuz1=vbuc1 sta i_3 - //SEG249 [122] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#0 [phi:play_collision->play_collision::@1#2] -- register_copy - //SEG250 play_collision::@1 + //SEG273 [133] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#0 [phi:play_collision->play_collision::@1#2] -- register_copy + //SEG274 play_collision::@1 b1: - //SEG251 [123] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG275 [134] (byte*) play_collision::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_collision::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 ldy ypos2 lda playfield_lines,y sta playfield_line lda playfield_lines+1,y sta playfield_line+1 - //SEG252 [124] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 -- vbuz1=vbuz2 + //SEG276 [135] (byte~) play_collision::col#9 ← (byte) play_collision::xpos#5 -- vbuz1=vbuz2 lda xpos sta col - //SEG253 [125] phi from play_collision::@1 to play_collision::@2 [phi:play_collision::@1->play_collision::@2] - //SEG254 [125] phi (byte) play_collision::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision::@1->play_collision::@2#0] -- vbuxx=vbuc1 + //SEG277 [136] phi from play_collision::@1 to play_collision::@2 [phi:play_collision::@1->play_collision::@2] + //SEG278 [136] phi (byte) play_collision::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_collision::@1->play_collision::@2#0] -- vbuxx=vbuc1 ldx #0 - //SEG255 [125] phi (byte) play_collision::col#2 = (byte~) play_collision::col#9 [phi:play_collision::@1->play_collision::@2#1] -- register_copy - //SEG256 [125] phi (byte) play_collision::i#2 = (byte) play_collision::i#3 [phi:play_collision::@1->play_collision::@2#2] -- register_copy - //SEG257 play_collision::@2 + //SEG279 [136] phi (byte) play_collision::col#2 = (byte~) play_collision::col#9 [phi:play_collision::@1->play_collision::@2#1] -- register_copy + //SEG280 [136] phi (byte) play_collision::i#2 = (byte) play_collision::i#3 [phi:play_collision::@1->play_collision::@2#2] -- register_copy + //SEG281 play_collision::@2 b2: - //SEG258 [126] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 -- vbuz1=_inc_vbuz2 + //SEG282 [137] (byte) play_collision::i#1 ← ++ (byte) play_collision::i#2 -- vbuz1=_inc_vbuz2 ldy i_2 iny sty i - //SEG259 [127] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG283 [138] if(*((byte*) play_collision::piece_gfx#0 + (byte) play_collision::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy i_2 lda (piece_gfx),y cmp #0 beq b3 - //SEG260 play_collision::@8 - //SEG261 [128] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 -- vbuz1_lt_vbuc1_then_la1 + //SEG284 play_collision::@8 + //SEG285 [139] if((byte) play_collision::ypos2#2<(byte/signed byte/word/signed word/dword/signed dword) 2*(const byte) PLAYFIELD_LINES#0) goto play_collision::@4 -- vbuz1_lt_vbuc1_then_la1 lda ypos2 cmp #2*PLAYFIELD_LINES bcc b4 - //SEG262 [129] phi from play_collision::@8 to play_collision::@return [phi:play_collision::@8->play_collision::@return] - //SEG263 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_BOTTOM#0 [phi:play_collision::@8->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG286 [140] phi from play_collision::@8 to play_collision::@return [phi:play_collision::@8->play_collision::@return] + //SEG287 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_BOTTOM#0 [phi:play_collision::@8->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_BOTTOM - //SEG264 play_collision::@return + //SEG288 play_collision::@return breturn: - //SEG265 [130] return + //SEG289 [141] return rts - //SEG266 play_collision::@4 + //SEG290 play_collision::@4 b4: - //SEG267 [131] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 -- vbuaa=vbuz1_band_vbuc1 + //SEG291 [142] (byte~) play_collision::$7 ← (byte) play_collision::col#2 & (byte/word/signed word/dword/signed dword) 128 -- vbuaa=vbuz1_band_vbuc1 lda #$80 and col - //SEG268 [132] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 -- vbuaa_eq_0_then_la1 + //SEG292 [143] if((byte~) play_collision::$7==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@5 -- vbuaa_eq_0_then_la1 cmp #0 beq b5 - //SEG269 [129] phi from play_collision::@4 to play_collision::@return [phi:play_collision::@4->play_collision::@return] - //SEG270 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_LEFT#0 [phi:play_collision::@4->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG293 [140] phi from play_collision::@4 to play_collision::@return [phi:play_collision::@4->play_collision::@return] + //SEG294 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_LEFT#0 [phi:play_collision::@4->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_LEFT jmp breturn - //SEG271 play_collision::@5 + //SEG295 play_collision::@5 b5: - //SEG272 [133] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 -- vbuz1_lt_vbuc1_then_la1 + //SEG296 [144] if((byte) play_collision::col#2<(const byte) PLAYFIELD_COLS#0) goto play_collision::@6 -- vbuz1_lt_vbuc1_then_la1 lda col cmp #PLAYFIELD_COLS bcc b6 - //SEG273 [129] phi from play_collision::@5 to play_collision::@return [phi:play_collision::@5->play_collision::@return] - //SEG274 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_RIGHT#0 [phi:play_collision::@5->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG297 [140] phi from play_collision::@5 to play_collision::@return [phi:play_collision::@5->play_collision::@return] + //SEG298 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_RIGHT#0 [phi:play_collision::@5->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_RIGHT jmp breturn - //SEG275 play_collision::@6 + //SEG299 play_collision::@6 b6: - //SEG276 [134] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG300 [145] if(*((byte*) play_collision::playfield_line#0 + (byte) play_collision::col#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_collision::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy col lda (playfield_line),y cmp #0 beq b3 - //SEG277 [129] phi from play_collision::@6 to play_collision::@return [phi:play_collision::@6->play_collision::@return] - //SEG278 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_PLAYFIELD#0 [phi:play_collision::@6->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG301 [140] phi from play_collision::@6 to play_collision::@return [phi:play_collision::@6->play_collision::@return] + //SEG302 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_PLAYFIELD#0 [phi:play_collision::@6->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_PLAYFIELD jmp breturn - //SEG279 play_collision::@3 + //SEG303 play_collision::@3 b3: - //SEG280 [135] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 -- vbuz1=_inc_vbuz1 + //SEG304 [146] (byte) play_collision::col#1 ← ++ (byte) play_collision::col#2 -- vbuz1=_inc_vbuz1 inc col - //SEG281 [136] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 -- vbuxx=_inc_vbuxx + //SEG305 [147] (byte) play_collision::c#1 ← ++ (byte) play_collision::c#2 -- vbuxx=_inc_vbuxx inx - //SEG282 [137] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 -- vbuxx_neq_vbuc1_then_la1 + //SEG306 [148] if((byte) play_collision::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@21 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b21 - //SEG283 play_collision::@17 - //SEG284 [138] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG307 play_collision::@17 + //SEG308 [149] (byte) play_collision::ypos2#1 ← (byte) play_collision::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG285 [139] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 -- vbuz1=_inc_vbuz1 + //SEG309 [150] (byte) play_collision::l#1 ← ++ (byte) play_collision::l#6 -- vbuz1=_inc_vbuz1 inc l - //SEG286 [140] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 -- vbuz1_neq_vbuc1_then_la1 + //SEG310 [151] if((byte) play_collision::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_collision::@20 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b20 - //SEG287 [129] phi from play_collision::@17 to play_collision::@return [phi:play_collision::@17->play_collision::@return] - //SEG288 [129] phi (byte) play_collision::return#14 = (const byte) COLLISION_NONE#0 [phi:play_collision::@17->play_collision::@return#0] -- vbuaa=vbuc1 + //SEG311 [140] phi from play_collision::@17 to play_collision::@return [phi:play_collision::@17->play_collision::@return] + //SEG312 [140] phi (byte) play_collision::return#14 = (const byte) COLLISION_NONE#0 [phi:play_collision::@17->play_collision::@return#0] -- vbuaa=vbuc1 lda #COLLISION_NONE jmp breturn - //SEG289 play_collision::@20 + //SEG313 play_collision::@20 b20: - //SEG290 [141] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 + //SEG314 [152] (byte~) play_collision::i#11 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 lda i sta i_11 - //SEG291 [122] phi from play_collision::@20 to play_collision::@1 [phi:play_collision::@20->play_collision::@1] - //SEG292 [122] phi (byte) play_collision::l#6 = (byte) play_collision::l#1 [phi:play_collision::@20->play_collision::@1#0] -- register_copy - //SEG293 [122] phi (byte) play_collision::i#3 = (byte~) play_collision::i#11 [phi:play_collision::@20->play_collision::@1#1] -- register_copy - //SEG294 [122] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#1 [phi:play_collision::@20->play_collision::@1#2] -- register_copy + //SEG315 [133] phi from play_collision::@20 to play_collision::@1 [phi:play_collision::@20->play_collision::@1] + //SEG316 [133] phi (byte) play_collision::l#6 = (byte) play_collision::l#1 [phi:play_collision::@20->play_collision::@1#0] -- register_copy + //SEG317 [133] phi (byte) play_collision::i#3 = (byte~) play_collision::i#11 [phi:play_collision::@20->play_collision::@1#1] -- register_copy + //SEG318 [133] phi (byte) play_collision::ypos2#2 = (byte) play_collision::ypos2#1 [phi:play_collision::@20->play_collision::@1#2] -- register_copy jmp b1 - //SEG295 play_collision::@21 + //SEG319 play_collision::@21 b21: - //SEG296 [142] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 + //SEG320 [153] (byte~) play_collision::i#13 ← (byte) play_collision::i#1 -- vbuz1=vbuz2 lda i sta i_13 - //SEG297 [125] phi from play_collision::@21 to play_collision::@2 [phi:play_collision::@21->play_collision::@2] - //SEG298 [125] phi (byte) play_collision::c#2 = (byte) play_collision::c#1 [phi:play_collision::@21->play_collision::@2#0] -- register_copy - //SEG299 [125] phi (byte) play_collision::col#2 = (byte) play_collision::col#1 [phi:play_collision::@21->play_collision::@2#1] -- register_copy - //SEG300 [125] phi (byte) play_collision::i#2 = (byte~) play_collision::i#13 [phi:play_collision::@21->play_collision::@2#2] -- register_copy + //SEG321 [136] phi from play_collision::@21 to play_collision::@2 [phi:play_collision::@21->play_collision::@2] + //SEG322 [136] phi (byte) play_collision::c#2 = (byte) play_collision::c#1 [phi:play_collision::@21->play_collision::@2#0] -- register_copy + //SEG323 [136] phi (byte) play_collision::col#2 = (byte) play_collision::col#1 [phi:play_collision::@21->play_collision::@2#1] -- register_copy + //SEG324 [136] phi (byte) play_collision::i#2 = (byte~) play_collision::i#13 [phi:play_collision::@21->play_collision::@2#2] -- register_copy jmp b2 } -//SEG301 play_move_leftright +//SEG325 play_move_leftright play_move_leftright: { - //SEG302 [143] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 -- vbuaa_eq_vbuc1_then_la1 + //SEG326 [154] if((byte) play_move_leftright::key_event#0==(const byte) KEY_COMMA#0) goto play_move_leftright::@1 -- vbuaa_eq_vbuc1_then_la1 cmp #KEY_COMMA beq b1 - //SEG303 play_move_leftright::@6 - //SEG304 [144] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG327 play_move_leftright::@6 + //SEG328 [155] if((byte) play_move_leftright::key_event#0!=(const byte) KEY_DOT#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 cmp #KEY_DOT bne b3 - //SEG305 play_move_leftright::@7 - //SEG306 [145] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 + //SEG329 play_move_leftright::@7 + //SEG330 [156] (byte) play_collision::xpos#2 ← (byte) current_xpos#1 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_plus_1 ldy current_xpos iny sty play_collision.xpos - //SEG307 [146] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 -- vbuyy=vbuz1 + //SEG331 [157] (byte) play_collision::ypos#2 ← (byte) current_ypos#13 -- vbuyy=vbuz1 ldy current_ypos - //SEG308 [147] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 -- vbuxx=vbuz1 + //SEG332 [158] (byte) play_collision::orientation#2 ← (byte) current_orientation#14 -- vbuxx=vbuz1 ldx current_orientation - //SEG309 [148] (byte*~) current_piece#75 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG333 [159] (byte*~) current_piece#75 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_75 lda current_piece+1 sta current_piece_75+1 - //SEG310 [149] call play_collision - //SEG311 [119] phi from play_move_leftright::@7 to play_collision [phi:play_move_leftright::@7->play_collision] - //SEG312 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#2 [phi:play_move_leftright::@7->play_collision#0] -- register_copy - //SEG313 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#2 [phi:play_move_leftright::@7->play_collision#1] -- register_copy - //SEG314 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#2 [phi:play_move_leftright::@7->play_collision#2] -- register_copy - //SEG315 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#75 [phi:play_move_leftright::@7->play_collision#3] -- register_copy + //SEG334 [160] call play_collision + //SEG335 [130] phi from play_move_leftright::@7 to play_collision [phi:play_move_leftright::@7->play_collision] + //SEG336 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#2 [phi:play_move_leftright::@7->play_collision#0] -- register_copy + //SEG337 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#2 [phi:play_move_leftright::@7->play_collision#1] -- register_copy + //SEG338 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#2 [phi:play_move_leftright::@7->play_collision#2] -- register_copy + //SEG339 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#75 [phi:play_move_leftright::@7->play_collision#3] -- register_copy jsr play_collision - //SEG316 [150] (byte) play_collision::return#12 ← (byte) play_collision::return#14 + //SEG340 [161] (byte) play_collision::return#12 ← (byte) play_collision::return#14 // (byte) play_collision::return#12 = (byte) play_collision::return#14 // register copy reg byte a - //SEG317 play_move_leftright::@15 - //SEG318 [151] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 + //SEG341 play_move_leftright::@15 + //SEG342 [162] (byte~) play_move_leftright::$4 ← (byte) play_collision::return#12 // (byte~) play_move_leftright::$4 = (byte) play_collision::return#12 // register copy reg byte a - //SEG319 [152] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG343 [163] if((byte~) play_move_leftright::$4!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 cmp #COLLISION_NONE bne b3 - //SEG320 play_move_leftright::@8 - //SEG321 [153] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 -- vbuz1=_inc_vbuz1 + //SEG344 play_move_leftright::@8 + //SEG345 [164] (byte) current_xpos#2 ← ++ (byte) current_xpos#1 -- vbuz1=_inc_vbuz1 inc current_xpos - //SEG322 [154] phi from play_move_leftright::@11 play_move_leftright::@8 to play_move_leftright::@return [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return] + //SEG346 [165] phi from play_move_leftright::@11 play_move_leftright::@8 to play_move_leftright::@return [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return] b2: - //SEG323 [154] phi (byte) current_xpos#19 = (byte) current_xpos#4 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#0] -- register_copy - //SEG324 [154] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#1] -- vbuaa=vbuc1 + //SEG347 [165] phi (byte) current_xpos#19 = (byte) current_xpos#4 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#0] -- register_copy + //SEG348 [165] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_leftright::@11/play_move_leftright::@8->play_move_leftright::@return#1] -- vbuaa=vbuc1 lda #1 jmp breturn - //SEG325 [154] phi from play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 to play_move_leftright::@return [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return] + //SEG349 [165] phi from play_move_leftright::@14 play_move_leftright::@15 play_move_leftright::@6 to play_move_leftright::@return [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return] b3: - //SEG326 [154] phi (byte) current_xpos#19 = (byte) current_xpos#1 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#0] -- register_copy - //SEG327 [154] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#1] -- vbuaa=vbuc1 + //SEG350 [165] phi (byte) current_xpos#19 = (byte) current_xpos#1 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#0] -- register_copy + //SEG351 [165] phi (byte) play_move_leftright::return#1 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_leftright::@14/play_move_leftright::@15/play_move_leftright::@6->play_move_leftright::@return#1] -- vbuaa=vbuc1 lda #0 - //SEG328 play_move_leftright::@return + //SEG352 play_move_leftright::@return breturn: - //SEG329 [155] return + //SEG353 [166] return rts - //SEG330 play_move_leftright::@1 + //SEG354 play_move_leftright::@1 b1: - //SEG331 [156] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_minus_1 + //SEG355 [167] (byte) play_collision::xpos#1 ← (byte) current_xpos#1 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz2_minus_1 ldx current_xpos dex stx play_collision.xpos - //SEG332 [157] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 -- vbuyy=vbuz1 + //SEG356 [168] (byte) play_collision::ypos#1 ← (byte) current_ypos#13 -- vbuyy=vbuz1 ldy current_ypos - //SEG333 [158] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 -- vbuxx=vbuz1 + //SEG357 [169] (byte) play_collision::orientation#1 ← (byte) current_orientation#14 -- vbuxx=vbuz1 ldx current_orientation - //SEG334 [159] (byte*~) current_piece#74 ← (byte*) current_piece#10 -- pbuz1=pbuz2 + //SEG358 [170] (byte*~) current_piece#74 ← (byte*) current_piece#10 -- pbuz1=pbuz2 lda current_piece sta current_piece_74 lda current_piece+1 sta current_piece_74+1 - //SEG335 [160] call play_collision - //SEG336 [119] phi from play_move_leftright::@1 to play_collision [phi:play_move_leftright::@1->play_collision] - //SEG337 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#1 [phi:play_move_leftright::@1->play_collision#0] -- register_copy - //SEG338 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#1 [phi:play_move_leftright::@1->play_collision#1] -- register_copy - //SEG339 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#1 [phi:play_move_leftright::@1->play_collision#2] -- register_copy - //SEG340 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#74 [phi:play_move_leftright::@1->play_collision#3] -- register_copy + //SEG359 [171] call play_collision + //SEG360 [130] phi from play_move_leftright::@1 to play_collision [phi:play_move_leftright::@1->play_collision] + //SEG361 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#1 [phi:play_move_leftright::@1->play_collision#0] -- register_copy + //SEG362 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#1 [phi:play_move_leftright::@1->play_collision#1] -- register_copy + //SEG363 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#1 [phi:play_move_leftright::@1->play_collision#2] -- register_copy + //SEG364 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#74 [phi:play_move_leftright::@1->play_collision#3] -- register_copy jsr play_collision - //SEG341 [161] (byte) play_collision::return#1 ← (byte) play_collision::return#14 + //SEG365 [172] (byte) play_collision::return#1 ← (byte) play_collision::return#14 // (byte) play_collision::return#1 = (byte) play_collision::return#14 // register copy reg byte a - //SEG342 play_move_leftright::@14 - //SEG343 [162] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 + //SEG366 play_move_leftright::@14 + //SEG367 [173] (byte~) play_move_leftright::$8 ← (byte) play_collision::return#1 // (byte~) play_move_leftright::$8 = (byte) play_collision::return#1 // register copy reg byte a - //SEG344 [163] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 + //SEG368 [174] if((byte~) play_move_leftright::$8!=(const byte) COLLISION_NONE#0) goto play_move_leftright::@return -- vbuaa_neq_vbuc1_then_la1 cmp #COLLISION_NONE bne b3 - //SEG345 play_move_leftright::@11 - //SEG346 [164] (byte) current_xpos#4 ← -- (byte) current_xpos#1 -- vbuz1=_dec_vbuz1 + //SEG369 play_move_leftright::@11 + //SEG370 [175] (byte) current_xpos#4 ← -- (byte) current_xpos#1 -- vbuz1=_dec_vbuz1 dec current_xpos jmp b2 } -//SEG347 play_move_down +//SEG371 play_move_down play_move_down: { - //SEG348 [165] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 -- vbuz1=_inc_vbuz1 + //SEG372 [176] (byte) current_movedown_counter#1 ← ++ (byte) current_movedown_counter#12 -- vbuz1=_inc_vbuz1 inc current_movedown_counter - //SEG349 [166] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 -- vbuaa_neq_vbuc1_then_la1 + //SEG373 [177] if((byte) play_move_down::key_event#0!=(const byte) KEY_SPACE#0) goto play_move_down::@1 -- vbuaa_neq_vbuc1_then_la1 cmp #KEY_SPACE bne b3 - //SEG350 [167] phi from play_move_down to play_move_down::@8 [phi:play_move_down->play_move_down::@8] - //SEG351 play_move_down::@8 - //SEG352 [168] phi from play_move_down::@8 to play_move_down::@1 [phi:play_move_down::@8->play_move_down::@1] - //SEG353 [168] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@8->play_move_down::@1#0] -- vbuxx=vbuc1 + //SEG374 [178] phi from play_move_down to play_move_down::@8 [phi:play_move_down->play_move_down::@8] + //SEG375 play_move_down::@8 + //SEG376 [179] phi from play_move_down::@8 to play_move_down::@1 [phi:play_move_down::@8->play_move_down::@1] + //SEG377 [179] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@8->play_move_down::@1#0] -- vbuxx=vbuc1 ldx #1 jmp b1 - //SEG354 [168] phi from play_move_down to play_move_down::@1 [phi:play_move_down->play_move_down::@1] + //SEG378 [179] phi from play_move_down to play_move_down::@1 [phi:play_move_down->play_move_down::@1] b3: - //SEG355 [168] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down->play_move_down::@1#0] -- vbuxx=vbuc1 + //SEG379 [179] phi (byte) play_move_down::movedown#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down->play_move_down::@1#0] -- vbuxx=vbuc1 ldx #0 - //SEG356 play_move_down::@1 + //SEG380 play_move_down::@1 b1: - //SEG357 [169] call keyboard_event_pressed - //SEG358 [254] phi from play_move_down::@1 to keyboard_event_pressed [phi:play_move_down::@1->keyboard_event_pressed] - //SEG359 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_SPACE#0 [phi:play_move_down::@1->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG381 [180] call keyboard_event_pressed + //SEG382 [265] phi from play_move_down::@1 to keyboard_event_pressed [phi:play_move_down::@1->keyboard_event_pressed] + //SEG383 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_SPACE#0 [phi:play_move_down::@1->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_SPACE sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG360 [170] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 + //SEG384 [181] (byte) keyboard_event_pressed::return#12 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#12 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a - //SEG361 play_move_down::@17 - //SEG362 [171] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 + //SEG385 play_move_down::@17 + //SEG386 [182] (byte~) play_move_down::$2 ← (byte) keyboard_event_pressed::return#12 // (byte~) play_move_down::$2 = (byte) keyboard_event_pressed::return#12 // register copy reg byte a - //SEG363 [172] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 -- vbuaa_eq_0_then_la1 + //SEG387 [183] if((byte~) play_move_down::$2==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@2 -- vbuaa_eq_0_then_la1 cmp #0 beq b2 - //SEG364 play_move_down::@9 - //SEG365 [173] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 -- vbuz1_lt_vbuc1_then_la1 + //SEG388 play_move_down::@9 + //SEG389 [184] if((byte) current_movedown_counter#1<(const byte) current_movedown_fast#0) goto play_move_down::@2 -- vbuz1_lt_vbuc1_then_la1 lda current_movedown_counter cmp #current_movedown_fast bcc b2 - //SEG366 play_move_down::@10 - //SEG367 [174] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 -- vbuxx=_inc_vbuxx + //SEG390 play_move_down::@10 + //SEG391 [185] (byte) play_move_down::movedown#2 ← ++ (byte) play_move_down::movedown#10 -- vbuxx=_inc_vbuxx inx - //SEG368 [175] phi from play_move_down::@10 play_move_down::@17 play_move_down::@9 to play_move_down::@2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2] - //SEG369 [175] phi (byte) play_move_down::movedown#7 = (byte) play_move_down::movedown#2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2#0] -- register_copy - //SEG370 play_move_down::@2 + //SEG392 [186] phi from play_move_down::@10 play_move_down::@17 play_move_down::@9 to play_move_down::@2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2] + //SEG393 [186] phi (byte) play_move_down::movedown#7 = (byte) play_move_down::movedown#2 [phi:play_move_down::@10/play_move_down::@17/play_move_down::@9->play_move_down::@2#0] -- register_copy + //SEG394 play_move_down::@2 b2: - //SEG371 [176] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 -- vbuz1_lt_vbuc1_then_la1 + //SEG395 [187] if((byte) current_movedown_counter#1<(const byte) current_movedown_slow#0) goto play_move_down::@4 -- vbuz1_lt_vbuc1_then_la1 lda current_movedown_counter cmp #current_movedown_slow bcc b4 - //SEG372 play_move_down::@11 - //SEG373 [177] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 -- vbuxx=_inc_vbuxx + //SEG396 play_move_down::@11 + //SEG397 [188] (byte) play_move_down::movedown#3 ← ++ (byte) play_move_down::movedown#7 -- vbuxx=_inc_vbuxx inx - //SEG374 [178] phi from play_move_down::@11 play_move_down::@2 to play_move_down::@4 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4] - //SEG375 [178] phi (byte) play_move_down::movedown#6 = (byte) play_move_down::movedown#3 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4#0] -- register_copy - //SEG376 play_move_down::@4 + //SEG398 [189] phi from play_move_down::@11 play_move_down::@2 to play_move_down::@4 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4] + //SEG399 [189] phi (byte) play_move_down::movedown#6 = (byte) play_move_down::movedown#3 [phi:play_move_down::@11/play_move_down::@2->play_move_down::@4#0] -- register_copy + //SEG400 play_move_down::@4 b4: - //SEG377 [179] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return -- vbuxx_eq_0_then_la1 + //SEG401 [190] if((byte) play_move_down::movedown#6==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_move_down::@return -- vbuxx_eq_0_then_la1 cpx #0 beq b5 - //SEG378 play_move_down::@12 - //SEG379 [180] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=vbuz1_plus_1 + //SEG402 play_move_down::@12 + //SEG403 [191] (byte) play_collision::ypos#0 ← (byte) current_ypos#21 + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=vbuz1_plus_1 ldy current_ypos iny - //SEG380 [181] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 + //SEG404 [192] (byte) play_collision::xpos#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 lda current_xpos sta play_collision.xpos - //SEG381 [182] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 -- vbuxx=vbuz1 + //SEG405 [193] (byte) play_collision::orientation#0 ← (byte) current_orientation#10 -- vbuxx=vbuz1 ldx current_orientation - //SEG382 [183] (byte*~) current_piece#73 ← (byte*) current_piece#16 -- pbuz1=pbuz2 + //SEG406 [194] (byte*~) current_piece#73 ← (byte*) current_piece#16 -- pbuz1=pbuz2 lda current_piece sta current_piece_73 lda current_piece+1 sta current_piece_73+1 - //SEG383 [184] call play_collision - //SEG384 [119] phi from play_move_down::@12 to play_collision [phi:play_move_down::@12->play_collision] - //SEG385 [119] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#0 [phi:play_move_down::@12->play_collision#0] -- register_copy - //SEG386 [119] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#0 [phi:play_move_down::@12->play_collision#1] -- register_copy - //SEG387 [119] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#0 [phi:play_move_down::@12->play_collision#2] -- register_copy - //SEG388 [119] phi (byte*) current_piece#12 = (byte*~) current_piece#73 [phi:play_move_down::@12->play_collision#3] -- register_copy + //SEG407 [195] call play_collision + //SEG408 [130] phi from play_move_down::@12 to play_collision [phi:play_move_down::@12->play_collision] + //SEG409 [130] phi (byte) play_collision::xpos#5 = (byte) play_collision::xpos#0 [phi:play_move_down::@12->play_collision#0] -- register_copy + //SEG410 [130] phi (byte) play_collision::ypos#4 = (byte) play_collision::ypos#0 [phi:play_move_down::@12->play_collision#1] -- register_copy + //SEG411 [130] phi (byte) play_collision::orientation#4 = (byte) play_collision::orientation#0 [phi:play_move_down::@12->play_collision#2] -- register_copy + //SEG412 [130] phi (byte*) current_piece#12 = (byte*~) current_piece#73 [phi:play_move_down::@12->play_collision#3] -- register_copy jsr play_collision - //SEG389 [185] (byte) play_collision::return#0 ← (byte) play_collision::return#14 + //SEG413 [196] (byte) play_collision::return#0 ← (byte) play_collision::return#14 // (byte) play_collision::return#0 = (byte) play_collision::return#14 // register copy reg byte a - //SEG390 play_move_down::@18 - //SEG391 [186] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 + //SEG414 play_move_down::@18 + //SEG415 [197] (byte~) play_move_down::$12 ← (byte) play_collision::return#0 // (byte~) play_move_down::$12 = (byte) play_collision::return#0 // register copy reg byte a - //SEG392 [187] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 -- vbuaa_eq_vbuc1_then_la1 + //SEG416 [198] if((byte~) play_move_down::$12==(const byte) COLLISION_NONE#0) goto play_move_down::@6 -- vbuaa_eq_vbuc1_then_la1 cmp #COLLISION_NONE beq b6 - //SEG393 [188] phi from play_move_down::@18 to play_move_down::@13 [phi:play_move_down::@18->play_move_down::@13] - //SEG394 play_move_down::@13 - //SEG395 [189] call play_lock_current + //SEG417 [199] phi from play_move_down::@18 to play_move_down::@13 [phi:play_move_down::@18->play_move_down::@13] + //SEG418 play_move_down::@13 + //SEG419 [200] call play_lock_current jsr play_lock_current - //SEG396 [190] phi from play_move_down::@13 to play_move_down::@19 [phi:play_move_down::@13->play_move_down::@19] - //SEG397 play_move_down::@19 - //SEG398 [191] call play_remove_lines - //SEG399 [215] phi from play_move_down::@19 to play_remove_lines [phi:play_move_down::@19->play_remove_lines] + //SEG420 [201] phi from play_move_down::@13 to play_move_down::@19 [phi:play_move_down::@13->play_move_down::@19] + //SEG421 play_move_down::@19 + //SEG422 [202] call play_remove_lines + //SEG423 [226] phi from play_move_down::@19 to play_remove_lines [phi:play_move_down::@19->play_remove_lines] jsr play_remove_lines - //SEG400 [192] phi from play_move_down::@19 to play_move_down::@20 [phi:play_move_down::@19->play_move_down::@20] - //SEG401 play_move_down::@20 - //SEG402 [193] call play_spawn_current - //SEG403 [199] phi from play_move_down::@20 to play_spawn_current [phi:play_move_down::@20->play_spawn_current] + //SEG424 [203] phi from play_move_down::@19 to play_move_down::@20 [phi:play_move_down::@19->play_move_down::@20] + //SEG425 play_move_down::@20 + //SEG426 [204] call play_spawn_current + //SEG427 [210] phi from play_move_down::@20 to play_spawn_current [phi:play_move_down::@20->play_spawn_current] jsr play_spawn_current - //SEG404 [194] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG428 [205] (byte*~) current_piece#77 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) -- pbuz1=pptc1_derefidx_vbuz2 ldy play_spawn_current._3 lda PIECES,y sta current_piece lda PIECES+1,y sta current_piece+1 - //SEG405 [195] phi from play_move_down::@20 to play_move_down::@7 [phi:play_move_down::@20->play_move_down::@7] - //SEG406 [195] phi (byte) current_piece_char#20 = (byte) current_piece_char#12 [phi:play_move_down::@20->play_move_down::@7#0] -- register_copy - //SEG407 [195] phi (byte) current_xpos#33 = (byte) current_xpos#23 [phi:play_move_down::@20->play_move_down::@7#1] -- register_copy - //SEG408 [195] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#16 [phi:play_move_down::@20->play_move_down::@7#2] -- register_copy - //SEG409 [195] phi (byte) current_orientation#29 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@20->play_move_down::@7#3] -- vbuz1=vbuc1 + //SEG429 [206] phi from play_move_down::@20 to play_move_down::@7 [phi:play_move_down::@20->play_move_down::@7] + //SEG430 [206] phi (byte) current_piece_char#20 = (byte) current_piece_char#12 [phi:play_move_down::@20->play_move_down::@7#0] -- register_copy + //SEG431 [206] phi (byte) current_xpos#33 = (byte) current_xpos#23 [phi:play_move_down::@20->play_move_down::@7#1] -- register_copy + //SEG432 [206] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#16 [phi:play_move_down::@20->play_move_down::@7#2] -- register_copy + //SEG433 [206] phi (byte) current_orientation#29 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@20->play_move_down::@7#3] -- vbuz1=vbuc1 lda #0 sta current_orientation - //SEG410 [195] phi (byte*) current_piece#20 = (byte*~) current_piece#77 [phi:play_move_down::@20->play_move_down::@7#4] -- register_copy - //SEG411 [195] phi (byte) current_ypos#29 = (byte) current_ypos#18 [phi:play_move_down::@20->play_move_down::@7#5] -- register_copy - //SEG412 play_move_down::@7 + //SEG434 [206] phi (byte*) current_piece#20 = (byte*~) current_piece#77 [phi:play_move_down::@20->play_move_down::@7#4] -- register_copy + //SEG435 [206] phi (byte) current_ypos#29 = (byte) current_ypos#18 [phi:play_move_down::@20->play_move_down::@7#5] -- register_copy + //SEG436 play_move_down::@7 b7: - //SEG413 [196] phi from play_move_down::@7 to play_move_down::@return [phi:play_move_down::@7->play_move_down::@return] - //SEG414 [196] phi (byte) current_piece_char#1 = (byte) current_piece_char#20 [phi:play_move_down::@7->play_move_down::@return#0] -- register_copy - //SEG415 [196] phi (byte) current_xpos#1 = (byte) current_xpos#33 [phi:play_move_down::@7->play_move_down::@return#1] -- register_copy - //SEG416 [196] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#26 [phi:play_move_down::@7->play_move_down::@return#2] -- register_copy - //SEG417 [196] phi (byte) current_orientation#14 = (byte) current_orientation#29 [phi:play_move_down::@7->play_move_down::@return#3] -- register_copy - //SEG418 [196] phi (byte*) current_piece#10 = (byte*) current_piece#20 [phi:play_move_down::@7->play_move_down::@return#4] -- register_copy - //SEG419 [196] phi (byte) current_ypos#13 = (byte) current_ypos#29 [phi:play_move_down::@7->play_move_down::@return#5] -- register_copy - //SEG420 [196] phi (byte) current_movedown_counter#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@7->play_move_down::@return#6] -- vbuz1=vbuc1 + //SEG437 [207] phi from play_move_down::@7 to play_move_down::@return [phi:play_move_down::@7->play_move_down::@return] + //SEG438 [207] phi (byte) current_piece_char#1 = (byte) current_piece_char#20 [phi:play_move_down::@7->play_move_down::@return#0] -- register_copy + //SEG439 [207] phi (byte) current_xpos#1 = (byte) current_xpos#33 [phi:play_move_down::@7->play_move_down::@return#1] -- register_copy + //SEG440 [207] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#26 [phi:play_move_down::@7->play_move_down::@return#2] -- register_copy + //SEG441 [207] phi (byte) current_orientation#14 = (byte) current_orientation#29 [phi:play_move_down::@7->play_move_down::@return#3] -- register_copy + //SEG442 [207] phi (byte*) current_piece#10 = (byte*) current_piece#20 [phi:play_move_down::@7->play_move_down::@return#4] -- register_copy + //SEG443 [207] phi (byte) current_ypos#13 = (byte) current_ypos#29 [phi:play_move_down::@7->play_move_down::@return#5] -- register_copy + //SEG444 [207] phi (byte) current_movedown_counter#10 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@7->play_move_down::@return#6] -- vbuz1=vbuc1 lda #0 sta current_movedown_counter - //SEG421 [196] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@7->play_move_down::@return#7] -- vbuxx=vbuc1 + //SEG445 [207] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_move_down::@7->play_move_down::@return#7] -- vbuxx=vbuc1 ldx #1 jmp breturn - //SEG422 [196] phi from play_move_down::@4 to play_move_down::@return [phi:play_move_down::@4->play_move_down::@return] + //SEG446 [207] phi from play_move_down::@4 to play_move_down::@return [phi:play_move_down::@4->play_move_down::@return] b5: - //SEG423 [196] phi (byte) current_piece_char#1 = (byte) current_piece_char#15 [phi:play_move_down::@4->play_move_down::@return#0] -- register_copy - //SEG424 [196] phi (byte) current_xpos#1 = (byte) current_xpos#10 [phi:play_move_down::@4->play_move_down::@return#1] -- register_copy - //SEG425 [196] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#20 [phi:play_move_down::@4->play_move_down::@return#2] -- register_copy - //SEG426 [196] phi (byte) current_orientation#14 = (byte) current_orientation#10 [phi:play_move_down::@4->play_move_down::@return#3] -- register_copy - //SEG427 [196] phi (byte*) current_piece#10 = (byte*) current_piece#16 [phi:play_move_down::@4->play_move_down::@return#4] -- register_copy - //SEG428 [196] phi (byte) current_ypos#13 = (byte) current_ypos#21 [phi:play_move_down::@4->play_move_down::@return#5] -- register_copy - //SEG429 [196] phi (byte) current_movedown_counter#10 = (byte) current_movedown_counter#1 [phi:play_move_down::@4->play_move_down::@return#6] -- register_copy - //SEG430 [196] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@4->play_move_down::@return#7] -- vbuxx=vbuc1 + //SEG447 [207] phi (byte) current_piece_char#1 = (byte) current_piece_char#15 [phi:play_move_down::@4->play_move_down::@return#0] -- register_copy + //SEG448 [207] phi (byte) current_xpos#1 = (byte) current_xpos#10 [phi:play_move_down::@4->play_move_down::@return#1] -- register_copy + //SEG449 [207] phi (byte*) current_piece_gfx#1 = (byte*) current_piece_gfx#20 [phi:play_move_down::@4->play_move_down::@return#2] -- register_copy + //SEG450 [207] phi (byte) current_orientation#14 = (byte) current_orientation#10 [phi:play_move_down::@4->play_move_down::@return#3] -- register_copy + //SEG451 [207] phi (byte*) current_piece#10 = (byte*) current_piece#16 [phi:play_move_down::@4->play_move_down::@return#4] -- register_copy + //SEG452 [207] phi (byte) current_ypos#13 = (byte) current_ypos#21 [phi:play_move_down::@4->play_move_down::@return#5] -- register_copy + //SEG453 [207] phi (byte) current_movedown_counter#10 = (byte) current_movedown_counter#1 [phi:play_move_down::@4->play_move_down::@return#6] -- register_copy + //SEG454 [207] phi (byte) play_move_down::return#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_move_down::@4->play_move_down::@return#7] -- vbuxx=vbuc1 ldx #0 - //SEG431 play_move_down::@return + //SEG455 play_move_down::@return breturn: - //SEG432 [197] return + //SEG456 [208] return rts - //SEG433 play_move_down::@6 + //SEG457 play_move_down::@6 b6: - //SEG434 [198] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 -- vbuz1=_inc_vbuz1 + //SEG458 [209] (byte) current_ypos#0 ← ++ (byte) current_ypos#21 -- vbuz1=_inc_vbuz1 inc current_ypos - //SEG435 [195] phi from play_move_down::@6 to play_move_down::@7 [phi:play_move_down::@6->play_move_down::@7] - //SEG436 [195] phi (byte) current_piece_char#20 = (byte) current_piece_char#15 [phi:play_move_down::@6->play_move_down::@7#0] -- register_copy - //SEG437 [195] phi (byte) current_xpos#33 = (byte) current_xpos#10 [phi:play_move_down::@6->play_move_down::@7#1] -- register_copy - //SEG438 [195] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#20 [phi:play_move_down::@6->play_move_down::@7#2] -- register_copy - //SEG439 [195] phi (byte) current_orientation#29 = (byte) current_orientation#10 [phi:play_move_down::@6->play_move_down::@7#3] -- register_copy - //SEG440 [195] phi (byte*) current_piece#20 = (byte*) current_piece#16 [phi:play_move_down::@6->play_move_down::@7#4] -- register_copy - //SEG441 [195] phi (byte) current_ypos#29 = (byte) current_ypos#0 [phi:play_move_down::@6->play_move_down::@7#5] -- register_copy + //SEG459 [206] phi from play_move_down::@6 to play_move_down::@7 [phi:play_move_down::@6->play_move_down::@7] + //SEG460 [206] phi (byte) current_piece_char#20 = (byte) current_piece_char#15 [phi:play_move_down::@6->play_move_down::@7#0] -- register_copy + //SEG461 [206] phi (byte) current_xpos#33 = (byte) current_xpos#10 [phi:play_move_down::@6->play_move_down::@7#1] -- register_copy + //SEG462 [206] phi (byte*) current_piece_gfx#26 = (byte*) current_piece_gfx#20 [phi:play_move_down::@6->play_move_down::@7#2] -- register_copy + //SEG463 [206] phi (byte) current_orientation#29 = (byte) current_orientation#10 [phi:play_move_down::@6->play_move_down::@7#3] -- register_copy + //SEG464 [206] phi (byte*) current_piece#20 = (byte*) current_piece#16 [phi:play_move_down::@6->play_move_down::@7#4] -- register_copy + //SEG465 [206] phi (byte) current_ypos#29 = (byte) current_ypos#0 [phi:play_move_down::@6->play_move_down::@7#5] -- register_copy jmp b7 } -//SEG442 play_spawn_current +//SEG466 play_spawn_current play_spawn_current: { - .label _3 = 2 - //SEG443 [200] phi from play_spawn_current to play_spawn_current::@1 [phi:play_spawn_current->play_spawn_current::@1] - //SEG444 [200] phi (byte) play_spawn_current::piece_idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 7 [phi:play_spawn_current->play_spawn_current::@1#0] -- vbuxx=vbuc1 + .label _3 = 4 + //SEG467 [211] phi from play_spawn_current to play_spawn_current::@1 [phi:play_spawn_current->play_spawn_current::@1] + //SEG468 [211] phi (byte) play_spawn_current::piece_idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 7 [phi:play_spawn_current->play_spawn_current::@1#0] -- vbuxx=vbuc1 ldx #7 - //SEG445 play_spawn_current::@1 + //SEG469 play_spawn_current::@1 b1: - //SEG446 [201] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 -- vbuxx_eq_vbuc1_then_la1 + //SEG470 [212] if((byte) play_spawn_current::piece_idx#2==(byte/signed byte/word/signed word/dword/signed dword) 7) goto play_spawn_current::@2 -- vbuxx_eq_vbuc1_then_la1 cpx #7 beq b2 - //SEG447 play_spawn_current::@3 - //SEG448 [202] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 + //SEG471 play_spawn_current::@3 + //SEG472 [213] (byte~) play_spawn_current::$3 ← (byte) play_spawn_current::piece_idx#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuxx_rol_1 txa asl sta _3 - //SEG449 [203] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuz1=pptc1_derefidx_vbuz2_plus_0 + //SEG473 [214] (byte*) current_piece_gfx#16 ← (byte*)*((const word[]) PIECES#0 + (byte~) play_spawn_current::$3) + (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuz1=pptc1_derefidx_vbuz2_plus_0 tay lda PIECES,y sta current_piece_gfx lda PIECES+1,y sta current_piece_gfx+1 - //SEG450 [204] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx + //SEG474 [215] (byte) current_xpos#23 ← *((const byte[]) PIECES_START_X#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx lda PIECES_START_X,x sta current_xpos - //SEG451 [205] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx + //SEG475 [216] (byte) current_ypos#18 ← *((const byte[]) PIECES_START_Y#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx lda PIECES_START_Y,x sta current_ypos - //SEG452 [206] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx + //SEG476 [217] (byte) current_piece_char#12 ← *((const byte[]) PIECES_CHARS#0 + (byte) play_spawn_current::piece_idx#2) -- vbuz1=pbuc1_derefidx_vbuxx lda PIECES_CHARS,x sta current_piece_char - //SEG453 play_spawn_current::@return - //SEG454 [207] return + //SEG477 play_spawn_current::@return + //SEG478 [218] return rts - //SEG455 [208] phi from play_spawn_current::@1 to play_spawn_current::@2 [phi:play_spawn_current::@1->play_spawn_current::@2] - //SEG456 play_spawn_current::@2 + //SEG479 [219] phi from play_spawn_current::@1 to play_spawn_current::@2 [phi:play_spawn_current::@1->play_spawn_current::@2] + //SEG480 play_spawn_current::@2 b2: - //SEG457 [209] call sid_rnd + //SEG481 [220] call sid_rnd jsr sid_rnd - //SEG458 [210] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 + //SEG482 [221] (byte) sid_rnd::return#2 ← (byte) sid_rnd::return#0 // (byte) sid_rnd::return#2 = (byte) sid_rnd::return#0 // register copy reg byte a - //SEG459 play_spawn_current::@7 - //SEG460 [211] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 + //SEG483 play_spawn_current::@7 + //SEG484 [222] (byte~) play_spawn_current::$1 ← (byte) sid_rnd::return#2 // (byte~) play_spawn_current::$1 = (byte) sid_rnd::return#2 // register copy reg byte a - //SEG461 [212] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuxx=vbuaa_band_vbuc1 + //SEG485 [223] (byte) play_spawn_current::piece_idx#1 ← (byte~) play_spawn_current::$1 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuxx=vbuaa_band_vbuc1 and #7 tax - //SEG462 [200] phi from play_spawn_current::@7 to play_spawn_current::@1 [phi:play_spawn_current::@7->play_spawn_current::@1] - //SEG463 [200] phi (byte) play_spawn_current::piece_idx#2 = (byte) play_spawn_current::piece_idx#1 [phi:play_spawn_current::@7->play_spawn_current::@1#0] -- register_copy + //SEG486 [211] phi from play_spawn_current::@7 to play_spawn_current::@1 [phi:play_spawn_current::@7->play_spawn_current::@1] + //SEG487 [211] phi (byte) play_spawn_current::piece_idx#2 = (byte) play_spawn_current::piece_idx#1 [phi:play_spawn_current::@7->play_spawn_current::@1#0] -- register_copy jmp b1 } -//SEG464 sid_rnd +//SEG488 sid_rnd sid_rnd: { - //SEG465 [213] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) -- vbuaa=_deref_pbuc1 + //SEG489 [224] (byte) sid_rnd::return#0 ← *((const byte*) SID_VOICE3_OSC#0) -- vbuaa=_deref_pbuc1 lda SID_VOICE3_OSC - //SEG466 sid_rnd::@return - //SEG467 [214] return + //SEG490 sid_rnd::@return + //SEG491 [225] return rts } -//SEG468 play_remove_lines +//SEG492 play_remove_lines play_remove_lines: { - .label c = 7 - .label x = 3 - .label y = 2 + .label c = 9 + .label x = 5 + .label y = 4 .label full = 6 - //SEG469 [216] phi from play_remove_lines to play_remove_lines::@1 [phi:play_remove_lines->play_remove_lines::@1] - //SEG470 [216] phi (byte) play_remove_lines::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines->play_remove_lines::@1#0] -- vbuz1=vbuc1 + //SEG493 [227] phi from play_remove_lines to play_remove_lines::@1 [phi:play_remove_lines->play_remove_lines::@1] + //SEG494 [227] phi (byte) play_remove_lines::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines->play_remove_lines::@1#0] -- vbuz1=vbuc1 lda #0 sta y - //SEG471 [216] phi (byte) play_remove_lines::w#12 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#1] -- vbuxx=vbuc1 + //SEG495 [227] phi (byte) play_remove_lines::w#12 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#1] -- vbuxx=vbuc1 ldx #PLAYFIELD_LINES*PLAYFIELD_COLS-1 - //SEG472 [216] phi (byte) play_remove_lines::r#3 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#2] -- vbuyy=vbuc1 + //SEG496 [227] phi (byte) play_remove_lines::r#3 = (const byte) PLAYFIELD_LINES#0*(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines->play_remove_lines::@1#2] -- vbuyy=vbuc1 ldy #PLAYFIELD_LINES*PLAYFIELD_COLS-1 - //SEG473 [216] phi from play_remove_lines::@4 to play_remove_lines::@1 [phi:play_remove_lines::@4->play_remove_lines::@1] - //SEG474 [216] phi (byte) play_remove_lines::y#8 = (byte) play_remove_lines::y#1 [phi:play_remove_lines::@4->play_remove_lines::@1#0] -- register_copy - //SEG475 [216] phi (byte) play_remove_lines::w#12 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4->play_remove_lines::@1#1] -- register_copy - //SEG476 [216] phi (byte) play_remove_lines::r#3 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@4->play_remove_lines::@1#2] -- register_copy - //SEG477 play_remove_lines::@1 + //SEG497 [227] phi from play_remove_lines::@4 to play_remove_lines::@1 [phi:play_remove_lines::@4->play_remove_lines::@1] + //SEG498 [227] phi (byte) play_remove_lines::y#8 = (byte) play_remove_lines::y#1 [phi:play_remove_lines::@4->play_remove_lines::@1#0] -- register_copy + //SEG499 [227] phi (byte) play_remove_lines::w#12 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4->play_remove_lines::@1#1] -- register_copy + //SEG500 [227] phi (byte) play_remove_lines::r#3 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@4->play_remove_lines::@1#2] -- register_copy + //SEG501 play_remove_lines::@1 b1: - //SEG478 [217] phi from play_remove_lines::@1 to play_remove_lines::@2 [phi:play_remove_lines::@1->play_remove_lines::@2] - //SEG479 [217] phi (byte) play_remove_lines::full#4 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines::@1->play_remove_lines::@2#0] -- vbuz1=vbuc1 + //SEG502 [228] phi from play_remove_lines::@1 to play_remove_lines::@2 [phi:play_remove_lines::@1->play_remove_lines::@2] + //SEG503 [228] phi (byte) play_remove_lines::full#4 = (byte/signed byte/word/signed word/dword/signed dword) 1 [phi:play_remove_lines::@1->play_remove_lines::@2#0] -- vbuz1=vbuc1 lda #1 sta full - //SEG480 [217] phi (byte) play_remove_lines::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@1->play_remove_lines::@2#1] -- vbuz1=vbuc1 + //SEG504 [228] phi (byte) play_remove_lines::x#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@1->play_remove_lines::@2#1] -- vbuz1=vbuc1 lda #0 sta x - //SEG481 [217] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#12 [phi:play_remove_lines::@1->play_remove_lines::@2#2] -- register_copy - //SEG482 [217] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#3 [phi:play_remove_lines::@1->play_remove_lines::@2#3] -- register_copy - //SEG483 [217] phi from play_remove_lines::@3 to play_remove_lines::@2 [phi:play_remove_lines::@3->play_remove_lines::@2] - //SEG484 [217] phi (byte) play_remove_lines::full#4 = (byte) play_remove_lines::full#2 [phi:play_remove_lines::@3->play_remove_lines::@2#0] -- register_copy - //SEG485 [217] phi (byte) play_remove_lines::x#2 = (byte) play_remove_lines::x#1 [phi:play_remove_lines::@3->play_remove_lines::@2#1] -- register_copy - //SEG486 [217] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#1 [phi:play_remove_lines::@3->play_remove_lines::@2#2] -- register_copy - //SEG487 [217] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@3->play_remove_lines::@2#3] -- register_copy - //SEG488 play_remove_lines::@2 + //SEG505 [228] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#12 [phi:play_remove_lines::@1->play_remove_lines::@2#2] -- register_copy + //SEG506 [228] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#3 [phi:play_remove_lines::@1->play_remove_lines::@2#3] -- register_copy + //SEG507 [228] phi from play_remove_lines::@3 to play_remove_lines::@2 [phi:play_remove_lines::@3->play_remove_lines::@2] + //SEG508 [228] phi (byte) play_remove_lines::full#4 = (byte) play_remove_lines::full#2 [phi:play_remove_lines::@3->play_remove_lines::@2#0] -- register_copy + //SEG509 [228] phi (byte) play_remove_lines::x#2 = (byte) play_remove_lines::x#1 [phi:play_remove_lines::@3->play_remove_lines::@2#1] -- register_copy + //SEG510 [228] phi (byte) play_remove_lines::w#4 = (byte) play_remove_lines::w#1 [phi:play_remove_lines::@3->play_remove_lines::@2#2] -- register_copy + //SEG511 [228] phi (byte) play_remove_lines::r#2 = (byte) play_remove_lines::r#1 [phi:play_remove_lines::@3->play_remove_lines::@2#3] -- register_copy + //SEG512 play_remove_lines::@2 b2: - //SEG489 [218] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) -- vbuz1=pbuc1_derefidx_vbuyy + //SEG513 [229] (byte) play_remove_lines::c#0 ← *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::r#2) -- vbuz1=pbuc1_derefidx_vbuyy lda playfield,y sta c - //SEG490 [219] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 -- vbuyy=_dec_vbuyy + //SEG514 [230] (byte) play_remove_lines::r#1 ← -- (byte) play_remove_lines::r#2 -- vbuyy=_dec_vbuyy dey - //SEG491 [220] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 -- vbuz1_neq_0_then_la1 + //SEG515 [231] if((byte) play_remove_lines::c#0!=(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_remove_lines::@17 -- vbuz1_neq_0_then_la1 cmp #0 bne b3 - //SEG492 [221] phi from play_remove_lines::@2 to play_remove_lines::@3 [phi:play_remove_lines::@2->play_remove_lines::@3] - //SEG493 [221] phi (byte) play_remove_lines::full#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@2->play_remove_lines::@3#0] -- vbuz1=vbuc1 + //SEG516 [232] phi from play_remove_lines::@2 to play_remove_lines::@3 [phi:play_remove_lines::@2->play_remove_lines::@3] + //SEG517 [232] phi (byte) play_remove_lines::full#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_remove_lines::@2->play_remove_lines::@3#0] -- vbuz1=vbuc1 lda #0 sta full - //SEG494 play_remove_lines::@3 + //SEG518 play_remove_lines::@3 b3: - //SEG495 [222] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 -- pbuc1_derefidx_vbuxx=vbuz1 + //SEG519 [233] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#4) ← (byte) play_remove_lines::c#0 -- pbuc1_derefidx_vbuxx=vbuz1 lda c sta playfield,x - //SEG496 [223] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 -- vbuxx=_dec_vbuxx + //SEG520 [234] (byte) play_remove_lines::w#1 ← -- (byte) play_remove_lines::w#4 -- vbuxx=_dec_vbuxx dex - //SEG497 [224] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 -- vbuz1=_inc_vbuz1 + //SEG521 [235] (byte) play_remove_lines::x#1 ← ++ (byte) play_remove_lines::x#2 -- vbuz1=_inc_vbuz1 inc x - //SEG498 [225] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 -- vbuz1_neq_vbuc1_then_la1 + //SEG522 [236] if((byte) play_remove_lines::x#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@2 -- vbuz1_neq_vbuc1_then_la1 lda x cmp #PLAYFIELD_COLS-1+1 bne b2 - //SEG499 play_remove_lines::@9 - //SEG500 [226] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 -- vbuz1_neq_vbuc1_then_la1 + //SEG523 play_remove_lines::@9 + //SEG524 [237] if((byte) play_remove_lines::full#2!=(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@4 -- vbuz1_neq_vbuc1_then_la1 lda full cmp #1 bne b4 - //SEG501 play_remove_lines::@10 - //SEG502 [227] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuxx=vbuxx_plus_vbuc1 + //SEG525 play_remove_lines::@10 + //SEG526 [238] (byte) play_remove_lines::w#2 ← (byte) play_remove_lines::w#1 + (const byte) PLAYFIELD_COLS#0 -- vbuxx=vbuxx_plus_vbuc1 txa clc adc #PLAYFIELD_COLS tax - //SEG503 [228] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] - //SEG504 [228] phi (byte) play_remove_lines::w#11 = (byte) play_remove_lines::w#2 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4#0] -- register_copy - //SEG505 play_remove_lines::@4 + //SEG527 [239] phi from play_remove_lines::@10 play_remove_lines::@9 to play_remove_lines::@4 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4] + //SEG528 [239] phi (byte) play_remove_lines::w#11 = (byte) play_remove_lines::w#2 [phi:play_remove_lines::@10/play_remove_lines::@9->play_remove_lines::@4#0] -- register_copy + //SEG529 play_remove_lines::@4 b4: - //SEG506 [229] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 -- vbuz1=_inc_vbuz1 + //SEG530 [240] (byte) play_remove_lines::y#1 ← ++ (byte) play_remove_lines::y#8 -- vbuz1=_inc_vbuz1 inc y - //SEG507 [230] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG531 [241] if((byte) play_remove_lines::y#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_remove_lines::@1 -- vbuz1_neq_vbuc1_then_la1 lda y cmp #PLAYFIELD_LINES-1+1 bne b1 - //SEG508 [231] phi from play_remove_lines::@4 play_remove_lines::@6 to play_remove_lines::@5 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5] - //SEG509 [231] phi (byte) play_remove_lines::w#6 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5#0] -- register_copy - //SEG510 play_remove_lines::@5 + //SEG532 [242] phi from play_remove_lines::@4 play_remove_lines::@6 to play_remove_lines::@5 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5] + //SEG533 [242] phi (byte) play_remove_lines::w#6 = (byte) play_remove_lines::w#11 [phi:play_remove_lines::@4/play_remove_lines::@6->play_remove_lines::@5#0] -- register_copy + //SEG534 play_remove_lines::@5 b5: - //SEG511 [232] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 -- vbuxx_neq_vbuc1_then_la1 + //SEG535 [243] if((byte) play_remove_lines::w#6!=(byte/word/signed word/dword/signed dword) 255) goto play_remove_lines::@6 -- vbuxx_neq_vbuc1_then_la1 cpx #$ff bne b6 - //SEG512 play_remove_lines::@return - //SEG513 [233] return + //SEG536 play_remove_lines::@return + //SEG537 [244] return rts - //SEG514 play_remove_lines::@6 + //SEG538 play_remove_lines::@6 b6: - //SEG515 [234] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuc1_derefidx_vbuxx=vbuc2 + //SEG539 [245] *((const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 + (byte) play_remove_lines::w#6) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- pbuc1_derefidx_vbuxx=vbuc2 lda #0 sta playfield,x - //SEG516 [235] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 -- vbuxx=_dec_vbuxx + //SEG540 [246] (byte) play_remove_lines::w#3 ← -- (byte) play_remove_lines::w#6 -- vbuxx=_dec_vbuxx dex jmp b5 - //SEG517 [236] phi from play_remove_lines::@2 to play_remove_lines::@17 [phi:play_remove_lines::@2->play_remove_lines::@17] - //SEG518 play_remove_lines::@17 - //SEG519 [221] phi from play_remove_lines::@17 to play_remove_lines::@3 [phi:play_remove_lines::@17->play_remove_lines::@3] - //SEG520 [221] phi (byte) play_remove_lines::full#2 = (byte) play_remove_lines::full#4 [phi:play_remove_lines::@17->play_remove_lines::@3#0] -- register_copy + //SEG541 [247] phi from play_remove_lines::@2 to play_remove_lines::@17 [phi:play_remove_lines::@2->play_remove_lines::@17] + //SEG542 play_remove_lines::@17 + //SEG543 [232] phi from play_remove_lines::@17 to play_remove_lines::@3 [phi:play_remove_lines::@17->play_remove_lines::@3] + //SEG544 [232] phi (byte) play_remove_lines::full#2 = (byte) play_remove_lines::full#4 [phi:play_remove_lines::@17->play_remove_lines::@3#0] -- register_copy } -//SEG521 play_lock_current +//SEG545 play_lock_current play_lock_current: { - .label ypos2 = $b - .label playfield_line = 4 + .label ypos2 = $e + .label playfield_line = 7 .label col = 6 - .label i = 7 - .label l = 2 - .label i_2 = 3 - .label i_3 = 3 - .label i_7 = 3 - .label i_9 = 3 - //SEG522 [237] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_rol_1 + .label i = 9 + .label l = 4 + .label i_2 = 5 + .label i_3 = 5 + .label i_7 = 5 + .label i_9 = 5 + //SEG546 [248] (byte) play_lock_current::ypos2#0 ← (byte) current_ypos#21 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuz1=vbuz1_rol_1 asl ypos2 - //SEG523 [238] phi from play_lock_current to play_lock_current::@1 [phi:play_lock_current->play_lock_current::@1] - //SEG524 [238] phi (byte) play_lock_current::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#0] -- vbuz1=vbuc1 + //SEG547 [249] phi from play_lock_current to play_lock_current::@1 [phi:play_lock_current->play_lock_current::@1] + //SEG548 [249] phi (byte) play_lock_current::l#6 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#0] -- vbuz1=vbuc1 lda #0 sta l - //SEG525 [238] phi (byte) play_lock_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#1] -- vbuz1=vbuc1 + //SEG549 [249] phi (byte) play_lock_current::i#3 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current->play_lock_current::@1#1] -- vbuz1=vbuc1 sta i_3 - //SEG526 [238] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#0 [phi:play_lock_current->play_lock_current::@1#2] -- register_copy - //SEG527 play_lock_current::@1 + //SEG550 [249] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#0 [phi:play_lock_current->play_lock_current::@1#2] -- register_copy + //SEG551 play_lock_current::@1 b1: - //SEG528 [239] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 + //SEG552 [250] (byte*) play_lock_current::playfield_line#0 ← *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte) play_lock_current::ypos2#2) -- pbuz1=pptc1_derefidx_vbuz2 ldy ypos2 lda playfield_lines,y sta playfield_line lda playfield_lines+1,y sta playfield_line+1 - //SEG529 [240] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 + //SEG553 [251] (byte) play_lock_current::col#0 ← (byte) current_xpos#10 -- vbuz1=vbuz2 lda current_xpos sta col - //SEG530 [241] phi from play_lock_current::@1 to play_lock_current::@2 [phi:play_lock_current::@1->play_lock_current::@2] - //SEG531 [241] phi (byte) play_lock_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current::@1->play_lock_current::@2#0] -- vbuxx=vbuc1 + //SEG554 [252] phi from play_lock_current::@1 to play_lock_current::@2 [phi:play_lock_current::@1->play_lock_current::@2] + //SEG555 [252] phi (byte) play_lock_current::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_lock_current::@1->play_lock_current::@2#0] -- vbuxx=vbuc1 ldx #0 - //SEG532 [241] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#0 [phi:play_lock_current::@1->play_lock_current::@2#1] -- register_copy - //SEG533 [241] phi (byte) play_lock_current::i#2 = (byte) play_lock_current::i#3 [phi:play_lock_current::@1->play_lock_current::@2#2] -- register_copy - //SEG534 play_lock_current::@2 + //SEG556 [252] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#0 [phi:play_lock_current::@1->play_lock_current::@2#1] -- register_copy + //SEG557 [252] phi (byte) play_lock_current::i#2 = (byte) play_lock_current::i#3 [phi:play_lock_current::@1->play_lock_current::@2#2] -- register_copy + //SEG558 play_lock_current::@2 b2: - //SEG535 [242] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 -- vbuz1=_inc_vbuz2 + //SEG559 [253] (byte) play_lock_current::i#1 ← ++ (byte) play_lock_current::i#2 -- vbuz1=_inc_vbuz2 ldy i_2 iny sty i - //SEG536 [243] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 + //SEG560 [254] if(*((byte*) current_piece_gfx#20 + (byte) play_lock_current::i#2)==(byte/signed byte/word/signed word/dword/signed dword) 0) goto play_lock_current::@3 -- pbuz1_derefidx_vbuz2_eq_0_then_la1 ldy i_2 lda (current_piece_gfx),y cmp #0 beq b3 - //SEG537 play_lock_current::@4 - //SEG538 [244] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 -- pbuz1_derefidx_vbuz2=vbuz3 + //SEG561 play_lock_current::@4 + //SEG562 [255] *((byte*) play_lock_current::playfield_line#0 + (byte) play_lock_current::col#2) ← (byte) current_piece_char#15 -- pbuz1_derefidx_vbuz2=vbuz3 lda current_piece_char ldy col sta (playfield_line),y - //SEG539 play_lock_current::@3 + //SEG563 play_lock_current::@3 b3: - //SEG540 [245] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 -- vbuz1=_inc_vbuz1 + //SEG564 [256] (byte) play_lock_current::col#1 ← ++ (byte) play_lock_current::col#2 -- vbuz1=_inc_vbuz1 inc col - //SEG541 [246] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 -- vbuxx=_inc_vbuxx + //SEG565 [257] (byte) play_lock_current::c#1 ← ++ (byte) play_lock_current::c#2 -- vbuxx=_inc_vbuxx inx - //SEG542 [247] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 -- vbuxx_neq_vbuc1_then_la1 + //SEG566 [258] if((byte) play_lock_current::c#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@8 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b8 - //SEG543 play_lock_current::@5 - //SEG544 [248] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 + //SEG567 play_lock_current::@5 + //SEG568 [259] (byte) play_lock_current::ypos2#1 ← (byte) play_lock_current::ypos2#2 + (byte/signed byte/word/signed word/dword/signed dword) 2 -- vbuz1=vbuz1_plus_2 lda ypos2 clc adc #2 sta ypos2 - //SEG545 [249] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 -- vbuz1=_inc_vbuz1 + //SEG569 [260] (byte) play_lock_current::l#1 ← ++ (byte) play_lock_current::l#6 -- vbuz1=_inc_vbuz1 inc l - //SEG546 [250] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 -- vbuz1_neq_vbuc1_then_la1 + //SEG570 [261] if((byte) play_lock_current::l#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto play_lock_current::@7 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #4 bne b7 - //SEG547 play_lock_current::@return - //SEG548 [251] return + //SEG571 play_lock_current::@return + //SEG572 [262] return rts - //SEG549 play_lock_current::@7 + //SEG573 play_lock_current::@7 b7: - //SEG550 [252] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 + //SEG574 [263] (byte~) play_lock_current::i#7 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 lda i sta i_7 - //SEG551 [238] phi from play_lock_current::@7 to play_lock_current::@1 [phi:play_lock_current::@7->play_lock_current::@1] - //SEG552 [238] phi (byte) play_lock_current::l#6 = (byte) play_lock_current::l#1 [phi:play_lock_current::@7->play_lock_current::@1#0] -- register_copy - //SEG553 [238] phi (byte) play_lock_current::i#3 = (byte~) play_lock_current::i#7 [phi:play_lock_current::@7->play_lock_current::@1#1] -- register_copy - //SEG554 [238] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#1 [phi:play_lock_current::@7->play_lock_current::@1#2] -- register_copy + //SEG575 [249] phi from play_lock_current::@7 to play_lock_current::@1 [phi:play_lock_current::@7->play_lock_current::@1] + //SEG576 [249] phi (byte) play_lock_current::l#6 = (byte) play_lock_current::l#1 [phi:play_lock_current::@7->play_lock_current::@1#0] -- register_copy + //SEG577 [249] phi (byte) play_lock_current::i#3 = (byte~) play_lock_current::i#7 [phi:play_lock_current::@7->play_lock_current::@1#1] -- register_copy + //SEG578 [249] phi (byte) play_lock_current::ypos2#2 = (byte) play_lock_current::ypos2#1 [phi:play_lock_current::@7->play_lock_current::@1#2] -- register_copy jmp b1 - //SEG555 play_lock_current::@8 + //SEG579 play_lock_current::@8 b8: - //SEG556 [253] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 + //SEG580 [264] (byte~) play_lock_current::i#9 ← (byte) play_lock_current::i#1 -- vbuz1=vbuz2 lda i sta i_9 - //SEG557 [241] phi from play_lock_current::@8 to play_lock_current::@2 [phi:play_lock_current::@8->play_lock_current::@2] - //SEG558 [241] phi (byte) play_lock_current::c#2 = (byte) play_lock_current::c#1 [phi:play_lock_current::@8->play_lock_current::@2#0] -- register_copy - //SEG559 [241] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#1 [phi:play_lock_current::@8->play_lock_current::@2#1] -- register_copy - //SEG560 [241] phi (byte) play_lock_current::i#2 = (byte~) play_lock_current::i#9 [phi:play_lock_current::@8->play_lock_current::@2#2] -- register_copy + //SEG581 [252] phi from play_lock_current::@8 to play_lock_current::@2 [phi:play_lock_current::@8->play_lock_current::@2] + //SEG582 [252] phi (byte) play_lock_current::c#2 = (byte) play_lock_current::c#1 [phi:play_lock_current::@8->play_lock_current::@2#0] -- register_copy + //SEG583 [252] phi (byte) play_lock_current::col#2 = (byte) play_lock_current::col#1 [phi:play_lock_current::@8->play_lock_current::@2#1] -- register_copy + //SEG584 [252] phi (byte) play_lock_current::i#2 = (byte~) play_lock_current::i#9 [phi:play_lock_current::@8->play_lock_current::@2#2] -- register_copy jmp b2 } -//SEG561 keyboard_event_pressed +//SEG585 keyboard_event_pressed keyboard_event_pressed: { .label row_bits = 6 - .label keycode = 3 - //SEG562 [255] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuaa=vbuz1_ror_3 + .label keycode = 5 + //SEG586 [266] (byte~) keyboard_event_pressed::$0 ← (byte) keyboard_event_pressed::keycode#5 >> (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuaa=vbuz1_ror_3 lda keycode lsr lsr lsr - //SEG563 [256] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) -- vbuz1=pbuc1_derefidx_vbuaa + //SEG587 [267] (byte) keyboard_event_pressed::row_bits#0 ← *((const byte[8]) keyboard_scan_values#0 + (byte~) keyboard_event_pressed::$0) -- vbuz1=pbuc1_derefidx_vbuaa tay lda keyboard_scan_values,y sta row_bits - //SEG564 [257] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuz1_band_vbuc1 + //SEG588 [268] (byte~) keyboard_event_pressed::$1 ← (byte) keyboard_event_pressed::keycode#5 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuz1_band_vbuc1 lda #7 and keycode - //SEG565 [258] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuaa + //SEG589 [269] (byte) keyboard_event_pressed::return#11 ← (byte) keyboard_event_pressed::row_bits#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte~) keyboard_event_pressed::$1) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuaa tay lda keyboard_matrix_col_bitmask,y and row_bits - //SEG566 keyboard_event_pressed::@return - //SEG567 [259] return + //SEG590 keyboard_event_pressed::@return + //SEG591 [270] return rts } -//SEG568 keyboard_event_get +//SEG592 keyboard_event_get keyboard_event_get: { - //SEG569 [260] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return -- vbuz1_eq_0_then_la1 + //SEG593 [271] if((byte) keyboard_events_size#13==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_get::@return -- vbuz1_eq_0_then_la1 lda keyboard_events_size cmp #0 beq b1 - //SEG570 keyboard_event_get::@3 - //SEG571 [261] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 -- vbuz1=_dec_vbuz1 + //SEG594 keyboard_event_get::@3 + //SEG595 [272] (byte) keyboard_events_size#4 ← -- (byte) keyboard_events_size#13 -- vbuz1=_dec_vbuz1 dec keyboard_events_size - //SEG572 [262] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) -- vbuaa=pbuc1_derefidx_vbuz1 + //SEG596 [273] (byte) keyboard_event_get::return#1 ← *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#4) -- vbuaa=pbuc1_derefidx_vbuz1 ldy keyboard_events_size lda keyboard_events,y - //SEG573 [263] phi from keyboard_event_get::@3 to keyboard_event_get::@return [phi:keyboard_event_get::@3->keyboard_event_get::@return] - //SEG574 [263] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#4 [phi:keyboard_event_get::@3->keyboard_event_get::@return#0] -- register_copy - //SEG575 [263] phi (byte) keyboard_event_get::return#2 = (byte) keyboard_event_get::return#1 [phi:keyboard_event_get::@3->keyboard_event_get::@return#1] -- register_copy + //SEG597 [274] phi from keyboard_event_get::@3 to keyboard_event_get::@return [phi:keyboard_event_get::@3->keyboard_event_get::@return] + //SEG598 [274] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#4 [phi:keyboard_event_get::@3->keyboard_event_get::@return#0] -- register_copy + //SEG599 [274] phi (byte) keyboard_event_get::return#2 = (byte) keyboard_event_get::return#1 [phi:keyboard_event_get::@3->keyboard_event_get::@return#1] -- register_copy jmp breturn - //SEG576 [263] phi from keyboard_event_get to keyboard_event_get::@return [phi:keyboard_event_get->keyboard_event_get::@return] + //SEG600 [274] phi from keyboard_event_get to keyboard_event_get::@return [phi:keyboard_event_get->keyboard_event_get::@return] b1: - //SEG577 [263] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#13 [phi:keyboard_event_get->keyboard_event_get::@return#0] -- register_copy - //SEG578 [263] phi (byte) keyboard_event_get::return#2 = (byte/word/signed word/dword/signed dword) 255 [phi:keyboard_event_get->keyboard_event_get::@return#1] -- vbuaa=vbuc1 + //SEG601 [274] phi (byte) keyboard_events_size#16 = (byte) keyboard_events_size#13 [phi:keyboard_event_get->keyboard_event_get::@return#0] -- register_copy + //SEG602 [274] phi (byte) keyboard_event_get::return#2 = (byte/word/signed word/dword/signed dword) 255 [phi:keyboard_event_get->keyboard_event_get::@return#1] -- vbuaa=vbuc1 lda #$ff - //SEG579 keyboard_event_get::@return + //SEG603 keyboard_event_get::@return breturn: - //SEG580 [264] return + //SEG604 [275] return rts } -//SEG581 keyboard_event_scan +//SEG605 keyboard_event_scan keyboard_event_scan: { - .label row_scan = 7 + .label row_scan = 9 .label keycode = 6 - .label row = 3 - //SEG582 [266] phi from keyboard_event_scan to keyboard_event_scan::@1 [phi:keyboard_event_scan->keyboard_event_scan::@1] - //SEG583 [266] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#19 [phi:keyboard_event_scan->keyboard_event_scan::@1#0] -- register_copy - //SEG584 [266] phi (byte) keyboard_event_scan::keycode#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#1] -- vbuz1=vbuc1 + .label row = 5 + //SEG606 [277] phi from keyboard_event_scan to keyboard_event_scan::@1 [phi:keyboard_event_scan->keyboard_event_scan::@1] + //SEG607 [277] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#19 [phi:keyboard_event_scan->keyboard_event_scan::@1#0] -- register_copy + //SEG608 [277] phi (byte) keyboard_event_scan::keycode#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#1] -- vbuz1=vbuc1 lda #0 sta keycode - //SEG585 [266] phi (byte) keyboard_event_scan::row#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#2] -- vbuz1=vbuc1 + //SEG609 [277] phi (byte) keyboard_event_scan::row#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan->keyboard_event_scan::@1#2] -- vbuz1=vbuc1 sta row - //SEG586 [266] phi from keyboard_event_scan::@3 to keyboard_event_scan::@1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1] - //SEG587 [266] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#13 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#0] -- register_copy - //SEG588 [266] phi (byte) keyboard_event_scan::keycode#11 = (byte) keyboard_event_scan::keycode#14 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#1] -- register_copy - //SEG589 [266] phi (byte) keyboard_event_scan::row#2 = (byte) keyboard_event_scan::row#1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#2] -- register_copy - //SEG590 keyboard_event_scan::@1 + //SEG610 [277] phi from keyboard_event_scan::@3 to keyboard_event_scan::@1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1] + //SEG611 [277] phi (byte) keyboard_events_size#29 = (byte) keyboard_events_size#13 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#0] -- register_copy + //SEG612 [277] phi (byte) keyboard_event_scan::keycode#11 = (byte) keyboard_event_scan::keycode#14 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#1] -- register_copy + //SEG613 [277] phi (byte) keyboard_event_scan::row#2 = (byte) keyboard_event_scan::row#1 [phi:keyboard_event_scan::@3->keyboard_event_scan::@1#2] -- register_copy + //SEG614 keyboard_event_scan::@1 b1: - //SEG591 [267] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 -- vbuxx=vbuz1 + //SEG615 [278] (byte) keyboard_matrix_read::rowid#0 ← (byte) keyboard_event_scan::row#2 -- vbuxx=vbuz1 ldx row - //SEG592 [268] call keyboard_matrix_read + //SEG616 [279] call keyboard_matrix_read jsr keyboard_matrix_read - //SEG593 [269] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 + //SEG617 [280] (byte) keyboard_matrix_read::return#2 ← (byte) keyboard_matrix_read::return#0 // (byte) keyboard_matrix_read::return#2 = (byte) keyboard_matrix_read::return#0 // register copy reg byte a - //SEG594 keyboard_event_scan::@25 - //SEG595 [270] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 -- vbuz1=vbuaa + //SEG618 keyboard_event_scan::@25 + //SEG619 [281] (byte) keyboard_event_scan::row_scan#0 ← (byte) keyboard_matrix_read::return#2 -- vbuz1=vbuaa sta row_scan - //SEG596 [271] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 -- vbuz1_neq_pbuc1_derefidx_vbuz2_then_la1 + //SEG620 [282] if((byte) keyboard_event_scan::row_scan#0!=*((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2)) goto keyboard_event_scan::@4 -- vbuz1_neq_pbuc1_derefidx_vbuz2_then_la1 ldy row cmp keyboard_scan_values,y bne b6 - //SEG597 keyboard_event_scan::@13 - //SEG598 [272] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 + //SEG621 keyboard_event_scan::@13 + //SEG622 [283] (byte) keyboard_event_scan::keycode#1 ← (byte) keyboard_event_scan::keycode#11 + (byte/signed byte/word/signed word/dword/signed dword) 8 -- vbuz1=vbuz1_plus_vbuc1 lda #8 clc adc keycode sta keycode - //SEG599 [273] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] - //SEG600 [273] phi (byte) keyboard_events_size#13 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy - //SEG601 [273] phi (byte) keyboard_event_scan::keycode#14 = (byte) keyboard_event_scan::keycode#1 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#1] -- register_copy - //SEG602 keyboard_event_scan::@3 + //SEG623 [284] phi from keyboard_event_scan::@13 keyboard_event_scan::@19 to keyboard_event_scan::@3 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3] + //SEG624 [284] phi (byte) keyboard_events_size#13 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#0] -- register_copy + //SEG625 [284] phi (byte) keyboard_event_scan::keycode#14 = (byte) keyboard_event_scan::keycode#1 [phi:keyboard_event_scan::@13/keyboard_event_scan::@19->keyboard_event_scan::@3#1] -- register_copy + //SEG626 keyboard_event_scan::@3 b3: - //SEG603 [274] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 -- vbuz1=_inc_vbuz1 + //SEG627 [285] (byte) keyboard_event_scan::row#1 ← ++ (byte) keyboard_event_scan::row#2 -- vbuz1=_inc_vbuz1 inc row - //SEG604 [275] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 -- vbuz1_neq_vbuc1_then_la1 + //SEG628 [286] if((byte) keyboard_event_scan::row#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@1 -- vbuz1_neq_vbuc1_then_la1 lda row cmp #8 bne b1 - //SEG605 [276] phi from keyboard_event_scan::@3 to keyboard_event_scan::@20 [phi:keyboard_event_scan::@3->keyboard_event_scan::@20] - //SEG606 keyboard_event_scan::@20 - //SEG607 [277] call keyboard_event_pressed - //SEG608 [254] phi from keyboard_event_scan::@20 to keyboard_event_pressed [phi:keyboard_event_scan::@20->keyboard_event_pressed] - //SEG609 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_LSHIFT#0 [phi:keyboard_event_scan::@20->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG629 [287] phi from keyboard_event_scan::@3 to keyboard_event_scan::@20 [phi:keyboard_event_scan::@3->keyboard_event_scan::@20] + //SEG630 keyboard_event_scan::@20 + //SEG631 [288] call keyboard_event_pressed + //SEG632 [265] phi from keyboard_event_scan::@20 to keyboard_event_pressed [phi:keyboard_event_scan::@20->keyboard_event_pressed] + //SEG633 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_LSHIFT#0 [phi:keyboard_event_scan::@20->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_LSHIFT sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG610 [278] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 + //SEG634 [289] (byte) keyboard_event_pressed::return#0 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#0 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a - //SEG611 keyboard_event_scan::@26 - //SEG612 [279] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 + //SEG635 keyboard_event_scan::@26 + //SEG636 [290] (byte~) keyboard_event_scan::$14 ← (byte) keyboard_event_pressed::return#0 // (byte~) keyboard_event_scan::$14 = (byte) keyboard_event_pressed::return#0 // register copy reg byte a - //SEG613 [280] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 -- vbuaa_eq_0_then_la1 + //SEG637 [291] if((byte~) keyboard_event_scan::$14==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@9 -- vbuaa_eq_0_then_la1 cmp #0 beq b2 - //SEG614 [281] phi from keyboard_event_scan::@26 to keyboard_event_scan::@21 [phi:keyboard_event_scan::@26->keyboard_event_scan::@21] - //SEG615 keyboard_event_scan::@21 - //SEG616 [282] phi from keyboard_event_scan::@21 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9] - //SEG617 [282] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 + //SEG638 [292] phi from keyboard_event_scan::@26 to keyboard_event_scan::@21 [phi:keyboard_event_scan::@26->keyboard_event_scan::@21] + //SEG639 keyboard_event_scan::@21 + //SEG640 [293] phi from keyboard_event_scan::@21 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9] + //SEG641 [293] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0|(const byte) KEY_MODIFIER_LSHIFT#0 [phi:keyboard_event_scan::@21->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 ldx #0|KEY_MODIFIER_LSHIFT jmp b9 - //SEG618 [282] phi from keyboard_event_scan::@26 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9] + //SEG642 [293] phi from keyboard_event_scan::@26 to keyboard_event_scan::@9 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9] b2: - //SEG619 [282] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 + //SEG643 [293] phi (byte) keyboard_modifiers#11 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@26->keyboard_event_scan::@9#0] -- vbuxx=vbuc1 ldx #0 - //SEG620 keyboard_event_scan::@9 + //SEG644 keyboard_event_scan::@9 b9: - //SEG621 [283] call keyboard_event_pressed - //SEG622 [254] phi from keyboard_event_scan::@9 to keyboard_event_pressed [phi:keyboard_event_scan::@9->keyboard_event_pressed] - //SEG623 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_RSHIFT#0 [phi:keyboard_event_scan::@9->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG645 [294] call keyboard_event_pressed + //SEG646 [265] phi from keyboard_event_scan::@9 to keyboard_event_pressed [phi:keyboard_event_scan::@9->keyboard_event_pressed] + //SEG647 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_RSHIFT#0 [phi:keyboard_event_scan::@9->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_RSHIFT sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG624 [284] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 + //SEG648 [295] (byte) keyboard_event_pressed::return#1 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#1 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a - //SEG625 keyboard_event_scan::@27 - //SEG626 [285] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 + //SEG649 keyboard_event_scan::@27 + //SEG650 [296] (byte~) keyboard_event_scan::$18 ← (byte) keyboard_event_pressed::return#1 // (byte~) keyboard_event_scan::$18 = (byte) keyboard_event_pressed::return#1 // register copy reg byte a - //SEG627 [286] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 -- vbuaa_eq_0_then_la1 + //SEG651 [297] if((byte~) keyboard_event_scan::$18==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@10 -- vbuaa_eq_0_then_la1 cmp #0 beq b10 - //SEG628 keyboard_event_scan::@22 - //SEG629 [287] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 -- vbuxx=vbuxx_bor_vbuc1 + //SEG652 keyboard_event_scan::@22 + //SEG653 [298] (byte) keyboard_modifiers#3 ← (byte) keyboard_modifiers#11 | (const byte) KEY_MODIFIER_RSHIFT#0 -- vbuxx=vbuxx_bor_vbuc1 txa ora #KEY_MODIFIER_RSHIFT tax - //SEG630 [288] phi from keyboard_event_scan::@22 keyboard_event_scan::@27 to keyboard_event_scan::@10 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10] - //SEG631 [288] phi (byte) keyboard_modifiers#12 = (byte) keyboard_modifiers#3 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10#0] -- register_copy - //SEG632 keyboard_event_scan::@10 + //SEG654 [299] phi from keyboard_event_scan::@22 keyboard_event_scan::@27 to keyboard_event_scan::@10 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10] + //SEG655 [299] phi (byte) keyboard_modifiers#12 = (byte) keyboard_modifiers#3 [phi:keyboard_event_scan::@22/keyboard_event_scan::@27->keyboard_event_scan::@10#0] -- register_copy + //SEG656 keyboard_event_scan::@10 b10: - //SEG633 [289] call keyboard_event_pressed - //SEG634 [254] phi from keyboard_event_scan::@10 to keyboard_event_pressed [phi:keyboard_event_scan::@10->keyboard_event_pressed] - //SEG635 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_CTRL#0 [phi:keyboard_event_scan::@10->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG657 [300] call keyboard_event_pressed + //SEG658 [265] phi from keyboard_event_scan::@10 to keyboard_event_pressed [phi:keyboard_event_scan::@10->keyboard_event_pressed] + //SEG659 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_CTRL#0 [phi:keyboard_event_scan::@10->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_CTRL sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG636 [290] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 + //SEG660 [301] (byte) keyboard_event_pressed::return#2 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#2 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a - //SEG637 keyboard_event_scan::@28 - //SEG638 [291] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 + //SEG661 keyboard_event_scan::@28 + //SEG662 [302] (byte~) keyboard_event_scan::$22 ← (byte) keyboard_event_pressed::return#2 // (byte~) keyboard_event_scan::$22 = (byte) keyboard_event_pressed::return#2 // register copy reg byte a - //SEG639 [292] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 -- vbuaa_eq_0_then_la1 + //SEG663 [303] if((byte~) keyboard_event_scan::$22==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@11 -- vbuaa_eq_0_then_la1 cmp #0 beq b11 - //SEG640 keyboard_event_scan::@23 - //SEG641 [293] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 -- vbuxx=vbuxx_bor_vbuc1 + //SEG664 keyboard_event_scan::@23 + //SEG665 [304] (byte) keyboard_modifiers#4 ← (byte) keyboard_modifiers#12 | (const byte) KEY_MODIFIER_CTRL#0 -- vbuxx=vbuxx_bor_vbuc1 txa ora #KEY_MODIFIER_CTRL tax - //SEG642 [294] phi from keyboard_event_scan::@23 keyboard_event_scan::@28 to keyboard_event_scan::@11 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11] - //SEG643 [294] phi (byte) keyboard_modifiers#13 = (byte) keyboard_modifiers#4 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11#0] -- register_copy - //SEG644 keyboard_event_scan::@11 + //SEG666 [305] phi from keyboard_event_scan::@23 keyboard_event_scan::@28 to keyboard_event_scan::@11 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11] + //SEG667 [305] phi (byte) keyboard_modifiers#13 = (byte) keyboard_modifiers#4 [phi:keyboard_event_scan::@23/keyboard_event_scan::@28->keyboard_event_scan::@11#0] -- register_copy + //SEG668 keyboard_event_scan::@11 b11: - //SEG645 [295] call keyboard_event_pressed - //SEG646 [254] phi from keyboard_event_scan::@11 to keyboard_event_pressed [phi:keyboard_event_scan::@11->keyboard_event_pressed] - //SEG647 [254] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_COMMODORE#0 [phi:keyboard_event_scan::@11->keyboard_event_pressed#0] -- vbuz1=vbuc1 + //SEG669 [306] call keyboard_event_pressed + //SEG670 [265] phi from keyboard_event_scan::@11 to keyboard_event_pressed [phi:keyboard_event_scan::@11->keyboard_event_pressed] + //SEG671 [265] phi (byte) keyboard_event_pressed::keycode#5 = (const byte) KEY_COMMODORE#0 [phi:keyboard_event_scan::@11->keyboard_event_pressed#0] -- vbuz1=vbuc1 lda #KEY_COMMODORE sta keyboard_event_pressed.keycode jsr keyboard_event_pressed - //SEG648 [296] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 + //SEG672 [307] (byte) keyboard_event_pressed::return#10 ← (byte) keyboard_event_pressed::return#11 // (byte) keyboard_event_pressed::return#10 = (byte) keyboard_event_pressed::return#11 // register copy reg byte a - //SEG649 keyboard_event_scan::@29 - //SEG650 [297] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 + //SEG673 keyboard_event_scan::@29 + //SEG674 [308] (byte~) keyboard_event_scan::$26 ← (byte) keyboard_event_pressed::return#10 // (byte~) keyboard_event_scan::$26 = (byte) keyboard_event_pressed::return#10 // register copy reg byte a - //SEG651 [298] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return -- vbuaa_eq_0_then_la1 + //SEG675 [309] if((byte~) keyboard_event_scan::$26==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@return -- vbuaa_eq_0_then_la1 cmp #0 beq breturn - //SEG652 keyboard_event_scan::@24 - //SEG653 [299] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 -- vbuaa=vbuxx_bor_vbuc1 + //SEG676 keyboard_event_scan::@24 + //SEG677 [310] (byte) keyboard_modifiers#5 ← (byte) keyboard_modifiers#13 | (const byte) KEY_MODIFIER_COMMODORE#0 -- vbuaa=vbuxx_bor_vbuc1 txa ora #KEY_MODIFIER_COMMODORE - //SEG654 keyboard_event_scan::@return + //SEG678 keyboard_event_scan::@return breturn: - //SEG655 [300] return + //SEG679 [311] return rts - //SEG656 [301] phi from keyboard_event_scan::@25 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4] + //SEG680 [312] phi from keyboard_event_scan::@25 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4] b6: - //SEG657 [301] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#0] -- register_copy - //SEG658 [301] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#11 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#1] -- register_copy - //SEG659 [301] phi (byte) keyboard_event_scan::col#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#2] -- vbuxx=vbuc1 + //SEG681 [312] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#29 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#0] -- register_copy + //SEG682 [312] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#11 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#1] -- register_copy + //SEG683 [312] phi (byte) keyboard_event_scan::col#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:keyboard_event_scan::@25->keyboard_event_scan::@4#2] -- vbuxx=vbuc1 ldx #0 - //SEG660 [301] phi from keyboard_event_scan::@5 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4] - //SEG661 [301] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#30 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#0] -- register_copy - //SEG662 [301] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#15 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#1] -- register_copy - //SEG663 [301] phi (byte) keyboard_event_scan::col#2 = (byte) keyboard_event_scan::col#1 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#2] -- register_copy - //SEG664 keyboard_event_scan::@4 + //SEG684 [312] phi from keyboard_event_scan::@5 to keyboard_event_scan::@4 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4] + //SEG685 [312] phi (byte) keyboard_events_size#10 = (byte) keyboard_events_size#30 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#0] -- register_copy + //SEG686 [312] phi (byte) keyboard_event_scan::keycode#10 = (byte) keyboard_event_scan::keycode#15 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#1] -- register_copy + //SEG687 [312] phi (byte) keyboard_event_scan::col#2 = (byte) keyboard_event_scan::col#1 [phi:keyboard_event_scan::@5->keyboard_event_scan::@4#2] -- register_copy + //SEG688 keyboard_event_scan::@4 b4: - //SEG665 [302] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) -- vbuaa=vbuz1_bxor_pbuc1_derefidx_vbuz2 + //SEG689 [313] (byte~) keyboard_event_scan::$3 ← (byte) keyboard_event_scan::row_scan#0 ^ *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) -- vbuaa=vbuz1_bxor_pbuc1_derefidx_vbuz2 lda row_scan ldy row eor keyboard_scan_values,y - //SEG666 [303] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuaa_band_pbuc1_derefidx_vbuxx + //SEG690 [314] (byte~) keyboard_event_scan::$4 ← (byte~) keyboard_event_scan::$3 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuaa_band_pbuc1_derefidx_vbuxx and keyboard_matrix_col_bitmask,x - //SEG667 [304] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 -- vbuaa_eq_0_then_la1 + //SEG691 [315] if((byte~) keyboard_event_scan::$4==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@5 -- vbuaa_eq_0_then_la1 cmp #0 beq b5 - //SEG668 keyboard_event_scan::@15 - //SEG669 [305] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 -- vbuz1_eq_vbuc1_then_la1 + //SEG692 keyboard_event_scan::@15 + //SEG693 [316] if((byte) keyboard_events_size#10==(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@5 -- vbuz1_eq_vbuc1_then_la1 lda keyboard_events_size cmp #8 beq b5 - //SEG670 keyboard_event_scan::@16 - //SEG671 [306] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuxx + //SEG694 keyboard_event_scan::@16 + //SEG695 [317] (byte) keyboard_event_scan::event_type#0 ← (byte) keyboard_event_scan::row_scan#0 & *((const byte[8]) keyboard_matrix_col_bitmask#0 + (byte) keyboard_event_scan::col#2) -- vbuaa=vbuz1_band_pbuc1_derefidx_vbuxx lda keyboard_matrix_col_bitmask,x and row_scan - //SEG672 [307] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 -- vbuaa_eq_0_then_la1 + //SEG696 [318] if((byte) keyboard_event_scan::event_type#0==(byte/signed byte/word/signed word/dword/signed dword) 0) goto keyboard_event_scan::@7 -- vbuaa_eq_0_then_la1 cmp #0 beq b7 - //SEG673 keyboard_event_scan::@17 - //SEG674 [308] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG697 keyboard_event_scan::@17 + //SEG698 [319] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte) keyboard_event_scan::keycode#10 -- pbuc1_derefidx_vbuz1=vbuz2 lda keycode ldy keyboard_events_size sta keyboard_events,y - //SEG675 [309] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 + //SEG699 [320] (byte) keyboard_events_size#2 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 inc keyboard_events_size - //SEG676 [310] phi from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 to keyboard_event_scan::@5 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5] - //SEG677 [310] phi (byte) keyboard_events_size#30 = (byte) keyboard_events_size#10 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5#0] -- register_copy - //SEG678 keyboard_event_scan::@5 + //SEG700 [321] phi from keyboard_event_scan::@15 keyboard_event_scan::@17 keyboard_event_scan::@4 keyboard_event_scan::@7 to keyboard_event_scan::@5 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5] + //SEG701 [321] phi (byte) keyboard_events_size#30 = (byte) keyboard_events_size#10 [phi:keyboard_event_scan::@15/keyboard_event_scan::@17/keyboard_event_scan::@4/keyboard_event_scan::@7->keyboard_event_scan::@5#0] -- register_copy + //SEG702 keyboard_event_scan::@5 b5: - //SEG679 [311] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 -- vbuz1=_inc_vbuz1 + //SEG703 [322] (byte) keyboard_event_scan::keycode#15 ← ++ (byte) keyboard_event_scan::keycode#10 -- vbuz1=_inc_vbuz1 inc keycode - //SEG680 [312] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 -- vbuxx=_inc_vbuxx + //SEG704 [323] (byte) keyboard_event_scan::col#1 ← ++ (byte) keyboard_event_scan::col#2 -- vbuxx=_inc_vbuxx inx - //SEG681 [313] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 -- vbuxx_neq_vbuc1_then_la1 + //SEG705 [324] if((byte) keyboard_event_scan::col#1!=(byte/signed byte/word/signed word/dword/signed dword) 8) goto keyboard_event_scan::@4 -- vbuxx_neq_vbuc1_then_la1 cpx #8 bne b4 - //SEG682 keyboard_event_scan::@19 - //SEG683 [314] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 -- pbuc1_derefidx_vbuz1=vbuz2 + //SEG706 keyboard_event_scan::@19 + //SEG707 [325] *((const byte[8]) keyboard_scan_values#0 + (byte) keyboard_event_scan::row#2) ← (byte) keyboard_event_scan::row_scan#0 -- pbuc1_derefidx_vbuz1=vbuz2 lda row_scan ldy row sta keyboard_scan_values,y jmp b3 - //SEG684 keyboard_event_scan::@7 + //SEG708 keyboard_event_scan::@7 b7: - //SEG685 [315] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuaa=vbuz1_bor_vbuc1 + //SEG709 [326] (byte/word/dword~) keyboard_event_scan::$11 ← (byte) keyboard_event_scan::keycode#10 | (byte/signed byte/word/signed word/dword/signed dword) 64 -- vbuaa=vbuz1_bor_vbuc1 lda #$40 ora keycode - //SEG686 [316] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 -- pbuc1_derefidx_vbuz1=vbuaa + //SEG710 [327] *((const byte[8]) keyboard_events#0 + (byte) keyboard_events_size#10) ← (byte/word/dword~) keyboard_event_scan::$11 -- pbuc1_derefidx_vbuz1=vbuaa ldy keyboard_events_size sta keyboard_events,y - //SEG687 [317] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 + //SEG711 [328] (byte) keyboard_events_size#1 ← ++ (byte) keyboard_events_size#10 -- vbuz1=_inc_vbuz1 inc keyboard_events_size jmp b5 } -//SEG688 keyboard_matrix_read +//SEG712 keyboard_matrix_read keyboard_matrix_read: { - //SEG689 [318] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) -- _deref_pbuc1=pbuc2_derefidx_vbuxx + //SEG713 [329] *((const byte*) CIA1_PORT_A#0) ← *((const byte[8]) keyboard_matrix_row_bitmask#0 + (byte) keyboard_matrix_read::rowid#0) -- _deref_pbuc1=pbuc2_derefidx_vbuxx lda keyboard_matrix_row_bitmask,x sta CIA1_PORT_A - //SEG690 [319] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) -- vbuaa=_bnot__deref_pbuc1 + //SEG714 [330] (byte) keyboard_matrix_read::return#0 ← ~ *((const byte*) CIA1_PORT_B#0) -- vbuaa=_bnot__deref_pbuc1 lda CIA1_PORT_B eor #$ff - //SEG691 keyboard_matrix_read::@return - //SEG692 [320] return + //SEG715 keyboard_matrix_read::@return + //SEG716 [331] return rts } -//SEG693 play_init +//SEG717 render_show +render_show: { + .const toD0181_return = (>(PLAYFIELD_SCREEN_1&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + .const toD0182_return = (>(PLAYFIELD_SCREEN_2&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f + //SEG718 [332] if((byte) render_screen_show#15==(byte/signed byte/word/signed word/dword/signed dword) 0) goto render_show::toD0181 -- vbuz1_eq_0_then_la1 + lda render_screen_show + cmp #0 + beq toD0181 + //SEG719 [333] phi from render_show to render_show::toD0182 [phi:render_show->render_show::toD0182] + //SEG720 render_show::toD0182 + //SEG721 [334] phi from render_show::toD0182 to render_show::@2 [phi:render_show::toD0182->render_show::@2] + //SEG722 [334] phi (byte) render_show::d018val#3 = (const byte) render_show::toD0182_return#0 [phi:render_show::toD0182->render_show::@2#0] -- vbuaa=vbuc1 + lda #toD0182_return + //SEG723 render_show::@2 + b2: + //SEG724 [335] *((const byte*) D018#0) ← (byte) render_show::d018val#3 -- _deref_pbuc1=vbuaa + sta D018 + //SEG725 render_show::@return + //SEG726 [336] return + rts + //SEG727 [337] phi from render_show to render_show::toD0181 [phi:render_show->render_show::toD0181] + //SEG728 render_show::toD0181 + toD0181: + //SEG729 [334] phi from render_show::toD0181 to render_show::@2 [phi:render_show::toD0181->render_show::@2] + //SEG730 [334] phi (byte) render_show::d018val#3 = (const byte) render_show::toD0181_return#0 [phi:render_show::toD0181->render_show::@2#0] -- vbuaa=vbuc1 + lda #toD0181_return + jmp b2 +} +//SEG731 play_init play_init: { - .label pli = 4 + .label pli = 7 .label idx = 2 - //SEG694 [322] phi from play_init to play_init::@1 [phi:play_init->play_init::@1] - //SEG695 [322] phi (byte) play_init::idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#0] -- vbuz1=vbuc1 + //SEG732 [339] phi from play_init to play_init::@1 [phi:play_init->play_init::@1] + //SEG733 [339] phi (byte) play_init::idx#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#0] -- vbuz1=vbuc1 lda #0 sta idx - //SEG696 [322] phi (byte*) play_init::pli#2 = (const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 [phi:play_init->play_init::@1#1] -- pbuz1=pbuc1 + //SEG734 [339] phi (byte*) play_init::pli#2 = (const byte[PLAYFIELD_LINES#0*PLAYFIELD_COLS#0]) playfield#0 [phi:play_init->play_init::@1#1] -- pbuz1=pbuc1 lda #playfield sta pli+1 - //SEG697 [322] phi (byte) play_init::j#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#2] -- vbuxx=vbuc1 + //SEG735 [339] phi (byte) play_init::j#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:play_init->play_init::@1#2] -- vbuxx=vbuc1 ldx #0 - //SEG698 [322] phi from play_init::@1 to play_init::@1 [phi:play_init::@1->play_init::@1] - //SEG699 [322] phi (byte) play_init::idx#2 = (byte) play_init::idx#1 [phi:play_init::@1->play_init::@1#0] -- register_copy - //SEG700 [322] phi (byte*) play_init::pli#2 = (byte*) play_init::pli#1 [phi:play_init::@1->play_init::@1#1] -- register_copy - //SEG701 [322] phi (byte) play_init::j#2 = (byte) play_init::j#1 [phi:play_init::@1->play_init::@1#2] -- register_copy - //SEG702 play_init::@1 + //SEG736 [339] phi from play_init::@1 to play_init::@1 [phi:play_init::@1->play_init::@1] + //SEG737 [339] phi (byte) play_init::idx#2 = (byte) play_init::idx#1 [phi:play_init::@1->play_init::@1#0] -- register_copy + //SEG738 [339] phi (byte*) play_init::pli#2 = (byte*) play_init::pli#1 [phi:play_init::@1->play_init::@1#1] -- register_copy + //SEG739 [339] phi (byte) play_init::j#2 = (byte) play_init::j#1 [phi:play_init::@1->play_init::@1#2] -- register_copy + //SEG740 play_init::@1 b1: - //SEG703 [323] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 + //SEG741 [340] (byte~) play_init::$1 ← (byte) play_init::j#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 txa asl - //SEG704 [324] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 -- pptc1_derefidx_vbuaa=pbuz1 + //SEG742 [341] *((const byte*[PLAYFIELD_LINES#0]) playfield_lines#0 + (byte~) play_init::$1) ← (byte*) play_init::pli#2 -- pptc1_derefidx_vbuaa=pbuz1 tay lda pli sta playfield_lines,y lda pli+1 sta playfield_lines+1,y - //SEG705 [325] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 -- pbuc1_derefidx_vbuxx=vbuz1 + //SEG743 [342] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 + (byte) play_init::j#2) ← (byte) play_init::idx#2 -- pbuc1_derefidx_vbuxx=vbuz1 lda idx sta playfield_lines_idx,x - //SEG706 [326] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 -- pbuz1=pbuz1_plus_vbuc1 + //SEG744 [343] (byte*) play_init::pli#1 ← (byte*) play_init::pli#2 + (const byte) PLAYFIELD_COLS#0 -- pbuz1=pbuz1_plus_vbuc1 lda pli clc adc #PLAYFIELD_COLS @@ -17765,233 +18881,208 @@ play_init: { bcc !+ inc pli+1 !: - //SEG707 [327] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 + //SEG745 [344] (byte) play_init::idx#1 ← (byte) play_init::idx#2 + (const byte) PLAYFIELD_COLS#0 -- vbuz1=vbuz1_plus_vbuc1 lda #PLAYFIELD_COLS clc adc idx sta idx - //SEG708 [328] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuxx=_inc_vbuxx + //SEG746 [345] (byte) play_init::j#1 ← ++ (byte) play_init::j#2 -- vbuxx=_inc_vbuxx inx - //SEG709 [329] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 -- vbuxx_neq_vbuc1_then_la1 + //SEG747 [346] if((byte) play_init::j#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto play_init::@1 -- vbuxx_neq_vbuc1_then_la1 cpx #PLAYFIELD_LINES-1+1 bne b1 - //SEG710 play_init::@2 - //SEG711 [330] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 -- _deref_pbuc1=vbuc2 + //SEG748 play_init::@2 + //SEG749 [347] *((const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0+(const byte) PLAYFIELD_LINES#0) ← (const byte) PLAYFIELD_COLS#0*(const byte) PLAYFIELD_LINES#0 -- _deref_pbuc1=vbuc2 lda #PLAYFIELD_COLS*PLAYFIELD_LINES sta playfield_lines_idx+PLAYFIELD_LINES - //SEG712 play_init::@return - //SEG713 [331] return + //SEG750 play_init::@return + //SEG751 [348] return rts } -//SEG714 sprites_irq_init +//SEG752 sprites_irq_init sprites_irq_init: { - //SEG715 asm { sei } + //SEG753 asm { sei } sei - //SEG716 [333] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG754 [350] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG717 asm { ldaCIA1_INTERRUPT } + //SEG755 asm { ldaCIA1_INTERRUPT } lda CIA1_INTERRUPT - //SEG718 [335] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 + //SEG756 [352] *((const byte*) PROCPORT_DDR#0) ← (const byte) PROCPORT_DDR_MEMORY_MASK#0 -- _deref_pbuc1=vbuc2 lda #PROCPORT_DDR_MEMORY_MASK sta PROCPORT_DDR - //SEG719 [336] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 + //SEG757 [353] *((const byte*) PROCPORT#0) ← (const byte) PROCPORT_RAM_IO#0 -- _deref_pbuc1=vbuc2 lda #PROCPORT_RAM_IO sta PROCPORT - //SEG720 [337] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 + //SEG758 [354] *((const byte*) CIA1_INTERRUPT#0) ← (const byte) CIA_INTERRUPT_CLEAR#0 -- _deref_pbuc1=vbuc2 lda #CIA_INTERRUPT_CLEAR sta CIA1_INTERRUPT - //SEG721 [338] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + //SEG759 [355] *((const byte*) VIC_CONTROL#0) ← *((const byte*) VIC_CONTROL#0) & (byte/signed byte/word/signed word/dword/signed dword) 127 -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda VIC_CONTROL and #$7f sta VIC_CONTROL - //SEG722 [339] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 -- _deref_pbuc1=vbuc2 + //SEG760 [356] *((const byte*) RASTER#0) ← (const byte) IRQ_RASTER_FIRST#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER_FIRST sta RASTER - //SEG723 [340] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG761 [357] *((const byte*) IRQ_ENABLE#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_ENABLE - //SEG724 [341] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 + //SEG762 [358] *((const void()**) HARDWARE_IRQ#0) ← &interrupt(HARDWARE_CLOBBER)(void()) irq() -- _deref_pptc1=pprc2 lda #irq sta HARDWARE_IRQ+1 - //SEG725 asm { cli } + //SEG763 asm { cli } cli - //SEG726 sprites_irq_init::@return - //SEG727 [343] return + //SEG764 sprites_irq_init::@return + //SEG765 [360] return rts } -//SEG728 sprites_init +//SEG766 sprites_init sprites_init: { .label xpos = 2 - //SEG729 [344] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 -- _deref_pbuc1=vbuc2 + //SEG767 [361] *((const byte*) SPRITES_ENABLE#0) ← (byte/signed byte/word/signed word/dword/signed dword) 15 -- _deref_pbuc1=vbuc2 lda #$f sta SPRITES_ENABLE - //SEG730 [345] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 + //SEG768 [362] *((const byte*) SPRITES_MC#0) ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- _deref_pbuc1=vbuc2 lda #0 sta SPRITES_MC - //SEG731 [346] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) -- _deref_pbuc1=_deref_pbuc2 + //SEG769 [363] *((const byte*) SPRITES_EXPAND_Y#0) ← *((const byte*) SPRITES_MC#0) -- _deref_pbuc1=_deref_pbuc2 sta SPRITES_EXPAND_Y - //SEG732 [347] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) -- _deref_pbuc1=_deref_pbuc2 + //SEG770 [364] *((const byte*) SPRITES_EXPAND_X#0) ← *((const byte*) SPRITES_EXPAND_Y#0) -- _deref_pbuc1=_deref_pbuc2 sta SPRITES_EXPAND_X - //SEG733 [348] phi from sprites_init to sprites_init::@1 [phi:sprites_init->sprites_init::@1] - //SEG734 [348] phi (byte) sprites_init::xpos#2 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 [phi:sprites_init->sprites_init::@1#0] -- vbuz1=vbuc1 + //SEG771 [365] phi from sprites_init to sprites_init::@1 [phi:sprites_init->sprites_init::@1] + //SEG772 [365] phi (byte) sprites_init::xpos#2 = (byte/signed byte/word/signed word/dword/signed dword) 24+(byte/signed byte/word/signed word/dword/signed dword) 15*(byte/signed byte/word/signed word/dword/signed dword) 8 [phi:sprites_init->sprites_init::@1#0] -- vbuz1=vbuc1 lda #$18+$f*8 sta xpos - //SEG735 [348] phi (byte) sprites_init::s#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:sprites_init->sprites_init::@1#1] -- vbuxx=vbuc1 + //SEG773 [365] phi (byte) sprites_init::s#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:sprites_init->sprites_init::@1#1] -- vbuxx=vbuc1 ldx #0 - //SEG736 [348] phi from sprites_init::@1 to sprites_init::@1 [phi:sprites_init::@1->sprites_init::@1] - //SEG737 [348] phi (byte) sprites_init::xpos#2 = (byte) sprites_init::xpos#1 [phi:sprites_init::@1->sprites_init::@1#0] -- register_copy - //SEG738 [348] phi (byte) sprites_init::s#2 = (byte) sprites_init::s#1 [phi:sprites_init::@1->sprites_init::@1#1] -- register_copy - //SEG739 sprites_init::@1 + //SEG774 [365] phi from sprites_init::@1 to sprites_init::@1 [phi:sprites_init::@1->sprites_init::@1] + //SEG775 [365] phi (byte) sprites_init::xpos#2 = (byte) sprites_init::xpos#1 [phi:sprites_init::@1->sprites_init::@1#0] -- register_copy + //SEG776 [365] phi (byte) sprites_init::s#2 = (byte) sprites_init::s#1 [phi:sprites_init::@1->sprites_init::@1#1] -- register_copy + //SEG777 sprites_init::@1 b1: - //SEG740 [349] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 + //SEG778 [366] (byte) sprites_init::s2#0 ← (byte) sprites_init::s#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 txa asl - //SEG741 [350] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 -- pbuc1_derefidx_vbuaa=vbuz1 + //SEG779 [367] *((const byte*) SPRITES_XPOS#0 + (byte) sprites_init::s2#0) ← (byte) sprites_init::xpos#2 -- pbuc1_derefidx_vbuaa=vbuz1 tay lda xpos sta SPRITES_XPOS,y - //SEG742 [351] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 -- pbuc1_derefidx_vbuxx=vbuc2 + //SEG780 [368] *((const byte*) SPRITES_COLS#0 + (byte) sprites_init::s#2) ← (const byte) BLACK#0 -- pbuc1_derefidx_vbuxx=vbuc2 lda #BLACK sta SPRITES_COLS,x - //SEG743 [352] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 -- vbuz1=vbuz1_plus_vbuc1 + //SEG781 [369] (byte) sprites_init::xpos#1 ← (byte) sprites_init::xpos#2 + (byte/signed byte/word/signed word/dword/signed dword) 24 -- vbuz1=vbuz1_plus_vbuc1 lda #$18 clc adc xpos sta xpos - //SEG744 [353] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuxx=_inc_vbuxx + //SEG782 [370] (byte) sprites_init::s#1 ← ++ (byte) sprites_init::s#2 -- vbuxx=_inc_vbuxx inx - //SEG745 [354] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 -- vbuxx_neq_vbuc1_then_la1 + //SEG783 [371] if((byte) sprites_init::s#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto sprites_init::@1 -- vbuxx_neq_vbuc1_then_la1 cpx #4 bne b1 - //SEG746 sprites_init::@return - //SEG747 [355] return + //SEG784 sprites_init::@return + //SEG785 [372] return rts } -//SEG748 render_init +//SEG786 render_init render_init: { - .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_SCREEN)>>6 - .const toD0181_return = (>(PLAYFIELD_SCREEN&$3fff)<<2)|(>PLAYFIELD_CHARSET)>>2&$f - .label _18 = $c - .label li = 4 - .label line = 4 + .const vicSelectGfxBank1_toDd001_return = 3^(>PLAYFIELD_CHARSET)>>6 + .label _12 = $f + .label line = 7 .label l = 2 - //SEG749 render_init::vicSelectGfxBank1 - //SEG750 [357] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 + .label li_1 = 7 + .label li_2 = $f + //SEG787 render_init::vicSelectGfxBank1 + //SEG788 [374] *((const byte*) CIA2_PORT_A_DDR#0) ← (byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 lda #3 sta CIA2_PORT_A_DDR - //SEG751 [358] phi from render_init::vicSelectGfxBank1 to render_init::vicSelectGfxBank1_toDd001 [phi:render_init::vicSelectGfxBank1->render_init::vicSelectGfxBank1_toDd001] - //SEG752 render_init::vicSelectGfxBank1_toDd001 - //SEG753 render_init::vicSelectGfxBank1_@1 - //SEG754 [359] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 -- _deref_pbuc1=vbuc2 + //SEG789 [375] phi from render_init::vicSelectGfxBank1 to render_init::vicSelectGfxBank1_toDd001 [phi:render_init::vicSelectGfxBank1->render_init::vicSelectGfxBank1_toDd001] + //SEG790 render_init::vicSelectGfxBank1_toDd001 + //SEG791 render_init::vicSelectGfxBank1_@1 + //SEG792 [376] *((const byte*) CIA2_PORT_A#0) ← (const byte) render_init::vicSelectGfxBank1_toDd001_return#0 -- _deref_pbuc1=vbuc2 lda #vicSelectGfxBank1_toDd001_return sta CIA2_PORT_A - //SEG755 [360] phi from render_init::vicSelectGfxBank1_@1 to render_init::toD0181 [phi:render_init::vicSelectGfxBank1_@1->render_init::toD0181] - //SEG756 render_init::toD0181 - //SEG757 render_init::@8 - //SEG758 [361] *((const byte*) D018#0) ← (const byte) render_init::toD0181_return#0 -- _deref_pbuc1=vbuc2 - lda #toD0181_return - sta D018 - //SEG759 [362] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 + //SEG793 render_init::@7 + //SEG794 [377] *((const byte*) D011#0) ← (const byte) VIC_ECM#0|(const byte) VIC_DEN#0|(const byte) VIC_RSEL#0|(byte/signed byte/word/signed word/dword/signed dword) 3 -- _deref_pbuc1=vbuc2 lda #VIC_ECM|VIC_DEN|VIC_RSEL|3 sta D011 - //SEG760 [363] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG795 [378] *((const byte*) BGCOL1#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BGCOL1 - //SEG761 [364] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 -- _deref_pbuc1=vbuc2 + //SEG796 [379] *((const byte*) BGCOL2#0) ← (const byte) BLUE#0 -- _deref_pbuc1=vbuc2 lda #BLUE sta BGCOL2 - //SEG762 [365] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 -- _deref_pbuc1=vbuc2 + //SEG797 [380] *((const byte*) BGCOL3#0) ← (const byte) CYAN#0 -- _deref_pbuc1=vbuc2 lda #CYAN sta BGCOL3 - //SEG763 [366] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 -- _deref_pbuc1=vbuc2 + //SEG798 [381] *((const byte*) BGCOL4#0) ← (const byte) GREY#0 -- _deref_pbuc1=vbuc2 lda #GREY sta BGCOL4 - //SEG764 [367] call fill - //SEG765 [412] phi from render_init::@8 to fill [phi:render_init::@8->fill] - jsr fill - //SEG766 [368] phi from render_init::@8 to render_init::@9 [phi:render_init::@8->render_init::@9] - //SEG767 render_init::@9 - //SEG768 [369] call render_screen_original - //SEG769 [386] phi from render_init::@9 to render_screen_original [phi:render_init::@9->render_screen_original] + //SEG799 [382] call render_screen_original + //SEG800 [412] phi from render_init::@7 to render_screen_original [phi:render_init::@7->render_screen_original] + //SEG801 [412] phi (byte*) render_screen_original::screen#11 = (const byte*) PLAYFIELD_SCREEN_1#0 [phi:render_init::@7->render_screen_original#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_1 + sta render_screen_original.screen+1 jsr render_screen_original - //SEG770 [370] phi from render_init::@9 to render_init::@1 [phi:render_init::@9->render_init::@1] - //SEG771 [370] phi (byte*) render_init::li#2 = (const byte*) PLAYFIELD_SCREEN#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@9->render_init::@1#0] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN+2*$28+$10 - sta li+1 - //SEG772 [370] phi (byte) render_init::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@9->render_init::@1#1] -- vbuxx=vbuc1 - ldx #0 - //SEG773 [370] phi from render_init::@1 to render_init::@1 [phi:render_init::@1->render_init::@1] - //SEG774 [370] phi (byte*) render_init::li#2 = (byte*) render_init::li#1 [phi:render_init::@1->render_init::@1#0] -- register_copy - //SEG775 [370] phi (byte) render_init::i#2 = (byte) render_init::i#1 [phi:render_init::@1->render_init::@1#1] -- register_copy - //SEG776 render_init::@1 - b1: - //SEG777 [371] (byte~) render_init::$11 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 - txa - asl - //SEG778 [372] *((const byte*[PLAYFIELD_LINES#0]) screen_lines#0 + (byte~) render_init::$11) ← (byte*) render_init::li#2 -- pptc1_derefidx_vbuaa=pbuz1 - tay - lda li - sta screen_lines,y - lda li+1 - sta screen_lines+1,y - //SEG779 [373] (byte*) render_init::li#1 ← (byte*) render_init::li#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 - lda li - clc - adc #$28 - sta li - bcc !+ - inc li+1 - !: - //SEG780 [374] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 -- vbuxx=_inc_vbuxx - inx - //SEG781 [375] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 -- vbuxx_neq_vbuc1_then_la1 - cpx #PLAYFIELD_LINES-1+1 - bne b1 - //SEG782 [376] phi from render_init::@1 to render_init::@2 [phi:render_init::@1->render_init::@2] - //SEG783 [376] phi (byte) render_init::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_init::@1->render_init::@2#0] -- vbuz1=vbuc1 + //SEG802 [383] phi from render_init::@7 to render_init::@8 [phi:render_init::@7->render_init::@8] + //SEG803 render_init::@8 + //SEG804 [384] call render_screen_original + //SEG805 [412] phi from render_init::@8 to render_screen_original [phi:render_init::@8->render_screen_original] + //SEG806 [412] phi (byte*) render_screen_original::screen#11 = (const byte*) PLAYFIELD_SCREEN_2#0 [phi:render_init::@8->render_screen_original#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_2 + sta render_screen_original.screen+1 + jsr render_screen_original + //SEG807 [385] phi from render_init::@8 to render_init::@9 [phi:render_init::@8->render_init::@9] + //SEG808 render_init::@9 + //SEG809 [386] call fill + //SEG810 [406] phi from render_init::@9 to fill [phi:render_init::@9->fill] + jsr fill + //SEG811 [387] phi from render_init::@9 to render_init::@1 [phi:render_init::@9->render_init::@1] + //SEG812 [387] phi (byte) render_init::l#4 = (byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_init::@9->render_init::@1#0] -- vbuz1=vbuc1 lda #2 sta l - //SEG784 [376] phi (byte*) render_init::line#4 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@1->render_init::@2#1] -- pbuz1=pbuc1 + //SEG813 [387] phi (byte*) render_init::line#4 = (const byte*) COLS#0+(byte/signed byte/word/signed word/dword/signed dword) 4*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@9->render_init::@1#1] -- pbuz1=pbuc1 lda #COLS+4*$28+$10 sta line+1 - //SEG785 [376] phi from render_init::@5 to render_init::@2 [phi:render_init::@5->render_init::@2] - //SEG786 [376] phi (byte) render_init::l#4 = (byte) render_init::l#1 [phi:render_init::@5->render_init::@2#0] -- register_copy - //SEG787 [376] phi (byte*) render_init::line#4 = (byte*) render_init::line#1 [phi:render_init::@5->render_init::@2#1] -- register_copy - //SEG788 render_init::@2 - b2: - //SEG789 [377] phi from render_init::@2 to render_init::@3 [phi:render_init::@2->render_init::@3] - //SEG790 [377] phi (byte) render_init::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@2->render_init::@3#0] -- vbuxx=vbuc1 + //SEG814 [387] phi from render_init::@4 to render_init::@1 [phi:render_init::@4->render_init::@1] + //SEG815 [387] phi (byte) render_init::l#4 = (byte) render_init::l#1 [phi:render_init::@4->render_init::@1#0] -- register_copy + //SEG816 [387] phi (byte*) render_init::line#4 = (byte*) render_init::line#1 [phi:render_init::@4->render_init::@1#1] -- register_copy + //SEG817 render_init::@1 + b1: + //SEG818 [388] phi from render_init::@1 to render_init::@2 [phi:render_init::@1->render_init::@2] + //SEG819 [388] phi (byte) render_init::c#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@1->render_init::@2#0] -- vbuxx=vbuc1 ldx #0 - //SEG791 [377] phi from render_init::@3 to render_init::@3 [phi:render_init::@3->render_init::@3] - //SEG792 [377] phi (byte) render_init::c#2 = (byte) render_init::c#1 [phi:render_init::@3->render_init::@3#0] -- register_copy - //SEG793 render_init::@3 - b3: - //SEG794 [378] (byte*~) render_init::$18 ← (byte*) render_init::line#4 + (byte) render_init::c#2 -- pbuz1=pbuz2_plus_vbuxx + //SEG820 [388] phi from render_init::@2 to render_init::@2 [phi:render_init::@2->render_init::@2] + //SEG821 [388] phi (byte) render_init::c#2 = (byte) render_init::c#1 [phi:render_init::@2->render_init::@2#0] -- register_copy + //SEG822 render_init::@2 + b2: + //SEG823 [389] (byte*~) render_init::$12 ← (byte*) render_init::line#4 + (byte) render_init::c#2 -- pbuz1=pbuz2_plus_vbuxx txa clc adc line - sta _18 + sta _12 lda #0 adc line+1 - sta _18+1 - //SEG795 [379] *((byte*~) render_init::$18) ← (const byte) WHITE#0 -- _deref_pbuz1=vbuc1 + sta _12+1 + //SEG824 [390] *((byte*~) render_init::$12) ← (const byte) WHITE#0 -- _deref_pbuz1=vbuc1 lda #WHITE ldy #0 - sta (_18),y - //SEG796 [380] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 -- vbuxx=_inc_vbuxx + sta (_12),y + //SEG825 [391] (byte) render_init::c#1 ← ++ (byte) render_init::c#2 -- vbuxx=_inc_vbuxx inx - //SEG797 [381] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 -- vbuxx_neq_vbuc1_then_la1 + //SEG826 [392] if((byte) render_init::c#1!=(const byte) PLAYFIELD_COLS#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 -- vbuxx_neq_vbuc1_then_la1 cpx #PLAYFIELD_COLS-1+1 - bne b3 - //SEG798 render_init::@5 - //SEG799 [382] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + bne b2 + //SEG827 render_init::@4 + //SEG828 [393] (byte*) render_init::line#1 ← (byte*) render_init::line#4 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 lda line clc adc #$28 @@ -17999,310 +19090,372 @@ render_init: { bcc !+ inc line+1 !: - //SEG800 [383] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 -- vbuz1=_inc_vbuz1 + //SEG829 [394] (byte) render_init::l#1 ← ++ (byte) render_init::l#4 -- vbuz1=_inc_vbuz1 inc l - //SEG801 [384] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@2 -- vbuz1_neq_vbuc1_then_la1 + //SEG830 [395] if((byte) render_init::l#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@1 -- vbuz1_neq_vbuc1_then_la1 lda l cmp #PLAYFIELD_LINES-1+1 - bne b2 - //SEG802 render_init::@return - //SEG803 [385] return - rts -} -//SEG804 render_screen_original -render_screen_original: { - .const SPACE = 0 - .label screen = $c - .label orig = 4 - .label y = 2 - //SEG805 [387] phi from render_screen_original to render_screen_original::@1 [phi:render_screen_original->render_screen_original::@1] - //SEG806 [387] phi (byte) render_screen_original::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original->render_screen_original::@1#0] -- vbuz1=vbuc1 - lda #0 - sta y - //SEG807 [387] phi (byte*) render_screen_original::orig#5 = (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_screen_original->render_screen_original::@1#1] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN_ORIGINAL+$20*2 - sta orig+1 - //SEG808 [387] phi (byte*) render_screen_original::screen#7 = (const byte*) PLAYFIELD_SCREEN#0 [phi:render_screen_original->render_screen_original::@1#2] -- pbuz1=pbuc1 - lda #PLAYFIELD_SCREEN - sta screen+1 - //SEG809 [387] phi from render_screen_original::@9 to render_screen_original::@1 [phi:render_screen_original::@9->render_screen_original::@1] - //SEG810 [387] phi (byte) render_screen_original::y#8 = (byte) render_screen_original::y#1 [phi:render_screen_original::@9->render_screen_original::@1#0] -- register_copy - //SEG811 [387] phi (byte*) render_screen_original::orig#5 = (byte*) render_screen_original::orig#1 [phi:render_screen_original::@9->render_screen_original::@1#1] -- register_copy - //SEG812 [387] phi (byte*) render_screen_original::screen#7 = (byte*) render_screen_original::screen#11 [phi:render_screen_original::@9->render_screen_original::@1#2] -- register_copy - //SEG813 render_screen_original::@1 - b1: - //SEG814 [388] phi from render_screen_original::@1 to render_screen_original::@2 [phi:render_screen_original::@1->render_screen_original::@2] - //SEG815 [388] phi (byte) render_screen_original::x#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original::@1->render_screen_original::@2#0] -- vbuxx=vbuc1 - ldx #0 - //SEG816 [388] phi (byte*) render_screen_original::screen#4 = (byte*) render_screen_original::screen#7 [phi:render_screen_original::@1->render_screen_original::@2#1] -- register_copy - //SEG817 [388] phi from render_screen_original::@2 to render_screen_original::@2 [phi:render_screen_original::@2->render_screen_original::@2] - //SEG818 [388] phi (byte) render_screen_original::x#4 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2->render_screen_original::@2#0] -- register_copy - //SEG819 [388] phi (byte*) render_screen_original::screen#4 = (byte*) render_screen_original::screen#1 [phi:render_screen_original::@2->render_screen_original::@2#1] -- register_copy - //SEG820 render_screen_original::@2 - b2: - //SEG821 [389] *((byte*) render_screen_original::screen#4) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 - lda #SPACE - ldy #0 - sta (screen),y - //SEG822 [390] (byte*) render_screen_original::screen#1 ← ++ (byte*) render_screen_original::screen#4 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG823 [391] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 -- vbuxx=_inc_vbuxx - inx - //SEG824 [392] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 -- vbuxx_neq_vbuc1_then_la1 - cpx #4 - bne b2 - //SEG825 [393] phi from render_screen_original::@2 render_screen_original::@4 to render_screen_original::@3 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3] - //SEG826 [393] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#0] -- register_copy - //SEG827 [393] phi (byte) render_screen_original::x#5 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#1] -- register_copy - //SEG828 [393] phi (byte*) render_screen_original::orig#2 = (byte*) render_screen_original::orig#5 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#2] -- register_copy - //SEG829 render_screen_original::@3 - b3: - //SEG830 [394] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=_deref_pbuz1_plus_1 - ldy #0 - lda (orig),y - tay - iny - //SEG831 [395] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 -- pbuz1=_inc_pbuz1 - inc orig - bne !+ - inc orig+1 - !: - //SEG832 [396] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 -- vbuxx_gt_vbuc1_then_la1 - txa - cmp #$e - beq !+ - bcs b11 - !: - //SEG833 [397] phi from render_screen_original::@3 render_screen_original::@7 to render_screen_original::@4 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4] - //SEG834 [397] phi (byte) render_screen_original::c#2 = (byte) render_screen_original::c#0 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4#0] -- register_copy - //SEG835 render_screen_original::@4 - b4: - //SEG836 [398] *((byte*) render_screen_original::screen#5) ← (byte) render_screen_original::c#2 -- _deref_pbuz1=vbuyy - tya - ldy #0 - sta (screen),y - //SEG837 [399] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG838 [400] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 -- vbuxx=_inc_vbuxx - inx - //SEG839 [401] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 -- vbuxx_neq_vbuc1_then_la1 - cpx #$24 - bne b3 - //SEG840 [402] phi from render_screen_original::@4 render_screen_original::@5 to render_screen_original::@5 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5] - //SEG841 [402] phi (byte) render_screen_original::x#7 = (byte) render_screen_original::x#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#0] -- register_copy - //SEG842 [402] phi (byte*) render_screen_original::screen#6 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#1] -- register_copy - //SEG843 render_screen_original::@5 - b5: - //SEG844 [403] *((byte*) render_screen_original::screen#6) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 - lda #SPACE - ldy #0 - sta (screen),y - //SEG845 [404] (byte*) render_screen_original::screen#11 ← ++ (byte*) render_screen_original::screen#6 -- pbuz1=_inc_pbuz1 - inc screen - bne !+ - inc screen+1 - !: - //SEG846 [405] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 -- vbuxx=_inc_vbuxx - inx - //SEG847 [406] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 -- vbuxx_neq_vbuc1_then_la1 - cpx #$28 - bne b5 - //SEG848 render_screen_original::@9 - //SEG849 [407] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 -- vbuz1=_inc_vbuz1 - inc y - //SEG850 [408] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 -- vbuz1_neq_vbuc1_then_la1 - lda y - cmp #$19 bne b1 - //SEG851 render_screen_original::@return - //SEG852 [409] return - rts - //SEG853 render_screen_original::@11 - b11: - //SEG854 [410] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 -- vbuxx_lt_vbuc1_then_la1 - cpx #$1b - bcc b7 - //SEG855 [397] phi from render_screen_original::@11 to render_screen_original::@4 [phi:render_screen_original::@11->render_screen_original::@4] - jmp b4 - //SEG856 render_screen_original::@7 - b7: - //SEG857 [411] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 -- vbuyy=vbuyy_bor_vbuc1 - tya - ora #$c0 + //SEG831 [396] phi from render_init::@4 to render_init::@3 [phi:render_init::@4->render_init::@3] + //SEG832 [396] phi (byte*) render_init::li_2#2 = (const byte*) PLAYFIELD_SCREEN_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@4->render_init::@3#0] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_2+2*$28+$10 + sta li_2+1 + //SEG833 [396] phi (byte*) render_init::li_1#2 = (const byte*) PLAYFIELD_SCREEN_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2*(byte/signed byte/word/signed word/dword/signed dword) 40+(byte/signed byte/word/signed word/dword/signed dword) 16 [phi:render_init::@4->render_init::@3#1] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_1+2*$28+$10 + sta li_1+1 + //SEG834 [396] phi (byte) render_init::i#2 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_init::@4->render_init::@3#2] -- vbuxx=vbuc1 + ldx #0 + //SEG835 [396] phi from render_init::@3 to render_init::@3 [phi:render_init::@3->render_init::@3] + //SEG836 [396] phi (byte*) render_init::li_2#2 = (byte*) render_init::li_2#1 [phi:render_init::@3->render_init::@3#0] -- register_copy + //SEG837 [396] phi (byte*) render_init::li_1#2 = (byte*) render_init::li_1#1 [phi:render_init::@3->render_init::@3#1] -- register_copy + //SEG838 [396] phi (byte) render_init::i#2 = (byte) render_init::i#1 [phi:render_init::@3->render_init::@3#2] -- register_copy + //SEG839 render_init::@3 + b3: + //SEG840 [397] (byte~) render_init::$22 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 + txa + asl + //SEG841 [398] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 + (byte~) render_init::$22) ← (byte*) render_init::li_1#2 -- pptc1_derefidx_vbuaa=pbuz1 tay - jmp b4 + lda li_1 + sta screen_lines_1,y + lda li_1+1 + sta screen_lines_1+1,y + //SEG842 [399] (byte~) render_init::$23 ← (byte) render_init::i#2 << (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuaa=vbuxx_rol_1 + txa + asl + //SEG843 [400] *((const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 + (byte~) render_init::$23) ← (byte*) render_init::li_2#2 -- pptc1_derefidx_vbuaa=pbuz1 + tay + lda li_2 + sta screen_lines_2,y + lda li_2+1 + sta screen_lines_2+1,y + //SEG844 [401] (byte*) render_init::li_1#1 ← (byte*) render_init::li_1#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + lda li_1 + clc + adc #$28 + sta li_1 + bcc !+ + inc li_1+1 + !: + //SEG845 [402] (byte*) render_init::li_2#1 ← (byte*) render_init::li_2#2 + (byte/signed byte/word/signed word/dword/signed dword) 40 -- pbuz1=pbuz1_plus_vbuc1 + lda li_2 + clc + adc #$28 + sta li_2 + bcc !+ + inc li_2+1 + !: + //SEG846 [403] (byte) render_init::i#1 ← ++ (byte) render_init::i#2 -- vbuxx=_inc_vbuxx + inx + //SEG847 [404] if((byte) render_init::i#1!=(const byte) PLAYFIELD_LINES#0-(byte/signed byte/word/signed word/dword/signed dword) 1+(byte/signed byte/word/signed word/dword/signed dword) 1) goto render_init::@3 -- vbuxx_neq_vbuc1_then_la1 + cpx #PLAYFIELD_LINES-1+1 + bne b3 + //SEG848 render_init::@return + //SEG849 [405] return + rts } -//SEG858 fill +//SEG850 fill fill: { .const size = $3e8 .label end = COLS+size - .label addr = 4 - //SEG859 [413] phi from fill to fill::@1 [phi:fill->fill::@1] - //SEG860 [413] phi (byte*) fill::addr#2 = (const byte*) COLS#0 [phi:fill->fill::@1#0] -- pbuz1=pbuc1 + .label addr = 7 + //SEG851 [407] phi from fill to fill::@1 [phi:fill->fill::@1] + //SEG852 [407] phi (byte*) fill::addr#2 = (const byte*) COLS#0 [phi:fill->fill::@1#0] -- pbuz1=pbuc1 lda #COLS sta addr+1 - //SEG861 [413] phi from fill::@1 to fill::@1 [phi:fill::@1->fill::@1] - //SEG862 [413] phi (byte*) fill::addr#2 = (byte*) fill::addr#1 [phi:fill::@1->fill::@1#0] -- register_copy - //SEG863 fill::@1 + //SEG853 [407] phi from fill::@1 to fill::@1 [phi:fill::@1->fill::@1] + //SEG854 [407] phi (byte*) fill::addr#2 = (byte*) fill::addr#1 [phi:fill::@1->fill::@1#0] -- register_copy + //SEG855 fill::@1 b1: - //SEG864 [414] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 -- _deref_pbuz1=vbuc1 + //SEG856 [408] *((byte*) fill::addr#2) ← (const byte) DARK_GREY#0 -- _deref_pbuz1=vbuc1 lda #DARK_GREY ldy #0 sta (addr),y - //SEG865 [415] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 -- pbuz1=_inc_pbuz1 + //SEG857 [409] (byte*) fill::addr#1 ← ++ (byte*) fill::addr#2 -- pbuz1=_inc_pbuz1 inc addr bne !+ inc addr+1 !: - //SEG866 [416] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 -- pbuz1_neq_pbuc1_then_la1 + //SEG858 [410] if((byte*) fill::addr#1!=(const byte*) fill::end#0) goto fill::@1 -- pbuz1_neq_pbuc1_then_la1 lda addr+1 cmp #>end bne b1 lda addr cmp #render_screen_original::@1] + //SEG863 [413] phi (byte) render_screen_original::y#8 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original->render_screen_original::@1#0] -- vbuz1=vbuc1 + lda #0 + sta y + //SEG864 [413] phi (byte*) render_screen_original::orig#5 = (const byte*) PLAYFIELD_SCREEN_ORIGINAL#0+(byte/signed byte/word/signed word/dword/signed dword) 32*(byte/signed byte/word/signed word/dword/signed dword) 2 [phi:render_screen_original->render_screen_original::@1#1] -- pbuz1=pbuc1 + lda #PLAYFIELD_SCREEN_ORIGINAL+$20*2 + sta orig+1 + //SEG865 [413] phi (byte*) render_screen_original::screen#8 = (byte*) render_screen_original::screen#11 [phi:render_screen_original->render_screen_original::@1#2] -- register_copy + //SEG866 [413] phi from render_screen_original::@9 to render_screen_original::@1 [phi:render_screen_original::@9->render_screen_original::@1] + //SEG867 [413] phi (byte) render_screen_original::y#8 = (byte) render_screen_original::y#1 [phi:render_screen_original::@9->render_screen_original::@1#0] -- register_copy + //SEG868 [413] phi (byte*) render_screen_original::orig#5 = (byte*) render_screen_original::orig#1 [phi:render_screen_original::@9->render_screen_original::@1#1] -- register_copy + //SEG869 [413] phi (byte*) render_screen_original::screen#8 = (byte*) render_screen_original::screen#12 [phi:render_screen_original::@9->render_screen_original::@1#2] -- register_copy + //SEG870 render_screen_original::@1 + b1: + //SEG871 [414] phi from render_screen_original::@1 to render_screen_original::@2 [phi:render_screen_original::@1->render_screen_original::@2] + //SEG872 [414] phi (byte) render_screen_original::x#4 = (byte/signed byte/word/signed word/dword/signed dword) 0 [phi:render_screen_original::@1->render_screen_original::@2#0] -- vbuxx=vbuc1 + ldx #0 + //SEG873 [414] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#8 [phi:render_screen_original::@1->render_screen_original::@2#1] -- register_copy + //SEG874 [414] phi from render_screen_original::@2 to render_screen_original::@2 [phi:render_screen_original::@2->render_screen_original::@2] + //SEG875 [414] phi (byte) render_screen_original::x#4 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2->render_screen_original::@2#0] -- register_copy + //SEG876 [414] phi (byte*) render_screen_original::screen#5 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@2->render_screen_original::@2#1] -- register_copy + //SEG877 render_screen_original::@2 + b2: + //SEG878 [415] *((byte*) render_screen_original::screen#5) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 + lda #SPACE + ldy #0 + sta (screen),y + //SEG879 [416] (byte*) render_screen_original::screen#2 ← ++ (byte*) render_screen_original::screen#5 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG880 [417] (byte) render_screen_original::x#1 ← ++ (byte) render_screen_original::x#4 -- vbuxx=_inc_vbuxx + inx + //SEG881 [418] if((byte) render_screen_original::x#1!=(byte/signed byte/word/signed word/dword/signed dword) 4) goto render_screen_original::@2 -- vbuxx_neq_vbuc1_then_la1 + cpx #4 + bne b2 + //SEG882 [419] phi from render_screen_original::@2 render_screen_original::@4 to render_screen_original::@3 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3] + //SEG883 [419] phi (byte*) render_screen_original::screen#10 = (byte*) render_screen_original::screen#2 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#0] -- register_copy + //SEG884 [419] phi (byte) render_screen_original::x#5 = (byte) render_screen_original::x#1 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#1] -- register_copy + //SEG885 [419] phi (byte*) render_screen_original::orig#2 = (byte*) render_screen_original::orig#5 [phi:render_screen_original::@2/render_screen_original::@4->render_screen_original::@3#2] -- register_copy + //SEG886 render_screen_original::@3 + b3: + //SEG887 [420] (byte) render_screen_original::c#0 ← *((byte*) render_screen_original::orig#2) + (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuyy=_deref_pbuz1_plus_1 + ldy #0 + lda (orig),y + tay + iny + //SEG888 [421] (byte*) render_screen_original::orig#1 ← ++ (byte*) render_screen_original::orig#2 -- pbuz1=_inc_pbuz1 + inc orig + bne !+ + inc orig+1 + !: + //SEG889 [422] if((byte) render_screen_original::x#5>(byte/signed byte/word/signed word/dword/signed dword) 14) goto render_screen_original::@11 -- vbuxx_gt_vbuc1_then_la1 + txa + cmp #$e + beq !+ + bcs b11 + !: + //SEG890 [423] phi from render_screen_original::@3 render_screen_original::@7 to render_screen_original::@4 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4] + //SEG891 [423] phi (byte) render_screen_original::c#2 = (byte) render_screen_original::c#0 [phi:render_screen_original::@3/render_screen_original::@7->render_screen_original::@4#0] -- register_copy + //SEG892 render_screen_original::@4 + b4: + //SEG893 [424] *((byte*) render_screen_original::screen#10) ← (byte) render_screen_original::c#2 -- _deref_pbuz1=vbuyy + tya + ldy #0 + sta (screen),y + //SEG894 [425] (byte*) render_screen_original::screen#3 ← ++ (byte*) render_screen_original::screen#10 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG895 [426] (byte) render_screen_original::x#2 ← ++ (byte) render_screen_original::x#5 -- vbuxx=_inc_vbuxx + inx + //SEG896 [427] if((byte) render_screen_original::x#2!=(byte/signed byte/word/signed word/dword/signed dword) 36) goto render_screen_original::@3 -- vbuxx_neq_vbuc1_then_la1 + cpx #$24 + bne b3 + //SEG897 [428] phi from render_screen_original::@4 render_screen_original::@5 to render_screen_original::@5 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5] + //SEG898 [428] phi (byte) render_screen_original::x#7 = (byte) render_screen_original::x#2 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#0] -- register_copy + //SEG899 [428] phi (byte*) render_screen_original::screen#7 = (byte*) render_screen_original::screen#3 [phi:render_screen_original::@4/render_screen_original::@5->render_screen_original::@5#1] -- register_copy + //SEG900 render_screen_original::@5 + b5: + //SEG901 [429] *((byte*) render_screen_original::screen#7) ← (const byte) render_screen_original::SPACE#0 -- _deref_pbuz1=vbuc1 + lda #SPACE + ldy #0 + sta (screen),y + //SEG902 [430] (byte*) render_screen_original::screen#12 ← ++ (byte*) render_screen_original::screen#7 -- pbuz1=_inc_pbuz1 + inc screen + bne !+ + inc screen+1 + !: + //SEG903 [431] (byte) render_screen_original::x#3 ← ++ (byte) render_screen_original::x#7 -- vbuxx=_inc_vbuxx + inx + //SEG904 [432] if((byte) render_screen_original::x#3!=(byte/signed byte/word/signed word/dword/signed dword) 40) goto render_screen_original::@5 -- vbuxx_neq_vbuc1_then_la1 + cpx #$28 + bne b5 + //SEG905 render_screen_original::@9 + //SEG906 [433] (byte) render_screen_original::y#1 ← ++ (byte) render_screen_original::y#8 -- vbuz1=_inc_vbuz1 + inc y + //SEG907 [434] if((byte) render_screen_original::y#1!=(byte/signed byte/word/signed word/dword/signed dword) 25) goto render_screen_original::@1 -- vbuz1_neq_vbuc1_then_la1 + lda y + cmp #$19 + bne b1 + //SEG908 render_screen_original::@return + //SEG909 [435] return + rts + //SEG910 render_screen_original::@11 + b11: + //SEG911 [436] if((byte) render_screen_original::x#5<(byte/signed byte/word/signed word/dword/signed dword) 27) goto render_screen_original::@7 -- vbuxx_lt_vbuc1_then_la1 + cpx #$1b + bcc b7 + //SEG912 [423] phi from render_screen_original::@11 to render_screen_original::@4 [phi:render_screen_original::@11->render_screen_original::@4] + jmp b4 + //SEG913 render_screen_original::@7 + b7: + //SEG914 [437] (byte) render_screen_original::c#1 ← (byte) render_screen_original::c#0 | (byte/word/signed word/dword/signed dword) 192 -- vbuyy=vbuyy_bor_vbuc1 + tya + ora #$c0 + tay + jmp b4 +} +//SEG915 sid_rnd_init sid_rnd_init: { - //SEG870 [418] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 -- _deref_pwuc1=vwuc2 + //SEG916 [438] *((const word*) SID_VOICE3_FREQ#0) ← (word/dword/signed dword) 65535 -- _deref_pwuc1=vwuc2 lda #<$ffff sta SID_VOICE3_FREQ lda #>$ffff sta SID_VOICE3_FREQ+1 - //SEG871 [419] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 -- _deref_pbuc1=vbuc2 + //SEG917 [439] *((const byte*) SID_VOICE3_CONTROL#0) ← (const byte) SID_CONTROL_NOISE#0 -- _deref_pbuc1=vbuc2 lda #SID_CONTROL_NOISE sta SID_VOICE3_CONTROL - //SEG872 sid_rnd_init::@return - //SEG873 [420] return + //SEG918 sid_rnd_init::@return + //SEG919 [440] return rts } -//SEG874 irq +//SEG920 irq irq: { .const toSpritePtr2_return = PLAYFIELD_SPRITES>>6 - //SEG875 entry interrupt(HARDWARE_CLOBBER) + //SEG921 entry interrupt(HARDWARE_CLOBBER) sta rega+1 stx regx+1 - //SEG876 [421] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 -- _deref_pbuc1=vbuc2 + //SEG922 [441] *((const byte*) BORDERCOL#0) ← (const byte) DARK_GREY#0 -- _deref_pbuc1=vbuc2 lda #DARK_GREY sta BORDERCOL - //SEG877 [422] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 -- vbuaa=vbuz1 + //SEG923 [442] (byte) irq::ypos#0 ← (byte) irq_sprite_ypos#0 -- vbuaa=vbuz1 lda irq_sprite_ypos - //SEG878 [423] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG924 [443] *((const byte*) SPRITES_YPOS#0) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS - //SEG879 [424] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG925 [444] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS+2 - //SEG880 [425] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG926 [445] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 4) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS+4 - //SEG881 [426] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa + //SEG927 [446] *((const byte*) SPRITES_YPOS#0+(byte/signed byte/word/signed word/dword/signed dword) 6) ← (byte) irq::ypos#0 -- _deref_pbuc1=vbuaa sta SPRITES_YPOS+6 - //SEG882 irq::@1 + //SEG928 irq::@1 b1: - //SEG883 [427] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 -- _deref_pbuc1_neq_vbuz1_then_la1 + //SEG929 [447] if(*((const byte*) RASTER#0)!=(byte) irq_sprite_ypos#0) goto irq::@1 -- _deref_pbuc1_neq_vbuz1_then_la1 lda RASTER cmp irq_sprite_ypos bne b1 - //SEG884 irq::@5 - //SEG885 [428] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuaa=vbuz1 + //SEG930 irq::@5 + //SEG931 [448] (byte) irq::ptr#0 ← (byte) irq_sprite_ptr#0 -- vbuaa=vbuz1 lda irq_sprite_ptr - //SEG886 [429] *((const byte*) PLAYFIELD_SPRITE_PTRS#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa - sta PLAYFIELD_SPRITE_PTRS - //SEG887 [430] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa + //SEG932 [449] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_1 + //SEG933 [450] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0) ← (byte) irq::ptr#0 -- _deref_pbuc1=vbuaa + sta PLAYFIELD_SPRITE_PTRS_2 + //SEG934 [451] (byte) irq::ptr#1 ← ++ (byte) irq::ptr#0 -- vbuxx=_inc_vbuaa tax inx - //SEG888 [431] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+1 - //SEG889 [432] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+2 - //SEG890 [433] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx + //SEG935 [452] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+1 + //SEG936 [453] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 1) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+1 + //SEG937 [454] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+2 + //SEG938 [455] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 2) ← (byte) irq::ptr#1 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+2 + //SEG939 [456] (byte) irq::ptr#2 ← ++ (byte) irq::ptr#1 -- vbuxx=_inc_vbuxx inx - //SEG891 [434] *((const byte*) PLAYFIELD_SPRITE_PTRS#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx - stx PLAYFIELD_SPRITE_PTRS+3 - //SEG892 [435] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 + //SEG940 [457] *((const byte*) PLAYFIELD_SPRITE_PTRS_1#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_1+3 + //SEG941 [458] *((const byte*) PLAYFIELD_SPRITE_PTRS_2#0+(byte/signed byte/word/signed word/dword/signed dword) 3) ← (byte) irq::ptr#2 -- _deref_pbuc1=vbuxx + stx PLAYFIELD_SPRITE_PTRS_2+3 + //SEG942 [459] (byte) irq_cnt#1 ← ++ (byte) irq_cnt#0 -- vbuz1=_inc_vbuz1 inc irq_cnt - //SEG893 [436] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 + //SEG943 [460] if((byte) irq_cnt#1==(byte/signed byte/word/signed word/dword/signed dword) 10) goto irq::@2 -- vbuz1_eq_vbuc1_then_la1 lda irq_cnt cmp #$a beq b2 - //SEG894 irq::@6 - //SEG895 [437] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG944 irq::@6 + //SEG945 [461] (byte) irq_raster_next#2 ← (byte) irq_raster_next#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_raster_next sta irq_raster_next - //SEG896 [438] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 + //SEG946 [462] (byte) irq_sprite_ypos#2 ← (byte) irq_sprite_ypos#0 + (byte/signed byte/word/signed word/dword/signed dword) 21 -- vbuz1=vbuz1_plus_vbuc1 lda #$15 clc adc irq_sprite_ypos sta irq_sprite_ypos - //SEG897 [439] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 + //SEG947 [463] (byte) irq_sprite_ptr#2 ← (byte) irq_sprite_ptr#0 + (byte/signed byte/word/signed word/dword/signed dword) 3 -- vbuz1=vbuz1_plus_vbuc1 lda #3 clc adc irq_sprite_ptr sta irq_sprite_ptr - //SEG898 [440] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] - //SEG899 [440] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy - //SEG900 irq::@3 + //SEG948 [464] phi from irq::@6 irq::@9 to irq::@3 [phi:irq::@6/irq::@9->irq::@3] + //SEG949 [464] phi (byte) irq_raster_next#12 = (byte) irq_raster_next#2 [phi:irq::@6/irq::@9->irq::@3#0] -- register_copy + //SEG950 irq::@3 b3: - //SEG901 [441] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 + //SEG951 [465] (byte) irq::raster_next#0 ← (byte) irq_raster_next#12 -- vbuxx=vbuz1 ldx irq_raster_next - //SEG902 [442] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 + //SEG952 [466] (byte~) irq::$3 ← (byte) irq::raster_next#0 & (byte/signed byte/word/signed word/dword/signed dword) 7 -- vbuaa=vbuxx_band_vbuc1 txa and #7 - //SEG903 [443] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 + //SEG953 [467] if((byte~) irq::$3!=(byte/signed byte/word/signed word/dword/signed dword) 3) goto irq::@4 -- vbuaa_neq_vbuc1_then_la1 cmp #3 bne b4 - //SEG904 irq::@8 - //SEG905 [444] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 + //SEG954 irq::@8 + //SEG955 [468] (byte) irq::raster_next#1 ← (byte) irq::raster_next#0 - (byte/signed byte/word/signed word/dword/signed dword) 1 -- vbuxx=vbuxx_minus_1 dex - //SEG906 [445] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] - //SEG907 [445] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy - //SEG908 irq::@4 + //SEG956 [469] phi from irq::@3 irq::@8 to irq::@4 [phi:irq::@3/irq::@8->irq::@4] + //SEG957 [469] phi (byte) irq::raster_next#2 = (byte) irq::raster_next#0 [phi:irq::@3/irq::@8->irq::@4#0] -- register_copy + //SEG958 irq::@4 b4: - //SEG909 [446] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx + //SEG959 [470] *((const byte*) RASTER#0) ← (byte) irq::raster_next#2 -- _deref_pbuc1=vbuxx stx RASTER - //SEG910 [447] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 + //SEG960 [471] *((const byte*) IRQ_STATUS#0) ← (const byte) IRQ_RASTER#0 -- _deref_pbuc1=vbuc2 lda #IRQ_RASTER sta IRQ_STATUS - //SEG911 [448] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 + //SEG961 [472] *((const byte*) BORDERCOL#0) ← (const byte) BLACK#0 -- _deref_pbuc1=vbuc2 lda #BLACK sta BORDERCOL - //SEG912 irq::@return - //SEG913 [449] return - exit interrupt(HARDWARE_CLOBBER) + //SEG962 irq::@return + //SEG963 [473] return - exit interrupt(HARDWARE_CLOBBER) rega: lda #00 regx: ldx #00 rti - //SEG914 irq::@2 + //SEG964 irq::@2 b2: - //SEG915 [450] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 + //SEG965 [474] (byte) irq_cnt#13 ← (byte/signed byte/word/signed word/dword/signed dword) 0 -- vbuz1=vbuc1 lda #0 sta irq_cnt - //SEG916 [451] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 + //SEG966 [475] (byte) irq_raster_next#1 ← (const byte) IRQ_RASTER_FIRST#0 -- vbuz1=vbuc1 lda #IRQ_RASTER_FIRST sta irq_raster_next - //SEG917 [452] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 + //SEG967 [476] (byte) irq_sprite_ypos#1 ← (byte/signed byte/word/signed word/dword/signed dword) 50 -- vbuz1=vbuc1 lda #$32 sta irq_sprite_ypos - //SEG918 [453] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] - //SEG919 irq::toSpritePtr2 - //SEG920 irq::@9 - //SEG921 [454] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 + //SEG968 [477] phi from irq::@2 to irq::toSpritePtr2 [phi:irq::@2->irq::toSpritePtr2] + //SEG969 irq::toSpritePtr2 + //SEG970 irq::@9 + //SEG971 [478] (byte) irq_sprite_ptr#1 ← (const byte) irq::toSpritePtr2_return#0 -- vbuz1=vbuc1 lda #toSpritePtr2_return sta irq_sprite_ptr jmp b3 @@ -18328,7 +19481,10 @@ irq: { PIECES_CHARS: .byte $58, $59, $99, $59, $58, $58, $99 PIECES_START_X: .byte 4, 4, 4, 4, 4, 3, 4 PIECES_START_Y: .byte 2, 1, 1, 1, 2, 0, 1 - screen_lines: .fill 2*PLAYFIELD_LINES, 0 + .align $80 + screen_lines_1: .fill 2*PLAYFIELD_LINES, 0 + .align $40 + screen_lines_2: .fill 2*PLAYFIELD_LINES, 0 playfield_lines: .fill 2*PLAYFIELD_LINES, 0 playfield: .fill PLAYFIELD_LINES*PLAYFIELD_COLS, 0 PIECES: .word PIECE_T, PIECE_S, PIECE_Z, PIECE_J, PIECE_O, PIECE_I, PIECE_L diff --git a/src/test/ref/examples/tetris/tetris.sym b/src/test/ref/examples/tetris/tetris.sym index 4eee17b1d..eabfa5c3d 100644 --- a/src/test/ref/examples/tetris/tetris.sym +++ b/src/test/ref/examples/tetris/tetris.sym @@ -1,8 +1,8 @@ (label) @14 -(label) @18 -(label) @19 -(label) @30 -(label) @31 +(label) @20 +(label) @21 +(label) @32 +(label) @33 (label) @begin (label) @end (byte*) BGCOL @@ -194,15 +194,19 @@ (const byte) PLAYFIELD_COLS#0 PLAYFIELD_COLS = (byte/signed byte/word/signed word/dword/signed dword) 10 (byte) PLAYFIELD_LINES (const byte) PLAYFIELD_LINES#0 PLAYFIELD_LINES = (byte/signed byte/word/signed word/dword/signed dword) 22 -(byte*) PLAYFIELD_SCREEN -(const byte*) PLAYFIELD_SCREEN#0 PLAYFIELD_SCREEN = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_1 +(const byte*) PLAYFIELD_SCREEN_1#0 PLAYFIELD_SCREEN_1 = ((byte*))(word/signed word/dword/signed dword) 1024 +(byte*) PLAYFIELD_SCREEN_2 +(const byte*) PLAYFIELD_SCREEN_2#0 PLAYFIELD_SCREEN_2 = ((byte*))(word/signed word/dword/signed dword) 11264 (byte*) PLAYFIELD_SCREEN_ORIGINAL -(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0 PLAYFIELD_SCREEN_ORIGINAL = ((byte*))(word/signed word/dword/signed dword) 11264 +(const byte*) PLAYFIELD_SCREEN_ORIGINAL#0 PLAYFIELD_SCREEN_ORIGINAL = ((byte*))(word/signed word/dword/signed dword) 6144 (byte) PLAYFIELD_SCREEN_ORIGINAL_WIDTH (byte*) PLAYFIELD_SPRITES (const byte*) PLAYFIELD_SPRITES#0 PLAYFIELD_SPRITES = ((byte*))(word/signed word/dword/signed dword) 8192 -(byte*) PLAYFIELD_SPRITE_PTRS -(const byte*) PLAYFIELD_SPRITE_PTRS#0 PLAYFIELD_SPRITE_PTRS = (const byte*) PLAYFIELD_SCREEN#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_1 +(const byte*) PLAYFIELD_SPRITE_PTRS_1#0 PLAYFIELD_SPRITE_PTRS_1 = (const byte*) PLAYFIELD_SCREEN_1#0+(const word) SPRITE_PTRS#0 +(byte*) PLAYFIELD_SPRITE_PTRS_2 +(const byte*) PLAYFIELD_SPRITE_PTRS_2#0 PLAYFIELD_SPRITE_PTRS_2 = (const byte*) PLAYFIELD_SCREEN_2#0+(const word) SPRITE_PTRS#0 (byte*) PROCPORT (const byte*) PROCPORT#0 PROCPORT = ((byte*))(byte/signed byte/word/signed word/dword/signed dword) 1 (byte) PROCPORT_BASIC_KERNEL_IO @@ -274,74 +278,74 @@ (const byte) WHITE#0 WHITE = (byte/signed byte/word/signed word/dword/signed dword) 1 (byte) YELLOW (byte) current_movedown_counter -(byte) current_movedown_counter#1 current_movedown_counter zp ZP_BYTE:2 0.5333333333333333 -(byte) current_movedown_counter#10 current_movedown_counter zp ZP_BYTE:2 0.52 -(byte) current_movedown_counter#12 current_movedown_counter zp ZP_BYTE:2 1.3 +(byte) current_movedown_counter#1 current_movedown_counter zp ZP_BYTE:4 0.5333333333333333 +(byte) current_movedown_counter#10 current_movedown_counter zp ZP_BYTE:4 0.4482758620689655 +(byte) current_movedown_counter#12 current_movedown_counter zp ZP_BYTE:4 1.0833333333333333 (byte) current_movedown_fast (const byte) current_movedown_fast#0 current_movedown_fast = (byte/signed byte/word/signed word/dword/signed dword) 5 (byte) current_movedown_slow (const byte) current_movedown_slow#0 current_movedown_slow = (byte/signed byte/word/signed word/dword/signed dword) 50 (byte) current_orientation -(byte) current_orientation#10 current_orientation zp ZP_BYTE:14 0.5 -(byte) current_orientation#14 current_orientation zp ZP_BYTE:14 0.32653061224489793 -(byte) current_orientation#19 current_orientation zp ZP_BYTE:14 1.1333333333333333 -(byte) current_orientation#29 current_orientation zp ZP_BYTE:14 4.0 -(byte) current_orientation#4 current_orientation zp ZP_BYTE:14 3.0 +(byte) current_orientation#10 current_orientation zp ZP_BYTE:17 0.4722222222222223 +(byte) current_orientation#14 current_orientation zp ZP_BYTE:17 0.32653061224489793 +(byte) current_orientation#19 current_orientation zp ZP_BYTE:17 0.8947368421052632 +(byte) current_orientation#29 current_orientation zp ZP_BYTE:17 4.0 +(byte) current_orientation#4 current_orientation zp ZP_BYTE:17 3.0 (byte*) current_piece -(byte*) current_piece#10 current_piece zp ZP_WORD:12 0.3484848484848484 -(byte*) current_piece#12 current_piece#12 zp ZP_WORD:4 10.0 -(byte*) current_piece#16 current_piece zp ZP_WORD:12 0.5588235294117647 -(byte*) current_piece#20 current_piece zp ZP_WORD:12 6.0 -(byte*~) current_piece#72 current_piece zp ZP_WORD:12 4.0 -(byte*~) current_piece#73 current_piece#73 zp ZP_WORD:4 4.0 -(byte*~) current_piece#74 current_piece#74 zp ZP_WORD:4 4.0 -(byte*~) current_piece#75 current_piece#75 zp ZP_WORD:4 4.0 -(byte*~) current_piece#76 current_piece#76 zp ZP_WORD:4 4.0 -(byte*~) current_piece#77 current_piece zp ZP_WORD:12 4.0 +(byte*) current_piece#10 current_piece zp ZP_WORD:15 0.3285714285714286 +(byte*) current_piece#12 current_piece#12 zp ZP_WORD:7 10.0 +(byte*) current_piece#16 current_piece zp ZP_WORD:15 0.5277777777777779 +(byte*) current_piece#20 current_piece zp ZP_WORD:15 6.0 +(byte*~) current_piece#71 current_piece zp ZP_WORD:15 4.0 +(byte*~) current_piece#73 current_piece#73 zp ZP_WORD:7 4.0 +(byte*~) current_piece#74 current_piece#74 zp ZP_WORD:7 4.0 +(byte*~) current_piece#75 current_piece#75 zp ZP_WORD:7 4.0 +(byte*~) current_piece#76 current_piece#76 zp ZP_WORD:7 4.0 +(byte*~) current_piece#77 current_piece zp ZP_WORD:15 4.0 (byte) current_piece_char -(byte) current_piece_char#1 current_piece_char zp ZP_BYTE:18 1.04 -(byte) current_piece_char#12 current_piece_char zp ZP_BYTE:18 0.6153846153846154 -(byte) current_piece_char#15 current_piece_char zp ZP_BYTE:18 19.96078431372549 -(byte) current_piece_char#20 current_piece_char zp ZP_BYTE:18 6.0 -(byte) current_piece_char#62 current_piece_char#62 zp ZP_BYTE:6 48.285714285714285 -(byte~) current_piece_char#87 current_piece_char#87 zp ZP_BYTE:6 4.0 -(byte~) current_piece_char#88 current_piece_char#88 zp ZP_BYTE:6 22.0 +(byte) current_piece_char#1 current_piece_char zp ZP_BYTE:21 0.896551724137931 +(byte) current_piece_char#12 current_piece_char zp ZP_BYTE:21 0.6153846153846154 +(byte) current_piece_char#15 current_piece_char zp ZP_BYTE:21 19.20754716981132 +(byte) current_piece_char#20 current_piece_char zp ZP_BYTE:21 6.0 +(byte) current_piece_char#62 current_piece_char#62 zp ZP_BYTE:9 46.09090909090909 +(byte~) current_piece_char#87 current_piece_char#87 zp ZP_BYTE:9 4.0 +(byte~) current_piece_char#88 current_piece_char#88 zp ZP_BYTE:9 22.0 (byte*) current_piece_gfx -(byte*) current_piece_gfx#1 current_piece_gfx zp ZP_WORD:15 0.2962962962962963 -(byte*~) current_piece_gfx#100 current_piece_gfx#100 zp ZP_WORD:4 11.0 -(byte*) current_piece_gfx#14 current_piece_gfx zp ZP_WORD:15 1.8666666666666665 -(byte*) current_piece_gfx#16 current_piece_gfx zp ZP_WORD:15 0.5 -(byte*) current_piece_gfx#20 current_piece_gfx zp ZP_WORD:15 19.96078431372549 -(byte*) current_piece_gfx#26 current_piece_gfx zp ZP_WORD:15 6.0 -(byte*) current_piece_gfx#3 current_piece_gfx zp ZP_WORD:15 4.0 -(byte*) current_piece_gfx#52 current_piece_gfx#52 zp ZP_WORD:4 48.285714285714285 -(byte*~) current_piece_gfx#99 current_piece_gfx#99 zp ZP_WORD:4 2.0 +(byte*) current_piece_gfx#1 current_piece_gfx zp ZP_WORD:18 0.2962962962962963 +(byte*~) current_piece_gfx#100 current_piece_gfx#100 zp ZP_WORD:7 11.0 +(byte*) current_piece_gfx#14 current_piece_gfx zp ZP_WORD:18 1.4736842105263155 +(byte*) current_piece_gfx#16 current_piece_gfx zp ZP_WORD:18 0.5 +(byte*) current_piece_gfx#20 current_piece_gfx zp ZP_WORD:18 19.20754716981132 +(byte*) current_piece_gfx#26 current_piece_gfx zp ZP_WORD:18 6.0 +(byte*) current_piece_gfx#3 current_piece_gfx zp ZP_WORD:18 4.0 +(byte*) current_piece_gfx#52 current_piece_gfx#52 zp ZP_WORD:7 46.09090909090909 +(byte*~) current_piece_gfx#99 current_piece_gfx#99 zp ZP_WORD:7 2.0 (byte) current_xpos -(byte) current_xpos#1 current_xpos zp ZP_BYTE:17 0.72 -(byte) current_xpos#10 current_xpos zp ZP_BYTE:17 2.3529411764705883 -(byte~) current_xpos#109 current_xpos#109 zp ZP_BYTE:3 1.3333333333333333 -(byte~) current_xpos#110 current_xpos#110 zp ZP_BYTE:3 7.333333333333333 -(byte) current_xpos#19 current_xpos zp ZP_BYTE:17 0.871794871794872 -(byte) current_xpos#2 current_xpos zp ZP_BYTE:17 4.0 -(byte) current_xpos#23 current_xpos zp ZP_BYTE:17 0.5333333333333333 -(byte) current_xpos#33 current_xpos zp ZP_BYTE:17 6.0 -(byte) current_xpos#4 current_xpos zp ZP_BYTE:17 4.0 -(byte) current_xpos#47 current_xpos#47 zp ZP_BYTE:3 5.428571428571429 +(byte) current_xpos#1 current_xpos zp ZP_BYTE:20 0.72 +(byte) current_xpos#10 current_xpos zp ZP_BYTE:20 2.2641509433962264 +(byte~) current_xpos#109 current_xpos#109 zp ZP_BYTE:6 1.3333333333333333 +(byte~) current_xpos#110 current_xpos#110 zp ZP_BYTE:6 7.333333333333333 +(byte) current_xpos#19 current_xpos zp ZP_BYTE:20 0.7906976744186045 +(byte) current_xpos#2 current_xpos zp ZP_BYTE:20 4.0 +(byte) current_xpos#23 current_xpos zp ZP_BYTE:20 0.5333333333333333 +(byte) current_xpos#33 current_xpos zp ZP_BYTE:20 6.0 +(byte) current_xpos#4 current_xpos zp ZP_BYTE:20 4.0 +(byte) current_xpos#47 current_xpos#47 zp ZP_BYTE:6 5.181818181818182 (byte) current_ypos -(byte) current_ypos#0 current_ypos zp ZP_BYTE:11 4.0 -(byte) current_ypos#13 current_ypos zp ZP_BYTE:11 0.48484848484848475 -(byte) current_ypos#18 current_ypos zp ZP_BYTE:11 0.5714285714285714 -(byte) current_ypos#21 current_ypos zp ZP_BYTE:11 0.6176470588235294 -(byte) current_ypos#29 current_ypos zp ZP_BYTE:11 6.0 +(byte) current_ypos#0 current_ypos zp ZP_BYTE:14 4.0 +(byte) current_ypos#13 current_ypos zp ZP_BYTE:14 0.4571428571428572 +(byte) current_ypos#18 current_ypos zp ZP_BYTE:14 0.5714285714285714 +(byte) current_ypos#21 current_ypos zp ZP_BYTE:14 0.5833333333333335 +(byte) current_ypos#29 current_ypos zp ZP_BYTE:14 6.0 (byte~) current_ypos#83 reg byte x 1.0 -(byte~) current_ypos#84 reg byte x 5.5 +(byte~) current_ypos#84 reg byte x 4.4 (byte) current_ypos#9 reg byte x 15.0 (void()) fill((byte*) fill::start , (word) fill::size , (byte) fill::val) (label) fill::@1 (label) fill::@return (byte*) fill::addr -(byte*) fill::addr#1 addr zp ZP_WORD:4 16.5 -(byte*) fill::addr#2 addr zp ZP_WORD:4 16.5 +(byte*) fill::addr#1 addr zp ZP_WORD:7 16.5 +(byte*) fill::addr#2 addr zp ZP_WORD:7 16.5 (byte*) fill::end (const byte*) fill::end#0 end = (const byte*) COLS#0+(const word) fill::size#0 (word) fill::size @@ -360,9 +364,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) irq::@9 (label) irq::@return (byte) irq::ptr -(byte) irq::ptr#0 reg byte a 3.0 -(byte) irq::ptr#1 reg byte x 2.6666666666666665 -(byte) irq::ptr#2 reg byte x 4.0 +(byte) irq::ptr#0 reg byte a 2.6666666666666665 +(byte) irq::ptr#1 reg byte x 2.4 +(byte) irq::ptr#2 reg byte x 3.0 (byte) irq::raster_next (byte) irq::raster_next#0 reg byte x 2.6666666666666665 (byte) irq::raster_next#1 reg byte x 4.0 @@ -377,22 +381,22 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) irq::ypos (byte) irq::ypos#0 reg byte a 2.5 (byte) irq_cnt -(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:23 0.2857142857142857 -(byte) irq_cnt#1 irq_cnt zp ZP_BYTE:23 4.0 -(byte) irq_cnt#13 irq_cnt zp ZP_BYTE:23 20.0 +(byte) irq_cnt#0 irq_cnt zp ZP_BYTE:26 0.2222222222222222 +(byte) irq_cnt#1 irq_cnt zp ZP_BYTE:26 4.0 +(byte) irq_cnt#13 irq_cnt zp ZP_BYTE:26 20.0 (byte) irq_raster_next -(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:20 0.25 -(byte) irq_raster_next#1 irq_raster_next zp ZP_BYTE:20 1.0 -(byte) irq_raster_next#12 irq_raster_next zp ZP_BYTE:20 6.0 -(byte) irq_raster_next#2 irq_raster_next zp ZP_BYTE:20 1.3333333333333333 +(byte) irq_raster_next#0 irq_raster_next zp ZP_BYTE:23 0.2 +(byte) irq_raster_next#1 irq_raster_next zp ZP_BYTE:23 1.0 +(byte) irq_raster_next#12 irq_raster_next zp ZP_BYTE:23 6.0 +(byte) irq_raster_next#2 irq_raster_next zp ZP_BYTE:23 1.3333333333333333 (byte) irq_sprite_ptr -(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:22 0.3333333333333333 -(byte) irq_sprite_ptr#1 irq_sprite_ptr zp ZP_BYTE:22 20.0 -(byte) irq_sprite_ptr#2 irq_sprite_ptr zp ZP_BYTE:22 20.0 +(byte) irq_sprite_ptr#0 irq_sprite_ptr zp ZP_BYTE:25 0.2727272727272727 +(byte) irq_sprite_ptr#1 irq_sprite_ptr zp ZP_BYTE:25 20.0 +(byte) irq_sprite_ptr#2 irq_sprite_ptr zp ZP_BYTE:25 20.0 (byte) irq_sprite_ypos -(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:21 1.0 -(byte) irq_sprite_ypos#1 irq_sprite_ypos zp ZP_BYTE:21 20.0 -(byte) irq_sprite_ypos#2 irq_sprite_ypos zp ZP_BYTE:21 20.0 +(byte) irq_sprite_ypos#0 irq_sprite_ypos zp ZP_BYTE:24 0.8095238095238095 +(byte) irq_sprite_ypos#1 irq_sprite_ypos zp ZP_BYTE:24 20.0 +(byte) irq_sprite_ypos#2 irq_sprite_ypos zp ZP_BYTE:24 20.0 (byte[]) keyboard_char_keycodes (byte()) keyboard_event_get() (label) keyboard_event_get::@3 @@ -406,7 +410,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte~) keyboard_event_pressed::$1 reg byte a 4.0 (label) keyboard_event_pressed::@return (byte) keyboard_event_pressed::keycode -(byte) keyboard_event_pressed::keycode#5 keycode zp ZP_BYTE:3 1.3333333333333333 +(byte) keyboard_event_pressed::keycode#5 keycode zp ZP_BYTE:5 1.3333333333333333 (byte) keyboard_event_pressed::return (byte) keyboard_event_pressed::return#0 reg byte a 4.0 (byte) keyboard_event_pressed::return#1 reg byte a 4.0 @@ -460,22 +464,22 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) keyboard_event_scan::keycode#14 keycode zp ZP_BYTE:6 101.0 (byte) keyboard_event_scan::keycode#15 keycode zp ZP_BYTE:6 525.75 (byte) keyboard_event_scan::row -(byte) keyboard_event_scan::row#1 row zp ZP_BYTE:3 151.5 -(byte) keyboard_event_scan::row#2 row zp ZP_BYTE:3 60.24 +(byte) keyboard_event_scan::row#1 row zp ZP_BYTE:5 151.5 +(byte) keyboard_event_scan::row#2 row zp ZP_BYTE:5 60.24 (byte) keyboard_event_scan::row_scan -(byte) keyboard_event_scan::row_scan#0 row_scan zp ZP_BYTE:7 128.05555555555557 +(byte) keyboard_event_scan::row_scan#0 row_scan zp ZP_BYTE:9 128.05555555555557 (byte[8]) keyboard_events (const byte[8]) keyboard_events#0 keyboard_events = { fill( 8, 0) } (byte) keyboard_events_size -(byte) keyboard_events_size#1 keyboard_events_size zp ZP_BYTE:19 2002.0 -(byte) keyboard_events_size#10 keyboard_events_size zp ZP_BYTE:19 810.9000000000001 -(byte) keyboard_events_size#13 keyboard_events_size zp ZP_BYTE:19 9.967741935483872 -(byte) keyboard_events_size#16 keyboard_events_size zp ZP_BYTE:19 0.5172413793103449 -(byte) keyboard_events_size#19 keyboard_events_size zp ZP_BYTE:19 2.6 -(byte) keyboard_events_size#2 keyboard_events_size zp ZP_BYTE:19 2002.0 -(byte) keyboard_events_size#29 keyboard_events_size zp ZP_BYTE:19 43.57142857142858 -(byte) keyboard_events_size#30 keyboard_events_size zp ZP_BYTE:19 1021.2 -(byte) keyboard_events_size#4 keyboard_events_size zp ZP_BYTE:19 3.0 +(byte) keyboard_events_size#1 keyboard_events_size zp ZP_BYTE:22 2002.0 +(byte) keyboard_events_size#10 keyboard_events_size zp ZP_BYTE:22 810.9000000000001 +(byte) keyboard_events_size#13 keyboard_events_size zp ZP_BYTE:22 9.967741935483872 +(byte) keyboard_events_size#16 keyboard_events_size zp ZP_BYTE:22 0.45454545454545453 +(byte) keyboard_events_size#19 keyboard_events_size zp ZP_BYTE:22 1.8571428571428572 +(byte) keyboard_events_size#2 keyboard_events_size zp ZP_BYTE:22 2002.0 +(byte) keyboard_events_size#29 keyboard_events_size zp ZP_BYTE:22 43.57142857142858 +(byte) keyboard_events_size#30 keyboard_events_size zp ZP_BYTE:22 1021.2 +(byte) keyboard_events_size#4 keyboard_events_size zp ZP_BYTE:22 3.0 (byte[8]) keyboard_matrix_col_bitmask (const byte[8]) keyboard_matrix_col_bitmask#0 keyboard_matrix_col_bitmask = { (byte/signed byte/word/signed word/dword/signed dword) 1, (byte/signed byte/word/signed word/dword/signed dword) 2, (byte/signed byte/word/signed word/dword/signed dword) 4, (byte/signed byte/word/signed word/dword/signed dword) 8, (byte/signed byte/word/signed word/dword/signed dword) 16, (byte/signed byte/word/signed word/dword/signed dword) 32, (byte/signed byte/word/signed word/dword/signed dword) 64, (byte/word/signed word/dword/signed dword) 128 } (byte()) keyboard_matrix_read((byte) keyboard_matrix_read::rowid) @@ -498,33 +502,35 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte[8]) keyboard_scan_values (const byte[8]) keyboard_scan_values#0 keyboard_scan_values = { fill( 8, 0) } (void()) main() -(byte~) main::$12 reg byte a 22.0 (byte~) main::$13 reg byte a 22.0 (byte~) main::$14 reg byte a 22.0 +(byte~) main::$15 reg byte a 22.0 +(byte~) main::$9 reg byte a 22.0 (label) main::@1 -(label) main::@10 +(label) main::@13 +(label) main::@15 +(label) main::@16 +(label) main::@17 +(label) main::@18 (label) main::@19 +(label) main::@20 (label) main::@21 -(label) main::@22 (label) main::@23 (label) main::@24 (label) main::@25 (label) main::@26 (label) main::@27 +(label) main::@28 (label) main::@29 (label) main::@30 -(label) main::@31 -(label) main::@32 -(label) main::@33 -(label) main::@34 (label) main::@4 +(label) main::@6 (label) main::@7 -(label) main::@9 (byte) main::key_event -(byte) main::key_event#0 key_event zp ZP_BYTE:24 4.0 +(byte) main::key_event#0 key_event zp ZP_BYTE:13 4.0 (byte) main::render -(byte) main::render#1 render zp ZP_BYTE:25 4.4 -(byte) main::render#2 render zp ZP_BYTE:25 4.4 +(byte) main::render#1 render zp ZP_BYTE:27 4.4 +(byte) main::render#2 render zp ZP_BYTE:27 4.4 (byte) main::render#3 reg byte a 22.0 (byte()) play_collision((byte) play_collision::xpos , (byte) play_collision::ypos , (byte) play_collision::orientation) (byte~) play_collision::$7 reg byte a 2002.0 @@ -543,18 +549,18 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_collision::c#1 reg byte x 1001.0 (byte) play_collision::c#2 reg byte x 222.44444444444446 (byte) play_collision::col -(byte) play_collision::col#1 col zp ZP_BYTE:10 500.5 -(byte) play_collision::col#2 col zp ZP_BYTE:10 638.25 -(byte~) play_collision::col#9 col zp ZP_BYTE:10 202.0 +(byte) play_collision::col#1 col zp ZP_BYTE:12 500.5 +(byte) play_collision::col#2 col zp ZP_BYTE:12 638.25 +(byte~) play_collision::col#9 col zp ZP_BYTE:12 202.0 (byte) play_collision::i -(byte) play_collision::i#1 i zp ZP_BYTE:28 161.76923076923077 -(byte~) play_collision::i#11 i#11 zp ZP_BYTE:9 202.0 -(byte~) play_collision::i#13 i#13 zp ZP_BYTE:9 2002.0 -(byte) play_collision::i#2 i#2 zp ZP_BYTE:9 1552.0 -(byte) play_collision::i#3 i#3 zp ZP_BYTE:9 67.33333333333333 +(byte) play_collision::i#1 i zp ZP_BYTE:30 161.76923076923077 +(byte~) play_collision::i#11 i#11 zp ZP_BYTE:11 202.0 +(byte~) play_collision::i#13 i#13 zp ZP_BYTE:11 2002.0 +(byte) play_collision::i#2 i#2 zp ZP_BYTE:11 1552.0 +(byte) play_collision::i#3 i#3 zp ZP_BYTE:11 67.33333333333333 (byte) play_collision::l -(byte) play_collision::l#1 l zp ZP_BYTE:8 101.0 -(byte) play_collision::l#6 l zp ZP_BYTE:8 12.625 +(byte) play_collision::l#1 l zp ZP_BYTE:10 101.0 +(byte) play_collision::l#6 l zp ZP_BYTE:10 12.625 (byte) play_collision::orientation (byte) play_collision::orientation#0 reg byte x 2.0 (byte) play_collision::orientation#1 reg byte x 2.0 @@ -562,9 +568,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_collision::orientation#3 reg byte x 2.0 (byte) play_collision::orientation#4 reg byte x 10.0 (byte*) play_collision::piece_gfx -(byte*) play_collision::piece_gfx#0 piece_gfx zp ZP_WORD:4 47.76190476190476 +(byte*) play_collision::piece_gfx#0 piece_gfx zp ZP_WORD:7 47.76190476190476 (byte*) play_collision::playfield_line -(byte*) play_collision::playfield_line#0 playfield_line zp ZP_WORD:26 78.71428571428571 +(byte*) play_collision::playfield_line#0 playfield_line zp ZP_WORD:28 78.71428571428571 (byte) play_collision::return (byte) play_collision::return#0 reg byte a 4.0 (byte) play_collision::return#1 reg byte a 4.0 @@ -584,9 +590,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_collision::ypos#3 reg byte y 1.3333333333333333 (byte) play_collision::ypos#4 reg byte y 5.0 (byte) play_collision::ypos2 -(byte) play_collision::ypos2#0 ypos2 zp ZP_BYTE:7 4.0 -(byte) play_collision::ypos2#1 ypos2 zp ZP_BYTE:7 50.5 -(byte) play_collision::ypos2#2 ypos2 zp ZP_BYTE:7 87.06666666666668 +(byte) play_collision::ypos2#0 ypos2 zp ZP_BYTE:9 4.0 +(byte) play_collision::ypos2#1 ypos2 zp ZP_BYTE:9 50.5 +(byte) play_collision::ypos2#2 ypos2 zp ZP_BYTE:9 87.06666666666668 (void()) play_init() (byte~) play_init::$1 reg byte a 22.0 (label) play_init::@1 @@ -599,8 +605,8 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_init::j#1 reg byte x 16.5 (byte) play_init::j#2 reg byte x 7.333333333333333 (byte*) play_init::pli -(byte*) play_init::pli#1 pli zp ZP_WORD:4 5.5 -(byte*) play_init::pli#2 pli zp ZP_WORD:4 8.25 +(byte*) play_init::pli#1 pli zp ZP_WORD:7 5.5 +(byte*) play_init::pli#2 pli zp ZP_WORD:7 8.25 (void()) play_lock_current() (label) play_lock_current::@1 (label) play_lock_current::@2 @@ -618,20 +624,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_lock_current::col#1 col zp ZP_BYTE:6 500.5 (byte) play_lock_current::col#2 col zp ZP_BYTE:6 776.0 (byte) play_lock_current::i -(byte) play_lock_current::i#1 i zp ZP_BYTE:7 233.66666666666669 -(byte) play_lock_current::i#2 i#2 zp ZP_BYTE:3 1552.0 -(byte) play_lock_current::i#3 i#3 zp ZP_BYTE:3 67.33333333333333 -(byte~) play_lock_current::i#7 i#7 zp ZP_BYTE:3 202.0 -(byte~) play_lock_current::i#9 i#9 zp ZP_BYTE:3 2002.0 +(byte) play_lock_current::i#1 i zp ZP_BYTE:9 233.66666666666669 +(byte) play_lock_current::i#2 i#2 zp ZP_BYTE:5 1552.0 +(byte) play_lock_current::i#3 i#3 zp ZP_BYTE:5 67.33333333333333 +(byte~) play_lock_current::i#7 i#7 zp ZP_BYTE:5 202.0 +(byte~) play_lock_current::i#9 i#9 zp ZP_BYTE:5 2002.0 (byte) play_lock_current::l -(byte) play_lock_current::l#1 l zp ZP_BYTE:2 101.0 -(byte) play_lock_current::l#6 l zp ZP_BYTE:2 16.833333333333332 +(byte) play_lock_current::l#1 l zp ZP_BYTE:4 101.0 +(byte) play_lock_current::l#6 l zp ZP_BYTE:4 16.833333333333332 (byte*) play_lock_current::playfield_line -(byte*) play_lock_current::playfield_line#0 playfield_line zp ZP_WORD:4 110.19999999999999 +(byte*) play_lock_current::playfield_line#0 playfield_line zp ZP_WORD:7 110.19999999999999 (byte) play_lock_current::ypos2 -(byte) play_lock_current::ypos2#0 ypos2 zp ZP_BYTE:11 4.0 -(byte) play_lock_current::ypos2#1 ypos2 zp ZP_BYTE:11 50.5 -(byte) play_lock_current::ypos2#2 ypos2 zp ZP_BYTE:11 27.727272727272727 +(byte) play_lock_current::ypos2#0 ypos2 zp ZP_BYTE:14 4.0 +(byte) play_lock_current::ypos2#1 ypos2 zp ZP_BYTE:14 50.5 +(byte) play_lock_current::ypos2#2 ypos2 zp ZP_BYTE:14 27.727272727272727 (byte()) play_move_down((byte) play_move_down::key_event) (byte~) play_move_down::$12 reg byte a 4.0 (byte~) play_move_down::$2 reg byte a 4.0 @@ -692,9 +698,9 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_move_rotate::key_event (byte) play_move_rotate::key_event#0 reg byte a 7.5 (byte) play_move_rotate::orientation -(byte) play_move_rotate::orientation#1 orientation zp ZP_BYTE:3 4.0 -(byte) play_move_rotate::orientation#2 orientation zp ZP_BYTE:3 4.0 -(byte) play_move_rotate::orientation#3 orientation zp ZP_BYTE:3 0.8888888888888888 +(byte) play_move_rotate::orientation#1 orientation zp ZP_BYTE:5 4.0 +(byte) play_move_rotate::orientation#2 orientation zp ZP_BYTE:5 4.0 +(byte) play_move_rotate::orientation#3 orientation zp ZP_BYTE:5 0.8888888888888888 (byte) play_move_rotate::return (byte) play_move_rotate::return#1 reg byte a 3.6666666666666665 (byte) play_move_rotate::return#4 reg byte a 22.0 @@ -710,7 +716,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (label) play_remove_lines::@9 (label) play_remove_lines::@return (byte) play_remove_lines::c -(byte) play_remove_lines::c#0 c zp ZP_BYTE:7 600.5999999999999 +(byte) play_remove_lines::c#0 c zp ZP_BYTE:9 600.5999999999999 (byte) play_remove_lines::full (byte) play_remove_lines::full#2 full zp ZP_BYTE:6 420.59999999999997 (byte) play_remove_lines::full#4 full zp ZP_BYTE:6 400.4 @@ -727,14 +733,14 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) play_remove_lines::w#4 reg byte x 443.42857142857144 (byte) play_remove_lines::w#6 reg byte x 168.33333333333331 (byte) play_remove_lines::x -(byte) play_remove_lines::x#1 x zp ZP_BYTE:3 1501.5 -(byte) play_remove_lines::x#2 x zp ZP_BYTE:3 250.25 +(byte) play_remove_lines::x#1 x zp ZP_BYTE:5 1501.5 +(byte) play_remove_lines::x#2 x zp ZP_BYTE:5 250.25 (byte) play_remove_lines::y -(byte) play_remove_lines::y#1 y zp ZP_BYTE:2 151.5 -(byte) play_remove_lines::y#8 y zp ZP_BYTE:2 14.428571428571429 +(byte) play_remove_lines::y#1 y zp ZP_BYTE:4 151.5 +(byte) play_remove_lines::y#8 y zp ZP_BYTE:4 14.428571428571429 (void()) play_spawn_current() (byte~) play_spawn_current::$1 reg byte a 202.0 -(byte~) play_spawn_current::$3 $3 zp ZP_BYTE:2 0.13333333333333333 +(byte~) play_spawn_current::$3 $3 zp ZP_BYTE:4 0.13333333333333333 (label) play_spawn_current::@1 (label) play_spawn_current::@2 (label) play_spawn_current::@3 @@ -750,6 +756,7 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx (const byte[PLAYFIELD_LINES#0+1]) playfield_lines_idx#0 playfield_lines_idx = { fill( PLAYFIELD_LINES#0+1, 0) } (void()) render_current() +(byte~) render_current::$5 reg byte a 202.0 (label) render_current::@1 (label) render_current::@10 (label) render_current::@13 @@ -766,31 +773,33 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_current::current_cell (byte) render_current::current_cell#0 reg byte a 1001.0 (byte) render_current::i -(byte) render_current::i#1 i zp ZP_BYTE:9 202.0 -(byte) render_current::i#10 i zp ZP_BYTE:9 429.0 -(byte) render_current::i#3 i zp ZP_BYTE:9 60.599999999999994 -(byte) render_current::i#4 i zp ZP_BYTE:9 1552.0 -(byte) render_current::i#8 i zp ZP_BYTE:9 300.75 +(byte) render_current::i#1 i zp ZP_BYTE:12 202.0 +(byte) render_current::i#10 i zp ZP_BYTE:12 429.0 +(byte) render_current::i#3 i zp ZP_BYTE:12 50.5 +(byte) render_current::i#4 i zp ZP_BYTE:12 1552.0 +(byte) render_current::i#8 i zp ZP_BYTE:12 300.75 (byte) render_current::l -(byte) render_current::l#1 l zp ZP_BYTE:8 151.5 -(byte) render_current::l#4 l zp ZP_BYTE:8 11.882352941176471 +(byte) render_current::l#1 l zp ZP_BYTE:11 151.5 +(byte) render_current::l#4 l zp ZP_BYTE:11 11.222222222222221 (byte*) render_current::screen_line -(byte*) render_current::screen_line#0 screen_line zp ZP_WORD:26 100.18181818181819 +(byte*) render_current::screen_line#0 screen_line zp ZP_WORD:28 100.18181818181819 (byte) render_current::xpos -(byte) render_current::xpos#0 xpos zp ZP_BYTE:10 202.0 -(byte) render_current::xpos#1 xpos zp ZP_BYTE:10 667.3333333333334 -(byte) render_current::xpos#2 xpos zp ZP_BYTE:10 684.1666666666667 +(byte) render_current::xpos#0 xpos zp ZP_BYTE:13 202.0 +(byte) render_current::xpos#1 xpos zp ZP_BYTE:13 667.3333333333334 +(byte) render_current::xpos#2 xpos zp ZP_BYTE:13 684.1666666666667 (byte) render_current::ypos2 -(byte) render_current::ypos2#0 ypos2 zp ZP_BYTE:7 4.0 -(byte) render_current::ypos2#1 ypos2 zp ZP_BYTE:7 67.33333333333333 -(byte) render_current::ypos2#2 ypos2 zp ZP_BYTE:7 31.6875 +(byte) render_current::ypos2#0 ypos2 zp ZP_BYTE:10 4.0 +(byte) render_current::ypos2#1 ypos2 zp ZP_BYTE:10 67.33333333333333 +(byte) render_current::ypos2#2 ypos2 zp ZP_BYTE:10 29.823529411764707 (void()) render_init() -(byte~) render_init::$11 reg byte a 22.0 -(byte*~) render_init::$18 $18 zp ZP_WORD:12 202.0 +(byte*~) render_init::$12 $12 zp ZP_WORD:15 202.0 +(byte~) render_init::$22 reg byte a 22.0 +(byte~) render_init::$23 reg byte a 22.0 (label) render_init::@1 (label) render_init::@2 (label) render_init::@3 -(label) render_init::@5 +(label) render_init::@4 +(label) render_init::@7 (label) render_init::@8 (label) render_init::@9 (label) render_init::@return @@ -799,30 +808,19 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_init::c#2 reg byte x 101.0 (byte) render_init::i (byte) render_init::i#1 reg byte x 16.5 -(byte) render_init::i#2 reg byte x 8.25 +(byte) render_init::i#2 reg byte x 6.285714285714286 (byte) render_init::l (byte) render_init::l#1 l zp ZP_BYTE:2 16.5 (byte) render_init::l#4 l zp ZP_BYTE:2 3.142857142857143 -(byte*) render_init::li -(byte*) render_init::li#1 li zp ZP_WORD:4 7.333333333333333 -(byte*) render_init::li#2 li zp ZP_WORD:4 11.0 +(byte*) render_init::li_1 +(byte*) render_init::li_1#1 li_1 zp ZP_WORD:7 5.5 +(byte*) render_init::li_1#2 li_1 zp ZP_WORD:7 6.6000000000000005 +(byte*) render_init::li_2 +(byte*) render_init::li_2#1 li_2 zp ZP_WORD:15 7.333333333333333 +(byte*) render_init::li_2#2 li_2 zp ZP_WORD:15 5.5 (byte*) render_init::line -(byte*) render_init::line#1 line zp ZP_WORD:4 7.333333333333333 -(byte*) render_init::line#4 line zp ZP_WORD:4 20.499999999999996 -(label) render_init::toD0181 -(word~) render_init::toD0181_$0 -(word~) render_init::toD0181_$1 -(word~) render_init::toD0181_$2 -(byte~) render_init::toD0181_$3 -(word~) render_init::toD0181_$4 -(byte~) render_init::toD0181_$5 -(byte~) render_init::toD0181_$6 -(byte~) render_init::toD0181_$7 -(byte~) render_init::toD0181_$8 -(byte*) render_init::toD0181_gfx -(byte) render_init::toD0181_return -(const byte) render_init::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 -(byte*) render_init::toD0181_screen +(byte*) render_init::line#1 line zp ZP_WORD:7 7.333333333333333 +(byte*) render_init::line#4 line zp ZP_WORD:7 20.499999999999996 (label) render_init::vicSelectGfxBank1 (byte~) render_init::vicSelectGfxBank1_$0 (label) render_init::vicSelectGfxBank1_@1 @@ -834,27 +832,28 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte/word/dword~) render_init::vicSelectGfxBank1_toDd001_$3 (byte*) render_init::vicSelectGfxBank1_toDd001_gfx (byte) render_init::vicSelectGfxBank1_toDd001_return -(const byte) render_init::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_SCREEN#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 +(const byte) render_init::vicSelectGfxBank1_toDd001_return#0 vicSelectGfxBank1_toDd001_return = (byte/signed byte/word/signed word/dword/signed dword) 3^>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 (void()) render_playfield() (byte~) render_playfield::$2 reg byte a 202.0 +(byte~) render_playfield::$3 reg byte a 202.0 (label) render_playfield::@1 (label) render_playfield::@2 (label) render_playfield::@3 (label) render_playfield::@return (byte) render_playfield::c -(byte) render_playfield::c#1 reg byte x 1501.5 -(byte) render_playfield::c#2 reg byte x 500.5 +(byte) render_playfield::c#1 c zp ZP_BYTE:9 1501.5 +(byte) render_playfield::c#2 c zp ZP_BYTE:9 500.5 (byte) render_playfield::i (byte) render_playfield::i#1 i zp ZP_BYTE:6 420.59999999999997 (byte) render_playfield::i#2 i zp ZP_BYTE:6 1034.6666666666667 -(byte) render_playfield::i#3 i zp ZP_BYTE:6 67.33333333333333 +(byte) render_playfield::i#3 i zp ZP_BYTE:6 50.5 (byte) render_playfield::l -(byte) render_playfield::l#1 l zp ZP_BYTE:3 151.5 -(byte) render_playfield::l#2 l zp ZP_BYTE:3 33.666666666666664 +(byte) render_playfield::l#1 l zp ZP_BYTE:5 151.5 +(byte) render_playfield::l#2 l zp ZP_BYTE:5 30.299999999999997 (byte*) render_playfield::screen_line -(byte*) render_playfield::screen_line#0 screen_line zp ZP_WORD:4 202.0 -(byte*) render_playfield::screen_line#1 screen_line zp ZP_WORD:4 500.5 -(byte*) render_playfield::screen_line#2 screen_line zp ZP_WORD:4 1552.0 +(byte*) render_playfield::screen_line#0 screen_line zp ZP_WORD:7 202.0 +(byte*) render_playfield::screen_line#1 screen_line zp ZP_WORD:7 500.5 +(byte*) render_playfield::screen_line#2 screen_line zp ZP_WORD:7 1552.0 (void()) render_screen_original((byte*) render_screen_original::screen) (label) render_screen_original::@1 (label) render_screen_original::@11 @@ -872,17 +871,18 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_screen_original::c#1 reg byte y 202.0 (byte) render_screen_original::c#2 reg byte y 303.0 (byte*) render_screen_original::orig -(byte*) render_screen_original::orig#1 orig zp ZP_WORD:4 13.3125 -(byte*) render_screen_original::orig#2 orig zp ZP_WORD:4 202.0 -(byte*) render_screen_original::orig#5 orig zp ZP_WORD:4 18.666666666666664 +(byte*) render_screen_original::orig#1 orig zp ZP_WORD:7 13.3125 +(byte*) render_screen_original::orig#2 orig zp ZP_WORD:7 202.0 +(byte*) render_screen_original::orig#5 orig zp ZP_WORD:7 18.666666666666664 (byte*) render_screen_original::screen -(byte*) render_screen_original::screen#1 screen zp ZP_WORD:12 101.0 -(byte*) render_screen_original::screen#11 screen zp ZP_WORD:12 42.599999999999994 -(byte*) render_screen_original::screen#2 screen zp ZP_WORD:12 101.0 -(byte*) render_screen_original::screen#4 screen zp ZP_WORD:12 157.0 -(byte*) render_screen_original::screen#5 screen zp ZP_WORD:12 50.5 -(byte*) render_screen_original::screen#6 screen zp ZP_WORD:12 202.0 -(byte*) render_screen_original::screen#7 screen zp ZP_WORD:12 22.0 +(byte*) render_screen_original::screen#10 screen zp ZP_WORD:15 50.5 +(byte*) render_screen_original::screen#11 screen zp ZP_WORD:15 2.0 +(byte*) render_screen_original::screen#12 screen zp ZP_WORD:15 42.599999999999994 +(byte*) render_screen_original::screen#2 screen zp ZP_WORD:15 101.0 +(byte*) render_screen_original::screen#3 screen zp ZP_WORD:15 101.0 +(byte*) render_screen_original::screen#5 screen zp ZP_WORD:15 157.0 +(byte*) render_screen_original::screen#7 screen zp ZP_WORD:15 202.0 +(byte*) render_screen_original::screen#8 screen zp ZP_WORD:15 24.0 (byte) render_screen_original::x (byte) render_screen_original::x#1 reg byte x 202.0 (byte) render_screen_original::x#2 reg byte x 202.0 @@ -893,8 +893,57 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (byte) render_screen_original::y (byte) render_screen_original::y#1 y zp ZP_BYTE:2 16.5 (byte) render_screen_original::y#8 y zp ZP_BYTE:2 1.0 -(byte*[PLAYFIELD_LINES#0]) screen_lines -(const byte*[PLAYFIELD_LINES#0]) screen_lines#0 screen_lines = { fill( PLAYFIELD_LINES#0, 0) } +(byte) render_screen_render +(byte) render_screen_render#10 render_screen_render zp ZP_BYTE:3 3.25 +(byte) render_screen_render#15 render_screen_render zp ZP_BYTE:3 1.277777777777778 +(byte) render_screen_render#18 reg byte x 8.615384615384615 +(byte) render_screen_render#27 render_screen_render#27 zp ZP_BYTE:5 5.090909090909091 +(byte) render_screen_render#31 render_screen_render zp ZP_BYTE:3 16.5 +(byte~) render_screen_render#68 render_screen_render#68 zp ZP_BYTE:5 5.5 +(byte~) render_screen_render#69 reg byte x 22.0 +(byte) render_screen_show +(byte) render_screen_show#11 render_screen_show zp ZP_BYTE:2 4.333333333333333 +(byte) render_screen_show#15 render_screen_show zp ZP_BYTE:2 0.8604651162790697 +(byte) render_screen_show#24 render_screen_show zp ZP_BYTE:2 16.5 +(void()) render_screen_swap() +(label) render_screen_swap::@return +(void()) render_show() +(label) render_show::@2 +(label) render_show::@return +(byte) render_show::d018val +(byte) render_show::d018val#3 reg byte a 2.0 +(label) render_show::toD0181 +(word~) render_show::toD0181_$0 +(word~) render_show::toD0181_$1 +(word~) render_show::toD0181_$2 +(byte~) render_show::toD0181_$3 +(word~) render_show::toD0181_$4 +(byte~) render_show::toD0181_$5 +(byte~) render_show::toD0181_$6 +(byte~) render_show::toD0181_$7 +(byte~) render_show::toD0181_$8 +(byte*) render_show::toD0181_gfx +(byte) render_show::toD0181_return +(const byte) render_show::toD0181_return#0 toD0181_return = >((word))(const byte*) PLAYFIELD_SCREEN_1#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 +(byte*) render_show::toD0181_screen +(label) render_show::toD0182 +(word~) render_show::toD0182_$0 +(word~) render_show::toD0182_$1 +(word~) render_show::toD0182_$2 +(byte~) render_show::toD0182_$3 +(word~) render_show::toD0182_$4 +(byte~) render_show::toD0182_$5 +(byte~) render_show::toD0182_$6 +(byte~) render_show::toD0182_$7 +(byte~) render_show::toD0182_$8 +(byte*) render_show::toD0182_gfx +(byte) render_show::toD0182_return +(const byte) render_show::toD0182_return#0 toD0182_return = >((word))(const byte*) PLAYFIELD_SCREEN_2#0&(word/signed word/dword/signed dword) 16383<<(byte/signed byte/word/signed word/dword/signed dword) 2|>((word))(const byte*) PLAYFIELD_CHARSET#0>>(byte/signed byte/word/signed word/dword/signed dword) 2&(byte/signed byte/word/signed word/dword/signed dword) 15 +(byte*) render_show::toD0182_screen +(byte*[PLAYFIELD_LINES#0]) screen_lines_1 +(const byte*[PLAYFIELD_LINES#0]) screen_lines_1#0 screen_lines_1 = { fill( PLAYFIELD_LINES#0, 0) } +(byte*[PLAYFIELD_LINES#0]) screen_lines_2 +(const byte*[PLAYFIELD_LINES#0]) screen_lines_2#0 screen_lines_2 = { fill( PLAYFIELD_LINES#0, 0) } (byte()) sid_rnd() (label) sid_rnd::@return (byte) sid_rnd::return @@ -923,17 +972,20 @@ interrupt(HARDWARE_CLOBBER)(void()) irq() (const byte) toSpritePtr1_return#0 toSpritePtr1_return = ((byte))((word))(const byte*) PLAYFIELD_SPRITES#0>>(byte/signed byte/word/signed word/dword/signed dword) 6 (byte*) toSpritePtr1_sprite -zp ZP_BYTE:2 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 render_init::l#4 render_init::l#1 render_screen_original::y#8 render_screen_original::y#1 play_spawn_current::$3 ] +zp ZP_BYTE:2 [ render_screen_show#15 render_screen_show#24 render_screen_show#11 play_init::idx#2 play_init::idx#1 sprites_init::xpos#2 sprites_init::xpos#1 render_init::l#4 render_init::l#1 render_screen_original::y#8 render_screen_original::y#1 ] +zp ZP_BYTE:3 [ render_screen_render#15 render_screen_render#31 render_screen_render#10 ] +zp ZP_BYTE:4 [ current_movedown_counter#12 current_movedown_counter#10 current_movedown_counter#1 play_remove_lines::y#8 play_remove_lines::y#1 play_lock_current::l#6 play_lock_current::l#1 play_spawn_current::$3 ] reg byte x [ current_ypos#9 current_ypos#83 current_ypos#84 ] -zp ZP_BYTE:3 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] -zp ZP_WORD:4 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::li#2 render_init::li#1 render_init::line#4 render_init::line#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 fill::addr#2 fill::addr#1 play_lock_current::playfield_line#0 ] -zp ZP_BYTE:6 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 keyboard_event_pressed::row_bits#0 ] -zp ZP_BYTE:7 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 keyboard_event_scan::row_scan#0 ] -zp ZP_BYTE:8 [ render_current::l#4 render_current::l#1 play_collision::l#6 play_collision::l#1 ] -zp ZP_BYTE:9 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] -zp ZP_BYTE:10 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +zp ZP_BYTE:5 [ render_screen_render#27 render_screen_render#68 render_playfield::l#2 render_playfield::l#1 play_move_rotate::orientation#3 play_move_rotate::orientation#1 play_move_rotate::orientation#2 play_remove_lines::x#2 play_remove_lines::x#1 play_lock_current::i#2 play_lock_current::i#3 play_lock_current::i#7 play_lock_current::i#9 keyboard_event_pressed::keycode#5 keyboard_event_scan::row#2 keyboard_event_scan::row#1 ] +zp ZP_BYTE:6 [ current_xpos#47 current_xpos#109 current_xpos#110 render_playfield::i#2 render_playfield::i#3 render_playfield::i#1 play_collision::xpos#5 play_collision::xpos#0 play_collision::xpos#1 play_collision::xpos#2 play_collision::xpos#3 play_remove_lines::full#4 play_remove_lines::full#2 play_lock_current::col#2 play_lock_current::col#0 play_lock_current::col#1 keyboard_event_scan::keycode#10 keyboard_event_scan::keycode#11 keyboard_event_scan::keycode#14 keyboard_event_scan::keycode#1 keyboard_event_scan::keycode#15 keyboard_event_pressed::row_bits#0 ] +zp ZP_WORD:7 [ current_piece_gfx#52 current_piece_gfx#99 current_piece_gfx#100 render_playfield::screen_line#2 render_playfield::screen_line#0 render_playfield::screen_line#1 current_piece#12 current_piece#73 current_piece#74 current_piece#75 current_piece#76 play_collision::piece_gfx#0 play_init::pli#2 play_init::pli#1 render_init::line#4 render_init::line#1 render_init::li_1#2 render_init::li_1#1 fill::addr#2 fill::addr#1 render_screen_original::orig#2 render_screen_original::orig#5 render_screen_original::orig#1 play_lock_current::playfield_line#0 ] +zp ZP_BYTE:9 [ current_piece_char#62 current_piece_char#87 current_piece_char#88 render_playfield::c#2 render_playfield::c#1 play_collision::ypos2#2 play_collision::ypos2#0 play_collision::ypos2#1 play_remove_lines::c#0 play_lock_current::i#1 keyboard_event_scan::row_scan#0 ] +zp ZP_BYTE:10 [ render_current::ypos2#2 render_current::ypos2#0 render_current::ypos2#1 play_collision::l#6 play_collision::l#1 ] +zp ZP_BYTE:11 [ render_current::l#4 render_current::l#1 play_collision::i#2 play_collision::i#3 play_collision::i#11 play_collision::i#13 ] +zp ZP_BYTE:12 [ render_current::i#4 render_current::i#3 render_current::i#8 render_current::i#10 render_current::i#1 play_collision::col#2 play_collision::col#9 play_collision::col#1 ] +zp ZP_BYTE:13 [ render_current::xpos#2 render_current::xpos#0 render_current::xpos#1 main::key_event#0 ] reg byte x [ render_current::c#2 render_current::c#1 ] -reg byte x [ render_playfield::c#2 render_playfield::c#1 ] +reg byte x [ render_screen_render#18 render_screen_render#69 ] reg byte a [ play_move_rotate::return#1 ] reg byte x [ play_collision::orientation#4 play_collision::orientation#0 play_collision::orientation#1 play_collision::orientation#2 play_collision::orientation#3 ] reg byte y [ play_collision::ypos#4 play_collision::ypos#0 play_collision::ypos#1 play_collision::ypos#2 play_collision::ypos#3 ] @@ -941,12 +993,12 @@ reg byte x [ play_collision::c#2 play_collision::c#1 ] reg byte a [ play_collision::return#14 ] reg byte a [ play_move_leftright::return#1 ] reg byte x [ play_move_down::movedown#6 play_move_down::movedown#3 play_move_down::movedown#7 play_move_down::movedown#2 play_move_down::movedown#10 ] -zp ZP_BYTE:11 [ current_ypos#29 current_ypos#21 current_ypos#13 current_ypos#18 current_ypos#0 play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] -zp ZP_WORD:12 [ current_piece#20 current_piece#77 current_piece#16 current_piece#10 current_piece#72 render_screen_original::screen#6 render_screen_original::screen#5 render_screen_original::screen#4 render_screen_original::screen#7 render_screen_original::screen#11 render_screen_original::screen#1 render_screen_original::screen#2 render_init::$18 ] -zp ZP_BYTE:14 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] -zp ZP_WORD:15 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#14 current_piece_gfx#16 current_piece_gfx#3 current_piece_gfx#1 ] -zp ZP_BYTE:17 [ current_xpos#33 current_xpos#10 current_xpos#19 current_xpos#23 current_xpos#4 current_xpos#1 current_xpos#2 ] -zp ZP_BYTE:18 [ current_piece_char#20 current_piece_char#15 current_piece_char#1 current_piece_char#12 ] +zp ZP_BYTE:14 [ current_ypos#29 current_ypos#21 current_ypos#18 current_ypos#13 current_ypos#0 play_lock_current::ypos2#2 play_lock_current::ypos2#0 play_lock_current::ypos2#1 ] +zp ZP_WORD:15 [ current_piece#20 current_piece#77 current_piece#16 current_piece#71 current_piece#10 render_init::li_2#2 render_init::li_2#1 render_screen_original::screen#7 render_screen_original::screen#10 render_screen_original::screen#5 render_screen_original::screen#8 render_screen_original::screen#11 render_screen_original::screen#12 render_screen_original::screen#2 render_screen_original::screen#3 render_init::$12 ] +zp ZP_BYTE:17 [ current_orientation#29 current_orientation#10 current_orientation#19 current_orientation#4 current_orientation#14 ] +zp ZP_WORD:18 [ current_piece_gfx#26 current_piece_gfx#20 current_piece_gfx#16 current_piece_gfx#14 current_piece_gfx#3 current_piece_gfx#1 ] +zp ZP_BYTE:20 [ current_xpos#33 current_xpos#10 current_xpos#23 current_xpos#19 current_xpos#4 current_xpos#1 current_xpos#2 ] +zp ZP_BYTE:21 [ current_piece_char#20 current_piece_char#15 current_piece_char#12 current_piece_char#1 ] reg byte x [ play_move_down::return#2 ] reg byte x [ play_spawn_current::piece_idx#2 play_spawn_current::piece_idx#1 ] reg byte y [ play_remove_lines::r#2 play_remove_lines::r#3 play_remove_lines::r#1 ] @@ -955,39 +1007,42 @@ reg byte x [ play_lock_current::c#2 play_lock_current::c#1 ] reg byte a [ keyboard_event_get::return#2 keyboard_event_get::return#1 ] reg byte x [ keyboard_modifiers#13 keyboard_modifiers#4 keyboard_modifiers#12 keyboard_modifiers#3 keyboard_modifiers#11 ] reg byte x [ keyboard_event_scan::col#2 keyboard_event_scan::col#1 ] -zp ZP_BYTE:19 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +zp ZP_BYTE:22 [ keyboard_events_size#10 keyboard_events_size#29 keyboard_events_size#19 keyboard_events_size#16 keyboard_events_size#13 keyboard_events_size#4 keyboard_events_size#30 keyboard_events_size#2 keyboard_events_size#1 ] +reg byte a [ render_show::d018val#3 ] reg byte x [ play_init::j#2 play_init::j#1 ] reg byte x [ sprites_init::s#2 sprites_init::s#1 ] -reg byte x [ render_init::i#2 render_init::i#1 ] reg byte x [ render_init::c#2 render_init::c#1 ] +reg byte x [ render_init::i#2 render_init::i#1 ] reg byte y [ render_screen_original::c#2 render_screen_original::c#0 render_screen_original::c#1 ] reg byte x [ render_screen_original::x#7 render_screen_original::x#5 render_screen_original::x#4 render_screen_original::x#1 render_screen_original::x#2 render_screen_original::x#3 ] -zp ZP_BYTE:20 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 irq_raster_next#0 ] +zp ZP_BYTE:23 [ irq_raster_next#12 irq_raster_next#2 irq_raster_next#1 irq_raster_next#0 ] reg byte x [ irq::raster_next#2 irq::raster_next#0 irq::raster_next#1 ] -zp ZP_BYTE:21 [ irq_sprite_ypos#0 irq_sprite_ypos#2 irq_sprite_ypos#1 ] -zp ZP_BYTE:22 [ irq_sprite_ptr#0 irq_sprite_ptr#2 irq_sprite_ptr#1 ] -zp ZP_BYTE:23 [ irq_cnt#0 irq_cnt#1 irq_cnt#13 ] +zp ZP_BYTE:24 [ irq_sprite_ypos#0 irq_sprite_ypos#2 irq_sprite_ypos#1 ] +zp ZP_BYTE:25 [ irq_sprite_ptr#0 irq_sprite_ptr#2 irq_sprite_ptr#1 ] +zp ZP_BYTE:26 [ irq_cnt#0 irq_cnt#1 irq_cnt#13 ] +reg byte a [ main::$9 ] reg byte a [ keyboard_event_get::return#3 ] -zp ZP_BYTE:24 [ main::key_event#0 ] reg byte a [ play_move_down::key_event#0 ] reg byte a [ play_move_down::return#3 ] -reg byte a [ main::$12 ] -zp ZP_BYTE:25 [ main::render#1 main::render#2 ] +reg byte a [ main::$13 ] +zp ZP_BYTE:27 [ main::render#1 main::render#2 ] reg byte a [ play_move_leftright::key_event#0 ] reg byte a [ play_move_leftright::return#4 ] -reg byte a [ main::$13 ] +reg byte a [ main::$14 ] reg byte a [ play_move_rotate::key_event#0 ] reg byte a [ play_move_rotate::return#4 ] -reg byte a [ main::$14 ] +reg byte a [ main::$15 ] reg byte a [ main::render#3 ] -zp ZP_WORD:26 [ render_current::screen_line#0 play_collision::playfield_line#0 ] +reg byte a [ render_current::$5 ] +zp ZP_WORD:28 [ render_current::screen_line#0 play_collision::playfield_line#0 ] reg byte a [ render_current::current_cell#0 ] reg byte a [ render_playfield::$2 ] +reg byte a [ render_playfield::$3 ] reg byte a [ play_move_rotate::$2 ] reg byte a [ play_collision::return#13 ] reg byte a [ play_move_rotate::$6 ] reg byte a [ play_move_rotate::$4 ] -zp ZP_BYTE:28 [ play_collision::i#1 ] +zp ZP_BYTE:30 [ play_collision::i#1 ] reg byte a [ play_collision::$7 ] reg byte a [ play_collision::return#12 ] reg byte a [ play_move_leftright::$4 ] @@ -1021,7 +1076,8 @@ reg byte a [ keyboard_event_scan::$11 ] reg byte a [ keyboard_matrix_read::return#0 ] reg byte a [ play_init::$1 ] reg byte a [ sprites_init::s2#0 ] -reg byte a [ render_init::$11 ] +reg byte a [ render_init::$22 ] +reg byte a [ render_init::$23 ] reg byte a [ irq::ypos#0 ] reg byte a [ irq::ptr#0 ] reg byte x [ irq::ptr#1 ]