diff --git a/src/cx16-update.c b/src/cx16-update.c index 20b6515..10fbbb2 100644 --- a/src/cx16-update.c +++ b/src/cx16-update.c @@ -201,7 +201,7 @@ void main() { #endif #endif - display_info_vera(STATUS_SKIP, "VERA not yet supported."); // Set the info for the VERA to Detected. + display_info_vera(STATUS_SKIP, "VERA not yet supported"); // Set the info for the VERA to Detected. #ifdef __ROM_CHIP_PROCESS @@ -433,7 +433,7 @@ void main() { display_info_rom(rom_chip, STATUS_ERROR, info_text); } else { // RFL3 | Flash ROM and all ok - display_info_rom(rom_chip, STATUS_FLASHED, "OK!"); + display_info_rom(rom_chip, STATUS_FLASHED, NULL); } } } diff --git a/target/src/cx16-update.asm b/target/src/cx16-update.asm index d6c44a1..ead9f43 100644 --- a/target/src/cx16-update.asm +++ b/target/src/cx16-update.asm @@ -96,6 +96,8 @@ .const STATUS_NONE = 0 .const STATUS_SKIP = 1 .const STATUS_DETECTED = 2 + .const STATUS_CHECKING = 3 + .const STATUS_READING = 4 .const STATUS_COMPARING = 5 .const STATUS_FLASH = 6 .const STATUS_FLASHING = 7 @@ -170,7 +172,7 @@ .label VERA_L1_MAPBASE = $9f35 .label BRAM = 0 .label BROM = 1 - .label __errno = $ef + .label __errno = $f1 .segment Code // __start __start: { @@ -210,10 +212,10 @@ __start: { /// Print a character into snprintf buffer /// Used by snprintf() /// @param c The character to print -// void snputc(__zp($e3) char c) +// void snputc(__zp($e5) char c) snputc: { .const OFFSET_STACK_C = 0 - .label c = $e3 + .label c = $e5 // [10] snputc::c#0 = stackidx(char,snputc::OFFSET_STACK_C) -- vbuz1=_stackidxbyte_vbuc1 tsx lda STACK_BASE+OFFSET_STACK_C,x @@ -279,7 +281,7 @@ snputc: { // conio_x16_init /// Set initial screen values. conio_x16_init: { - .label conio_x16_init__5 = $d9 + .label conio_x16_init__5 = $db // screenlayer1() // [20] call screenlayer1 jsr screenlayer1 @@ -287,8 +289,8 @@ conio_x16_init: { // conio_x16_init::@1 // textcolor(CONIO_TEXTCOLOR_DEFAULT) // [22] call textcolor - // [726] phi from conio_x16_init::@1 to textcolor [phi:conio_x16_init::@1->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:conio_x16_init::@1->textcolor#0] -- vbuz1=vbuc1 + // [733] phi from conio_x16_init::@1 to textcolor [phi:conio_x16_init::@1->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:conio_x16_init::@1->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor @@ -296,8 +298,8 @@ conio_x16_init: { // conio_x16_init::@2 // bgcolor(CONIO_BACKCOLOR_DEFAULT) // [24] call bgcolor - // [731] phi from conio_x16_init::@2 to bgcolor [phi:conio_x16_init::@2->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:conio_x16_init::@2->bgcolor#0] -- vbuz1=vbuc1 + // [738] phi from conio_x16_init::@2 to bgcolor [phi:conio_x16_init::@2->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:conio_x16_init::@2->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor @@ -342,9 +344,9 @@ conio_x16_init: { lda __conio+1 sta.z gotoxy.y // [40] call gotoxy - // [744] phi from conio_x16_init::@6 to gotoxy [phi:conio_x16_init::@6->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#2 [phi:conio_x16_init::@6->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#2 [phi:conio_x16_init::@6->gotoxy#1] -- register_copy + // [751] phi from conio_x16_init::@6 to gotoxy [phi:conio_x16_init::@6->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#2 [phi:conio_x16_init::@6->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#2 [phi:conio_x16_init::@6->gotoxy#1] -- register_copy jsr gotoxy // conio_x16_init::@7 // __conio.scroll[0] = 1 @@ -371,8 +373,8 @@ conio_x16_init: { cputc: { .const OFFSET_STACK_C = 0 .label cputc__1 = $22 - .label cputc__2 = $7c - .label cputc__3 = $7d + .label cputc__2 = $7b + .label cputc__3 = $7c .label c = $35 // [44] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C) -- vbuz1=_stackidxbyte_vbuc1 tsx @@ -502,69 +504,63 @@ main: { .const bank_set_bram1_bank = 0 .const bank_set_brom1_bank = 0 .const bank_set_brom2_bank = 4 - .const bank_set_brom3_bank = 0 .const bank_set_brom4_bank = 0 .const bank_set_brom5_bank = 0 .const bank_set_brom6_bank = 4 .const bank_push_set_bram1_bank = 1 .const bank_set_bram2_bank = 0 .const bank_set_brom7_bank = 0 - .label main__90 = $fa - .label main__113 = $dd - .label main__115 = $e8 - .label main__117 = $ca - .label main__189 = $e0 - .label main__194 = $ea + .label main__91 = $d4 + .label main__115 = $df + .label main__119 = $ca + .label main__192 = $e2 + .label main__197 = $ec .label check_status_smc1_main__0 = $30 - .label check_status_cx16_rom1_check_status_rom1_main__0 = $df + .label check_status_cx16_rom1_check_status_rom1_main__0 = $e1 .label check_status_cx16_rom4_check_status_rom1_main__0 = $bc .label check_status_smc6_main__0 = $c6 - .label check_status_smc7_main__0 = $de - .label check_status_smc8_main__0 = $7e - .label check_status_smc9_main__0 = $fb - .label check_status_smc10_main__0 = $ee + .label check_status_smc7_main__0 = $e0 + .label check_status_smc8_main__0 = $7d + .label check_status_smc10_main__0 = $f0 .label check_status_vera3_main__0 = $68 .label check_status_vera4_main__0 = $52 - .label check_status_smc11_main__0 = $e7 + .label check_status_smc11_main__0 = $e9 .label check_status_cx16_rom5_check_status_rom1_main__0 = $b7 .label check_status_smc12_main__0 = $63 .label check_status_cx16_rom6_check_status_rom1_main__0 = $6a - .label check_status_smc13_main__0 = $59 + .label check_status_smc13_main__0 = $5a .label check_status_smc14_main__0 = $cc - .label check_status_smc15_main__0 = $b1 + .label check_status_smc15_main__0 = $b3 .label check_status_vera5_main__0 = $62 .label check_status_smc16_main__0 = $69 .label check_status_vera6_main__0 = $cb - .label check_status_smc17_main__0 = $d8 + .label check_status_smc17_main__0 = $da + .label bank_set_brom3_bank = $ea .label check_status_smc1_return = $30 - .label check_status_cx16_rom1_check_status_rom1_return = $df - .label rom_file_release = $dd + .label check_status_cx16_rom1_check_status_rom1_return = $e1 + .label rom_file_release = $df .label check_status_cx16_rom4_check_status_rom1_return = $bc .label check_status_smc6_return = $c6 - .label check_status_smc7_return = $de - .label check_status_smc8_return = $7e - .label check_status_smc9_return = $fb - .label check_status_smc10_return = $ee + .label check_status_smc7_return = $e0 + .label check_status_smc8_return = $7d + .label check_status_smc10_return = $f0 .label check_status_vera3_return = $68 .label check_status_vera4_return = $52 - .label check_status_smc11_return = $e7 + .label check_status_smc11_return = $e9 .label check_status_cx16_rom5_check_status_rom1_return = $b7 .label check_status_smc12_return = $63 .label check_status_cx16_rom6_check_status_rom1_return = $6a - .label check_status_smc13_return = $59 + .label check_status_smc13_return = $5a .label check_status_smc14_return = $cc .label rom_differences = $31 - .label check_status_smc15_return = $b1 + .label check_status_smc15_return = $b3 .label check_status_vera5_return = $62 .label check_status_smc16_return = $69 .label check_status_vera6_return = $cb - .label check_status_smc17_return = $d8 - .label main__334 = $fa - .label main__335 = $fa - .label main__336 = $fa - .label main__338 = $e8 - .label main__339 = $e8 - .label main__340 = $e8 + .label check_status_smc17_return = $da + .label main__338 = $d4 + .label main__339 = $d4 + .label main__340 = $d4 // main::SEI1 // asm // asm { sei } @@ -579,8 +575,8 @@ main: { // [74] BROM = main::bank_set_brom1_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom1_bank sta.z BROM - // [75] phi from main::bank_set_brom1 to main::@64 [phi:main::bank_set_brom1->main::@64] - // main::@64 + // [75] phi from main::bank_set_brom1 to main::@66 [phi:main::bank_set_brom1->main::@66] + // main::@66 // display_frame_init_64() // [76] call display_frame_init_64 // Get the current screen mode ... @@ -600,138 +596,138 @@ main: { } } */ - // [765] phi from main::@64 to display_frame_init_64 [phi:main::@64->display_frame_init_64] + // [772] phi from main::@66 to display_frame_init_64 [phi:main::@66->display_frame_init_64] jsr display_frame_init_64 - // [77] phi from main::@64 to main::@93 [phi:main::@64->main::@93] - // main::@93 + // [77] phi from main::@66 to main::@95 [phi:main::@66->main::@95] + // main::@95 // display_frame_draw() // [78] call display_frame_draw - // [785] phi from main::@93 to display_frame_draw [phi:main::@93->display_frame_draw] + // [792] phi from main::@95 to display_frame_draw [phi:main::@95->display_frame_draw] jsr display_frame_draw - // [79] phi from main::@93 to main::@94 [phi:main::@93->main::@94] - // main::@94 + // [79] phi from main::@95 to main::@96 [phi:main::@95->main::@96] + // main::@96 // display_frame_title("Commander X16 Flash Utility!") // [80] call display_frame_title - // [826] phi from main::@94 to display_frame_title [phi:main::@94->display_frame_title] + // [833] phi from main::@96 to display_frame_title [phi:main::@96->display_frame_title] jsr display_frame_title - // [81] phi from main::@94 to main::display_info_title1 [phi:main::@94->main::display_info_title1] + // [81] phi from main::@96 to main::display_info_title1 [phi:main::@96->main::display_info_title1] // main::display_info_title1 // cputsxy(INFO_X-2, INFO_Y-2, "# Chip Status Type Curr. Release Update Info") // [82] call cputsxy - // [831] phi from main::display_info_title1 to cputsxy [phi:main::display_info_title1->cputsxy] - // [831] phi cputsxy::s#4 = main::s [phi:main::display_info_title1->cputsxy#0] -- pbuz1=pbuc1 + // [838] phi from main::display_info_title1 to cputsxy [phi:main::display_info_title1->cputsxy] + // [838] phi cputsxy::s#4 = main::s [phi:main::display_info_title1->cputsxy#0] -- pbuz1=pbuc1 lda #s sta.z cputsxy.s+1 - // [831] phi cputsxy::y#4 = $11-2 [phi:main::display_info_title1->cputsxy#1] -- vbuz1=vbuc1 + // [838] phi cputsxy::y#4 = $11-2 [phi:main::display_info_title1->cputsxy#1] -- vbuz1=vbuc1 lda #$11-2 sta.z cputsxy.y - // [831] phi cputsxy::x#4 = 4-2 [phi:main::display_info_title1->cputsxy#2] -- vbuz1=vbuc1 + // [838] phi cputsxy::x#4 = 4-2 [phi:main::display_info_title1->cputsxy#2] -- vbuz1=vbuc1 lda #4-2 sta.z cputsxy.x jsr cputsxy - // [83] phi from main::display_info_title1 to main::@95 [phi:main::display_info_title1->main::@95] - // main::@95 + // [83] phi from main::display_info_title1 to main::@97 [phi:main::display_info_title1->main::@97] + // main::@97 // cputsxy(INFO_X-2, INFO_Y-1, "- ---- --------- ------ ------------- --------------------------") // [84] call cputsxy - // [831] phi from main::@95 to cputsxy [phi:main::@95->cputsxy] - // [831] phi cputsxy::s#4 = main::s1 [phi:main::@95->cputsxy#0] -- pbuz1=pbuc1 + // [838] phi from main::@97 to cputsxy [phi:main::@97->cputsxy] + // [838] phi cputsxy::s#4 = main::s1 [phi:main::@97->cputsxy#0] -- pbuz1=pbuc1 lda #s1 sta.z cputsxy.s+1 - // [831] phi cputsxy::y#4 = $11-1 [phi:main::@95->cputsxy#1] -- vbuz1=vbuc1 + // [838] phi cputsxy::y#4 = $11-1 [phi:main::@97->cputsxy#1] -- vbuz1=vbuc1 lda #$11-1 sta.z cputsxy.y - // [831] phi cputsxy::x#4 = 4-2 [phi:main::@95->cputsxy#2] -- vbuz1=vbuc1 + // [838] phi cputsxy::x#4 = 4-2 [phi:main::@97->cputsxy#2] -- vbuz1=vbuc1 lda #4-2 sta.z cputsxy.x jsr cputsxy - // [85] phi from main::@95 to main::@65 [phi:main::@95->main::@65] - // main::@65 + // [85] phi from main::@97 to main::@67 [phi:main::@97->main::@67] + // main::@67 // display_action_progress("Introduction ...") // [86] call display_action_progress - // [838] phi from main::@65 to display_action_progress [phi:main::@65->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text [phi:main::@65->display_action_progress#0] -- pbuz1=pbuc1 + // [845] phi from main::@67 to display_action_progress [phi:main::@67->display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text [phi:main::@67->display_action_progress#0] -- pbuz1=pbuc1 lda #info_text sta.z display_action_progress.info_text+1 jsr display_action_progress - // [87] phi from main::@65 to main::@96 [phi:main::@65->main::@96] - // main::@96 + // [87] phi from main::@67 to main::@98 [phi:main::@67->main::@98] + // main::@98 // display_progress_clear() // [88] call display_progress_clear - // [852] phi from main::@96 to display_progress_clear [phi:main::@96->display_progress_clear] + // [859] phi from main::@98 to display_progress_clear [phi:main::@98->display_progress_clear] jsr display_progress_clear - // [89] phi from main::@96 to main::@97 [phi:main::@96->main::@97] - // main::@97 + // [89] phi from main::@98 to main::@99 [phi:main::@98->main::@99] + // main::@99 // display_chip_smc() // [90] call display_chip_smc - // [867] phi from main::@97 to display_chip_smc [phi:main::@97->display_chip_smc] + // [874] phi from main::@99 to display_chip_smc [phi:main::@99->display_chip_smc] jsr display_chip_smc - // [91] phi from main::@97 to main::@98 [phi:main::@97->main::@98] - // main::@98 + // [91] phi from main::@99 to main::@100 [phi:main::@99->main::@100] + // main::@100 // display_chip_vera() // [92] call display_chip_vera - // [872] phi from main::@98 to display_chip_vera [phi:main::@98->display_chip_vera] + // [879] phi from main::@100 to display_chip_vera [phi:main::@100->display_chip_vera] jsr display_chip_vera - // [93] phi from main::@98 to main::@99 [phi:main::@98->main::@99] - // main::@99 + // [93] phi from main::@100 to main::@101 [phi:main::@100->main::@101] + // main::@101 // display_chip_rom() // [94] call display_chip_rom - // [877] phi from main::@99 to display_chip_rom [phi:main::@99->display_chip_rom] + // [884] phi from main::@101 to display_chip_rom [phi:main::@101->display_chip_rom] jsr display_chip_rom - // [95] phi from main::@99 to main::@100 [phi:main::@99->main::@100] - // main::@100 + // [95] phi from main::@101 to main::@102 [phi:main::@101->main::@102] + // main::@102 // display_info_smc(STATUS_COLOR_NONE, NULL) // [96] call display_info_smc - // [896] phi from main::@100 to display_info_smc [phi:main::@100->display_info_smc] - // [896] phi display_info_smc::info_text#18 = 0 [phi:main::@100->display_info_smc#0] -- pbuz1=vbuc1 + // [903] phi from main::@102 to display_info_smc [phi:main::@102->display_info_smc] + // [903] phi display_info_smc::info_text#18 = 0 [phi:main::@102->display_info_smc#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_smc.info_text sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = 0 [phi:main::@100->display_info_smc#1] -- vwum1=vwuc1 + // [903] phi smc_bootloader#13 = 0 [phi:main::@102->display_info_smc#1] -- vwum1=vwuc1 sta smc_bootloader_1 sta smc_bootloader_1+1 - // [896] phi display_info_smc::info_status#18 = BLACK [phi:main::@100->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi display_info_smc::info_status#18 = BLACK [phi:main::@102->display_info_smc#2] -- vbum1=vbuc1 lda #BLACK sta display_info_smc.info_status jsr display_info_smc - // [97] phi from main::@100 to main::@101 [phi:main::@100->main::@101] - // main::@101 + // [97] phi from main::@102 to main::@103 [phi:main::@102->main::@103] + // main::@103 // display_info_vera(STATUS_NONE, NULL) // [98] call display_info_vera - // [930] phi from main::@101 to display_info_vera [phi:main::@101->display_info_vera] - // [930] phi display_info_vera::info_text#10 = 0 [phi:main::@101->display_info_vera#0] -- pbuz1=vbuc1 + // [937] phi from main::@103 to display_info_vera [phi:main::@103->display_info_vera] + // [937] phi display_info_vera::info_text#10 = 0 [phi:main::@103->display_info_vera#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_vera.info_text sta.z display_info_vera.info_text+1 - // [930] phi display_info_vera::info_status#4 = STATUS_NONE [phi:main::@101->display_info_vera#1] -- vbuz1=vbuc1 + // [937] phi display_info_vera::info_status#4 = STATUS_NONE [phi:main::@103->display_info_vera#1] -- vbuz1=vbuc1 lda #STATUS_NONE sta.z display_info_vera.info_status jsr display_info_vera - // [99] phi from main::@101 to main::@11 [phi:main::@101->main::@11] - // [99] phi main::rom_chip#2 = 0 [phi:main::@101->main::@11#0] -- vbum1=vbuc1 + // [99] phi from main::@103 to main::@12 [phi:main::@103->main::@12] + // [99] phi main::rom_chip#2 = 0 [phi:main::@103->main::@12#0] -- vbum1=vbuc1 lda #0 sta rom_chip - // main::@11 - __b11: + // main::@12 + __b12: // for(unsigned char rom_chip=0; rom_chip<8; rom_chip++) - // [100] if(main::rom_chip#2<8) goto main::@12 -- vbum1_lt_vbuc1_then_la1 + // [100] if(main::rom_chip#2<8) goto main::@13 -- vbum1_lt_vbuc1_then_la1 lda rom_chip cmp #8 - bcs !__b12+ - jmp __b12 - !__b12: - // [101] phi from main::@11 to main::@13 [phi:main::@11->main::@13] - // main::@13 + bcs !__b13+ + jmp __b13 + !__b13: + // [101] phi from main::@12 to main::@14 [phi:main::@12->main::@14] + // main::@14 // smc_detect() // [102] call smc_detect jsr smc_detect // [103] smc_detect::return#2 = smc_detect::return#0 - // main::@104 + // main::@106 // smc_bootloader = smc_detect() // [104] smc_bootloader#0 = smc_detect::return#2 -- vwum1=vwuz2 lda.z smc_detect.return @@ -740,25 +736,25 @@ main: { sta smc_bootloader+1 // strcpy(smc_version_text, "0.0.0") // [105] call strcpy - // [967] phi from main::@104 to strcpy [phi:main::@104->strcpy] - // [967] phi strcpy::dst#0 = smc_version_text [phi:main::@104->strcpy#0] -- pbuz1=pbuc1 + // [974] phi from main::@106 to strcpy [phi:main::@106->strcpy] + // [974] phi strcpy::dst#0 = smc_version_text [phi:main::@106->strcpy#0] -- pbuz1=pbuc1 lda #smc_version_text sta.z strcpy.dst+1 - // [967] phi strcpy::src#0 = main::source1 [phi:main::@104->strcpy#1] -- pbuz1=pbuc1 + // [974] phi strcpy::src#0 = main::source1 [phi:main::@106->strcpy#1] -- pbuz1=pbuc1 lda #source1 sta.z strcpy.src+1 jsr strcpy - // [106] phi from main::@104 to main::@105 [phi:main::@104->main::@105] - // main::@105 + // [106] phi from main::@106 to main::@107 [phi:main::@106->main::@107] + // main::@107 // display_chip_smc() // [107] call display_chip_smc - // [867] phi from main::@105 to display_chip_smc [phi:main::@105->display_chip_smc] + // [874] phi from main::@107 to display_chip_smc [phi:main::@107->display_chip_smc] jsr display_chip_smc - // main::@106 + // main::@108 // if(smc_bootloader == 0x0100) // [108] if(smc_bootloader#0==$100) goto main::@1 -- vwum1_eq_vwuc1_then_la1 lda smc_bootloader @@ -770,32 +766,32 @@ main: { jmp __b1 !__b1: !: - // main::@14 + // main::@15 // if(smc_bootloader == 0x0200) - // [109] if(smc_bootloader#0==$200) goto main::@17 -- vwum1_eq_vwuc1_then_la1 + // [109] if(smc_bootloader#0==$200) goto main::@18 -- vwum1_eq_vwuc1_then_la1 lda smc_bootloader cmp #<$200 bne !+ lda smc_bootloader+1 cmp #>$200 - bne !__b17+ - jmp __b17 - !__b17: + bne !__b18+ + jmp __b18 + !__b18: !: - // main::@15 + // main::@16 // if(smc_bootloader > 0x2) - // [110] if(smc_bootloader#0>=2+1) goto main::@18 -- vwum1_ge_vbuc1_then_la1 + // [110] if(smc_bootloader#0>=2+1) goto main::@19 -- vwum1_ge_vbuc1_then_la1 lda smc_bootloader+1 - beq !__b18+ - jmp __b18 - !__b18: + beq !__b19+ + jmp __b19 + !__b19: lda smc_bootloader cmp #2+1 - bcc !__b18+ - jmp __b18 - !__b18: + bcc !__b19+ + jmp __b19 + !__b19: !: - // main::@16 + // main::@17 // cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_VERSION) // [111] cx16_k_i2c_read_byte::device = $42 -- vbum1=vbuc1 lda #$42 @@ -806,7 +802,7 @@ main: { // [113] call cx16_k_i2c_read_byte jsr cx16_k_i2c_read_byte // [114] cx16_k_i2c_read_byte::return#14 = cx16_k_i2c_read_byte::return#1 - // main::@113 + // main::@115 // smc_release = cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_VERSION) // [115] smc_release#0 = cx16_k_i2c_read_byte::return#14 -- vbum1=vwuz2 lda.z cx16_k_i2c_read_byte.return @@ -821,7 +817,7 @@ main: { // [118] call cx16_k_i2c_read_byte jsr cx16_k_i2c_read_byte // [119] cx16_k_i2c_read_byte::return#15 = cx16_k_i2c_read_byte::return#1 - // main::@114 + // main::@116 // smc_major = cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_MAJOR) // [120] smc_major#0 = cx16_k_i2c_read_byte::return#15 -- vbum1=vwuz2 lda.z cx16_k_i2c_read_byte.return @@ -836,7 +832,7 @@ main: { // [123] call cx16_k_i2c_read_byte jsr cx16_k_i2c_read_byte // [124] cx16_k_i2c_read_byte::return#16 = cx16_k_i2c_read_byte::return#1 - // main::@115 + // main::@117 // smc_minor = cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_MINOR) // [125] smc_minor#0 = cx16_k_i2c_read_byte::return#16 -- vbum1=vwuz2 lda.z cx16_k_i2c_read_byte.return @@ -852,85 +848,85 @@ main: { lda smc_minor sta.z smc_get_version_text.minor // [129] call smc_get_version_text - // [980] phi from main::@115 to smc_get_version_text [phi:main::@115->smc_get_version_text] - // [980] phi smc_get_version_text::minor#2 = smc_get_version_text::minor#0 [phi:main::@115->smc_get_version_text#0] -- register_copy - // [980] phi smc_get_version_text::major#2 = smc_get_version_text::major#0 [phi:main::@115->smc_get_version_text#1] -- register_copy - // [980] phi smc_get_version_text::release#2 = smc_get_version_text::release#0 [phi:main::@115->smc_get_version_text#2] -- register_copy - // [980] phi smc_get_version_text::version_string#2 = smc_version_text [phi:main::@115->smc_get_version_text#3] -- pbuz1=pbuc1 + // [987] phi from main::@117 to smc_get_version_text [phi:main::@117->smc_get_version_text] + // [987] phi smc_get_version_text::minor#2 = smc_get_version_text::minor#0 [phi:main::@117->smc_get_version_text#0] -- register_copy + // [987] phi smc_get_version_text::major#2 = smc_get_version_text::major#0 [phi:main::@117->smc_get_version_text#1] -- register_copy + // [987] phi smc_get_version_text::release#2 = smc_get_version_text::release#0 [phi:main::@117->smc_get_version_text#2] -- register_copy + // [987] phi smc_get_version_text::version_string#2 = smc_version_text [phi:main::@117->smc_get_version_text#3] -- pbuz1=pbuc1 lda #smc_version_text sta.z smc_get_version_text.version_string+1 jsr smc_get_version_text - // main::@116 - // [130] smc_bootloader#427 = smc_bootloader#0 -- vwum1=vwum2 + // main::@118 + // [130] smc_bootloader#430 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_DETECTED, NULL) // [131] call display_info_smc - // [896] phi from main::@116 to display_info_smc [phi:main::@116->display_info_smc] - // [896] phi display_info_smc::info_text#18 = 0 [phi:main::@116->display_info_smc#0] -- pbuz1=vbuc1 + // [903] phi from main::@118 to display_info_smc [phi:main::@118->display_info_smc] + // [903] phi display_info_smc::info_text#18 = 0 [phi:main::@118->display_info_smc#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_smc.info_text sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#427 [phi:main::@116->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_DETECTED [phi:main::@116->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#430 [phi:main::@118->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_DETECTED [phi:main::@118->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_DETECTED sta display_info_smc.info_status jsr display_info_smc - // [132] phi from main::@116 to main::@2 [phi:main::@116->main::@2] - // [132] phi smc_minor#358 = smc_minor#0 [phi:main::@116->main::@2#0] -- register_copy - // [132] phi smc_major#359 = smc_major#0 [phi:main::@116->main::@2#1] -- register_copy - // [132] phi smc_release#360 = smc_release#0 [phi:main::@116->main::@2#2] -- register_copy + // [132] phi from main::@118 to main::@2 [phi:main::@118->main::@2] + // [132] phi smc_minor#361 = smc_minor#0 [phi:main::@118->main::@2#0] -- register_copy + // [132] phi smc_major#362 = smc_major#0 [phi:main::@118->main::@2#1] -- register_copy + // [132] phi smc_release#363 = smc_release#0 [phi:main::@118->main::@2#2] -- register_copy // main::@2 __b2: // display_chip_vera() // [133] call display_chip_vera // Detecting VERA FPGA. - // [872] phi from main::@2 to display_chip_vera [phi:main::@2->display_chip_vera] + // [879] phi from main::@2 to display_chip_vera [phi:main::@2->display_chip_vera] jsr display_chip_vera - // [134] phi from main::@2 to main::@117 [phi:main::@2->main::@117] - // main::@117 + // [134] phi from main::@2 to main::@119 [phi:main::@2->main::@119] + // main::@119 // display_info_vera(STATUS_DETECTED, "VERA installed, OK") // [135] call display_info_vera - // [930] phi from main::@117 to display_info_vera [phi:main::@117->display_info_vera] - // [930] phi display_info_vera::info_text#10 = main::info_text3 [phi:main::@117->display_info_vera#0] -- pbuz1=pbuc1 + // [937] phi from main::@119 to display_info_vera [phi:main::@119->display_info_vera] + // [937] phi display_info_vera::info_text#10 = main::info_text3 [phi:main::@119->display_info_vera#0] -- pbuz1=pbuc1 lda #info_text3 sta.z display_info_vera.info_text+1 - // [930] phi display_info_vera::info_status#4 = STATUS_DETECTED [phi:main::@117->display_info_vera#1] -- vbuz1=vbuc1 + // [937] phi display_info_vera::info_status#4 = STATUS_DETECTED [phi:main::@119->display_info_vera#1] -- vbuz1=vbuc1 lda #STATUS_DETECTED sta.z display_info_vera.info_status jsr display_info_vera - // [136] phi from main::@117 to main::@118 [phi:main::@117->main::@118] - // main::@118 + // [136] phi from main::@119 to main::@120 [phi:main::@119->main::@120] + // main::@120 // rom_detect() // [137] call rom_detect // Detecting ROM chips - // [997] phi from main::@118 to rom_detect [phi:main::@118->rom_detect] + // [1004] phi from main::@120 to rom_detect [phi:main::@120->rom_detect] jsr rom_detect - // [138] phi from main::@118 to main::@119 [phi:main::@118->main::@119] - // main::@119 + // [138] phi from main::@120 to main::@121 [phi:main::@120->main::@121] + // main::@121 // display_chip_rom() // [139] call display_chip_rom - // [877] phi from main::@119 to display_chip_rom [phi:main::@119->display_chip_rom] + // [884] phi from main::@121 to display_chip_rom [phi:main::@121->display_chip_rom] jsr display_chip_rom - // [140] phi from main::@119 to main::@19 [phi:main::@119->main::@19] - // [140] phi main::rom_chip1#10 = 0 [phi:main::@119->main::@19#0] -- vbum1=vbuc1 + // [140] phi from main::@121 to main::@20 [phi:main::@121->main::@20] + // [140] phi main::rom_chip1#10 = 0 [phi:main::@121->main::@20#0] -- vbum1=vbuc1 lda #0 sta rom_chip1 - // main::@19 - __b19: + // main::@20 + __b20: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [141] if(main::rom_chip1#10<8) goto main::@20 -- vbum1_lt_vbuc1_then_la1 + // [141] if(main::rom_chip1#10<8) goto main::@21 -- vbum1_lt_vbuc1_then_la1 lda rom_chip1 cmp #8 - bcs !__b20+ - jmp __b20 - !__b20: + bcs !__b21+ + jmp __b21 + !__b21: // main::bank_set_brom2 // BROM = bank // [142] BROM = main::bank_set_brom2_bank#0 -- vbuz1=vbuc1 @@ -940,64 +936,64 @@ main: { // asm // asm { cli } cli - // [144] phi from main::CLI1 to main::@66 [phi:main::CLI1->main::@66] - // main::@66 + // [144] phi from main::CLI1 to main::@68 [phi:main::CLI1->main::@68] + // main::@68 // display_progress_text(display_into_briefing_text, display_intro_briefing_count) // [145] call display_progress_text - // [1047] phi from main::@66 to display_progress_text [phi:main::@66->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_into_briefing_text [phi:main::@66->display_progress_text#0] -- qbuz1=qbuc1 + // [1054] phi from main::@68 to display_progress_text [phi:main::@68->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_into_briefing_text [phi:main::@68->display_progress_text#0] -- qbuz1=qbuc1 lda #display_into_briefing_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_intro_briefing_count [phi:main::@66->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_intro_briefing_count [phi:main::@68->display_progress_text#1] -- vbuz1=vbuc1 lda #display_intro_briefing_count sta.z display_progress_text.lines jsr display_progress_text - // [146] phi from main::@66 to main::@120 [phi:main::@66->main::@120] - // main::@120 + // [146] phi from main::@68 to main::@122 [phi:main::@68->main::@122] + // main::@122 // util_wait_space() // [147] call util_wait_space - // [1057] phi from main::@120 to util_wait_space [phi:main::@120->util_wait_space] + // [1064] phi from main::@122 to util_wait_space [phi:main::@122->util_wait_space] jsr util_wait_space - // [148] phi from main::@120 to main::@121 [phi:main::@120->main::@121] - // main::@121 + // [148] phi from main::@122 to main::@123 [phi:main::@122->main::@123] + // main::@123 // display_progress_text(display_into_colors_text, display_intro_colors_count) // [149] call display_progress_text - // [1047] phi from main::@121 to display_progress_text [phi:main::@121->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_into_colors_text [phi:main::@121->display_progress_text#0] -- qbuz1=qbuc1 + // [1054] phi from main::@123 to display_progress_text [phi:main::@123->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_into_colors_text [phi:main::@123->display_progress_text#0] -- qbuz1=qbuc1 lda #display_into_colors_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_intro_colors_count [phi:main::@121->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_intro_colors_count [phi:main::@123->display_progress_text#1] -- vbuz1=vbuc1 lda #display_intro_colors_count sta.z display_progress_text.lines jsr display_progress_text - // [150] phi from main::@121 to main::@22 [phi:main::@121->main::@22] - // [150] phi main::intro_status#2 = 0 [phi:main::@121->main::@22#0] -- vbum1=vbuc1 + // [150] phi from main::@123 to main::@24 [phi:main::@123->main::@24] + // [150] phi main::intro_status#2 = 0 [phi:main::@123->main::@24#0] -- vbum1=vbuc1 lda #0 sta intro_status - // main::@22 - __b22: + // main::@24 + __b24: // for(unsigned char intro_status=0; intro_status<11; intro_status++) - // [151] if(main::intro_status#2<$b) goto main::@23 -- vbum1_lt_vbuc1_then_la1 + // [151] if(main::intro_status#2<$b) goto main::@25 -- vbum1_lt_vbuc1_then_la1 lda intro_status cmp #$b - bcs !__b23+ - jmp __b23 - !__b23: - // [152] phi from main::@22 to main::@24 [phi:main::@22->main::@24] - // main::@24 + bcs !__b25+ + jmp __b25 + !__b25: + // [152] phi from main::@24 to main::@26 [phi:main::@24->main::@26] + // main::@26 // util_wait_space() // [153] call util_wait_space - // [1057] phi from main::@24 to util_wait_space [phi:main::@24->util_wait_space] + // [1064] phi from main::@26 to util_wait_space [phi:main::@26->util_wait_space] jsr util_wait_space - // [154] phi from main::@24 to main::@127 [phi:main::@24->main::@127] - // main::@127 + // [154] phi from main::@26 to main::@129 [phi:main::@26->main::@129] + // main::@129 // display_progress_clear() // [155] call display_progress_clear - // [852] phi from main::@127 to display_progress_clear [phi:main::@127->display_progress_clear] + // [859] phi from main::@129 to display_progress_clear [phi:main::@129->display_progress_clear] jsr display_progress_clear // main::SEI2 // asm @@ -1024,184 +1020,196 @@ main: { sta.z check_status_smc1_main__0 // return (unsigned char)(status_smc == status); // [160] main::check_status_smc1_return#0 = (char)main::check_status_smc1_$0 - // main::@68 + // main::@70 // if(check_status_smc(STATUS_DETECTED)) // [161] if(0==main::check_status_smc1_return#0) goto main::CLI2 -- 0_eq_vbuz1_then_la1 lda.z check_status_smc1_return - bne !__b6+ - jmp __b6 - !__b6: - // [162] phi from main::@68 to main::@25 [phi:main::@68->main::@25] - // main::@25 - // smc_read(0) - // [163] call smc_read - // [1060] phi from main::@25 to smc_read [phi:main::@25->smc_read] - // [1060] phi smc_read::display_progress#19 = 0 [phi:main::@25->smc_read#0] -- vbum1=vbuc1 - lda #0 - sta smc_read.display_progress - // [1060] phi __errno#35 = 0 [phi:main::@25->smc_read#1] -- vwsz1=vwsc1 + bne !__b7+ + jmp __b7 + !__b7: + // [162] phi from main::@70 to main::@27 [phi:main::@70->main::@27] + // main::@27 + // display_action_progress("Checking SMC.BIN ...") + // [163] call display_action_progress + // [845] phi from main::@27 to display_action_progress [phi:main::@27->display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text6 [phi:main::@27->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text6 + sta.z display_action_progress.info_text+1 + jsr display_action_progress + // [164] phi from main::@27 to main::@130 [phi:main::@27->main::@130] + // main::@130 + // smc_read(STATUS_CHECKING) + // [165] call smc_read + // [1067] phi from main::@130 to smc_read [phi:main::@130->smc_read] + // [1067] phi __errno#35 = 0 [phi:main::@130->smc_read#0] -- vwsz1=vwsc1 + lda #<0 sta.z __errno sta.z __errno+1 + // [1067] phi smc_read::info_status#2 = STATUS_CHECKING [phi:main::@130->smc_read#1] -- vbum1=vbuc1 + lda #STATUS_CHECKING + sta smc_read.info_status jsr smc_read - // smc_read(0) - // [164] smc_read::return#2 = smc_read::return#0 - // main::@128 - // smc_file_size = smc_read(0) - // [165] smc_file_size#0 = smc_read::return#2 -- vwum1=vwum2 - lda smc_read.return + // smc_read(STATUS_CHECKING) + // [166] smc_read::return#2 = smc_read::return#0 + // main::@131 + // smc_file_size = smc_read(STATUS_CHECKING) + // [167] smc_file_size#0 = smc_read::return#2 -- vwum1=vwuz2 + lda.z smc_read.return sta smc_file_size - lda smc_read.return+1 + lda.z smc_read.return+1 sta smc_file_size+1 // if (!smc_file_size) - // [166] if(0==smc_file_size#0) goto main::@28 -- 0_eq_vwum1_then_la1 + // [168] if(0==smc_file_size#0) goto main::@30 -- 0_eq_vwum1_then_la1 lda smc_file_size ora smc_file_size+1 - bne !__b28+ - jmp __b28 - !__b28: - // main::@26 + bne !__b30+ + jmp __b30 + !__b30: + // main::@28 // if(smc_file_size > 0x1E00) - // [167] if(smc_file_size#0>$1e00) goto main::@29 -- vwum1_gt_vwuc1_then_la1 + // [169] if(smc_file_size#0>$1e00) goto main::@31 -- vwum1_gt_vwuc1_then_la1 lda #>$1e00 cmp smc_file_size+1 - bcs !__b29+ - jmp __b29 - !__b29: + bcs !__b31+ + jmp __b31 + !__b31: bne !+ lda #<$1e00 cmp smc_file_size - bcs !__b29+ - jmp __b29 - !__b29: + bcs !__b31+ + jmp __b31 + !__b31: !: - // main::@27 + // main::@29 // smc_file_release = smc_file_header[0] - // [168] smc_file_release#0 = *smc_file_header -- vbum1=_deref_pbuc1 + // [170] smc_file_release#0 = *smc_file_header -- vbum1=_deref_pbuc1 // SF4 | SMC.BIN and all ok | Display the SMC.BIN file version and set SMC to Flash. | Flash // The first 3 bytes of the smc file header is the version of the SMC file. lda smc_file_header sta smc_file_release // smc_file_major = smc_file_header[1] - // [169] smc_file_major#0 = *(smc_file_header+1) -- vbum1=_deref_pbuc1 + // [171] smc_file_major#0 = *(smc_file_header+1) -- vbum1=_deref_pbuc1 lda smc_file_header+1 sta smc_file_major // smc_file_minor = smc_file_header[2] - // [170] smc_file_minor#0 = *(smc_file_header+2) -- vbum1=_deref_pbuc1 + // [172] smc_file_minor#0 = *(smc_file_header+2) -- vbum1=_deref_pbuc1 lda smc_file_header+2 sta smc_file_minor // smc_get_version_text(smc_file_version_text, smc_file_release, smc_file_major, smc_file_minor) - // [171] smc_get_version_text::release#1 = smc_file_release#0 -- vbuz1=vbum2 + // [173] smc_get_version_text::release#1 = smc_file_release#0 -- vbuz1=vbum2 lda smc_file_release sta.z smc_get_version_text.release - // [172] smc_get_version_text::major#1 = smc_file_major#0 -- vbuz1=vbum2 + // [174] smc_get_version_text::major#1 = smc_file_major#0 -- vbuz1=vbum2 lda smc_file_major sta.z smc_get_version_text.major - // [173] smc_get_version_text::minor#1 = smc_file_minor#0 -- vbuz1=vbum2 + // [175] smc_get_version_text::minor#1 = smc_file_minor#0 -- vbuz1=vbum2 lda smc_file_minor sta.z smc_get_version_text.minor - // [174] call smc_get_version_text - // [980] phi from main::@27 to smc_get_version_text [phi:main::@27->smc_get_version_text] - // [980] phi smc_get_version_text::minor#2 = smc_get_version_text::minor#1 [phi:main::@27->smc_get_version_text#0] -- register_copy - // [980] phi smc_get_version_text::major#2 = smc_get_version_text::major#1 [phi:main::@27->smc_get_version_text#1] -- register_copy - // [980] phi smc_get_version_text::release#2 = smc_get_version_text::release#1 [phi:main::@27->smc_get_version_text#2] -- register_copy - // [980] phi smc_get_version_text::version_string#2 = main::smc_file_version_text [phi:main::@27->smc_get_version_text#3] -- pbuz1=pbuc1 + // [176] call smc_get_version_text + // [987] phi from main::@29 to smc_get_version_text [phi:main::@29->smc_get_version_text] + // [987] phi smc_get_version_text::minor#2 = smc_get_version_text::minor#1 [phi:main::@29->smc_get_version_text#0] -- register_copy + // [987] phi smc_get_version_text::major#2 = smc_get_version_text::major#1 [phi:main::@29->smc_get_version_text#1] -- register_copy + // [987] phi smc_get_version_text::release#2 = smc_get_version_text::release#1 [phi:main::@29->smc_get_version_text#2] -- register_copy + // [987] phi smc_get_version_text::version_string#2 = main::smc_file_version_text [phi:main::@29->smc_get_version_text#3] -- pbuz1=pbuc1 lda #smc_file_version_text sta.z smc_get_version_text.version_string+1 jsr smc_get_version_text - // [175] phi from main::@27 to main::@129 [phi:main::@27->main::@129] - // main::@129 + // [177] phi from main::@29 to main::@132 [phi:main::@29->main::@132] + // main::@132 // sprintf(info_text, "SMC.BIN:%s", smc_file_version_text) - // [176] call snprintf_init - // [1123] phi from main::@129 to snprintf_init [phi:main::@129->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@129->snprintf_init#0] -- pbuz1=pbuc1 + // [178] call snprintf_init + // [1133] phi from main::@132 to snprintf_init [phi:main::@132->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@132->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [177] phi from main::@129 to main::@130 [phi:main::@129->main::@130] - // main::@130 + // [179] phi from main::@132 to main::@133 [phi:main::@132->main::@133] + // main::@133 // sprintf(info_text, "SMC.BIN:%s", smc_file_version_text) - // [178] call printf_str - // [1128] phi from main::@130 to printf_str [phi:main::@130->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@130->printf_str#0] -- pprz1=pprc1 + // [180] call printf_str + // [1138] phi from main::@133 to printf_str [phi:main::@133->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@133->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s4 [phi:main::@130->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s4 [phi:main::@133->printf_str#1] -- pbuz1=pbuc1 lda #s4 sta.z printf_str.s+1 jsr printf_str - // [179] phi from main::@130 to main::@131 [phi:main::@130->main::@131] - // main::@131 + // [181] phi from main::@133 to main::@134 [phi:main::@133->main::@134] + // main::@134 // sprintf(info_text, "SMC.BIN:%s", smc_file_version_text) - // [180] call printf_string - // [1137] phi from main::@131 to printf_string [phi:main::@131->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:main::@131->printf_string#0] -- pprz1=pprc1 + // [182] call printf_string + // [1147] phi from main::@134 to printf_string [phi:main::@134->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:main::@134->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = main::smc_file_version_text [phi:main::@131->printf_string#1] -- pbuz1=pbuc1 + // [1147] phi printf_string::str#24 = main::smc_file_version_text [phi:main::@134->printf_string#1] -- pbuz1=pbuc1 lda #smc_file_version_text sta.z printf_string.str+1 - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:main::@131->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:main::@134->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:main::@131->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:main::@134->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // main::@132 + // main::@135 // sprintf(info_text, "SMC.BIN:%s", smc_file_version_text) - // [181] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [183] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [182] callexecute snputc -- call_vprc1 + // [184] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla - // [184] smc_bootloader#429 = smc_bootloader#0 -- vwum1=vwum2 + // [186] smc_bootloader#432 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_FLASH, info_text) - // [185] call display_info_smc + // [187] call display_info_smc // All ok, display file version. - // [896] phi from main::@132 to display_info_smc [phi:main::@132->display_info_smc] - // [896] phi display_info_smc::info_text#18 = info_text [phi:main::@132->display_info_smc#0] -- pbuz1=pbuc1 + // [903] phi from main::@135 to display_info_smc [phi:main::@135->display_info_smc] + // [903] phi display_info_smc::info_text#18 = info_text [phi:main::@135->display_info_smc#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_smc.info_text lda #>@info_text sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#429 [phi:main::@132->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_FLASH [phi:main::@132->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#432 [phi:main::@135->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_FLASH [phi:main::@135->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_FLASH sta display_info_smc.info_status jsr display_info_smc - // [186] phi from main::@132 to main::CLI2 [phi:main::@132->main::CLI2] - // [186] phi smc_file_minor#276 = smc_file_minor#0 [phi:main::@132->main::CLI2#0] -- register_copy - // [186] phi smc_file_major#276 = smc_file_major#0 [phi:main::@132->main::CLI2#1] -- register_copy - // [186] phi smc_file_release#276 = smc_file_release#0 [phi:main::@132->main::CLI2#2] -- register_copy - // [186] phi __errno#235 = __errno#18 [phi:main::@132->main::CLI2#3] -- register_copy + // [188] phi from main::@135 to main::CLI2 [phi:main::@135->main::CLI2] + // [188] phi smc_file_minor#277 = smc_file_minor#0 [phi:main::@135->main::CLI2#0] -- register_copy + // [188] phi smc_file_major#277 = smc_file_major#0 [phi:main::@135->main::CLI2#1] -- register_copy + // [188] phi smc_file_release#277 = smc_file_release#0 [phi:main::@135->main::CLI2#2] -- register_copy + // [188] phi __errno#240 = __errno#18 [phi:main::@135->main::CLI2#3] -- register_copy jmp CLI2 - // [186] phi from main::@68 to main::CLI2 [phi:main::@68->main::CLI2] - __b6: - // [186] phi smc_file_minor#276 = 0 [phi:main::@68->main::CLI2#0] -- vbum1=vbuc1 + // [188] phi from main::@70 to main::CLI2 [phi:main::@70->main::CLI2] + __b7: + // [188] phi smc_file_minor#277 = 0 [phi:main::@70->main::CLI2#0] -- vbum1=vbuc1 lda #0 sta smc_file_minor - // [186] phi smc_file_major#276 = 0 [phi:main::@68->main::CLI2#1] -- vbum1=vbuc1 + // [188] phi smc_file_major#277 = 0 [phi:main::@70->main::CLI2#1] -- vbum1=vbuc1 sta smc_file_major - // [186] phi smc_file_release#276 = 0 [phi:main::@68->main::CLI2#2] -- vbum1=vbuc1 + // [188] phi smc_file_release#277 = 0 [phi:main::@70->main::CLI2#2] -- vbum1=vbuc1 sta smc_file_release - // [186] phi __errno#235 = 0 [phi:main::@68->main::CLI2#3] -- vwsz1=vwsc1 + // [188] phi __errno#240 = 0 [phi:main::@70->main::CLI2#3] -- vwsz1=vwsc1 sta.z __errno sta.z __errno+1 // main::CLI2 @@ -1209,17 +1217,17 @@ main: { // asm // asm { cli } cli - // [188] phi from main::CLI2 to main::@69 [phi:main::CLI2->main::@69] - // main::@69 + // [190] phi from main::CLI2 to main::@71 [phi:main::CLI2->main::@71] + // main::@71 // display_info_vera(STATUS_SKIP, "VERA not yet supported.") - // [189] call display_info_vera - // [930] phi from main::@69 to display_info_vera [phi:main::@69->display_info_vera] - // [930] phi display_info_vera::info_text#10 = main::info_text5 [phi:main::@69->display_info_vera#0] -- pbuz1=pbuc1 + // [191] call display_info_vera + // [937] phi from main::@71 to display_info_vera [phi:main::@71->display_info_vera] + // [937] phi display_info_vera::info_text#10 = main::info_text5 [phi:main::@71->display_info_vera#0] -- pbuz1=pbuc1 lda #info_text5 sta.z display_info_vera.info_text+1 - // [930] phi display_info_vera::info_status#4 = STATUS_SKIP [phi:main::@69->display_info_vera#1] -- vbuz1=vbuc1 + // [937] phi display_info_vera::info_status#4 = STATUS_SKIP [phi:main::@71->display_info_vera#1] -- vbuz1=vbuc1 lda #STATUS_SKIP sta.z display_info_vera.info_status jsr display_info_vera @@ -1227,19 +1235,19 @@ main: { // asm // asm { sei } sei - // [191] phi from main::SEI4 to main::@30 [phi:main::SEI4->main::@30] - // [191] phi __errno#114 = __errno#235 [phi:main::SEI4->main::@30#0] -- register_copy - // [191] phi main::rom_chip2#10 = 0 [phi:main::SEI4->main::@30#1] -- vbum1=vbuc1 + // [193] phi from main::SEI4 to main::@32 [phi:main::SEI4->main::@32] + // [193] phi __errno#116 = __errno#240 [phi:main::SEI4->main::@32#0] -- register_copy + // [193] phi main::rom_chip2#10 = 0 [phi:main::SEI4->main::@32#1] -- vbum1=vbuc1 lda #0 sta rom_chip2 // We loop all the possible ROM chip slots on the board and on the extension card, // and we check the file contents. // Any error identified gets reported and this chip will not be flashed. // In case of ROM0.BIN in error, no flashing will be done! - // main::@30 - __b30: + // main::@32 + __b32: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [192] if(main::rom_chip2#10<8) goto main::bank_set_brom5 -- vbum1_lt_vbuc1_then_la1 + // [194] if(main::rom_chip2#10<8) goto main::bank_set_brom5 -- vbum1_lt_vbuc1_then_la1 lda rom_chip2 cmp #8 bcs !bank_set_brom5+ @@ -1247,7 +1255,7 @@ main: { !bank_set_brom5: // main::bank_set_brom6 // BROM = bank - // [193] BROM = main::bank_set_brom6_bank#0 -- vbuz1=vbuc1 + // [195] BROM = main::bank_set_brom6_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom6_bank sta.z BROM // main::CLI3 @@ -1256,7 +1264,7 @@ main: { cli // main::check_status_smc2 // status_smc == status - // [195] main::check_status_smc2_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 + // [197] main::check_status_smc2_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASH beq !+ @@ -1265,12 +1273,12 @@ main: { eor #1 sta check_status_smc2_main__0 // return (unsigned char)(status_smc == status); - // [196] main::check_status_smc2_return#0 = (char)main::check_status_smc2_$0 - // [197] phi from main::check_status_smc2 to main::check_status_cx16_rom1 [phi:main::check_status_smc2->main::check_status_cx16_rom1] + // [198] main::check_status_smc2_return#0 = (char)main::check_status_smc2_$0 + // [199] phi from main::check_status_smc2 to main::check_status_cx16_rom1 [phi:main::check_status_smc2->main::check_status_cx16_rom1] // main::check_status_cx16_rom1 // main::check_status_cx16_rom1_check_status_rom1 // status_rom[rom_chip] == status - // [198] main::check_status_cx16_rom1_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 + // [200] main::check_status_cx16_rom1_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 lda status_rom eor #STATUS_FLASH beq !+ @@ -1279,22 +1287,22 @@ main: { eor #1 sta.z check_status_cx16_rom1_check_status_rom1_main__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [199] main::check_status_cx16_rom1_check_status_rom1_return#0 = (char)main::check_status_cx16_rom1_check_status_rom1_$0 - // main::@71 + // [201] main::check_status_cx16_rom1_check_status_rom1_return#0 = (char)main::check_status_cx16_rom1_check_status_rom1_$0 + // main::@73 // if(!check_status_smc(STATUS_FLASH) && check_status_cx16_rom(STATUS_FLASH)) - // [200] if(0!=main::check_status_smc2_return#0) goto main::check_status_smc3 -- 0_neq_vbum1_then_la1 + // [202] if(0!=main::check_status_smc2_return#0) goto main::check_status_smc3 -- 0_neq_vbum1_then_la1 lda check_status_smc2_return bne check_status_smc3 - // main::@225 - // [201] if(0!=main::check_status_cx16_rom1_check_status_rom1_return#0) goto main::@37 -- 0_neq_vbuz1_then_la1 + // main::@229 + // [203] if(0!=main::check_status_cx16_rom1_check_status_rom1_return#0) goto main::@39 -- 0_neq_vbuz1_then_la1 lda.z check_status_cx16_rom1_check_status_rom1_return - beq !__b37+ - jmp __b37 - !__b37: + beq !__b39+ + jmp __b39 + !__b39: // main::check_status_smc3 check_status_smc3: // status_smc == status - // [202] main::check_status_smc3_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 + // [204] main::check_status_smc3_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASH beq !+ @@ -1303,12 +1311,12 @@ main: { eor #1 sta check_status_smc3_main__0 // return (unsigned char)(status_smc == status); - // [203] main::check_status_smc3_return#0 = (char)main::check_status_smc3_$0 - // [204] phi from main::check_status_smc3 to main::check_status_cx16_rom2 [phi:main::check_status_smc3->main::check_status_cx16_rom2] + // [205] main::check_status_smc3_return#0 = (char)main::check_status_smc3_$0 + // [206] phi from main::check_status_smc3 to main::check_status_cx16_rom2 [phi:main::check_status_smc3->main::check_status_cx16_rom2] // main::check_status_cx16_rom2 // main::check_status_cx16_rom2_check_status_rom1 // status_rom[rom_chip] == status - // [205] main::check_status_cx16_rom2_check_status_rom1_$0 = *status_rom == STATUS_NONE -- vbom1=_deref_pbuc1_eq_vbuc2 + // [207] main::check_status_cx16_rom2_check_status_rom1_$0 = *status_rom == STATUS_NONE -- vbom1=_deref_pbuc1_eq_vbuc2 lda status_rom eor #STATUS_NONE beq !+ @@ -1317,15 +1325,15 @@ main: { eor #1 sta check_status_cx16_rom2_check_status_rom1_main__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [206] main::check_status_cx16_rom2_check_status_rom1_return#0 = (char)main::check_status_cx16_rom2_check_status_rom1_$0 - // main::@74 + // [208] main::check_status_cx16_rom2_check_status_rom1_return#0 = (char)main::check_status_cx16_rom2_check_status_rom1_$0 + // main::@76 // if(check_status_smc(STATUS_FLASH) && check_status_cx16_rom(STATUS_NONE)) - // [207] if(0==main::check_status_smc3_return#0) goto main::check_status_smc4 -- 0_eq_vbum1_then_la1 + // [209] if(0==main::check_status_smc3_return#0) goto main::check_status_smc4 -- 0_eq_vbum1_then_la1 // VA3 | SMC.BIN and CX16 ROM not Detected | Display issue and don't flash. Ask to close the J1 jumper pins on the CX16 main board. | Issue lda check_status_smc3_return beq check_status_smc4 - // main::@226 - // [208] if(0!=main::check_status_cx16_rom2_check_status_rom1_return#0) goto main::@3 -- 0_neq_vbum1_then_la1 + // main::@230 + // [210] if(0!=main::check_status_cx16_rom2_check_status_rom1_return#0) goto main::@3 -- 0_neq_vbum1_then_la1 lda check_status_cx16_rom2_check_status_rom1_return beq !__b3+ jmp __b3 @@ -1333,7 +1341,7 @@ main: { // main::check_status_smc4 check_status_smc4: // status_smc == status - // [209] main::check_status_smc4_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 + // [211] main::check_status_smc4_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASH beq !+ @@ -1342,12 +1350,12 @@ main: { eor #1 sta check_status_smc4_main__0 // return (unsigned char)(status_smc == status); - // [210] main::check_status_smc4_return#0 = (char)main::check_status_smc4_$0 - // [211] phi from main::check_status_smc4 to main::check_status_cx16_rom3 [phi:main::check_status_smc4->main::check_status_cx16_rom3] + // [212] main::check_status_smc4_return#0 = (char)main::check_status_smc4_$0 + // [213] phi from main::check_status_smc4 to main::check_status_cx16_rom3 [phi:main::check_status_smc4->main::check_status_cx16_rom3] // main::check_status_cx16_rom3 // main::check_status_cx16_rom3_check_status_rom1 // status_rom[rom_chip] == status - // [212] main::check_status_cx16_rom3_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vbom1=_deref_pbuc1_eq_vbuc2 + // [214] main::check_status_cx16_rom3_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vbom1=_deref_pbuc1_eq_vbuc2 lda status_rom eor #STATUS_FLASH beq !+ @@ -1356,22 +1364,22 @@ main: { eor #1 sta check_status_cx16_rom3_check_status_rom1_main__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [213] main::check_status_cx16_rom3_check_status_rom1_return#0 = (char)main::check_status_cx16_rom3_check_status_rom1_$0 - // main::@75 + // [215] main::check_status_cx16_rom3_check_status_rom1_return#0 = (char)main::check_status_cx16_rom3_check_status_rom1_$0 + // main::@77 // if(check_status_smc(STATUS_FLASH) && !check_status_cx16_rom(STATUS_FLASH)) - // [214] if(0==main::check_status_smc4_return#0) goto main::check_status_smc5 -- 0_eq_vbum1_then_la1 + // [216] if(0==main::check_status_smc4_return#0) goto main::check_status_smc5 -- 0_eq_vbum1_then_la1 lda check_status_smc4_return beq check_status_smc5 - // main::@227 - // [215] if(0==main::check_status_cx16_rom3_check_status_rom1_return#0) goto main::@4 -- 0_eq_vbum1_then_la1 + // main::@231 + // [217] if(0==main::check_status_cx16_rom3_check_status_rom1_return#0) goto main::@5 -- 0_eq_vbum1_then_la1 lda check_status_cx16_rom3_check_status_rom1_return - bne !__b4+ - jmp __b4 - !__b4: + bne !__b5+ + jmp __b5 + !__b5: // main::check_status_smc5 check_status_smc5: // status_smc == status - // [216] main::check_status_smc5_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 + // [218] main::check_status_smc5_$0 = status_smc#0 == STATUS_FLASH -- vbom1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASH beq !+ @@ -1380,12 +1388,12 @@ main: { eor #1 sta check_status_smc5_main__0 // return (unsigned char)(status_smc == status); - // [217] main::check_status_smc5_return#0 = (char)main::check_status_smc5_$0 - // [218] phi from main::check_status_smc5 to main::check_status_cx16_rom4 [phi:main::check_status_smc5->main::check_status_cx16_rom4] + // [219] main::check_status_smc5_return#0 = (char)main::check_status_smc5_$0 + // [220] phi from main::check_status_smc5 to main::check_status_cx16_rom4 [phi:main::check_status_smc5->main::check_status_cx16_rom4] // main::check_status_cx16_rom4 // main::check_status_cx16_rom4_check_status_rom1 // status_rom[rom_chip] == status - // [219] main::check_status_cx16_rom4_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 + // [221] main::check_status_cx16_rom4_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 lda status_rom eor #STATUS_FLASH beq !+ @@ -1394,37 +1402,37 @@ main: { eor #1 sta.z check_status_cx16_rom4_check_status_rom1_main__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [220] main::check_status_cx16_rom4_check_status_rom1_return#0 = (char)main::check_status_cx16_rom4_check_status_rom1_$0 - // main::@76 + // [222] main::check_status_cx16_rom4_check_status_rom1_return#0 = (char)main::check_status_cx16_rom4_check_status_rom1_$0 + // main::@78 // smc_supported_rom(rom_release[0]) - // [221] smc_supported_rom::rom_release#0 = *rom_release -- vbuz1=_deref_pbuc1 + // [223] smc_supported_rom::rom_release#0 = *rom_release -- vbuz1=_deref_pbuc1 lda rom_release sta.z smc_supported_rom.rom_release - // [222] call smc_supported_rom - // [1162] phi from main::@76 to smc_supported_rom [phi:main::@76->smc_supported_rom] + // [224] call smc_supported_rom + // [1172] phi from main::@78 to smc_supported_rom [phi:main::@78->smc_supported_rom] jsr smc_supported_rom // smc_supported_rom(rom_release[0]) - // [223] smc_supported_rom::return#3 = smc_supported_rom::return#2 - // main::@167 - // [224] main::$50 = smc_supported_rom::return#3 + // [225] smc_supported_rom::return#3 = smc_supported_rom::return#2 + // main::@170 + // [226] main::$50 = smc_supported_rom::return#3 // if(check_status_smc(STATUS_FLASH) && check_status_cx16_rom(STATUS_FLASH) && !smc_supported_rom(rom_release[0])) - // [225] if(0==main::check_status_smc5_return#0) goto main::check_status_smc6 -- 0_eq_vbum1_then_la1 + // [227] if(0==main::check_status_smc5_return#0) goto main::check_status_smc6 -- 0_eq_vbum1_then_la1 lda check_status_smc5_return beq check_status_smc6 - // main::@229 - // [226] if(0==main::check_status_cx16_rom4_check_status_rom1_return#0) goto main::check_status_smc6 -- 0_eq_vbuz1_then_la1 + // main::@233 + // [228] if(0==main::check_status_cx16_rom4_check_status_rom1_return#0) goto main::check_status_smc6 -- 0_eq_vbuz1_then_la1 lda.z check_status_cx16_rom4_check_status_rom1_return beq check_status_smc6 - // main::@228 - // [227] if(0==main::$50) goto main::@5 -- 0_eq_vbum1_then_la1 + // main::@232 + // [229] if(0==main::$50) goto main::@6 -- 0_eq_vbum1_then_la1 lda main__50 - bne !__b5+ - jmp __b5 - !__b5: + bne !__b6+ + jmp __b6 + !__b6: // main::check_status_smc6 check_status_smc6: // status_smc == status - // [228] main::check_status_smc6_$0 = status_smc#0 == STATUS_FLASH -- vboz1=vbum2_eq_vbuc1 + // [230] main::check_status_smc6_$0 = status_smc#0 == STATUS_FLASH -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASH beq !+ @@ -1433,23 +1441,23 @@ main: { eor #1 sta.z check_status_smc6_main__0 // return (unsigned char)(status_smc == status); - // [229] main::check_status_smc6_return#0 = (char)main::check_status_smc6_$0 - // main::@77 + // [231] main::check_status_smc6_return#0 = (char)main::check_status_smc6_$0 + // main::@79 // if(check_status_smc(STATUS_FLASH) && smc_release == smc_file_release && smc_major == smc_file_major && smc_minor == smc_file_minor) - // [230] if(0==main::check_status_smc6_return#0) goto main::check_status_smc7 -- 0_eq_vbuz1_then_la1 + // [232] if(0==main::check_status_smc6_return#0) goto main::check_status_smc7 -- 0_eq_vbuz1_then_la1 lda.z check_status_smc6_return beq check_status_smc7 - // main::@232 - // [231] if(smc_release#360==smc_file_release#276) goto main::@231 -- vbum1_eq_vbum2_then_la1 + // main::@236 + // [233] if(smc_release#363==smc_file_release#277) goto main::@235 -- vbum1_eq_vbum2_then_la1 lda smc_release cmp smc_file_release - bne !__b231+ - jmp __b231 - !__b231: + bne !__b235+ + jmp __b235 + !__b235: // main::check_status_smc7 check_status_smc7: // status_smc == status - // [232] main::check_status_smc7_$0 = status_smc#0 == STATUS_ISSUE -- vboz1=vbum2_eq_vbuc1 + // [234] main::check_status_smc7_$0 = status_smc#0 == STATUS_ISSUE -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_ISSUE beq !+ @@ -1458,10 +1466,10 @@ main: { eor #1 sta.z check_status_smc7_main__0 // return (unsigned char)(status_smc == status); - // [233] main::check_status_smc7_return#0 = (char)main::check_status_smc7_$0 + // [235] main::check_status_smc7_return#0 = (char)main::check_status_smc7_$0 // main::check_status_vera1 // status_vera == status - // [234] main::check_status_vera1_$0 = status_vera#0 == STATUS_ISSUE -- vbom1=vbum2_eq_vbuc1 + // [236] main::check_status_vera1_$0 = status_vera#0 == STATUS_ISSUE -- vbom1=vbum2_eq_vbuc1 lda status_vera eor #STATUS_ISSUE beq !+ @@ -1470,25 +1478,25 @@ main: { eor #1 sta check_status_vera1_main__0 // return (unsigned char)(status_vera == status); - // [235] main::check_status_vera1_return#0 = (char)main::check_status_vera1_$0 - // [236] phi from main::check_status_vera1 to main::@78 [phi:main::check_status_vera1->main::@78] - // main::@78 + // [237] main::check_status_vera1_return#0 = (char)main::check_status_vera1_$0 + // [238] phi from main::check_status_vera1 to main::@80 [phi:main::check_status_vera1->main::@80] + // main::@80 // check_status_roms(STATUS_ISSUE) - // [237] call check_status_roms - // [1169] phi from main::@78 to check_status_roms [phi:main::@78->check_status_roms] - // [1169] phi check_status_roms::status#6 = STATUS_ISSUE [phi:main::@78->check_status_roms#0] -- vbuz1=vbuc1 + // [239] call check_status_roms + // [1179] phi from main::@80 to check_status_roms [phi:main::@80->check_status_roms] + // [1179] phi check_status_roms::status#6 = STATUS_ISSUE [phi:main::@80->check_status_roms#0] -- vbuz1=vbuc1 lda #STATUS_ISSUE sta.z check_status_roms.status jsr check_status_roms // check_status_roms(STATUS_ISSUE) - // [238] check_status_roms::return#3 = check_status_roms::return#2 - // main::@172 - // [239] main::$67 = check_status_roms::return#3 -- vbum1=vbum2 + // [240] check_status_roms::return#3 = check_status_roms::return#2 + // main::@175 + // [241] main::$67 = check_status_roms::return#3 -- vbum1=vbum2 lda check_status_roms.return sta main__67 // main::check_status_smc8 // status_smc == status - // [240] main::check_status_smc8_$0 = status_smc#0 == STATUS_ERROR -- vboz1=vbum2_eq_vbuc1 + // [242] main::check_status_smc8_$0 = status_smc#0 == STATUS_ERROR -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_ERROR beq !+ @@ -1497,10 +1505,10 @@ main: { eor #1 sta.z check_status_smc8_main__0 // return (unsigned char)(status_smc == status); - // [241] main::check_status_smc8_return#0 = (char)main::check_status_smc8_$0 + // [243] main::check_status_smc8_return#0 = (char)main::check_status_smc8_$0 // main::check_status_vera2 // status_vera == status - // [242] main::check_status_vera2_$0 = status_vera#0 == STATUS_ERROR -- vbom1=vbum2_eq_vbuc1 + // [244] main::check_status_vera2_$0 = status_vera#0 == STATUS_ERROR -- vbom1=vbum2_eq_vbuc1 lda status_vera eor #STATUS_ERROR beq !+ @@ -1509,47 +1517,53 @@ main: { eor #1 sta check_status_vera2_main__0 // return (unsigned char)(status_vera == status); - // [243] main::check_status_vera2_return#0 = (char)main::check_status_vera2_$0 - // [244] phi from main::check_status_vera2 to main::@79 [phi:main::check_status_vera2->main::@79] - // main::@79 + // [245] main::check_status_vera2_return#0 = (char)main::check_status_vera2_$0 + // [246] phi from main::check_status_vera2 to main::@81 [phi:main::check_status_vera2->main::@81] + // main::@81 // check_status_roms(STATUS_ERROR) - // [245] call check_status_roms - // [1169] phi from main::@79 to check_status_roms [phi:main::@79->check_status_roms] - // [1169] phi check_status_roms::status#6 = STATUS_ERROR [phi:main::@79->check_status_roms#0] -- vbuz1=vbuc1 + // [247] call check_status_roms + // [1179] phi from main::@81 to check_status_roms [phi:main::@81->check_status_roms] + // [1179] phi check_status_roms::status#6 = STATUS_ERROR [phi:main::@81->check_status_roms#0] -- vbuz1=vbuc1 lda #STATUS_ERROR sta.z check_status_roms.status jsr check_status_roms // check_status_roms(STATUS_ERROR) - // [246] check_status_roms::return#4 = check_status_roms::return#2 - // main::@173 - // [247] main::$76 = check_status_roms::return#4 + // [248] check_status_roms::return#4 = check_status_roms::return#2 + // main::@176 + // [249] main::$76 = check_status_roms::return#4 // if(!check_status_smc(STATUS_ISSUE) && !check_status_vera(STATUS_ISSUE) && !check_status_roms(STATUS_ISSUE) && // !check_status_smc(STATUS_ERROR) && !check_status_vera(STATUS_ERROR) && !check_status_roms(STATUS_ERROR)) - // [248] if(0!=main::check_status_smc7_return#0) goto main::check_status_smc9 -- 0_neq_vbuz1_then_la1 + // [250] if(0!=main::check_status_smc7_return#0) goto main::@4 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc7_return - bne check_status_smc9 - // main::@237 - // [249] if(0==main::check_status_vera1_return#0) goto main::@236 -- 0_eq_vbum1_then_la1 + bne __b4 + // main::@241 + // [251] if(0==main::check_status_vera1_return#0) goto main::@240 -- 0_eq_vbum1_then_la1 lda check_status_vera1_return - bne !__b236+ - jmp __b236 - !__b236: + bne !__b240+ + jmp __b240 + !__b240: + // [252] phi from main::@176 main::@237 main::@238 main::@239 main::@240 main::@241 main::@46 to main::@4 [phi:main::@176/main::@237/main::@238/main::@239/main::@240/main::@241/main::@46->main::@4] + // main::@4 + __b4: + // display_progress_clear() + // [253] call display_progress_clear + // [859] phi from main::@4 to display_progress_clear [phi:main::@4->display_progress_clear] + jsr display_progress_clear // main::check_status_smc9 - check_status_smc9: // status_smc == status - // [250] main::check_status_smc9_$0 = status_smc#0 == STATUS_SKIP -- vboz1=vbum2_eq_vbuc1 + // [254] main::check_status_smc9_$0 = status_smc#0 == STATUS_SKIP -- vbom1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_SKIP beq !+ lda #1 !: eor #1 - sta.z check_status_smc9_main__0 + sta check_status_smc9_main__0 // return (unsigned char)(status_smc == status); - // [251] main::check_status_smc9_return#0 = (char)main::check_status_smc9_$0 + // [255] main::check_status_smc9_return#0 = (char)main::check_status_smc9_$0 // main::check_status_smc10 // status_smc == status - // [252] main::check_status_smc10_$0 = status_smc#0 == STATUS_NONE -- vboz1=vbum2_eq_vbuc1 + // [256] main::check_status_smc10_$0 = status_smc#0 == STATUS_NONE -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_NONE beq !+ @@ -1558,10 +1572,10 @@ main: { eor #1 sta.z check_status_smc10_main__0 // return (unsigned char)(status_smc == status); - // [253] main::check_status_smc10_return#0 = (char)main::check_status_smc10_$0 + // [257] main::check_status_smc10_return#0 = (char)main::check_status_smc10_$0 // main::check_status_vera3 // status_vera == status - // [254] main::check_status_vera3_$0 = status_vera#0 == STATUS_SKIP -- vboz1=vbum2_eq_vbuc1 + // [258] main::check_status_vera3_$0 = status_vera#0 == STATUS_SKIP -- vboz1=vbum2_eq_vbuc1 lda status_vera eor #STATUS_SKIP beq !+ @@ -1570,10 +1584,10 @@ main: { eor #1 sta.z check_status_vera3_main__0 // return (unsigned char)(status_vera == status); - // [255] main::check_status_vera3_return#0 = (char)main::check_status_vera3_$0 + // [259] main::check_status_vera3_return#0 = (char)main::check_status_vera3_$0 // main::check_status_vera4 // status_vera == status - // [256] main::check_status_vera4_$0 = status_vera#0 == STATUS_NONE -- vboz1=vbum2_eq_vbuc1 + // [260] main::check_status_vera4_$0 = status_vera#0 == STATUS_NONE -- vboz1=vbum2_eq_vbuc1 lda status_vera eor #STATUS_NONE beq !+ @@ -1582,35 +1596,35 @@ main: { eor #1 sta.z check_status_vera4_main__0 // return (unsigned char)(status_vera == status); - // [257] main::check_status_vera4_return#0 = (char)main::check_status_vera4_$0 - // [258] phi from main::check_status_vera4 to main::@80 [phi:main::check_status_vera4->main::@80] - // main::@80 + // [261] main::check_status_vera4_return#0 = (char)main::check_status_vera4_$0 + // [262] phi from main::check_status_vera4 to main::@82 [phi:main::check_status_vera4->main::@82] + // main::@82 // check_status_roms_less(STATUS_SKIP) - // [259] call check_status_roms_less - // [1178] phi from main::@80 to check_status_roms_less [phi:main::@80->check_status_roms_less] + // [263] call check_status_roms_less + // [1188] phi from main::@82 to check_status_roms_less [phi:main::@82->check_status_roms_less] jsr check_status_roms_less // check_status_roms_less(STATUS_SKIP) - // [260] check_status_roms_less::return#3 = check_status_roms_less::return#2 - // main::@176 - // [261] main::$87 = check_status_roms_less::return#3 + // [264] check_status_roms_less::return#3 = check_status_roms_less::return#2 + // main::@179 + // [265] main::$88 = check_status_roms_less::return#3 // if((check_status_smc(STATUS_SKIP) || check_status_smc(STATUS_NONE)) && // (check_status_vera(STATUS_SKIP) || check_status_vera(STATUS_NONE)) && // check_status_roms_less(STATUS_SKIP)) - // [262] if(0!=main::check_status_smc9_return#0) goto main::@239 -- 0_neq_vbuz1_then_la1 - lda.z check_status_smc9_return - beq !__b239+ - jmp __b239 - !__b239: - // main::@240 - // [263] if(0!=main::check_status_smc10_return#0) goto main::@239 -- 0_neq_vbuz1_then_la1 + // [266] if(0!=main::check_status_smc9_return#0) goto main::@243 -- 0_neq_vbum1_then_la1 + lda check_status_smc9_return + beq !__b243+ + jmp __b243 + !__b243: + // main::@244 + // [267] if(0!=main::check_status_smc10_return#0) goto main::@243 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc10_return - beq !__b239+ - jmp __b239 - !__b239: + beq !__b243+ + jmp __b243 + !__b243: // main::check_status_smc15 check_status_smc15: // status_smc == status - // [264] main::check_status_smc15_$0 = status_smc#0 == STATUS_ERROR -- vboz1=vbum2_eq_vbuc1 + // [268] main::check_status_smc15_$0 = status_smc#0 == STATUS_ERROR -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_ERROR beq !+ @@ -1619,10 +1633,10 @@ main: { eor #1 sta.z check_status_smc15_main__0 // return (unsigned char)(status_smc == status); - // [265] main::check_status_smc15_return#0 = (char)main::check_status_smc15_$0 + // [269] main::check_status_smc15_return#0 = (char)main::check_status_smc15_$0 // main::check_status_vera5 // status_vera == status - // [266] main::check_status_vera5_$0 = status_vera#0 == STATUS_ERROR -- vboz1=vbum2_eq_vbuc1 + // [270] main::check_status_vera5_$0 = status_vera#0 == STATUS_ERROR -- vboz1=vbum2_eq_vbuc1 lda status_vera eor #STATUS_ERROR beq !+ @@ -1631,41 +1645,41 @@ main: { eor #1 sta.z check_status_vera5_main__0 // return (unsigned char)(status_vera == status); - // [267] main::check_status_vera5_return#0 = (char)main::check_status_vera5_$0 - // [268] phi from main::check_status_vera5 to main::@87 [phi:main::check_status_vera5->main::@87] - // main::@87 + // [271] main::check_status_vera5_return#0 = (char)main::check_status_vera5_$0 + // [272] phi from main::check_status_vera5 to main::@89 [phi:main::check_status_vera5->main::@89] + // main::@89 // check_status_roms(STATUS_ERROR) - // [269] call check_status_roms - // [1169] phi from main::@87 to check_status_roms [phi:main::@87->check_status_roms] - // [1169] phi check_status_roms::status#6 = STATUS_ERROR [phi:main::@87->check_status_roms#0] -- vbuz1=vbuc1 + // [273] call check_status_roms + // [1179] phi from main::@89 to check_status_roms [phi:main::@89->check_status_roms] + // [1179] phi check_status_roms::status#6 = STATUS_ERROR [phi:main::@89->check_status_roms#0] -- vbuz1=vbuc1 lda #STATUS_ERROR sta.z check_status_roms.status jsr check_status_roms // check_status_roms(STATUS_ERROR) - // [270] check_status_roms::return#10 = check_status_roms::return#2 - // main::@207 - // [271] main::$250 = check_status_roms::return#10 + // [274] check_status_roms::return#10 = check_status_roms::return#2 + // main::@211 + // [275] main::$254 = check_status_roms::return#10 // if(check_status_smc(STATUS_ERROR) || check_status_vera(STATUS_ERROR) || check_status_roms(STATUS_ERROR)) - // [272] if(0!=main::check_status_smc15_return#0) goto main::vera_display_set_border_color2 -- 0_neq_vbuz1_then_la1 + // [276] if(0!=main::check_status_smc15_return#0) goto main::vera_display_set_border_color2 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc15_return beq !vera_display_set_border_color2+ jmp vera_display_set_border_color2 !vera_display_set_border_color2: - // main::@247 - // [273] if(0!=main::check_status_vera5_return#0) goto main::vera_display_set_border_color2 -- 0_neq_vbuz1_then_la1 + // main::@251 + // [277] if(0!=main::check_status_vera5_return#0) goto main::vera_display_set_border_color2 -- 0_neq_vbuz1_then_la1 lda.z check_status_vera5_return beq !vera_display_set_border_color2+ jmp vera_display_set_border_color2 !vera_display_set_border_color2: - // main::@246 - // [274] if(0!=main::$250) goto main::vera_display_set_border_color2 -- 0_neq_vbum1_then_la1 - lda main__250 + // main::@250 + // [278] if(0!=main::$254) goto main::vera_display_set_border_color2 -- 0_neq_vbum1_then_la1 + lda main__254 beq !vera_display_set_border_color2+ jmp vera_display_set_border_color2 !vera_display_set_border_color2: // main::check_status_smc16 // status_smc == status - // [275] main::check_status_smc16_$0 = status_smc#0 == STATUS_ISSUE -- vboz1=vbum2_eq_vbuc1 + // [279] main::check_status_smc16_$0 = status_smc#0 == STATUS_ISSUE -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_ISSUE beq !+ @@ -1674,10 +1688,10 @@ main: { eor #1 sta.z check_status_smc16_main__0 // return (unsigned char)(status_smc == status); - // [276] main::check_status_smc16_return#0 = (char)main::check_status_smc16_$0 + // [280] main::check_status_smc16_return#0 = (char)main::check_status_smc16_$0 // main::check_status_vera6 // status_vera == status - // [277] main::check_status_vera6_$0 = status_vera#0 == STATUS_ISSUE -- vboz1=vbum2_eq_vbuc1 + // [281] main::check_status_vera6_$0 = status_vera#0 == STATUS_ISSUE -- vboz1=vbum2_eq_vbuc1 lda status_vera eor #STATUS_ISSUE beq !+ @@ -1686,62 +1700,62 @@ main: { eor #1 sta.z check_status_vera6_main__0 // return (unsigned char)(status_vera == status); - // [278] main::check_status_vera6_return#0 = (char)main::check_status_vera6_$0 - // [279] phi from main::check_status_vera6 to main::@89 [phi:main::check_status_vera6->main::@89] - // main::@89 + // [282] main::check_status_vera6_return#0 = (char)main::check_status_vera6_$0 + // [283] phi from main::check_status_vera6 to main::@91 [phi:main::check_status_vera6->main::@91] + // main::@91 // check_status_roms(STATUS_ISSUE) - // [280] call check_status_roms - // [1169] phi from main::@89 to check_status_roms [phi:main::@89->check_status_roms] - // [1169] phi check_status_roms::status#6 = STATUS_ISSUE [phi:main::@89->check_status_roms#0] -- vbuz1=vbuc1 + // [284] call check_status_roms + // [1179] phi from main::@91 to check_status_roms [phi:main::@91->check_status_roms] + // [1179] phi check_status_roms::status#6 = STATUS_ISSUE [phi:main::@91->check_status_roms#0] -- vbuz1=vbuc1 lda #STATUS_ISSUE sta.z check_status_roms.status jsr check_status_roms // check_status_roms(STATUS_ISSUE) - // [281] check_status_roms::return#11 = check_status_roms::return#2 - // main::@209 - // [282] main::$255 = check_status_roms::return#11 + // [285] check_status_roms::return#11 = check_status_roms::return#2 + // main::@213 + // [286] main::$259 = check_status_roms::return#11 // if(check_status_smc(STATUS_ISSUE) || check_status_vera(STATUS_ISSUE) || check_status_roms(STATUS_ISSUE)) - // [283] if(0!=main::check_status_smc16_return#0) goto main::vera_display_set_border_color3 -- 0_neq_vbuz1_then_la1 + // [287] if(0!=main::check_status_smc16_return#0) goto main::vera_display_set_border_color3 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc16_return beq !vera_display_set_border_color3+ jmp vera_display_set_border_color3 !vera_display_set_border_color3: - // main::@249 - // [284] if(0!=main::check_status_vera6_return#0) goto main::vera_display_set_border_color3 -- 0_neq_vbuz1_then_la1 + // main::@253 + // [288] if(0!=main::check_status_vera6_return#0) goto main::vera_display_set_border_color3 -- 0_neq_vbuz1_then_la1 lda.z check_status_vera6_return beq !vera_display_set_border_color3+ jmp vera_display_set_border_color3 !vera_display_set_border_color3: - // main::@248 - // [285] if(0!=main::$255) goto main::vera_display_set_border_color3 -- 0_neq_vbum1_then_la1 - lda main__255 + // main::@252 + // [289] if(0!=main::$259) goto main::vera_display_set_border_color3 -- 0_neq_vbum1_then_la1 + lda main__259 beq !vera_display_set_border_color3+ jmp vera_display_set_border_color3 !vera_display_set_border_color3: // main::vera_display_set_border_color4 // *VERA_CTRL &= ~VERA_DCSEL - // [286] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [290] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_DCSEL^$ff and VERA_CTRL sta VERA_CTRL // *VERA_DC_BORDER = color - // [287] *VERA_DC_BORDER = GREEN -- _deref_pbuc1=vbuc2 + // [291] *VERA_DC_BORDER = GREEN -- _deref_pbuc1=vbuc2 lda #GREEN sta VERA_DC_BORDER - // [288] phi from main::vera_display_set_border_color4 to main::@91 [phi:main::vera_display_set_border_color4->main::@91] - // main::@91 + // [292] phi from main::vera_display_set_border_color4 to main::@93 [phi:main::vera_display_set_border_color4->main::@93] + // main::@93 // display_action_progress("Your CX16 update is a success!") - // [289] call display_action_progress - // [838] phi from main::@91 to display_action_progress [phi:main::@91->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text39 [phi:main::@91->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text41 [phi:main::@93->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text39 + lda #>info_text41 sta.z display_action_progress.info_text+1 jsr display_action_progress // main::check_status_smc17 // status_smc == status - // [290] main::check_status_smc17_$0 = status_smc#0 == STATUS_FLASHED -- vboz1=vbum2_eq_vbuc1 + // [294] main::check_status_smc17_$0 = status_smc#0 == STATUS_FLASHED -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASHED beq !+ @@ -1750,457 +1764,457 @@ main: { eor #1 sta.z check_status_smc17_main__0 // return (unsigned char)(status_smc == status); - // [291] main::check_status_smc17_return#0 = (char)main::check_status_smc17_$0 - // main::@92 + // [295] main::check_status_smc17_return#0 = (char)main::check_status_smc17_$0 + // main::@94 // if(check_status_smc(STATUS_FLASHED)) - // [292] if(0!=main::check_status_smc17_return#0) goto main::@56 -- 0_neq_vbuz1_then_la1 + // [296] if(0!=main::check_status_smc17_return#0) goto main::@58 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc17_return - beq !__b56+ - jmp __b56 - !__b56: - // [293] phi from main::@92 to main::@10 [phi:main::@92->main::@10] - // main::@10 + beq !__b58+ + jmp __b58 + !__b58: + // [297] phi from main::@94 to main::@11 [phi:main::@94->main::@11] + // main::@11 // display_progress_text(display_debriefing_text_rom, display_debriefing_count_rom) - // [294] call display_progress_text - // [1047] phi from main::@10 to display_progress_text [phi:main::@10->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_debriefing_text_rom [phi:main::@10->display_progress_text#0] -- qbuz1=qbuc1 + // [298] call display_progress_text + // [1054] phi from main::@11 to display_progress_text [phi:main::@11->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_debriefing_text_rom [phi:main::@11->display_progress_text#0] -- qbuz1=qbuc1 lda #display_debriefing_text_rom sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_debriefing_count_rom [phi:main::@10->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_debriefing_count_rom [phi:main::@11->display_progress_text#1] -- vbuz1=vbuc1 lda #display_debriefing_count_rom sta.z display_progress_text.lines jsr display_progress_text - // [295] phi from main::@10 main::@218 main::@86 main::@90 to main::@61 [phi:main::@10/main::@218/main::@86/main::@90->main::@61] - __b9: - // [295] phi main::w1#2 = $c8 [phi:main::@10/main::@218/main::@86/main::@90->main::@61#0] -- vbum1=vbuc1 + // [299] phi from main::@11 main::@222 main::@88 main::@92 to main::@63 [phi:main::@11/main::@222/main::@88/main::@92->main::@63] + __b10: + // [299] phi main::w1#2 = $c8 [phi:main::@11/main::@222/main::@88/main::@92->main::@63#0] -- vbum1=vbuc1 lda #$c8 sta w1 // DE6 | Wait until reset - // main::@61 - __b61: + // main::@63 + __b63: // for (unsigned char w=200; w>0; w--) - // [296] if(main::w1#2>0) goto main::@62 -- vbum1_gt_0_then_la1 + // [300] if(main::w1#2>0) goto main::@64 -- vbum1_gt_0_then_la1 lda w1 - bne __b62 - // [297] phi from main::@61 to main::@63 [phi:main::@61->main::@63] - // main::@63 + bne __b64 + // [301] phi from main::@63 to main::@65 [phi:main::@63->main::@65] + // main::@65 // system_reset() - // [298] call system_reset - // [1187] phi from main::@63 to system_reset [phi:main::@63->system_reset] + // [302] call system_reset + // [1197] phi from main::@65 to system_reset [phi:main::@65->system_reset] jsr system_reset // main::@return // } - // [299] return + // [303] return rts - // [300] phi from main::@61 to main::@62 [phi:main::@61->main::@62] - // main::@62 - __b62: + // [304] phi from main::@63 to main::@64 [phi:main::@63->main::@64] + // main::@64 + __b64: // wait_moment() - // [301] call wait_moment - // [1192] phi from main::@62 to wait_moment [phi:main::@62->wait_moment] + // [305] call wait_moment + // [1202] phi from main::@64 to wait_moment [phi:main::@64->wait_moment] jsr wait_moment - // [302] phi from main::@62 to main::@219 [phi:main::@62->main::@219] - // main::@219 + // [306] phi from main::@64 to main::@223 [phi:main::@64->main::@223] + // main::@223 // sprintf(info_text, "(%u) Your CX16 will reset ...", w) - // [303] call snprintf_init - // [1123] phi from main::@219 to snprintf_init [phi:main::@219->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@219->snprintf_init#0] -- pbuz1=pbuc1 + // [307] call snprintf_init + // [1133] phi from main::@223 to snprintf_init [phi:main::@223->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@223->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [304] phi from main::@219 to main::@220 [phi:main::@219->main::@220] - // main::@220 + // [308] phi from main::@223 to main::@224 [phi:main::@223->main::@224] + // main::@224 // sprintf(info_text, "(%u) Your CX16 will reset ...", w) - // [305] call printf_str - // [1128] phi from main::@220 to printf_str [phi:main::@220->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@220->printf_str#0] -- pprz1=pprc1 + // [309] call printf_str + // [1138] phi from main::@224 to printf_str [phi:main::@224->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@224->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s15 [phi:main::@220->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s15 [phi:main::@224->printf_str#1] -- pbuz1=pbuc1 lda #s15 sta.z printf_str.s+1 jsr printf_str - // main::@221 + // main::@225 // sprintf(info_text, "(%u) Your CX16 will reset ...", w) - // [306] printf_uchar::uvalue#13 = main::w1#2 -- vbuz1=vbum2 + // [310] printf_uchar::uvalue#13 = main::w1#2 -- vbuz1=vbum2 lda w1 sta.z printf_uchar.uvalue - // [307] call printf_uchar - // [1197] phi from main::@221 to printf_uchar [phi:main::@221->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:main::@221->printf_uchar#0] -- vbuz1=vbuc1 + // [311] call printf_uchar + // [1207] phi from main::@225 to printf_uchar [phi:main::@225->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:main::@225->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:main::@221->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:main::@225->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:main::@221->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:main::@225->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:main::@221->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:main::@225->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#13 [phi:main::@221->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#13 [phi:main::@225->printf_uchar#4] -- register_copy jsr printf_uchar - // [308] phi from main::@221 to main::@222 [phi:main::@221->main::@222] - // main::@222 + // [312] phi from main::@225 to main::@226 [phi:main::@225->main::@226] + // main::@226 // sprintf(info_text, "(%u) Your CX16 will reset ...", w) - // [309] call printf_str - // [1128] phi from main::@222 to printf_str [phi:main::@222->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@222->printf_str#0] -- pprz1=pprc1 + // [313] call printf_str + // [1138] phi from main::@226 to printf_str [phi:main::@226->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@226->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s19 [phi:main::@222->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s19 [phi:main::@226->printf_str#1] -- pbuz1=pbuc1 lda #s19 sta.z printf_str.s+1 jsr printf_str - // main::@223 + // main::@227 // sprintf(info_text, "(%u) Your CX16 will reset ...", w) - // [310] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [314] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [311] callexecute snputc -- call_vprc1 + // [315] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [313] call display_action_text - // [1208] phi from main::@223 to display_action_text [phi:main::@223->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:main::@223->display_action_text#0] -- pbuz1=pbuc1 + // [317] call display_action_text + // [1218] phi from main::@227 to display_action_text [phi:main::@227->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:main::@227->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text sta.z display_action_text.info_text+1 jsr display_action_text - // main::@224 + // main::@228 // for (unsigned char w=200; w>0; w--) - // [314] main::w1#1 = -- main::w1#2 -- vbum1=_dec_vbum1 + // [318] main::w1#1 = -- main::w1#2 -- vbum1=_dec_vbum1 dec w1 - // [295] phi from main::@224 to main::@61 [phi:main::@224->main::@61] - // [295] phi main::w1#2 = main::w1#1 [phi:main::@224->main::@61#0] -- register_copy - jmp __b61 - // [315] phi from main::@92 to main::@56 [phi:main::@92->main::@56] - // main::@56 - __b56: + // [299] phi from main::@228 to main::@63 [phi:main::@228->main::@63] + // [299] phi main::w1#2 = main::w1#1 [phi:main::@228->main::@63#0] -- register_copy + jmp __b63 + // [319] phi from main::@94 to main::@58 [phi:main::@94->main::@58] + // main::@58 + __b58: // display_progress_text(display_debriefing_text_smc, display_debriefing_count_smc) - // [316] call display_progress_text - // [1047] phi from main::@56 to display_progress_text [phi:main::@56->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_debriefing_text_smc [phi:main::@56->display_progress_text#0] -- qbuz1=qbuc1 + // [320] call display_progress_text + // [1054] phi from main::@58 to display_progress_text [phi:main::@58->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_debriefing_text_smc [phi:main::@58->display_progress_text#0] -- qbuz1=qbuc1 lda #display_debriefing_text_smc sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_debriefing_count_smc [phi:main::@56->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_debriefing_count_smc [phi:main::@58->display_progress_text#1] -- vbuz1=vbuc1 lda #display_debriefing_count_smc sta.z display_progress_text.lines jsr display_progress_text - // [317] phi from main::@56 to main::@57 [phi:main::@56->main::@57] - // [317] phi main::w#2 = $f0 [phi:main::@56->main::@57#0] -- vbum1=vbuc1 + // [321] phi from main::@58 to main::@59 [phi:main::@58->main::@59] + // [321] phi main::w#2 = $f0 [phi:main::@58->main::@59#0] -- vbum1=vbuc1 lda #$f0 sta w - // main::@57 - __b57: + // main::@59 + __b59: // for (unsigned char w=240; w>0; w--) - // [318] if(main::w#2>0) goto main::@58 -- vbum1_gt_0_then_la1 + // [322] if(main::w#2>0) goto main::@60 -- vbum1_gt_0_then_la1 lda w - bne __b58 - // [319] phi from main::@57 to main::@59 [phi:main::@57->main::@59] - // main::@59 + bne __b60 + // [323] phi from main::@59 to main::@61 [phi:main::@59->main::@61] + // main::@61 // sprintf(info_text, "Please disconnect your CX16 from power source ...") - // [320] call snprintf_init - // [1123] phi from main::@59 to snprintf_init [phi:main::@59->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@59->snprintf_init#0] -- pbuz1=pbuc1 + // [324] call snprintf_init + // [1133] phi from main::@61 to snprintf_init [phi:main::@61->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@61->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [321] phi from main::@59 to main::@216 [phi:main::@59->main::@216] - // main::@216 + // [325] phi from main::@61 to main::@220 [phi:main::@61->main::@220] + // main::@220 // sprintf(info_text, "Please disconnect your CX16 from power source ...") - // [322] call printf_str - // [1128] phi from main::@216 to printf_str [phi:main::@216->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@216->printf_str#0] -- pprz1=pprc1 + // [326] call printf_str + // [1138] phi from main::@220 to printf_str [phi:main::@220->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@220->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s17 [phi:main::@216->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s17 [phi:main::@220->printf_str#1] -- pbuz1=pbuc1 lda #s17 sta.z printf_str.s+1 jsr printf_str - // main::@217 + // main::@221 // sprintf(info_text, "Please disconnect your CX16 from power source ...") - // [323] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [327] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [324] callexecute snputc -- call_vprc1 + // [328] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [326] call display_action_text - // [1208] phi from main::@217 to display_action_text [phi:main::@217->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:main::@217->display_action_text#0] -- pbuz1=pbuc1 + // [330] call display_action_text + // [1218] phi from main::@221 to display_action_text [phi:main::@221->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:main::@221->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text sta.z display_action_text.info_text+1 jsr display_action_text - // [327] phi from main::@217 to main::@218 [phi:main::@217->main::@218] - // main::@218 + // [331] phi from main::@221 to main::@222 [phi:main::@221->main::@222] + // main::@222 // smc_reset() - // [328] call smc_reset + // [332] call smc_reset // DE5 | The components correctly updated, SMC bootloader 2 // When bootloader 1, the CX16 won't shut down automatically and will hang! The user will see the above bootloader 1 action. // When bootloader 2, the CX16 will shut down automatically. The user will never see the bootloader 1 action. - // [1222] phi from main::@218 to smc_reset [phi:main::@218->smc_reset] + // [1232] phi from main::@222 to smc_reset [phi:main::@222->smc_reset] jsr smc_reset - jmp __b9 - // [329] phi from main::@57 to main::@58 [phi:main::@57->main::@58] - // main::@58 - __b58: + jmp __b10 + // [333] phi from main::@59 to main::@60 [phi:main::@59->main::@60] + // main::@60 + __b60: // wait_moment() - // [330] call wait_moment - // [1192] phi from main::@58 to wait_moment [phi:main::@58->wait_moment] + // [334] call wait_moment + // [1202] phi from main::@60 to wait_moment [phi:main::@60->wait_moment] jsr wait_moment - // [331] phi from main::@58 to main::@210 [phi:main::@58->main::@210] - // main::@210 + // [335] phi from main::@60 to main::@214 [phi:main::@60->main::@214] + // main::@214 // sprintf(info_text, "(%u) Please read carefully the below ...", w) - // [332] call snprintf_init - // [1123] phi from main::@210 to snprintf_init [phi:main::@210->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@210->snprintf_init#0] -- pbuz1=pbuc1 + // [336] call snprintf_init + // [1133] phi from main::@214 to snprintf_init [phi:main::@214->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@214->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [333] phi from main::@210 to main::@211 [phi:main::@210->main::@211] - // main::@211 + // [337] phi from main::@214 to main::@215 [phi:main::@214->main::@215] + // main::@215 // sprintf(info_text, "(%u) Please read carefully the below ...", w) - // [334] call printf_str - // [1128] phi from main::@211 to printf_str [phi:main::@211->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@211->printf_str#0] -- pprz1=pprc1 + // [338] call printf_str + // [1138] phi from main::@215 to printf_str [phi:main::@215->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@215->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s15 [phi:main::@211->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s15 [phi:main::@215->printf_str#1] -- pbuz1=pbuc1 lda #s15 sta.z printf_str.s+1 jsr printf_str - // main::@212 + // main::@216 // sprintf(info_text, "(%u) Please read carefully the below ...", w) - // [335] printf_uchar::uvalue#12 = main::w#2 -- vbuz1=vbum2 + // [339] printf_uchar::uvalue#12 = main::w#2 -- vbuz1=vbum2 lda w sta.z printf_uchar.uvalue - // [336] call printf_uchar - // [1197] phi from main::@212 to printf_uchar [phi:main::@212->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:main::@212->printf_uchar#0] -- vbuz1=vbuc1 + // [340] call printf_uchar + // [1207] phi from main::@216 to printf_uchar [phi:main::@216->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:main::@216->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:main::@212->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:main::@216->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:main::@212->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:main::@216->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:main::@212->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:main::@216->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#12 [phi:main::@212->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#12 [phi:main::@216->printf_uchar#4] -- register_copy jsr printf_uchar - // [337] phi from main::@212 to main::@213 [phi:main::@212->main::@213] - // main::@213 + // [341] phi from main::@216 to main::@217 [phi:main::@216->main::@217] + // main::@217 // sprintf(info_text, "(%u) Please read carefully the below ...", w) - // [338] call printf_str - // [1128] phi from main::@213 to printf_str [phi:main::@213->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@213->printf_str#0] -- pprz1=pprc1 + // [342] call printf_str + // [1138] phi from main::@217 to printf_str [phi:main::@217->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@217->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s16 [phi:main::@213->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s16 [phi:main::@217->printf_str#1] -- pbuz1=pbuc1 lda #s16 sta.z printf_str.s+1 jsr printf_str - // main::@214 + // main::@218 // sprintf(info_text, "(%u) Please read carefully the below ...", w) - // [339] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [343] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [340] callexecute snputc -- call_vprc1 + // [344] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [342] call display_action_text - // [1208] phi from main::@214 to display_action_text [phi:main::@214->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:main::@214->display_action_text#0] -- pbuz1=pbuc1 + // [346] call display_action_text + // [1218] phi from main::@218 to display_action_text [phi:main::@218->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:main::@218->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text sta.z display_action_text.info_text+1 jsr display_action_text - // main::@215 + // main::@219 // for (unsigned char w=240; w>0; w--) - // [343] main::w#1 = -- main::w#2 -- vbum1=_dec_vbum1 + // [347] main::w#1 = -- main::w#2 -- vbum1=_dec_vbum1 dec w - // [317] phi from main::@215 to main::@57 [phi:main::@215->main::@57] - // [317] phi main::w#2 = main::w#1 [phi:main::@215->main::@57#0] -- register_copy - jmp __b57 + // [321] phi from main::@219 to main::@59 [phi:main::@219->main::@59] + // [321] phi main::w#2 = main::w#1 [phi:main::@219->main::@59#0] -- register_copy + jmp __b59 // main::vera_display_set_border_color3 vera_display_set_border_color3: // *VERA_CTRL &= ~VERA_DCSEL - // [344] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [348] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_DCSEL^$ff and VERA_CTRL sta VERA_CTRL // *VERA_DC_BORDER = color - // [345] *VERA_DC_BORDER = YELLOW -- _deref_pbuc1=vbuc2 + // [349] *VERA_DC_BORDER = YELLOW -- _deref_pbuc1=vbuc2 lda #YELLOW sta VERA_DC_BORDER - // [346] phi from main::vera_display_set_border_color3 to main::@90 [phi:main::vera_display_set_border_color3->main::@90] - // main::@90 + // [350] phi from main::vera_display_set_border_color3 to main::@92 [phi:main::vera_display_set_border_color3->main::@92] + // main::@92 // display_action_progress("Update issues, your CX16 is not updated!") - // [347] call display_action_progress - // [838] phi from main::@90 to display_action_progress [phi:main::@90->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text38 [phi:main::@90->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text40 [phi:main::@92->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text38 + lda #>info_text40 sta.z display_action_progress.info_text+1 jsr display_action_progress - jmp __b9 + jmp __b10 // main::vera_display_set_border_color2 vera_display_set_border_color2: // *VERA_CTRL &= ~VERA_DCSEL - // [348] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [352] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_DCSEL^$ff and VERA_CTRL sta VERA_CTRL // *VERA_DC_BORDER = color - // [349] *VERA_DC_BORDER = RED -- _deref_pbuc1=vbuc2 + // [353] *VERA_DC_BORDER = RED -- _deref_pbuc1=vbuc2 lda #RED sta VERA_DC_BORDER - // [350] phi from main::vera_display_set_border_color2 to main::@88 [phi:main::vera_display_set_border_color2->main::@88] - // main::@88 + // [354] phi from main::vera_display_set_border_color2 to main::@90 [phi:main::vera_display_set_border_color2->main::@90] + // main::@90 // display_action_progress("Update Failure! Your CX16 may be bricked!") - // [351] call display_action_progress - // [838] phi from main::@88 to display_action_progress [phi:main::@88->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text36 [phi:main::@88->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text38 [phi:main::@90->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text36 + lda #>info_text38 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [352] phi from main::@88 to main::@208 [phi:main::@88->main::@208] - // main::@208 + // [356] phi from main::@90 to main::@212 [phi:main::@90->main::@212] + // main::@212 // display_action_text("Take a foto of this screen, shut down power and retry!") - // [353] call display_action_text - // [1208] phi from main::@208 to display_action_text [phi:main::@208->display_action_text] - // [1208] phi display_action_text::info_text#19 = main::info_text37 [phi:main::@208->display_action_text#0] -- pbuz1=pbuc1 - lda #display_action_text] + // [1218] phi display_action_text::info_text#19 = main::info_text39 [phi:main::@212->display_action_text#0] -- pbuz1=pbuc1 + lda #info_text37 + lda #>info_text39 sta.z display_action_text.info_text+1 jsr display_action_text - // [354] phi from main::@208 main::@60 to main::@60 [phi:main::@208/main::@60->main::@60] - // main::@60 - __b60: - jmp __b60 - // main::@239 - __b239: + // [358] phi from main::@212 main::@62 to main::@62 [phi:main::@212/main::@62->main::@62] + // main::@62 + __b62: + jmp __b62 + // main::@243 + __b243: // if((check_status_smc(STATUS_SKIP) || check_status_smc(STATUS_NONE)) && // (check_status_vera(STATUS_SKIP) || check_status_vera(STATUS_NONE)) && // check_status_roms_less(STATUS_SKIP)) - // [355] if(0!=main::check_status_vera3_return#0) goto main::@238 -- 0_neq_vbuz1_then_la1 + // [359] if(0!=main::check_status_vera3_return#0) goto main::@242 -- 0_neq_vbuz1_then_la1 lda.z check_status_vera3_return - bne __b238 - // main::@250 - // [356] if(0==main::check_status_vera4_return#0) goto main::check_status_smc15 -- 0_eq_vbuz1_then_la1 + bne __b242 + // main::@254 + // [360] if(0==main::check_status_vera4_return#0) goto main::check_status_smc15 -- 0_eq_vbuz1_then_la1 lda.z check_status_vera4_return bne !check_status_smc15+ jmp check_status_smc15 !check_status_smc15: - // main::@238 - __b238: - // [357] if(0!=main::$87) goto main::vera_display_set_border_color1 -- 0_neq_vbum1_then_la1 - lda main__87 + // main::@242 + __b242: + // [361] if(0!=main::$88) goto main::vera_display_set_border_color1 -- 0_neq_vbum1_then_la1 + lda main__88 bne vera_display_set_border_color1 jmp check_status_smc15 // main::vera_display_set_border_color1 vera_display_set_border_color1: // *VERA_CTRL &= ~VERA_DCSEL - // [358] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [362] *VERA_CTRL = *VERA_CTRL & ~VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_DCSEL^$ff and VERA_CTRL sta VERA_CTRL // *VERA_DC_BORDER = color - // [359] *VERA_DC_BORDER = BLACK -- _deref_pbuc1=vbuc2 + // [363] *VERA_DC_BORDER = BLACK -- _deref_pbuc1=vbuc2 lda #BLACK sta VERA_DC_BORDER - // [360] phi from main::vera_display_set_border_color1 to main::@86 [phi:main::vera_display_set_border_color1->main::@86] - // main::@86 + // [364] phi from main::vera_display_set_border_color1 to main::@88 [phi:main::vera_display_set_border_color1->main::@88] + // main::@88 // display_action_progress("No CX16 component has been updated with new firmware!") - // [361] call display_action_progress - // [838] phi from main::@86 to display_action_progress [phi:main::@86->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text35 [phi:main::@86->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text37 [phi:main::@88->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text35 + lda #>info_text37 sta.z display_action_progress.info_text+1 jsr display_action_progress - jmp __b9 - // main::@236 - __b236: + jmp __b10 + // main::@240 + __b240: // if(!check_status_smc(STATUS_ISSUE) && !check_status_vera(STATUS_ISSUE) && !check_status_roms(STATUS_ISSUE) && // !check_status_smc(STATUS_ERROR) && !check_status_vera(STATUS_ERROR) && !check_status_roms(STATUS_ERROR)) - // [362] if(0!=main::$67) goto main::check_status_smc9 -- 0_neq_vbum1_then_la1 + // [366] if(0!=main::$67) goto main::@4 -- 0_neq_vbum1_then_la1 lda main__67 - beq !check_status_smc9+ - jmp check_status_smc9 - !check_status_smc9: - // main::@235 - // [363] if(0==main::check_status_smc8_return#0) goto main::@234 -- 0_eq_vbuz1_then_la1 + beq !__b4+ + jmp __b4 + !__b4: + // main::@239 + // [367] if(0==main::check_status_smc8_return#0) goto main::@238 -- 0_eq_vbuz1_then_la1 lda.z check_status_smc8_return - beq __b234 - jmp check_status_smc9 - // main::@234 - __b234: - // [364] if(0!=main::check_status_vera2_return#0) goto main::check_status_smc9 -- 0_neq_vbum1_then_la1 + beq __b238 + jmp __b4 + // main::@238 + __b238: + // [368] if(0!=main::check_status_vera2_return#0) goto main::@4 -- 0_neq_vbum1_then_la1 lda check_status_vera2_return - beq !check_status_smc9+ - jmp check_status_smc9 - !check_status_smc9: - // main::@233 - // [365] if(0==main::$76) goto main::check_status_smc11 -- 0_eq_vbum1_then_la1 + beq !__b4+ + jmp __b4 + !__b4: + // main::@237 + // [369] if(0==main::$76) goto main::check_status_smc11 -- 0_eq_vbum1_then_la1 lda main__76 beq check_status_smc11 - jmp check_status_smc9 + jmp __b4 // main::check_status_smc11 check_status_smc11: // status_smc == status - // [366] main::check_status_smc11_$0 = status_smc#0 == STATUS_FLASH -- vboz1=vbum2_eq_vbuc1 + // [370] main::check_status_smc11_$0 = status_smc#0 == STATUS_FLASH -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASH beq !+ @@ -2209,12 +2223,12 @@ main: { eor #1 sta.z check_status_smc11_main__0 // return (unsigned char)(status_smc == status); - // [367] main::check_status_smc11_return#0 = (char)main::check_status_smc11_$0 - // [368] phi from main::check_status_smc11 to main::check_status_cx16_rom5 [phi:main::check_status_smc11->main::check_status_cx16_rom5] + // [371] main::check_status_smc11_return#0 = (char)main::check_status_smc11_$0 + // [372] phi from main::check_status_smc11 to main::check_status_cx16_rom5 [phi:main::check_status_smc11->main::check_status_cx16_rom5] // main::check_status_cx16_rom5 // main::check_status_cx16_rom5_check_status_rom1 // status_rom[rom_chip] == status - // [369] main::check_status_cx16_rom5_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 + // [373] main::check_status_cx16_rom5_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 lda status_rom eor #STATUS_FLASH beq !+ @@ -2223,39 +2237,39 @@ main: { eor #1 sta.z check_status_cx16_rom5_check_status_rom1_main__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [370] main::check_status_cx16_rom5_check_status_rom1_return#0 = (char)main::check_status_cx16_rom5_check_status_rom1_$0 - // [371] phi from main::check_status_cx16_rom5_check_status_rom1 to main::@81 [phi:main::check_status_cx16_rom5_check_status_rom1->main::@81] - // main::@81 + // [374] main::check_status_cx16_rom5_check_status_rom1_return#0 = (char)main::check_status_cx16_rom5_check_status_rom1_$0 + // [375] phi from main::check_status_cx16_rom5_check_status_rom1 to main::@83 [phi:main::check_status_cx16_rom5_check_status_rom1->main::@83] + // main::@83 // check_status_card_roms(STATUS_FLASH) - // [372] call check_status_card_roms - // [1231] phi from main::@81 to check_status_card_roms [phi:main::@81->check_status_card_roms] + // [376] call check_status_card_roms + // [1241] phi from main::@83 to check_status_card_roms [phi:main::@83->check_status_card_roms] jsr check_status_card_roms // check_status_card_roms(STATUS_FLASH) - // [373] check_status_card_roms::return#3 = check_status_card_roms::return#2 - // main::@177 - // [374] main::$189 = check_status_card_roms::return#3 + // [377] check_status_card_roms::return#3 = check_status_card_roms::return#2 + // main::@180 + // [378] main::$192 = check_status_card_roms::return#3 // if(check_status_smc(STATUS_FLASH) || check_status_cx16_rom(STATUS_FLASH) || check_status_card_roms(STATUS_FLASH)) - // [375] if(0!=main::check_status_smc11_return#0) goto main::@8 -- 0_neq_vbuz1_then_la1 + // [379] if(0!=main::check_status_smc11_return#0) goto main::@9 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc11_return - beq !__b8+ - jmp __b8 - !__b8: - // main::@242 - // [376] if(0!=main::check_status_cx16_rom5_check_status_rom1_return#0) goto main::@8 -- 0_neq_vbuz1_then_la1 + beq !__b9+ + jmp __b9 + !__b9: + // main::@246 + // [380] if(0!=main::check_status_cx16_rom5_check_status_rom1_return#0) goto main::@9 -- 0_neq_vbuz1_then_la1 lda.z check_status_cx16_rom5_check_status_rom1_return - beq !__b8+ - jmp __b8 - !__b8: - // main::@241 - // [377] if(0!=main::$189) goto main::@8 -- 0_neq_vbuz1_then_la1 - lda.z main__189 - beq !__b8+ - jmp __b8 - !__b8: + beq !__b9+ + jmp __b9 + !__b9: + // main::@245 + // [381] if(0!=main::$192) goto main::@9 -- 0_neq_vbuz1_then_la1 + lda.z main__192 + beq !__b9+ + jmp __b9 + !__b9: // main::bank_set_bram2 bank_set_bram2: // BRAM = bank - // [378] BRAM = main::bank_set_bram2_bank#0 -- vbuz1=vbuc1 + // [382] BRAM = main::bank_set_bram2_bank#0 -- vbuz1=vbuc1 lda #bank_set_bram2_bank sta.z BRAM // main::SEI5 @@ -2264,7 +2278,7 @@ main: { sei // main::check_status_smc12 // status_smc == status - // [380] main::check_status_smc12_$0 = status_smc#0 == STATUS_FLASH -- vboz1=vbum2_eq_vbuc1 + // [384] main::check_status_smc12_$0 = status_smc#0 == STATUS_FLASH -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASH beq !+ @@ -2273,12 +2287,12 @@ main: { eor #1 sta.z check_status_smc12_main__0 // return (unsigned char)(status_smc == status); - // [381] main::check_status_smc12_return#0 = (char)main::check_status_smc12_$0 - // [382] phi from main::check_status_smc12 to main::check_status_cx16_rom6 [phi:main::check_status_smc12->main::check_status_cx16_rom6] + // [385] main::check_status_smc12_return#0 = (char)main::check_status_smc12_$0 + // [386] phi from main::check_status_smc12 to main::check_status_cx16_rom6 [phi:main::check_status_smc12->main::check_status_cx16_rom6] // main::check_status_cx16_rom6 // main::check_status_cx16_rom6_check_status_rom1 // status_rom[rom_chip] == status - // [383] main::check_status_cx16_rom6_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 + // [387] main::check_status_cx16_rom6_check_status_rom1_$0 = *status_rom == STATUS_FLASH -- vboz1=_deref_pbuc1_eq_vbuc2 lda status_rom eor #STATUS_FLASH beq !+ @@ -2287,26 +2301,26 @@ main: { eor #1 sta.z check_status_cx16_rom6_check_status_rom1_main__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [384] main::check_status_cx16_rom6_check_status_rom1_return#0 = (char)main::check_status_cx16_rom6_check_status_rom1_$0 - // main::@82 + // [388] main::check_status_cx16_rom6_check_status_rom1_return#0 = (char)main::check_status_cx16_rom6_check_status_rom1_$0 + // main::@84 // if (check_status_smc(STATUS_FLASH) && check_status_cx16_rom(STATUS_FLASH)) - // [385] if(0==main::check_status_smc12_return#0) goto main::@41 -- 0_eq_vbuz1_then_la1 + // [389] if(0==main::check_status_smc12_return#0) goto main::@43 -- 0_eq_vbuz1_then_la1 lda.z check_status_smc12_return - beq __b41 - // main::@243 - // [386] if(0!=main::check_status_cx16_rom6_check_status_rom1_return#0) goto main::@52 -- 0_neq_vbuz1_then_la1 + beq __b43 + // main::@247 + // [390] if(0!=main::check_status_cx16_rom6_check_status_rom1_return#0) goto main::@54 -- 0_neq_vbuz1_then_la1 lda.z check_status_cx16_rom6_check_status_rom1_return - beq !__b52+ - jmp __b52 - !__b52: - // [387] phi from main::@243 to main::@41 [phi:main::@243->main::@41] - // [387] phi from main::@184 main::@42 main::@43 main::@55 main::@82 to main::@41 [phi:main::@184/main::@42/main::@43/main::@55/main::@82->main::@41] - // [387] phi __errno#384 = __errno#18 [phi:main::@184/main::@42/main::@43/main::@55/main::@82->main::@41#0] -- register_copy - // main::@41 - __b41: - // [388] phi from main::@41 to main::@44 [phi:main::@41->main::@44] - // [388] phi __errno#116 = __errno#384 [phi:main::@41->main::@44#0] -- register_copy - // [388] phi main::rom_chip4#10 = 7 [phi:main::@41->main::@44#1] -- vbum1=vbuc1 + beq !__b54+ + jmp __b54 + !__b54: + // [391] phi from main::@247 to main::@43 [phi:main::@247->main::@43] + // [391] phi from main::@188 main::@44 main::@45 main::@57 main::@84 to main::@43 [phi:main::@188/main::@44/main::@45/main::@57/main::@84->main::@43] + // [391] phi __errno#389 = __errno#18 [phi:main::@188/main::@44/main::@45/main::@57/main::@84->main::@43#0] -- register_copy + // main::@43 + __b43: + // [392] phi from main::@43 to main::@46 [phi:main::@43->main::@46] + // [392] phi __errno#118 = __errno#389 [phi:main::@43->main::@46#0] -- register_copy + // [392] phi main::rom_chip4#10 = 7 [phi:main::@43->main::@46#1] -- vbum1=vbuc1 lda #7 sta rom_chip4 // Flash the ROM chips. @@ -2315,18 +2329,18 @@ main: { // If the file contents are the same as the ROM contents, then no flashing is required. // IMPORTANT! We start to flash the ROMs on the extension card. // The last ROM flashed is the CX16 ROM on the CX16 board! - // main::@44 - __b44: + // main::@46 + __b46: // for(unsigned char rom_chip = 7; rom_chip != 255; rom_chip--) - // [389] if(main::rom_chip4#10!=$ff) goto main::check_status_rom1 -- vbum1_neq_vbuc1_then_la1 + // [393] if(main::rom_chip4#10!=$ff) goto main::check_status_rom1 -- vbum1_neq_vbuc1_then_la1 lda #$ff cmp rom_chip4 bne check_status_rom1 - jmp check_status_smc9 + jmp __b4 // main::check_status_rom1 check_status_rom1: // status_rom[rom_chip] == status - // [390] main::check_status_rom1_$0 = status_rom[main::rom_chip4#10] == STATUS_FLASH -- vbom1=pbuc1_derefidx_vbum2_eq_vbuc2 + // [394] main::check_status_rom1_$0 = status_rom[main::rom_chip4#10] == STATUS_FLASH -- vbom1=pbuc1_derefidx_vbum2_eq_vbuc2 lda #STATUS_FLASH ldy rom_chip4 eor status_rom,y @@ -2336,15 +2350,15 @@ main: { eor #1 sta check_status_rom1_main__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [391] main::check_status_rom1_return#0 = (char)main::check_status_rom1_$0 - // main::@83 + // [395] main::check_status_rom1_return#0 = (char)main::check_status_rom1_$0 + // main::@85 // if(check_status_rom(rom_chip, STATUS_FLASH)) - // [392] if(0==main::check_status_rom1_return#0) goto main::@45 -- 0_eq_vbum1_then_la1 + // [396] if(0==main::check_status_rom1_return#0) goto main::@47 -- 0_eq_vbum1_then_la1 lda check_status_rom1_return - beq __b45 + beq __b47 // main::check_status_smc13 // status_smc == status - // [393] main::check_status_smc13_$0 = status_smc#0 == STATUS_FLASHED -- vboz1=vbum2_eq_vbuc1 + // [397] main::check_status_smc13_$0 = status_smc#0 == STATUS_FLASHED -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_FLASHED beq !+ @@ -2353,10 +2367,10 @@ main: { eor #1 sta.z check_status_smc13_main__0 // return (unsigned char)(status_smc == status); - // [394] main::check_status_smc13_return#0 = (char)main::check_status_smc13_$0 + // [398] main::check_status_smc13_return#0 = (char)main::check_status_smc13_$0 // main::check_status_smc14 // status_smc == status - // [395] main::check_status_smc14_$0 = status_smc#0 == STATUS_SKIP -- vboz1=vbum2_eq_vbuc1 + // [399] main::check_status_smc14_$0 = status_smc#0 == STATUS_SKIP -- vboz1=vbum2_eq_vbuc1 lda status_smc eor #STATUS_SKIP beq !+ @@ -2365,62 +2379,62 @@ main: { eor #1 sta.z check_status_smc14_main__0 // return (unsigned char)(status_smc == status); - // [396] main::check_status_smc14_return#0 = (char)main::check_status_smc14_$0 - // main::@84 + // [400] main::check_status_smc14_return#0 = (char)main::check_status_smc14_$0 + // main::@86 // if((rom_chip == 0 && (check_status_smc(STATUS_FLASHED) || check_status_smc(STATUS_SKIP))) || (rom_chip != 0)) - // [397] if(main::rom_chip4#10==0) goto main::@245 -- vbum1_eq_0_then_la1 + // [401] if(main::rom_chip4#10==0) goto main::@249 -- vbum1_eq_0_then_la1 // IMPORTANT! We only flash the CX16 ROM chip if the SMC got flashed succesfully! lda rom_chip4 - bne !__b245+ - jmp __b245 - !__b245: - // main::@244 - __b244: - // [398] if(main::rom_chip4#10!=0) goto main::bank_set_brom7 -- vbum1_neq_0_then_la1 + bne !__b249+ + jmp __b249 + !__b249: + // main::@248 + __b248: + // [402] if(main::rom_chip4#10!=0) goto main::bank_set_brom7 -- vbum1_neq_0_then_la1 lda rom_chip4 bne bank_set_brom7 - // main::@51 + // main::@53 // display_info_rom(rom_chip, STATUS_ISSUE, "Update SMC failed!") - // [399] display_info_rom::rom_chip#10 = main::rom_chip4#10 -- vbuz1=vbum2 + // [403] display_info_rom::rom_chip#10 = main::rom_chip4#10 -- vbuz1=vbum2 sta.z display_info_rom.rom_chip - // [400] call display_info_rom - // [1240] phi from main::@51 to display_info_rom [phi:main::@51->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = main::info_text30 [phi:main::@51->display_info_rom#0] -- pbuz1=pbuc1 - lda #display_info_rom] + // [1250] phi display_info_rom::info_text#16 = main::info_text32 [phi:main::@53->display_info_rom#0] -- pbuz1=pbuc1 + lda #info_text30 + lda #>info_text32 sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#10 [phi:main::@51->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_ISSUE [phi:main::@51->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#10 [phi:main::@53->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_ISSUE [phi:main::@53->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_ISSUE sta.z display_info_rom.info_status jsr display_info_rom - // [401] phi from main::@195 main::@206 main::@46 main::@50 main::@51 main::@83 to main::@45 [phi:main::@195/main::@206/main::@46/main::@50/main::@51/main::@83->main::@45] - // [401] phi __errno#385 = __errno#18 [phi:main::@195/main::@206/main::@46/main::@50/main::@51/main::@83->main::@45#0] -- register_copy - // main::@45 - __b45: + // [405] phi from main::@199 main::@210 main::@48 main::@52 main::@53 main::@85 to main::@47 [phi:main::@199/main::@210/main::@48/main::@52/main::@53/main::@85->main::@47] + // [405] phi __errno#390 = __errno#18 [phi:main::@199/main::@210/main::@48/main::@52/main::@53/main::@85->main::@47#0] -- register_copy + // main::@47 + __b47: // for(unsigned char rom_chip = 7; rom_chip != 255; rom_chip--) - // [402] main::rom_chip4#1 = -- main::rom_chip4#10 -- vbum1=_dec_vbum1 + // [406] main::rom_chip4#1 = -- main::rom_chip4#10 -- vbum1=_dec_vbum1 dec rom_chip4 - // [388] phi from main::@45 to main::@44 [phi:main::@45->main::@44] - // [388] phi __errno#116 = __errno#385 [phi:main::@45->main::@44#0] -- register_copy - // [388] phi main::rom_chip4#10 = main::rom_chip4#1 [phi:main::@45->main::@44#1] -- register_copy - jmp __b44 + // [392] phi from main::@47 to main::@46 [phi:main::@47->main::@46] + // [392] phi __errno#118 = __errno#390 [phi:main::@47->main::@46#0] -- register_copy + // [392] phi main::rom_chip4#10 = main::rom_chip4#1 [phi:main::@47->main::@46#1] -- register_copy + jmp __b46 // main::bank_set_brom7 bank_set_brom7: // BROM = bank - // [403] BROM = main::bank_set_brom7_bank#0 -- vbuz1=vbuc1 + // [407] BROM = main::bank_set_brom7_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom7_bank sta.z BROM - // [404] phi from main::bank_set_brom7 to main::@85 [phi:main::bank_set_brom7->main::@85] - // main::@85 + // [408] phi from main::bank_set_brom7 to main::@87 [phi:main::bank_set_brom7->main::@87] + // main::@87 // display_progress_clear() - // [405] call display_progress_clear - // [852] phi from main::@85 to display_progress_clear [phi:main::@85->display_progress_clear] + // [409] call display_progress_clear + // [859] phi from main::@87 to display_progress_clear [phi:main::@87->display_progress_clear] jsr display_progress_clear - // main::@188 + // main::@192 // unsigned char rom_bank = rom_chip * 32 - // [406] main::rom_bank1#0 = main::rom_chip4#10 << 5 -- vbum1=vbum2_rol_5 + // [410] main::rom_bank1#0 = main::rom_chip4#10 << 5 -- vbum1=vbum2_rol_5 lda rom_chip4 asl asl @@ -2429,114 +2443,114 @@ main: { asl sta rom_bank1 // unsigned char* file = rom_file(rom_chip) - // [407] rom_file::rom_chip#1 = main::rom_chip4#10 -- vbuz1=vbum2 + // [411] rom_file::rom_chip#1 = main::rom_chip4#10 -- vbuz1=vbum2 lda rom_chip4 sta.z rom_file.rom_chip - // [408] call rom_file - // [1283] phi from main::@188 to rom_file [phi:main::@188->rom_file] - // [1283] phi rom_file::rom_chip#2 = rom_file::rom_chip#1 [phi:main::@188->rom_file#0] -- register_copy + // [412] call rom_file + // [1293] phi from main::@192 to rom_file [phi:main::@192->rom_file] + // [1293] phi rom_file::rom_chip#2 = rom_file::rom_chip#1 [phi:main::@192->rom_file#0] -- register_copy jsr rom_file // unsigned char* file = rom_file(rom_chip) - // [409] rom_file::return#5 = rom_file::return#2 - // main::@189 - // [410] main::file1#0 = rom_file::return#5 + // [413] rom_file::return#5 = rom_file::return#2 + // main::@193 + // [414] main::file1#0 = rom_file::return#5 // sprintf(info_text, "Reading %s ... (.) data ( ) empty", file) - // [411] call snprintf_init - // [1123] phi from main::@189 to snprintf_init [phi:main::@189->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@189->snprintf_init#0] -- pbuz1=pbuc1 + // [415] call snprintf_init + // [1133] phi from main::@193 to snprintf_init [phi:main::@193->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@193->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [412] phi from main::@189 to main::@190 [phi:main::@189->main::@190] - // main::@190 + // [416] phi from main::@193 to main::@194 [phi:main::@193->main::@194] + // main::@194 // sprintf(info_text, "Reading %s ... (.) data ( ) empty", file) - // [413] call printf_str - // [1128] phi from main::@190 to printf_str [phi:main::@190->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@190->printf_str#0] -- pprz1=pprc1 + // [417] call printf_str + // [1138] phi from main::@194 to printf_str [phi:main::@194->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@194->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s11 [phi:main::@190->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s11 [phi:main::@194->printf_str#1] -- pbuz1=pbuc1 lda #s11 sta.z printf_str.s+1 jsr printf_str - // main::@191 + // main::@195 // sprintf(info_text, "Reading %s ... (.) data ( ) empty", file) - // [414] printf_string::str#21 = main::file1#0 -- pbuz1=pbum2 + // [418] printf_string::str#23 = main::file1#0 -- pbuz1=pbum2 lda file1 sta.z printf_string.str lda file1+1 sta.z printf_string.str+1 - // [415] call printf_string - // [1137] phi from main::@191 to printf_string [phi:main::@191->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:main::@191->printf_string#0] -- pprz1=pprc1 + // [419] call printf_string + // [1147] phi from main::@195 to printf_string [phi:main::@195->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:main::@195->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#21 [phi:main::@191->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:main::@191->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#23 [phi:main::@195->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:main::@195->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:main::@191->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:main::@195->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // [416] phi from main::@191 to main::@192 [phi:main::@191->main::@192] - // main::@192 + // [420] phi from main::@195 to main::@196 [phi:main::@195->main::@196] + // main::@196 // sprintf(info_text, "Reading %s ... (.) data ( ) empty", file) - // [417] call printf_str - // [1128] phi from main::@192 to printf_str [phi:main::@192->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@192->printf_str#0] -- pprz1=pprc1 + // [421] call printf_str + // [1138] phi from main::@196 to printf_str [phi:main::@196->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@196->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s6 [phi:main::@192->printf_str#1] -- pbuz1=pbuc1 - lda #printf_str#1] -- pbuz1=pbuc1 + lda #s6 + lda #>s12 sta.z printf_str.s+1 jsr printf_str - // main::@193 + // main::@197 // sprintf(info_text, "Reading %s ... (.) data ( ) empty", file) - // [418] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [422] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [419] callexecute snputc -- call_vprc1 + // [423] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_progress(info_text) - // [421] call display_action_progress - // [838] phi from main::@193 to display_action_progress [phi:main::@193->display_action_progress] - // [838] phi display_action_progress::info_text#18 = info_text [phi:main::@193->display_action_progress#0] -- pbuz1=pbuc1 + // [425] call display_action_progress + // [845] phi from main::@197 to display_action_progress [phi:main::@197->display_action_progress] + // [845] phi display_action_progress::info_text#19 = info_text [phi:main::@197->display_action_progress#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_progress.info_text lda #>@info_text sta.z display_action_progress.info_text+1 jsr display_action_progress - // main::@194 - // unsigned long rom_bytes_read = rom_read(1, rom_chip, file, STATUS_READING, rom_bank, rom_sizes[rom_chip]) - // [422] main::$284 = main::rom_chip4#10 << 2 -- vbum1=vbum2_rol_2 + // main::@198 + // unsigned long rom_bytes_read = rom_read(rom_chip, file, STATUS_READING, rom_bank, rom_sizes[rom_chip]) + // [426] main::$288 = main::rom_chip4#10 << 2 -- vbum1=vbum2_rol_2 lda rom_chip4 asl asl - sta main__284 - // [423] rom_read::file#1 = main::file1#0 -- pbum1=pbum2 + sta main__288 + // [427] rom_read::file#1 = main::file1#0 -- pbuz1=pbum2 lda file1 - sta rom_read.file + sta.z rom_read.file lda file1+1 - sta rom_read.file+1 - // [424] rom_read::brom_bank_start#2 = main::rom_bank1#0 -- vbum1=vbum2 + sta.z rom_read.file+1 + // [428] rom_read::brom_bank_start#2 = main::rom_bank1#0 -- vbum1=vbum2 lda rom_bank1 sta rom_read.brom_bank_start - // [425] rom_read::rom_size#1 = rom_sizes[main::$284] -- vduz1=pduc1_derefidx_vbum2 - ldy main__284 + // [429] rom_read::rom_size#1 = rom_sizes[main::$288] -- vduz1=pduc1_derefidx_vbum2 + ldy main__288 lda rom_sizes,y sta.z rom_read.rom_size lda rom_sizes+1,y @@ -2545,69 +2559,69 @@ main: { sta.z rom_read.rom_size+2 lda rom_sizes+3,y sta.z rom_read.rom_size+3 - // [426] call rom_read - // [1289] phi from main::@194 to rom_read [phi:main::@194->rom_read] - // [1289] phi rom_read::display_progress#28 = 1 [phi:main::@194->rom_read#0] -- vbum1=vbuc1 - lda #1 - sta rom_read.display_progress - // [1289] phi rom_read::rom_size#12 = rom_read::rom_size#1 [phi:main::@194->rom_read#1] -- register_copy - // [1289] phi __errno#108 = __errno#116 [phi:main::@194->rom_read#2] -- register_copy - // [1289] phi rom_read::file#11 = rom_read::file#1 [phi:main::@194->rom_read#3] -- register_copy - // [1289] phi rom_read::brom_bank_start#22 = rom_read::brom_bank_start#2 [phi:main::@194->rom_read#4] -- register_copy + // [430] call rom_read + // [1299] phi from main::@198 to rom_read [phi:main::@198->rom_read] + // [1299] phi rom_read::rom_size#12 = rom_read::rom_size#1 [phi:main::@198->rom_read#0] -- register_copy + // [1299] phi __errno#110 = __errno#118 [phi:main::@198->rom_read#1] -- register_copy + // [1299] phi rom_read::file#11 = rom_read::file#1 [phi:main::@198->rom_read#2] -- register_copy + // [1299] phi rom_read::info_status#10 = STATUS_READING [phi:main::@198->rom_read#3] -- vbum1=vbuc1 + lda #STATUS_READING + sta rom_read.info_status + // [1299] phi rom_read::brom_bank_start#23 = rom_read::brom_bank_start#2 [phi:main::@198->rom_read#4] -- register_copy jsr rom_read - // unsigned long rom_bytes_read = rom_read(1, rom_chip, file, STATUS_READING, rom_bank, rom_sizes[rom_chip]) - // [427] rom_read::return#3 = rom_read::return#0 - // main::@195 - // [428] main::rom_bytes_read1#0 = rom_read::return#3 + // unsigned long rom_bytes_read = rom_read(rom_chip, file, STATUS_READING, rom_bank, rom_sizes[rom_chip]) + // [431] rom_read::return#3 = rom_read::return#0 + // main::@199 + // [432] main::rom_bytes_read1#0 = rom_read::return#3 // if(rom_bytes_read) - // [429] if(0==main::rom_bytes_read1#0) goto main::@45 -- 0_eq_vdum1_then_la1 + // [433] if(0==main::rom_bytes_read1#0) goto main::@47 -- 0_eq_vdum1_then_la1 lda rom_bytes_read1 ora rom_bytes_read1+1 ora rom_bytes_read1+2 ora rom_bytes_read1+3 - bne !__b45+ - jmp __b45 - !__b45: - // [430] phi from main::@195 to main::@48 [phi:main::@195->main::@48] - // main::@48 + bne !__b47+ + jmp __b47 + !__b47: + // [434] phi from main::@199 to main::@50 [phi:main::@199->main::@50] + // main::@50 // display_action_progress("Comparing ... (.) same, (*) different.") - // [431] call display_action_progress + // [435] call display_action_progress // Now we compare the RAM with the actual ROM contents. - // [838] phi from main::@48 to display_action_progress [phi:main::@48->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text31 [phi:main::@48->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text33 [phi:main::@50->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text31 + lda #>info_text33 sta.z display_action_progress.info_text+1 jsr display_action_progress - // main::@196 + // main::@200 // display_info_rom(rom_chip, STATUS_COMPARING, "") - // [432] display_info_rom::rom_chip#11 = main::rom_chip4#10 -- vbuz1=vbum2 + // [436] display_info_rom::rom_chip#11 = main::rom_chip4#10 -- vbuz1=vbum2 lda rom_chip4 sta.z display_info_rom.rom_chip - // [433] call display_info_rom - // [1240] phi from main::@196 to display_info_rom [phi:main::@196->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text4 [phi:main::@196->display_info_rom#0] -- pbuz1=pbuc1 + // [437] call display_info_rom + // [1250] phi from main::@200 to display_info_rom [phi:main::@200->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text4 [phi:main::@200->display_info_rom#0] -- pbuz1=pbuc1 lda #info_text4 sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#11 [phi:main::@196->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_COMPARING [phi:main::@196->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#11 [phi:main::@200->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_COMPARING [phi:main::@200->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_COMPARING sta.z display_info_rom.info_status jsr display_info_rom - // main::@197 + // main::@201 // unsigned long rom_differences = rom_verify( // rom_chip, rom_bank, file_sizes[rom_chip]) - // [434] rom_verify::rom_chip#0 = main::rom_chip4#10 -- vbuz1=vbum2 + // [438] rom_verify::rom_chip#0 = main::rom_chip4#10 -- vbuz1=vbum2 lda rom_chip4 sta.z rom_verify.rom_chip - // [435] rom_verify::rom_bank_start#0 = main::rom_bank1#0 -- vbum1=vbum2 + // [439] rom_verify::rom_bank_start#0 = main::rom_bank1#0 -- vbum1=vbum2 lda rom_bank1 sta rom_verify.rom_bank_start - // [436] rom_verify::file_size#0 = file_sizes[main::$284] -- vdum1=pduc1_derefidx_vbum2 - ldy main__284 + // [440] rom_verify::file_size#0 = file_sizes[main::$288] -- vdum1=pduc1_derefidx_vbum2 + ldy main__288 lda file_sizes,y sta rom_verify.file_size lda file_sizes+1,y @@ -2616,12 +2630,12 @@ main: { sta rom_verify.file_size+2 lda file_sizes+3,y sta rom_verify.file_size+3 - // [437] call rom_verify + // [441] call rom_verify // Verify the ROM... jsr rom_verify - // [438] rom_verify::return#2 = rom_verify::rom_different_bytes#11 - // main::@198 - // [439] main::rom_differences#0 = rom_verify::return#2 -- vduz1=vduz2 + // [442] rom_verify::return#2 = rom_verify::rom_different_bytes#11 + // main::@202 + // [443] main::rom_differences#0 = rom_verify::return#2 -- vduz1=vduz2 lda.z rom_verify.return sta.z rom_differences lda.z rom_verify.return+1 @@ -2631,93 +2645,93 @@ main: { lda.z rom_verify.return+3 sta.z rom_differences+3 // if (!rom_differences) - // [440] if(0==main::rom_differences#0) goto main::@46 -- 0_eq_vduz1_then_la1 + // [444] if(0==main::rom_differences#0) goto main::@48 -- 0_eq_vduz1_then_la1 lda.z rom_differences ora.z rom_differences+1 ora.z rom_differences+2 ora.z rom_differences+3 - bne !__b46+ - jmp __b46 - !__b46: - // [441] phi from main::@198 to main::@49 [phi:main::@198->main::@49] - // main::@49 + bne !__b48+ + jmp __b48 + !__b48: + // [445] phi from main::@202 to main::@51 [phi:main::@202->main::@51] + // main::@51 // sprintf(info_text, "%05x differences!", rom_differences) - // [442] call snprintf_init - // [1123] phi from main::@49 to snprintf_init [phi:main::@49->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@49->snprintf_init#0] -- pbuz1=pbuc1 + // [446] call snprintf_init + // [1133] phi from main::@51 to snprintf_init [phi:main::@51->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@51->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // main::@199 + // main::@203 // sprintf(info_text, "%05x differences!", rom_differences) - // [443] printf_ulong::uvalue#7 = main::rom_differences#0 - // [444] call printf_ulong - // [1440] phi from main::@199 to printf_ulong [phi:main::@199->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 1 [phi:main::@199->printf_ulong#0] -- vbuz1=vbuc1 + // [447] printf_ulong::uvalue#7 = main::rom_differences#0 + // [448] call printf_ulong + // [1454] phi from main::@203 to printf_ulong [phi:main::@203->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 1 [phi:main::@203->printf_ulong#0] -- vbuz1=vbuc1 lda #1 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 5 [phi:main::@199->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 5 [phi:main::@203->printf_ulong#1] -- vbuz1=vbuc1 lda #5 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:main::@199->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:main::@203->printf_ulong#2] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#7 [phi:main::@199->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#7 [phi:main::@203->printf_ulong#3] -- register_copy jsr printf_ulong - // [445] phi from main::@199 to main::@200 [phi:main::@199->main::@200] - // main::@200 + // [449] phi from main::@203 to main::@204 [phi:main::@203->main::@204] + // main::@204 // sprintf(info_text, "%05x differences!", rom_differences) - // [446] call printf_str - // [1128] phi from main::@200 to printf_str [phi:main::@200->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@200->printf_str#0] -- pprz1=pprc1 + // [450] call printf_str + // [1138] phi from main::@204 to printf_str [phi:main::@204->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@204->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s13 [phi:main::@200->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s13 [phi:main::@204->printf_str#1] -- pbuz1=pbuc1 lda #s13 sta.z printf_str.s+1 jsr printf_str - // main::@201 + // main::@205 // sprintf(info_text, "%05x differences!", rom_differences) - // [447] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [451] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [448] callexecute snputc -- call_vprc1 + // [452] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_info_rom(rom_chip, STATUS_FLASH, info_text) - // [450] display_info_rom::rom_chip#13 = main::rom_chip4#10 -- vbuz1=vbum2 + // [454] display_info_rom::rom_chip#13 = main::rom_chip4#10 -- vbuz1=vbum2 lda rom_chip4 sta.z display_info_rom.rom_chip - // [451] call display_info_rom - // [1240] phi from main::@201 to display_info_rom [phi:main::@201->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text [phi:main::@201->display_info_rom#0] -- pbuz1=pbuc1 + // [455] call display_info_rom + // [1250] phi from main::@205 to display_info_rom [phi:main::@205->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text [phi:main::@205->display_info_rom#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_rom.info_text lda #>@info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#13 [phi:main::@201->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_FLASH [phi:main::@201->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#13 [phi:main::@205->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_FLASH [phi:main::@205->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_FLASH sta.z display_info_rom.info_status jsr display_info_rom - // main::@202 + // main::@206 // unsigned long rom_flash_errors = rom_flash( // rom_chip, rom_bank, file_sizes[rom_chip]) - // [452] rom_flash::rom_chip#0 = main::rom_chip4#10 -- vbum1=vbum2 + // [456] rom_flash::rom_chip#0 = main::rom_chip4#10 -- vbum1=vbum2 lda rom_chip4 sta rom_flash.rom_chip - // [453] rom_flash::rom_bank_start#0 = main::rom_bank1#0 -- vbum1=vbum2 + // [457] rom_flash::rom_bank_start#0 = main::rom_bank1#0 -- vbum1=vbum2 lda rom_bank1 sta rom_flash.rom_bank_start - // [454] rom_flash::file_size#0 = file_sizes[main::$284] -- vdum1=pduc1_derefidx_vbum2 - ldy main__284 + // [458] rom_flash::file_size#0 = file_sizes[main::$288] -- vdum1=pduc1_derefidx_vbum2 + ldy main__288 lda file_sizes,y sta rom_flash.file_size lda file_sizes+1,y @@ -2726,14 +2740,14 @@ main: { sta rom_flash.file_size+2 lda file_sizes+3,y sta rom_flash.file_size+3 - // [455] call rom_flash - // [1450] phi from main::@202 to rom_flash [phi:main::@202->rom_flash] + // [459] call rom_flash + // [1464] phi from main::@206 to rom_flash [phi:main::@206->rom_flash] jsr rom_flash // unsigned long rom_flash_errors = rom_flash( // rom_chip, rom_bank, file_sizes[rom_chip]) - // [456] rom_flash::return#2 = rom_flash::flash_errors#10 - // main::@203 - // [457] main::rom_flash_errors#0 = rom_flash::return#2 -- vdum1=vdum2 + // [460] rom_flash::return#2 = rom_flash::flash_errors#10 + // main::@207 + // [461] main::rom_flash_errors#0 = rom_flash::return#2 -- vdum1=vdum2 lda rom_flash.return sta rom_flash_errors lda rom_flash.return+1 @@ -2743,46 +2757,46 @@ main: { lda rom_flash.return+3 sta rom_flash_errors+3 // if(rom_flash_errors) - // [458] if(0!=main::rom_flash_errors#0) goto main::@47 -- 0_neq_vdum1_then_la1 + // [462] if(0!=main::rom_flash_errors#0) goto main::@49 -- 0_neq_vdum1_then_la1 lda rom_flash_errors ora rom_flash_errors+1 ora rom_flash_errors+2 ora rom_flash_errors+3 - bne __b47 - // main::@50 + bne __b49 + // main::@52 // display_info_rom(rom_chip, STATUS_FLASHED, "OK!") - // [459] display_info_rom::rom_chip#15 = main::rom_chip4#10 -- vbuz1=vbum2 + // [463] display_info_rom::rom_chip#15 = main::rom_chip4#10 -- vbuz1=vbum2 lda rom_chip4 sta.z display_info_rom.rom_chip - // [460] call display_info_rom + // [464] call display_info_rom // RFL3 | Flash ROM and all ok - // [1240] phi from main::@50 to display_info_rom [phi:main::@50->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = main::info_text34 [phi:main::@50->display_info_rom#0] -- pbuz1=pbuc1 - lda #display_info_rom] + // [1250] phi display_info_rom::info_text#16 = main::info_text36 [phi:main::@52->display_info_rom#0] -- pbuz1=pbuc1 + lda #info_text34 + lda #>info_text36 sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#15 [phi:main::@50->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_FLASHED [phi:main::@50->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#15 [phi:main::@52->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_FLASHED [phi:main::@52->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_FLASHED sta.z display_info_rom.info_status jsr display_info_rom - jmp __b45 - // [461] phi from main::@203 to main::@47 [phi:main::@203->main::@47] - // main::@47 - __b47: + jmp __b47 + // [465] phi from main::@207 to main::@49 [phi:main::@207->main::@49] + // main::@49 + __b49: // sprintf(info_text, "%u flash errors!", rom_flash_errors) - // [462] call snprintf_init - // [1123] phi from main::@47 to snprintf_init [phi:main::@47->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@47->snprintf_init#0] -- pbuz1=pbuc1 + // [466] call snprintf_init + // [1133] phi from main::@49 to snprintf_init [phi:main::@49->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@49->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // main::@204 + // main::@208 // sprintf(info_text, "%u flash errors!", rom_flash_errors) - // [463] printf_ulong::uvalue#8 = main::rom_flash_errors#0 -- vduz1=vdum2 + // [467] printf_ulong::uvalue#8 = main::rom_flash_errors#0 -- vduz1=vdum2 lda rom_flash_errors sta.z printf_ulong.uvalue lda rom_flash_errors+1 @@ -2791,756 +2805,767 @@ main: { sta.z printf_ulong.uvalue+2 lda rom_flash_errors+3 sta.z printf_ulong.uvalue+3 - // [464] call printf_ulong - // [1440] phi from main::@204 to printf_ulong [phi:main::@204->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 0 [phi:main::@204->printf_ulong#0] -- vbuz1=vbuc1 + // [468] call printf_ulong + // [1454] phi from main::@208 to printf_ulong [phi:main::@208->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 0 [phi:main::@208->printf_ulong#0] -- vbuz1=vbuc1 lda #0 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 0 [phi:main::@204->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 0 [phi:main::@208->printf_ulong#1] -- vbuz1=vbuc1 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = DECIMAL [phi:main::@204->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = DECIMAL [phi:main::@208->printf_ulong#2] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#8 [phi:main::@204->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#8 [phi:main::@208->printf_ulong#3] -- register_copy jsr printf_ulong - // [465] phi from main::@204 to main::@205 [phi:main::@204->main::@205] - // main::@205 + // [469] phi from main::@208 to main::@209 [phi:main::@208->main::@209] + // main::@209 // sprintf(info_text, "%u flash errors!", rom_flash_errors) - // [466] call printf_str - // [1128] phi from main::@205 to printf_str [phi:main::@205->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@205->printf_str#0] -- pprz1=pprc1 + // [470] call printf_str + // [1138] phi from main::@209 to printf_str [phi:main::@209->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@209->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s14 [phi:main::@205->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s14 [phi:main::@209->printf_str#1] -- pbuz1=pbuc1 lda #s14 sta.z printf_str.s+1 jsr printf_str - // main::@206 + // main::@210 // sprintf(info_text, "%u flash errors!", rom_flash_errors) - // [467] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [471] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [468] callexecute snputc -- call_vprc1 + // [472] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_info_rom(rom_chip, STATUS_ERROR, info_text) - // [470] display_info_rom::rom_chip#14 = main::rom_chip4#10 -- vbuz1=vbum2 + // [474] display_info_rom::rom_chip#14 = main::rom_chip4#10 -- vbuz1=vbum2 lda rom_chip4 sta.z display_info_rom.rom_chip - // [471] call display_info_rom - // [1240] phi from main::@206 to display_info_rom [phi:main::@206->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text [phi:main::@206->display_info_rom#0] -- pbuz1=pbuc1 + // [475] call display_info_rom + // [1250] phi from main::@210 to display_info_rom [phi:main::@210->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text [phi:main::@210->display_info_rom#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_rom.info_text lda #>@info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#14 [phi:main::@206->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_ERROR [phi:main::@206->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#14 [phi:main::@210->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_ERROR [phi:main::@210->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_ERROR sta.z display_info_rom.info_status jsr display_info_rom - jmp __b45 - // main::@46 - __b46: + jmp __b47 + // main::@48 + __b48: // display_info_rom(rom_chip, STATUS_SKIP, "No update required") - // [472] display_info_rom::rom_chip#12 = main::rom_chip4#10 -- vbuz1=vbum2 + // [476] display_info_rom::rom_chip#12 = main::rom_chip4#10 -- vbuz1=vbum2 lda rom_chip4 sta.z display_info_rom.rom_chip - // [473] call display_info_rom + // [477] call display_info_rom // RFL1 | ROM and ROM.BIN equal | Display that there are no differences between the ROM and ROM.BIN. Set ROM to Flashed. | None - // [1240] phi from main::@46 to display_info_rom [phi:main::@46->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = main::info_text33 [phi:main::@46->display_info_rom#0] -- pbuz1=pbuc1 - lda #display_info_rom] + // [1250] phi display_info_rom::info_text#16 = main::info_text35 [phi:main::@48->display_info_rom#0] -- pbuz1=pbuc1 + lda #info_text33 + lda #>info_text35 sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#12 [phi:main::@46->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_SKIP [phi:main::@46->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#12 [phi:main::@48->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_SKIP [phi:main::@48->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_SKIP sta.z display_info_rom.info_status jsr display_info_rom - jmp __b45 - // main::@245 - __b245: + jmp __b47 + // main::@249 + __b249: // if((rom_chip == 0 && (check_status_smc(STATUS_FLASHED) || check_status_smc(STATUS_SKIP))) || (rom_chip != 0)) - // [474] if(0!=main::check_status_smc13_return#0) goto main::bank_set_brom7 -- 0_neq_vbuz1_then_la1 + // [478] if(0!=main::check_status_smc13_return#0) goto main::bank_set_brom7 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc13_return beq !bank_set_brom7+ jmp bank_set_brom7 !bank_set_brom7: - // main::@251 - // [475] if(0!=main::check_status_smc14_return#0) goto main::bank_set_brom7 -- 0_neq_vbuz1_then_la1 + // main::@255 + // [479] if(0!=main::check_status_smc14_return#0) goto main::bank_set_brom7 -- 0_neq_vbuz1_then_la1 lda.z check_status_smc14_return beq !bank_set_brom7+ jmp bank_set_brom7 !bank_set_brom7: - jmp __b244 - // [476] phi from main::@243 to main::@52 [phi:main::@243->main::@52] - // main::@52 - __b52: + jmp __b248 + // [480] phi from main::@247 to main::@54 [phi:main::@247->main::@54] + // main::@54 + __b54: + // display_action_progress("Reading SMC.BIN ... (.) data, ( ) empty") + // [481] call display_action_progress + // [845] phi from main::@54 to display_action_progress [phi:main::@54->display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text26 [phi:main::@54->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text26 + sta.z display_action_progress.info_text+1 + jsr display_action_progress + // [482] phi from main::@54 to main::@186 [phi:main::@54->main::@186] + // main::@186 // display_progress_clear() - // [477] call display_progress_clear - // [852] phi from main::@52 to display_progress_clear [phi:main::@52->display_progress_clear] + // [483] call display_progress_clear + // [859] phi from main::@186 to display_progress_clear [phi:main::@186->display_progress_clear] jsr display_progress_clear - // [478] phi from main::@52 to main::@183 [phi:main::@52->main::@183] - // main::@183 - // smc_read(1) - // [479] call smc_read - // [1060] phi from main::@183 to smc_read [phi:main::@183->smc_read] - // [1060] phi smc_read::display_progress#19 = 1 [phi:main::@183->smc_read#0] -- vbum1=vbuc1 - lda #1 - sta smc_read.display_progress - // [1060] phi __errno#35 = __errno#114 [phi:main::@183->smc_read#1] -- register_copy + // [484] phi from main::@186 to main::@187 [phi:main::@186->main::@187] + // main::@187 + // smc_read(STATUS_READING) + // [485] call smc_read + // [1067] phi from main::@187 to smc_read [phi:main::@187->smc_read] + // [1067] phi __errno#35 = __errno#116 [phi:main::@187->smc_read#0] -- register_copy + // [1067] phi smc_read::info_status#2 = STATUS_READING [phi:main::@187->smc_read#1] -- vbum1=vbuc1 + lda #STATUS_READING + sta smc_read.info_status jsr smc_read - // smc_read(1) - // [480] smc_read::return#3 = smc_read::return#0 - // main::@184 - // smc_file_size = smc_read(1) - // [481] smc_file_size#1 = smc_read::return#3 -- vwum1=vwum2 - lda smc_read.return + // smc_read(STATUS_READING) + // [486] smc_read::return#3 = smc_read::return#0 + // main::@188 + // smc_file_size = smc_read(STATUS_READING) + // [487] smc_file_size#1 = smc_read::return#3 -- vwum1=vwuz2 + lda.z smc_read.return sta smc_file_size_1 - lda smc_read.return+1 + lda.z smc_read.return+1 sta smc_file_size_1+1 // if(smc_file_size) - // [482] if(0==smc_file_size#1) goto main::@41 -- 0_eq_vwum1_then_la1 + // [488] if(0==smc_file_size#1) goto main::@43 -- 0_eq_vwum1_then_la1 lda smc_file_size_1 ora smc_file_size_1+1 - bne !__b41+ - jmp __b41 - !__b41: - // [483] phi from main::@184 to main::@53 [phi:main::@184->main::@53] - // main::@53 + bne !__b43+ + jmp __b43 + !__b43: + // [489] phi from main::@188 to main::@55 [phi:main::@188->main::@55] + // main::@55 // display_action_text("Press both POWER/RESET buttons on the CX16 board!") - // [484] call display_action_text + // [490] call display_action_text // Flash the SMC chip. - // [1208] phi from main::@53 to display_action_text [phi:main::@53->display_action_text] - // [1208] phi display_action_text::info_text#19 = main::info_text25 [phi:main::@53->display_action_text#0] -- pbuz1=pbuc1 - lda #display_action_text] + // [1218] phi display_action_text::info_text#19 = main::info_text27 [phi:main::@55->display_action_text#0] -- pbuz1=pbuc1 + lda #info_text25 + lda #>info_text27 sta.z display_action_text.info_text+1 jsr display_action_text - // main::@185 - // [485] smc_bootloader#434 = smc_bootloader#0 -- vwum1=vwum2 + // main::@189 + // [491] smc_bootloader#437 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_FLASHING, "Press POWER/RESET!") - // [486] call display_info_smc - // [896] phi from main::@185 to display_info_smc [phi:main::@185->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text26 [phi:main::@185->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text28 [phi:main::@189->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text26 + lda #>info_text28 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#434 [phi:main::@185->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_FLASHING [phi:main::@185->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#437 [phi:main::@189->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_FLASHING [phi:main::@189->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_FLASHING sta display_info_smc.info_status jsr display_info_smc - // main::@186 + // main::@190 // unsigned int flashed_bytes = smc_flash(smc_file_size) - // [487] smc_flash::smc_bytes_total#0 = smc_file_size#1 -- vwuz1=vwum2 + // [493] smc_flash::smc_bytes_total#0 = smc_file_size#1 -- vwuz1=vwum2 lda smc_file_size_1 sta.z smc_flash.smc_bytes_total lda smc_file_size_1+1 sta.z smc_flash.smc_bytes_total+1 - // [488] call smc_flash - // [1565] phi from main::@186 to smc_flash [phi:main::@186->smc_flash] + // [494] call smc_flash + // [1579] phi from main::@190 to smc_flash [phi:main::@190->smc_flash] jsr smc_flash // unsigned int flashed_bytes = smc_flash(smc_file_size) - // [489] smc_flash::return#5 = smc_flash::return#1 - // main::@187 - // [490] main::flashed_bytes#0 = smc_flash::return#5 + // [495] smc_flash::return#5 = smc_flash::return#1 + // main::@191 + // [496] main::flashed_bytes#0 = smc_flash::return#5 // if(flashed_bytes) - // [491] if(0!=main::flashed_bytes#0) goto main::@42 -- 0_neq_vwum1_then_la1 + // [497] if(0!=main::flashed_bytes#0) goto main::@44 -- 0_neq_vwum1_then_la1 lda flashed_bytes ora flashed_bytes+1 - bne __b42 - // main::@54 + bne __b44 + // main::@56 // if(flashed_bytes == (unsigned int)0xFFFF) - // [492] if(main::flashed_bytes#0==$ffff) goto main::@43 -- vwum1_eq_vwuc1_then_la1 + // [498] if(main::flashed_bytes#0==$ffff) goto main::@45 -- vwum1_eq_vwuc1_then_la1 lda flashed_bytes cmp #<$ffff bne !+ lda flashed_bytes+1 cmp #>$ffff - beq __b43 + beq __b45 !: - // main::@55 - // [493] smc_bootloader#440 = smc_bootloader#0 -- vwum1=vwum2 + // main::@57 + // [499] smc_bootloader#443 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ISSUE, "POWER/RESET not pressed!") - // [494] call display_info_smc + // [500] call display_info_smc // SFL2 | no action on POWER/RESET press request - // [896] phi from main::@55 to display_info_smc [phi:main::@55->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text29 [phi:main::@55->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text31 [phi:main::@57->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text29 + lda #>info_text31 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#440 [phi:main::@55->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@55->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#443 [phi:main::@57->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@57->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ISSUE sta display_info_smc.info_status jsr display_info_smc - jmp __b41 - // main::@43 - __b43: - // [495] smc_bootloader#439 = smc_bootloader#0 -- vwum1=vwum2 + jmp __b43 + // main::@45 + __b45: + // [501] smc_bootloader#442 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ERROR, "SMC has errors!") - // [496] call display_info_smc + // [502] call display_info_smc // SFL3 | errors during flash - // [896] phi from main::@43 to display_info_smc [phi:main::@43->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text28 [phi:main::@43->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text30 [phi:main::@45->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text28 + lda #>info_text30 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#439 [phi:main::@43->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ERROR [phi:main::@43->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#442 [phi:main::@45->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ERROR [phi:main::@45->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ERROR sta display_info_smc.info_status jsr display_info_smc - jmp __b41 - // main::@42 - __b42: - // [497] smc_bootloader#438 = smc_bootloader#0 -- vwum1=vwum2 + jmp __b43 + // main::@44 + __b44: + // [503] smc_bootloader#441 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_FLASHED, "") - // [498] call display_info_smc + // [504] call display_info_smc // SFL1 | and POWER/RESET pressed - // [896] phi from main::@42 to display_info_smc [phi:main::@42->display_info_smc] - // [896] phi display_info_smc::info_text#18 = info_text4 [phi:main::@42->display_info_smc#0] -- pbuz1=pbuc1 + // [903] phi from main::@44 to display_info_smc [phi:main::@44->display_info_smc] + // [903] phi display_info_smc::info_text#18 = info_text4 [phi:main::@44->display_info_smc#0] -- pbuz1=pbuc1 lda #info_text4 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#438 [phi:main::@42->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_FLASHED [phi:main::@42->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#441 [phi:main::@44->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_FLASHED [phi:main::@44->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_FLASHED sta display_info_smc.info_status jsr display_info_smc - jmp __b41 - // [499] phi from main::@177 main::@241 main::@242 to main::@8 [phi:main::@177/main::@241/main::@242->main::@8] - // main::@8 - __b8: + jmp __b43 + // [505] phi from main::@180 main::@245 main::@246 to main::@9 [phi:main::@180/main::@245/main::@246->main::@9] + // main::@9 + __b9: // display_action_progress("Chipsets have been detected and update files validated!") - // [500] call display_action_progress - // [838] phi from main::@8 to display_action_progress [phi:main::@8->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text19 [phi:main::@8->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text20 [phi:main::@9->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text19 + lda #>info_text20 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [501] phi from main::@8 to main::@178 [phi:main::@8->main::@178] - // main::@178 + // [507] phi from main::@9 to main::@181 [phi:main::@9->main::@181] + // main::@181 // unsigned char ch = util_wait_key("Continue with update of highlighted chipsets? [Y/N]", "nyNY") - // [502] call util_wait_key - // [1727] phi from main::@178 to util_wait_key [phi:main::@178->util_wait_key] - // [1727] phi util_wait_key::filter#13 = main::filter1 [phi:main::@178->util_wait_key#0] -- pbuz1=pbuc1 + // [508] call util_wait_key + // [1741] phi from main::@181 to util_wait_key [phi:main::@181->util_wait_key] + // [1741] phi util_wait_key::filter#13 = main::filter1 [phi:main::@181->util_wait_key#0] -- pbuz1=pbuc1 lda #filter1 sta.z util_wait_key.filter+1 - // [1727] phi util_wait_key::info_text#3 = main::info_text20 [phi:main::@178->util_wait_key#1] -- pbuz1=pbuc1 - lda #util_wait_key#1] -- pbuz1=pbuc1 + lda #info_text20 + lda #>info_text21 sta.z util_wait_key.info_text+1 jsr util_wait_key // unsigned char ch = util_wait_key("Continue with update of highlighted chipsets? [Y/N]", "nyNY") - // [503] util_wait_key::return#4 = util_wait_key::ch#4 -- vbum1=vwum2 + // [509] util_wait_key::return#4 = util_wait_key::ch#4 -- vbum1=vwum2 lda util_wait_key.ch sta util_wait_key.return_1 - // main::@179 - // [504] main::ch1#0 = util_wait_key::return#4 + // main::@182 + // [510] main::ch1#0 = util_wait_key::return#4 // strchr("nN", ch) - // [505] strchr::c#1 = main::ch1#0 - // [506] call strchr - // [1751] phi from main::@179 to strchr [phi:main::@179->strchr] - // [1751] phi strchr::c#4 = strchr::c#1 [phi:main::@179->strchr#0] -- register_copy - // [1751] phi strchr::str#2 = (const void *)main::$308 [phi:main::@179->strchr#1] -- pvoz1=pvoc1 - lda #strchr] + // [1765] phi strchr::c#4 = strchr::c#1 [phi:main::@182->strchr#0] -- register_copy + // [1765] phi strchr::str#2 = (const void *)main::$312 [phi:main::@182->strchr#1] -- pvoz1=pvoc1 + lda #main__308 + lda #>main__312 sta.z strchr.str+1 jsr strchr // strchr("nN", ch) - // [507] strchr::return#4 = strchr::return#2 - // main::@180 - // [508] main::$194 = strchr::return#4 + // [513] strchr::return#4 = strchr::return#2 + // main::@183 + // [514] main::$197 = strchr::return#4 // if(strchr("nN", ch)) - // [509] if((void *)0==main::$194) goto main::bank_set_bram2 -- pvoc1_eq_pvoz1_then_la1 - lda.z main__194 + // [515] if((void *)0==main::$197) goto main::bank_set_bram2 -- pvoc1_eq_pvoz1_then_la1 + lda.z main__197 cmp #<0 bne !+ - lda.z main__194+1 + lda.z main__197+1 cmp #>0 bne !bank_set_bram2+ jmp bank_set_bram2 !bank_set_bram2: !: - // main::@9 - // [510] smc_bootloader#428 = smc_bootloader#0 -- vwum1=vwum2 + // main::@10 + // [516] smc_bootloader#431 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_SKIP, "Cancelled") - // [511] call display_info_smc + // [517] call display_info_smc // We cancel all updates, the updates are skipped. - // [896] phi from main::@9 to display_info_smc [phi:main::@9->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text21 [phi:main::@9->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text22 [phi:main::@10->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text21 + lda #>info_text22 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#428 [phi:main::@9->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@9->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#431 [phi:main::@10->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@10->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_SKIP sta display_info_smc.info_status jsr display_info_smc - // [512] phi from main::@9 to main::@181 [phi:main::@9->main::@181] - // main::@181 + // [518] phi from main::@10 to main::@184 [phi:main::@10->main::@184] + // main::@184 // display_info_vera(STATUS_SKIP, "Cancelled") - // [513] call display_info_vera - // [930] phi from main::@181 to display_info_vera [phi:main::@181->display_info_vera] - // [930] phi display_info_vera::info_text#10 = main::info_text21 [phi:main::@181->display_info_vera#0] -- pbuz1=pbuc1 - lda #display_info_vera] + // [937] phi display_info_vera::info_text#10 = main::info_text22 [phi:main::@184->display_info_vera#0] -- pbuz1=pbuc1 + lda #info_text21 + lda #>info_text22 sta.z display_info_vera.info_text+1 - // [930] phi display_info_vera::info_status#4 = STATUS_SKIP [phi:main::@181->display_info_vera#1] -- vbuz1=vbuc1 + // [937] phi display_info_vera::info_status#4 = STATUS_SKIP [phi:main::@184->display_info_vera#1] -- vbuz1=vbuc1 lda #STATUS_SKIP sta.z display_info_vera.info_status jsr display_info_vera - // [514] phi from main::@181 to main::@38 [phi:main::@181->main::@38] - // [514] phi main::rom_chip3#2 = 0 [phi:main::@181->main::@38#0] -- vbum1=vbuc1 + // [520] phi from main::@184 to main::@40 [phi:main::@184->main::@40] + // [520] phi main::rom_chip3#2 = 0 [phi:main::@184->main::@40#0] -- vbum1=vbuc1 lda #0 sta rom_chip3 - // main::@38 - __b38: + // main::@40 + __b40: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [515] if(main::rom_chip3#2<8) goto main::@39 -- vbum1_lt_vbuc1_then_la1 + // [521] if(main::rom_chip3#2<8) goto main::@41 -- vbum1_lt_vbuc1_then_la1 lda rom_chip3 cmp #8 - bcc __b39 - // [516] phi from main::@38 to main::@40 [phi:main::@38->main::@40] - // main::@40 + bcc __b41 + // [522] phi from main::@40 to main::@42 [phi:main::@40->main::@42] + // main::@42 // display_action_text("You have selected not to cancel the update ... ") - // [517] call display_action_text - // [1208] phi from main::@40 to display_action_text [phi:main::@40->display_action_text] - // [1208] phi display_action_text::info_text#19 = main::info_text24 [phi:main::@40->display_action_text#0] -- pbuz1=pbuc1 - lda #display_action_text] + // [1218] phi display_action_text::info_text#19 = main::info_text25 [phi:main::@42->display_action_text#0] -- pbuz1=pbuc1 + lda #info_text24 + lda #>info_text25 sta.z display_action_text.info_text+1 jsr display_action_text jmp bank_set_bram2 - // main::@39 - __b39: + // main::@41 + __b41: // display_info_rom(rom_chip, STATUS_SKIP, "Cancelled") - // [518] display_info_rom::rom_chip#9 = main::rom_chip3#2 -- vbuz1=vbum2 + // [524] display_info_rom::rom_chip#9 = main::rom_chip3#2 -- vbuz1=vbum2 lda rom_chip3 sta.z display_info_rom.rom_chip - // [519] call display_info_rom - // [1240] phi from main::@39 to display_info_rom [phi:main::@39->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = main::info_text21 [phi:main::@39->display_info_rom#0] -- pbuz1=pbuc1 - lda #display_info_rom] + // [1250] phi display_info_rom::info_text#16 = main::info_text22 [phi:main::@41->display_info_rom#0] -- pbuz1=pbuc1 + lda #info_text21 + lda #>info_text22 sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#9 [phi:main::@39->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_SKIP [phi:main::@39->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#9 [phi:main::@41->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_SKIP [phi:main::@41->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_SKIP sta.z display_info_rom.info_status jsr display_info_rom - // main::@182 + // main::@185 // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [520] main::rom_chip3#1 = ++ main::rom_chip3#2 -- vbum1=_inc_vbum1 + // [526] main::rom_chip3#1 = ++ main::rom_chip3#2 -- vbum1=_inc_vbum1 inc rom_chip3 - // [514] phi from main::@182 to main::@38 [phi:main::@182->main::@38] - // [514] phi main::rom_chip3#2 = main::rom_chip3#1 [phi:main::@182->main::@38#0] -- register_copy - jmp __b38 - // main::@231 - __b231: + // [520] phi from main::@185 to main::@40 [phi:main::@185->main::@40] + // [520] phi main::rom_chip3#2 = main::rom_chip3#1 [phi:main::@185->main::@40#0] -- register_copy + jmp __b40 + // main::@235 + __b235: // if(check_status_smc(STATUS_FLASH) && smc_release == smc_file_release && smc_major == smc_file_major && smc_minor == smc_file_minor) - // [521] if(smc_major#359!=smc_file_major#276) goto main::check_status_smc7 -- vbum1_neq_vbum2_then_la1 + // [527] if(smc_major#362!=smc_file_major#277) goto main::check_status_smc7 -- vbum1_neq_vbum2_then_la1 lda smc_major cmp smc_file_major beq !check_status_smc7+ jmp check_status_smc7 !check_status_smc7: - // main::@230 - // [522] if(smc_minor#358==smc_file_minor#276) goto main::@7 -- vbum1_eq_vbum2_then_la1 + // main::@234 + // [528] if(smc_minor#361==smc_file_minor#277) goto main::@8 -- vbum1_eq_vbum2_then_la1 lda smc_minor cmp smc_file_minor - beq __b7 + beq __b8 jmp check_status_smc7 - // [523] phi from main::@230 to main::@7 [phi:main::@230->main::@7] - // main::@7 - __b7: + // [529] phi from main::@234 to main::@8 [phi:main::@234->main::@8] + // main::@8 + __b8: // display_action_progress("The SMC chip and SMC.BIN versions are equal, no flash required!") - // [524] call display_action_progress - // [838] phi from main::@7 to display_action_progress [phi:main::@7->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text17 [phi:main::@7->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text18 [phi:main::@8->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text17 + lda #>info_text18 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [525] phi from main::@7 to main::@174 [phi:main::@7->main::@174] - // main::@174 + // [531] phi from main::@8 to main::@177 [phi:main::@8->main::@177] + // main::@177 // util_wait_space() - // [526] call util_wait_space - // [1057] phi from main::@174 to util_wait_space [phi:main::@174->util_wait_space] + // [532] call util_wait_space + // [1064] phi from main::@177 to util_wait_space [phi:main::@177->util_wait_space] jsr util_wait_space - // main::@175 - // [527] smc_bootloader#433 = smc_bootloader#0 -- vwum1=vwum2 + // main::@178 + // [533] smc_bootloader#436 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_SKIP, "SMC.BIN and SMC equal.") - // [528] call display_info_smc - // [896] phi from main::@175 to display_info_smc [phi:main::@175->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text18 [phi:main::@175->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text19 [phi:main::@178->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text18 + lda #>info_text19 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#433 [phi:main::@175->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@175->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#436 [phi:main::@178->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@178->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_SKIP sta display_info_smc.info_status jsr display_info_smc jmp check_status_smc7 - // [529] phi from main::@228 to main::@5 [phi:main::@228->main::@5] - // main::@5 - __b5: + // [535] phi from main::@232 to main::@6 [phi:main::@232->main::@6] + // main::@6 + __b6: // display_action_progress("The ROM.BIN isn't compatible with SMC.BIN, no flash allowed!") - // [530] call display_action_progress - // [838] phi from main::@5 to display_action_progress [phi:main::@5->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text15 [phi:main::@5->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text16 [phi:main::@6->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text15 + lda #>info_text16 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [531] phi from main::@5 to main::@168 [phi:main::@5->main::@168] - // main::@168 + // [537] phi from main::@6 to main::@171 [phi:main::@6->main::@171] + // main::@171 // display_progress_text(display_smc_unsupported_rom_text, display_smc_unsupported_rom_count) - // [532] call display_progress_text - // [1047] phi from main::@168 to display_progress_text [phi:main::@168->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_smc_unsupported_rom_text [phi:main::@168->display_progress_text#0] -- qbuz1=qbuc1 + // [538] call display_progress_text + // [1054] phi from main::@171 to display_progress_text [phi:main::@171->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_smc_unsupported_rom_text [phi:main::@171->display_progress_text#0] -- qbuz1=qbuc1 lda #display_smc_unsupported_rom_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_smc_unsupported_rom_count [phi:main::@168->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_smc_unsupported_rom_count [phi:main::@171->display_progress_text#1] -- vbuz1=vbuc1 lda #display_smc_unsupported_rom_count sta.z display_progress_text.lines jsr display_progress_text - // [533] phi from main::@168 to main::@169 [phi:main::@168->main::@169] - // main::@169 + // [539] phi from main::@171 to main::@172 [phi:main::@171->main::@172] + // main::@172 // unsigned char ch = util_wait_key("You still want to continue with flashing? [YN]", "YN") - // [534] call util_wait_key - // [1727] phi from main::@169 to util_wait_key [phi:main::@169->util_wait_key] - // [1727] phi util_wait_key::filter#13 = main::filter [phi:main::@169->util_wait_key#0] -- pbuz1=pbuc1 + // [540] call util_wait_key + // [1741] phi from main::@172 to util_wait_key [phi:main::@172->util_wait_key] + // [1741] phi util_wait_key::filter#13 = main::filter [phi:main::@172->util_wait_key#0] -- pbuz1=pbuc1 lda #filter sta.z util_wait_key.filter+1 - // [1727] phi util_wait_key::info_text#3 = main::info_text16 [phi:main::@169->util_wait_key#1] -- pbuz1=pbuc1 - lda #util_wait_key#1] -- pbuz1=pbuc1 + lda #info_text16 + lda #>info_text17 sta.z util_wait_key.info_text+1 jsr util_wait_key // unsigned char ch = util_wait_key("You still want to continue with flashing? [YN]", "YN") - // [535] util_wait_key::return#3 = util_wait_key::ch#4 -- vbum1=vwum2 + // [541] util_wait_key::return#3 = util_wait_key::ch#4 -- vbum1=vwum2 lda util_wait_key.ch sta util_wait_key.return - // main::@170 - // [536] main::ch#0 = util_wait_key::return#3 + // main::@173 + // [542] main::ch#0 = util_wait_key::return#3 // if(ch == 'N') - // [537] if(main::ch#0!='N') goto main::check_status_smc6 -- vbum1_neq_vbuc1_then_la1 + // [543] if(main::ch#0!='N') goto main::check_status_smc6 -- vbum1_neq_vbuc1_then_la1 lda #'N' cmp ch beq !check_status_smc6+ jmp check_status_smc6 !check_status_smc6: - // main::@6 - // [538] smc_bootloader#425 = smc_bootloader#0 -- vwum1=vwum2 + // main::@7 + // [544] smc_bootloader#428 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ISSUE, NULL) - // [539] call display_info_smc + // [545] call display_info_smc // Cancel flash - // [896] phi from main::@6 to display_info_smc [phi:main::@6->display_info_smc] - // [896] phi display_info_smc::info_text#18 = 0 [phi:main::@6->display_info_smc#0] -- pbuz1=vbuc1 + // [903] phi from main::@7 to display_info_smc [phi:main::@7->display_info_smc] + // [903] phi display_info_smc::info_text#18 = 0 [phi:main::@7->display_info_smc#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_smc.info_text sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#425 [phi:main::@6->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@6->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#428 [phi:main::@7->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@7->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ISSUE sta display_info_smc.info_status jsr display_info_smc - // [540] phi from main::@6 to main::@171 [phi:main::@6->main::@171] - // main::@171 + // [546] phi from main::@7 to main::@174 [phi:main::@7->main::@174] + // main::@174 // display_info_cx16_rom(STATUS_ISSUE, NULL) - // [541] call display_info_cx16_rom - // [1760] phi from main::@171 to display_info_cx16_rom [phi:main::@171->display_info_cx16_rom] - // [1760] phi display_info_cx16_rom::info_text#4 = 0 [phi:main::@171->display_info_cx16_rom#0] -- pbuz1=vbuc1 + // [547] call display_info_cx16_rom + // [1774] phi from main::@174 to display_info_cx16_rom [phi:main::@174->display_info_cx16_rom] + // [1774] phi display_info_cx16_rom::info_text#4 = 0 [phi:main::@174->display_info_cx16_rom#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_cx16_rom.info_text sta.z display_info_cx16_rom.info_text+1 - // [1760] phi display_info_cx16_rom::info_status#4 = STATUS_ISSUE [phi:main::@171->display_info_cx16_rom#1] -- vbuz1=vbuc1 + // [1774] phi display_info_cx16_rom::info_status#4 = STATUS_ISSUE [phi:main::@174->display_info_cx16_rom#1] -- vbuz1=vbuc1 lda #STATUS_ISSUE sta.z display_info_cx16_rom.info_status jsr display_info_cx16_rom jmp check_status_smc6 - // [542] phi from main::@227 to main::@4 [phi:main::@227->main::@4] - // main::@4 - __b4: + // [548] phi from main::@231 to main::@5 [phi:main::@231->main::@5] + // main::@5 + __b5: // display_action_progress("CX16 ROM update issue!") - // [543] call display_action_progress - // [838] phi from main::@4 to display_action_progress [phi:main::@4->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text13 [phi:main::@4->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text14 [phi:main::@5->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text13 + lda #>info_text14 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [544] phi from main::@4 to main::@163 [phi:main::@4->main::@163] - // main::@163 + // [550] phi from main::@5 to main::@166 [phi:main::@5->main::@166] + // main::@166 // display_progress_text(display_smc_rom_issue_text, display_smc_rom_issue_count) - // [545] call display_progress_text - // [1047] phi from main::@163 to display_progress_text [phi:main::@163->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_smc_rom_issue_text [phi:main::@163->display_progress_text#0] -- qbuz1=qbuc1 + // [551] call display_progress_text + // [1054] phi from main::@166 to display_progress_text [phi:main::@166->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_smc_rom_issue_text [phi:main::@166->display_progress_text#0] -- qbuz1=qbuc1 lda #display_smc_rom_issue_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_smc_rom_issue_count [phi:main::@163->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_smc_rom_issue_count [phi:main::@166->display_progress_text#1] -- vbuz1=vbuc1 lda #display_smc_rom_issue_count sta.z display_progress_text.lines jsr display_progress_text - // main::@164 - // [546] smc_bootloader#432 = smc_bootloader#0 -- vwum1=vwum2 + // main::@167 + // [552] smc_bootloader#435 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_SKIP, "Issue with main CX16 ROM!") - // [547] call display_info_smc - // [896] phi from main::@164 to display_info_smc [phi:main::@164->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text11 [phi:main::@164->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text12 [phi:main::@167->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text11 + lda #>info_text12 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#432 [phi:main::@164->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@164->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#435 [phi:main::@167->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@167->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_SKIP sta display_info_smc.info_status jsr display_info_smc - // [548] phi from main::@164 to main::@165 [phi:main::@164->main::@165] - // main::@165 + // [554] phi from main::@167 to main::@168 [phi:main::@167->main::@168] + // main::@168 // display_info_cx16_rom(STATUS_ISSUE, NULL) - // [549] call display_info_cx16_rom - // [1760] phi from main::@165 to display_info_cx16_rom [phi:main::@165->display_info_cx16_rom] - // [1760] phi display_info_cx16_rom::info_text#4 = 0 [phi:main::@165->display_info_cx16_rom#0] -- pbuz1=vbuc1 + // [555] call display_info_cx16_rom + // [1774] phi from main::@168 to display_info_cx16_rom [phi:main::@168->display_info_cx16_rom] + // [1774] phi display_info_cx16_rom::info_text#4 = 0 [phi:main::@168->display_info_cx16_rom#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_cx16_rom.info_text sta.z display_info_cx16_rom.info_text+1 - // [1760] phi display_info_cx16_rom::info_status#4 = STATUS_ISSUE [phi:main::@165->display_info_cx16_rom#1] -- vbuz1=vbuc1 + // [1774] phi display_info_cx16_rom::info_status#4 = STATUS_ISSUE [phi:main::@168->display_info_cx16_rom#1] -- vbuz1=vbuc1 lda #STATUS_ISSUE sta.z display_info_cx16_rom.info_status jsr display_info_cx16_rom - // [550] phi from main::@165 to main::@166 [phi:main::@165->main::@166] - // main::@166 + // [556] phi from main::@168 to main::@169 [phi:main::@168->main::@169] + // main::@169 // util_wait_space() - // [551] call util_wait_space - // [1057] phi from main::@166 to util_wait_space [phi:main::@166->util_wait_space] + // [557] call util_wait_space + // [1064] phi from main::@169 to util_wait_space [phi:main::@169->util_wait_space] jsr util_wait_space jmp check_status_smc5 - // [552] phi from main::@226 to main::@3 [phi:main::@226->main::@3] + // [558] phi from main::@230 to main::@3 [phi:main::@230->main::@3] // main::@3 __b3: // display_action_progress("CX16 ROM update issue, ROM not detected!") - // [553] call display_action_progress - // [838] phi from main::@3 to display_action_progress [phi:main::@3->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text10 [phi:main::@3->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text11 [phi:main::@3->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text10 + lda #>info_text11 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [554] phi from main::@3 to main::@159 [phi:main::@3->main::@159] - // main::@159 + // [560] phi from main::@3 to main::@162 [phi:main::@3->main::@162] + // main::@162 // display_progress_text(display_smc_rom_issue_text, display_smc_rom_issue_count) - // [555] call display_progress_text - // [1047] phi from main::@159 to display_progress_text [phi:main::@159->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_smc_rom_issue_text [phi:main::@159->display_progress_text#0] -- qbuz1=qbuc1 + // [561] call display_progress_text + // [1054] phi from main::@162 to display_progress_text [phi:main::@162->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_smc_rom_issue_text [phi:main::@162->display_progress_text#0] -- qbuz1=qbuc1 lda #display_smc_rom_issue_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_smc_rom_issue_count [phi:main::@159->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_smc_rom_issue_count [phi:main::@162->display_progress_text#1] -- vbuz1=vbuc1 lda #display_smc_rom_issue_count sta.z display_progress_text.lines jsr display_progress_text - // main::@160 - // [556] smc_bootloader#431 = smc_bootloader#0 -- vwum1=vwum2 + // main::@163 + // [562] smc_bootloader#434 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_SKIP, "Issue with main CX16 ROM!") - // [557] call display_info_smc - // [896] phi from main::@160 to display_info_smc [phi:main::@160->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text11 [phi:main::@160->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text12 [phi:main::@163->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text11 + lda #>info_text12 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#431 [phi:main::@160->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@160->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#434 [phi:main::@163->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@163->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_SKIP sta display_info_smc.info_status jsr display_info_smc - // [558] phi from main::@160 to main::@161 [phi:main::@160->main::@161] - // main::@161 + // [564] phi from main::@163 to main::@164 [phi:main::@163->main::@164] + // main::@164 // display_info_cx16_rom(STATUS_ISSUE, "Are J1 jumper pins closed?") - // [559] call display_info_cx16_rom - // [1760] phi from main::@161 to display_info_cx16_rom [phi:main::@161->display_info_cx16_rom] - // [1760] phi display_info_cx16_rom::info_text#4 = main::info_text12 [phi:main::@161->display_info_cx16_rom#0] -- pbuz1=pbuc1 - lda #display_info_cx16_rom] + // [1774] phi display_info_cx16_rom::info_text#4 = main::info_text13 [phi:main::@164->display_info_cx16_rom#0] -- pbuz1=pbuc1 + lda #info_text12 + lda #>info_text13 sta.z display_info_cx16_rom.info_text+1 - // [1760] phi display_info_cx16_rom::info_status#4 = STATUS_ISSUE [phi:main::@161->display_info_cx16_rom#1] -- vbuz1=vbuc1 + // [1774] phi display_info_cx16_rom::info_status#4 = STATUS_ISSUE [phi:main::@164->display_info_cx16_rom#1] -- vbuz1=vbuc1 lda #STATUS_ISSUE sta.z display_info_cx16_rom.info_status jsr display_info_cx16_rom - // [560] phi from main::@161 to main::@162 [phi:main::@161->main::@162] - // main::@162 + // [566] phi from main::@164 to main::@165 [phi:main::@164->main::@165] + // main::@165 // util_wait_space() - // [561] call util_wait_space - // [1057] phi from main::@162 to util_wait_space [phi:main::@162->util_wait_space] + // [567] call util_wait_space + // [1064] phi from main::@165 to util_wait_space [phi:main::@165->util_wait_space] jsr util_wait_space jmp check_status_smc5 - // [562] phi from main::@225 to main::@37 [phi:main::@225->main::@37] - // main::@37 - __b37: + // [568] phi from main::@229 to main::@39 [phi:main::@229->main::@39] + // main::@39 + __b39: // display_action_progress("SMC update issue!") - // [563] call display_action_progress - // [838] phi from main::@37 to display_action_progress [phi:main::@37->display_action_progress] - // [838] phi display_action_progress::info_text#18 = main::info_text8 [phi:main::@37->display_action_progress#0] -- pbuz1=pbuc1 - lda #display_action_progress] + // [845] phi display_action_progress::info_text#19 = main::info_text9 [phi:main::@39->display_action_progress#0] -- pbuz1=pbuc1 + lda #info_text8 + lda #>info_text9 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [564] phi from main::@37 to main::@155 [phi:main::@37->main::@155] - // main::@155 + // [570] phi from main::@39 to main::@158 [phi:main::@39->main::@158] + // main::@158 // display_progress_text(display_smc_rom_issue_text, display_smc_rom_issue_count) - // [565] call display_progress_text - // [1047] phi from main::@155 to display_progress_text [phi:main::@155->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_smc_rom_issue_text [phi:main::@155->display_progress_text#0] -- qbuz1=qbuc1 + // [571] call display_progress_text + // [1054] phi from main::@158 to display_progress_text [phi:main::@158->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_smc_rom_issue_text [phi:main::@158->display_progress_text#0] -- qbuz1=qbuc1 lda #display_smc_rom_issue_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_smc_rom_issue_count [phi:main::@155->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_smc_rom_issue_count [phi:main::@158->display_progress_text#1] -- vbuz1=vbuc1 lda #display_smc_rom_issue_count sta.z display_progress_text.lines jsr display_progress_text - // [566] phi from main::@155 to main::@156 [phi:main::@155->main::@156] - // main::@156 + // [572] phi from main::@158 to main::@159 [phi:main::@158->main::@159] + // main::@159 // display_info_cx16_rom(STATUS_SKIP, "Issue with SMC!") - // [567] call display_info_cx16_rom - // [1760] phi from main::@156 to display_info_cx16_rom [phi:main::@156->display_info_cx16_rom] - // [1760] phi display_info_cx16_rom::info_text#4 = main::info_text9 [phi:main::@156->display_info_cx16_rom#0] -- pbuz1=pbuc1 - lda #display_info_cx16_rom] + // [1774] phi display_info_cx16_rom::info_text#4 = main::info_text10 [phi:main::@159->display_info_cx16_rom#0] -- pbuz1=pbuc1 + lda #info_text9 + lda #>info_text10 sta.z display_info_cx16_rom.info_text+1 - // [1760] phi display_info_cx16_rom::info_status#4 = STATUS_SKIP [phi:main::@156->display_info_cx16_rom#1] -- vbuz1=vbuc1 + // [1774] phi display_info_cx16_rom::info_status#4 = STATUS_SKIP [phi:main::@159->display_info_cx16_rom#1] -- vbuz1=vbuc1 lda #STATUS_SKIP sta.z display_info_cx16_rom.info_status jsr display_info_cx16_rom - // main::@157 - // [568] smc_bootloader#430 = smc_bootloader#0 -- vwum1=vwum2 + // main::@160 + // [574] smc_bootloader#433 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ISSUE, NULL) - // [569] call display_info_smc - // [896] phi from main::@157 to display_info_smc [phi:main::@157->display_info_smc] - // [896] phi display_info_smc::info_text#18 = 0 [phi:main::@157->display_info_smc#0] -- pbuz1=vbuc1 + // [575] call display_info_smc + // [903] phi from main::@160 to display_info_smc [phi:main::@160->display_info_smc] + // [903] phi display_info_smc::info_text#18 = 0 [phi:main::@160->display_info_smc#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_smc.info_text sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#430 [phi:main::@157->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@157->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#433 [phi:main::@160->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@160->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ISSUE sta display_info_smc.info_status jsr display_info_smc - // [570] phi from main::@157 to main::@158 [phi:main::@157->main::@158] - // main::@158 + // [576] phi from main::@160 to main::@161 [phi:main::@160->main::@161] + // main::@161 // util_wait_space() - // [571] call util_wait_space - // [1057] phi from main::@158 to util_wait_space [phi:main::@158->util_wait_space] + // [577] call util_wait_space + // [1064] phi from main::@161 to util_wait_space [phi:main::@161->util_wait_space] jsr util_wait_space jmp check_status_smc3 // main::bank_set_brom5 bank_set_brom5: // BROM = bank - // [572] BROM = main::bank_set_brom5_bank#0 -- vbuz1=vbuc1 + // [578] BROM = main::bank_set_brom5_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom5_bank sta.z BROM - // main::@70 + // main::@72 // if(rom_device_ids[rom_chip] != UNKNOWN) - // [573] if(rom_device_ids[main::rom_chip2#10]==$55) goto main::@31 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 + // [579] if(rom_device_ids[main::rom_chip2#10]==$55) goto main::@33 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 ldy rom_chip2 lda rom_device_ids,y cmp #$55 - bne !__b31+ - jmp __b31 - !__b31: - // [574] phi from main::@70 to main::@34 [phi:main::@70->main::@34] - // main::@34 + bne !__b33+ + jmp __b33 + !__b33: + // [580] phi from main::@72 to main::@36 [phi:main::@72->main::@36] + // main::@36 // display_progress_clear() - // [575] call display_progress_clear - // [852] phi from main::@34 to display_progress_clear [phi:main::@34->display_progress_clear] + // [581] call display_progress_clear + // [859] phi from main::@36 to display_progress_clear [phi:main::@36->display_progress_clear] jsr display_progress_clear - // main::@133 + // main::@136 // unsigned char rom_bank = rom_chip * 32 - // [576] main::rom_bank#0 = main::rom_chip2#10 << 5 -- vbum1=vbum2_rol_5 + // [582] main::rom_bank#0 = main::rom_chip2#10 << 5 -- vbum1=vbum2_rol_5 lda rom_chip2 asl asl @@ -3549,118 +3574,118 @@ main: { asl sta rom_bank // unsigned char* file = rom_file(rom_chip) - // [577] rom_file::rom_chip#0 = main::rom_chip2#10 -- vbuz1=vbum2 + // [583] rom_file::rom_chip#0 = main::rom_chip2#10 -- vbuz1=vbum2 lda rom_chip2 sta.z rom_file.rom_chip - // [578] call rom_file - // [1283] phi from main::@133 to rom_file [phi:main::@133->rom_file] - // [1283] phi rom_file::rom_chip#2 = rom_file::rom_chip#0 [phi:main::@133->rom_file#0] -- register_copy + // [584] call rom_file + // [1293] phi from main::@136 to rom_file [phi:main::@136->rom_file] + // [1293] phi rom_file::rom_chip#2 = rom_file::rom_chip#0 [phi:main::@136->rom_file#0] -- register_copy jsr rom_file // unsigned char* file = rom_file(rom_chip) - // [579] rom_file::return#4 = rom_file::return#2 - // main::@134 - // [580] main::file#0 = rom_file::return#4 -- pbum1=pbum2 + // [585] rom_file::return#4 = rom_file::return#2 + // main::@137 + // [586] main::file#0 = rom_file::return#4 -- pbum1=pbum2 lda rom_file.return sta file lda rom_file.return+1 sta file+1 - // sprintf(info_text, "Checking %s ... (.) data ( ) empty", file) - // [581] call snprintf_init - // [1123] phi from main::@134 to snprintf_init [phi:main::@134->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@134->snprintf_init#0] -- pbuz1=pbuc1 + // sprintf(info_text, "Checking %s ...", file) + // [587] call snprintf_init + // [1133] phi from main::@137 to snprintf_init [phi:main::@137->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@137->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [582] phi from main::@134 to main::@135 [phi:main::@134->main::@135] - // main::@135 - // sprintf(info_text, "Checking %s ... (.) data ( ) empty", file) - // [583] call printf_str - // [1128] phi from main::@135 to printf_str [phi:main::@135->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@135->printf_str#0] -- pprz1=pprc1 + // [588] phi from main::@137 to main::@138 [phi:main::@137->main::@138] + // main::@138 + // sprintf(info_text, "Checking %s ...", file) + // [589] call printf_str + // [1138] phi from main::@138 to printf_str [phi:main::@138->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@138->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s5 [phi:main::@135->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s5 [phi:main::@138->printf_str#1] -- pbuz1=pbuc1 lda #s5 sta.z printf_str.s+1 jsr printf_str - // main::@136 - // sprintf(info_text, "Checking %s ... (.) data ( ) empty", file) - // [584] printf_string::str#16 = main::file#0 -- pbuz1=pbum2 + // main::@139 + // sprintf(info_text, "Checking %s ...", file) + // [590] printf_string::str#18 = main::file#0 -- pbuz1=pbum2 lda file sta.z printf_string.str lda file+1 sta.z printf_string.str+1 - // [585] call printf_string - // [1137] phi from main::@136 to printf_string [phi:main::@136->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:main::@136->printf_string#0] -- pprz1=pprc1 + // [591] call printf_string + // [1147] phi from main::@139 to printf_string [phi:main::@139->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:main::@139->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#16 [phi:main::@136->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:main::@136->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#18 [phi:main::@139->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:main::@139->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:main::@136->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:main::@139->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // [586] phi from main::@136 to main::@137 [phi:main::@136->main::@137] - // main::@137 - // sprintf(info_text, "Checking %s ... (.) data ( ) empty", file) - // [587] call printf_str - // [1128] phi from main::@137 to printf_str [phi:main::@137->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@137->printf_str#0] -- pprz1=pprc1 + // [592] phi from main::@139 to main::@140 [phi:main::@139->main::@140] + // main::@140 + // sprintf(info_text, "Checking %s ...", file) + // [593] call printf_str + // [1138] phi from main::@140 to printf_str [phi:main::@140->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@140->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s6 [phi:main::@137->printf_str#1] -- pbuz1=pbuc1 - lda #printf_str#1] -- pbuz1=pbuc1 + lda #<@s4 sta.z printf_str.s - lda #>s6 + lda #>@s4 sta.z printf_str.s+1 jsr printf_str - // main::@138 - // sprintf(info_text, "Checking %s ... (.) data ( ) empty", file) - // [588] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // main::@141 + // sprintf(info_text, "Checking %s ...", file) + // [594] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [589] callexecute snputc -- call_vprc1 + // [595] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_progress(info_text) - // [591] call display_action_progress - // [838] phi from main::@138 to display_action_progress [phi:main::@138->display_action_progress] - // [838] phi display_action_progress::info_text#18 = info_text [phi:main::@138->display_action_progress#0] -- pbuz1=pbuc1 + // [597] call display_action_progress + // [845] phi from main::@141 to display_action_progress [phi:main::@141->display_action_progress] + // [845] phi display_action_progress::info_text#19 = info_text [phi:main::@141->display_action_progress#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_progress.info_text lda #>@info_text sta.z display_action_progress.info_text+1 jsr display_action_progress - // main::@139 - // unsigned long rom_bytes_read = rom_read(0, rom_chip, file, STATUS_CHECKING, rom_bank, rom_sizes[rom_chip]) - // [592] main::$282 = main::rom_chip2#10 << 2 -- vbum1=vbum2_rol_2 + // main::@142 + // unsigned long rom_bytes_read = rom_read(rom_chip, file, STATUS_CHECKING, rom_bank, rom_sizes[rom_chip]) + // [598] main::$286 = main::rom_chip2#10 << 2 -- vbum1=vbum2_rol_2 lda rom_chip2 asl asl - sta main__282 - // [593] rom_read::file#0 = main::file#0 -- pbum1=pbum2 + sta main__286 + // [599] rom_read::file#0 = main::file#0 -- pbuz1=pbum2 lda file - sta rom_read.file + sta.z rom_read.file lda file+1 - sta rom_read.file+1 - // [594] rom_read::brom_bank_start#1 = main::rom_bank#0 -- vbum1=vbum2 + sta.z rom_read.file+1 + // [600] rom_read::brom_bank_start#1 = main::rom_bank#0 -- vbum1=vbum2 lda rom_bank sta rom_read.brom_bank_start - // [595] rom_read::rom_size#0 = rom_sizes[main::$282] -- vduz1=pduc1_derefidx_vbum2 - ldy main__282 + // [601] rom_read::rom_size#0 = rom_sizes[main::$286] -- vduz1=pduc1_derefidx_vbum2 + ldy main__286 lda rom_sizes,y sta.z rom_read.rom_size lda rom_sizes+1,y @@ -3669,34 +3694,34 @@ main: { sta.z rom_read.rom_size+2 lda rom_sizes+3,y sta.z rom_read.rom_size+3 - // [596] call rom_read + // [602] call rom_read // Read the ROM(n).BIN file. - // [1289] phi from main::@139 to rom_read [phi:main::@139->rom_read] - // [1289] phi rom_read::display_progress#28 = 0 [phi:main::@139->rom_read#0] -- vbum1=vbuc1 - lda #0 - sta rom_read.display_progress - // [1289] phi rom_read::rom_size#12 = rom_read::rom_size#0 [phi:main::@139->rom_read#1] -- register_copy - // [1289] phi __errno#108 = __errno#114 [phi:main::@139->rom_read#2] -- register_copy - // [1289] phi rom_read::file#11 = rom_read::file#0 [phi:main::@139->rom_read#3] -- register_copy - // [1289] phi rom_read::brom_bank_start#22 = rom_read::brom_bank_start#1 [phi:main::@139->rom_read#4] -- register_copy + // [1299] phi from main::@142 to rom_read [phi:main::@142->rom_read] + // [1299] phi rom_read::rom_size#12 = rom_read::rom_size#0 [phi:main::@142->rom_read#0] -- register_copy + // [1299] phi __errno#110 = __errno#116 [phi:main::@142->rom_read#1] -- register_copy + // [1299] phi rom_read::file#11 = rom_read::file#0 [phi:main::@142->rom_read#2] -- register_copy + // [1299] phi rom_read::info_status#10 = STATUS_CHECKING [phi:main::@142->rom_read#3] -- vbum1=vbuc1 + lda #STATUS_CHECKING + sta rom_read.info_status + // [1299] phi rom_read::brom_bank_start#23 = rom_read::brom_bank_start#1 [phi:main::@142->rom_read#4] -- register_copy jsr rom_read - // unsigned long rom_bytes_read = rom_read(0, rom_chip, file, STATUS_CHECKING, rom_bank, rom_sizes[rom_chip]) - // [597] rom_read::return#2 = rom_read::return#0 - // main::@140 - // [598] main::rom_bytes_read#0 = rom_read::return#2 + // unsigned long rom_bytes_read = rom_read(rom_chip, file, STATUS_CHECKING, rom_bank, rom_sizes[rom_chip]) + // [603] rom_read::return#2 = rom_read::return#0 + // main::@143 + // [604] main::rom_bytes_read#0 = rom_read::return#2 // if (!rom_bytes_read) - // [599] if(0==main::rom_bytes_read#0) goto main::@32 -- 0_eq_vdum1_then_la1 + // [605] if(0==main::rom_bytes_read#0) goto main::@34 -- 0_eq_vdum1_then_la1 // In case no file was found, set the status to none and skip to the next, else, mention the amount of bytes read. lda rom_bytes_read ora rom_bytes_read+1 ora rom_bytes_read+2 ora rom_bytes_read+3 - bne !__b32+ - jmp __b32 - !__b32: - // main::@35 + bne !__b34+ + jmp __b34 + !__b34: + // main::@37 // unsigned long rom_file_modulo = rom_bytes_read % 0x4000 - // [600] main::rom_file_modulo#0 = main::rom_bytes_read#0 & $4000-1 -- vdum1=vdum2_band_vduc1 + // [606] main::rom_file_modulo#0 = main::rom_bytes_read#0 & $4000-1 -- vdum1=vdum2_band_vduc1 lda rom_bytes_read and #<$4000-1 sta rom_file_modulo @@ -3710,20 +3735,20 @@ main: { and #>$4000-1>>$10 sta rom_file_modulo+3 // if(rom_file_modulo) - // [601] if(0!=main::rom_file_modulo#0) goto main::@33 -- 0_neq_vdum1_then_la1 + // [607] if(0!=main::rom_file_modulo#0) goto main::@35 -- 0_neq_vdum1_then_la1 lda rom_file_modulo ora rom_file_modulo+1 ora rom_file_modulo+2 ora rom_file_modulo+3 - beq !__b33+ - jmp __b33 - !__b33: - // main::@36 + beq !__b35+ + jmp __b35 + !__b35: + // main::@38 // file_sizes[rom_chip] = rom_bytes_read - // [602] file_sizes[main::$282] = main::rom_bytes_read#0 -- pduc1_derefidx_vbum1=vdum2 + // [608] file_sizes[main::$286] = main::rom_bytes_read#0 -- pduc1_derefidx_vbum1=vdum2 // RF5 | ROM.BIN all ok | Display the ROM.BIN release version and github commit id (if any) and set ROM to Flash | Flash // We know the file size, so we indicate it in the status panel. - ldy main__282 + ldy main__286 lda rom_bytes_read sta file_sizes,y lda rom_bytes_read+1 @@ -3733,14 +3758,14 @@ main: { lda rom_bytes_read+3 sta file_sizes+3,y // rom_get_github_commit_id(rom_file_github, (char*)RAM_BASE) - // [603] call rom_get_github_commit_id - // [1765] phi from main::@36 to rom_get_github_commit_id [phi:main::@36->rom_get_github_commit_id] - // [1765] phi rom_get_github_commit_id::commit_id#6 = main::rom_file_github [phi:main::@36->rom_get_github_commit_id#0] -- pbuz1=pbuc1 + // [609] call rom_get_github_commit_id + // [1779] phi from main::@38 to rom_get_github_commit_id [phi:main::@38->rom_get_github_commit_id] + // [1779] phi rom_get_github_commit_id::commit_id#6 = main::rom_file_github [phi:main::@38->rom_get_github_commit_id#0] -- pbuz1=pbuc1 lda #rom_file_github sta.z rom_get_github_commit_id.commit_id+1 - // [1765] phi rom_get_github_commit_id::from#6 = (char *)$7800 [phi:main::@36->rom_get_github_commit_id#1] -- pbuz1=pbuc1 + // [1779] phi rom_get_github_commit_id::from#6 = (char *)$7800 [phi:main::@38->rom_get_github_commit_id#1] -- pbuz1=pbuc1 lda #<$7800 sta.z rom_get_github_commit_id.from lda #>$7800 @@ -3752,802 +3777,811 @@ main: { lda.z 0 pha // BRAM = bank - // [605] BRAM = main::bank_push_set_bram1_bank#0 -- vbuz1=vbuc1 + // [611] BRAM = main::bank_push_set_bram1_bank#0 -- vbuz1=vbuc1 lda #bank_push_set_bram1_bank sta.z BRAM - // main::@72 + // main::@74 // unsigned char rom_file_release = rom_get_release(*((char*)0xBF80)) - // [606] rom_get_release::release#2 = *((char *) 49024) -- vbuz1=_deref_pbuc1 + // [612] rom_get_release::release#2 = *((char *) 49024) -- vbuz1=_deref_pbuc1 lda $bf80 sta.z rom_get_release.release - // [607] call rom_get_release - // [1782] phi from main::@72 to rom_get_release [phi:main::@72->rom_get_release] - // [1782] phi rom_get_release::release#3 = rom_get_release::release#2 [phi:main::@72->rom_get_release#0] -- register_copy + // [613] call rom_get_release + // [1796] phi from main::@74 to rom_get_release [phi:main::@74->rom_get_release] + // [1796] phi rom_get_release::release#3 = rom_get_release::release#2 [phi:main::@74->rom_get_release#0] -- register_copy jsr rom_get_release // unsigned char rom_file_release = rom_get_release(*((char*)0xBF80)) - // [608] rom_get_release::return#3 = rom_get_release::return#0 - // main::@148 - // [609] main::rom_file_release#0 = rom_get_release::return#3 + // [614] rom_get_release::return#3 = rom_get_release::return#0 + // main::@151 + // [615] main::rom_file_release#0 = rom_get_release::return#3 // unsigned char rom_file_prefix = rom_get_prefix(*((char*)0xBF80)) - // [610] rom_get_prefix::release#1 = *((char *) 49024) -- vbum1=_deref_pbuc1 + // [616] rom_get_prefix::release#1 = *((char *) 49024) -- vbum1=_deref_pbuc1 lda $bf80 sta rom_get_prefix.release - // [611] call rom_get_prefix - // [1789] phi from main::@148 to rom_get_prefix [phi:main::@148->rom_get_prefix] - // [1789] phi rom_get_prefix::release#2 = rom_get_prefix::release#1 [phi:main::@148->rom_get_prefix#0] -- register_copy + // [617] call rom_get_prefix + // [1803] phi from main::@151 to rom_get_prefix [phi:main::@151->rom_get_prefix] + // [1803] phi rom_get_prefix::release#2 = rom_get_prefix::release#1 [phi:main::@151->rom_get_prefix#0] -- register_copy jsr rom_get_prefix // unsigned char rom_file_prefix = rom_get_prefix(*((char*)0xBF80)) - // [612] rom_get_prefix::return#3 = rom_get_prefix::return#0 - // main::@149 - // [613] main::rom_file_prefix#0 = rom_get_prefix::return#3 + // [618] rom_get_prefix::return#3 = rom_get_prefix::return#0 + // main::@152 + // [619] main::rom_file_prefix#0 = rom_get_prefix::return#3 // main::bank_pull_bram1 // asm // asm { pla sta$00 } pla sta.z 0 - // main::@73 + // main::@75 // rom_get_version_text(rom_file_release_text, rom_file_prefix, rom_file_release, rom_file_github) - // [615] rom_get_version_text::prefix#1 = main::rom_file_prefix#0 - // [616] rom_get_version_text::release#1 = main::rom_file_release#0 - // [617] call rom_get_version_text - // [1798] phi from main::@73 to rom_get_version_text [phi:main::@73->rom_get_version_text] - // [1798] phi rom_get_version_text::github#2 = main::rom_file_github [phi:main::@73->rom_get_version_text#0] -- pbuz1=pbuc1 + // [621] rom_get_version_text::prefix#1 = main::rom_file_prefix#0 + // [622] rom_get_version_text::release#1 = main::rom_file_release#0 + // [623] call rom_get_version_text + // [1812] phi from main::@75 to rom_get_version_text [phi:main::@75->rom_get_version_text] + // [1812] phi rom_get_version_text::github#2 = main::rom_file_github [phi:main::@75->rom_get_version_text#0] -- pbuz1=pbuc1 lda #rom_file_github sta.z rom_get_version_text.github+1 - // [1798] phi rom_get_version_text::release#2 = rom_get_version_text::release#1 [phi:main::@73->rom_get_version_text#1] -- register_copy - // [1798] phi rom_get_version_text::prefix#2 = rom_get_version_text::prefix#1 [phi:main::@73->rom_get_version_text#2] -- register_copy - // [1798] phi rom_get_version_text::release_info#2 = main::rom_file_release_text [phi:main::@73->rom_get_version_text#3] -- pbuz1=pbuc1 + // [1812] phi rom_get_version_text::release#2 = rom_get_version_text::release#1 [phi:main::@75->rom_get_version_text#1] -- register_copy + // [1812] phi rom_get_version_text::prefix#2 = rom_get_version_text::prefix#1 [phi:main::@75->rom_get_version_text#2] -- register_copy + // [1812] phi rom_get_version_text::release_info#2 = main::rom_file_release_text [phi:main::@75->rom_get_version_text#3] -- pbuz1=pbuc1 lda #rom_file_release_text sta.z rom_get_version_text.release_info+1 jsr rom_get_version_text - // [618] phi from main::@73 to main::@150 [phi:main::@73->main::@150] - // main::@150 + // [624] phi from main::@75 to main::@153 [phi:main::@75->main::@153] + // main::@153 // sprintf(info_text, "%s:%s", file, rom_file_release_text) - // [619] call snprintf_init - // [1123] phi from main::@150 to snprintf_init [phi:main::@150->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@150->snprintf_init#0] -- pbuz1=pbuc1 + // [625] call snprintf_init + // [1133] phi from main::@153 to snprintf_init [phi:main::@153->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@153->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // main::@151 + // main::@154 // sprintf(info_text, "%s:%s", file, rom_file_release_text) - // [620] printf_string::str#19 = main::file#0 -- pbuz1=pbum2 + // [626] printf_string::str#21 = main::file#0 -- pbuz1=pbum2 lda file sta.z printf_string.str lda file+1 sta.z printf_string.str+1 - // [621] call printf_string - // [1137] phi from main::@151 to printf_string [phi:main::@151->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:main::@151->printf_string#0] -- pprz1=pprc1 + // [627] call printf_string + // [1147] phi from main::@154 to printf_string [phi:main::@154->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:main::@154->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#19 [phi:main::@151->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:main::@151->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#21 [phi:main::@154->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:main::@154->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:main::@151->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:main::@154->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // [622] phi from main::@151 to main::@152 [phi:main::@151->main::@152] - // main::@152 + // [628] phi from main::@154 to main::@155 [phi:main::@154->main::@155] + // main::@155 // sprintf(info_text, "%s:%s", file, rom_file_release_text) - // [623] call printf_str - // [1128] phi from main::@152 to printf_str [phi:main::@152->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@152->printf_str#0] -- pprz1=pprc1 + // [629] call printf_str + // [1138] phi from main::@155 to printf_str [phi:main::@155->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@155->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s3 [phi:main::@152->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s3 [phi:main::@155->printf_str#1] -- pbuz1=pbuc1 lda #<@s3 sta.z printf_str.s lda #>@s3 sta.z printf_str.s+1 jsr printf_str - // [624] phi from main::@152 to main::@153 [phi:main::@152->main::@153] - // main::@153 + // [630] phi from main::@155 to main::@156 [phi:main::@155->main::@156] + // main::@156 // sprintf(info_text, "%s:%s", file, rom_file_release_text) - // [625] call printf_string - // [1137] phi from main::@153 to printf_string [phi:main::@153->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:main::@153->printf_string#0] -- pprz1=pprc1 + // [631] call printf_string + // [1147] phi from main::@156 to printf_string [phi:main::@156->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:main::@156->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = main::rom_file_release_text [phi:main::@153->printf_string#1] -- pbuz1=pbuc1 + // [1147] phi printf_string::str#24 = main::rom_file_release_text [phi:main::@156->printf_string#1] -- pbuz1=pbuc1 lda #rom_file_release_text sta.z printf_string.str+1 - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:main::@153->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:main::@156->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:main::@153->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:main::@156->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // main::@154 + // main::@157 // sprintf(info_text, "%s:%s", file, rom_file_release_text) - // [626] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [632] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [627] callexecute snputc -- call_vprc1 + // [633] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_info_rom(rom_chip, STATUS_FLASH, info_text) - // [629] display_info_rom::rom_chip#8 = main::rom_chip2#10 -- vbuz1=vbum2 + // [635] display_info_rom::rom_chip#8 = main::rom_chip2#10 -- vbuz1=vbum2 lda rom_chip2 sta.z display_info_rom.rom_chip - // [630] call display_info_rom - // [1240] phi from main::@154 to display_info_rom [phi:main::@154->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text [phi:main::@154->display_info_rom#0] -- pbuz1=pbuc1 + // [636] call display_info_rom + // [1250] phi from main::@157 to display_info_rom [phi:main::@157->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text [phi:main::@157->display_info_rom#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_rom.info_text lda #>@info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#8 [phi:main::@154->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_FLASH [phi:main::@154->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#8 [phi:main::@157->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_FLASH [phi:main::@157->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_FLASH sta.z display_info_rom.info_status jsr display_info_rom - // [631] phi from main::@143 main::@147 main::@154 main::@70 to main::@31 [phi:main::@143/main::@147/main::@154/main::@70->main::@31] - // [631] phi __errno#234 = __errno#18 [phi:main::@143/main::@147/main::@154/main::@70->main::@31#0] -- register_copy - // main::@31 - __b31: - // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [632] main::rom_chip2#1 = ++ main::rom_chip2#10 -- vbum1=_inc_vbum1 - inc rom_chip2 - // [191] phi from main::@31 to main::@30 [phi:main::@31->main::@30] - // [191] phi __errno#114 = __errno#234 [phi:main::@31->main::@30#0] -- register_copy - // [191] phi main::rom_chip2#10 = main::rom_chip2#1 [phi:main::@31->main::@30#1] -- register_copy - jmp __b30 - // [633] phi from main::@35 to main::@33 [phi:main::@35->main::@33] + // [637] phi from main::@146 main::@150 main::@157 main::@72 to main::@33 [phi:main::@146/main::@150/main::@157/main::@72->main::@33] + // [637] phi __errno#239 = __errno#18 [phi:main::@146/main::@150/main::@157/main::@72->main::@33#0] -- register_copy // main::@33 __b33: + // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) + // [638] main::rom_chip2#1 = ++ main::rom_chip2#10 -- vbum1=_inc_vbum1 + inc rom_chip2 + // [193] phi from main::@33 to main::@32 [phi:main::@33->main::@32] + // [193] phi __errno#116 = __errno#239 [phi:main::@33->main::@32#0] -- register_copy + // [193] phi main::rom_chip2#10 = main::rom_chip2#1 [phi:main::@33->main::@32#1] -- register_copy + jmp __b32 + // [639] phi from main::@37 to main::@35 [phi:main::@37->main::@35] + // main::@35 + __b35: // sprintf(info_text, "File %s size error!", file) - // [634] call snprintf_init - // [1123] phi from main::@33 to snprintf_init [phi:main::@33->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@33->snprintf_init#0] -- pbuz1=pbuc1 + // [640] call snprintf_init + // [1133] phi from main::@35 to snprintf_init [phi:main::@35->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@35->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [635] phi from main::@33 to main::@144 [phi:main::@33->main::@144] - // main::@144 + // [641] phi from main::@35 to main::@147 [phi:main::@35->main::@147] + // main::@147 // sprintf(info_text, "File %s size error!", file) - // [636] call printf_str - // [1128] phi from main::@144 to printf_str [phi:main::@144->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@144->printf_str#0] -- pprz1=pprc1 + // [642] call printf_str + // [1138] phi from main::@147 to printf_str [phi:main::@147->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@147->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s8 [phi:main::@144->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s8 [phi:main::@147->printf_str#1] -- pbuz1=pbuc1 lda #s8 sta.z printf_str.s+1 jsr printf_str - // main::@145 + // main::@148 // sprintf(info_text, "File %s size error!", file) - // [637] printf_string::str#18 = main::file#0 -- pbuz1=pbum2 + // [643] printf_string::str#20 = main::file#0 -- pbuz1=pbum2 lda file sta.z printf_string.str lda file+1 sta.z printf_string.str+1 - // [638] call printf_string - // [1137] phi from main::@145 to printf_string [phi:main::@145->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:main::@145->printf_string#0] -- pprz1=pprc1 + // [644] call printf_string + // [1147] phi from main::@148 to printf_string [phi:main::@148->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:main::@148->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#18 [phi:main::@145->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:main::@145->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#20 [phi:main::@148->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:main::@148->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:main::@145->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:main::@148->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // [639] phi from main::@145 to main::@146 [phi:main::@145->main::@146] - // main::@146 + // [645] phi from main::@148 to main::@149 [phi:main::@148->main::@149] + // main::@149 // sprintf(info_text, "File %s size error!", file) - // [640] call printf_str - // [1128] phi from main::@146 to printf_str [phi:main::@146->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@146->printf_str#0] -- pprz1=pprc1 + // [646] call printf_str + // [1138] phi from main::@149 to printf_str [phi:main::@149->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@149->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s9 [phi:main::@146->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s9 [phi:main::@149->printf_str#1] -- pbuz1=pbuc1 lda #s9 sta.z printf_str.s+1 jsr printf_str - // main::@147 + // main::@150 // sprintf(info_text, "File %s size error!", file) - // [641] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [647] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [642] callexecute snputc -- call_vprc1 + // [648] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_info_rom(rom_chip, STATUS_ISSUE, info_text) - // [644] display_info_rom::rom_chip#7 = main::rom_chip2#10 -- vbuz1=vbum2 + // [650] display_info_rom::rom_chip#7 = main::rom_chip2#10 -- vbuz1=vbum2 lda rom_chip2 sta.z display_info_rom.rom_chip - // [645] call display_info_rom - // [1240] phi from main::@147 to display_info_rom [phi:main::@147->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text [phi:main::@147->display_info_rom#0] -- pbuz1=pbuc1 + // [651] call display_info_rom + // [1250] phi from main::@150 to display_info_rom [phi:main::@150->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text [phi:main::@150->display_info_rom#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_rom.info_text lda #>@info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#7 [phi:main::@147->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_ISSUE [phi:main::@147->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#7 [phi:main::@150->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_ISSUE [phi:main::@150->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_ISSUE sta.z display_info_rom.info_status jsr display_info_rom - jmp __b31 - // [646] phi from main::@140 to main::@32 [phi:main::@140->main::@32] - // main::@32 - __b32: + jmp __b33 + // [652] phi from main::@143 to main::@34 [phi:main::@143->main::@34] + // main::@34 + __b34: // sprintf(info_text, "No %s", file) - // [647] call snprintf_init - // [1123] phi from main::@32 to snprintf_init [phi:main::@32->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@32->snprintf_init#0] -- pbuz1=pbuc1 + // [653] call snprintf_init + // [1133] phi from main::@34 to snprintf_init [phi:main::@34->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@34->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [648] phi from main::@32 to main::@141 [phi:main::@32->main::@141] - // main::@141 + // [654] phi from main::@34 to main::@144 [phi:main::@34->main::@144] + // main::@144 // sprintf(info_text, "No %s", file) - // [649] call printf_str - // [1128] phi from main::@141 to printf_str [phi:main::@141->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@141->printf_str#0] -- pprz1=pprc1 + // [655] call printf_str + // [1138] phi from main::@144 to printf_str [phi:main::@144->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@144->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s7 [phi:main::@141->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s7 [phi:main::@144->printf_str#1] -- pbuz1=pbuc1 lda #s7 sta.z printf_str.s+1 jsr printf_str - // main::@142 + // main::@145 // sprintf(info_text, "No %s", file) - // [650] printf_string::str#17 = main::file#0 -- pbuz1=pbum2 + // [656] printf_string::str#19 = main::file#0 -- pbuz1=pbum2 lda file sta.z printf_string.str lda file+1 sta.z printf_string.str+1 - // [651] call printf_string - // [1137] phi from main::@142 to printf_string [phi:main::@142->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:main::@142->printf_string#0] -- pprz1=pprc1 + // [657] call printf_string + // [1147] phi from main::@145 to printf_string [phi:main::@145->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:main::@145->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#17 [phi:main::@142->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:main::@142->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#19 [phi:main::@145->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:main::@145->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:main::@142->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:main::@145->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // main::@143 + // main::@146 // sprintf(info_text, "No %s", file) - // [652] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [658] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [653] callexecute snputc -- call_vprc1 + // [659] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_info_rom(rom_chip, STATUS_SKIP, info_text) - // [655] display_info_rom::rom_chip#6 = main::rom_chip2#10 -- vbuz1=vbum2 + // [661] display_info_rom::rom_chip#6 = main::rom_chip2#10 -- vbuz1=vbum2 lda rom_chip2 sta.z display_info_rom.rom_chip - // [656] call display_info_rom - // [1240] phi from main::@143 to display_info_rom [phi:main::@143->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text [phi:main::@143->display_info_rom#0] -- pbuz1=pbuc1 + // [662] call display_info_rom + // [1250] phi from main::@146 to display_info_rom [phi:main::@146->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text [phi:main::@146->display_info_rom#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_rom.info_text lda #>@info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#6 [phi:main::@143->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_SKIP [phi:main::@143->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#6 [phi:main::@146->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_SKIP [phi:main::@146->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_SKIP sta.z display_info_rom.info_status jsr display_info_rom - jmp __b31 - // main::@29 - __b29: - // [657] smc_bootloader#437 = smc_bootloader#0 -- vwum1=vwum2 + jmp __b33 + // main::@31 + __b31: + // [663] smc_bootloader#440 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ISSUE, "SMC.BIN too large!") - // [658] call display_info_smc + // [664] call display_info_smc // SF3 | size SMC.BIN is > 0x1E00 | Display SMC.BIN file size issue and don't flash. Ask the user to place a correct SMC.BIN file onto the SDcard. | Issue - // [896] phi from main::@29 to display_info_smc [phi:main::@29->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text7 [phi:main::@29->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text8 [phi:main::@31->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text7 + lda #>info_text8 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#437 [phi:main::@29->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@29->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#440 [phi:main::@31->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@31->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ISSUE sta display_info_smc.info_status jsr display_info_smc - // [186] phi from main::@28 main::@29 to main::CLI2 [phi:main::@28/main::@29->main::CLI2] - __b10: - // [186] phi smc_file_minor#276 = 0 [phi:main::@28/main::@29->main::CLI2#0] -- vbum1=vbuc1 + // [188] phi from main::@30 main::@31 to main::CLI2 [phi:main::@30/main::@31->main::CLI2] + __b11: + // [188] phi smc_file_minor#277 = 0 [phi:main::@30/main::@31->main::CLI2#0] -- vbum1=vbuc1 lda #0 sta smc_file_minor - // [186] phi smc_file_major#276 = 0 [phi:main::@28/main::@29->main::CLI2#1] -- vbum1=vbuc1 + // [188] phi smc_file_major#277 = 0 [phi:main::@30/main::@31->main::CLI2#1] -- vbum1=vbuc1 sta smc_file_major - // [186] phi smc_file_release#276 = 0 [phi:main::@28/main::@29->main::CLI2#2] -- vbum1=vbuc1 + // [188] phi smc_file_release#277 = 0 [phi:main::@30/main::@31->main::CLI2#2] -- vbum1=vbuc1 sta smc_file_release - // [186] phi __errno#235 = __errno#18 [phi:main::@28/main::@29->main::CLI2#3] -- register_copy + // [188] phi __errno#240 = __errno#18 [phi:main::@30/main::@31->main::CLI2#3] -- register_copy jmp CLI2 - // main::@28 - __b28: - // [659] smc_bootloader#436 = smc_bootloader#0 -- vwum1=vwum2 + // main::@30 + __b30: + // [665] smc_bootloader#439 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_SKIP, "No SMC.BIN!") - // [660] call display_info_smc + // [666] call display_info_smc // SF1 | no SMC.BIN | Ask user to place an SMC.BIN file onto the SDcard and don't flash. | Issue // SF2 | size SMC.BIN is 0 | Ask user to place an SMC.BIN file onto the SDcard and don't flash. | Issue - // [896] phi from main::@28 to display_info_smc [phi:main::@28->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text6 [phi:main::@28->display_info_smc#0] -- pbuz1=pbuc1 - lda #display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text7 [phi:main::@30->display_info_smc#0] -- pbuz1=pbuc1 + lda #info_text6 + lda #>info_text7 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#436 [phi:main::@28->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@28->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#439 [phi:main::@30->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_SKIP [phi:main::@30->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_SKIP sta display_info_smc.info_status jsr display_info_smc - jmp __b10 - // main::@23 - __b23: + jmp __b11 + // main::@25 + __b25: // display_info_led(PROGRESS_X + 3, PROGRESS_Y + 3 + intro_status, status_color[intro_status], BLUE) - // [661] display_info_led::y#3 = PROGRESS_Y+3 + main::intro_status#2 -- vbuz1=vbuc1_plus_vbum2 + // [667] display_info_led::y#3 = PROGRESS_Y+3 + main::intro_status#2 -- vbuz1=vbuc1_plus_vbum2 lda #PROGRESS_Y+3 clc adc intro_status sta.z display_info_led.y - // [662] display_info_led::tc#3 = status_color[main::intro_status#2] -- vbuz1=pbuc1_derefidx_vbum2 + // [668] display_info_led::tc#3 = status_color[main::intro_status#2] -- vbuz1=pbuc1_derefidx_vbum2 ldy intro_status lda status_color,y sta.z display_info_led.tc - // [663] call display_info_led - // [1814] phi from main::@23 to display_info_led [phi:main::@23->display_info_led] - // [1814] phi display_info_led::y#4 = display_info_led::y#3 [phi:main::@23->display_info_led#0] -- register_copy - // [1814] phi display_info_led::x#4 = PROGRESS_X+3 [phi:main::@23->display_info_led#1] -- vbuz1=vbuc1 + // [669] call display_info_led + // [1828] phi from main::@25 to display_info_led [phi:main::@25->display_info_led] + // [1828] phi display_info_led::y#4 = display_info_led::y#3 [phi:main::@25->display_info_led#0] -- register_copy + // [1828] phi display_info_led::x#4 = PROGRESS_X+3 [phi:main::@25->display_info_led#1] -- vbuz1=vbuc1 lda #PROGRESS_X+3 sta.z display_info_led.x - // [1814] phi display_info_led::tc#4 = display_info_led::tc#3 [phi:main::@23->display_info_led#2] -- register_copy + // [1828] phi display_info_led::tc#4 = display_info_led::tc#3 [phi:main::@25->display_info_led#2] -- register_copy jsr display_info_led - // main::@126 + // main::@128 // for(unsigned char intro_status=0; intro_status<11; intro_status++) - // [664] main::intro_status#1 = ++ main::intro_status#2 -- vbum1=_inc_vbum1 + // [670] main::intro_status#1 = ++ main::intro_status#2 -- vbum1=_inc_vbum1 inc intro_status - // [150] phi from main::@126 to main::@22 [phi:main::@126->main::@22] - // [150] phi main::intro_status#2 = main::intro_status#1 [phi:main::@126->main::@22#0] -- register_copy - jmp __b22 - // main::@20 - __b20: + // [150] phi from main::@128 to main::@24 [phi:main::@128->main::@24] + // [150] phi main::intro_status#2 = main::intro_status#1 [phi:main::@128->main::@24#0] -- register_copy + jmp __b24 + // main::@21 + __b21: // if(rom_device_ids[rom_chip] != UNKNOWN) - // [665] if(rom_device_ids[main::rom_chip1#10]!=$55) goto main::bank_set_brom3 -- pbuc1_derefidx_vbum1_neq_vbuc2_then_la1 + // [671] if(rom_device_ids[main::rom_chip1#10]!=$55) goto main::@22 -- pbuc1_derefidx_vbum1_neq_vbuc2_then_la1 lda #$55 ldy rom_chip1 cmp rom_device_ids,y - bne bank_set_brom3 - // main::@21 - __b21: + bne __b22 + // main::@23 + __b23: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [666] main::rom_chip1#1 = ++ main::rom_chip1#10 -- vbum1=_inc_vbum1 + // [672] main::rom_chip1#1 = ++ main::rom_chip1#10 -- vbum1=_inc_vbum1 inc rom_chip1 - // [140] phi from main::@21 to main::@19 [phi:main::@21->main::@19] - // [140] phi main::rom_chip1#10 = main::rom_chip1#1 [phi:main::@21->main::@19#0] -- register_copy - jmp __b19 + // [140] phi from main::@23 to main::@20 [phi:main::@23->main::@20] + // [140] phi main::rom_chip1#10 = main::rom_chip1#1 [phi:main::@23->main::@20#0] -- register_copy + jmp __b20 + // main::@22 + __b22: + // bank_set_brom(rom_chip*32) + // [673] main::bank_set_brom3_bank#0 = main::rom_chip1#10 << 5 -- vbuz1=vbum2_rol_5 + lda rom_chip1 + asl + asl + asl + asl + asl + sta.z bank_set_brom3_bank // main::bank_set_brom3 - bank_set_brom3: // BROM = bank - // [667] BROM = main::bank_set_brom3_bank#0 -- vbuz1=vbuc1 - lda #bank_set_brom3_bank + // [674] BROM = main::bank_set_brom3_bank#0 -- vbuz1=vbuz2 sta.z BROM - // main::@67 + // main::@69 // rom_chip*8 - // [668] main::$117 = main::rom_chip1#10 << 3 -- vbuz1=vbum2_rol_3 + // [675] main::$119 = main::rom_chip1#10 << 3 -- vbuz1=vbum2_rol_3 lda rom_chip1 asl asl asl - sta.z main__117 + sta.z main__119 // rom_get_github_commit_id(&rom_github[rom_chip*8], (char*)0xC000) - // [669] rom_get_github_commit_id::commit_id#0 = rom_github + main::$117 -- pbuz1=pbuc1_plus_vbuz2 + // [676] rom_get_github_commit_id::commit_id#0 = rom_github + main::$119 -- pbuz1=pbuc1_plus_vbuz2 clc adc #rom_github adc #0 sta.z rom_get_github_commit_id.commit_id+1 - // [670] call rom_get_github_commit_id - // [1765] phi from main::@67 to rom_get_github_commit_id [phi:main::@67->rom_get_github_commit_id] - // [1765] phi rom_get_github_commit_id::commit_id#6 = rom_get_github_commit_id::commit_id#0 [phi:main::@67->rom_get_github_commit_id#0] -- register_copy - // [1765] phi rom_get_github_commit_id::from#6 = (char *) 49152 [phi:main::@67->rom_get_github_commit_id#1] -- pbuz1=pbuc1 + // [677] call rom_get_github_commit_id + // [1779] phi from main::@69 to rom_get_github_commit_id [phi:main::@69->rom_get_github_commit_id] + // [1779] phi rom_get_github_commit_id::commit_id#6 = rom_get_github_commit_id::commit_id#0 [phi:main::@69->rom_get_github_commit_id#0] -- register_copy + // [1779] phi rom_get_github_commit_id::from#6 = (char *) 49152 [phi:main::@69->rom_get_github_commit_id#1] -- pbuz1=pbuc1 lda #<$c000 sta.z rom_get_github_commit_id.from lda #>$c000 sta.z rom_get_github_commit_id.from+1 jsr rom_get_github_commit_id - // main::@122 + // main::@124 // rom_get_release(*((char*)0xFF80)) - // [671] rom_get_release::release#1 = *((char *) 65408) -- vbuz1=_deref_pbuc1 + // [678] rom_get_release::release#1 = *((char *) 65408) -- vbuz1=_deref_pbuc1 lda $ff80 sta.z rom_get_release.release - // [672] call rom_get_release - // [1782] phi from main::@122 to rom_get_release [phi:main::@122->rom_get_release] - // [1782] phi rom_get_release::release#3 = rom_get_release::release#1 [phi:main::@122->rom_get_release#0] -- register_copy + // [679] call rom_get_release + // [1796] phi from main::@124 to rom_get_release [phi:main::@124->rom_get_release] + // [1796] phi rom_get_release::release#3 = rom_get_release::release#1 [phi:main::@124->rom_get_release#0] -- register_copy jsr rom_get_release // rom_get_release(*((char*)0xFF80)) - // [673] rom_get_release::return#2 = rom_get_release::return#0 - // main::@123 - // [674] main::$113 = rom_get_release::return#2 + // [680] rom_get_release::return#2 = rom_get_release::return#0 + // main::@125 + // [681] main::$115 = rom_get_release::return#2 // rom_release[rom_chip] = rom_get_release(*((char*)0xFF80)) - // [675] rom_release[main::rom_chip1#10] = main::$113 -- pbuc1_derefidx_vbum1=vbuz2 - lda.z main__113 + // [682] rom_release[main::rom_chip1#10] = main::$115 -- pbuc1_derefidx_vbum1=vbuz2 + lda.z main__115 ldy rom_chip1 sta rom_release,y // rom_get_prefix(*((char*)0xFF80)) - // [676] rom_get_prefix::release#0 = *((char *) 65408) -- vbum1=_deref_pbuc1 + // [683] rom_get_prefix::release#0 = *((char *) 65408) -- vbum1=_deref_pbuc1 lda $ff80 sta rom_get_prefix.release - // [677] call rom_get_prefix - // [1789] phi from main::@123 to rom_get_prefix [phi:main::@123->rom_get_prefix] - // [1789] phi rom_get_prefix::release#2 = rom_get_prefix::release#0 [phi:main::@123->rom_get_prefix#0] -- register_copy + // [684] call rom_get_prefix + // [1803] phi from main::@125 to rom_get_prefix [phi:main::@125->rom_get_prefix] + // [1803] phi rom_get_prefix::release#2 = rom_get_prefix::release#0 [phi:main::@125->rom_get_prefix#0] -- register_copy jsr rom_get_prefix // rom_get_prefix(*((char*)0xFF80)) - // [678] rom_get_prefix::return#2 = rom_get_prefix::return#0 - // main::@124 - // [679] main::$114 = rom_get_prefix::return#2 + // [685] rom_get_prefix::return#2 = rom_get_prefix::return#0 + // main::@126 + // [686] main::$116 = rom_get_prefix::return#2 // rom_prefix[rom_chip] = rom_get_prefix(*((char*)0xFF80)) - // [680] rom_prefix[main::rom_chip1#10] = main::$114 -- pbuc1_derefidx_vbum1=vbum2 - lda main__114 + // [687] rom_prefix[main::rom_chip1#10] = main::$116 -- pbuc1_derefidx_vbum1=vbum2 + lda main__116 ldy rom_chip1 sta rom_prefix,y // rom_chip*13 - // [681] main::$338 = main::rom_chip1#10 << 1 -- vbuz1=vbum2_rol_1 + // [688] main::$342 = main::rom_chip1#10 << 1 -- vbum1=vbum2_rol_1 tya asl - sta.z main__338 - // [682] main::$339 = main::$338 + main::rom_chip1#10 -- vbuz1=vbuz1_plus_vbum2 - tya + sta main__342 + // [689] main::$343 = main::$342 + main::rom_chip1#10 -- vbum1=vbum1_plus_vbum2 + lda main__343 clc - adc.z main__339 - sta.z main__339 - // [683] main::$340 = main::$339 << 2 -- vbuz1=vbuz1_rol_2 - lda.z main__340 + adc rom_chip1 + sta main__343 + // [690] main::$344 = main::$343 << 2 -- vbum1=vbum1_rol_2 + lda main__344 asl asl - sta.z main__340 - // [684] main::$115 = main::$340 + main::rom_chip1#10 -- vbuz1=vbuz1_plus_vbum2 - tya + sta main__344 + // [691] main::$117 = main::$344 + main::rom_chip1#10 -- vbum1=vbum1_plus_vbum2 + lda main__117 clc - adc.z main__115 - sta.z main__115 + adc rom_chip1 + sta main__117 // rom_get_version_text(&rom_release_text[rom_chip*13], rom_prefix[rom_chip], rom_release[rom_chip], &rom_github[rom_chip*8]) - // [685] rom_get_version_text::release_info#0 = rom_release_text + main::$115 -- pbuz1=pbuc1_plus_vbuz2 + // [692] rom_get_version_text::release_info#0 = rom_release_text + main::$117 -- pbuz1=pbuc1_plus_vbum2 clc adc #rom_release_text adc #0 sta.z rom_get_version_text.release_info+1 - // [686] rom_get_version_text::github#0 = rom_github + main::$117 -- pbuz1=pbuc1_plus_vbuz2 - lda.z main__117 + // [693] rom_get_version_text::github#0 = rom_github + main::$119 -- pbuz1=pbuc1_plus_vbuz2 + lda.z main__119 clc adc #rom_github adc #0 sta.z rom_get_version_text.github+1 - // [687] rom_get_version_text::prefix#0 = rom_prefix[main::rom_chip1#10] -- vbum1=pbuc1_derefidx_vbum2 + // [694] rom_get_version_text::prefix#0 = rom_prefix[main::rom_chip1#10] -- vbum1=pbuc1_derefidx_vbum2 lda rom_prefix,y sta rom_get_version_text.prefix - // [688] rom_get_version_text::release#0 = rom_release[main::rom_chip1#10] -- vbuz1=pbuc1_derefidx_vbum2 + // [695] rom_get_version_text::release#0 = rom_release[main::rom_chip1#10] -- vbuz1=pbuc1_derefidx_vbum2 lda rom_release,y sta.z rom_get_version_text.release - // [689] call rom_get_version_text - // [1798] phi from main::@124 to rom_get_version_text [phi:main::@124->rom_get_version_text] - // [1798] phi rom_get_version_text::github#2 = rom_get_version_text::github#0 [phi:main::@124->rom_get_version_text#0] -- register_copy - // [1798] phi rom_get_version_text::release#2 = rom_get_version_text::release#0 [phi:main::@124->rom_get_version_text#1] -- register_copy - // [1798] phi rom_get_version_text::prefix#2 = rom_get_version_text::prefix#0 [phi:main::@124->rom_get_version_text#2] -- register_copy - // [1798] phi rom_get_version_text::release_info#2 = rom_get_version_text::release_info#0 [phi:main::@124->rom_get_version_text#3] -- register_copy + // [696] call rom_get_version_text + // [1812] phi from main::@126 to rom_get_version_text [phi:main::@126->rom_get_version_text] + // [1812] phi rom_get_version_text::github#2 = rom_get_version_text::github#0 [phi:main::@126->rom_get_version_text#0] -- register_copy + // [1812] phi rom_get_version_text::release#2 = rom_get_version_text::release#0 [phi:main::@126->rom_get_version_text#1] -- register_copy + // [1812] phi rom_get_version_text::prefix#2 = rom_get_version_text::prefix#0 [phi:main::@126->rom_get_version_text#2] -- register_copy + // [1812] phi rom_get_version_text::release_info#2 = rom_get_version_text::release_info#0 [phi:main::@126->rom_get_version_text#3] -- register_copy jsr rom_get_version_text - // main::@125 + // main::@127 // display_info_rom(rom_chip, STATUS_DETECTED, "") - // [690] display_info_rom::rom_chip#5 = main::rom_chip1#10 -- vbuz1=vbum2 + // [697] display_info_rom::rom_chip#5 = main::rom_chip1#10 -- vbuz1=vbum2 lda rom_chip1 sta.z display_info_rom.rom_chip - // [691] call display_info_rom - // [1240] phi from main::@125 to display_info_rom [phi:main::@125->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text4 [phi:main::@125->display_info_rom#0] -- pbuz1=pbuc1 + // [698] call display_info_rom + // [1250] phi from main::@127 to display_info_rom [phi:main::@127->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text4 [phi:main::@127->display_info_rom#0] -- pbuz1=pbuc1 lda #info_text4 sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#5 [phi:main::@125->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_DETECTED [phi:main::@125->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#5 [phi:main::@127->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_DETECTED [phi:main::@127->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_DETECTED sta.z display_info_rom.info_status jsr display_info_rom - jmp __b21 - // [692] phi from main::@15 to main::@18 [phi:main::@15->main::@18] - // main::@18 - __b18: + jmp __b23 + // [699] phi from main::@16 to main::@19 [phi:main::@16->main::@19] + // main::@19 + __b19: // sprintf(info_text, "Bootloader v%02x invalid! !", smc_bootloader) - // [693] call snprintf_init - // [1123] phi from main::@18 to snprintf_init [phi:main::@18->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:main::@18->snprintf_init#0] -- pbuz1=pbuc1 + // [700] call snprintf_init + // [1133] phi from main::@19 to snprintf_init [phi:main::@19->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:main::@19->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [694] phi from main::@18 to main::@108 [phi:main::@18->main::@108] - // main::@108 + // [701] phi from main::@19 to main::@110 [phi:main::@19->main::@110] + // main::@110 // sprintf(info_text, "Bootloader v%02x invalid! !", smc_bootloader) - // [695] call printf_str - // [1128] phi from main::@108 to printf_str [phi:main::@108->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@108->printf_str#0] -- pprz1=pprc1 + // [702] call printf_str + // [1138] phi from main::@110 to printf_str [phi:main::@110->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@110->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s2 [phi:main::@108->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s2 [phi:main::@110->printf_str#1] -- pbuz1=pbuc1 lda #s2 sta.z printf_str.s+1 jsr printf_str - // main::@109 + // main::@111 // sprintf(info_text, "Bootloader v%02x invalid! !", smc_bootloader) - // [696] printf_uint::uvalue#13 = smc_bootloader#0 -- vwuz1=vwum2 + // [703] printf_uint::uvalue#13 = smc_bootloader#0 -- vwuz1=vwum2 lda smc_bootloader sta.z printf_uint.uvalue lda smc_bootloader+1 sta.z printf_uint.uvalue+1 - // [697] call printf_uint - // [1825] phi from main::@109 to printf_uint [phi:main::@109->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:main::@109->printf_uint#0] -- vbuz1=vbuc1 + // [704] call printf_uint + // [1839] phi from main::@111 to printf_uint [phi:main::@111->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:main::@111->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 2 [phi:main::@109->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 2 [phi:main::@111->printf_uint#1] -- vbuz1=vbuc1 lda #2 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:main::@109->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:main::@111->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:main::@109->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:main::@111->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#13 [phi:main::@109->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#13 [phi:main::@111->printf_uint#4] -- register_copy jsr printf_uint - // [698] phi from main::@109 to main::@110 [phi:main::@109->main::@110] - // main::@110 + // [705] phi from main::@111 to main::@112 [phi:main::@111->main::@112] + // main::@112 // sprintf(info_text, "Bootloader v%02x invalid! !", smc_bootloader) - // [699] call printf_str - // [1128] phi from main::@110 to printf_str [phi:main::@110->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:main::@110->printf_str#0] -- pprz1=pprc1 + // [706] call printf_str + // [1138] phi from main::@112 to printf_str [phi:main::@112->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:main::@112->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = main::s3 [phi:main::@110->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = main::s3 [phi:main::@112->printf_str#1] -- pbuz1=pbuc1 lda #s3 sta.z printf_str.s+1 jsr printf_str - // main::@111 + // main::@113 // sprintf(info_text, "Bootloader v%02x invalid! !", smc_bootloader) - // [700] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [707] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [701] callexecute snputc -- call_vprc1 + // [708] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla - // [703] smc_bootloader#426 = smc_bootloader#0 -- vwum1=vwum2 + // [710] smc_bootloader#429 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ISSUE, info_text) - // [704] call display_info_smc - // [896] phi from main::@111 to display_info_smc [phi:main::@111->display_info_smc] - // [896] phi display_info_smc::info_text#18 = info_text [phi:main::@111->display_info_smc#0] -- pbuz1=pbuc1 + // [711] call display_info_smc + // [903] phi from main::@113 to display_info_smc [phi:main::@113->display_info_smc] + // [903] phi display_info_smc::info_text#18 = info_text [phi:main::@113->display_info_smc#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_smc.info_text lda #>@info_text sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#426 [phi:main::@111->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@111->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#429 [phi:main::@113->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@113->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ISSUE sta display_info_smc.info_status jsr display_info_smc - // [705] phi from main::@111 to main::@112 [phi:main::@111->main::@112] - // main::@112 + // [712] phi from main::@113 to main::@114 [phi:main::@113->main::@114] + // main::@114 // display_progress_text(display_no_valid_smc_bootloader_text, display_no_valid_smc_bootloader_count) - // [706] call display_progress_text + // [713] call display_progress_text // Bootloader is not supported by this utility, but is not error. - // [1047] phi from main::@112 to display_progress_text [phi:main::@112->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_no_valid_smc_bootloader_text [phi:main::@112->display_progress_text#0] -- qbuz1=qbuc1 + // [1054] phi from main::@114 to display_progress_text [phi:main::@114->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_no_valid_smc_bootloader_text [phi:main::@114->display_progress_text#0] -- qbuz1=qbuc1 lda #display_no_valid_smc_bootloader_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_no_valid_smc_bootloader_count [phi:main::@112->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_no_valid_smc_bootloader_count [phi:main::@114->display_progress_text#1] -- vbuz1=vbuc1 lda #display_no_valid_smc_bootloader_count sta.z display_progress_text.lines jsr display_progress_text - // [132] phi from main::@107 main::@112 main::@17 to main::@2 [phi:main::@107/main::@112/main::@17->main::@2] - __b13: - // [132] phi smc_minor#358 = 0 [phi:main::@107/main::@112/main::@17->main::@2#0] -- vbum1=vbuc1 + // [132] phi from main::@109 main::@114 main::@18 to main::@2 [phi:main::@109/main::@114/main::@18->main::@2] + __b14: + // [132] phi smc_minor#361 = 0 [phi:main::@109/main::@114/main::@18->main::@2#0] -- vbum1=vbuc1 lda #0 sta smc_minor - // [132] phi smc_major#359 = 0 [phi:main::@107/main::@112/main::@17->main::@2#1] -- vbum1=vbuc1 + // [132] phi smc_major#362 = 0 [phi:main::@109/main::@114/main::@18->main::@2#1] -- vbum1=vbuc1 sta smc_major - // [132] phi smc_release#360 = 0 [phi:main::@107/main::@112/main::@17->main::@2#2] -- vbum1=vbuc1 + // [132] phi smc_release#363 = 0 [phi:main::@109/main::@114/main::@18->main::@2#2] -- vbum1=vbuc1 sta smc_release jmp __b2 - // main::@17 - __b17: - // [707] smc_bootloader#435 = smc_bootloader#0 -- vwum1=vwum2 + // main::@18 + __b18: + // [714] smc_bootloader#438 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ERROR, "SMC Unreachable!") - // [708] call display_info_smc + // [715] call display_info_smc // SD2 | SMC chip not detected | Display that the SMC chip is not detected and set SMC to Error. | Error - // [896] phi from main::@17 to display_info_smc [phi:main::@17->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text2 [phi:main::@17->display_info_smc#0] -- pbuz1=pbuc1 + // [903] phi from main::@18 to display_info_smc [phi:main::@18->display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text2 [phi:main::@18->display_info_smc#0] -- pbuz1=pbuc1 lda #info_text2 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#435 [phi:main::@17->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ERROR [phi:main::@17->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#438 [phi:main::@18->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ERROR [phi:main::@18->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ERROR sta display_info_smc.info_status jsr display_info_smc - jmp __b13 + jmp __b14 // main::@1 __b1: - // [709] smc_bootloader#424 = smc_bootloader#0 -- vwum1=vwum2 + // [716] smc_bootloader#427 = smc_bootloader#0 -- vwum1=vwum2 lda smc_bootloader sta smc_bootloader_1 lda smc_bootloader+1 sta smc_bootloader_1+1 // display_info_smc(STATUS_ISSUE, "No Bootloader!") - // [710] call display_info_smc + // [717] call display_info_smc // SD1 | No Bootloader | Display that there is no bootloader and set SMC to Issue. | Issue - // [896] phi from main::@1 to display_info_smc [phi:main::@1->display_info_smc] - // [896] phi display_info_smc::info_text#18 = main::info_text1 [phi:main::@1->display_info_smc#0] -- pbuz1=pbuc1 + // [903] phi from main::@1 to display_info_smc [phi:main::@1->display_info_smc] + // [903] phi display_info_smc::info_text#18 = main::info_text1 [phi:main::@1->display_info_smc#0] -- pbuz1=pbuc1 lda #info_text1 sta.z display_info_smc.info_text+1 - // [896] phi smc_bootloader#13 = smc_bootloader#424 [phi:main::@1->display_info_smc#1] -- register_copy - // [896] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@1->display_info_smc#2] -- vbum1=vbuc1 + // [903] phi smc_bootloader#13 = smc_bootloader#427 [phi:main::@1->display_info_smc#1] -- register_copy + // [903] phi display_info_smc::info_status#18 = STATUS_ISSUE [phi:main::@1->display_info_smc#2] -- vbum1=vbuc1 lda #STATUS_ISSUE sta display_info_smc.info_status jsr display_info_smc - // [711] phi from main::@1 to main::@107 [phi:main::@1->main::@107] - // main::@107 + // [718] phi from main::@1 to main::@109 [phi:main::@1->main::@109] + // main::@109 // display_progress_text(display_no_valid_smc_bootloader_text, display_no_valid_smc_bootloader_count) - // [712] call display_progress_text + // [719] call display_progress_text // If the CX16 board does not have a bootloader, display info how to flash bootloader. - // [1047] phi from main::@107 to display_progress_text [phi:main::@107->display_progress_text] - // [1047] phi display_progress_text::text#12 = display_no_valid_smc_bootloader_text [phi:main::@107->display_progress_text#0] -- qbuz1=qbuc1 + // [1054] phi from main::@109 to display_progress_text [phi:main::@109->display_progress_text] + // [1054] phi display_progress_text::text#12 = display_no_valid_smc_bootloader_text [phi:main::@109->display_progress_text#0] -- qbuz1=qbuc1 lda #display_no_valid_smc_bootloader_text sta.z display_progress_text.text+1 - // [1047] phi display_progress_text::lines#11 = display_no_valid_smc_bootloader_count [phi:main::@107->display_progress_text#1] -- vbuz1=vbuc1 + // [1054] phi display_progress_text::lines#11 = display_no_valid_smc_bootloader_count [phi:main::@109->display_progress_text#1] -- vbuz1=vbuc1 lda #display_no_valid_smc_bootloader_count sta.z display_progress_text.lines jsr display_progress_text - jmp __b13 - // main::@12 - __b12: + jmp __b14 + // main::@13 + __b13: // rom_chip*13 - // [713] main::$334 = main::rom_chip#2 << 1 -- vbuz1=vbum2_rol_1 + // [720] main::$338 = main::rom_chip#2 << 1 -- vbuz1=vbum2_rol_1 lda rom_chip asl - sta.z main__334 - // [714] main::$335 = main::$334 + main::rom_chip#2 -- vbuz1=vbuz1_plus_vbum2 + sta.z main__338 + // [721] main::$339 = main::$338 + main::rom_chip#2 -- vbuz1=vbuz1_plus_vbum2 lda rom_chip clc - adc.z main__335 - sta.z main__335 - // [715] main::$336 = main::$335 << 2 -- vbuz1=vbuz1_rol_2 - lda.z main__336 + adc.z main__339 + sta.z main__339 + // [722] main::$340 = main::$339 << 2 -- vbuz1=vbuz1_rol_2 + lda.z main__340 asl asl - sta.z main__336 - // [716] main::$90 = main::$336 + main::rom_chip#2 -- vbuz1=vbuz1_plus_vbum2 + sta.z main__340 + // [723] main::$91 = main::$340 + main::rom_chip#2 -- vbuz1=vbuz1_plus_vbum2 lda rom_chip clc - adc.z main__90 - sta.z main__90 + adc.z main__91 + sta.z main__91 // strcpy(&rom_release_text[rom_chip*13], " " ) - // [717] strcpy::destination#1 = rom_release_text + main::$90 -- pbuz1=pbuc1_plus_vbuz2 + // [724] strcpy::destination#1 = rom_release_text + main::$91 -- pbuz1=pbuc1_plus_vbuz2 clc adc #rom_release_text adc #0 sta.z strcpy.destination+1 - // [718] call strcpy - // [967] phi from main::@12 to strcpy [phi:main::@12->strcpy] - // [967] phi strcpy::dst#0 = strcpy::destination#1 [phi:main::@12->strcpy#0] -- register_copy - // [967] phi strcpy::src#0 = main::source [phi:main::@12->strcpy#1] -- pbuz1=pbuc1 + // [725] call strcpy + // [974] phi from main::@13 to strcpy [phi:main::@13->strcpy] + // [974] phi strcpy::dst#0 = strcpy::destination#1 [phi:main::@13->strcpy#0] -- register_copy + // [974] phi strcpy::src#0 = main::source [phi:main::@13->strcpy#1] -- pbuz1=pbuc1 lda #source sta.z strcpy.src+1 jsr strcpy - // main::@102 + // main::@104 // display_info_rom(rom_chip, STATUS_NONE, NULL) - // [719] display_info_rom::rom_chip#4 = main::rom_chip#2 -- vbuz1=vbum2 + // [726] display_info_rom::rom_chip#4 = main::rom_chip#2 -- vbuz1=vbum2 lda rom_chip sta.z display_info_rom.rom_chip - // [720] call display_info_rom - // [1240] phi from main::@102 to display_info_rom [phi:main::@102->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = 0 [phi:main::@102->display_info_rom#0] -- pbuz1=vbuc1 + // [727] call display_info_rom + // [1250] phi from main::@104 to display_info_rom [phi:main::@104->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = 0 [phi:main::@104->display_info_rom#0] -- pbuz1=vbuc1 lda #<0 sta.z display_info_rom.info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#4 [phi:main::@102->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_NONE [phi:main::@102->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#4 [phi:main::@104->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_NONE [phi:main::@104->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_NONE sta.z display_info_rom.info_status jsr display_info_rom - // main::@103 + // main::@105 // for(unsigned char rom_chip=0; rom_chip<8; rom_chip++) - // [721] main::rom_chip#1 = ++ main::rom_chip#2 -- vbum1=_inc_vbum1 + // [728] main::rom_chip#1 = ++ main::rom_chip#2 -- vbum1=_inc_vbum1 inc rom_chip - // [99] phi from main::@103 to main::@11 [phi:main::@103->main::@11] - // [99] phi main::rom_chip#2 = main::rom_chip#1 [phi:main::@103->main::@11#0] -- register_copy - jmp __b11 + // [99] phi from main::@105 to main::@12 [phi:main::@105->main::@12] + // [99] phi main::rom_chip#2 = main::rom_chip#1 [phi:main::@105->main::@12#0] -- register_copy + jmp __b12 .segment Data smc_file_version_text: .fill $d, 0 // Fill the version data ... @@ -4577,85 +4611,91 @@ main: { .byte 0 info_text5: .text "VERA not yet supported." .byte 0 - info_text6: .text "No SMC.BIN!" + info_text6: .text "Checking SMC.BIN ..." + .byte 0 + info_text7: .text "No SMC.BIN!" .byte 0 - info_text7: .text "SMC.BIN too large!" + info_text8: .text "SMC.BIN too large!" .byte 0 s4: .text "SMC.BIN:" .byte 0 s5: .text "Checking " .byte 0 - s6: .text " ... (.) data ( ) empty" - .byte 0 s7: .text "No " .byte 0 s8: .text "File " .byte 0 s9: .text " size error!" .byte 0 - info_text8: .text "SMC update issue!" + info_text9: .text "SMC update issue!" .byte 0 - info_text9: .text "Issue with SMC!" + info_text10: .text "Issue with SMC!" .byte 0 - info_text10: .text "CX16 ROM update issue, ROM not detected!" + info_text11: .text "CX16 ROM update issue, ROM not detected!" .byte 0 - info_text11: .text "Issue with main CX16 ROM!" + info_text12: .text "Issue with main CX16 ROM!" .byte 0 - info_text12: .text "Are J1 jumper pins closed?" + info_text13: .text "Are J1 jumper pins closed?" .byte 0 - info_text13: .text "CX16 ROM update issue!" + info_text14: .text "CX16 ROM update issue!" .byte 0 - info_text15: .text "The ROM.BIN isn't compatible with SMC.BIN, no flash allowed!" + info_text16: .text "The ROM.BIN isn't compatible with SMC.BIN, no flash allowed!" .byte 0 - info_text16: .text "You still want to continue with flashing? [YN]" + info_text17: .text "You still want to continue with flashing? [YN]" .byte 0 filter: .text "YN" .byte 0 - info_text17: .text "The SMC chip and SMC.BIN versions are equal, no flash required!" + info_text18: .text "The SMC chip and SMC.BIN versions are equal, no flash required!" .byte 0 - info_text18: .text "SMC.BIN and SMC equal." + info_text19: .text "SMC.BIN and SMC equal." .byte 0 - info_text19: .text "Chipsets have been detected and update files validated!" + info_text20: .text "Chipsets have been detected and update files validated!" .byte 0 - info_text20: .text "Continue with update of highlighted chipsets? [Y/N]" + info_text21: .text "Continue with update of highlighted chipsets? [Y/N]" .byte 0 filter1: .text "nyNY" .byte 0 - main__308: .text "nN" + main__312: .text "nN" + .byte 0 + info_text22: .text "Cancelled" .byte 0 - info_text21: .text "Cancelled" + info_text25: .text "You have selected not to cancel the update ... " .byte 0 - info_text24: .text "You have selected not to cancel the update ... " + info_text26: .text "Reading SMC.BIN ... (.) data, ( ) empty" .byte 0 - info_text25: .text "Press both POWER/RESET buttons on the CX16 board!" + info_text27: .text "Press both POWER/RESET buttons on the CX16 board!" .byte 0 - info_text26: .text "Press POWER/RESET!" + info_text28: .text "Press POWER/RESET!" .byte 0 - info_text28: .text "SMC has errors!" + info_text30: .text "SMC has errors!" .byte 0 - info_text29: .text "POWER/RESET not pressed!" + info_text31: .text "POWER/RESET not pressed!" .byte 0 - info_text30: .text "Update SMC failed!" + s11: .text "Reading " .byte 0 - info_text31: .text "Comparing ... (.) same, (*) different." + s12: .text " ... (.) data ( ) empty" .byte 0 - info_text33: .text "No update required" + info_text32: .text "Update SMC failed!" + .byte 0 + info_text33: .text "Comparing ... (.) same, (*) different." + .byte 0 + info_text35: .text "No update required" .byte 0 s13: .text " differences!" .byte 0 s14: .text " flash errors!" .byte 0 - info_text34: .text "OK!" + info_text36: .text "OK!" .byte 0 - info_text35: .text "No CX16 component has been updated with new firmware!" + info_text37: .text "No CX16 component has been updated with new firmware!" .byte 0 - info_text36: .text "Update Failure! Your CX16 may be bricked!" + info_text38: .text "Update Failure! Your CX16 may be bricked!" .byte 0 - info_text37: .text "Take a foto of this screen, shut down power and retry!" + info_text39: .text "Take a foto of this screen, shut down power and retry!" .byte 0 - info_text38: .text "Update issues, your CX16 is not updated!" + info_text40: .text "Update issues, your CX16 is not updated!" .byte 0 - info_text39: .text "Your CX16 update is a success!" + info_text41: .text "Your CX16 update is a success!" .byte 0 s15: .text "(" .byte 0 @@ -4668,12 +4708,13 @@ main: { .label main__50 = smc_supported_rom.return main__67: .byte 0 .label main__76 = check_status_roms.return - .label main__87 = check_status_roms_less.return - .label main__114 = rom_get_prefix.return - .label main__250 = check_status_roms.return - .label main__255 = check_status_roms.return - main__282: .byte 0 - main__284: .byte 0 + .label main__88 = check_status_roms_less.return + .label main__116 = rom_get_prefix.return + .label main__117 = main__342 + .label main__254 = check_status_roms.return + .label main__259 = check_status_roms.return + main__286: .byte 0 + main__288: .byte 0 check_status_smc2_main__0: .byte 0 check_status_smc3_main__0: .byte 0 check_status_cx16_rom2_check_status_rom1_main__0: .byte 0 @@ -4682,6 +4723,7 @@ main: { check_status_smc5_main__0: .byte 0 check_status_vera1_main__0: .byte 0 check_status_vera2_main__0: .byte 0 + check_status_smc9_main__0: .byte 0 check_status_rom1_main__0: .byte 0 rom_chip: .byte 0 rom_chip1: .byte 0 @@ -4701,6 +4743,7 @@ main: { .label ch = util_wait_key.return .label check_status_vera1_return = check_status_vera1_main__0 .label check_status_vera2_return = check_status_vera2_main__0 + .label check_status_smc9_return = check_status_smc9_main__0 .label ch1 = strchr.c rom_chip3: .byte 0 .label flashed_bytes = smc_flash.return @@ -4712,23 +4755,26 @@ main: { rom_flash_errors: .dword 0 w: .byte 0 w1: .byte 0 + main__342: .byte 0 + .label main__343 = main__342 + .label main__344 = main__342 } .segment Code // screenlayer1 // Set the layer with which the conio will interact. screenlayer1: { // screenlayer(1, *VERA_L1_MAPBASE, *VERA_L1_CONFIG) - // [722] screenlayer::mapbase#0 = *VERA_L1_MAPBASE -- vbuz1=_deref_pbuc1 + // [729] screenlayer::mapbase#0 = *VERA_L1_MAPBASE -- vbuz1=_deref_pbuc1 lda VERA_L1_MAPBASE sta.z screenlayer.mapbase - // [723] screenlayer::config#0 = *VERA_L1_CONFIG -- vbuz1=_deref_pbuc1 + // [730] screenlayer::config#0 = *VERA_L1_CONFIG -- vbuz1=_deref_pbuc1 lda VERA_L1_CONFIG sta.z screenlayer.config - // [724] call screenlayer + // [731] call screenlayer jsr screenlayer // screenlayer1::@return // } - // [725] return + // [732] return rts } // textcolor @@ -4736,27 +4782,27 @@ screenlayer1: { // - color: a 4 bit value ( decimal between 0 and 15). // This will only work when the VERA is in 16 color mode! // Note that on the VERA, the transparent color has value 0. -// char textcolor(__zp($d9) char color) +// char textcolor(__zp($db) char color) textcolor: { - .label textcolor__0 = $dc - .label textcolor__1 = $d9 - .label color = $d9 + .label textcolor__0 = $de + .label textcolor__1 = $db + .label color = $db // __conio.color & 0xF0 - // [727] textcolor::$0 = *((char *)&__conio+$d) & $f0 -- vbuz1=_deref_pbuc1_band_vbuc2 + // [734] textcolor::$0 = *((char *)&__conio+$d) & $f0 -- vbuz1=_deref_pbuc1_band_vbuc2 lda #$f0 and __conio+$d sta.z textcolor__0 // __conio.color & 0xF0 | color - // [728] textcolor::$1 = textcolor::$0 | textcolor::color#18 -- vbuz1=vbuz2_bor_vbuz1 + // [735] textcolor::$1 = textcolor::$0 | textcolor::color#18 -- vbuz1=vbuz2_bor_vbuz1 lda.z textcolor__1 ora.z textcolor__0 sta.z textcolor__1 // __conio.color = __conio.color & 0xF0 | color - // [729] *((char *)&__conio+$d) = textcolor::$1 -- _deref_pbuc1=vbuz1 + // [736] *((char *)&__conio+$d) = textcolor::$1 -- _deref_pbuc1=vbuz1 sta __conio+$d // textcolor::@return // } - // [730] return + // [737] return rts } // bgcolor @@ -4764,19 +4810,19 @@ textcolor: { // - color: a 4 bit value ( decimal between 0 and 15). // This will only work when the VERA is in 16 color mode! // Note that on the VERA, the transparent color has value 0. -// char bgcolor(__zp($d9) char color) +// char bgcolor(__zp($db) char color) bgcolor: { - .label bgcolor__0 = $da - .label bgcolor__1 = $d9 - .label bgcolor__2 = $da - .label color = $d9 + .label bgcolor__0 = $dc + .label bgcolor__1 = $db + .label bgcolor__2 = $dc + .label color = $db // __conio.color & 0x0F - // [732] bgcolor::$0 = *((char *)&__conio+$d) & $f -- vbuz1=_deref_pbuc1_band_vbuc2 + // [739] bgcolor::$0 = *((char *)&__conio+$d) & $f -- vbuz1=_deref_pbuc1_band_vbuc2 lda #$f and __conio+$d sta.z bgcolor__0 // color << 4 - // [733] bgcolor::$1 = bgcolor::color#14 << 4 -- vbuz1=vbuz1_rol_4 + // [740] bgcolor::$1 = bgcolor::color#14 << 4 -- vbuz1=vbuz1_rol_4 lda.z bgcolor__1 asl asl @@ -4784,16 +4830,16 @@ bgcolor: { asl sta.z bgcolor__1 // __conio.color & 0x0F | color << 4 - // [734] bgcolor::$2 = bgcolor::$0 | bgcolor::$1 -- vbuz1=vbuz1_bor_vbuz2 + // [741] bgcolor::$2 = bgcolor::$0 | bgcolor::$1 -- vbuz1=vbuz1_bor_vbuz2 lda.z bgcolor__2 ora.z bgcolor__1 sta.z bgcolor__2 // __conio.color = __conio.color & 0x0F | color << 4 - // [735] *((char *)&__conio+$d) = bgcolor::$2 -- _deref_pbuc1=vbuz1 + // [742] *((char *)&__conio+$d) = bgcolor::$2 -- _deref_pbuc1=vbuz1 sta __conio+$d // bgcolor::@return // } - // [736] return + // [743] return rts } // cursor @@ -4804,12 +4850,12 @@ bgcolor: { cursor: { .const onoff = 0 // __conio.cursor = onoff - // [737] *((char *)&__conio+$c) = cursor::onoff#0 -- _deref_pbuc1=vbuc2 + // [744] *((char *)&__conio+$c) = cursor::onoff#0 -- _deref_pbuc1=vbuc2 lda #onoff sta __conio+$c // cursor::@return // } - // [738] return + // [745] return rts } // cbm_k_plot_get @@ -4819,11 +4865,11 @@ cursor: { */ cbm_k_plot_get: { // __mem unsigned char x - // [739] cbm_k_plot_get::x = 0 -- vbum1=vbuc1 + // [746] cbm_k_plot_get::x = 0 -- vbum1=vbuc1 lda #0 sta x // __mem unsigned char y - // [740] cbm_k_plot_get::y = 0 -- vbum1=vbuc1 + // [747] cbm_k_plot_get::y = 0 -- vbum1=vbuc1 sta y // kickasm // kickasm( uses cbm_k_plot_get::x uses cbm_k_plot_get::y uses CBM_PLOT) {{ sec jsr CBM_PLOT stx y sty x }} @@ -4833,14 +4879,14 @@ cbm_k_plot_get: { sty x // MAKEWORD(x,y) - // [742] cbm_k_plot_get::return#0 = cbm_k_plot_get::x w= cbm_k_plot_get::y -- vwum1=vbum2_word_vbum3 + // [749] cbm_k_plot_get::return#0 = cbm_k_plot_get::x w= cbm_k_plot_get::y -- vwum1=vbum2_word_vbum3 lda x sta return+1 lda y sta return // cbm_k_plot_get::@return // } - // [743] return + // [750] return rts .segment Data x: .byte 0 @@ -4863,49 +4909,49 @@ gotoxy: { .label y = $48 .label gotoxy__14 = $46 // (x>=__conio.width)?__conio.width:x - // [745] if(gotoxy::x#30>=*((char *)&__conio+6)) goto gotoxy::@1 -- vbuz1_ge__deref_pbuc1_then_la1 + // [752] if(gotoxy::x#30>=*((char *)&__conio+6)) goto gotoxy::@1 -- vbuz1_ge__deref_pbuc1_then_la1 lda.z x cmp __conio+6 bcs __b1 - // [747] phi from gotoxy gotoxy::@1 to gotoxy::@2 [phi:gotoxy/gotoxy::@1->gotoxy::@2] - // [747] phi gotoxy::$3 = gotoxy::x#30 [phi:gotoxy/gotoxy::@1->gotoxy::@2#0] -- register_copy + // [754] phi from gotoxy gotoxy::@1 to gotoxy::@2 [phi:gotoxy/gotoxy::@1->gotoxy::@2] + // [754] phi gotoxy::$3 = gotoxy::x#30 [phi:gotoxy/gotoxy::@1->gotoxy::@2#0] -- register_copy jmp __b2 // gotoxy::@1 __b1: - // [746] gotoxy::$2 = *((char *)&__conio+6) -- vbuz1=_deref_pbuc1 + // [753] gotoxy::$2 = *((char *)&__conio+6) -- vbuz1=_deref_pbuc1 lda __conio+6 sta.z gotoxy__2 // gotoxy::@2 __b2: // __conio.cursor_x = (x>=__conio.width)?__conio.width:x - // [748] *((char *)&__conio) = gotoxy::$3 -- _deref_pbuc1=vbuz1 + // [755] *((char *)&__conio) = gotoxy::$3 -- _deref_pbuc1=vbuz1 lda.z gotoxy__3 sta __conio // (y>=__conio.height)?__conio.height:y - // [749] if(gotoxy::y#30>=*((char *)&__conio+7)) goto gotoxy::@3 -- vbuz1_ge__deref_pbuc1_then_la1 + // [756] if(gotoxy::y#30>=*((char *)&__conio+7)) goto gotoxy::@3 -- vbuz1_ge__deref_pbuc1_then_la1 lda.z y cmp __conio+7 bcs __b3 // gotoxy::@4 - // [750] gotoxy::$14 = gotoxy::y#30 -- vbuz1=vbuz2 + // [757] gotoxy::$14 = gotoxy::y#30 -- vbuz1=vbuz2 sta.z gotoxy__14 - // [751] phi from gotoxy::@3 gotoxy::@4 to gotoxy::@5 [phi:gotoxy::@3/gotoxy::@4->gotoxy::@5] - // [751] phi gotoxy::$7 = gotoxy::$6 [phi:gotoxy::@3/gotoxy::@4->gotoxy::@5#0] -- register_copy + // [758] phi from gotoxy::@3 gotoxy::@4 to gotoxy::@5 [phi:gotoxy::@3/gotoxy::@4->gotoxy::@5] + // [758] phi gotoxy::$7 = gotoxy::$6 [phi:gotoxy::@3/gotoxy::@4->gotoxy::@5#0] -- register_copy // gotoxy::@5 __b5: // __conio.cursor_y = (y>=__conio.height)?__conio.height:y - // [752] *((char *)&__conio+1) = gotoxy::$7 -- _deref_pbuc1=vbuz1 + // [759] *((char *)&__conio+1) = gotoxy::$7 -- _deref_pbuc1=vbuz1 lda.z gotoxy__7 sta __conio+1 // __conio.cursor_x << 1 - // [753] gotoxy::$8 = *((char *)&__conio) << 1 -- vbuz1=_deref_pbuc1_rol_1 + // [760] gotoxy::$8 = *((char *)&__conio) << 1 -- vbuz1=_deref_pbuc1_rol_1 lda __conio asl sta.z gotoxy__8 // __conio.offsets[y] + __conio.cursor_x << 1 - // [754] gotoxy::$10 = gotoxy::y#30 << 1 -- vbuz1=vbuz1_rol_1 + // [761] gotoxy::$10 = gotoxy::y#30 << 1 -- vbuz1=vbuz1_rol_1 asl.z gotoxy__10 - // [755] gotoxy::$9 = ((unsigned int *)&__conio+$15)[gotoxy::$10] + gotoxy::$8 -- vwuz1=pwuc1_derefidx_vbuz2_plus_vbuz3 + // [762] gotoxy::$9 = ((unsigned int *)&__conio+$15)[gotoxy::$10] + gotoxy::$8 -- vwuz1=pwuc1_derefidx_vbuz2_plus_vbuz3 ldy.z gotoxy__10 clc adc __conio+$15,y @@ -4914,19 +4960,19 @@ gotoxy: { adc #0 sta.z gotoxy__9+1 // __conio.offset = __conio.offsets[y] + __conio.cursor_x << 1 - // [756] *((unsigned int *)&__conio+$13) = gotoxy::$9 -- _deref_pwuc1=vwuz1 + // [763] *((unsigned int *)&__conio+$13) = gotoxy::$9 -- _deref_pwuc1=vwuz1 lda.z gotoxy__9 sta __conio+$13 lda.z gotoxy__9+1 sta __conio+$13+1 // gotoxy::@return // } - // [757] return + // [764] return rts // gotoxy::@3 __b3: // (y>=__conio.height)?__conio.height:y - // [758] gotoxy::$6 = *((char *)&__conio+7) -- vbuz1=_deref_pbuc1 + // [765] gotoxy::$6 = *((char *)&__conio+7) -- vbuz1=_deref_pbuc1 lda __conio+7 sta.z gotoxy__6 jmp __b5 @@ -4936,29 +4982,29 @@ gotoxy: { cputln: { .label cputln__2 = $67 // __conio.cursor_x = 0 - // [759] *((char *)&__conio) = 0 -- _deref_pbuc1=vbuc2 + // [766] *((char *)&__conio) = 0 -- _deref_pbuc1=vbuc2 lda #0 sta __conio // __conio.cursor_y++; - // [760] *((char *)&__conio+1) = ++ *((char *)&__conio+1) -- _deref_pbuc1=_inc__deref_pbuc1 + // [767] *((char *)&__conio+1) = ++ *((char *)&__conio+1) -- _deref_pbuc1=_inc__deref_pbuc1 inc __conio+1 // __conio.offset = __conio.offsets[__conio.cursor_y] - // [761] cputln::$2 = *((char *)&__conio+1) << 1 -- vbuz1=_deref_pbuc1_rol_1 + // [768] cputln::$2 = *((char *)&__conio+1) << 1 -- vbuz1=_deref_pbuc1_rol_1 lda __conio+1 asl sta.z cputln__2 - // [762] *((unsigned int *)&__conio+$13) = ((unsigned int *)&__conio+$15)[cputln::$2] -- _deref_pwuc1=pwuc2_derefidx_vbuz1 + // [769] *((unsigned int *)&__conio+$13) = ((unsigned int *)&__conio+$15)[cputln::$2] -- _deref_pwuc1=pwuc2_derefidx_vbuz1 tay lda __conio+$15,y sta __conio+$13 lda __conio+$15+1,y sta __conio+$13+1 // cscroll() - // [763] call cscroll + // [770] call cscroll jsr cscroll // cputln::@return // } - // [764] return + // [771] return rts } // display_frame_init_64 @@ -4971,79 +5017,79 @@ display_frame_init_64: { .const vera_display_set_vstart1_start = $13 .const vera_display_set_vstop1_stop = $db // textcolor(WHITE) - // [766] call textcolor + // [773] call textcolor // Set the charset to lower case. // screenlayer1(); - // [726] phi from display_frame_init_64 to textcolor [phi:display_frame_init_64->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:display_frame_init_64->textcolor#0] -- vbuz1=vbuc1 + // [733] phi from display_frame_init_64 to textcolor [phi:display_frame_init_64->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:display_frame_init_64->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor - // [767] phi from display_frame_init_64 to display_frame_init_64::@2 [phi:display_frame_init_64->display_frame_init_64::@2] + // [774] phi from display_frame_init_64 to display_frame_init_64::@2 [phi:display_frame_init_64->display_frame_init_64::@2] // display_frame_init_64::@2 // bgcolor(BLUE) - // [768] call bgcolor - // [731] phi from display_frame_init_64::@2 to bgcolor [phi:display_frame_init_64::@2->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_frame_init_64::@2->bgcolor#0] -- vbuz1=vbuc1 + // [775] call bgcolor + // [738] phi from display_frame_init_64::@2 to bgcolor [phi:display_frame_init_64::@2->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_frame_init_64::@2->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor - // [769] phi from display_frame_init_64::@2 to display_frame_init_64::@3 [phi:display_frame_init_64::@2->display_frame_init_64::@3] + // [776] phi from display_frame_init_64::@2 to display_frame_init_64::@3 [phi:display_frame_init_64::@2->display_frame_init_64::@3] // display_frame_init_64::@3 // scroll(0) - // [770] call scroll + // [777] call scroll jsr scroll - // [771] phi from display_frame_init_64::@3 to display_frame_init_64::@4 [phi:display_frame_init_64::@3->display_frame_init_64::@4] + // [778] phi from display_frame_init_64::@3 to display_frame_init_64::@4 [phi:display_frame_init_64::@3->display_frame_init_64::@4] // display_frame_init_64::@4 // clrscr() - // [772] call clrscr + // [779] call clrscr jsr clrscr // display_frame_init_64::vera_display_set_hstart1 // *VERA_CTRL |= VERA_DCSEL - // [773] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 + // [780] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 lda #VERA_DCSEL ora VERA_CTRL sta VERA_CTRL // *VERA_DC_HSTART = start - // [774] *VERA_DC_HSTART = display_frame_init_64::vera_display_set_hstart1_start#0 -- _deref_pbuc1=vbuc2 + // [781] *VERA_DC_HSTART = display_frame_init_64::vera_display_set_hstart1_start#0 -- _deref_pbuc1=vbuc2 lda #vera_display_set_hstart1_start sta VERA_DC_HSTART // display_frame_init_64::vera_display_set_hstop1 // *VERA_CTRL |= VERA_DCSEL - // [775] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 + // [782] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 lda #VERA_DCSEL ora VERA_CTRL sta VERA_CTRL // *VERA_DC_HSTOP = stop - // [776] *VERA_DC_HSTOP = display_frame_init_64::vera_display_set_hstop1_stop#0 -- _deref_pbuc1=vbuc2 + // [783] *VERA_DC_HSTOP = display_frame_init_64::vera_display_set_hstop1_stop#0 -- _deref_pbuc1=vbuc2 lda #vera_display_set_hstop1_stop sta VERA_DC_HSTOP // display_frame_init_64::vera_display_set_vstart1 // *VERA_CTRL |= VERA_DCSEL - // [777] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 + // [784] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 lda #VERA_DCSEL ora VERA_CTRL sta VERA_CTRL // *VERA_DC_VSTART = start - // [778] *VERA_DC_VSTART = display_frame_init_64::vera_display_set_vstart1_start#0 -- _deref_pbuc1=vbuc2 + // [785] *VERA_DC_VSTART = display_frame_init_64::vera_display_set_vstart1_start#0 -- _deref_pbuc1=vbuc2 lda #vera_display_set_vstart1_start sta VERA_DC_VSTART // display_frame_init_64::vera_display_set_vstop1 // *VERA_CTRL |= VERA_DCSEL - // [779] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 + // [786] *VERA_CTRL = *VERA_CTRL | VERA_DCSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 lda #VERA_DCSEL ora VERA_CTRL sta VERA_CTRL // *VERA_DC_VSTOP = stop - // [780] *VERA_DC_VSTOP = display_frame_init_64::vera_display_set_vstop1_stop#0 -- _deref_pbuc1=vbuc2 + // [787] *VERA_DC_VSTOP = display_frame_init_64::vera_display_set_vstop1_stop#0 -- _deref_pbuc1=vbuc2 lda #vera_display_set_vstop1_stop sta VERA_DC_VSTOP // display_frame_init_64::@1 // cx16_k_screen_set_charset(3, (char *)0) - // [781] display_frame_init_64::cx16_k_screen_set_charset1_charset = 3 -- vbum1=vbuc1 + // [788] display_frame_init_64::cx16_k_screen_set_charset1_charset = 3 -- vbum1=vbuc1 lda #3 sta cx16_k_screen_set_charset1_charset - // [782] display_frame_init_64::cx16_k_screen_set_charset1_offset = (char *) 0 -- pbum1=pbuc1 + // [789] display_frame_init_64::cx16_k_screen_set_charset1_offset = (char *) 0 -- pbum1=pbuc1 lda #<0 sta cx16_k_screen_set_charset1_offset sta cx16_k_screen_set_charset1_offset+1 @@ -5056,7 +5102,7 @@ display_frame_init_64: { jsr CX16_SCREEN_SET_CHARSET // display_frame_init_64::@return // } - // [784] return + // [791] return rts .segment Data cx16_k_screen_set_charset1_charset: .byte 0 @@ -5069,328 +5115,328 @@ display_frame_init_64: { */ display_frame_draw: { // textcolor(LIGHT_BLUE) - // [786] call textcolor - // [726] phi from display_frame_draw to textcolor [phi:display_frame_draw->textcolor] - // [726] phi textcolor::color#18 = LIGHT_BLUE [phi:display_frame_draw->textcolor#0] -- vbuz1=vbuc1 + // [793] call textcolor + // [733] phi from display_frame_draw to textcolor [phi:display_frame_draw->textcolor] + // [733] phi textcolor::color#18 = LIGHT_BLUE [phi:display_frame_draw->textcolor#0] -- vbuz1=vbuc1 lda #LIGHT_BLUE sta.z textcolor.color jsr textcolor - // [787] phi from display_frame_draw to display_frame_draw::@1 [phi:display_frame_draw->display_frame_draw::@1] + // [794] phi from display_frame_draw to display_frame_draw::@1 [phi:display_frame_draw->display_frame_draw::@1] // display_frame_draw::@1 // bgcolor(BLUE) - // [788] call bgcolor - // [731] phi from display_frame_draw::@1 to bgcolor [phi:display_frame_draw::@1->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_frame_draw::@1->bgcolor#0] -- vbuz1=vbuc1 + // [795] call bgcolor + // [738] phi from display_frame_draw::@1 to bgcolor [phi:display_frame_draw::@1->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_frame_draw::@1->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor - // [789] phi from display_frame_draw::@1 to display_frame_draw::@2 [phi:display_frame_draw::@1->display_frame_draw::@2] + // [796] phi from display_frame_draw::@1 to display_frame_draw::@2 [phi:display_frame_draw::@1->display_frame_draw::@2] // display_frame_draw::@2 // clrscr() - // [790] call clrscr + // [797] call clrscr jsr clrscr - // [791] phi from display_frame_draw::@2 to display_frame_draw::@3 [phi:display_frame_draw::@2->display_frame_draw::@3] + // [798] phi from display_frame_draw::@2 to display_frame_draw::@3 [phi:display_frame_draw::@2->display_frame_draw::@3] // display_frame_draw::@3 // display_frame(0, 0, 67, 14) - // [792] call display_frame - // [1907] phi from display_frame_draw::@3 to display_frame [phi:display_frame_draw::@3->display_frame] - // [1907] phi display_frame::y#0 = 0 [phi:display_frame_draw::@3->display_frame#0] -- vbuz1=vbuc1 + // [799] call display_frame + // [1921] phi from display_frame_draw::@3 to display_frame [phi:display_frame_draw::@3->display_frame] + // [1921] phi display_frame::y#0 = 0 [phi:display_frame_draw::@3->display_frame#0] -- vbuz1=vbuc1 lda #0 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@3->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@3->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 0 [phi:display_frame_draw::@3->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 0 [phi:display_frame_draw::@3->display_frame#2] -- vbuz1=vbuc1 lda #0 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@3->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@3->display_frame#3] -- vbuz1=vbuc1 lda #$43 sta.z display_frame.x1 jsr display_frame - // [793] phi from display_frame_draw::@3 to display_frame_draw::@4 [phi:display_frame_draw::@3->display_frame_draw::@4] + // [800] phi from display_frame_draw::@3 to display_frame_draw::@4 [phi:display_frame_draw::@3->display_frame_draw::@4] // display_frame_draw::@4 // display_frame(0, 0, 67, 2) - // [794] call display_frame - // [1907] phi from display_frame_draw::@4 to display_frame [phi:display_frame_draw::@4->display_frame] - // [1907] phi display_frame::y#0 = 0 [phi:display_frame_draw::@4->display_frame#0] -- vbuz1=vbuc1 + // [801] call display_frame + // [1921] phi from display_frame_draw::@4 to display_frame [phi:display_frame_draw::@4->display_frame] + // [1921] phi display_frame::y#0 = 0 [phi:display_frame_draw::@4->display_frame#0] -- vbuz1=vbuc1 lda #0 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = 2 [phi:display_frame_draw::@4->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = 2 [phi:display_frame_draw::@4->display_frame#1] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 0 [phi:display_frame_draw::@4->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 0 [phi:display_frame_draw::@4->display_frame#2] -- vbuz1=vbuc1 lda #0 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@4->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@4->display_frame#3] -- vbuz1=vbuc1 lda #$43 sta.z display_frame.x1 jsr display_frame - // [795] phi from display_frame_draw::@4 to display_frame_draw::@5 [phi:display_frame_draw::@4->display_frame_draw::@5] + // [802] phi from display_frame_draw::@4 to display_frame_draw::@5 [phi:display_frame_draw::@4->display_frame_draw::@5] // display_frame_draw::@5 // display_frame(0, 2, 67, 14) - // [796] call display_frame - // [1907] phi from display_frame_draw::@5 to display_frame [phi:display_frame_draw::@5->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@5->display_frame#0] -- vbuz1=vbuc1 + // [803] call display_frame + // [1921] phi from display_frame_draw::@5 to display_frame [phi:display_frame_draw::@5->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@5->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@5->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@5->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 0 [phi:display_frame_draw::@5->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 0 [phi:display_frame_draw::@5->display_frame#2] -- vbuz1=vbuc1 lda #0 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@5->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@5->display_frame#3] -- vbuz1=vbuc1 lda #$43 sta.z display_frame.x1 jsr display_frame - // [797] phi from display_frame_draw::@5 to display_frame_draw::@6 [phi:display_frame_draw::@5->display_frame_draw::@6] + // [804] phi from display_frame_draw::@5 to display_frame_draw::@6 [phi:display_frame_draw::@5->display_frame_draw::@6] // display_frame_draw::@6 // display_frame(0, 2, 8, 14) - // [798] call display_frame + // [805] call display_frame // Chipset areas - // [1907] phi from display_frame_draw::@6 to display_frame [phi:display_frame_draw::@6->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@6->display_frame#0] -- vbuz1=vbuc1 + // [1921] phi from display_frame_draw::@6 to display_frame [phi:display_frame_draw::@6->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@6->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@6->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@6->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 0 [phi:display_frame_draw::@6->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 0 [phi:display_frame_draw::@6->display_frame#2] -- vbuz1=vbuc1 lda #0 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = 8 [phi:display_frame_draw::@6->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = 8 [phi:display_frame_draw::@6->display_frame#3] -- vbuz1=vbuc1 lda #8 sta.z display_frame.x1 jsr display_frame - // [799] phi from display_frame_draw::@6 to display_frame_draw::@7 [phi:display_frame_draw::@6->display_frame_draw::@7] + // [806] phi from display_frame_draw::@6 to display_frame_draw::@7 [phi:display_frame_draw::@6->display_frame_draw::@7] // display_frame_draw::@7 // display_frame(8, 2, 19, 14) - // [800] call display_frame - // [1907] phi from display_frame_draw::@7 to display_frame [phi:display_frame_draw::@7->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@7->display_frame#0] -- vbuz1=vbuc1 + // [807] call display_frame + // [1921] phi from display_frame_draw::@7 to display_frame [phi:display_frame_draw::@7->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@7->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@7->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@7->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 8 [phi:display_frame_draw::@7->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 8 [phi:display_frame_draw::@7->display_frame#2] -- vbuz1=vbuc1 lda #8 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $13 [phi:display_frame_draw::@7->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $13 [phi:display_frame_draw::@7->display_frame#3] -- vbuz1=vbuc1 lda #$13 sta.z display_frame.x1 jsr display_frame - // [801] phi from display_frame_draw::@7 to display_frame_draw::@8 [phi:display_frame_draw::@7->display_frame_draw::@8] + // [808] phi from display_frame_draw::@7 to display_frame_draw::@8 [phi:display_frame_draw::@7->display_frame_draw::@8] // display_frame_draw::@8 // display_frame(19, 2, 25, 14) - // [802] call display_frame - // [1907] phi from display_frame_draw::@8 to display_frame [phi:display_frame_draw::@8->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@8->display_frame#0] -- vbuz1=vbuc1 + // [809] call display_frame + // [1921] phi from display_frame_draw::@8 to display_frame [phi:display_frame_draw::@8->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@8->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@8->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@8->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $13 [phi:display_frame_draw::@8->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $13 [phi:display_frame_draw::@8->display_frame#2] -- vbuz1=vbuc1 lda #$13 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $19 [phi:display_frame_draw::@8->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $19 [phi:display_frame_draw::@8->display_frame#3] -- vbuz1=vbuc1 lda #$19 sta.z display_frame.x1 jsr display_frame - // [803] phi from display_frame_draw::@8 to display_frame_draw::@9 [phi:display_frame_draw::@8->display_frame_draw::@9] + // [810] phi from display_frame_draw::@8 to display_frame_draw::@9 [phi:display_frame_draw::@8->display_frame_draw::@9] // display_frame_draw::@9 // display_frame(25, 2, 31, 14) - // [804] call display_frame - // [1907] phi from display_frame_draw::@9 to display_frame [phi:display_frame_draw::@9->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@9->display_frame#0] -- vbuz1=vbuc1 + // [811] call display_frame + // [1921] phi from display_frame_draw::@9 to display_frame [phi:display_frame_draw::@9->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@9->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@9->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@9->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $19 [phi:display_frame_draw::@9->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $19 [phi:display_frame_draw::@9->display_frame#2] -- vbuz1=vbuc1 lda #$19 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $1f [phi:display_frame_draw::@9->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $1f [phi:display_frame_draw::@9->display_frame#3] -- vbuz1=vbuc1 lda #$1f sta.z display_frame.x1 jsr display_frame - // [805] phi from display_frame_draw::@9 to display_frame_draw::@10 [phi:display_frame_draw::@9->display_frame_draw::@10] + // [812] phi from display_frame_draw::@9 to display_frame_draw::@10 [phi:display_frame_draw::@9->display_frame_draw::@10] // display_frame_draw::@10 // display_frame(31, 2, 37, 14) - // [806] call display_frame - // [1907] phi from display_frame_draw::@10 to display_frame [phi:display_frame_draw::@10->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@10->display_frame#0] -- vbuz1=vbuc1 + // [813] call display_frame + // [1921] phi from display_frame_draw::@10 to display_frame [phi:display_frame_draw::@10->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@10->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@10->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@10->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $1f [phi:display_frame_draw::@10->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $1f [phi:display_frame_draw::@10->display_frame#2] -- vbuz1=vbuc1 lda #$1f sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $25 [phi:display_frame_draw::@10->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $25 [phi:display_frame_draw::@10->display_frame#3] -- vbuz1=vbuc1 lda #$25 sta.z display_frame.x1 jsr display_frame - // [807] phi from display_frame_draw::@10 to display_frame_draw::@11 [phi:display_frame_draw::@10->display_frame_draw::@11] + // [814] phi from display_frame_draw::@10 to display_frame_draw::@11 [phi:display_frame_draw::@10->display_frame_draw::@11] // display_frame_draw::@11 // display_frame(37, 2, 43, 14) - // [808] call display_frame - // [1907] phi from display_frame_draw::@11 to display_frame [phi:display_frame_draw::@11->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@11->display_frame#0] -- vbuz1=vbuc1 + // [815] call display_frame + // [1921] phi from display_frame_draw::@11 to display_frame [phi:display_frame_draw::@11->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@11->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@11->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@11->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $25 [phi:display_frame_draw::@11->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $25 [phi:display_frame_draw::@11->display_frame#2] -- vbuz1=vbuc1 lda #$25 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $2b [phi:display_frame_draw::@11->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $2b [phi:display_frame_draw::@11->display_frame#3] -- vbuz1=vbuc1 lda #$2b sta.z display_frame.x1 jsr display_frame - // [809] phi from display_frame_draw::@11 to display_frame_draw::@12 [phi:display_frame_draw::@11->display_frame_draw::@12] + // [816] phi from display_frame_draw::@11 to display_frame_draw::@12 [phi:display_frame_draw::@11->display_frame_draw::@12] // display_frame_draw::@12 // display_frame(43, 2, 49, 14) - // [810] call display_frame - // [1907] phi from display_frame_draw::@12 to display_frame [phi:display_frame_draw::@12->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@12->display_frame#0] -- vbuz1=vbuc1 + // [817] call display_frame + // [1921] phi from display_frame_draw::@12 to display_frame [phi:display_frame_draw::@12->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@12->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@12->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@12->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $2b [phi:display_frame_draw::@12->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $2b [phi:display_frame_draw::@12->display_frame#2] -- vbuz1=vbuc1 lda #$2b sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $31 [phi:display_frame_draw::@12->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $31 [phi:display_frame_draw::@12->display_frame#3] -- vbuz1=vbuc1 lda #$31 sta.z display_frame.x1 jsr display_frame - // [811] phi from display_frame_draw::@12 to display_frame_draw::@13 [phi:display_frame_draw::@12->display_frame_draw::@13] + // [818] phi from display_frame_draw::@12 to display_frame_draw::@13 [phi:display_frame_draw::@12->display_frame_draw::@13] // display_frame_draw::@13 // display_frame(49, 2, 55, 14) - // [812] call display_frame - // [1907] phi from display_frame_draw::@13 to display_frame [phi:display_frame_draw::@13->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@13->display_frame#0] -- vbuz1=vbuc1 + // [819] call display_frame + // [1921] phi from display_frame_draw::@13 to display_frame [phi:display_frame_draw::@13->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@13->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@13->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@13->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $31 [phi:display_frame_draw::@13->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $31 [phi:display_frame_draw::@13->display_frame#2] -- vbuz1=vbuc1 lda #$31 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $37 [phi:display_frame_draw::@13->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $37 [phi:display_frame_draw::@13->display_frame#3] -- vbuz1=vbuc1 lda #$37 sta.z display_frame.x1 jsr display_frame - // [813] phi from display_frame_draw::@13 to display_frame_draw::@14 [phi:display_frame_draw::@13->display_frame_draw::@14] + // [820] phi from display_frame_draw::@13 to display_frame_draw::@14 [phi:display_frame_draw::@13->display_frame_draw::@14] // display_frame_draw::@14 // display_frame(55, 2, 61, 14) - // [814] call display_frame - // [1907] phi from display_frame_draw::@14 to display_frame [phi:display_frame_draw::@14->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@14->display_frame#0] -- vbuz1=vbuc1 + // [821] call display_frame + // [1921] phi from display_frame_draw::@14 to display_frame [phi:display_frame_draw::@14->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@14->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@14->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@14->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $37 [phi:display_frame_draw::@14->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $37 [phi:display_frame_draw::@14->display_frame#2] -- vbuz1=vbuc1 lda #$37 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $3d [phi:display_frame_draw::@14->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $3d [phi:display_frame_draw::@14->display_frame#3] -- vbuz1=vbuc1 lda #$3d sta.z display_frame.x1 jsr display_frame - // [815] phi from display_frame_draw::@14 to display_frame_draw::@15 [phi:display_frame_draw::@14->display_frame_draw::@15] + // [822] phi from display_frame_draw::@14 to display_frame_draw::@15 [phi:display_frame_draw::@14->display_frame_draw::@15] // display_frame_draw::@15 // display_frame(61, 2, 67, 14) - // [816] call display_frame - // [1907] phi from display_frame_draw::@15 to display_frame [phi:display_frame_draw::@15->display_frame] - // [1907] phi display_frame::y#0 = 2 [phi:display_frame_draw::@15->display_frame#0] -- vbuz1=vbuc1 + // [823] call display_frame + // [1921] phi from display_frame_draw::@15 to display_frame [phi:display_frame_draw::@15->display_frame] + // [1921] phi display_frame::y#0 = 2 [phi:display_frame_draw::@15->display_frame#0] -- vbuz1=vbuc1 lda #2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $e [phi:display_frame_draw::@15->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $e [phi:display_frame_draw::@15->display_frame#1] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = $3d [phi:display_frame_draw::@15->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = $3d [phi:display_frame_draw::@15->display_frame#2] -- vbuz1=vbuc1 lda #$3d sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@15->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@15->display_frame#3] -- vbuz1=vbuc1 lda #$43 sta.z display_frame.x1 jsr display_frame - // [817] phi from display_frame_draw::@15 to display_frame_draw::@16 [phi:display_frame_draw::@15->display_frame_draw::@16] + // [824] phi from display_frame_draw::@15 to display_frame_draw::@16 [phi:display_frame_draw::@15->display_frame_draw::@16] // display_frame_draw::@16 // display_frame(0, 14, 67, PROGRESS_Y-5) - // [818] call display_frame + // [825] call display_frame // Progress area - // [1907] phi from display_frame_draw::@16 to display_frame [phi:display_frame_draw::@16->display_frame] - // [1907] phi display_frame::y#0 = $e [phi:display_frame_draw::@16->display_frame#0] -- vbuz1=vbuc1 + // [1921] phi from display_frame_draw::@16 to display_frame [phi:display_frame_draw::@16->display_frame] + // [1921] phi display_frame::y#0 = $e [phi:display_frame_draw::@16->display_frame#0] -- vbuz1=vbuc1 lda #$e sta.z display_frame.y - // [1907] phi display_frame::y1#16 = PROGRESS_Y-5 [phi:display_frame_draw::@16->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = PROGRESS_Y-5 [phi:display_frame_draw::@16->display_frame#1] -- vbuz1=vbuc1 lda #PROGRESS_Y-5 sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 0 [phi:display_frame_draw::@16->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 0 [phi:display_frame_draw::@16->display_frame#2] -- vbuz1=vbuc1 lda #0 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@16->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@16->display_frame#3] -- vbuz1=vbuc1 lda #$43 sta.z display_frame.x1 jsr display_frame - // [819] phi from display_frame_draw::@16 to display_frame_draw::@17 [phi:display_frame_draw::@16->display_frame_draw::@17] + // [826] phi from display_frame_draw::@16 to display_frame_draw::@17 [phi:display_frame_draw::@16->display_frame_draw::@17] // display_frame_draw::@17 // display_frame(0, PROGRESS_Y-5, 67, PROGRESS_Y-2) - // [820] call display_frame - // [1907] phi from display_frame_draw::@17 to display_frame [phi:display_frame_draw::@17->display_frame] - // [1907] phi display_frame::y#0 = PROGRESS_Y-5 [phi:display_frame_draw::@17->display_frame#0] -- vbuz1=vbuc1 + // [827] call display_frame + // [1921] phi from display_frame_draw::@17 to display_frame [phi:display_frame_draw::@17->display_frame] + // [1921] phi display_frame::y#0 = PROGRESS_Y-5 [phi:display_frame_draw::@17->display_frame#0] -- vbuz1=vbuc1 lda #PROGRESS_Y-5 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = PROGRESS_Y-2 [phi:display_frame_draw::@17->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = PROGRESS_Y-2 [phi:display_frame_draw::@17->display_frame#1] -- vbuz1=vbuc1 lda #PROGRESS_Y-2 sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 0 [phi:display_frame_draw::@17->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 0 [phi:display_frame_draw::@17->display_frame#2] -- vbuz1=vbuc1 lda #0 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@17->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@17->display_frame#3] -- vbuz1=vbuc1 lda #$43 sta.z display_frame.x1 jsr display_frame - // [821] phi from display_frame_draw::@17 to display_frame_draw::@18 [phi:display_frame_draw::@17->display_frame_draw::@18] + // [828] phi from display_frame_draw::@17 to display_frame_draw::@18 [phi:display_frame_draw::@17->display_frame_draw::@18] // display_frame_draw::@18 // display_frame(0, PROGRESS_Y-2, 67, 49) - // [822] call display_frame - // [1907] phi from display_frame_draw::@18 to display_frame [phi:display_frame_draw::@18->display_frame] - // [1907] phi display_frame::y#0 = PROGRESS_Y-2 [phi:display_frame_draw::@18->display_frame#0] -- vbuz1=vbuc1 + // [829] call display_frame + // [1921] phi from display_frame_draw::@18 to display_frame [phi:display_frame_draw::@18->display_frame] + // [1921] phi display_frame::y#0 = PROGRESS_Y-2 [phi:display_frame_draw::@18->display_frame#0] -- vbuz1=vbuc1 lda #PROGRESS_Y-2 sta.z display_frame.y - // [1907] phi display_frame::y1#16 = $31 [phi:display_frame_draw::@18->display_frame#1] -- vbuz1=vbuc1 + // [1921] phi display_frame::y1#16 = $31 [phi:display_frame_draw::@18->display_frame#1] -- vbuz1=vbuc1 lda #$31 sta.z display_frame.y1 - // [1907] phi display_frame::x#0 = 0 [phi:display_frame_draw::@18->display_frame#2] -- vbuz1=vbuc1 + // [1921] phi display_frame::x#0 = 0 [phi:display_frame_draw::@18->display_frame#2] -- vbuz1=vbuc1 lda #0 sta.z display_frame.x - // [1907] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@18->display_frame#3] -- vbuz1=vbuc1 + // [1921] phi display_frame::x1#16 = $43 [phi:display_frame_draw::@18->display_frame#3] -- vbuz1=vbuc1 lda #$43 sta.z display_frame.x1 jsr display_frame - // [823] phi from display_frame_draw::@18 to display_frame_draw::@19 [phi:display_frame_draw::@18->display_frame_draw::@19] + // [830] phi from display_frame_draw::@18 to display_frame_draw::@19 [phi:display_frame_draw::@18->display_frame_draw::@19] // display_frame_draw::@19 // textcolor(WHITE) - // [824] call textcolor - // [726] phi from display_frame_draw::@19 to textcolor [phi:display_frame_draw::@19->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:display_frame_draw::@19->textcolor#0] -- vbuz1=vbuc1 + // [831] call textcolor + // [733] phi from display_frame_draw::@19 to textcolor [phi:display_frame_draw::@19->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:display_frame_draw::@19->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor // display_frame_draw::@return // } - // [825] return + // [832] return rts } // display_frame_title @@ -5402,75 +5448,75 @@ display_frame_draw: { // void display_frame_title(char *title_text) display_frame_title: { // gotoxy(2, 1) - // [827] call gotoxy - // [744] phi from display_frame_title to gotoxy [phi:display_frame_title->gotoxy] - // [744] phi gotoxy::y#30 = 1 [phi:display_frame_title->gotoxy#0] -- vbuz1=vbuc1 + // [834] call gotoxy + // [751] phi from display_frame_title to gotoxy [phi:display_frame_title->gotoxy] + // [751] phi gotoxy::y#30 = 1 [phi:display_frame_title->gotoxy#0] -- vbuz1=vbuc1 lda #1 sta.z gotoxy.y - // [744] phi gotoxy::x#30 = 2 [phi:display_frame_title->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = 2 [phi:display_frame_title->gotoxy#1] -- vbuz1=vbuc1 lda #2 sta.z gotoxy.x jsr gotoxy - // [828] phi from display_frame_title to display_frame_title::@1 [phi:display_frame_title->display_frame_title::@1] + // [835] phi from display_frame_title to display_frame_title::@1 [phi:display_frame_title->display_frame_title::@1] // display_frame_title::@1 // printf("%-65s", title_text) - // [829] call printf_string - // [1137] phi from display_frame_title::@1 to printf_string [phi:display_frame_title::@1->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_frame_title::@1->printf_string#0] -- pprz1=pprc1 + // [836] call printf_string + // [1147] phi from display_frame_title::@1 to printf_string [phi:display_frame_title::@1->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_frame_title::@1->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = main::title_text [phi:display_frame_title::@1->printf_string#1] -- pbuz1=pbuc1 + // [1147] phi printf_string::str#24 = main::title_text [phi:display_frame_title::@1->printf_string#1] -- pbuz1=pbuc1 lda #main.title_text sta.z printf_string.str+1 - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_frame_title::@1->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_frame_title::@1->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = $41 [phi:display_frame_title::@1->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = $41 [phi:display_frame_title::@1->printf_string#3] -- vbuz1=vbuc1 lda #$41 sta.z printf_string.format_min_length jsr printf_string // display_frame_title::@return // } - // [830] return + // [837] return rts } // cputsxy // Move cursor and output a NUL-terminated string // Same as "gotoxy (x, y); puts (s);" -// void cputsxy(__zp($5c) char x, __zp($37) char y, __zp($2e) const char *s) +// void cputsxy(__zp($61) char x, __zp($36) char y, __zp($2e) const char *s) cputsxy: { - .label y = $37 + .label y = $36 .label s = $2e - .label x = $5c + .label x = $61 // gotoxy(x, y) - // [832] gotoxy::x#1 = cputsxy::x#4 -- vbuz1=vbuz2 + // [839] gotoxy::x#1 = cputsxy::x#4 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [833] gotoxy::y#1 = cputsxy::y#4 -- vbuz1=vbuz2 + // [840] gotoxy::y#1 = cputsxy::y#4 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [834] call gotoxy - // [744] phi from cputsxy to gotoxy [phi:cputsxy->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#1 [phi:cputsxy->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#1 [phi:cputsxy->gotoxy#1] -- register_copy + // [841] call gotoxy + // [751] phi from cputsxy to gotoxy [phi:cputsxy->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#1 [phi:cputsxy->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#1 [phi:cputsxy->gotoxy#1] -- register_copy jsr gotoxy // cputsxy::@1 // cputs(s) - // [835] cputs::s#1 = cputsxy::s#4 -- pbuz1=pbuz2 + // [842] cputs::s#1 = cputsxy::s#4 -- pbuz1=pbuz2 lda.z s sta.z cputs.s lda.z s+1 sta.z cputs.s+1 - // [836] call cputs - // [2041] phi from cputsxy::@1 to cputs [phi:cputsxy::@1->cputs] + // [843] call cputs + // [2055] phi from cputsxy::@1 to cputs [phi:cputsxy::@1->cputs] jsr cputs // cputsxy::@return // } - // [837] return + // [844] return rts } // display_action_progress @@ -5479,67 +5525,67 @@ cputsxy: { * * @param info_text The progress text to be displayed. */ -// void display_action_progress(__zp($5d) char *info_text) +// void display_action_progress(__zp($af) char *info_text) display_action_progress: { - .label x = $e6 - .label y = $e5 - .label info_text = $5d + .label x = $e8 + .label y = $e7 + .label info_text = $af // unsigned char x = wherex() - // [839] call wherex + // [846] call wherex jsr wherex - // [840] wherex::return#2 = wherex::return#0 + // [847] wherex::return#2 = wherex::return#0 // display_action_progress::@1 - // [841] display_action_progress::x#0 = wherex::return#2 + // [848] display_action_progress::x#0 = wherex::return#2 // unsigned char y = wherey() - // [842] call wherey + // [849] call wherey jsr wherey - // [843] wherey::return#2 = wherey::return#0 + // [850] wherey::return#2 = wherey::return#0 // display_action_progress::@2 - // [844] display_action_progress::y#0 = wherey::return#2 + // [851] display_action_progress::y#0 = wherey::return#2 // gotoxy(2, PROGRESS_Y-4) - // [845] call gotoxy - // [744] phi from display_action_progress::@2 to gotoxy [phi:display_action_progress::@2->gotoxy] - // [744] phi gotoxy::y#30 = PROGRESS_Y-4 [phi:display_action_progress::@2->gotoxy#0] -- vbuz1=vbuc1 + // [852] call gotoxy + // [751] phi from display_action_progress::@2 to gotoxy [phi:display_action_progress::@2->gotoxy] + // [751] phi gotoxy::y#30 = PROGRESS_Y-4 [phi:display_action_progress::@2->gotoxy#0] -- vbuz1=vbuc1 lda #PROGRESS_Y-4 sta.z gotoxy.y - // [744] phi gotoxy::x#30 = 2 [phi:display_action_progress::@2->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = 2 [phi:display_action_progress::@2->gotoxy#1] -- vbuz1=vbuc1 lda #2 sta.z gotoxy.x jsr gotoxy // display_action_progress::@3 // printf("%-65s", info_text) - // [846] printf_string::str#1 = display_action_progress::info_text#18 - // [847] call printf_string - // [1137] phi from display_action_progress::@3 to printf_string [phi:display_action_progress::@3->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_action_progress::@3->printf_string#0] -- pprz1=pprc1 + // [853] printf_string::str#1 = display_action_progress::info_text#19 + // [854] call printf_string + // [1147] phi from display_action_progress::@3 to printf_string [phi:display_action_progress::@3->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_action_progress::@3->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#1 [phi:display_action_progress::@3->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_action_progress::@3->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#1 [phi:display_action_progress::@3->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_action_progress::@3->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = $41 [phi:display_action_progress::@3->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = $41 [phi:display_action_progress::@3->printf_string#3] -- vbuz1=vbuc1 lda #$41 sta.z printf_string.format_min_length jsr printf_string // display_action_progress::@4 // gotoxy(x, y) - // [848] gotoxy::x#10 = display_action_progress::x#0 -- vbuz1=vbuz2 + // [855] gotoxy::x#10 = display_action_progress::x#0 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [849] gotoxy::y#10 = display_action_progress::y#0 -- vbuz1=vbuz2 + // [856] gotoxy::y#10 = display_action_progress::y#0 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [850] call gotoxy - // [744] phi from display_action_progress::@4 to gotoxy [phi:display_action_progress::@4->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#10 [phi:display_action_progress::@4->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#10 [phi:display_action_progress::@4->gotoxy#1] -- register_copy + // [857] call gotoxy + // [751] phi from display_action_progress::@4 to gotoxy [phi:display_action_progress::@4->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#10 [phi:display_action_progress::@4->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#10 [phi:display_action_progress::@4->gotoxy#1] -- register_copy jsr gotoxy // display_action_progress::@return // } - // [851] return + // [858] return rts } // display_progress_clear @@ -5549,119 +5595,119 @@ display_action_progress: { display_progress_clear: { .const h = PROGRESS_Y+PROGRESS_H .label x = $2d - .label i = $37 - .label y = $5c + .label i = $36 + .label y = $61 // textcolor(WHITE) - // [853] call textcolor - // [726] phi from display_progress_clear to textcolor [phi:display_progress_clear->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:display_progress_clear->textcolor#0] -- vbuz1=vbuc1 + // [860] call textcolor + // [733] phi from display_progress_clear to textcolor [phi:display_progress_clear->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:display_progress_clear->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor - // [854] phi from display_progress_clear to display_progress_clear::@5 [phi:display_progress_clear->display_progress_clear::@5] + // [861] phi from display_progress_clear to display_progress_clear::@5 [phi:display_progress_clear->display_progress_clear::@5] // display_progress_clear::@5 // bgcolor(BLUE) - // [855] call bgcolor - // [731] phi from display_progress_clear::@5 to bgcolor [phi:display_progress_clear::@5->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_progress_clear::@5->bgcolor#0] -- vbuz1=vbuc1 + // [862] call bgcolor + // [738] phi from display_progress_clear::@5 to bgcolor [phi:display_progress_clear::@5->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_progress_clear::@5->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor - // [856] phi from display_progress_clear::@5 to display_progress_clear::@1 [phi:display_progress_clear::@5->display_progress_clear::@1] - // [856] phi display_progress_clear::y#2 = PROGRESS_Y [phi:display_progress_clear::@5->display_progress_clear::@1#0] -- vbuz1=vbuc1 + // [863] phi from display_progress_clear::@5 to display_progress_clear::@1 [phi:display_progress_clear::@5->display_progress_clear::@1] + // [863] phi display_progress_clear::y#2 = PROGRESS_Y [phi:display_progress_clear::@5->display_progress_clear::@1#0] -- vbuz1=vbuc1 lda #PROGRESS_Y sta.z y // display_progress_clear::@1 __b1: // while (y < h) - // [857] if(display_progress_clear::y#2display_progress_clear::@2] + // [866] phi from display_progress_clear::@1 to display_progress_clear::@2 [phi:display_progress_clear::@1->display_progress_clear::@2] __b4: - // [859] phi display_progress_clear::x#2 = PROGRESS_X [phi:display_progress_clear::@1->display_progress_clear::@2#0] -- vbuz1=vbuc1 + // [866] phi display_progress_clear::x#2 = PROGRESS_X [phi:display_progress_clear::@1->display_progress_clear::@2#0] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z x - // [859] phi display_progress_clear::i#2 = 0 [phi:display_progress_clear::@1->display_progress_clear::@2#1] -- vbuz1=vbuc1 + // [866] phi display_progress_clear::i#2 = 0 [phi:display_progress_clear::@1->display_progress_clear::@2#1] -- vbuz1=vbuc1 lda #0 sta.z i // display_progress_clear::@2 __b2: // for(unsigned char i = 0; i < w; i++) - // [860] if(display_progress_clear::i#2display_progress_clear::@1] - // [856] phi display_progress_clear::y#2 = display_progress_clear::y#1 [phi:display_progress_clear::@4->display_progress_clear::@1#0] -- register_copy + // [863] phi from display_progress_clear::@4 to display_progress_clear::@1 [phi:display_progress_clear::@4->display_progress_clear::@1] + // [863] phi display_progress_clear::y#2 = display_progress_clear::y#1 [phi:display_progress_clear::@4->display_progress_clear::@1#0] -- register_copy jmp __b1 // display_progress_clear::@3 __b3: // cputcxy(x, y, ' ') - // [862] cputcxy::x#12 = display_progress_clear::x#2 -- vbuz1=vbuz2 + // [869] cputcxy::x#12 = display_progress_clear::x#2 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [863] cputcxy::y#12 = display_progress_clear::y#2 -- vbuz1=vbuz2 + // [870] cputcxy::y#12 = display_progress_clear::y#2 -- vbuz1=vbuz2 lda.z y sta.z cputcxy.y - // [864] call cputcxy - // [2054] phi from display_progress_clear::@3 to cputcxy [phi:display_progress_clear::@3->cputcxy] - // [2054] phi cputcxy::c#15 = ' ' [phi:display_progress_clear::@3->cputcxy#0] -- vbuz1=vbuc1 + // [871] call cputcxy + // [2068] phi from display_progress_clear::@3 to cputcxy [phi:display_progress_clear::@3->cputcxy] + // [2068] phi cputcxy::c#15 = ' ' [phi:display_progress_clear::@3->cputcxy#0] -- vbuz1=vbuc1 lda #' ' sta.z cputcxy.c - // [2054] phi cputcxy::y#15 = cputcxy::y#12 [phi:display_progress_clear::@3->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#12 [phi:display_progress_clear::@3->cputcxy#2] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#12 [phi:display_progress_clear::@3->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#12 [phi:display_progress_clear::@3->cputcxy#2] -- register_copy jsr cputcxy // display_progress_clear::@6 // x++; - // [865] display_progress_clear::x#1 = ++ display_progress_clear::x#2 -- vbuz1=_inc_vbuz1 + // [872] display_progress_clear::x#1 = ++ display_progress_clear::x#2 -- vbuz1=_inc_vbuz1 inc.z x // for(unsigned char i = 0; i < w; i++) - // [866] display_progress_clear::i#1 = ++ display_progress_clear::i#2 -- vbuz1=_inc_vbuz1 + // [873] display_progress_clear::i#1 = ++ display_progress_clear::i#2 -- vbuz1=_inc_vbuz1 inc.z i - // [859] phi from display_progress_clear::@6 to display_progress_clear::@2 [phi:display_progress_clear::@6->display_progress_clear::@2] - // [859] phi display_progress_clear::x#2 = display_progress_clear::x#1 [phi:display_progress_clear::@6->display_progress_clear::@2#0] -- register_copy - // [859] phi display_progress_clear::i#2 = display_progress_clear::i#1 [phi:display_progress_clear::@6->display_progress_clear::@2#1] -- register_copy + // [866] phi from display_progress_clear::@6 to display_progress_clear::@2 [phi:display_progress_clear::@6->display_progress_clear::@2] + // [866] phi display_progress_clear::x#2 = display_progress_clear::x#1 [phi:display_progress_clear::@6->display_progress_clear::@2#0] -- register_copy + // [866] phi display_progress_clear::i#2 = display_progress_clear::i#1 [phi:display_progress_clear::@6->display_progress_clear::@2#1] -- register_copy jmp __b2 } // display_chip_smc display_chip_smc: { // display_smc_led(GREY) - // [868] call display_smc_led - // [2062] phi from display_chip_smc to display_smc_led [phi:display_chip_smc->display_smc_led] - // [2062] phi display_smc_led::c#2 = GREY [phi:display_chip_smc->display_smc_led#0] -- vbuz1=vbuc1 + // [875] call display_smc_led + // [2076] phi from display_chip_smc to display_smc_led [phi:display_chip_smc->display_smc_led] + // [2076] phi display_smc_led::c#2 = GREY [phi:display_chip_smc->display_smc_led#0] -- vbuz1=vbuc1 lda #GREY sta.z display_smc_led.c jsr display_smc_led - // [869] phi from display_chip_smc to display_chip_smc::@1 [phi:display_chip_smc->display_chip_smc::@1] + // [876] phi from display_chip_smc to display_chip_smc::@1 [phi:display_chip_smc->display_chip_smc::@1] // display_chip_smc::@1 // display_print_chip(CHIP_SMC_X, CHIP_SMC_Y+2, CHIP_SMC_W, "SMC ") - // [870] call display_print_chip - // [2068] phi from display_chip_smc::@1 to display_print_chip [phi:display_chip_smc::@1->display_print_chip] - // [2068] phi display_print_chip::text#11 = display_chip_smc::text [phi:display_chip_smc::@1->display_print_chip#0] -- pbum1=pbuc1 + // [877] call display_print_chip + // [2082] phi from display_chip_smc::@1 to display_print_chip [phi:display_chip_smc::@1->display_print_chip] + // [2082] phi display_print_chip::text#11 = display_chip_smc::text [phi:display_chip_smc::@1->display_print_chip#0] -- pbum1=pbuc1 lda #text sta display_print_chip.text_2+1 - // [2068] phi display_print_chip::w#10 = 5 [phi:display_chip_smc::@1->display_print_chip#1] -- vbuz1=vbuc1 + // [2082] phi display_print_chip::w#10 = 5 [phi:display_chip_smc::@1->display_print_chip#1] -- vbuz1=vbuc1 lda #5 sta.z display_print_chip.w - // [2068] phi display_print_chip::x#10 = 1 [phi:display_chip_smc::@1->display_print_chip#2] -- vbuz1=vbuc1 + // [2082] phi display_print_chip::x#10 = 1 [phi:display_chip_smc::@1->display_print_chip#2] -- vbuz1=vbuc1 lda #1 sta.z display_print_chip.x jsr display_print_chip // display_chip_smc::@return // } - // [871] return + // [878] return rts .segment Data text: .text "SMC " @@ -5671,32 +5717,32 @@ display_chip_smc: { // display_chip_vera display_chip_vera: { // display_vera_led(GREY) - // [873] call display_vera_led - // [2112] phi from display_chip_vera to display_vera_led [phi:display_chip_vera->display_vera_led] - // [2112] phi display_vera_led::c#2 = GREY [phi:display_chip_vera->display_vera_led#0] -- vbuz1=vbuc1 + // [880] call display_vera_led + // [2126] phi from display_chip_vera to display_vera_led [phi:display_chip_vera->display_vera_led] + // [2126] phi display_vera_led::c#2 = GREY [phi:display_chip_vera->display_vera_led#0] -- vbuz1=vbuc1 lda #GREY sta.z display_vera_led.c jsr display_vera_led - // [874] phi from display_chip_vera to display_chip_vera::@1 [phi:display_chip_vera->display_chip_vera::@1] + // [881] phi from display_chip_vera to display_chip_vera::@1 [phi:display_chip_vera->display_chip_vera::@1] // display_chip_vera::@1 // display_print_chip(CHIP_VERA_X, CHIP_VERA_Y+2, CHIP_VERA_W, "VERA ") - // [875] call display_print_chip - // [2068] phi from display_chip_vera::@1 to display_print_chip [phi:display_chip_vera::@1->display_print_chip] - // [2068] phi display_print_chip::text#11 = display_chip_vera::text [phi:display_chip_vera::@1->display_print_chip#0] -- pbum1=pbuc1 + // [882] call display_print_chip + // [2082] phi from display_chip_vera::@1 to display_print_chip [phi:display_chip_vera::@1->display_print_chip] + // [2082] phi display_print_chip::text#11 = display_chip_vera::text [phi:display_chip_vera::@1->display_print_chip#0] -- pbum1=pbuc1 lda #text sta display_print_chip.text_2+1 - // [2068] phi display_print_chip::w#10 = 8 [phi:display_chip_vera::@1->display_print_chip#1] -- vbuz1=vbuc1 + // [2082] phi display_print_chip::w#10 = 8 [phi:display_chip_vera::@1->display_print_chip#1] -- vbuz1=vbuc1 lda #8 sta.z display_print_chip.w - // [2068] phi display_print_chip::x#10 = 9 [phi:display_chip_vera::@1->display_print_chip#2] -- vbuz1=vbuc1 + // [2082] phi display_print_chip::x#10 = 9 [phi:display_chip_vera::@1->display_print_chip#2] -- vbuz1=vbuc1 lda #9 sta.z display_print_chip.x jsr display_print_chip // display_chip_vera::@return // } - // [876] return + // [883] return rts .segment Data text: .text "VERA " @@ -5709,37 +5755,37 @@ display_chip_vera: { * */ display_chip_rom: { - .label display_chip_rom__4 = $e6 - .label display_chip_rom__6 = $d8 - .label display_chip_rom__11 = $d7 - .label display_chip_rom__12 = $d7 - // [878] phi from display_chip_rom to display_chip_rom::@1 [phi:display_chip_rom->display_chip_rom::@1] - // [878] phi display_chip_rom::r#2 = 0 [phi:display_chip_rom->display_chip_rom::@1#0] -- vbum1=vbuc1 + .label display_chip_rom__4 = $e8 + .label display_chip_rom__6 = $da + .label display_chip_rom__11 = $fb + .label display_chip_rom__12 = $fb + // [885] phi from display_chip_rom to display_chip_rom::@1 [phi:display_chip_rom->display_chip_rom::@1] + // [885] phi display_chip_rom::r#2 = 0 [phi:display_chip_rom->display_chip_rom::@1#0] -- vbum1=vbuc1 lda #0 sta r // display_chip_rom::@1 __b1: // for (unsigned char r = 0; r < 8; r++) - // [879] if(display_chip_rom::r#2<8) goto display_chip_rom::@2 -- vbum1_lt_vbuc1_then_la1 + // [886] if(display_chip_rom::r#2<8) goto display_chip_rom::@2 -- vbum1_lt_vbuc1_then_la1 lda r cmp #8 bcc __b2 // display_chip_rom::@return // } - // [880] return + // [887] return rts - // [881] phi from display_chip_rom::@1 to display_chip_rom::@2 [phi:display_chip_rom::@1->display_chip_rom::@2] + // [888] phi from display_chip_rom::@1 to display_chip_rom::@2 [phi:display_chip_rom::@1->display_chip_rom::@2] // display_chip_rom::@2 __b2: // strcpy(rom, "ROM ") - // [882] call strcpy - // [967] phi from display_chip_rom::@2 to strcpy [phi:display_chip_rom::@2->strcpy] - // [967] phi strcpy::dst#0 = display_chip_rom::rom [phi:display_chip_rom::@2->strcpy#0] -- pbuz1=pbuc1 + // [889] call strcpy + // [974] phi from display_chip_rom::@2 to strcpy [phi:display_chip_rom::@2->strcpy] + // [974] phi strcpy::dst#0 = display_chip_rom::rom [phi:display_chip_rom::@2->strcpy#0] -- pbuz1=pbuc1 lda #rom sta.z strcpy.dst+1 - // [967] phi strcpy::src#0 = display_chip_rom::source [phi:display_chip_rom::@2->strcpy#1] -- pbuz1=pbuc1 + // [974] phi strcpy::src#0 = display_chip_rom::source [phi:display_chip_rom::@2->strcpy#1] -- pbuz1=pbuc1 lda #source @@ -5747,81 +5793,81 @@ display_chip_rom: { jsr strcpy // display_chip_rom::@5 // strcat(rom, rom_size_strings[r]) - // [883] display_chip_rom::$11 = display_chip_rom::r#2 << 1 -- vbuz1=vbum2_rol_1 + // [890] display_chip_rom::$11 = display_chip_rom::r#2 << 1 -- vbuz1=vbum2_rol_1 lda r asl sta.z display_chip_rom__11 - // [884] strcat::source#0 = rom_size_strings[display_chip_rom::$11] -- pbum1=qbuc1_derefidx_vbuz2 + // [891] strcat::source#0 = rom_size_strings[display_chip_rom::$11] -- pbum1=qbuc1_derefidx_vbuz2 tay lda rom_size_strings,y sta strcat.source lda rom_size_strings+1,y sta strcat.source+1 - // [885] call strcat - // [2118] phi from display_chip_rom::@5 to strcat [phi:display_chip_rom::@5->strcat] + // [892] call strcat + // [2132] phi from display_chip_rom::@5 to strcat [phi:display_chip_rom::@5->strcat] jsr strcat // display_chip_rom::@6 // if(r) - // [886] if(0==display_chip_rom::r#2) goto display_chip_rom::@3 -- 0_eq_vbum1_then_la1 + // [893] if(0==display_chip_rom::r#2) goto display_chip_rom::@3 -- 0_eq_vbum1_then_la1 lda r beq __b3 // display_chip_rom::@4 // r+'0' - // [887] display_chip_rom::$4 = display_chip_rom::r#2 + '0' -- vbuz1=vbum2_plus_vbuc1 + // [894] display_chip_rom::$4 = display_chip_rom::r#2 + '0' -- vbuz1=vbum2_plus_vbuc1 lda #'0' clc adc r sta.z display_chip_rom__4 // *(rom+3) = r+'0' - // [888] *(display_chip_rom::rom+3) = display_chip_rom::$4 -- _deref_pbuc1=vbuz1 + // [895] *(display_chip_rom::rom+3) = display_chip_rom::$4 -- _deref_pbuc1=vbuz1 sta rom+3 // display_chip_rom::@3 __b3: // display_rom_led(r, GREY) - // [889] display_rom_led::chip#0 = display_chip_rom::r#2 -- vbuz1=vbum2 + // [896] display_rom_led::chip#0 = display_chip_rom::r#2 -- vbuz1=vbum2 lda r sta.z display_rom_led.chip - // [890] call display_rom_led - // [2130] phi from display_chip_rom::@3 to display_rom_led [phi:display_chip_rom::@3->display_rom_led] - // [2130] phi display_rom_led::c#2 = GREY [phi:display_chip_rom::@3->display_rom_led#0] -- vbuz1=vbuc1 + // [897] call display_rom_led + // [2144] phi from display_chip_rom::@3 to display_rom_led [phi:display_chip_rom::@3->display_rom_led] + // [2144] phi display_rom_led::c#2 = GREY [phi:display_chip_rom::@3->display_rom_led#0] -- vbuz1=vbuc1 lda #GREY sta.z display_rom_led.c - // [2130] phi display_rom_led::chip#2 = display_rom_led::chip#0 [phi:display_chip_rom::@3->display_rom_led#1] -- register_copy + // [2144] phi display_rom_led::chip#2 = display_rom_led::chip#0 [phi:display_chip_rom::@3->display_rom_led#1] -- register_copy jsr display_rom_led // display_chip_rom::@7 // r*6 - // [891] display_chip_rom::$12 = display_chip_rom::$11 + display_chip_rom::r#2 -- vbuz1=vbuz1_plus_vbum2 + // [898] display_chip_rom::$12 = display_chip_rom::$11 + display_chip_rom::r#2 -- vbuz1=vbuz1_plus_vbum2 lda r clc adc.z display_chip_rom__12 sta.z display_chip_rom__12 - // [892] display_chip_rom::$6 = display_chip_rom::$12 << 1 -- vbuz1=vbuz2_rol_1 + // [899] display_chip_rom::$6 = display_chip_rom::$12 << 1 -- vbuz1=vbuz2_rol_1 asl sta.z display_chip_rom__6 // display_print_chip(CHIP_ROM_X+r*6, CHIP_ROM_Y+2, CHIP_ROM_W, rom) - // [893] display_print_chip::x#2 = $14 + display_chip_rom::$6 -- vbuz1=vbuc1_plus_vbuz1 + // [900] display_print_chip::x#2 = $14 + display_chip_rom::$6 -- vbuz1=vbuc1_plus_vbuz1 lda #$14 clc adc.z display_print_chip.x sta.z display_print_chip.x - // [894] call display_print_chip - // [2068] phi from display_chip_rom::@7 to display_print_chip [phi:display_chip_rom::@7->display_print_chip] - // [2068] phi display_print_chip::text#11 = display_chip_rom::rom [phi:display_chip_rom::@7->display_print_chip#0] -- pbum1=pbuc1 + // [901] call display_print_chip + // [2082] phi from display_chip_rom::@7 to display_print_chip [phi:display_chip_rom::@7->display_print_chip] + // [2082] phi display_print_chip::text#11 = display_chip_rom::rom [phi:display_chip_rom::@7->display_print_chip#0] -- pbum1=pbuc1 lda #rom sta display_print_chip.text_2+1 - // [2068] phi display_print_chip::w#10 = 3 [phi:display_chip_rom::@7->display_print_chip#1] -- vbuz1=vbuc1 + // [2082] phi display_print_chip::w#10 = 3 [phi:display_chip_rom::@7->display_print_chip#1] -- vbuz1=vbuc1 lda #3 sta.z display_print_chip.w - // [2068] phi display_print_chip::x#10 = display_print_chip::x#2 [phi:display_chip_rom::@7->display_print_chip#2] -- register_copy + // [2082] phi display_print_chip::x#10 = display_print_chip::x#2 [phi:display_chip_rom::@7->display_print_chip#2] -- register_copy jsr display_print_chip // display_chip_rom::@8 // for (unsigned char r = 0; r < 8; r++) - // [895] display_chip_rom::r#1 = ++ display_chip_rom::r#2 -- vbum1=_inc_vbum1 + // [902] display_chip_rom::r#1 = ++ display_chip_rom::r#2 -- vbum1=_inc_vbum1 inc r - // [878] phi from display_chip_rom::@8 to display_chip_rom::@1 [phi:display_chip_rom::@8->display_chip_rom::@1] - // [878] phi display_chip_rom::r#2 = display_chip_rom::r#1 [phi:display_chip_rom::@8->display_chip_rom::@1#0] -- register_copy + // [885] phi from display_chip_rom::@8 to display_chip_rom::@1 [phi:display_chip_rom::@8->display_chip_rom::@1] + // [885] phi display_chip_rom::r#2 = display_chip_rom::r#1 [phi:display_chip_rom::@8->display_chip_rom::@1#0] -- register_copy jmp __b1 .segment Data rom: .fill $10, 0 @@ -5840,61 +5886,61 @@ display_chip_rom: { */ // void display_info_smc(__mem() char info_status, __zp($4c) char *info_text) display_info_smc: { - .label x = $cd - .label y = $e9 + .label x = $d9 + .label y = $cd .label info_text = $4c // unsigned char x = wherex() - // [897] call wherex + // [904] call wherex jsr wherex - // [898] wherex::return#10 = wherex::return#0 -- vbuz1=vbuz2 + // [905] wherex::return#10 = wherex::return#0 -- vbuz1=vbuz2 lda.z wherex.return sta.z wherex.return_2 // display_info_smc::@3 - // [899] display_info_smc::x#0 = wherex::return#10 + // [906] display_info_smc::x#0 = wherex::return#10 // unsigned char y = wherey() - // [900] call wherey + // [907] call wherey jsr wherey - // [901] wherey::return#10 = wherey::return#0 -- vbuz1=vbuz2 + // [908] wherey::return#10 = wherey::return#0 -- vbuz1=vbuz2 lda.z wherey.return sta.z wherey.return_2 // display_info_smc::@4 - // [902] display_info_smc::y#0 = wherey::return#10 + // [909] display_info_smc::y#0 = wherey::return#10 // status_smc = info_status - // [903] status_smc#0 = display_info_smc::info_status#18 -- vbum1=vbum2 + // [910] status_smc#0 = display_info_smc::info_status#18 -- vbum1=vbum2 lda info_status sta status_smc // display_smc_led(status_color[info_status]) - // [904] display_smc_led::c#1 = status_color[display_info_smc::info_status#18] -- vbuz1=pbuc1_derefidx_vbum2 + // [911] display_smc_led::c#1 = status_color[display_info_smc::info_status#18] -- vbuz1=pbuc1_derefidx_vbum2 ldy info_status lda status_color,y sta.z display_smc_led.c - // [905] call display_smc_led - // [2062] phi from display_info_smc::@4 to display_smc_led [phi:display_info_smc::@4->display_smc_led] - // [2062] phi display_smc_led::c#2 = display_smc_led::c#1 [phi:display_info_smc::@4->display_smc_led#0] -- register_copy + // [912] call display_smc_led + // [2076] phi from display_info_smc::@4 to display_smc_led [phi:display_info_smc::@4->display_smc_led] + // [2076] phi display_smc_led::c#2 = display_smc_led::c#1 [phi:display_info_smc::@4->display_smc_led#0] -- register_copy jsr display_smc_led - // [906] phi from display_info_smc::@4 to display_info_smc::@5 [phi:display_info_smc::@4->display_info_smc::@5] + // [913] phi from display_info_smc::@4 to display_info_smc::@5 [phi:display_info_smc::@4->display_info_smc::@5] // display_info_smc::@5 // gotoxy(INFO_X, INFO_Y) - // [907] call gotoxy - // [744] phi from display_info_smc::@5 to gotoxy [phi:display_info_smc::@5->gotoxy] - // [744] phi gotoxy::y#30 = $11 [phi:display_info_smc::@5->gotoxy#0] -- vbuz1=vbuc1 + // [914] call gotoxy + // [751] phi from display_info_smc::@5 to gotoxy [phi:display_info_smc::@5->gotoxy] + // [751] phi gotoxy::y#30 = $11 [phi:display_info_smc::@5->gotoxy#0] -- vbuz1=vbuc1 lda #$11 sta.z gotoxy.y - // [744] phi gotoxy::x#30 = 4 [phi:display_info_smc::@5->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = 4 [phi:display_info_smc::@5->gotoxy#1] -- vbuz1=vbuc1 lda #4 sta.z gotoxy.x jsr gotoxy - // [908] phi from display_info_smc::@5 to display_info_smc::@6 [phi:display_info_smc::@5->display_info_smc::@6] + // [915] phi from display_info_smc::@5 to display_info_smc::@6 [phi:display_info_smc::@5->display_info_smc::@6] // display_info_smc::@6 // printf("SMC %-9s ATTiny %-8s BL:%u ", status_text[info_status], smc_version_text, smc_bootloader) - // [909] call printf_str - // [1128] phi from display_info_smc::@6 to printf_str [phi:display_info_smc::@6->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@6->printf_str#0] -- pprz1=pprc1 + // [916] call printf_str + // [1138] phi from display_info_smc::@6 to printf_str [phi:display_info_smc::@6->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@6->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = display_info_smc::s [phi:display_info_smc::@6->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = display_info_smc::s [phi:display_info_smc::@6->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -5902,78 +5948,78 @@ display_info_smc: { jsr printf_str // display_info_smc::@7 // printf("SMC %-9s ATTiny %-8s BL:%u ", status_text[info_status], smc_version_text, smc_bootloader) - // [910] display_info_smc::$8 = display_info_smc::info_status#18 << 1 -- vbum1=vbum1_rol_1 + // [917] display_info_smc::$8 = display_info_smc::info_status#18 << 1 -- vbum1=vbum1_rol_1 asl display_info_smc__8 - // [911] printf_string::str#3 = status_text[display_info_smc::$8] -- pbuz1=qbuc1_derefidx_vbum2 + // [918] printf_string::str#3 = status_text[display_info_smc::$8] -- pbuz1=qbuc1_derefidx_vbum2 ldy display_info_smc__8 lda status_text,y sta.z printf_string.str lda status_text+1,y sta.z printf_string.str+1 - // [912] call printf_string - // [1137] phi from display_info_smc::@7 to printf_string [phi:display_info_smc::@7->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_smc::@7->printf_string#0] -- pprz1=pprc1 + // [919] call printf_string + // [1147] phi from display_info_smc::@7 to printf_string [phi:display_info_smc::@7->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_smc::@7->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#3 [phi:display_info_smc::@7->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_smc::@7->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#3 [phi:display_info_smc::@7->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_smc::@7->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 9 [phi:display_info_smc::@7->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 9 [phi:display_info_smc::@7->printf_string#3] -- vbuz1=vbuc1 lda #9 sta.z printf_string.format_min_length jsr printf_string - // [913] phi from display_info_smc::@7 to display_info_smc::@8 [phi:display_info_smc::@7->display_info_smc::@8] + // [920] phi from display_info_smc::@7 to display_info_smc::@8 [phi:display_info_smc::@7->display_info_smc::@8] // display_info_smc::@8 // printf("SMC %-9s ATTiny %-8s BL:%u ", status_text[info_status], smc_version_text, smc_bootloader) - // [914] call printf_str - // [1128] phi from display_info_smc::@8 to printf_str [phi:display_info_smc::@8->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@8->printf_str#0] -- pprz1=pprc1 + // [921] call printf_str + // [1138] phi from display_info_smc::@8 to printf_str [phi:display_info_smc::@8->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@8->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = display_info_smc::s1 [phi:display_info_smc::@8->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = display_info_smc::s1 [phi:display_info_smc::@8->printf_str#1] -- pbuz1=pbuc1 lda #s1 sta.z printf_str.s+1 jsr printf_str - // [915] phi from display_info_smc::@8 to display_info_smc::@9 [phi:display_info_smc::@8->display_info_smc::@9] + // [922] phi from display_info_smc::@8 to display_info_smc::@9 [phi:display_info_smc::@8->display_info_smc::@9] // display_info_smc::@9 // printf("SMC %-9s ATTiny %-8s BL:%u ", status_text[info_status], smc_version_text, smc_bootloader) - // [916] call printf_string - // [1137] phi from display_info_smc::@9 to printf_string [phi:display_info_smc::@9->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_smc::@9->printf_string#0] -- pprz1=pprc1 + // [923] call printf_string + // [1147] phi from display_info_smc::@9 to printf_string [phi:display_info_smc::@9->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_smc::@9->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = smc_version_text [phi:display_info_smc::@9->printf_string#1] -- pbuz1=pbuc1 + // [1147] phi printf_string::str#24 = smc_version_text [phi:display_info_smc::@9->printf_string#1] -- pbuz1=pbuc1 lda #smc_version_text sta.z printf_string.str+1 - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_smc::@9->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_smc::@9->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 8 [phi:display_info_smc::@9->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 8 [phi:display_info_smc::@9->printf_string#3] -- vbuz1=vbuc1 lda #8 sta.z printf_string.format_min_length jsr printf_string - // [917] phi from display_info_smc::@9 to display_info_smc::@10 [phi:display_info_smc::@9->display_info_smc::@10] + // [924] phi from display_info_smc::@9 to display_info_smc::@10 [phi:display_info_smc::@9->display_info_smc::@10] // display_info_smc::@10 // printf("SMC %-9s ATTiny %-8s BL:%u ", status_text[info_status], smc_version_text, smc_bootloader) - // [918] call printf_str - // [1128] phi from display_info_smc::@10 to printf_str [phi:display_info_smc::@10->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@10->printf_str#0] -- pprz1=pprc1 + // [925] call printf_str + // [1138] phi from display_info_smc::@10 to printf_str [phi:display_info_smc::@10->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@10->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = display_info_smc::s2 [phi:display_info_smc::@10->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = display_info_smc::s2 [phi:display_info_smc::@10->printf_str#1] -- pbuz1=pbuc1 lda #s2 @@ -5981,39 +6027,39 @@ display_info_smc: { jsr printf_str // display_info_smc::@11 // printf("SMC %-9s ATTiny %-8s BL:%u ", status_text[info_status], smc_version_text, smc_bootloader) - // [919] printf_uint::uvalue#0 = smc_bootloader#13 -- vwuz1=vwum2 + // [926] printf_uint::uvalue#0 = smc_bootloader#13 -- vwuz1=vwum2 lda smc_bootloader_1 sta.z printf_uint.uvalue lda smc_bootloader_1+1 sta.z printf_uint.uvalue+1 - // [920] call printf_uint - // [1825] phi from display_info_smc::@11 to printf_uint [phi:display_info_smc::@11->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 0 [phi:display_info_smc::@11->printf_uint#0] -- vbuz1=vbuc1 + // [927] call printf_uint + // [1839] phi from display_info_smc::@11 to printf_uint [phi:display_info_smc::@11->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 0 [phi:display_info_smc::@11->printf_uint#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 0 [phi:display_info_smc::@11->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 0 [phi:display_info_smc::@11->printf_uint#1] -- vbuz1=vbuc1 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &cputc [phi:display_info_smc::@11->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &cputc [phi:display_info_smc::@11->printf_uint#2] -- pprz1=pprc1 lda #cputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = DECIMAL [phi:display_info_smc::@11->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = DECIMAL [phi:display_info_smc::@11->printf_uint#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#0 [phi:display_info_smc::@11->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#0 [phi:display_info_smc::@11->printf_uint#4] -- register_copy jsr printf_uint - // [921] phi from display_info_smc::@11 to display_info_smc::@12 [phi:display_info_smc::@11->display_info_smc::@12] + // [928] phi from display_info_smc::@11 to display_info_smc::@12 [phi:display_info_smc::@11->display_info_smc::@12] // display_info_smc::@12 // printf("SMC %-9s ATTiny %-8s BL:%u ", status_text[info_status], smc_version_text, smc_bootloader) - // [922] call printf_str - // [1128] phi from display_info_smc::@12 to printf_str [phi:display_info_smc::@12->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@12->printf_str#0] -- pprz1=pprc1 + // [929] call printf_str + // [1138] phi from display_info_smc::@12 to printf_str [phi:display_info_smc::@12->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_smc::@12->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s [phi:display_info_smc::@12->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s [phi:display_info_smc::@12->printf_str#1] -- pbuz1=pbuc1 lda #<@s sta.z printf_str.s lda #>@s @@ -6021,7 +6067,7 @@ display_info_smc: { jsr printf_str // display_info_smc::@13 // if(info_text) - // [923] if((char *)0==display_info_smc::info_text#18) goto display_info_smc::@1 -- pbuc1_eq_pbuz1_then_la1 + // [930] if((char *)0==display_info_smc::info_text#18) goto display_info_smc::@1 -- pbuc1_eq_pbuz1_then_la1 lda.z info_text cmp #<0 bne !+ @@ -6031,43 +6077,43 @@ display_info_smc: { !: // display_info_smc::@2 // printf("%-25s", info_text) - // [924] printf_string::str#5 = display_info_smc::info_text#18 -- pbuz1=pbuz2 + // [931] printf_string::str#5 = display_info_smc::info_text#18 -- pbuz1=pbuz2 lda.z info_text sta.z printf_string.str lda.z info_text+1 sta.z printf_string.str+1 - // [925] call printf_string - // [1137] phi from display_info_smc::@2 to printf_string [phi:display_info_smc::@2->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_smc::@2->printf_string#0] -- pprz1=pprc1 + // [932] call printf_string + // [1147] phi from display_info_smc::@2 to printf_string [phi:display_info_smc::@2->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_smc::@2->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#5 [phi:display_info_smc::@2->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_smc::@2->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#5 [phi:display_info_smc::@2->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_smc::@2->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = $19 [phi:display_info_smc::@2->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = $19 [phi:display_info_smc::@2->printf_string#3] -- vbuz1=vbuc1 lda #$19 sta.z printf_string.format_min_length jsr printf_string // display_info_smc::@1 __b1: // gotoxy(x, y) - // [926] gotoxy::x#14 = display_info_smc::x#0 -- vbuz1=vbuz2 + // [933] gotoxy::x#14 = display_info_smc::x#0 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [927] gotoxy::y#14 = display_info_smc::y#0 -- vbuz1=vbuz2 + // [934] gotoxy::y#14 = display_info_smc::y#0 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [928] call gotoxy - // [744] phi from display_info_smc::@1 to gotoxy [phi:display_info_smc::@1->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#14 [phi:display_info_smc::@1->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#14 [phi:display_info_smc::@1->gotoxy#1] -- register_copy + // [935] call gotoxy + // [751] phi from display_info_smc::@1 to gotoxy [phi:display_info_smc::@1->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#14 [phi:display_info_smc::@1->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#14 [phi:display_info_smc::@1->gotoxy#1] -- register_copy jsr gotoxy // display_info_smc::@return // } - // [929] return + // [936] return rts .segment Data s: .text "SMC " @@ -6086,65 +6132,65 @@ display_info_smc: { * * @param info_status The STATUS_ */ -// void display_info_vera(__zp($e0) char info_status, __zp($b5) char *info_text) +// void display_info_vera(__zp($e2) char info_status, __zp($5d) char *info_text) display_info_vera: { - .label display_info_vera__8 = $e0 - .label x = $b4 - .label y = $ba - .label info_status = $e0 - .label info_text = $b5 + .label display_info_vera__8 = $e2 + .label x = $eb + .label y = $b6 + .label info_status = $e2 + .label info_text = $5d // unsigned char x = wherex() - // [931] call wherex + // [938] call wherex jsr wherex - // [932] wherex::return#11 = wherex::return#0 -- vbuz1=vbuz2 + // [939] wherex::return#11 = wherex::return#0 -- vbuz1=vbuz2 lda.z wherex.return sta.z wherex.return_3 // display_info_vera::@3 - // [933] display_info_vera::x#0 = wherex::return#11 + // [940] display_info_vera::x#0 = wherex::return#11 // unsigned char y = wherey() - // [934] call wherey + // [941] call wherey jsr wherey - // [935] wherey::return#11 = wherey::return#0 -- vbuz1=vbuz2 + // [942] wherey::return#11 = wherey::return#0 -- vbuz1=vbuz2 lda.z wherey.return sta.z wherey.return_3 // display_info_vera::@4 - // [936] display_info_vera::y#0 = wherey::return#11 + // [943] display_info_vera::y#0 = wherey::return#11 // status_vera = info_status - // [937] status_vera#0 = display_info_vera::info_status#4 -- vbum1=vbuz2 + // [944] status_vera#0 = display_info_vera::info_status#4 -- vbum1=vbuz2 lda.z info_status sta status_vera // display_vera_led(status_color[info_status]) - // [938] display_vera_led::c#1 = status_color[display_info_vera::info_status#4] -- vbuz1=pbuc1_derefidx_vbuz2 + // [945] display_vera_led::c#1 = status_color[display_info_vera::info_status#4] -- vbuz1=pbuc1_derefidx_vbuz2 ldy.z info_status lda status_color,y sta.z display_vera_led.c - // [939] call display_vera_led - // [2112] phi from display_info_vera::@4 to display_vera_led [phi:display_info_vera::@4->display_vera_led] - // [2112] phi display_vera_led::c#2 = display_vera_led::c#1 [phi:display_info_vera::@4->display_vera_led#0] -- register_copy + // [946] call display_vera_led + // [2126] phi from display_info_vera::@4 to display_vera_led [phi:display_info_vera::@4->display_vera_led] + // [2126] phi display_vera_led::c#2 = display_vera_led::c#1 [phi:display_info_vera::@4->display_vera_led#0] -- register_copy jsr display_vera_led - // [940] phi from display_info_vera::@4 to display_info_vera::@5 [phi:display_info_vera::@4->display_info_vera::@5] + // [947] phi from display_info_vera::@4 to display_info_vera::@5 [phi:display_info_vera::@4->display_info_vera::@5] // display_info_vera::@5 // gotoxy(INFO_X, INFO_Y+1) - // [941] call gotoxy - // [744] phi from display_info_vera::@5 to gotoxy [phi:display_info_vera::@5->gotoxy] - // [744] phi gotoxy::y#30 = $11+1 [phi:display_info_vera::@5->gotoxy#0] -- vbuz1=vbuc1 + // [948] call gotoxy + // [751] phi from display_info_vera::@5 to gotoxy [phi:display_info_vera::@5->gotoxy] + // [751] phi gotoxy::y#30 = $11+1 [phi:display_info_vera::@5->gotoxy#0] -- vbuz1=vbuc1 lda #$11+1 sta.z gotoxy.y - // [744] phi gotoxy::x#30 = 4 [phi:display_info_vera::@5->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = 4 [phi:display_info_vera::@5->gotoxy#1] -- vbuz1=vbuc1 lda #4 sta.z gotoxy.x jsr gotoxy - // [942] phi from display_info_vera::@5 to display_info_vera::@6 [phi:display_info_vera::@5->display_info_vera::@6] + // [949] phi from display_info_vera::@5 to display_info_vera::@6 [phi:display_info_vera::@5->display_info_vera::@6] // display_info_vera::@6 // printf("VERA %-9s FPGA ", status_text[info_status]) - // [943] call printf_str - // [1128] phi from display_info_vera::@6 to printf_str [phi:display_info_vera::@6->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_vera::@6->printf_str#0] -- pprz1=pprc1 + // [950] call printf_str + // [1138] phi from display_info_vera::@6 to printf_str [phi:display_info_vera::@6->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_vera::@6->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = display_info_vera::s [phi:display_info_vera::@6->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = display_info_vera::s [phi:display_info_vera::@6->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -6152,40 +6198,40 @@ display_info_vera: { jsr printf_str // display_info_vera::@7 // printf("VERA %-9s FPGA ", status_text[info_status]) - // [944] display_info_vera::$8 = display_info_vera::info_status#4 << 1 -- vbuz1=vbuz1_rol_1 + // [951] display_info_vera::$8 = display_info_vera::info_status#4 << 1 -- vbuz1=vbuz1_rol_1 asl.z display_info_vera__8 - // [945] printf_string::str#6 = status_text[display_info_vera::$8] -- pbuz1=qbuc1_derefidx_vbuz2 + // [952] printf_string::str#6 = status_text[display_info_vera::$8] -- pbuz1=qbuc1_derefidx_vbuz2 ldy.z display_info_vera__8 lda status_text,y sta.z printf_string.str lda status_text+1,y sta.z printf_string.str+1 - // [946] call printf_string - // [1137] phi from display_info_vera::@7 to printf_string [phi:display_info_vera::@7->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_vera::@7->printf_string#0] -- pprz1=pprc1 + // [953] call printf_string + // [1147] phi from display_info_vera::@7 to printf_string [phi:display_info_vera::@7->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_vera::@7->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#6 [phi:display_info_vera::@7->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_vera::@7->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#6 [phi:display_info_vera::@7->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_vera::@7->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 9 [phi:display_info_vera::@7->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 9 [phi:display_info_vera::@7->printf_string#3] -- vbuz1=vbuc1 lda #9 sta.z printf_string.format_min_length jsr printf_string - // [947] phi from display_info_vera::@7 to display_info_vera::@8 [phi:display_info_vera::@7->display_info_vera::@8] + // [954] phi from display_info_vera::@7 to display_info_vera::@8 [phi:display_info_vera::@7->display_info_vera::@8] // display_info_vera::@8 // printf("VERA %-9s FPGA ", status_text[info_status]) - // [948] call printf_str - // [1128] phi from display_info_vera::@8 to printf_str [phi:display_info_vera::@8->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_vera::@8->printf_str#0] -- pprz1=pprc1 + // [955] call printf_str + // [1138] phi from display_info_vera::@8 to printf_str [phi:display_info_vera::@8->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_vera::@8->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = display_info_vera::s1 [phi:display_info_vera::@8->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = display_info_vera::s1 [phi:display_info_vera::@8->printf_str#1] -- pbuz1=pbuc1 lda #s1 @@ -6193,7 +6239,7 @@ display_info_vera: { jsr printf_str // display_info_vera::@9 // if(info_text) - // [949] if((char *)0==display_info_vera::info_text#10) goto display_info_vera::@1 -- pbuc1_eq_pbuz1_then_la1 + // [956] if((char *)0==display_info_vera::info_text#10) goto display_info_vera::@1 -- pbuc1_eq_pbuz1_then_la1 lda.z info_text cmp #<0 bne !+ @@ -6203,43 +6249,43 @@ display_info_vera: { !: // display_info_vera::@2 // printf("%-25s", info_text) - // [950] printf_string::str#7 = display_info_vera::info_text#10 -- pbuz1=pbuz2 + // [957] printf_string::str#7 = display_info_vera::info_text#10 -- pbuz1=pbuz2 lda.z info_text sta.z printf_string.str lda.z info_text+1 sta.z printf_string.str+1 - // [951] call printf_string - // [1137] phi from display_info_vera::@2 to printf_string [phi:display_info_vera::@2->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_vera::@2->printf_string#0] -- pprz1=pprc1 + // [958] call printf_string + // [1147] phi from display_info_vera::@2 to printf_string [phi:display_info_vera::@2->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_vera::@2->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#7 [phi:display_info_vera::@2->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_vera::@2->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#7 [phi:display_info_vera::@2->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_vera::@2->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = $19 [phi:display_info_vera::@2->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = $19 [phi:display_info_vera::@2->printf_string#3] -- vbuz1=vbuc1 lda #$19 sta.z printf_string.format_min_length jsr printf_string // display_info_vera::@1 __b1: // gotoxy(x, y) - // [952] gotoxy::x#16 = display_info_vera::x#0 -- vbuz1=vbuz2 + // [959] gotoxy::x#16 = display_info_vera::x#0 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [953] gotoxy::y#16 = display_info_vera::y#0 -- vbuz1=vbuz2 + // [960] gotoxy::y#16 = display_info_vera::y#0 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [954] call gotoxy - // [744] phi from display_info_vera::@1 to gotoxy [phi:display_info_vera::@1->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#16 [phi:display_info_vera::@1->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#16 [phi:display_info_vera::@1->gotoxy#1] -- register_copy + // [961] call gotoxy + // [751] phi from display_info_vera::@1 to gotoxy [phi:display_info_vera::@1->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#16 [phi:display_info_vera::@1->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#16 [phi:display_info_vera::@1->gotoxy#1] -- register_copy jsr gotoxy // display_info_vera::@return // } - // [955] return + // [962] return rts .segment Data s: .text "VERA " @@ -6257,32 +6303,32 @@ display_info_vera: { * @return unsigned int 0x0200 if there is a technical error reading or detecting the SMC chip. */ smc_detect: { - .label smc_detect__1 = $e5 + .label smc_detect__1 = $e7 // When the bootloader is not present, 0xFF is returned. .label smc_bootloader_version = $2e .label return = $2e // cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_OFFSET) - // [956] cx16_k_i2c_read_byte::device = $42 -- vbum1=vbuc1 + // [963] cx16_k_i2c_read_byte::device = $42 -- vbum1=vbuc1 lda #$42 sta cx16_k_i2c_read_byte.device - // [957] cx16_k_i2c_read_byte::offset = $8e -- vbum1=vbuc1 + // [964] cx16_k_i2c_read_byte::offset = $8e -- vbum1=vbuc1 lda #$8e sta cx16_k_i2c_read_byte.offset - // [958] call cx16_k_i2c_read_byte + // [965] call cx16_k_i2c_read_byte jsr cx16_k_i2c_read_byte - // [959] cx16_k_i2c_read_byte::return#10 = cx16_k_i2c_read_byte::return#1 + // [966] cx16_k_i2c_read_byte::return#10 = cx16_k_i2c_read_byte::return#1 // smc_detect::@3 // smc_bootloader_version = cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_OFFSET) - // [960] smc_detect::smc_bootloader_version#1 = cx16_k_i2c_read_byte::return#10 + // [967] smc_detect::smc_bootloader_version#1 = cx16_k_i2c_read_byte::return#10 // BYTE1(smc_bootloader_version) - // [961] smc_detect::$1 = byte1 smc_detect::smc_bootloader_version#1 -- vbuz1=_byte1_vwuz2 + // [968] smc_detect::$1 = byte1 smc_detect::smc_bootloader_version#1 -- vbuz1=_byte1_vwuz2 lda.z smc_bootloader_version+1 sta.z smc_detect__1 // if(!BYTE1(smc_bootloader_version)) - // [962] if(0==smc_detect::$1) goto smc_detect::@1 -- 0_eq_vbuz1_then_la1 + // [969] if(0==smc_detect::$1) goto smc_detect::@1 -- 0_eq_vbuz1_then_la1 beq __b1 - // [965] phi from smc_detect::@3 to smc_detect::@2 [phi:smc_detect::@3->smc_detect::@2] - // [965] phi smc_detect::return#0 = $200 [phi:smc_detect::@3->smc_detect::@2#0] -- vwuz1=vwuc1 + // [972] phi from smc_detect::@3 to smc_detect::@2 [phi:smc_detect::@3->smc_detect::@2] + // [972] phi smc_detect::return#0 = $200 [phi:smc_detect::@3->smc_detect::@2#0] -- vwuz1=vwuc1 lda #<$200 sta.z return lda #>$200 @@ -6291,72 +6337,72 @@ smc_detect: { // smc_detect::@1 __b1: // if(smc_bootloader_version == 0xFF) - // [963] if(smc_detect::smc_bootloader_version#1!=$ff) goto smc_detect::@4 -- vwuz1_neq_vbuc1_then_la1 + // [970] if(smc_detect::smc_bootloader_version#1!=$ff) goto smc_detect::@4 -- vwuz1_neq_vbuc1_then_la1 lda.z smc_bootloader_version+1 bne __b2 lda.z smc_bootloader_version cmp #$ff bne __b2 - // [965] phi from smc_detect::@1 to smc_detect::@2 [phi:smc_detect::@1->smc_detect::@2] - // [965] phi smc_detect::return#0 = $100 [phi:smc_detect::@1->smc_detect::@2#0] -- vwuz1=vwuc1 + // [972] phi from smc_detect::@1 to smc_detect::@2 [phi:smc_detect::@1->smc_detect::@2] + // [972] phi smc_detect::return#0 = $100 [phi:smc_detect::@1->smc_detect::@2#0] -- vwuz1=vwuc1 lda #<$100 sta.z return lda #>$100 sta.z return+1 rts - // [964] phi from smc_detect::@1 to smc_detect::@4 [phi:smc_detect::@1->smc_detect::@4] + // [971] phi from smc_detect::@1 to smc_detect::@4 [phi:smc_detect::@1->smc_detect::@4] // smc_detect::@4 - // [965] phi from smc_detect::@4 to smc_detect::@2 [phi:smc_detect::@4->smc_detect::@2] - // [965] phi smc_detect::return#0 = smc_detect::smc_bootloader_version#1 [phi:smc_detect::@4->smc_detect::@2#0] -- register_copy + // [972] phi from smc_detect::@4 to smc_detect::@2 [phi:smc_detect::@4->smc_detect::@2] + // [972] phi smc_detect::return#0 = smc_detect::smc_bootloader_version#1 [phi:smc_detect::@4->smc_detect::@2#0] -- register_copy // smc_detect::@2 __b2: // smc_detect::@return // } - // [966] return + // [973] return rts } // strcpy // Copies the C string pointed by source into the array pointed by destination, including the terminating null character (and stopping at that point). // char * strcpy(__zp($4c) char *destination, char *source) strcpy: { - .label src = $5d + .label src = $af .label dst = $4c .label destination = $4c - // [968] phi from strcpy strcpy::@2 to strcpy::@1 [phi:strcpy/strcpy::@2->strcpy::@1] - // [968] phi strcpy::dst#2 = strcpy::dst#0 [phi:strcpy/strcpy::@2->strcpy::@1#0] -- register_copy - // [968] phi strcpy::src#2 = strcpy::src#0 [phi:strcpy/strcpy::@2->strcpy::@1#1] -- register_copy + // [975] phi from strcpy strcpy::@2 to strcpy::@1 [phi:strcpy/strcpy::@2->strcpy::@1] + // [975] phi strcpy::dst#2 = strcpy::dst#0 [phi:strcpy/strcpy::@2->strcpy::@1#0] -- register_copy + // [975] phi strcpy::src#2 = strcpy::src#0 [phi:strcpy/strcpy::@2->strcpy::@1#1] -- register_copy // strcpy::@1 __b1: // while(*src) - // [969] if(0!=*strcpy::src#2) goto strcpy::@2 -- 0_neq__deref_pbuz1_then_la1 + // [976] if(0!=*strcpy::src#2) goto strcpy::@2 -- 0_neq__deref_pbuz1_then_la1 ldy #0 lda (src),y cmp #0 bne __b2 // strcpy::@3 // *dst = 0 - // [970] *strcpy::dst#2 = 0 -- _deref_pbuz1=vbuc1 + // [977] *strcpy::dst#2 = 0 -- _deref_pbuz1=vbuc1 tya tay sta (dst),y // strcpy::@return // } - // [971] return + // [978] return rts // strcpy::@2 __b2: // *dst++ = *src++ - // [972] *strcpy::dst#2 = *strcpy::src#2 -- _deref_pbuz1=_deref_pbuz2 + // [979] *strcpy::dst#2 = *strcpy::src#2 -- _deref_pbuz1=_deref_pbuz2 ldy #0 lda (src),y sta (dst),y // *dst++ = *src++; - // [973] strcpy::dst#1 = ++ strcpy::dst#2 -- pbuz1=_inc_pbuz1 + // [980] strcpy::dst#1 = ++ strcpy::dst#2 -- pbuz1=_inc_pbuz1 inc.z dst bne !+ inc.z dst+1 !: - // [974] strcpy::src#1 = ++ strcpy::src#2 -- pbuz1=_inc_pbuz1 + // [981] strcpy::src#1 = ++ strcpy::src#2 -- pbuz1=_inc_pbuz1 inc.z src bne !+ inc.z src+1 @@ -6378,7 +6424,7 @@ strcpy: { cx16_k_i2c_read_byte: { .label return = $2e // unsigned int result - // [975] cx16_k_i2c_read_byte::result = 0 -- vwum1=vwuc1 + // [982] cx16_k_i2c_read_byte::result = 0 -- vwum1=vwuc1 lda #<0 sta result sta result+1 @@ -6391,14 +6437,14 @@ cx16_k_i2c_read_byte: { sta result rol result+1 // return result; - // [977] cx16_k_i2c_read_byte::return#0 = cx16_k_i2c_read_byte::result -- vwuz1=vwum2 + // [984] cx16_k_i2c_read_byte::return#0 = cx16_k_i2c_read_byte::result -- vwuz1=vwum2 sta.z return lda result+1 sta.z return+1 // cx16_k_i2c_read_byte::@return // } - // [978] cx16_k_i2c_read_byte::return#1 = cx16_k_i2c_read_byte::return#0 - // [979] return + // [985] cx16_k_i2c_read_byte::return#1 = cx16_k_i2c_read_byte::return#0 + // [986] return rts .segment Data device: .byte 0 @@ -6412,49 +6458,49 @@ cx16_k_i2c_read_byte: { * * @param version_string The string containing the SMC version filled upon return. */ -// unsigned long smc_get_version_text(__zp($b5) char *version_string, __zp($30) char release, __zp($2d) char major, __zp($64) char minor) +// unsigned long smc_get_version_text(__zp($5d) char *version_string, __zp($30) char release, __zp($2d) char major, __zp($64) char minor) smc_get_version_text: { .label release = $30 .label major = $2d .label minor = $64 - .label version_string = $b5 + .label version_string = $5d // sprintf(version_string, "%u.%u.%u", release, major, minor) - // [981] snprintf_init::s#0 = smc_get_version_text::version_string#2 - // [982] call snprintf_init - // [1123] phi from smc_get_version_text to snprintf_init [phi:smc_get_version_text->snprintf_init] - // [1123] phi snprintf_init::s#26 = snprintf_init::s#0 [phi:smc_get_version_text->snprintf_init#0] -- register_copy + // [988] snprintf_init::s#0 = smc_get_version_text::version_string#2 + // [989] call snprintf_init + // [1133] phi from smc_get_version_text to snprintf_init [phi:smc_get_version_text->snprintf_init] + // [1133] phi snprintf_init::s#26 = snprintf_init::s#0 [phi:smc_get_version_text->snprintf_init#0] -- register_copy jsr snprintf_init // smc_get_version_text::@1 // sprintf(version_string, "%u.%u.%u", release, major, minor) - // [983] printf_uchar::uvalue#1 = smc_get_version_text::release#2 - // [984] call printf_uchar - // [1197] phi from smc_get_version_text::@1 to printf_uchar [phi:smc_get_version_text::@1->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_get_version_text::@1->printf_uchar#0] -- vbuz1=vbuc1 + // [990] printf_uchar::uvalue#1 = smc_get_version_text::release#2 + // [991] call printf_uchar + // [1207] phi from smc_get_version_text::@1 to printf_uchar [phi:smc_get_version_text::@1->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_get_version_text::@1->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:smc_get_version_text::@1->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:smc_get_version_text::@1->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:smc_get_version_text::@1->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:smc_get_version_text::@1->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_get_version_text::@1->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_get_version_text::@1->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#1 [phi:smc_get_version_text::@1->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#1 [phi:smc_get_version_text::@1->printf_uchar#4] -- register_copy jsr printf_uchar - // [985] phi from smc_get_version_text::@1 to smc_get_version_text::@2 [phi:smc_get_version_text::@1->smc_get_version_text::@2] + // [992] phi from smc_get_version_text::@1 to smc_get_version_text::@2 [phi:smc_get_version_text::@1->smc_get_version_text::@2] // smc_get_version_text::@2 // sprintf(version_string, "%u.%u.%u", release, major, minor) - // [986] call printf_str - // [1128] phi from smc_get_version_text::@2 to printf_str [phi:smc_get_version_text::@2->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_get_version_text::@2->printf_str#0] -- pprz1=pprc1 + // [993] call printf_str + // [1138] phi from smc_get_version_text::@2 to printf_str [phi:smc_get_version_text::@2->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_get_version_text::@2->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_get_version_text::s [phi:smc_get_version_text::@2->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_get_version_text::s [phi:smc_get_version_text::@2->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -6462,37 +6508,37 @@ smc_get_version_text: { jsr printf_str // smc_get_version_text::@3 // sprintf(version_string, "%u.%u.%u", release, major, minor) - // [987] printf_uchar::uvalue#2 = smc_get_version_text::major#2 -- vbuz1=vbuz2 + // [994] printf_uchar::uvalue#2 = smc_get_version_text::major#2 -- vbuz1=vbuz2 lda.z major sta.z printf_uchar.uvalue - // [988] call printf_uchar - // [1197] phi from smc_get_version_text::@3 to printf_uchar [phi:smc_get_version_text::@3->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_get_version_text::@3->printf_uchar#0] -- vbuz1=vbuc1 + // [995] call printf_uchar + // [1207] phi from smc_get_version_text::@3 to printf_uchar [phi:smc_get_version_text::@3->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_get_version_text::@3->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:smc_get_version_text::@3->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:smc_get_version_text::@3->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:smc_get_version_text::@3->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:smc_get_version_text::@3->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_get_version_text::@3->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_get_version_text::@3->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#2 [phi:smc_get_version_text::@3->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#2 [phi:smc_get_version_text::@3->printf_uchar#4] -- register_copy jsr printf_uchar - // [989] phi from smc_get_version_text::@3 to smc_get_version_text::@4 [phi:smc_get_version_text::@3->smc_get_version_text::@4] + // [996] phi from smc_get_version_text::@3 to smc_get_version_text::@4 [phi:smc_get_version_text::@3->smc_get_version_text::@4] // smc_get_version_text::@4 // sprintf(version_string, "%u.%u.%u", release, major, minor) - // [990] call printf_str - // [1128] phi from smc_get_version_text::@4 to printf_str [phi:smc_get_version_text::@4->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_get_version_text::@4->printf_str#0] -- pprz1=pprc1 + // [997] call printf_str + // [1138] phi from smc_get_version_text::@4 to printf_str [phi:smc_get_version_text::@4->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_get_version_text::@4->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_get_version_text::s [phi:smc_get_version_text::@4->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_get_version_text::s [phi:smc_get_version_text::@4->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -6500,38 +6546,38 @@ smc_get_version_text: { jsr printf_str // smc_get_version_text::@5 // sprintf(version_string, "%u.%u.%u", release, major, minor) - // [991] printf_uchar::uvalue#3 = smc_get_version_text::minor#2 -- vbuz1=vbuz2 + // [998] printf_uchar::uvalue#3 = smc_get_version_text::minor#2 -- vbuz1=vbuz2 lda.z minor sta.z printf_uchar.uvalue - // [992] call printf_uchar - // [1197] phi from smc_get_version_text::@5 to printf_uchar [phi:smc_get_version_text::@5->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_get_version_text::@5->printf_uchar#0] -- vbuz1=vbuc1 + // [999] call printf_uchar + // [1207] phi from smc_get_version_text::@5 to printf_uchar [phi:smc_get_version_text::@5->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_get_version_text::@5->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:smc_get_version_text::@5->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:smc_get_version_text::@5->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:smc_get_version_text::@5->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:smc_get_version_text::@5->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_get_version_text::@5->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_get_version_text::@5->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#3 [phi:smc_get_version_text::@5->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#3 [phi:smc_get_version_text::@5->printf_uchar#4] -- register_copy jsr printf_uchar // smc_get_version_text::@6 // sprintf(version_string, "%u.%u.%u", release, major, minor) - // [993] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1000] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [994] callexecute snputc -- call_vprc1 + // [1001] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // smc_get_version_text::@return // } - // [996] return + // [1003] return rts .segment Data s: .text "." @@ -6541,20 +6587,20 @@ smc_get_version_text: { // rom_detect rom_detect: { .const bank_set_brom1_bank = 4 - .label rom_detect__3 = $d7 - .label rom_detect__5 = $d7 - .label rom_detect__9 = $cd + .label rom_detect__3 = $fb + .label rom_detect__5 = $fb + .label rom_detect__9 = $d9 .label rom_detect__14 = $bb - .label rom_detect__15 = $d4 - .label rom_detect__18 = $ba - .label rom_detect__21 = $b4 - .label rom_detect__24 = $e9 + .label rom_detect__15 = $37 + .label rom_detect__18 = $b6 + .label rom_detect__21 = $eb + .label rom_detect__24 = $cd .label rom_detect_address = $31 - // [998] phi from rom_detect to rom_detect::@1 [phi:rom_detect->rom_detect::@1] - // [998] phi rom_detect::rom_chip#10 = 0 [phi:rom_detect->rom_detect::@1#0] -- vbum1=vbuc1 + // [1005] phi from rom_detect to rom_detect::@1 [phi:rom_detect->rom_detect::@1] + // [1005] phi rom_detect::rom_chip#10 = 0 [phi:rom_detect->rom_detect::@1#0] -- vbum1=vbuc1 lda #0 sta rom_chip - // [998] phi rom_detect::rom_detect_address#10 = 0 [phi:rom_detect->rom_detect::@1#1] -- vduz1=vduc1 + // [1005] phi rom_detect::rom_detect_address#10 = 0 [phi:rom_detect->rom_detect::@1#1] -- vduz1=vduc1 sta.z rom_detect_address sta.z rom_detect_address+1 lda #<0>>$10 @@ -6566,7 +6612,7 @@ rom_detect: { // rom_detect::@1 __b1: // for (unsigned long rom_detect_address = 0; rom_detect_address < 8 * 0x80000; rom_detect_address += 0x80000) - // [999] if(rom_detect::rom_detect_address#10<8*$80000) goto rom_detect::@2 -- vduz1_lt_vduc1_then_la1 + // [1006] if(rom_detect::rom_detect_address#10<8*$80000) goto rom_detect::@2 -- vduz1_lt_vduc1_then_la1 lda.z rom_detect_address+3 cmp #>8*$80000>>$10 bcc __b2 @@ -6585,20 +6631,20 @@ rom_detect: { !: // rom_detect::@return // } - // [1000] return + // [1007] return rts // rom_detect::@2 __b2: // rom_manufacturer_ids[rom_chip] = 0 - // [1001] rom_manufacturer_ids[rom_detect::rom_chip#10] = 0 -- pbuc1_derefidx_vbum1=vbuc2 + // [1008] rom_manufacturer_ids[rom_detect::rom_chip#10] = 0 -- pbuc1_derefidx_vbum1=vbuc2 lda #0 ldy rom_chip sta rom_manufacturer_ids,y // rom_device_ids[rom_chip] = 0 - // [1002] rom_device_ids[rom_detect::rom_chip#10] = 0 -- pbuc1_derefidx_vbum1=vbuc2 + // [1009] rom_device_ids[rom_detect::rom_chip#10] = 0 -- pbuc1_derefidx_vbum1=vbuc2 sta rom_device_ids,y // rom_unlock(rom_detect_address + 0x05555, 0x90) - // [1003] rom_unlock::address#2 = rom_detect::rom_detect_address#10 + $5555 -- vduz1=vduz2_plus_vwuc1 + // [1010] rom_unlock::address#2 = rom_detect::rom_detect_address#10 + $5555 -- vduz1=vduz2_plus_vwuc1 clc lda.z rom_detect_address adc #<$5555 @@ -6612,16 +6658,16 @@ rom_detect: { lda.z rom_detect_address+3 adc #0 sta.z rom_unlock.address+3 - // [1004] call rom_unlock - // [2141] phi from rom_detect::@2 to rom_unlock [phi:rom_detect::@2->rom_unlock] - // [2141] phi rom_unlock::unlock_code#5 = $90 [phi:rom_detect::@2->rom_unlock#0] -- vbuz1=vbuc1 + // [1011] call rom_unlock + // [2155] phi from rom_detect::@2 to rom_unlock [phi:rom_detect::@2->rom_unlock] + // [2155] phi rom_unlock::unlock_code#5 = $90 [phi:rom_detect::@2->rom_unlock#0] -- vbuz1=vbuc1 lda #$90 sta.z rom_unlock.unlock_code - // [2141] phi rom_unlock::address#5 = rom_unlock::address#2 [phi:rom_detect::@2->rom_unlock#1] -- register_copy + // [2155] phi rom_unlock::address#5 = rom_unlock::address#2 [phi:rom_detect::@2->rom_unlock#1] -- register_copy jsr rom_unlock // rom_detect::@12 // rom_read_byte(rom_detect_address) - // [1005] rom_read_byte::address#0 = rom_detect::rom_detect_address#10 -- vduz1=vduz2 + // [1012] rom_read_byte::address#0 = rom_detect::rom_detect_address#10 -- vduz1=vduz2 lda.z rom_detect_address sta.z rom_read_byte.address lda.z rom_detect_address+1 @@ -6630,21 +6676,21 @@ rom_detect: { sta.z rom_read_byte.address+2 lda.z rom_detect_address+3 sta.z rom_read_byte.address+3 - // [1006] call rom_read_byte - // [2151] phi from rom_detect::@12 to rom_read_byte [phi:rom_detect::@12->rom_read_byte] - // [2151] phi rom_read_byte::address#2 = rom_read_byte::address#0 [phi:rom_detect::@12->rom_read_byte#0] -- register_copy + // [1013] call rom_read_byte + // [2165] phi from rom_detect::@12 to rom_read_byte [phi:rom_detect::@12->rom_read_byte] + // [2165] phi rom_read_byte::address#2 = rom_read_byte::address#0 [phi:rom_detect::@12->rom_read_byte#0] -- register_copy jsr rom_read_byte // rom_read_byte(rom_detect_address) - // [1007] rom_read_byte::return#2 = rom_read_byte::return#0 + // [1014] rom_read_byte::return#2 = rom_read_byte::return#0 // rom_detect::@13 - // [1008] rom_detect::$3 = rom_read_byte::return#2 + // [1015] rom_detect::$3 = rom_read_byte::return#2 // rom_manufacturer_ids[rom_chip] = rom_read_byte(rom_detect_address) - // [1009] rom_manufacturer_ids[rom_detect::rom_chip#10] = rom_detect::$3 -- pbuc1_derefidx_vbum1=vbuz2 + // [1016] rom_manufacturer_ids[rom_detect::rom_chip#10] = rom_detect::$3 -- pbuc1_derefidx_vbum1=vbuz2 lda.z rom_detect__3 ldy rom_chip sta rom_manufacturer_ids,y // rom_read_byte(rom_detect_address + 1) - // [1010] rom_read_byte::address#1 = rom_detect::rom_detect_address#10 + 1 -- vduz1=vduz2_plus_1 + // [1017] rom_read_byte::address#1 = rom_detect::rom_detect_address#10 + 1 -- vduz1=vduz2_plus_1 lda.z rom_detect_address clc adc #1 @@ -6658,21 +6704,21 @@ rom_detect: { lda.z rom_detect_address+3 adc #0 sta.z rom_read_byte.address+3 - // [1011] call rom_read_byte - // [2151] phi from rom_detect::@13 to rom_read_byte [phi:rom_detect::@13->rom_read_byte] - // [2151] phi rom_read_byte::address#2 = rom_read_byte::address#1 [phi:rom_detect::@13->rom_read_byte#0] -- register_copy + // [1018] call rom_read_byte + // [2165] phi from rom_detect::@13 to rom_read_byte [phi:rom_detect::@13->rom_read_byte] + // [2165] phi rom_read_byte::address#2 = rom_read_byte::address#1 [phi:rom_detect::@13->rom_read_byte#0] -- register_copy jsr rom_read_byte // rom_read_byte(rom_detect_address + 1) - // [1012] rom_read_byte::return#3 = rom_read_byte::return#0 + // [1019] rom_read_byte::return#3 = rom_read_byte::return#0 // rom_detect::@14 - // [1013] rom_detect::$5 = rom_read_byte::return#3 + // [1020] rom_detect::$5 = rom_read_byte::return#3 // rom_device_ids[rom_chip] = rom_read_byte(rom_detect_address + 1) - // [1014] rom_device_ids[rom_detect::rom_chip#10] = rom_detect::$5 -- pbuc1_derefidx_vbum1=vbuz2 + // [1021] rom_device_ids[rom_detect::rom_chip#10] = rom_detect::$5 -- pbuc1_derefidx_vbum1=vbuz2 lda.z rom_detect__5 ldy rom_chip sta rom_device_ids,y // rom_unlock(rom_detect_address + 0x05555, 0xF0) - // [1015] rom_unlock::address#3 = rom_detect::rom_detect_address#10 + $5555 -- vduz1=vduz2_plus_vwuc1 + // [1022] rom_unlock::address#3 = rom_detect::rom_detect_address#10 + $5555 -- vduz1=vduz2_plus_vwuc1 clc lda.z rom_detect_address adc #<$5555 @@ -6686,65 +6732,65 @@ rom_detect: { lda.z rom_detect_address+3 adc #0 sta.z rom_unlock.address+3 - // [1016] call rom_unlock - // [2141] phi from rom_detect::@14 to rom_unlock [phi:rom_detect::@14->rom_unlock] - // [2141] phi rom_unlock::unlock_code#5 = $f0 [phi:rom_detect::@14->rom_unlock#0] -- vbuz1=vbuc1 + // [1023] call rom_unlock + // [2155] phi from rom_detect::@14 to rom_unlock [phi:rom_detect::@14->rom_unlock] + // [2155] phi rom_unlock::unlock_code#5 = $f0 [phi:rom_detect::@14->rom_unlock#0] -- vbuz1=vbuc1 lda #$f0 sta.z rom_unlock.unlock_code - // [2141] phi rom_unlock::address#5 = rom_unlock::address#3 [phi:rom_detect::@14->rom_unlock#1] -- register_copy + // [2155] phi rom_unlock::address#5 = rom_unlock::address#3 [phi:rom_detect::@14->rom_unlock#1] -- register_copy jsr rom_unlock // rom_detect::bank_set_brom1 // BROM = bank - // [1017] BROM = rom_detect::bank_set_brom1_bank#0 -- vbuz1=vbuc1 + // [1024] BROM = rom_detect::bank_set_brom1_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom1_bank sta.z BROM // rom_detect::@11 // rom_chip*3 - // [1018] rom_detect::$14 = rom_detect::rom_chip#10 << 1 -- vbuz1=vbum2_rol_1 + // [1025] rom_detect::$14 = rom_detect::rom_chip#10 << 1 -- vbuz1=vbum2_rol_1 lda rom_chip asl sta.z rom_detect__14 - // [1019] rom_detect::$9 = rom_detect::$14 + rom_detect::rom_chip#10 -- vbuz1=vbuz2_plus_vbum3 + // [1026] rom_detect::$9 = rom_detect::$14 + rom_detect::rom_chip#10 -- vbuz1=vbuz2_plus_vbum3 lda rom_chip clc adc.z rom_detect__14 sta.z rom_detect__9 // gotoxy(rom_chip*3+40, 1) - // [1020] gotoxy::x#23 = rom_detect::$9 + $28 -- vbuz1=vbuz2_plus_vbuc1 + // [1027] gotoxy::x#23 = rom_detect::$9 + $28 -- vbuz1=vbuz2_plus_vbuc1 lda #$28 clc adc.z rom_detect__9 sta.z gotoxy.x - // [1021] call gotoxy - // [744] phi from rom_detect::@11 to gotoxy [phi:rom_detect::@11->gotoxy] - // [744] phi gotoxy::y#30 = 1 [phi:rom_detect::@11->gotoxy#0] -- vbuz1=vbuc1 + // [1028] call gotoxy + // [751] phi from rom_detect::@11 to gotoxy [phi:rom_detect::@11->gotoxy] + // [751] phi gotoxy::y#30 = 1 [phi:rom_detect::@11->gotoxy#0] -- vbuz1=vbuc1 lda #1 sta.z gotoxy.y - // [744] phi gotoxy::x#30 = gotoxy::x#23 [phi:rom_detect::@11->gotoxy#1] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#23 [phi:rom_detect::@11->gotoxy#1] -- register_copy jsr gotoxy // rom_detect::@15 // printf("%02x", rom_device_ids[rom_chip]) - // [1022] printf_uchar::uvalue#8 = rom_device_ids[rom_detect::rom_chip#10] -- vbuz1=pbuc1_derefidx_vbum2 + // [1029] printf_uchar::uvalue#8 = rom_device_ids[rom_detect::rom_chip#10] -- vbuz1=pbuc1_derefidx_vbum2 ldy rom_chip lda rom_device_ids,y sta.z printf_uchar.uvalue - // [1023] call printf_uchar - // [1197] phi from rom_detect::@15 to printf_uchar [phi:rom_detect::@15->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_detect::@15->printf_uchar#0] -- vbuz1=vbuc1 + // [1030] call printf_uchar + // [1207] phi from rom_detect::@15 to printf_uchar [phi:rom_detect::@15->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_detect::@15->printf_uchar#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 2 [phi:rom_detect::@15->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 2 [phi:rom_detect::@15->printf_uchar#1] -- vbuz1=vbuc1 lda #2 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &cputc [phi:rom_detect::@15->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &cputc [phi:rom_detect::@15->printf_uchar#2] -- pprz1=pprc1 lda #cputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_detect::@15->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_detect::@15->printf_uchar#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#8 [phi:rom_detect::@15->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#8 [phi:rom_detect::@15->printf_uchar#4] -- register_copy jsr printf_uchar // rom_detect::@16 // case SST39SF010A: @@ -6752,7 +6798,7 @@ rom_detect: { // rom_size_strings[rom_chip] = "128"; // rom_sizes[rom_chip] = 128 * 1024; // break; - // [1024] if(rom_device_ids[rom_detect::rom_chip#10]==$b5) goto rom_detect::@3 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 + // [1031] if(rom_device_ids[rom_detect::rom_chip#10]==$b5) goto rom_detect::@3 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 ldy rom_chip lda rom_device_ids,y cmp #$b5 @@ -6765,7 +6811,7 @@ rom_detect: { // rom_size_strings[rom_chip] = "256"; // rom_sizes[rom_chip] = 256 * 1024; // break; - // [1025] if(rom_device_ids[rom_detect::rom_chip#10]==$b6) goto rom_detect::@4 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 + // [1032] if(rom_device_ids[rom_detect::rom_chip#10]==$b6) goto rom_detect::@4 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 lda rom_device_ids,y cmp #$b6 bne !__b4+ @@ -6777,35 +6823,35 @@ rom_detect: { // rom_size_strings[rom_chip] = "512"; // rom_sizes[rom_chip] = 512 * 1024; // break; - // [1026] if(rom_device_ids[rom_detect::rom_chip#10]==$b7) goto rom_detect::@5 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 + // [1033] if(rom_device_ids[rom_detect::rom_chip#10]==$b7) goto rom_detect::@5 -- pbuc1_derefidx_vbum1_eq_vbuc2_then_la1 lda rom_device_ids,y cmp #$b7 beq __b5 // rom_detect::@6 // rom_manufacturer_ids[rom_chip] = 0 - // [1027] rom_manufacturer_ids[rom_detect::rom_chip#10] = 0 -- pbuc1_derefidx_vbum1=vbuc2 + // [1034] rom_manufacturer_ids[rom_detect::rom_chip#10] = 0 -- pbuc1_derefidx_vbum1=vbuc2 lda #0 sta rom_manufacturer_ids,y // rom_device_names[rom_chip] = "----" - // [1028] rom_device_names[rom_detect::$14] = rom_detect::$31 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1035] rom_device_names[rom_detect::$14] = rom_detect::$31 -- qbuc1_derefidx_vbuz1=pbuc2 ldy.z rom_detect__14 lda #rom_detect__31 sta rom_device_names+1,y // rom_size_strings[rom_chip] = "000" - // [1029] rom_size_strings[rom_detect::$14] = rom_detect::$32 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1036] rom_size_strings[rom_detect::$14] = rom_detect::$32 -- qbuc1_derefidx_vbuz1=pbuc2 lda #rom_detect__32 sta rom_size_strings+1,y // rom_sizes[rom_chip] = 0 - // [1030] rom_detect::$24 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 + // [1037] rom_detect::$24 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 lda rom_chip asl asl sta.z rom_detect__24 - // [1031] rom_sizes[rom_detect::$24] = 0 -- pduc1_derefidx_vbuz1=vbuc2 + // [1038] rom_sizes[rom_detect::$24] = 0 -- pduc1_derefidx_vbuz1=vbuc2 tay lda #0 sta rom_sizes,y @@ -6813,18 +6859,18 @@ rom_detect: { sta rom_sizes+2,y sta rom_sizes+3,y // rom_device_ids[rom_chip] = UNKNOWN - // [1032] rom_device_ids[rom_detect::rom_chip#10] = $55 -- pbuc1_derefidx_vbum1=vbuc2 + // [1039] rom_device_ids[rom_detect::rom_chip#10] = $55 -- pbuc1_derefidx_vbum1=vbuc2 lda #$55 ldy rom_chip sta rom_device_ids,y // rom_detect::@7 __b7: // rom_chip++; - // [1033] rom_detect::rom_chip#1 = ++ rom_detect::rom_chip#10 -- vbum1=_inc_vbum1 + // [1040] rom_detect::rom_chip#1 = ++ rom_detect::rom_chip#10 -- vbum1=_inc_vbum1 inc rom_chip // rom_detect::@8 // rom_detect_address += 0x80000 - // [1034] rom_detect::rom_detect_address#1 = rom_detect::rom_detect_address#10 + $80000 -- vduz1=vduz1_plus_vduc1 + // [1041] rom_detect::rom_detect_address#1 = rom_detect::rom_detect_address#10 + $80000 -- vduz1=vduz1_plus_vduc1 clc lda.z rom_detect_address adc #<$80000 @@ -6838,32 +6884,32 @@ rom_detect: { lda.z rom_detect_address+3 adc #>$80000>>$10 sta.z rom_detect_address+3 - // [998] phi from rom_detect::@8 to rom_detect::@1 [phi:rom_detect::@8->rom_detect::@1] - // [998] phi rom_detect::rom_chip#10 = rom_detect::rom_chip#1 [phi:rom_detect::@8->rom_detect::@1#0] -- register_copy - // [998] phi rom_detect::rom_detect_address#10 = rom_detect::rom_detect_address#1 [phi:rom_detect::@8->rom_detect::@1#1] -- register_copy + // [1005] phi from rom_detect::@8 to rom_detect::@1 [phi:rom_detect::@8->rom_detect::@1] + // [1005] phi rom_detect::rom_chip#10 = rom_detect::rom_chip#1 [phi:rom_detect::@8->rom_detect::@1#0] -- register_copy + // [1005] phi rom_detect::rom_detect_address#10 = rom_detect::rom_detect_address#1 [phi:rom_detect::@8->rom_detect::@1#1] -- register_copy jmp __b1 // rom_detect::@5 __b5: // rom_device_names[rom_chip] = "f040" - // [1035] rom_device_names[rom_detect::$14] = rom_detect::$29 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1042] rom_device_names[rom_detect::$14] = rom_detect::$29 -- qbuc1_derefidx_vbuz1=pbuc2 ldy.z rom_detect__14 lda #rom_detect__29 sta rom_device_names+1,y // rom_size_strings[rom_chip] = "512" - // [1036] rom_size_strings[rom_detect::$14] = rom_detect::$30 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1043] rom_size_strings[rom_detect::$14] = rom_detect::$30 -- qbuc1_derefidx_vbuz1=pbuc2 lda #rom_detect__30 sta rom_size_strings+1,y // rom_sizes[rom_chip] = 512 * 1024 - // [1037] rom_detect::$21 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 + // [1044] rom_detect::$21 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 lda rom_chip asl asl sta.z rom_detect__21 - // [1038] rom_sizes[rom_detect::$21] = (unsigned long)$200*$400 -- pduc1_derefidx_vbuz1=vduc2 + // [1045] rom_sizes[rom_detect::$21] = (unsigned long)$200*$400 -- pduc1_derefidx_vbuz1=vduc2 tay lda #<$200*$400 sta rom_sizes,y @@ -6877,25 +6923,25 @@ rom_detect: { // rom_detect::@4 __b4: // rom_device_names[rom_chip] = "f020a" - // [1039] rom_device_names[rom_detect::$14] = rom_detect::$27 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1046] rom_device_names[rom_detect::$14] = rom_detect::$27 -- qbuc1_derefidx_vbuz1=pbuc2 ldy.z rom_detect__14 lda #rom_detect__27 sta rom_device_names+1,y // rom_size_strings[rom_chip] = "256" - // [1040] rom_size_strings[rom_detect::$14] = rom_detect::$28 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1047] rom_size_strings[rom_detect::$14] = rom_detect::$28 -- qbuc1_derefidx_vbuz1=pbuc2 lda #rom_detect__28 sta rom_size_strings+1,y // rom_sizes[rom_chip] = 256 * 1024 - // [1041] rom_detect::$18 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 + // [1048] rom_detect::$18 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 lda rom_chip asl asl sta.z rom_detect__18 - // [1042] rom_sizes[rom_detect::$18] = (unsigned long)$100*$400 -- pduc1_derefidx_vbuz1=vduc2 + // [1049] rom_sizes[rom_detect::$18] = (unsigned long)$100*$400 -- pduc1_derefidx_vbuz1=vduc2 tay lda #<$100*$400 sta rom_sizes,y @@ -6909,25 +6955,25 @@ rom_detect: { // rom_detect::@3 __b3: // rom_device_names[rom_chip] = "f010a" - // [1043] rom_device_names[rom_detect::$14] = rom_detect::$25 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1050] rom_device_names[rom_detect::$14] = rom_detect::$25 -- qbuc1_derefidx_vbuz1=pbuc2 ldy.z rom_detect__14 lda #rom_detect__25 sta rom_device_names+1,y // rom_size_strings[rom_chip] = "128" - // [1044] rom_size_strings[rom_detect::$14] = rom_detect::$26 -- qbuc1_derefidx_vbuz1=pbuc2 + // [1051] rom_size_strings[rom_detect::$14] = rom_detect::$26 -- qbuc1_derefidx_vbuz1=pbuc2 lda #rom_detect__26 sta rom_size_strings+1,y // rom_sizes[rom_chip] = 128 * 1024 - // [1045] rom_detect::$15 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 + // [1052] rom_detect::$15 = rom_detect::rom_chip#10 << 2 -- vbuz1=vbum2_rol_2 lda rom_chip asl asl sta.z rom_detect__15 - // [1046] rom_sizes[rom_detect::$15] = (unsigned long)$80*$400 -- pduc1_derefidx_vbuz1=vduc2 + // [1053] rom_sizes[rom_detect::$15] = (unsigned long)$80*$400 -- pduc1_derefidx_vbuz1=vduc2 tay lda #<$80*$400 sta rom_sizes,y @@ -6965,69 +7011,69 @@ rom_detect: { * @param text A pointer to an array of strings to be displayed (char**). * @param lines The amount of lines to be displayed, starting from the top of the progress frame. */ -// void display_progress_text(__zp($5a) char **text, __zp($64) char lines) +// void display_progress_text(__zp($5b) char **text, __zp($64) char lines) display_progress_text: { .label display_progress_text__3 = $bb - .label l = $dd + .label l = $df .label lines = $64 - .label text = $5a + .label text = $5b // display_progress_clear() - // [1048] call display_progress_clear - // [852] phi from display_progress_text to display_progress_clear [phi:display_progress_text->display_progress_clear] + // [1055] call display_progress_clear + // [859] phi from display_progress_text to display_progress_clear [phi:display_progress_text->display_progress_clear] jsr display_progress_clear - // [1049] phi from display_progress_text to display_progress_text::@1 [phi:display_progress_text->display_progress_text::@1] - // [1049] phi display_progress_text::l#2 = 0 [phi:display_progress_text->display_progress_text::@1#0] -- vbuz1=vbuc1 + // [1056] phi from display_progress_text to display_progress_text::@1 [phi:display_progress_text->display_progress_text::@1] + // [1056] phi display_progress_text::l#2 = 0 [phi:display_progress_text->display_progress_text::@1#0] -- vbuz1=vbuc1 lda #0 sta.z l // display_progress_text::@1 __b1: // for(unsigned char l=0; ldisplay_progress_text::@1] - // [1049] phi display_progress_text::l#2 = display_progress_text::l#1 [phi:display_progress_text::@3->display_progress_text::@1#0] -- register_copy + // [1056] phi from display_progress_text::@3 to display_progress_text::@1 [phi:display_progress_text::@3->display_progress_text::@1] + // [1056] phi display_progress_text::l#2 = display_progress_text::l#1 [phi:display_progress_text::@3->display_progress_text::@1#0] -- register_copy jmp __b1 } // util_wait_space util_wait_space: { // util_wait_key("Press [SPACE] to continue ...", " ") - // [1058] call util_wait_key - // [1727] phi from util_wait_space to util_wait_key [phi:util_wait_space->util_wait_key] - // [1727] phi util_wait_key::filter#13 = s [phi:util_wait_space->util_wait_key#0] -- pbuz1=pbuc1 + // [1065] call util_wait_key + // [1741] phi from util_wait_space to util_wait_key [phi:util_wait_space->util_wait_key] + // [1741] phi util_wait_key::filter#13 = s [phi:util_wait_space->util_wait_key#0] -- pbuz1=pbuc1 lda #s sta.z util_wait_key.filter+1 - // [1727] phi util_wait_key::info_text#3 = util_wait_space::info_text [phi:util_wait_space->util_wait_key#1] -- pbuz1=pbuc1 + // [1741] phi util_wait_key::info_text#3 = util_wait_space::info_text [phi:util_wait_space->util_wait_key#1] -- pbuz1=pbuc1 lda #info_text @@ -7035,7 +7081,7 @@ util_wait_space: { jsr util_wait_key // util_wait_space::@return // } - // [1059] return + // [1066] return rts .segment Data info_text: .text "Press [SPACE] to continue ..." @@ -7049,436 +7095,470 @@ util_wait_space: { * * @return unsigned int The amount of bytes read from SMC.BIN to be flashed. */ -// __mem() unsigned int smc_read(__mem() char display_progress) +// __zp($ec) unsigned int smc_read(__mem() char info_status) smc_read: { - .label fp = $a9 - .label smc_file_read = $6d - /// Holds the amount of bytes actually read in the memory to be flashed. - .label progress_row_bytes = $ea - // display_action_progress("Reading SMC.BIN ... (.) data, ( ) empty") - // [1061] call display_action_progress - // It is assume that one RAM bank is 0X2000 bytes. - // [838] phi from smc_read to display_action_progress [phi:smc_read->display_action_progress] - // [838] phi display_action_progress::info_text#18 = smc_read::info_text [phi:smc_read->display_action_progress#0] -- pbuz1=pbuc1 - lda #info_text - sta.z display_action_progress.info_text+1 - jsr display_action_progress - // [1062] phi from smc_read to smc_read::@10 [phi:smc_read->smc_read::@10] - // smc_read::@10 + .label fp = $5f + .label return = $ec + .label smc_file_read = $b1 + .label smc_file_size = $ec + // if(info_status == STATUS_READING) + // [1068] if(smc_read::info_status#2==STATUS_READING) goto smc_read::@1 -- vbum1_eq_vbuc1_then_la1 + lda #STATUS_READING + cmp info_status + beq __b1 + // [1070] phi from smc_read to smc_read::@2 [phi:smc_read->smc_read::@2] + // [1070] phi smc_read::smc_action_text#12 = smc_action_text#2 [phi:smc_read->smc_read::@2#0] -- pbum1=pbuc1 + lda #smc_action_text_1 + sta smc_action_text+1 + jmp __b2 + // [1069] phi from smc_read to smc_read::@1 [phi:smc_read->smc_read::@1] + // smc_read::@1 + __b1: + // [1070] phi from smc_read::@1 to smc_read::@2 [phi:smc_read::@1->smc_read::@2] + // [1070] phi smc_read::smc_action_text#12 = smc_action_text#1 [phi:smc_read::@1->smc_read::@2#0] -- pbum1=pbuc1 + lda #smc_action_text + sta smc_action_text+1 + // smc_read::@2 + __b2: // textcolor(WHITE) - // [1063] call textcolor - // [726] phi from smc_read::@10 to textcolor [phi:smc_read::@10->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:smc_read::@10->textcolor#0] -- vbuz1=vbuc1 + // [1071] call textcolor + // It is assume that one RAM bank is 0X2000 bytes. + // [733] phi from smc_read::@2 to textcolor [phi:smc_read::@2->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:smc_read::@2->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor - // [1064] phi from smc_read::@10 to smc_read::@11 [phi:smc_read::@10->smc_read::@11] - // smc_read::@11 + // [1072] phi from smc_read::@2 to smc_read::@12 [phi:smc_read::@2->smc_read::@12] + // smc_read::@12 // gotoxy(x, y) - // [1065] call gotoxy - // [744] phi from smc_read::@11 to gotoxy [phi:smc_read::@11->gotoxy] - // [744] phi gotoxy::y#30 = PROGRESS_Y [phi:smc_read::@11->gotoxy#0] -- vbuz1=vbuc1 + // [1073] call gotoxy + // [751] phi from smc_read::@12 to gotoxy [phi:smc_read::@12->gotoxy] + // [751] phi gotoxy::y#30 = PROGRESS_Y [phi:smc_read::@12->gotoxy#0] -- vbuz1=vbuc1 lda #PROGRESS_Y sta.z gotoxy.y - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:smc_read::@11->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:smc_read::@12->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1066] phi from smc_read::@11 to smc_read::@12 [phi:smc_read::@11->smc_read::@12] - // smc_read::@12 + // [1074] phi from smc_read::@12 to smc_read::@13 [phi:smc_read::@12->smc_read::@13] + // smc_read::@13 // FILE *fp = fopen("SMC.BIN", "r") - // [1067] call fopen - // [2167] phi from smc_read::@12 to fopen [phi:smc_read::@12->fopen] - // [2167] phi __errno#299 = __errno#35 [phi:smc_read::@12->fopen#0] -- register_copy - // [2167] phi fopen::pathtoken#0 = smc_read::path [phi:smc_read::@12->fopen#1] -- pbuz1=pbuc1 + // [1075] call fopen + // [2181] phi from smc_read::@13 to fopen [phi:smc_read::@13->fopen] + // [2181] phi __errno#302 = __errno#35 [phi:smc_read::@13->fopen#0] -- register_copy + // [2181] phi fopen::pathtoken#0 = smc_read::path [phi:smc_read::@13->fopen#1] -- pbuz1=pbuc1 lda #path sta.z fopen.pathtoken+1 jsr fopen // FILE *fp = fopen("SMC.BIN", "r") - // [1068] fopen::return#3 = fopen::return#2 - // smc_read::@13 - // [1069] smc_read::fp#0 = fopen::return#3 -- pssz1=pssz2 + // [1076] fopen::return#3 = fopen::return#2 + // smc_read::@14 + // [1077] smc_read::fp#0 = fopen::return#3 -- pssz1=pssz2 lda.z fopen.return sta.z fp lda.z fopen.return+1 sta.z fp+1 // if (fp) - // [1070] if((struct $2 *)0==smc_read::fp#0) goto smc_read::@1 -- pssc1_eq_pssz1_then_la1 + // [1078] if((struct $2 *)0==smc_read::fp#0) goto smc_read::@3 -- pssc1_eq_pssz1_then_la1 lda.z fp cmp #<0 bne !+ lda.z fp+1 cmp #>0 - beq __b2 + beq __b4 !: - // smc_read::@2 + // smc_read::@4 // fgets(smc_file_header, 32, fp) - // [1071] fgets::stream#0 = smc_read::fp#0 -- pssz1=pssz2 + // [1079] fgets::stream#0 = smc_read::fp#0 -- pssz1=pssz2 lda.z fp sta.z fgets.stream lda.z fp+1 sta.z fgets.stream+1 - // [1072] call fgets - // [2248] phi from smc_read::@2 to fgets [phi:smc_read::@2->fgets] - // [2248] phi fgets::ptr#13 = smc_file_header [phi:smc_read::@2->fgets#0] -- pbuz1=pbuc1 + // [1080] call fgets + // [2262] phi from smc_read::@4 to fgets [phi:smc_read::@4->fgets] + // [2262] phi fgets::ptr#13 = smc_file_header [phi:smc_read::@4->fgets#0] -- pbuz1=pbuc1 lda #smc_file_header sta.z fgets.ptr+1 - // [2248] phi fgets::size#11 = $20 [phi:smc_read::@2->fgets#1] -- vwuz1=vbuc1 + // [2262] phi fgets::size#11 = $20 [phi:smc_read::@4->fgets#1] -- vwuz1=vbuc1 lda #<$20 sta.z fgets.size lda #>$20 sta.z fgets.size+1 - // [2248] phi fgets::stream#3 = fgets::stream#0 [phi:smc_read::@2->fgets#2] -- register_copy + // [2262] phi fgets::stream#3 = fgets::stream#0 [phi:smc_read::@4->fgets#2] -- register_copy jsr fgets // fgets(smc_file_header, 32, fp) - // [1073] fgets::return#5 = fgets::return#1 - // smc_read::@14 + // [1081] fgets::return#5 = fgets::return#1 + // smc_read::@15 // smc_file_read = fgets(smc_file_header, 32, fp) - // [1074] smc_read::smc_file_read#1 = fgets::return#5 + // [1082] smc_read::smc_file_read#1 = fgets::return#5 // if(smc_file_read) - // [1075] if(0==smc_read::smc_file_read#1) goto smc_read::@1 -- 0_eq_vwuz1_then_la1 + // [1083] if(0==smc_read::smc_file_read#1) goto smc_read::@3 -- 0_eq_vwuz1_then_la1 lda.z smc_file_read ora.z smc_file_read+1 - beq __b2 - // [1076] phi from smc_read::@14 to smc_read::@3 [phi:smc_read::@14->smc_read::@3] - // [1076] phi smc_read::y#10 = PROGRESS_Y [phi:smc_read::@14->smc_read::@3#0] -- vbum1=vbuc1 + beq __b4 + // [1084] phi from smc_read::@15 to smc_read::@5 [phi:smc_read::@15->smc_read::@5] + // [1084] phi smc_read::y#10 = PROGRESS_Y [phi:smc_read::@15->smc_read::@5#0] -- vbum1=vbuc1 lda #PROGRESS_Y sta y - // [1076] phi smc_read::progress_row_bytes#10 = 0 [phi:smc_read::@14->smc_read::@3#1] -- vwuz1=vwuc1 + // [1084] phi smc_read::progress_row_bytes#10 = 0 [phi:smc_read::@15->smc_read::@5#1] -- vwum1=vwuc1 lda #<0 - sta.z progress_row_bytes - sta.z progress_row_bytes+1 - // [1076] phi smc_read::smc_file_size#10 = 0 [phi:smc_read::@14->smc_read::@3#2] -- vwum1=vwuc1 - sta smc_file_size - sta smc_file_size+1 - // [1076] phi smc_read::ram_ptr#10 = (char *)$7800 [phi:smc_read::@14->smc_read::@3#3] -- pbum1=pbuc1 + sta progress_row_bytes + sta progress_row_bytes+1 + // [1084] phi smc_read::smc_file_size#10 = 0 [phi:smc_read::@15->smc_read::@5#2] -- vwuz1=vwuc1 + sta.z smc_file_size + sta.z smc_file_size+1 + // [1084] phi smc_read::ram_ptr#10 = (char *)$7800 [phi:smc_read::@15->smc_read::@5#3] -- pbum1=pbuc1 lda #<$7800 sta ram_ptr lda #>$7800 sta ram_ptr+1 // We read block_size bytes at a time, and each block_size bytes we plot a dot. // Every r bytes we move to the next line. - // smc_read::@3 - __b3: + // smc_read::@5 + __b5: // fgets(ram_ptr, SMC_PROGRESS_CELL, fp) - // [1077] fgets::ptr#3 = smc_read::ram_ptr#10 -- pbuz1=pbum2 + // [1085] fgets::ptr#3 = smc_read::ram_ptr#10 -- pbuz1=pbum2 lda ram_ptr sta.z fgets.ptr lda ram_ptr+1 sta.z fgets.ptr+1 - // [1078] fgets::stream#1 = smc_read::fp#0 -- pssz1=pssz2 + // [1086] fgets::stream#1 = smc_read::fp#0 -- pssz1=pssz2 lda.z fp sta.z fgets.stream lda.z fp+1 sta.z fgets.stream+1 - // [1079] call fgets - // [2248] phi from smc_read::@3 to fgets [phi:smc_read::@3->fgets] - // [2248] phi fgets::ptr#13 = fgets::ptr#3 [phi:smc_read::@3->fgets#0] -- register_copy - // [2248] phi fgets::size#11 = SMC_PROGRESS_CELL [phi:smc_read::@3->fgets#1] -- vwuz1=vbuc1 + // [1087] call fgets + // [2262] phi from smc_read::@5 to fgets [phi:smc_read::@5->fgets] + // [2262] phi fgets::ptr#13 = fgets::ptr#3 [phi:smc_read::@5->fgets#0] -- register_copy + // [2262] phi fgets::size#11 = SMC_PROGRESS_CELL [phi:smc_read::@5->fgets#1] -- vwuz1=vbuc1 lda #SMC_PROGRESS_CELL sta.z fgets.size+1 - // [2248] phi fgets::stream#3 = fgets::stream#1 [phi:smc_read::@3->fgets#2] -- register_copy + // [2262] phi fgets::stream#3 = fgets::stream#1 [phi:smc_read::@5->fgets#2] -- register_copy jsr fgets // fgets(ram_ptr, SMC_PROGRESS_CELL, fp) - // [1080] fgets::return#10 = fgets::return#1 - // smc_read::@15 + // [1088] fgets::return#10 = fgets::return#1 + // smc_read::@16 // smc_file_read = fgets(ram_ptr, SMC_PROGRESS_CELL, fp) - // [1081] smc_read::smc_file_read#10 = fgets::return#10 + // [1089] smc_read::smc_file_read#10 = fgets::return#10 // while (smc_file_read = fgets(ram_ptr, SMC_PROGRESS_CELL, fp)) - // [1082] if(0!=smc_read::smc_file_read#10) goto smc_read::@4 -- 0_neq_vwuz1_then_la1 + // [1090] if(0!=smc_read::smc_file_read#10) goto smc_read::@6 -- 0_neq_vwuz1_then_la1 lda.z smc_file_read ora.z smc_file_read+1 - bne __b4 - // smc_read::@5 + bne __b6 + // smc_read::@7 // fclose(fp) - // [1083] fclose::stream#0 = smc_read::fp#0 - // [1084] call fclose - // [2302] phi from smc_read::@5 to fclose [phi:smc_read::@5->fclose] - // [2302] phi fclose::stream#2 = fclose::stream#0 [phi:smc_read::@5->fclose#0] -- register_copy + // [1091] fclose::stream#0 = smc_read::fp#0 + // [1092] call fclose + // [2316] phi from smc_read::@7 to fclose [phi:smc_read::@7->fclose] + // [2316] phi fclose::stream#2 = fclose::stream#0 [phi:smc_read::@7->fclose#0] -- register_copy jsr fclose - // [1085] phi from smc_read::@5 to smc_read::@1 [phi:smc_read::@5->smc_read::@1] - // [1085] phi smc_read::return#0 = smc_read::smc_file_size#10 [phi:smc_read::@5->smc_read::@1#0] -- register_copy + // [1093] phi from smc_read::@7 to smc_read::@3 [phi:smc_read::@7->smc_read::@3] + // [1093] phi smc_read::return#0 = smc_read::smc_file_size#10 [phi:smc_read::@7->smc_read::@3#0] -- register_copy rts - // [1085] phi from smc_read::@13 smc_read::@14 to smc_read::@1 [phi:smc_read::@13/smc_read::@14->smc_read::@1] - __b2: - // [1085] phi smc_read::return#0 = 0 [phi:smc_read::@13/smc_read::@14->smc_read::@1#0] -- vwum1=vwuc1 + // [1093] phi from smc_read::@14 smc_read::@15 to smc_read::@3 [phi:smc_read::@14/smc_read::@15->smc_read::@3] + __b4: + // [1093] phi smc_read::return#0 = 0 [phi:smc_read::@14/smc_read::@15->smc_read::@3#0] -- vwuz1=vwuc1 lda #<0 - sta return - sta return+1 - // smc_read::@1 + sta.z return + sta.z return+1 + // smc_read::@3 // smc_read::@return // } - // [1086] return + // [1094] return rts - // [1087] phi from smc_read::@15 to smc_read::@4 [phi:smc_read::@15->smc_read::@4] - // smc_read::@4 - __b4: - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1088] call snprintf_init - // [1123] phi from smc_read::@4 to snprintf_init [phi:smc_read::@4->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:smc_read::@4->snprintf_init#0] -- pbuz1=pbuc1 - lda #<@info_text + // [1095] phi from smc_read::@16 to smc_read::@6 [phi:smc_read::@16->smc_read::@6] + // smc_read::@6 + __b6: + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1096] call snprintf_init + // [1133] phi from smc_read::@6 to snprintf_init [phi:smc_read::@6->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:smc_read::@6->snprintf_init#0] -- pbuz1=pbuc1 + lda #@info_text + lda #>info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1089] phi from smc_read::@4 to smc_read::@16 [phi:smc_read::@4->smc_read::@16] - // smc_read::@16 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1090] call printf_str - // [1128] phi from smc_read::@16 to printf_str [phi:smc_read::@16->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_read::@16->printf_str#0] -- pprz1=pprc1 + // smc_read::@17 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1097] printf_string::str#12 = smc_read::smc_action_text#12 -- pbuz1=pbum2 + lda smc_action_text + sta.z printf_string.str + lda smc_action_text+1 + sta.z printf_string.str+1 + // [1098] call printf_string + // [1147] phi from smc_read::@17 to printf_string [phi:smc_read::@17->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:smc_read::@17->printf_string#0] -- pprz1=pprc1 + lda #snputc + sta.z printf_string.putc+1 + // [1147] phi printf_string::str#24 = printf_string::str#12 [phi:smc_read::@17->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:smc_read::@17->printf_string#2] -- vbuz1=vbuc1 + lda #0 + sta.z printf_string.format_justify_left + // [1147] phi printf_string::format_min_length#24 = 0 [phi:smc_read::@17->printf_string#3] -- vbuz1=vbuc1 + sta.z printf_string.format_min_length + jsr printf_string + // [1099] phi from smc_read::@17 to smc_read::@18 [phi:smc_read::@17->smc_read::@18] + // smc_read::@18 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1100] call printf_str + // [1138] phi from smc_read::@18 to printf_str [phi:smc_read::@18->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_read::@18->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_read::s [phi:smc_read::@16->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_read::s [phi:smc_read::@18->printf_str#1] -- pbuz1=pbuc1 lda #s sta.z printf_str.s+1 jsr printf_str - // smc_read::@17 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1091] printf_uint::uvalue#1 = smc_read::smc_file_read#10 -- vwuz1=vwuz2 + // smc_read::@19 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1101] printf_uint::uvalue#1 = smc_read::smc_file_read#10 -- vwuz1=vwuz2 lda.z smc_file_read sta.z printf_uint.uvalue lda.z smc_file_read+1 sta.z printf_uint.uvalue+1 - // [1092] call printf_uint - // [1825] phi from smc_read::@17 to printf_uint [phi:smc_read::@17->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@17->printf_uint#0] -- vbuz1=vbuc1 + // [1102] call printf_uint + // [1839] phi from smc_read::@19 to printf_uint [phi:smc_read::@19->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@19->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 5 [phi:smc_read::@17->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 5 [phi:smc_read::@19->printf_uint#1] -- vbuz1=vbuc1 lda #5 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_read::@17->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_read::@19->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@17->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@19->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#1 [phi:smc_read::@17->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#1 [phi:smc_read::@19->printf_uint#4] -- register_copy jsr printf_uint - // [1093] phi from smc_read::@17 to smc_read::@18 [phi:smc_read::@17->smc_read::@18] - // smc_read::@18 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1094] call printf_str - // [1128] phi from smc_read::@18 to printf_str [phi:smc_read::@18->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_read::@18->printf_str#0] -- pprz1=pprc1 + // [1103] phi from smc_read::@19 to smc_read::@20 [phi:smc_read::@19->smc_read::@20] + // smc_read::@20 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1104] call printf_str + // [1138] phi from smc_read::@20 to printf_str [phi:smc_read::@20->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_read::@20->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s1 [phi:smc_read::@18->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s1 [phi:smc_read::@20->printf_str#1] -- pbuz1=pbuc1 lda #s1 sta.z printf_str.s+1 jsr printf_str - // smc_read::@19 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1095] printf_uint::uvalue#2 = smc_read::smc_file_size#10 -- vwuz1=vwum2 - lda smc_file_size + // smc_read::@21 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1105] printf_uint::uvalue#2 = smc_read::smc_file_size#10 -- vwuz1=vwuz2 + lda.z smc_file_size sta.z printf_uint.uvalue - lda smc_file_size+1 + lda.z smc_file_size+1 sta.z printf_uint.uvalue+1 - // [1096] call printf_uint - // [1825] phi from smc_read::@19 to printf_uint [phi:smc_read::@19->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@19->printf_uint#0] -- vbuz1=vbuc1 + // [1106] call printf_uint + // [1839] phi from smc_read::@21 to printf_uint [phi:smc_read::@21->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@21->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 5 [phi:smc_read::@19->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 5 [phi:smc_read::@21->printf_uint#1] -- vbuz1=vbuc1 lda #5 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_read::@19->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_read::@21->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@19->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@21->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#2 [phi:smc_read::@19->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#2 [phi:smc_read::@21->printf_uint#4] -- register_copy jsr printf_uint - // [1097] phi from smc_read::@19 to smc_read::@20 [phi:smc_read::@19->smc_read::@20] - // smc_read::@20 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1098] call printf_str - // [1128] phi from smc_read::@20 to printf_str [phi:smc_read::@20->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_read::@20->printf_str#0] -- pprz1=pprc1 + // [1107] phi from smc_read::@21 to smc_read::@22 [phi:smc_read::@21->smc_read::@22] + // smc_read::@22 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1108] call printf_str + // [1138] phi from smc_read::@22 to printf_str [phi:smc_read::@22->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_read::@22->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s2 [phi:smc_read::@20->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s2 [phi:smc_read::@22->printf_str#1] -- pbuz1=pbuc1 lda #s2 sta.z printf_str.s+1 jsr printf_str - // [1099] phi from smc_read::@20 to smc_read::@21 [phi:smc_read::@20->smc_read::@21] - // smc_read::@21 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1100] call printf_uint - // [1825] phi from smc_read::@21 to printf_uint [phi:smc_read::@21->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@21->printf_uint#0] -- vbuz1=vbuc1 + // [1109] phi from smc_read::@22 to smc_read::@23 [phi:smc_read::@22->smc_read::@23] + // smc_read::@23 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1110] call printf_uint + // [1839] phi from smc_read::@23 to printf_uint [phi:smc_read::@23->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@23->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 2 [phi:smc_read::@21->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 2 [phi:smc_read::@23->printf_uint#1] -- vbuz1=vbuc1 lda #2 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_read::@21->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_read::@23->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@21->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@23->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = 0 [phi:smc_read::@21->printf_uint#4] -- vwuz1=vbuc1 + // [1839] phi printf_uint::uvalue#14 = 0 [phi:smc_read::@23->printf_uint#4] -- vwuz1=vbuc1 lda #<0 sta.z printf_uint.uvalue sta.z printf_uint.uvalue+1 jsr printf_uint - // [1101] phi from smc_read::@21 to smc_read::@22 [phi:smc_read::@21->smc_read::@22] - // smc_read::@22 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1102] call printf_str - // [1128] phi from smc_read::@22 to printf_str [phi:smc_read::@22->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_read::@22->printf_str#0] -- pprz1=pprc1 + // [1111] phi from smc_read::@23 to smc_read::@24 [phi:smc_read::@23->smc_read::@24] + // smc_read::@24 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1112] call printf_str + // [1138] phi from smc_read::@24 to printf_str [phi:smc_read::@24->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_read::@24->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s3 [phi:smc_read::@22->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s3 [phi:smc_read::@24->printf_str#1] -- pbuz1=pbuc1 lda #s3 sta.z printf_str.s+1 jsr printf_str - // smc_read::@23 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1103] printf_uint::uvalue#4 = (unsigned int)smc_read::ram_ptr#10 -- vwuz1=vwum2 + // smc_read::@25 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1113] printf_uint::uvalue#4 = (unsigned int)smc_read::ram_ptr#10 -- vwuz1=vwum2 lda ram_ptr sta.z printf_uint.uvalue lda ram_ptr+1 sta.z printf_uint.uvalue+1 - // [1104] call printf_uint - // [1825] phi from smc_read::@23 to printf_uint [phi:smc_read::@23->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@23->printf_uint#0] -- vbuz1=vbuc1 + // [1114] call printf_uint + // [1839] phi from smc_read::@25 to printf_uint [phi:smc_read::@25->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_read::@25->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 4 [phi:smc_read::@23->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 4 [phi:smc_read::@25->printf_uint#1] -- vbuz1=vbuc1 lda #4 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_read::@23->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_read::@25->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@23->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_read::@25->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#4 [phi:smc_read::@23->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#4 [phi:smc_read::@25->printf_uint#4] -- register_copy jsr printf_uint - // [1105] phi from smc_read::@23 to smc_read::@24 [phi:smc_read::@23->smc_read::@24] - // smc_read::@24 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1106] call printf_str - // [1128] phi from smc_read::@24 to printf_str [phi:smc_read::@24->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_read::@24->printf_str#0] -- pprz1=pprc1 + // [1115] phi from smc_read::@25 to smc_read::@26 [phi:smc_read::@25->smc_read::@26] + // smc_read::@26 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1116] call printf_str + // [1138] phi from smc_read::@26 to printf_str [phi:smc_read::@26->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_read::@26->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s4 [phi:smc_read::@24->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s4 [phi:smc_read::@26->printf_str#1] -- pbuz1=pbuc1 lda #s4 sta.z printf_str.s+1 jsr printf_str - // smc_read::@25 - // sprintf(info_text, "Reading SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_file_read, smc_file_size, 0, ram_ptr) - // [1107] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // smc_read::@27 + // sprintf(info_text, "%s SMC.BIN:%05x/%05x -> RAM:%02x:%04p ...", smc_action_text, smc_file_read, smc_file_size, 0, ram_ptr) + // [1117] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1108] callexecute snputc -- call_vprc1 + // [1118] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1110] call display_action_text - // [1208] phi from smc_read::@25 to display_action_text [phi:smc_read::@25->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:smc_read::@25->display_action_text#0] -- pbuz1=pbuc1 - lda #<@info_text + // [1120] call display_action_text + // [1218] phi from smc_read::@27 to display_action_text [phi:smc_read::@27->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:smc_read::@27->display_action_text#0] -- pbuz1=pbuc1 + lda #@info_text + lda #>info_text sta.z display_action_text.info_text+1 jsr display_action_text - // smc_read::@26 + // smc_read::@28 // if (progress_row_bytes == SMC_PROGRESS_ROW) - // [1111] if(smc_read::progress_row_bytes#10!=SMC_PROGRESS_ROW) goto smc_read::@6 -- vwuz1_neq_vwuc1_then_la1 - lda.z progress_row_bytes+1 + // [1121] if(smc_read::progress_row_bytes#10!=SMC_PROGRESS_ROW) goto smc_read::@8 -- vwum1_neq_vwuc1_then_la1 + lda progress_row_bytes+1 cmp #>SMC_PROGRESS_ROW - bne __b6 - lda.z progress_row_bytes + bne __b8 + lda progress_row_bytes cmp #gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#20 [phi:smc_read::@8->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:smc_read::@8->gotoxy#1] -- vbuz1=vbuc1 + // [1124] call gotoxy + // [751] phi from smc_read::@10 to gotoxy [phi:smc_read::@10->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#20 [phi:smc_read::@10->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:smc_read::@10->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1115] phi from smc_read::@8 to smc_read::@6 [phi:smc_read::@8->smc_read::@6] - // [1115] phi smc_read::y#20 = smc_read::y#1 [phi:smc_read::@8->smc_read::@6#0] -- register_copy - // [1115] phi smc_read::progress_row_bytes#4 = 0 [phi:smc_read::@8->smc_read::@6#1] -- vwuz1=vbuc1 + // [1125] phi from smc_read::@10 to smc_read::@8 [phi:smc_read::@10->smc_read::@8] + // [1125] phi smc_read::y#22 = smc_read::y#1 [phi:smc_read::@10->smc_read::@8#0] -- register_copy + // [1125] phi smc_read::progress_row_bytes#4 = 0 [phi:smc_read::@10->smc_read::@8#1] -- vwum1=vbuc1 lda #<0 - sta.z progress_row_bytes - sta.z progress_row_bytes+1 - // [1115] phi from smc_read::@26 to smc_read::@6 [phi:smc_read::@26->smc_read::@6] - // [1115] phi smc_read::y#20 = smc_read::y#10 [phi:smc_read::@26->smc_read::@6#0] -- register_copy - // [1115] phi smc_read::progress_row_bytes#4 = smc_read::progress_row_bytes#10 [phi:smc_read::@26->smc_read::@6#1] -- register_copy - // smc_read::@6 - __b6: - // if(display_progress) - // [1116] if(0==smc_read::display_progress#19) goto smc_read::@7 -- 0_eq_vbum1_then_la1 - lda display_progress - beq __b7 - // smc_read::@9 + sta progress_row_bytes + sta progress_row_bytes+1 + // [1125] phi from smc_read::@28 to smc_read::@8 [phi:smc_read::@28->smc_read::@8] + // [1125] phi smc_read::y#22 = smc_read::y#10 [phi:smc_read::@28->smc_read::@8#0] -- register_copy + // [1125] phi smc_read::progress_row_bytes#4 = smc_read::progress_row_bytes#10 [phi:smc_read::@28->smc_read::@8#1] -- register_copy + // smc_read::@8 + __b8: + // if(info_status == STATUS_READING) + // [1126] if(smc_read::info_status#2!=STATUS_READING) goto smc_read::@9 -- vbum1_neq_vbuc1_then_la1 + lda #STATUS_READING + cmp info_status + bne __b9 + // smc_read::@11 // cputc('.') - // [1117] stackpush(char) = '.' -- _stackpushbyte_=vbuc1 + // [1127] stackpush(char) = '.' -- _stackpushbyte_=vbuc1 lda #'.' pha - // [1118] callexecute cputc -- call_vprc1 + // [1128] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla - // smc_read::@7 - __b7: + // smc_read::@9 + __b9: // ram_ptr += smc_file_read - // [1120] smc_read::ram_ptr#1 = smc_read::ram_ptr#10 + smc_read::smc_file_read#10 -- pbum1=pbum1_plus_vwuz2 + // [1130] smc_read::ram_ptr#1 = smc_read::ram_ptr#10 + smc_read::smc_file_read#10 -- pbum1=pbum1_plus_vwuz2 clc lda ram_ptr adc.z smc_file_read @@ -7487,105 +7567,104 @@ smc_read: { adc.z smc_file_read+1 sta ram_ptr+1 // smc_file_size += smc_file_read - // [1121] smc_read::smc_file_size#1 = smc_read::smc_file_size#10 + smc_read::smc_file_read#10 -- vwum1=vwum1_plus_vwuz2 + // [1131] smc_read::smc_file_size#1 = smc_read::smc_file_size#10 + smc_read::smc_file_read#10 -- vwuz1=vwuz1_plus_vwuz2 clc - lda smc_file_size + lda.z smc_file_size adc.z smc_file_read - sta smc_file_size - lda smc_file_size+1 + sta.z smc_file_size + lda.z smc_file_size+1 adc.z smc_file_read+1 - sta smc_file_size+1 + sta.z smc_file_size+1 // progress_row_bytes += smc_file_read - // [1122] smc_read::progress_row_bytes#2 = smc_read::progress_row_bytes#4 + smc_read::smc_file_read#10 -- vwuz1=vwuz1_plus_vwuz2 + // [1132] smc_read::progress_row_bytes#2 = smc_read::progress_row_bytes#4 + smc_read::smc_file_read#10 -- vwum1=vwum1_plus_vwuz2 clc - lda.z progress_row_bytes + lda progress_row_bytes adc.z smc_file_read - sta.z progress_row_bytes - lda.z progress_row_bytes+1 + sta progress_row_bytes + lda progress_row_bytes+1 adc.z smc_file_read+1 - sta.z progress_row_bytes+1 - // [1076] phi from smc_read::@7 to smc_read::@3 [phi:smc_read::@7->smc_read::@3] - // [1076] phi smc_read::y#10 = smc_read::y#20 [phi:smc_read::@7->smc_read::@3#0] -- register_copy - // [1076] phi smc_read::progress_row_bytes#10 = smc_read::progress_row_bytes#2 [phi:smc_read::@7->smc_read::@3#1] -- register_copy - // [1076] phi smc_read::smc_file_size#10 = smc_read::smc_file_size#1 [phi:smc_read::@7->smc_read::@3#2] -- register_copy - // [1076] phi smc_read::ram_ptr#10 = smc_read::ram_ptr#1 [phi:smc_read::@7->smc_read::@3#3] -- register_copy - jmp __b3 + sta progress_row_bytes+1 + // [1084] phi from smc_read::@9 to smc_read::@5 [phi:smc_read::@9->smc_read::@5] + // [1084] phi smc_read::y#10 = smc_read::y#22 [phi:smc_read::@9->smc_read::@5#0] -- register_copy + // [1084] phi smc_read::progress_row_bytes#10 = smc_read::progress_row_bytes#2 [phi:smc_read::@9->smc_read::@5#1] -- register_copy + // [1084] phi smc_read::smc_file_size#10 = smc_read::smc_file_size#1 [phi:smc_read::@9->smc_read::@5#2] -- register_copy + // [1084] phi smc_read::ram_ptr#10 = smc_read::ram_ptr#1 [phi:smc_read::@9->smc_read::@5#3] -- register_copy + jmp __b5 .segment Data - info_text: .text "Reading SMC.BIN ... (.) data, ( ) empty" - .byte 0 path: .text "SMC.BIN" .byte 0 - s: .text "Reading SMC.BIN:" + s: .text " SMC.BIN:" .byte 0 - .label return = smc_flash.smc_package_flashed .label y = check_status_roms_less.return - .label ram_ptr = wait_moment.i - .label smc_file_size = smc_flash.smc_package_flashed - .label display_progress = main.check_status_smc2_main__0 + .label ram_ptr = smc_flash.smc_package_flashed + /// Holds the amount of bytes actually read in the memory to be flashed. + .label progress_row_bytes = clrscr.ch + .label info_status = main.check_status_smc2_main__0 + .label smc_action_text = wait_moment.i } .segment Code // snprintf_init /// Initialize the snprintf() state -// void snprintf_init(__zp($b5) char *s, unsigned int n) +// void snprintf_init(__zp($5d) char *s, unsigned int n) snprintf_init: { - .label s = $b5 + .label s = $5d // __snprintf_capacity = n - // [1124] __snprintf_capacity = $ffff -- vwum1=vwuc1 + // [1134] __snprintf_capacity = $ffff -- vwum1=vwuc1 lda #<$ffff sta __snprintf_capacity lda #>$ffff sta __snprintf_capacity+1 // __snprintf_size = 0 - // [1125] __snprintf_size = 0 -- vwum1=vbuc1 + // [1135] __snprintf_size = 0 -- vwum1=vbuc1 lda #<0 sta __snprintf_size sta __snprintf_size+1 // __snprintf_buffer = s - // [1126] __snprintf_buffer = snprintf_init::s#26 -- pbum1=pbuz2 + // [1136] __snprintf_buffer = snprintf_init::s#26 -- pbum1=pbuz2 lda.z s sta __snprintf_buffer lda.z s+1 sta __snprintf_buffer+1 // snprintf_init::@return // } - // [1127] return + // [1137] return rts } // printf_str /// Print a NUL-terminated string -// void printf_str(__zp($5a) void (*putc)(char), __zp($5d) const char *s) +// void printf_str(__zp($5b) void (*putc)(char), __zp($af) const char *s) printf_str: { - .label c = $36 - .label s = $5d - .label putc = $5a - // [1129] phi from printf_str printf_str::@2 to printf_str::@1 [phi:printf_str/printf_str::@2->printf_str::@1] - // [1129] phi printf_str::s#70 = printf_str::s#71 [phi:printf_str/printf_str::@2->printf_str::@1#0] -- register_copy + .label c = $53 + .label s = $af + .label putc = $5b + // [1139] phi from printf_str printf_str::@2 to printf_str::@1 [phi:printf_str/printf_str::@2->printf_str::@1] + // [1139] phi printf_str::s#70 = printf_str::s#71 [phi:printf_str/printf_str::@2->printf_str::@1#0] -- register_copy // printf_str::@1 __b1: // while(c=*s++) - // [1130] printf_str::c#1 = *printf_str::s#70 -- vbuz1=_deref_pbuz2 + // [1140] printf_str::c#1 = *printf_str::s#70 -- vbuz1=_deref_pbuz2 ldy #0 lda (s),y sta.z c - // [1131] printf_str::s#0 = ++ printf_str::s#70 -- pbuz1=_inc_pbuz1 + // [1141] printf_str::s#0 = ++ printf_str::s#70 -- pbuz1=_inc_pbuz1 inc.z s bne !+ inc.z s+1 !: - // [1132] if(0!=printf_str::c#1) goto printf_str::@2 -- 0_neq_vbuz1_then_la1 + // [1142] if(0!=printf_str::c#1) goto printf_str::@2 -- 0_neq_vbuz1_then_la1 lda.z c bne __b2 // printf_str::@return // } - // [1133] return + // [1143] return rts // printf_str::@2 __b2: // putc(c) - // [1134] stackpush(char) = printf_str::c#1 -- _stackpushbyte_=vbuz1 + // [1144] stackpush(char) = printf_str::c#1 -- _stackpushbyte_=vbuz1 lda.z c pha - // [1135] callexecute *printf_str::putc#71 -- call__deref_pprz1 + // [1145] callexecute *printf_str::putc#71 -- call__deref_pprz1 jsr icall16 // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla @@ -7597,65 +7676,65 @@ printf_str: { // printf_string // Print a string value using a specific format // Handles justification and min length -// void printf_string(__zp($5f) void (*putc)(char), __zp($5d) char *str, __zp($dd) char format_min_length, __zp($5c) char format_justify_left) +// void printf_string(__zp($3f) void (*putc)(char), __zp($af) char *str, __zp($df) char format_min_length, __zp($61) char format_justify_left) printf_string: { - .label printf_string__9 = $53 - .label len = $d4 - .label padding = $dd - .label str = $5d - .label format_min_length = $dd - .label format_justify_left = $5c - .label putc = $5f + .label printf_string__9 = $54 + .label len = $37 + .label padding = $df + .label str = $af + .label format_min_length = $df + .label format_justify_left = $61 + .label putc = $3f // if(format.min_length) - // [1138] if(0==printf_string::format_min_length#22) goto printf_string::@1 -- 0_eq_vbuz1_then_la1 + // [1148] if(0==printf_string::format_min_length#24) goto printf_string::@1 -- 0_eq_vbuz1_then_la1 lda.z format_min_length beq __b3 // printf_string::@3 // strlen(str) - // [1139] strlen::str#3 = printf_string::str#22 -- pbuz1=pbuz2 + // [1149] strlen::str#3 = printf_string::str#24 -- pbuz1=pbuz2 lda.z str sta.z strlen.str lda.z str+1 sta.z strlen.str+1 - // [1140] call strlen - // [2330] phi from printf_string::@3 to strlen [phi:printf_string::@3->strlen] - // [2330] phi strlen::str#8 = strlen::str#3 [phi:printf_string::@3->strlen#0] -- register_copy + // [1150] call strlen + // [2344] phi from printf_string::@3 to strlen [phi:printf_string::@3->strlen] + // [2344] phi strlen::str#8 = strlen::str#3 [phi:printf_string::@3->strlen#0] -- register_copy jsr strlen // strlen(str) - // [1141] strlen::return#10 = strlen::len#2 + // [1151] strlen::return#10 = strlen::len#2 // printf_string::@6 - // [1142] printf_string::$9 = strlen::return#10 + // [1152] printf_string::$9 = strlen::return#10 // signed char len = (signed char)strlen(str) - // [1143] printf_string::len#0 = (signed char)printf_string::$9 -- vbsz1=_sbyte_vwuz2 + // [1153] printf_string::len#0 = (signed char)printf_string::$9 -- vbsz1=_sbyte_vwuz2 lda.z printf_string__9 sta.z len // padding = (signed char)format.min_length - len - // [1144] printf_string::padding#1 = (signed char)printf_string::format_min_length#22 - printf_string::len#0 -- vbsz1=vbsz1_minus_vbsz2 + // [1154] printf_string::padding#1 = (signed char)printf_string::format_min_length#24 - printf_string::len#0 -- vbsz1=vbsz1_minus_vbsz2 lda.z padding sec sbc.z len sta.z padding // if(padding<0) - // [1145] if(printf_string::padding#1>=0) goto printf_string::@10 -- vbsz1_ge_0_then_la1 + // [1155] if(printf_string::padding#1>=0) goto printf_string::@10 -- vbsz1_ge_0_then_la1 cmp #0 bpl __b1 - // [1147] phi from printf_string printf_string::@6 to printf_string::@1 [phi:printf_string/printf_string::@6->printf_string::@1] + // [1157] phi from printf_string printf_string::@6 to printf_string::@1 [phi:printf_string/printf_string::@6->printf_string::@1] __b3: - // [1147] phi printf_string::padding#3 = 0 [phi:printf_string/printf_string::@6->printf_string::@1#0] -- vbsz1=vbsc1 + // [1157] phi printf_string::padding#3 = 0 [phi:printf_string/printf_string::@6->printf_string::@1#0] -- vbsz1=vbsc1 lda #0 sta.z padding - // [1146] phi from printf_string::@6 to printf_string::@10 [phi:printf_string::@6->printf_string::@10] + // [1156] phi from printf_string::@6 to printf_string::@10 [phi:printf_string::@6->printf_string::@10] // printf_string::@10 - // [1147] phi from printf_string::@10 to printf_string::@1 [phi:printf_string::@10->printf_string::@1] - // [1147] phi printf_string::padding#3 = printf_string::padding#1 [phi:printf_string::@10->printf_string::@1#0] -- register_copy + // [1157] phi from printf_string::@10 to printf_string::@1 [phi:printf_string::@10->printf_string::@1] + // [1157] phi printf_string::padding#3 = printf_string::padding#1 [phi:printf_string::@10->printf_string::@1#0] -- register_copy // printf_string::@1 __b1: // if(!format.justify_left && padding) - // [1148] if(0!=printf_string::format_justify_left#22) goto printf_string::@2 -- 0_neq_vbuz1_then_la1 + // [1158] if(0!=printf_string::format_justify_left#24) goto printf_string::@2 -- 0_neq_vbuz1_then_la1 lda.z format_justify_left bne __b2 // printf_string::@8 - // [1149] if(0!=printf_string::padding#3) goto printf_string::@4 -- 0_neq_vbsz1_then_la1 + // [1159] if(0!=printf_string::padding#3) goto printf_string::@4 -- 0_neq_vbsz1_then_la1 lda.z padding cmp #0 bne __b4 @@ -7663,43 +7742,43 @@ printf_string: { // printf_string::@4 __b4: // printf_padding(putc, ' ',(char)padding) - // [1150] printf_padding::putc#3 = printf_string::putc#22 -- pprz1=pprz2 + // [1160] printf_padding::putc#3 = printf_string::putc#24 -- pprz1=pprz2 lda.z putc sta.z printf_padding.putc lda.z putc+1 sta.z printf_padding.putc+1 - // [1151] printf_padding::length#3 = (char)printf_string::padding#3 -- vbuz1=vbuz2 + // [1161] printf_padding::length#3 = (char)printf_string::padding#3 -- vbuz1=vbuz2 lda.z padding sta.z printf_padding.length - // [1152] call printf_padding - // [2336] phi from printf_string::@4 to printf_padding [phi:printf_string::@4->printf_padding] - // [2336] phi printf_padding::putc#7 = printf_padding::putc#3 [phi:printf_string::@4->printf_padding#0] -- register_copy - // [2336] phi printf_padding::pad#7 = ' ' [phi:printf_string::@4->printf_padding#1] -- vbuz1=vbuc1 + // [1162] call printf_padding + // [2350] phi from printf_string::@4 to printf_padding [phi:printf_string::@4->printf_padding] + // [2350] phi printf_padding::putc#7 = printf_padding::putc#3 [phi:printf_string::@4->printf_padding#0] -- register_copy + // [2350] phi printf_padding::pad#7 = ' ' [phi:printf_string::@4->printf_padding#1] -- vbuz1=vbuc1 lda #' ' sta.z printf_padding.pad - // [2336] phi printf_padding::length#6 = printf_padding::length#3 [phi:printf_string::@4->printf_padding#2] -- register_copy + // [2350] phi printf_padding::length#6 = printf_padding::length#3 [phi:printf_string::@4->printf_padding#2] -- register_copy jsr printf_padding // printf_string::@2 __b2: // printf_str(putc, str) - // [1153] printf_str::putc#1 = printf_string::putc#22 -- pprz1=pprz2 + // [1163] printf_str::putc#1 = printf_string::putc#24 -- pprz1=pprz2 lda.z putc sta.z printf_str.putc lda.z putc+1 sta.z printf_str.putc+1 - // [1154] printf_str::s#2 = printf_string::str#22 - // [1155] call printf_str - // [1128] phi from printf_string::@2 to printf_str [phi:printf_string::@2->printf_str] - // [1128] phi printf_str::putc#71 = printf_str::putc#1 [phi:printf_string::@2->printf_str#0] -- register_copy - // [1128] phi printf_str::s#71 = printf_str::s#2 [phi:printf_string::@2->printf_str#1] -- register_copy + // [1164] printf_str::s#2 = printf_string::str#24 + // [1165] call printf_str + // [1138] phi from printf_string::@2 to printf_str [phi:printf_string::@2->printf_str] + // [1138] phi printf_str::putc#71 = printf_str::putc#1 [phi:printf_string::@2->printf_str#0] -- register_copy + // [1138] phi printf_str::s#71 = printf_str::s#2 [phi:printf_string::@2->printf_str#1] -- register_copy jsr printf_str // printf_string::@7 // if(format.justify_left && padding) - // [1156] if(0==printf_string::format_justify_left#22) goto printf_string::@return -- 0_eq_vbuz1_then_la1 + // [1166] if(0==printf_string::format_justify_left#24) goto printf_string::@return -- 0_eq_vbuz1_then_la1 lda.z format_justify_left beq __breturn // printf_string::@9 - // [1157] if(0!=printf_string::padding#3) goto printf_string::@5 -- 0_neq_vbsz1_then_la1 + // [1167] if(0!=printf_string::padding#3) goto printf_string::@5 -- 0_neq_vbsz1_then_la1 lda.z padding cmp #0 bne __b5 @@ -7707,26 +7786,26 @@ printf_string: { // printf_string::@5 __b5: // printf_padding(putc, ' ',(char)padding) - // [1158] printf_padding::putc#4 = printf_string::putc#22 -- pprz1=pprz2 + // [1168] printf_padding::putc#4 = printf_string::putc#24 -- pprz1=pprz2 lda.z putc sta.z printf_padding.putc lda.z putc+1 sta.z printf_padding.putc+1 - // [1159] printf_padding::length#4 = (char)printf_string::padding#3 -- vbuz1=vbuz2 + // [1169] printf_padding::length#4 = (char)printf_string::padding#3 -- vbuz1=vbuz2 lda.z padding sta.z printf_padding.length - // [1160] call printf_padding - // [2336] phi from printf_string::@5 to printf_padding [phi:printf_string::@5->printf_padding] - // [2336] phi printf_padding::putc#7 = printf_padding::putc#4 [phi:printf_string::@5->printf_padding#0] -- register_copy - // [2336] phi printf_padding::pad#7 = ' ' [phi:printf_string::@5->printf_padding#1] -- vbuz1=vbuc1 + // [1170] call printf_padding + // [2350] phi from printf_string::@5 to printf_padding [phi:printf_string::@5->printf_padding] + // [2350] phi printf_padding::putc#7 = printf_padding::putc#4 [phi:printf_string::@5->printf_padding#0] -- register_copy + // [2350] phi printf_padding::pad#7 = ' ' [phi:printf_string::@5->printf_padding#1] -- vbuz1=vbuc1 lda #' ' sta.z printf_padding.pad - // [2336] phi printf_padding::length#6 = printf_padding::length#4 [phi:printf_string::@5->printf_padding#2] -- register_copy + // [2350] phi printf_padding::length#6 = printf_padding::length#4 [phi:printf_string::@5->printf_padding#2] -- register_copy jsr printf_padding // printf_string::@return __breturn: // } - // [1161] return + // [1171] return rts .segment Data .label str_1 = rom_read.rom_package_read @@ -7743,45 +7822,45 @@ printf_string: { // __mem() char smc_supported_rom(__zp($c6) char rom_release) smc_supported_rom: { .label rom_release = $c6 - // [1163] phi from smc_supported_rom to smc_supported_rom::@1 [phi:smc_supported_rom->smc_supported_rom::@1] - // [1163] phi smc_supported_rom::i#2 = $1f [phi:smc_supported_rom->smc_supported_rom::@1#0] -- vbum1=vbuc1 + // [1173] phi from smc_supported_rom to smc_supported_rom::@1 [phi:smc_supported_rom->smc_supported_rom::@1] + // [1173] phi smc_supported_rom::i#2 = $1f [phi:smc_supported_rom->smc_supported_rom::@1#0] -- vbum1=vbuc1 lda #$1f sta i // smc_supported_rom::@1 __b1: // for(unsigned char i=31; i>3; i--) - // [1164] if(smc_supported_rom::i#2>=3+1) goto smc_supported_rom::@2 -- vbum1_ge_vbuc1_then_la1 + // [1174] if(smc_supported_rom::i#2>=3+1) goto smc_supported_rom::@2 -- vbum1_ge_vbuc1_then_la1 lda i cmp #3+1 bcs __b2 - // [1166] phi from smc_supported_rom::@1 to smc_supported_rom::@return [phi:smc_supported_rom::@1->smc_supported_rom::@return] - // [1166] phi smc_supported_rom::return#2 = 0 [phi:smc_supported_rom::@1->smc_supported_rom::@return#0] -- vbum1=vbuc1 + // [1176] phi from smc_supported_rom::@1 to smc_supported_rom::@return [phi:smc_supported_rom::@1->smc_supported_rom::@return] + // [1176] phi smc_supported_rom::return#2 = 0 [phi:smc_supported_rom::@1->smc_supported_rom::@return#0] -- vbum1=vbuc1 lda #0 sta return rts // smc_supported_rom::@2 __b2: // if(smc_file_header[i] == rom_release) - // [1165] if(smc_file_header[smc_supported_rom::i#2]!=smc_supported_rom::rom_release#0) goto smc_supported_rom::@3 -- pbuc1_derefidx_vbum1_neq_vbuz2_then_la1 + // [1175] if(smc_file_header[smc_supported_rom::i#2]!=smc_supported_rom::rom_release#0) goto smc_supported_rom::@3 -- pbuc1_derefidx_vbum1_neq_vbuz2_then_la1 lda.z rom_release ldy i cmp smc_file_header,y bne __b3 - // [1166] phi from smc_supported_rom::@2 to smc_supported_rom::@return [phi:smc_supported_rom::@2->smc_supported_rom::@return] - // [1166] phi smc_supported_rom::return#2 = 1 [phi:smc_supported_rom::@2->smc_supported_rom::@return#0] -- vbum1=vbuc1 + // [1176] phi from smc_supported_rom::@2 to smc_supported_rom::@return [phi:smc_supported_rom::@2->smc_supported_rom::@return] + // [1176] phi smc_supported_rom::return#2 = 1 [phi:smc_supported_rom::@2->smc_supported_rom::@return#0] -- vbum1=vbuc1 lda #1 sta return // smc_supported_rom::@return // } - // [1167] return + // [1177] return rts // smc_supported_rom::@3 __b3: // for(unsigned char i=31; i>3; i--) - // [1168] smc_supported_rom::i#1 = -- smc_supported_rom::i#2 -- vbum1=_dec_vbum1 + // [1178] smc_supported_rom::i#1 = -- smc_supported_rom::i#2 -- vbum1=_dec_vbum1 dec i - // [1163] phi from smc_supported_rom::@3 to smc_supported_rom::@1 [phi:smc_supported_rom::@3->smc_supported_rom::@1] - // [1163] phi smc_supported_rom::i#2 = smc_supported_rom::i#1 [phi:smc_supported_rom::@3->smc_supported_rom::@1#0] -- register_copy + // [1173] phi from smc_supported_rom::@3 to smc_supported_rom::@1 [phi:smc_supported_rom::@3->smc_supported_rom::@1] + // [1173] phi smc_supported_rom::i#2 = smc_supported_rom::i#1 [phi:smc_supported_rom::@3->smc_supported_rom::@1#0] -- register_copy jmp __b1 .segment Data .label i = rom_get_prefix.return @@ -7795,35 +7874,35 @@ smc_supported_rom: { * @param status The status to be checked. * @return unsigned char true if one chip is equal to the status. */ -// __mem() char check_status_roms(__zp($e0) char status) +// __mem() char check_status_roms(__zp($e2) char status) check_status_roms: { - .label check_status_rom1_check_status_roms__0 = $36 - .label check_status_rom1_return = $36 + .label check_status_rom1_check_status_roms__0 = $53 + .label check_status_rom1_return = $53 .label rom_chip = $30 - .label status = $e0 - // [1170] phi from check_status_roms to check_status_roms::@1 [phi:check_status_roms->check_status_roms::@1] - // [1170] phi check_status_roms::rom_chip#2 = 0 [phi:check_status_roms->check_status_roms::@1#0] -- vbuz1=vbuc1 + .label status = $e2 + // [1180] phi from check_status_roms to check_status_roms::@1 [phi:check_status_roms->check_status_roms::@1] + // [1180] phi check_status_roms::rom_chip#2 = 0 [phi:check_status_roms->check_status_roms::@1#0] -- vbuz1=vbuc1 lda #0 sta.z rom_chip // check_status_roms::@1 __b1: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [1171] if(check_status_roms::rom_chip#2<8) goto check_status_roms::check_status_rom1 -- vbuz1_lt_vbuc1_then_la1 + // [1181] if(check_status_roms::rom_chip#2<8) goto check_status_roms::check_status_rom1 -- vbuz1_lt_vbuc1_then_la1 lda.z rom_chip cmp #8 bcc check_status_rom1 - // [1172] phi from check_status_roms::@1 to check_status_roms::@return [phi:check_status_roms::@1->check_status_roms::@return] - // [1172] phi check_status_roms::return#2 = 0 [phi:check_status_roms::@1->check_status_roms::@return#0] -- vbum1=vbuc1 + // [1182] phi from check_status_roms::@1 to check_status_roms::@return [phi:check_status_roms::@1->check_status_roms::@return] + // [1182] phi check_status_roms::return#2 = 0 [phi:check_status_roms::@1->check_status_roms::@return#0] -- vbum1=vbuc1 lda #0 sta return // check_status_roms::@return // } - // [1173] return + // [1183] return rts // check_status_roms::check_status_rom1 check_status_rom1: // status_rom[rom_chip] == status - // [1174] check_status_roms::check_status_rom1_$0 = status_rom[check_status_roms::rom_chip#2] == check_status_roms::status#6 -- vboz1=pbuc1_derefidx_vbuz2_eq_vbuz3 + // [1184] check_status_roms::check_status_rom1_$0 = status_rom[check_status_roms::rom_chip#2] == check_status_roms::status#6 -- vboz1=pbuc1_derefidx_vbuz2_eq_vbuz3 lda.z status ldy.z rom_chip eor status_rom,y @@ -7833,24 +7912,24 @@ check_status_roms: { eor #1 sta.z check_status_rom1_check_status_roms__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [1175] check_status_roms::check_status_rom1_return#0 = (char)check_status_roms::check_status_rom1_$0 + // [1185] check_status_roms::check_status_rom1_return#0 = (char)check_status_roms::check_status_rom1_$0 // check_status_roms::@3 // if(check_status_rom(rom_chip, status)) - // [1176] if(0==check_status_roms::check_status_rom1_return#0) goto check_status_roms::@2 -- 0_eq_vbuz1_then_la1 + // [1186] if(0==check_status_roms::check_status_rom1_return#0) goto check_status_roms::@2 -- 0_eq_vbuz1_then_la1 lda.z check_status_rom1_return beq __b2 - // [1172] phi from check_status_roms::@3 to check_status_roms::@return [phi:check_status_roms::@3->check_status_roms::@return] - // [1172] phi check_status_roms::return#2 = 1 [phi:check_status_roms::@3->check_status_roms::@return#0] -- vbum1=vbuc1 + // [1182] phi from check_status_roms::@3 to check_status_roms::@return [phi:check_status_roms::@3->check_status_roms::@return] + // [1182] phi check_status_roms::return#2 = 1 [phi:check_status_roms::@3->check_status_roms::@return#0] -- vbum1=vbuc1 lda #1 sta return rts // check_status_roms::@2 __b2: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [1177] check_status_roms::rom_chip#1 = ++ check_status_roms::rom_chip#2 -- vbuz1=_inc_vbuz1 + // [1187] check_status_roms::rom_chip#1 = ++ check_status_roms::rom_chip#2 -- vbuz1=_inc_vbuz1 inc.z rom_chip - // [1170] phi from check_status_roms::@2 to check_status_roms::@1 [phi:check_status_roms::@2->check_status_roms::@1] - // [1170] phi check_status_roms::rom_chip#2 = check_status_roms::rom_chip#1 [phi:check_status_roms::@2->check_status_roms::@1#0] -- register_copy + // [1180] phi from check_status_roms::@2 to check_status_roms::@1 [phi:check_status_roms::@2->check_status_roms::@1] + // [1180] phi check_status_roms::rom_chip#2 = check_status_roms::rom_chip#1 [phi:check_status_roms::@2->check_status_roms::@1#0] -- register_copy jmp __b1 .segment Data return: .byte 0 @@ -7865,31 +7944,31 @@ check_status_roms: { */ // __mem() char check_status_roms_less(char status) check_status_roms_less: { - .label check_status_rom1_check_status_roms_less__0 = $e4 - .label check_status_rom1_return = $e4 - // [1179] phi from check_status_roms_less to check_status_roms_less::@1 [phi:check_status_roms_less->check_status_roms_less::@1] - // [1179] phi check_status_roms_less::rom_chip#2 = 0 [phi:check_status_roms_less->check_status_roms_less::@1#0] -- vbum1=vbuc1 + .label check_status_rom1_check_status_roms_less__0 = $e6 + .label check_status_rom1_return = $e6 + // [1189] phi from check_status_roms_less to check_status_roms_less::@1 [phi:check_status_roms_less->check_status_roms_less::@1] + // [1189] phi check_status_roms_less::rom_chip#2 = 0 [phi:check_status_roms_less->check_status_roms_less::@1#0] -- vbum1=vbuc1 lda #0 sta rom_chip // check_status_roms_less::@1 __b1: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [1180] if(check_status_roms_less::rom_chip#2<8) goto check_status_roms_less::check_status_rom1 -- vbum1_lt_vbuc1_then_la1 + // [1190] if(check_status_roms_less::rom_chip#2<8) goto check_status_roms_less::check_status_rom1 -- vbum1_lt_vbuc1_then_la1 lda rom_chip cmp #8 bcc check_status_rom1 - // [1181] phi from check_status_roms_less::@1 to check_status_roms_less::@return [phi:check_status_roms_less::@1->check_status_roms_less::@return] - // [1181] phi check_status_roms_less::return#2 = 1 [phi:check_status_roms_less::@1->check_status_roms_less::@return#0] -- vbum1=vbuc1 + // [1191] phi from check_status_roms_less::@1 to check_status_roms_less::@return [phi:check_status_roms_less::@1->check_status_roms_less::@return] + // [1191] phi check_status_roms_less::return#2 = 1 [phi:check_status_roms_less::@1->check_status_roms_less::@return#0] -- vbum1=vbuc1 lda #1 sta return // check_status_roms_less::@return // } - // [1182] return + // [1192] return rts // check_status_roms_less::check_status_rom1 check_status_rom1: // status_rom[rom_chip] == status - // [1183] check_status_roms_less::check_status_rom1_$0 = status_rom[check_status_roms_less::rom_chip#2] == STATUS_SKIP -- vboz1=pbuc1_derefidx_vbum2_eq_vbuc2 + // [1193] check_status_roms_less::check_status_rom1_$0 = status_rom[check_status_roms_less::rom_chip#2] == STATUS_SKIP -- vboz1=pbuc1_derefidx_vbum2_eq_vbuc2 lda #STATUS_SKIP ldy rom_chip eor status_rom,y @@ -7899,25 +7978,25 @@ check_status_roms_less: { eor #1 sta.z check_status_rom1_check_status_roms_less__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [1184] check_status_roms_less::check_status_rom1_return#0 = (char)check_status_roms_less::check_status_rom1_$0 + // [1194] check_status_roms_less::check_status_rom1_return#0 = (char)check_status_roms_less::check_status_rom1_$0 // check_status_roms_less::@3 // if(check_status_rom(rom_chip, status) > status) - // [1185] if(check_status_roms_less::check_status_rom1_return#0check_status_roms_less::@return] - // [1181] phi check_status_roms_less::return#2 = 0 [phi:check_status_roms_less::@3->check_status_roms_less::@return#0] -- vbum1=vbuc1 + // [1191] phi from check_status_roms_less::@3 to check_status_roms_less::@return [phi:check_status_roms_less::@3->check_status_roms_less::@return] + // [1191] phi check_status_roms_less::return#2 = 0 [phi:check_status_roms_less::@3->check_status_roms_less::@return#0] -- vbum1=vbuc1 lda #0 sta return rts // check_status_roms_less::@2 __b2: // for(unsigned char rom_chip = 0; rom_chip < 8; rom_chip++) - // [1186] check_status_roms_less::rom_chip#1 = ++ check_status_roms_less::rom_chip#2 -- vbum1=_inc_vbum1 + // [1196] check_status_roms_less::rom_chip#1 = ++ check_status_roms_less::rom_chip#2 -- vbum1=_inc_vbum1 inc rom_chip - // [1179] phi from check_status_roms_less::@2 to check_status_roms_less::@1 [phi:check_status_roms_less::@2->check_status_roms_less::@1] - // [1179] phi check_status_roms_less::rom_chip#2 = check_status_roms_less::rom_chip#1 [phi:check_status_roms_less::@2->check_status_roms_less::@1#0] -- register_copy + // [1189] phi from check_status_roms_less::@2 to check_status_roms_less::@1 [phi:check_status_roms_less::@2->check_status_roms_less::@1] + // [1189] phi check_status_roms_less::rom_chip#2 = check_status_roms_less::rom_chip#1 [phi:check_status_roms_less::@2->check_status_roms_less::@1#0] -- register_copy jmp __b1 .segment Data .label rom_chip = main.check_status_smc2_main__0 @@ -7934,19 +8013,19 @@ system_reset: { .const bank_set_brom1_bank = 0 // system_reset::bank_set_bram1 // BRAM = bank - // [1188] BRAM = system_reset::bank_set_bram1_bank#0 -- vbuz1=vbuc1 + // [1198] BRAM = system_reset::bank_set_bram1_bank#0 -- vbuz1=vbuc1 lda #bank_set_bram1_bank sta.z BRAM // system_reset::bank_set_brom1 // BROM = bank - // [1189] BROM = system_reset::bank_set_brom1_bank#0 -- vbuz1=vbuc1 + // [1199] BROM = system_reset::bank_set_brom1_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom1_bank sta.z BROM // system_reset::@2 // asm // asm { jmp($FFFC) } jmp ($fffc) - // [1191] phi from system_reset::@1 system_reset::@2 to system_reset::@1 [phi:system_reset::@1/system_reset::@2->system_reset::@1] + // [1201] phi from system_reset::@1 system_reset::@2 to system_reset::@1 [phi:system_reset::@1/system_reset::@2->system_reset::@1] // system_reset::@1 __b1: jmp __b1 @@ -7957,8 +8036,8 @@ system_reset: { * */ wait_moment: { - // [1193] phi from wait_moment to wait_moment::@1 [phi:wait_moment->wait_moment::@1] - // [1193] phi wait_moment::i#2 = $ffff [phi:wait_moment->wait_moment::@1#0] -- vwum1=vwuc1 + // [1203] phi from wait_moment to wait_moment::@1 [phi:wait_moment->wait_moment::@1] + // [1203] phi wait_moment::i#2 = $ffff [phi:wait_moment->wait_moment::@1#0] -- vwum1=vwuc1 lda #<$ffff sta i lda #>$ffff @@ -7966,7 +8045,7 @@ wait_moment: { // wait_moment::@1 __b1: // for(unsigned int i=65535; i>0; i--) - // [1194] if(wait_moment::i#2>0) goto wait_moment::@2 -- vwum1_gt_0_then_la1 + // [1204] if(wait_moment::i#2>0) goto wait_moment::@2 -- vwum1_gt_0_then_la1 lda i+1 bne __b2 lda i @@ -7974,19 +8053,19 @@ wait_moment: { !: // wait_moment::@return // } - // [1195] return + // [1205] return rts // wait_moment::@2 __b2: // for(unsigned int i=65535; i>0; i--) - // [1196] wait_moment::i#1 = -- wait_moment::i#2 -- vwum1=_dec_vwum1 + // [1206] wait_moment::i#1 = -- wait_moment::i#2 -- vwum1=_dec_vwum1 lda i bne !+ dec i+1 !: dec i - // [1193] phi from wait_moment::@2 to wait_moment::@1 [phi:wait_moment::@2->wait_moment::@1] - // [1193] phi wait_moment::i#2 = wait_moment::i#1 [phi:wait_moment::@2->wait_moment::@1#0] -- register_copy + // [1203] phi from wait_moment::@2 to wait_moment::@1 [phi:wait_moment::@2->wait_moment::@1] + // [1203] phi wait_moment::i#2 = wait_moment::i#1 [phi:wait_moment::@2->wait_moment::@1#0] -- register_copy jmp __b1 .segment Data i: .word 0 @@ -7994,44 +8073,44 @@ wait_moment: { .segment Code // printf_uchar // Print an unsigned char using a specific format -// void printf_uchar(__zp($5a) void (*putc)(char), __zp($30) char uvalue, __zp($37) char format_min_length, char format_justify_left, char format_sign_always, __zp($e0) char format_zero_padding, char format_upper_case, __zp($5c) char format_radix) +// void printf_uchar(__zp($5b) void (*putc)(char), __zp($30) char uvalue, __zp($36) char format_min_length, char format_justify_left, char format_sign_always, __zp($e2) char format_zero_padding, char format_upper_case, __zp($61) char format_radix) printf_uchar: { .label uvalue = $30 - .label format_radix = $5c - .label putc = $5a - .label format_min_length = $37 - .label format_zero_padding = $e0 + .label format_radix = $61 + .label putc = $5b + .label format_min_length = $36 + .label format_zero_padding = $e2 // printf_uchar::@1 // printf_buffer.sign = format.sign_always?'+':0 - // [1198] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2 + // [1208] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2 // Handle any sign lda #0 sta printf_buffer // uctoa(uvalue, printf_buffer.digits, format.radix) - // [1199] uctoa::value#1 = printf_uchar::uvalue#14 - // [1200] uctoa::radix#0 = printf_uchar::format_radix#14 - // [1201] call uctoa + // [1209] uctoa::value#1 = printf_uchar::uvalue#14 + // [1210] uctoa::radix#0 = printf_uchar::format_radix#14 + // [1211] call uctoa // Format number into buffer jsr uctoa // printf_uchar::@2 // printf_number_buffer(putc, printf_buffer, format) - // [1202] printf_number_buffer::putc#2 = printf_uchar::putc#14 - // [1203] printf_number_buffer::buffer_sign#2 = *((char *)&printf_buffer) -- vbuz1=_deref_pbuc1 + // [1212] printf_number_buffer::putc#2 = printf_uchar::putc#14 + // [1213] printf_number_buffer::buffer_sign#2 = *((char *)&printf_buffer) -- vbuz1=_deref_pbuc1 lda printf_buffer sta.z printf_number_buffer.buffer_sign - // [1204] printf_number_buffer::format_min_length#2 = printf_uchar::format_min_length#14 - // [1205] printf_number_buffer::format_zero_padding#2 = printf_uchar::format_zero_padding#14 - // [1206] call printf_number_buffer + // [1214] printf_number_buffer::format_min_length#2 = printf_uchar::format_min_length#14 + // [1215] printf_number_buffer::format_zero_padding#2 = printf_uchar::format_zero_padding#14 + // [1216] call printf_number_buffer // Print using format - // [2372] phi from printf_uchar::@2 to printf_number_buffer [phi:printf_uchar::@2->printf_number_buffer] - // [2372] phi printf_number_buffer::putc#10 = printf_number_buffer::putc#2 [phi:printf_uchar::@2->printf_number_buffer#0] -- register_copy - // [2372] phi printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#2 [phi:printf_uchar::@2->printf_number_buffer#1] -- register_copy - // [2372] phi printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#2 [phi:printf_uchar::@2->printf_number_buffer#2] -- register_copy - // [2372] phi printf_number_buffer::format_min_length#3 = printf_number_buffer::format_min_length#2 [phi:printf_uchar::@2->printf_number_buffer#3] -- register_copy + // [2386] phi from printf_uchar::@2 to printf_number_buffer [phi:printf_uchar::@2->printf_number_buffer] + // [2386] phi printf_number_buffer::putc#10 = printf_number_buffer::putc#2 [phi:printf_uchar::@2->printf_number_buffer#0] -- register_copy + // [2386] phi printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#2 [phi:printf_uchar::@2->printf_number_buffer#1] -- register_copy + // [2386] phi printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#2 [phi:printf_uchar::@2->printf_number_buffer#2] -- register_copy + // [2386] phi printf_number_buffer::format_min_length#3 = printf_number_buffer::format_min_length#2 [phi:printf_uchar::@2->printf_number_buffer#3] -- register_copy jsr printf_number_buffer // printf_uchar::@return // } - // [1207] return + // [1217] return rts } // display_action_text @@ -8040,75 +8119,75 @@ printf_uchar: { * * @param info_text The info text to be displayed. */ -// void display_action_text(__zp($5f) char *info_text) +// void display_action_text(__zp($3f) char *info_text) display_action_text: { - .label info_text = $5f - .label x = $e4 - .label y = $65 + .label info_text = $3f + .label x = $e6 + .label y = $ba // unsigned char x = wherex() - // [1209] call wherex + // [1219] call wherex jsr wherex - // [1210] wherex::return#3 = wherex::return#0 -- vbuz1=vbuz2 + // [1220] wherex::return#3 = wherex::return#0 -- vbuz1=vbuz2 lda.z wherex.return sta.z wherex.return_1 // display_action_text::@1 - // [1211] display_action_text::x#0 = wherex::return#3 + // [1221] display_action_text::x#0 = wherex::return#3 // unsigned char y = wherey() - // [1212] call wherey + // [1222] call wherey jsr wherey - // [1213] wherey::return#3 = wherey::return#0 -- vbuz1=vbuz2 + // [1223] wherey::return#3 = wherey::return#0 -- vbuz1=vbuz2 lda.z wherey.return sta.z wherey.return_1 // display_action_text::@2 - // [1214] display_action_text::y#0 = wherey::return#3 + // [1224] display_action_text::y#0 = wherey::return#3 // gotoxy(2, PROGRESS_Y-3) - // [1215] call gotoxy - // [744] phi from display_action_text::@2 to gotoxy [phi:display_action_text::@2->gotoxy] - // [744] phi gotoxy::y#30 = PROGRESS_Y-3 [phi:display_action_text::@2->gotoxy#0] -- vbuz1=vbuc1 + // [1225] call gotoxy + // [751] phi from display_action_text::@2 to gotoxy [phi:display_action_text::@2->gotoxy] + // [751] phi gotoxy::y#30 = PROGRESS_Y-3 [phi:display_action_text::@2->gotoxy#0] -- vbuz1=vbuc1 lda #PROGRESS_Y-3 sta.z gotoxy.y - // [744] phi gotoxy::x#30 = 2 [phi:display_action_text::@2->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = 2 [phi:display_action_text::@2->gotoxy#1] -- vbuz1=vbuc1 lda #2 sta.z gotoxy.x jsr gotoxy // display_action_text::@3 // printf("%-65s", info_text) - // [1216] printf_string::str#2 = display_action_text::info_text#19 -- pbuz1=pbuz2 + // [1226] printf_string::str#2 = display_action_text::info_text#19 -- pbuz1=pbuz2 lda.z info_text sta.z printf_string.str lda.z info_text+1 sta.z printf_string.str+1 - // [1217] call printf_string - // [1137] phi from display_action_text::@3 to printf_string [phi:display_action_text::@3->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_action_text::@3->printf_string#0] -- pprz1=pprc1 + // [1227] call printf_string + // [1147] phi from display_action_text::@3 to printf_string [phi:display_action_text::@3->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_action_text::@3->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#2 [phi:display_action_text::@3->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_action_text::@3->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#2 [phi:display_action_text::@3->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_action_text::@3->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = $41 [phi:display_action_text::@3->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = $41 [phi:display_action_text::@3->printf_string#3] -- vbuz1=vbuc1 lda #$41 sta.z printf_string.format_min_length jsr printf_string // display_action_text::@4 // gotoxy(x, y) - // [1218] gotoxy::x#12 = display_action_text::x#0 -- vbuz1=vbuz2 + // [1228] gotoxy::x#12 = display_action_text::x#0 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [1219] gotoxy::y#12 = display_action_text::y#0 -- vbuz1=vbuz2 + // [1229] gotoxy::y#12 = display_action_text::y#0 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [1220] call gotoxy - // [744] phi from display_action_text::@4 to gotoxy [phi:display_action_text::@4->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#12 [phi:display_action_text::@4->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#12 [phi:display_action_text::@4->gotoxy#1] -- register_copy + // [1230] call gotoxy + // [751] phi from display_action_text::@4 to gotoxy [phi:display_action_text::@4->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#12 [phi:display_action_text::@4->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#12 [phi:display_action_text::@4->gotoxy#1] -- register_copy jsr gotoxy // display_action_text::@return // } - // [1221] return + // [1231] return rts } // smc_reset @@ -8124,28 +8203,28 @@ smc_reset: { .const bank_set_brom1_bank = 0 // smc_reset::bank_set_bram1 // BRAM = bank - // [1223] BRAM = smc_reset::bank_set_bram1_bank#0 -- vbuz1=vbuc1 + // [1233] BRAM = smc_reset::bank_set_bram1_bank#0 -- vbuz1=vbuc1 lda #bank_set_bram1_bank sta.z BRAM // smc_reset::bank_set_brom1 // BROM = bank - // [1224] BROM = smc_reset::bank_set_brom1_bank#0 -- vbuz1=vbuc1 + // [1234] BROM = smc_reset::bank_set_brom1_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom1_bank sta.z BROM // smc_reset::@2 // cx16_k_i2c_write_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_REBOOT, 0) - // [1225] smc_reset::cx16_k_i2c_write_byte1_device = $42 -- vbum1=vbuc1 + // [1235] smc_reset::cx16_k_i2c_write_byte1_device = $42 -- vbum1=vbuc1 lda #$42 sta cx16_k_i2c_write_byte1_device - // [1226] smc_reset::cx16_k_i2c_write_byte1_offset = $82 -- vbum1=vbuc1 + // [1236] smc_reset::cx16_k_i2c_write_byte1_offset = $82 -- vbum1=vbuc1 lda #$82 sta cx16_k_i2c_write_byte1_offset - // [1227] smc_reset::cx16_k_i2c_write_byte1_value = 0 -- vbum1=vbuc1 + // [1237] smc_reset::cx16_k_i2c_write_byte1_value = 0 -- vbum1=vbuc1 lda #0 sta cx16_k_i2c_write_byte1_value // smc_reset::cx16_k_i2c_write_byte1 // unsigned char result - // [1228] smc_reset::cx16_k_i2c_write_byte1_result = 0 -- vbum1=vbuc1 + // [1238] smc_reset::cx16_k_i2c_write_byte1_result = 0 -- vbum1=vbuc1 sta cx16_k_i2c_write_byte1_result // asm // asm { ldxdevice ldyoffset ldavalue stzresult jsrCX16_I2C_WRITE_BYTE rolresult } @@ -8155,7 +8234,7 @@ smc_reset: { stz cx16_k_i2c_write_byte1_result jsr CX16_I2C_WRITE_BYTE rol cx16_k_i2c_write_byte1_result - // [1230] phi from smc_reset::@1 smc_reset::cx16_k_i2c_write_byte1 to smc_reset::@1 [phi:smc_reset::@1/smc_reset::cx16_k_i2c_write_byte1->smc_reset::@1] + // [1240] phi from smc_reset::@1 smc_reset::cx16_k_i2c_write_byte1 to smc_reset::@1 [phi:smc_reset::@1/smc_reset::cx16_k_i2c_write_byte1->smc_reset::@1] // smc_reset::@1 __b1: jmp __b1 @@ -8173,35 +8252,35 @@ smc_reset: { * @param status The status to be checked. * @return unsigned char true if one chip is equal to the status. */ -// __zp($e0) char check_status_card_roms(char status) +// __zp($e2) char check_status_card_roms(char status) check_status_card_roms: { - .label check_status_rom1_check_status_card_roms__0 = $65 - .label check_status_rom1_return = $65 - .label rom_chip = $37 - .label return = $e0 - // [1232] phi from check_status_card_roms to check_status_card_roms::@1 [phi:check_status_card_roms->check_status_card_roms::@1] - // [1232] phi check_status_card_roms::rom_chip#2 = 1 [phi:check_status_card_roms->check_status_card_roms::@1#0] -- vbuz1=vbuc1 + .label check_status_rom1_check_status_card_roms__0 = $ba + .label check_status_rom1_return = $ba + .label rom_chip = $36 + .label return = $e2 + // [1242] phi from check_status_card_roms to check_status_card_roms::@1 [phi:check_status_card_roms->check_status_card_roms::@1] + // [1242] phi check_status_card_roms::rom_chip#2 = 1 [phi:check_status_card_roms->check_status_card_roms::@1#0] -- vbuz1=vbuc1 lda #1 sta.z rom_chip // check_status_card_roms::@1 __b1: // for(unsigned char rom_chip = 1; rom_chip < 8; rom_chip++) - // [1233] if(check_status_card_roms::rom_chip#2<8) goto check_status_card_roms::check_status_rom1 -- vbuz1_lt_vbuc1_then_la1 + // [1243] if(check_status_card_roms::rom_chip#2<8) goto check_status_card_roms::check_status_rom1 -- vbuz1_lt_vbuc1_then_la1 lda.z rom_chip cmp #8 bcc check_status_rom1 - // [1234] phi from check_status_card_roms::@1 to check_status_card_roms::@return [phi:check_status_card_roms::@1->check_status_card_roms::@return] - // [1234] phi check_status_card_roms::return#2 = 0 [phi:check_status_card_roms::@1->check_status_card_roms::@return#0] -- vbuz1=vbuc1 + // [1244] phi from check_status_card_roms::@1 to check_status_card_roms::@return [phi:check_status_card_roms::@1->check_status_card_roms::@return] + // [1244] phi check_status_card_roms::return#2 = 0 [phi:check_status_card_roms::@1->check_status_card_roms::@return#0] -- vbuz1=vbuc1 lda #0 sta.z return // check_status_card_roms::@return // } - // [1235] return + // [1245] return rts // check_status_card_roms::check_status_rom1 check_status_rom1: // status_rom[rom_chip] == status - // [1236] check_status_card_roms::check_status_rom1_$0 = status_rom[check_status_card_roms::rom_chip#2] == STATUS_FLASH -- vboz1=pbuc1_derefidx_vbuz2_eq_vbuc2 + // [1246] check_status_card_roms::check_status_rom1_$0 = status_rom[check_status_card_roms::rom_chip#2] == STATUS_FLASH -- vboz1=pbuc1_derefidx_vbuz2_eq_vbuc2 lda #STATUS_FLASH ldy.z rom_chip eor status_rom,y @@ -8211,24 +8290,24 @@ check_status_card_roms: { eor #1 sta.z check_status_rom1_check_status_card_roms__0 // return (unsigned char)(status_rom[rom_chip] == status); - // [1237] check_status_card_roms::check_status_rom1_return#0 = (char)check_status_card_roms::check_status_rom1_$0 + // [1247] check_status_card_roms::check_status_rom1_return#0 = (char)check_status_card_roms::check_status_rom1_$0 // check_status_card_roms::@3 // if(check_status_rom(rom_chip, status)) - // [1238] if(0==check_status_card_roms::check_status_rom1_return#0) goto check_status_card_roms::@2 -- 0_eq_vbuz1_then_la1 + // [1248] if(0==check_status_card_roms::check_status_rom1_return#0) goto check_status_card_roms::@2 -- 0_eq_vbuz1_then_la1 lda.z check_status_rom1_return beq __b2 - // [1234] phi from check_status_card_roms::@3 to check_status_card_roms::@return [phi:check_status_card_roms::@3->check_status_card_roms::@return] - // [1234] phi check_status_card_roms::return#2 = 1 [phi:check_status_card_roms::@3->check_status_card_roms::@return#0] -- vbuz1=vbuc1 + // [1244] phi from check_status_card_roms::@3 to check_status_card_roms::@return [phi:check_status_card_roms::@3->check_status_card_roms::@return] + // [1244] phi check_status_card_roms::return#2 = 1 [phi:check_status_card_roms::@3->check_status_card_roms::@return#0] -- vbuz1=vbuc1 lda #1 sta.z return rts // check_status_card_roms::@2 __b2: // for(unsigned char rom_chip = 1; rom_chip < 8; rom_chip++) - // [1239] check_status_card_roms::rom_chip#1 = ++ check_status_card_roms::rom_chip#2 -- vbuz1=_inc_vbuz1 + // [1249] check_status_card_roms::rom_chip#1 = ++ check_status_card_roms::rom_chip#2 -- vbuz1=_inc_vbuz1 inc.z rom_chip - // [1232] phi from check_status_card_roms::@2 to check_status_card_roms::@1 [phi:check_status_card_roms::@2->check_status_card_roms::@1] - // [1232] phi check_status_card_roms::rom_chip#2 = check_status_card_roms::rom_chip#1 [phi:check_status_card_roms::@2->check_status_card_roms::@1#0] -- register_copy + // [1242] phi from check_status_card_roms::@2 to check_status_card_roms::@1 [phi:check_status_card_roms::@2->check_status_card_roms::@1] + // [1242] phi check_status_card_roms::rom_chip#2 = check_status_card_roms::rom_chip#1 [phi:check_status_card_roms::@2->check_status_card_roms::@1#0] -- register_copy jmp __b1 } // display_info_rom @@ -8239,102 +8318,102 @@ check_status_card_roms: { * @param info_status The status. * @param info_text The status text. */ -// void display_info_rom(__zp($30) char rom_chip, __zp($2c) char info_status, __zp($3e) char *info_text) +// void display_info_rom(__zp($30) char rom_chip, __zp($2c) char info_status, __zp($4e) char *info_text) display_info_rom: { - .label display_info_rom__6 = $73 + .label display_info_rom__6 = $fb .label display_info_rom__12 = $2c - .label x = $66 - .label y = $db + .label x = $65 + .label y = $dd .label info_status = $2c - .label info_text = $3e + .label info_text = $4e .label rom_chip = $30 - .label display_info_rom__16 = $73 - .label display_info_rom__17 = $73 + .label display_info_rom__16 = $fb + .label display_info_rom__17 = $fb // unsigned char x = wherex() - // [1241] call wherex + // [1251] call wherex jsr wherex - // [1242] wherex::return#12 = wherex::return#0 -- vbuz1=vbuz2 + // [1252] wherex::return#12 = wherex::return#0 -- vbuz1=vbuz2 lda.z wherex.return sta.z wherex.return_4 // display_info_rom::@3 - // [1243] display_info_rom::x#0 = wherex::return#12 + // [1253] display_info_rom::x#0 = wherex::return#12 // unsigned char y = wherey() - // [1244] call wherey + // [1254] call wherey jsr wherey - // [1245] wherey::return#12 = wherey::return#0 -- vbuz1=vbuz2 + // [1255] wherey::return#12 = wherey::return#0 -- vbuz1=vbuz2 lda.z wherey.return sta.z wherey.return_4 // display_info_rom::@4 - // [1246] display_info_rom::y#0 = wherey::return#12 + // [1256] display_info_rom::y#0 = wherey::return#12 // status_rom[rom_chip] = info_status - // [1247] status_rom[display_info_rom::rom_chip#16] = display_info_rom::info_status#16 -- pbuc1_derefidx_vbuz1=vbuz2 + // [1257] status_rom[display_info_rom::rom_chip#16] = display_info_rom::info_status#16 -- pbuc1_derefidx_vbuz1=vbuz2 lda.z info_status ldy.z rom_chip sta status_rom,y // display_rom_led(rom_chip, status_color[info_status]) - // [1248] display_rom_led::chip#1 = display_info_rom::rom_chip#16 -- vbuz1=vbuz2 + // [1258] display_rom_led::chip#1 = display_info_rom::rom_chip#16 -- vbuz1=vbuz2 tya sta.z display_rom_led.chip - // [1249] display_rom_led::c#1 = status_color[display_info_rom::info_status#16] -- vbuz1=pbuc1_derefidx_vbuz2 + // [1259] display_rom_led::c#1 = status_color[display_info_rom::info_status#16] -- vbuz1=pbuc1_derefidx_vbuz2 ldy.z info_status lda status_color,y sta.z display_rom_led.c - // [1250] call display_rom_led - // [2130] phi from display_info_rom::@4 to display_rom_led [phi:display_info_rom::@4->display_rom_led] - // [2130] phi display_rom_led::c#2 = display_rom_led::c#1 [phi:display_info_rom::@4->display_rom_led#0] -- register_copy - // [2130] phi display_rom_led::chip#2 = display_rom_led::chip#1 [phi:display_info_rom::@4->display_rom_led#1] -- register_copy + // [1260] call display_rom_led + // [2144] phi from display_info_rom::@4 to display_rom_led [phi:display_info_rom::@4->display_rom_led] + // [2144] phi display_rom_led::c#2 = display_rom_led::c#1 [phi:display_info_rom::@4->display_rom_led#0] -- register_copy + // [2144] phi display_rom_led::chip#2 = display_rom_led::chip#1 [phi:display_info_rom::@4->display_rom_led#1] -- register_copy jsr display_rom_led // display_info_rom::@5 // gotoxy(INFO_X, INFO_Y+rom_chip+2) - // [1251] gotoxy::y#17 = display_info_rom::rom_chip#16 + $11+2 -- vbuz1=vbuz2_plus_vbuc1 + // [1261] gotoxy::y#17 = display_info_rom::rom_chip#16 + $11+2 -- vbuz1=vbuz2_plus_vbuc1 lda #$11+2 clc adc.z rom_chip sta.z gotoxy.y - // [1252] call gotoxy - // [744] phi from display_info_rom::@5 to gotoxy [phi:display_info_rom::@5->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#17 [phi:display_info_rom::@5->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = 4 [phi:display_info_rom::@5->gotoxy#1] -- vbuz1=vbuc1 + // [1262] call gotoxy + // [751] phi from display_info_rom::@5 to gotoxy [phi:display_info_rom::@5->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#17 [phi:display_info_rom::@5->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = 4 [phi:display_info_rom::@5->gotoxy#1] -- vbuz1=vbuc1 lda #4 sta.z gotoxy.x jsr gotoxy // display_info_rom::@6 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1253] display_info_rom::$13 = display_info_rom::rom_chip#16 << 1 -- vbum1=vbuz2_rol_1 + // [1263] display_info_rom::$13 = display_info_rom::rom_chip#16 << 1 -- vbum1=vbuz2_rol_1 lda.z rom_chip asl sta display_info_rom__13 // rom_chip*13 - // [1254] display_info_rom::$16 = display_info_rom::$13 + display_info_rom::rom_chip#16 -- vbuz1=vbum2_plus_vbuz3 + // [1264] display_info_rom::$16 = display_info_rom::$13 + display_info_rom::rom_chip#16 -- vbuz1=vbum2_plus_vbuz3 clc adc.z rom_chip sta.z display_info_rom__16 - // [1255] display_info_rom::$17 = display_info_rom::$16 << 2 -- vbuz1=vbuz1_rol_2 + // [1265] display_info_rom::$17 = display_info_rom::$16 << 2 -- vbuz1=vbuz1_rol_2 lda.z display_info_rom__17 asl asl sta.z display_info_rom__17 - // [1256] display_info_rom::$6 = display_info_rom::$17 + display_info_rom::rom_chip#16 -- vbuz1=vbuz1_plus_vbuz2 + // [1266] display_info_rom::$6 = display_info_rom::$17 + display_info_rom::rom_chip#16 -- vbuz1=vbuz1_plus_vbuz2 lda.z display_info_rom__6 clc adc.z rom_chip sta.z display_info_rom__6 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1257] printf_string::str#10 = rom_release_text + display_info_rom::$6 -- pbum1=pbuc1_plus_vbuz2 + // [1267] printf_string::str#10 = rom_release_text + display_info_rom::$6 -- pbum1=pbuc1_plus_vbuz2 clc adc #rom_release_text adc #0 sta printf_string.str_1+1 - // [1258] call printf_str - // [1128] phi from display_info_rom::@6 to printf_str [phi:display_info_rom::@6->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@6->printf_str#0] -- pprz1=pprc1 + // [1268] call printf_str + // [1138] phi from display_info_rom::@6 to printf_str [phi:display_info_rom::@6->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@6->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = display_info_rom::s [phi:display_info_rom::@6->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = display_info_rom::s [phi:display_info_rom::@6->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -8342,35 +8421,35 @@ display_info_rom: { jsr printf_str // display_info_rom::@7 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1259] printf_uchar::uvalue#0 = display_info_rom::rom_chip#16 - // [1260] call printf_uchar - // [1197] phi from display_info_rom::@7 to printf_uchar [phi:display_info_rom::@7->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:display_info_rom::@7->printf_uchar#0] -- vbuz1=vbuc1 + // [1269] printf_uchar::uvalue#0 = display_info_rom::rom_chip#16 + // [1270] call printf_uchar + // [1207] phi from display_info_rom::@7 to printf_uchar [phi:display_info_rom::@7->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:display_info_rom::@7->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:display_info_rom::@7->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:display_info_rom::@7->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &cputc [phi:display_info_rom::@7->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &cputc [phi:display_info_rom::@7->printf_uchar#2] -- pprz1=pprc1 lda #cputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:display_info_rom::@7->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:display_info_rom::@7->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#0 [phi:display_info_rom::@7->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#0 [phi:display_info_rom::@7->printf_uchar#4] -- register_copy jsr printf_uchar - // [1261] phi from display_info_rom::@7 to display_info_rom::@8 [phi:display_info_rom::@7->display_info_rom::@8] + // [1271] phi from display_info_rom::@7 to display_info_rom::@8 [phi:display_info_rom::@7->display_info_rom::@8] // display_info_rom::@8 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1262] call printf_str - // [1128] phi from display_info_rom::@8 to printf_str [phi:display_info_rom::@8->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@8->printf_str#0] -- pprz1=pprc1 + // [1272] call printf_str + // [1138] phi from display_info_rom::@8 to printf_str [phi:display_info_rom::@8->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@8->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s [phi:display_info_rom::@8->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s [phi:display_info_rom::@8->printf_str#1] -- pbuz1=pbuc1 lda #<@s sta.z printf_str.s lda #>@s @@ -8378,40 +8457,40 @@ display_info_rom: { jsr printf_str // display_info_rom::@9 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1263] display_info_rom::$12 = display_info_rom::info_status#16 << 1 -- vbuz1=vbuz1_rol_1 + // [1273] display_info_rom::$12 = display_info_rom::info_status#16 << 1 -- vbuz1=vbuz1_rol_1 asl.z display_info_rom__12 - // [1264] printf_string::str#8 = status_text[display_info_rom::$12] -- pbuz1=qbuc1_derefidx_vbuz2 + // [1274] printf_string::str#8 = status_text[display_info_rom::$12] -- pbuz1=qbuc1_derefidx_vbuz2 ldy.z display_info_rom__12 lda status_text,y sta.z printf_string.str lda status_text+1,y sta.z printf_string.str+1 - // [1265] call printf_string - // [1137] phi from display_info_rom::@9 to printf_string [phi:display_info_rom::@9->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_rom::@9->printf_string#0] -- pprz1=pprc1 + // [1275] call printf_string + // [1147] phi from display_info_rom::@9 to printf_string [phi:display_info_rom::@9->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_rom::@9->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#8 [phi:display_info_rom::@9->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_rom::@9->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#8 [phi:display_info_rom::@9->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_rom::@9->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 9 [phi:display_info_rom::@9->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 9 [phi:display_info_rom::@9->printf_string#3] -- vbuz1=vbuc1 lda #9 sta.z printf_string.format_min_length jsr printf_string - // [1266] phi from display_info_rom::@9 to display_info_rom::@10 [phi:display_info_rom::@9->display_info_rom::@10] + // [1276] phi from display_info_rom::@9 to display_info_rom::@10 [phi:display_info_rom::@9->display_info_rom::@10] // display_info_rom::@10 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1267] call printf_str - // [1128] phi from display_info_rom::@10 to printf_str [phi:display_info_rom::@10->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@10->printf_str#0] -- pprz1=pprc1 + // [1277] call printf_str + // [1138] phi from display_info_rom::@10 to printf_str [phi:display_info_rom::@10->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@10->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s [phi:display_info_rom::@10->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s [phi:display_info_rom::@10->printf_str#1] -- pbuz1=pbuc1 lda #<@s sta.z printf_str.s lda #>@s @@ -8419,76 +8498,76 @@ display_info_rom: { jsr printf_str // display_info_rom::@11 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1268] printf_string::str#9 = rom_device_names[display_info_rom::$13] -- pbuz1=qbuc1_derefidx_vbum2 + // [1278] printf_string::str#9 = rom_device_names[display_info_rom::$13] -- pbuz1=qbuc1_derefidx_vbum2 ldy display_info_rom__13 lda rom_device_names,y sta.z printf_string.str lda rom_device_names+1,y sta.z printf_string.str+1 - // [1269] call printf_string - // [1137] phi from display_info_rom::@11 to printf_string [phi:display_info_rom::@11->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_rom::@11->printf_string#0] -- pprz1=pprc1 + // [1279] call printf_string + // [1147] phi from display_info_rom::@11 to printf_string [phi:display_info_rom::@11->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_rom::@11->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#9 [phi:display_info_rom::@11->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_rom::@11->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#9 [phi:display_info_rom::@11->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_rom::@11->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 6 [phi:display_info_rom::@11->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 6 [phi:display_info_rom::@11->printf_string#3] -- vbuz1=vbuc1 lda #6 sta.z printf_string.format_min_length jsr printf_string - // [1270] phi from display_info_rom::@11 to display_info_rom::@12 [phi:display_info_rom::@11->display_info_rom::@12] + // [1280] phi from display_info_rom::@11 to display_info_rom::@12 [phi:display_info_rom::@11->display_info_rom::@12] // display_info_rom::@12 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1271] call printf_str - // [1128] phi from display_info_rom::@12 to printf_str [phi:display_info_rom::@12->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@12->printf_str#0] -- pprz1=pprc1 + // [1281] call printf_str + // [1138] phi from display_info_rom::@12 to printf_str [phi:display_info_rom::@12->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@12->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s [phi:display_info_rom::@12->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s [phi:display_info_rom::@12->printf_str#1] -- pbuz1=pbuc1 lda #<@s sta.z printf_str.s lda #>@s sta.z printf_str.s+1 jsr printf_str // display_info_rom::@13 - // [1272] printf_string::str#33 = printf_string::str#10 -- pbuz1=pbum2 + // [1282] printf_string::str#35 = printf_string::str#10 -- pbuz1=pbum2 lda printf_string.str_1 sta.z printf_string.str lda printf_string.str_1+1 sta.z printf_string.str+1 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1273] call printf_string - // [1137] phi from display_info_rom::@13 to printf_string [phi:display_info_rom::@13->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_rom::@13->printf_string#0] -- pprz1=pprc1 + // [1283] call printf_string + // [1147] phi from display_info_rom::@13 to printf_string [phi:display_info_rom::@13->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_rom::@13->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#33 [phi:display_info_rom::@13->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_rom::@13->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#35 [phi:display_info_rom::@13->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_rom::@13->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = $d [phi:display_info_rom::@13->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = $d [phi:display_info_rom::@13->printf_string#3] -- vbuz1=vbuc1 lda #$d sta.z printf_string.format_min_length jsr printf_string - // [1274] phi from display_info_rom::@13 to display_info_rom::@14 [phi:display_info_rom::@13->display_info_rom::@14] + // [1284] phi from display_info_rom::@13 to display_info_rom::@14 [phi:display_info_rom::@13->display_info_rom::@14] // display_info_rom::@14 // printf("ROM%u %-9s %-6s %-13s ", rom_chip, status_text[info_status], rom_device_names[rom_chip], &rom_release_text[rom_chip*13]) - // [1275] call printf_str - // [1128] phi from display_info_rom::@14 to printf_str [phi:display_info_rom::@14->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@14->printf_str#0] -- pprz1=pprc1 + // [1285] call printf_str + // [1138] phi from display_info_rom::@14 to printf_str [phi:display_info_rom::@14->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:display_info_rom::@14->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s [phi:display_info_rom::@14->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s [phi:display_info_rom::@14->printf_str#1] -- pbuz1=pbuc1 lda #<@s sta.z printf_str.s lda #>@s @@ -8496,7 +8575,7 @@ display_info_rom: { jsr printf_str // display_info_rom::@15 // if(info_text) - // [1276] if((char *)0==display_info_rom::info_text#16) goto display_info_rom::@1 -- pbuc1_eq_pbuz1_then_la1 + // [1286] if((char *)0==display_info_rom::info_text#16) goto display_info_rom::@1 -- pbuc1_eq_pbuz1_then_la1 lda.z info_text cmp #<0 bne !+ @@ -8506,43 +8585,43 @@ display_info_rom: { !: // display_info_rom::@2 // printf("%-25s", info_text) - // [1277] printf_string::str#11 = display_info_rom::info_text#16 -- pbuz1=pbuz2 + // [1287] printf_string::str#11 = display_info_rom::info_text#16 -- pbuz1=pbuz2 lda.z info_text sta.z printf_string.str lda.z info_text+1 sta.z printf_string.str+1 - // [1278] call printf_string - // [1137] phi from display_info_rom::@2 to printf_string [phi:display_info_rom::@2->printf_string] - // [1137] phi printf_string::putc#22 = &cputc [phi:display_info_rom::@2->printf_string#0] -- pprz1=pprc1 + // [1288] call printf_string + // [1147] phi from display_info_rom::@2 to printf_string [phi:display_info_rom::@2->printf_string] + // [1147] phi printf_string::putc#24 = &cputc [phi:display_info_rom::@2->printf_string#0] -- pprz1=pprc1 lda #cputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#11 [phi:display_info_rom::@2->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 1 [phi:display_info_rom::@2->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#11 [phi:display_info_rom::@2->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 1 [phi:display_info_rom::@2->printf_string#2] -- vbuz1=vbuc1 lda #1 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = $19 [phi:display_info_rom::@2->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = $19 [phi:display_info_rom::@2->printf_string#3] -- vbuz1=vbuc1 lda #$19 sta.z printf_string.format_min_length jsr printf_string // display_info_rom::@1 __b1: // gotoxy(x,y) - // [1279] gotoxy::x#18 = display_info_rom::x#0 -- vbuz1=vbuz2 + // [1289] gotoxy::x#18 = display_info_rom::x#0 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [1280] gotoxy::y#18 = display_info_rom::y#0 -- vbuz1=vbuz2 + // [1290] gotoxy::y#18 = display_info_rom::y#0 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [1281] call gotoxy - // [744] phi from display_info_rom::@1 to gotoxy [phi:display_info_rom::@1->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#18 [phi:display_info_rom::@1->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#18 [phi:display_info_rom::@1->gotoxy#1] -- register_copy + // [1291] call gotoxy + // [751] phi from display_info_rom::@1 to gotoxy [phi:display_info_rom::@1->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#18 [phi:display_info_rom::@1->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#18 [phi:display_info_rom::@1->gotoxy#1] -- register_copy jsr gotoxy // display_info_rom::@return // } - // [1282] return + // [1292] return rts .segment Data s: .text "ROM" @@ -8556,11 +8635,11 @@ rom_file: { .label rom_file__0 = $2c .label rom_chip = $2c // if(rom_chip) - // [1284] if(0!=rom_file::rom_chip#2) goto rom_file::@1 -- 0_neq_vbuz1_then_la1 + // [1294] if(0!=rom_file::rom_chip#2) goto rom_file::@1 -- 0_neq_vbuz1_then_la1 lda.z rom_chip bne __b1 - // [1287] phi from rom_file to rom_file::@return [phi:rom_file->rom_file::@return] - // [1287] phi rom_file::return#2 = rom_file::file_rom_cx16 [phi:rom_file->rom_file::@return#0] -- pbum1=pbuc1 + // [1297] phi from rom_file to rom_file::@return [phi:rom_file->rom_file::@return] + // [1297] phi rom_file::return#2 = rom_file::file_rom_cx16 [phi:rom_file->rom_file::@return#0] -- pbum1=pbuc1 lda #file_rom_cx16 @@ -8569,23 +8648,23 @@ rom_file: { // rom_file::@1 __b1: // '0'+rom_chip - // [1285] rom_file::$0 = '0' + rom_file::rom_chip#2 -- vbuz1=vbuc1_plus_vbuz1 + // [1295] rom_file::$0 = '0' + rom_file::rom_chip#2 -- vbuz1=vbuc1_plus_vbuz1 lda #'0' clc adc.z rom_file__0 sta.z rom_file__0 // file_rom_card[3] = '0'+rom_chip - // [1286] *(rom_file::file_rom_card+3) = rom_file::$0 -- _deref_pbuc1=vbuz1 + // [1296] *(rom_file::file_rom_card+3) = rom_file::$0 -- _deref_pbuc1=vbuz1 sta file_rom_card+3 - // [1287] phi from rom_file::@1 to rom_file::@return [phi:rom_file::@1->rom_file::@return] - // [1287] phi rom_file::return#2 = rom_file::file_rom_card [phi:rom_file::@1->rom_file::@return#0] -- pbum1=pbuc1 + // [1297] phi from rom_file::@1 to rom_file::@return [phi:rom_file::@1->rom_file::@return] + // [1297] phi rom_file::return#2 = rom_file::file_rom_card [phi:rom_file::@1->rom_file::@return#0] -- pbum1=pbuc1 lda #file_rom_card sta return+1 // rom_file::@return // } - // [1288] return + // [1298] return rts .segment Data file_rom_cx16: .text "ROM.BIN" @@ -8596,221 +8675,245 @@ rom_file: { } .segment Code // rom_read -// __mem() unsigned long rom_read(__mem() char display_progress, char rom_chip, __mem() char *file, char info_status, __mem() char brom_bank_start, __zp($6f) unsigned long rom_size) +// __mem() unsigned long rom_read(char rom_chip, __zp($c8) char *file, __mem() char info_status, __mem() char brom_bank_start, __zp($6f) unsigned long rom_size) rom_read: { .const bank_set_brom1_bank = 0 - .label rom_address = $55 - .label ram_address = $c8 - .label rom_row_current = $7a + .label rom_address = $56 + .label ram_address = $6d + .label rom_row_current = $7e + .label file = $c8 .label rom_size = $6f + .label rom_action_text = $79 // unsigned long rom_address = rom_address_from_bank(brom_bank_start) - // [1290] rom_address_from_bank::rom_bank#0 = rom_read::brom_bank_start#22 -- vbum1=vbum2 + // [1300] rom_address_from_bank::rom_bank#0 = rom_read::brom_bank_start#23 -- vbum1=vbum2 lda brom_bank_start sta rom_address_from_bank.rom_bank - // [1291] call rom_address_from_bank - // [2403] phi from rom_read to rom_address_from_bank [phi:rom_read->rom_address_from_bank] - // [2403] phi rom_address_from_bank::rom_bank#3 = rom_address_from_bank::rom_bank#0 [phi:rom_read->rom_address_from_bank#0] -- register_copy + // [1301] call rom_address_from_bank + // [2417] phi from rom_read to rom_address_from_bank [phi:rom_read->rom_address_from_bank] + // [2417] phi rom_address_from_bank::rom_bank#3 = rom_address_from_bank::rom_bank#0 [phi:rom_read->rom_address_from_bank#0] -- register_copy jsr rom_address_from_bank // unsigned long rom_address = rom_address_from_bank(brom_bank_start) - // [1292] rom_address_from_bank::return#2 = rom_address_from_bank::return#0 - // rom_read::@17 - // [1293] rom_read::rom_address#0 = rom_address_from_bank::return#2 + // [1302] rom_address_from_bank::return#2 = rom_address_from_bank::return#0 + // rom_read::@19 + // [1303] rom_read::rom_address#0 = rom_address_from_bank::return#2 // rom_read::bank_set_bram1 // BRAM = bank - // [1294] BRAM = 0 -- vbuz1=vbuc1 + // [1304] BRAM = 0 -- vbuz1=vbuc1 lda #0 sta.z BRAM // rom_read::bank_set_brom1 // BROM = bank - // [1295] BROM = rom_read::bank_set_brom1_bank#0 -- vbuz1=vbuc1 + // [1305] BROM = rom_read::bank_set_brom1_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom1_bank sta.z BROM - // [1296] phi from rom_read::bank_set_brom1 to rom_read::@15 [phi:rom_read::bank_set_brom1->rom_read::@15] - // rom_read::@15 + // rom_read::@17 + // if(info_status == STATUS_READING) + // [1306] if(rom_read::info_status#10==STATUS_READING) goto rom_read::@1 -- vbum1_eq_vbuc1_then_la1 + lda #STATUS_READING + cmp info_status + beq __b1 + // [1308] phi from rom_read::@17 to rom_read::@2 [phi:rom_read::@17->rom_read::@2] + // [1308] phi rom_read::rom_action_text#12 = smc_action_text#2 [phi:rom_read::@17->rom_read::@2#0] -- pbuz1=pbuc1 + lda #smc_action_text_1 + sta.z rom_action_text+1 + jmp __b2 + // [1307] phi from rom_read::@17 to rom_read::@1 [phi:rom_read::@17->rom_read::@1] + // rom_read::@1 + __b1: + // [1308] phi from rom_read::@1 to rom_read::@2 [phi:rom_read::@1->rom_read::@2] + // [1308] phi rom_read::rom_action_text#12 = smc_action_text#1 [phi:rom_read::@1->rom_read::@2#0] -- pbuz1=pbuc1 + lda #smc_action_text + sta.z rom_action_text+1 + // rom_read::@2 + __b2: // sprintf(info_text, "Opening %s from SD card ...", file) - // [1297] call snprintf_init - // [1123] phi from rom_read::@15 to snprintf_init [phi:rom_read::@15->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:rom_read::@15->snprintf_init#0] -- pbuz1=pbuc1 + // [1309] call snprintf_init + // [1133] phi from rom_read::@2 to snprintf_init [phi:rom_read::@2->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:rom_read::@2->snprintf_init#0] -- pbuz1=pbuc1 lda #info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1298] phi from rom_read::@15 to rom_read::@18 [phi:rom_read::@15->rom_read::@18] - // rom_read::@18 + // [1310] phi from rom_read::@2 to rom_read::@20 [phi:rom_read::@2->rom_read::@20] + // rom_read::@20 // sprintf(info_text, "Opening %s from SD card ...", file) - // [1299] call printf_str - // [1128] phi from rom_read::@18 to printf_str [phi:rom_read::@18->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@18->printf_str#0] -- pprz1=pprc1 + // [1311] call printf_str + // [1138] phi from rom_read::@20 to printf_str [phi:rom_read::@20->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@20->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_read::s [phi:rom_read::@18->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_read::s [phi:rom_read::@20->printf_str#1] -- pbuz1=pbuc1 lda #s sta.z printf_str.s+1 jsr printf_str - // rom_read::@19 + // rom_read::@21 // sprintf(info_text, "Opening %s from SD card ...", file) - // [1300] printf_string::str#13 = rom_read::file#11 -- pbuz1=pbum2 - lda file + // [1312] printf_string::str#14 = rom_read::file#11 -- pbuz1=pbuz2 + lda.z file sta.z printf_string.str - lda file+1 + lda.z file+1 sta.z printf_string.str+1 - // [1301] call printf_string - // [1137] phi from rom_read::@19 to printf_string [phi:rom_read::@19->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:rom_read::@19->printf_string#0] -- pprz1=pprc1 + // [1313] call printf_string + // [1147] phi from rom_read::@21 to printf_string [phi:rom_read::@21->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:rom_read::@21->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#13 [phi:rom_read::@19->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:rom_read::@19->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#14 [phi:rom_read::@21->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:rom_read::@21->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:rom_read::@19->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:rom_read::@21->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // [1302] phi from rom_read::@19 to rom_read::@20 [phi:rom_read::@19->rom_read::@20] - // rom_read::@20 + // [1314] phi from rom_read::@21 to rom_read::@22 [phi:rom_read::@21->rom_read::@22] + // rom_read::@22 // sprintf(info_text, "Opening %s from SD card ...", file) - // [1303] call printf_str - // [1128] phi from rom_read::@20 to printf_str [phi:rom_read::@20->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@20->printf_str#0] -- pprz1=pprc1 + // [1315] call printf_str + // [1138] phi from rom_read::@22 to printf_str [phi:rom_read::@22->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@22->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_read::s1 [phi:rom_read::@20->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_read::s1 [phi:rom_read::@22->printf_str#1] -- pbuz1=pbuc1 lda #s1 sta.z printf_str.s+1 jsr printf_str - // rom_read::@21 + // rom_read::@23 // sprintf(info_text, "Opening %s from SD card ...", file) - // [1304] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1316] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1305] callexecute snputc -- call_vprc1 + // [1317] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1307] call display_action_text - // [1208] phi from rom_read::@21 to display_action_text [phi:rom_read::@21->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:rom_read::@21->display_action_text#0] -- pbuz1=pbuc1 + // [1319] call display_action_text + // [1218] phi from rom_read::@23 to display_action_text [phi:rom_read::@23->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:rom_read::@23->display_action_text#0] -- pbuz1=pbuc1 lda #info_text sta.z display_action_text.info_text+1 jsr display_action_text - // rom_read::@22 + // rom_read::@24 // FILE *fp = fopen(file, "r") - // [1308] fopen::path#3 = rom_read::file#11 -- pbuz1=pbum2 - lda file + // [1320] fopen::path#3 = rom_read::file#11 -- pbuz1=pbuz2 + lda.z file sta.z fopen.path - lda file+1 + lda.z file+1 sta.z fopen.path+1 - // [1309] call fopen - // [2167] phi from rom_read::@22 to fopen [phi:rom_read::@22->fopen] - // [2167] phi __errno#299 = __errno#108 [phi:rom_read::@22->fopen#0] -- register_copy - // [2167] phi fopen::pathtoken#0 = fopen::path#3 [phi:rom_read::@22->fopen#1] -- register_copy + // [1321] call fopen + // [2181] phi from rom_read::@24 to fopen [phi:rom_read::@24->fopen] + // [2181] phi __errno#302 = __errno#110 [phi:rom_read::@24->fopen#0] -- register_copy + // [2181] phi fopen::pathtoken#0 = fopen::path#3 [phi:rom_read::@24->fopen#1] -- register_copy jsr fopen // FILE *fp = fopen(file, "r") - // [1310] fopen::return#4 = fopen::return#2 - // rom_read::@23 - // [1311] rom_read::fp#0 = fopen::return#4 -- pssm1=pssz2 + // [1322] fopen::return#4 = fopen::return#2 + // rom_read::@25 + // [1323] rom_read::fp#0 = fopen::return#4 -- pssm1=pssz2 lda.z fopen.return sta fp lda.z fopen.return+1 sta fp+1 // if (fp) - // [1312] if((struct $2 *)0==rom_read::fp#0) goto rom_read::@1 -- pssc1_eq_pssm1_then_la1 + // [1324] if((struct $2 *)0==rom_read::fp#0) goto rom_read::@3 -- pssc1_eq_pssm1_then_la1 lda fp cmp #<0 bne !+ lda fp+1 cmp #>0 - beq __b2 + beq __b4 !: - // [1313] phi from rom_read::@23 to rom_read::@2 [phi:rom_read::@23->rom_read::@2] - // rom_read::@2 + // [1325] phi from rom_read::@25 to rom_read::@4 [phi:rom_read::@25->rom_read::@4] + // rom_read::@4 // gotoxy(x, y) - // [1314] call gotoxy - // [744] phi from rom_read::@2 to gotoxy [phi:rom_read::@2->gotoxy] - // [744] phi gotoxy::y#30 = PROGRESS_Y [phi:rom_read::@2->gotoxy#0] -- vbuz1=vbuc1 + // [1326] call gotoxy + // [751] phi from rom_read::@4 to gotoxy [phi:rom_read::@4->gotoxy] + // [751] phi gotoxy::y#30 = PROGRESS_Y [phi:rom_read::@4->gotoxy#0] -- vbuz1=vbuc1 lda #PROGRESS_Y sta.z gotoxy.y - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:rom_read::@2->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:rom_read::@4->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1315] phi from rom_read::@2 to rom_read::@3 [phi:rom_read::@2->rom_read::@3] - // [1315] phi rom_read::y#11 = PROGRESS_Y [phi:rom_read::@2->rom_read::@3#0] -- vbum1=vbuc1 + // [1327] phi from rom_read::@4 to rom_read::@5 [phi:rom_read::@4->rom_read::@5] + // [1327] phi rom_read::y#11 = PROGRESS_Y [phi:rom_read::@4->rom_read::@5#0] -- vbum1=vbuc1 lda #PROGRESS_Y sta y - // [1315] phi rom_read::rom_row_current#10 = 0 [phi:rom_read::@2->rom_read::@3#1] -- vwuz1=vwuc1 + // [1327] phi rom_read::rom_row_current#10 = 0 [phi:rom_read::@4->rom_read::@5#1] -- vwuz1=vwuc1 lda #<0 sta.z rom_row_current sta.z rom_row_current+1 - // [1315] phi rom_read::brom_bank_start#10 = rom_read::brom_bank_start#22 [phi:rom_read::@2->rom_read::@3#2] -- register_copy - // [1315] phi rom_read::rom_address#10 = rom_read::rom_address#0 [phi:rom_read::@2->rom_read::@3#3] -- register_copy - // [1315] phi rom_read::ram_address#10 = (char *)$7800 [phi:rom_read::@2->rom_read::@3#4] -- pbuz1=pbuc1 + // [1327] phi rom_read::brom_bank_start#10 = rom_read::brom_bank_start#23 [phi:rom_read::@4->rom_read::@5#2] -- register_copy + // [1327] phi rom_read::rom_address#10 = rom_read::rom_address#0 [phi:rom_read::@4->rom_read::@5#3] -- register_copy + // [1327] phi rom_read::ram_address#10 = (char *)$7800 [phi:rom_read::@4->rom_read::@5#4] -- pbuz1=pbuc1 lda #<$7800 sta.z ram_address lda #>$7800 sta.z ram_address+1 - // [1315] phi rom_read::bram_bank#10 = 0 [phi:rom_read::@2->rom_read::@3#5] -- vbum1=vbuc1 + // [1327] phi rom_read::bram_bank#10 = 0 [phi:rom_read::@4->rom_read::@5#5] -- vbum1=vbuc1 lda #0 sta bram_bank - // [1315] phi rom_read::rom_file_size#11 = 0 [phi:rom_read::@2->rom_read::@3#6] -- vdum1=vduc1 + // [1327] phi rom_read::rom_file_size#11 = 0 [phi:rom_read::@4->rom_read::@5#6] -- vdum1=vduc1 sta rom_file_size sta rom_file_size+1 lda #<0>>$10 sta rom_file_size+2 lda #>0>>$10 sta rom_file_size+3 - // rom_read::@3 - __b3: + // rom_read::@5 + __b5: // while (rom_file_size < rom_size) - // [1316] if(rom_read::rom_file_size#11fclose] - // [2302] phi fclose::stream#2 = fclose::stream#1 [phi:rom_read::@7->fclose#0] -- register_copy + // [1330] call fclose + // [2316] phi from rom_read::@9 to fclose [phi:rom_read::@9->fclose] + // [2316] phi fclose::stream#2 = fclose::stream#1 [phi:rom_read::@9->fclose#0] -- register_copy jsr fclose - // [1319] phi from rom_read::@7 to rom_read::@1 [phi:rom_read::@7->rom_read::@1] - // [1319] phi rom_read::return#0 = rom_read::rom_file_size#11 [phi:rom_read::@7->rom_read::@1#0] -- register_copy + // [1331] phi from rom_read::@9 to rom_read::@3 [phi:rom_read::@9->rom_read::@3] + // [1331] phi rom_read::return#0 = rom_read::rom_file_size#11 [phi:rom_read::@9->rom_read::@3#0] -- register_copy rts - // [1319] phi from rom_read::@23 to rom_read::@1 [phi:rom_read::@23->rom_read::@1] - __b2: - // [1319] phi rom_read::return#0 = 0 [phi:rom_read::@23->rom_read::@1#0] -- vdum1=vduc1 + // [1331] phi from rom_read::@25 to rom_read::@3 [phi:rom_read::@25->rom_read::@3] + __b4: + // [1331] phi rom_read::return#0 = 0 [phi:rom_read::@25->rom_read::@3#0] -- vdum1=vduc1 lda #<0 sta return sta return+1 @@ -8818,79 +8921,100 @@ rom_read: { sta return+2 lda #>0>>$10 sta return+3 - // rom_read::@1 + // rom_read::@3 // rom_read::@return // } - // [1320] return + // [1332] return rts - // [1321] phi from rom_read::@3 to rom_read::@4 [phi:rom_read::@3->rom_read::@4] - // rom_read::@4 - __b4: - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1322] call snprintf_init - // [1123] phi from rom_read::@4 to snprintf_init [phi:rom_read::@4->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:rom_read::@4->snprintf_init#0] -- pbuz1=pbuc1 + // [1333] phi from rom_read::@5 to rom_read::@6 [phi:rom_read::@5->rom_read::@6] + // rom_read::@6 + __b6: + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1334] call snprintf_init + // [1133] phi from rom_read::@6 to snprintf_init [phi:rom_read::@6->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:rom_read::@6->snprintf_init#0] -- pbuz1=pbuc1 lda #info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1323] phi from rom_read::@4 to rom_read::@24 [phi:rom_read::@4->rom_read::@24] - // rom_read::@24 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1324] call printf_str - // [1128] phi from rom_read::@24 to printf_str [phi:rom_read::@24->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@24->printf_str#0] -- pprz1=pprc1 + // rom_read::@26 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1335] printf_string::str#15 = rom_read::rom_action_text#12 -- pbuz1=pbuz2 + lda.z rom_action_text + sta.z printf_string.str + lda.z rom_action_text+1 + sta.z printf_string.str+1 + // [1336] call printf_string + // [1147] phi from rom_read::@26 to printf_string [phi:rom_read::@26->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:rom_read::@26->printf_string#0] -- pprz1=pprc1 + lda #snputc + sta.z printf_string.putc+1 + // [1147] phi printf_string::str#24 = printf_string::str#15 [phi:rom_read::@26->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:rom_read::@26->printf_string#2] -- vbuz1=vbuc1 + lda #0 + sta.z printf_string.format_justify_left + // [1147] phi printf_string::format_min_length#24 = 0 [phi:rom_read::@26->printf_string#3] -- vbuz1=vbuc1 + sta.z printf_string.format_min_length + jsr printf_string + // [1337] phi from rom_read::@26 to rom_read::@27 [phi:rom_read::@26->rom_read::@27] + // rom_read::@27 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1338] call printf_str + // [1138] phi from rom_read::@27 to printf_str [phi:rom_read::@27->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@27->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s11 [phi:rom_read::@24->printf_str#1] -- pbuz1=pbuc1 - lda #printf_str#1] -- pbuz1=pbuc1 + lda #<@s sta.z printf_str.s - lda #>s11 + lda #>@s sta.z printf_str.s+1 jsr printf_str - // rom_read::@25 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1325] printf_string::str#14 = rom_read::file#11 -- pbuz1=pbum2 - lda file + // rom_read::@28 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1339] printf_string::str#16 = rom_read::file#11 -- pbuz1=pbuz2 + lda.z file sta.z printf_string.str - lda file+1 + lda.z file+1 sta.z printf_string.str+1 - // [1326] call printf_string - // [1137] phi from rom_read::@25 to printf_string [phi:rom_read::@25->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:rom_read::@25->printf_string#0] -- pprz1=pprc1 + // [1340] call printf_string + // [1147] phi from rom_read::@28 to printf_string [phi:rom_read::@28->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:rom_read::@28->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#14 [phi:rom_read::@25->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:rom_read::@25->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#16 [phi:rom_read::@28->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:rom_read::@28->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:rom_read::@25->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:rom_read::@28->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string - // [1327] phi from rom_read::@25 to rom_read::@26 [phi:rom_read::@25->rom_read::@26] - // rom_read::@26 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1328] call printf_str - // [1128] phi from rom_read::@26 to printf_str [phi:rom_read::@26->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@26->printf_str#0] -- pprz1=pprc1 + // [1341] phi from rom_read::@28 to rom_read::@29 [phi:rom_read::@28->rom_read::@29] + // rom_read::@29 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1342] call printf_str + // [1138] phi from rom_read::@29 to printf_str [phi:rom_read::@29->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@29->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s3 [phi:rom_read::@26->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s3 [phi:rom_read::@29->printf_str#1] -- pbuz1=pbuc1 lda #s3 sta.z printf_str.s+1 jsr printf_str - // rom_read::@27 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1329] printf_ulong::uvalue#0 = rom_read::rom_file_size#11 -- vduz1=vdum2 + // rom_read::@30 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1343] printf_ulong::uvalue#0 = rom_read::rom_file_size#11 -- vduz1=vdum2 lda rom_file_size sta.z printf_ulong.uvalue lda rom_file_size+1 @@ -8899,38 +9023,38 @@ rom_read: { sta.z printf_ulong.uvalue+2 lda rom_file_size+3 sta.z printf_ulong.uvalue+3 - // [1330] call printf_ulong - // [1440] phi from rom_read::@27 to printf_ulong [phi:rom_read::@27->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_read::@27->printf_ulong#0] -- vbuz1=vbuc1 + // [1344] call printf_ulong + // [1454] phi from rom_read::@30 to printf_ulong [phi:rom_read::@30->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_read::@30->printf_ulong#0] -- vbuz1=vbuc1 lda #1 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 5 [phi:rom_read::@27->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 5 [phi:rom_read::@30->printf_ulong#1] -- vbuz1=vbuc1 lda #5 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_read::@27->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_read::@30->printf_ulong#2] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#0 [phi:rom_read::@27->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#0 [phi:rom_read::@30->printf_ulong#3] -- register_copy jsr printf_ulong - // [1331] phi from rom_read::@27 to rom_read::@28 [phi:rom_read::@27->rom_read::@28] - // rom_read::@28 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1332] call printf_str - // [1128] phi from rom_read::@28 to printf_str [phi:rom_read::@28->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@28->printf_str#0] -- pprz1=pprc1 + // [1345] phi from rom_read::@30 to rom_read::@31 [phi:rom_read::@30->rom_read::@31] + // rom_read::@31 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1346] call printf_str + // [1138] phi from rom_read::@31 to printf_str [phi:rom_read::@31->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@31->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s1 [phi:rom_read::@28->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s1 [phi:rom_read::@31->printf_str#1] -- pbuz1=pbuc1 lda #<@s1 sta.z printf_str.s lda #>@s1 sta.z printf_str.s+1 jsr printf_str - // rom_read::@29 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1333] printf_ulong::uvalue#1 = rom_read::rom_size#12 -- vduz1=vduz2 + // rom_read::@32 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1347] printf_ulong::uvalue#1 = rom_read::rom_size#12 -- vduz1=vduz2 lda.z rom_size sta.z printf_ulong.uvalue lda.z rom_size+1 @@ -8939,257 +9063,258 @@ rom_read: { sta.z printf_ulong.uvalue+2 lda.z rom_size+3 sta.z printf_ulong.uvalue+3 - // [1334] call printf_ulong - // [1440] phi from rom_read::@29 to printf_ulong [phi:rom_read::@29->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_read::@29->printf_ulong#0] -- vbuz1=vbuc1 + // [1348] call printf_ulong + // [1454] phi from rom_read::@32 to printf_ulong [phi:rom_read::@32->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_read::@32->printf_ulong#0] -- vbuz1=vbuc1 lda #1 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 5 [phi:rom_read::@29->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 5 [phi:rom_read::@32->printf_ulong#1] -- vbuz1=vbuc1 lda #5 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_read::@29->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_read::@32->printf_ulong#2] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#1 [phi:rom_read::@29->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#1 [phi:rom_read::@32->printf_ulong#3] -- register_copy jsr printf_ulong - // [1335] phi from rom_read::@29 to rom_read::@30 [phi:rom_read::@29->rom_read::@30] - // rom_read::@30 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1336] call printf_str - // [1128] phi from rom_read::@30 to printf_str [phi:rom_read::@30->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@30->printf_str#0] -- pprz1=pprc1 + // [1349] phi from rom_read::@32 to rom_read::@33 [phi:rom_read::@32->rom_read::@33] + // rom_read::@33 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1350] call printf_str + // [1138] phi from rom_read::@33 to printf_str [phi:rom_read::@33->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@33->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s2 [phi:rom_read::@30->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s2 [phi:rom_read::@33->printf_str#1] -- pbuz1=pbuc1 lda #s2 sta.z printf_str.s+1 jsr printf_str - // rom_read::@31 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1337] printf_uchar::uvalue#9 = rom_read::bram_bank#10 -- vbuz1=vbum2 + // rom_read::@34 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1351] printf_uchar::uvalue#9 = rom_read::bram_bank#10 -- vbuz1=vbum2 lda bram_bank sta.z printf_uchar.uvalue - // [1338] call printf_uchar - // [1197] phi from rom_read::@31 to printf_uchar [phi:rom_read::@31->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_read::@31->printf_uchar#0] -- vbuz1=vbuc1 + // [1352] call printf_uchar + // [1207] phi from rom_read::@34 to printf_uchar [phi:rom_read::@34->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_read::@34->printf_uchar#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 2 [phi:rom_read::@31->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 2 [phi:rom_read::@34->printf_uchar#1] -- vbuz1=vbuc1 lda #2 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:rom_read::@31->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:rom_read::@34->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_read::@31->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_read::@34->printf_uchar#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#9 [phi:rom_read::@31->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#9 [phi:rom_read::@34->printf_uchar#4] -- register_copy jsr printf_uchar - // [1339] phi from rom_read::@31 to rom_read::@32 [phi:rom_read::@31->rom_read::@32] - // rom_read::@32 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1340] call printf_str - // [1128] phi from rom_read::@32 to printf_str [phi:rom_read::@32->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@32->printf_str#0] -- pprz1=pprc1 + // [1353] phi from rom_read::@34 to rom_read::@35 [phi:rom_read::@34->rom_read::@35] + // rom_read::@35 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1354] call printf_str + // [1138] phi from rom_read::@35 to printf_str [phi:rom_read::@35->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@35->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s3 [phi:rom_read::@32->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s3 [phi:rom_read::@35->printf_str#1] -- pbuz1=pbuc1 lda #s3 sta.z printf_str.s+1 jsr printf_str - // rom_read::@33 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1341] printf_uint::uvalue#10 = (unsigned int)rom_read::ram_address#10 -- vwuz1=vwuz2 + // rom_read::@36 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1355] printf_uint::uvalue#10 = (unsigned int)rom_read::ram_address#10 -- vwuz1=vwuz2 lda.z ram_address sta.z printf_uint.uvalue lda.z ram_address+1 sta.z printf_uint.uvalue+1 - // [1342] call printf_uint - // [1825] phi from rom_read::@33 to printf_uint [phi:rom_read::@33->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:rom_read::@33->printf_uint#0] -- vbuz1=vbuc1 + // [1356] call printf_uint + // [1839] phi from rom_read::@36 to printf_uint [phi:rom_read::@36->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:rom_read::@36->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 4 [phi:rom_read::@33->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 4 [phi:rom_read::@36->printf_uint#1] -- vbuz1=vbuc1 lda #4 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:rom_read::@33->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:rom_read::@36->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:rom_read::@33->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:rom_read::@36->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#10 [phi:rom_read::@33->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#10 [phi:rom_read::@36->printf_uint#4] -- register_copy jsr printf_uint - // [1343] phi from rom_read::@33 to rom_read::@34 [phi:rom_read::@33->rom_read::@34] - // rom_read::@34 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1344] call printf_str - // [1128] phi from rom_read::@34 to printf_str [phi:rom_read::@34->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_read::@34->printf_str#0] -- pprz1=pprc1 + // [1357] phi from rom_read::@36 to rom_read::@37 [phi:rom_read::@36->rom_read::@37] + // rom_read::@37 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1358] call printf_str + // [1138] phi from rom_read::@37 to printf_str [phi:rom_read::@37->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_read::@37->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s4 [phi:rom_read::@34->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s4 [phi:rom_read::@37->printf_str#1] -- pbuz1=pbuc1 lda #s4 sta.z printf_str.s+1 jsr printf_str - // rom_read::@35 - // sprintf(info_text, "Reading %s:%05x/%05x -> RAM:%02x:%04p ...", file, rom_file_size, rom_size, bram_bank, ram_address) - // [1345] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // rom_read::@38 + // sprintf(info_text, "%s %s:%05x/%05x -> RAM:%02x:%04p ...", rom_action_text, file, rom_file_size, rom_size, bram_bank, ram_address) + // [1359] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1346] callexecute snputc -- call_vprc1 + // [1360] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1348] call display_action_text - // [1208] phi from rom_read::@35 to display_action_text [phi:rom_read::@35->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:rom_read::@35->display_action_text#0] -- pbuz1=pbuc1 + // [1362] call display_action_text + // [1218] phi from rom_read::@38 to display_action_text [phi:rom_read::@38->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:rom_read::@38->display_action_text#0] -- pbuz1=pbuc1 lda #info_text sta.z display_action_text.info_text+1 jsr display_action_text - // rom_read::@36 + // rom_read::@39 // rom_address % 0x04000 - // [1349] rom_read::$11 = rom_read::rom_address#10 & $4000-1 -- vdum1=vduz2_band_vduc1 + // [1363] rom_read::$12 = rom_read::rom_address#10 & $4000-1 -- vdum1=vduz2_band_vduc1 lda.z rom_address and #<$4000-1 - sta rom_read__11 + sta rom_read__12 lda.z rom_address+1 and #>$4000-1 - sta rom_read__11+1 + sta rom_read__12+1 lda.z rom_address+2 and #<$4000-1>>$10 - sta rom_read__11+2 + sta rom_read__12+2 lda.z rom_address+3 and #>$4000-1>>$10 - sta rom_read__11+3 + sta rom_read__12+3 // if (!(rom_address % 0x04000)) - // [1350] if(0!=rom_read::$11) goto rom_read::@5 -- 0_neq_vdum1_then_la1 - lda rom_read__11 - ora rom_read__11+1 - ora rom_read__11+2 - ora rom_read__11+3 - bne __b5 - // rom_read::@11 + // [1364] if(0!=rom_read::$12) goto rom_read::@7 -- 0_neq_vdum1_then_la1 + lda rom_read__12 + ora rom_read__12+1 + ora rom_read__12+2 + ora rom_read__12+3 + bne __b7 + // rom_read::@13 // brom_bank_start++; - // [1351] rom_read::brom_bank_start#0 = ++ rom_read::brom_bank_start#10 -- vbum1=_inc_vbum1 + // [1365] rom_read::brom_bank_start#0 = ++ rom_read::brom_bank_start#10 -- vbum1=_inc_vbum1 inc brom_bank_start - // [1352] phi from rom_read::@11 rom_read::@36 to rom_read::@5 [phi:rom_read::@11/rom_read::@36->rom_read::@5] - // [1352] phi rom_read::brom_bank_start#20 = rom_read::brom_bank_start#0 [phi:rom_read::@11/rom_read::@36->rom_read::@5#0] -- register_copy - // rom_read::@5 - __b5: + // [1366] phi from rom_read::@13 rom_read::@39 to rom_read::@7 [phi:rom_read::@13/rom_read::@39->rom_read::@7] + // [1366] phi rom_read::brom_bank_start#21 = rom_read::brom_bank_start#0 [phi:rom_read::@13/rom_read::@39->rom_read::@7#0] -- register_copy + // rom_read::@7 + __b7: // rom_read::bank_set_bram2 // BRAM = bank - // [1353] BRAM = rom_read::bram_bank#10 -- vbuz1=vbum2 + // [1367] BRAM = rom_read::bram_bank#10 -- vbuz1=vbum2 lda bram_bank sta.z BRAM - // rom_read::@16 + // rom_read::@18 // unsigned int rom_package_read = fgets(ram_address, ROM_PROGRESS_CELL, fp) - // [1354] fgets::ptr#4 = rom_read::ram_address#10 -- pbuz1=pbuz2 + // [1368] fgets::ptr#4 = rom_read::ram_address#10 -- pbuz1=pbuz2 lda.z ram_address sta.z fgets.ptr lda.z ram_address+1 sta.z fgets.ptr+1 - // [1355] fgets::stream#2 = rom_read::fp#0 -- pssz1=pssm2 + // [1369] fgets::stream#2 = rom_read::fp#0 -- pssz1=pssm2 lda fp sta.z fgets.stream lda fp+1 sta.z fgets.stream+1 - // [1356] call fgets - // [2248] phi from rom_read::@16 to fgets [phi:rom_read::@16->fgets] - // [2248] phi fgets::ptr#13 = fgets::ptr#4 [phi:rom_read::@16->fgets#0] -- register_copy - // [2248] phi fgets::size#11 = ROM_PROGRESS_CELL [phi:rom_read::@16->fgets#1] -- vwuz1=vwuc1 + // [1370] call fgets + // [2262] phi from rom_read::@18 to fgets [phi:rom_read::@18->fgets] + // [2262] phi fgets::ptr#13 = fgets::ptr#4 [phi:rom_read::@18->fgets#0] -- register_copy + // [2262] phi fgets::size#11 = ROM_PROGRESS_CELL [phi:rom_read::@18->fgets#1] -- vwuz1=vwuc1 lda #ROM_PROGRESS_CELL sta.z fgets.size+1 - // [2248] phi fgets::stream#3 = fgets::stream#2 [phi:rom_read::@16->fgets#2] -- register_copy + // [2262] phi fgets::stream#3 = fgets::stream#2 [phi:rom_read::@18->fgets#2] -- register_copy jsr fgets // unsigned int rom_package_read = fgets(ram_address, ROM_PROGRESS_CELL, fp) - // [1357] fgets::return#11 = fgets::return#1 - // rom_read::@37 - // [1358] rom_read::rom_package_read#0 = fgets::return#11 -- vwum1=vwuz2 + // [1371] fgets::return#11 = fgets::return#1 + // rom_read::@40 + // [1372] rom_read::rom_package_read#0 = fgets::return#11 -- vwum1=vwuz2 lda.z fgets.return sta rom_package_read lda.z fgets.return+1 sta rom_package_read+1 // if (!rom_package_read) - // [1359] if(0!=rom_read::rom_package_read#0) goto rom_read::@6 -- 0_neq_vwum1_then_la1 + // [1373] if(0!=rom_read::rom_package_read#0) goto rom_read::@8 -- 0_neq_vwum1_then_la1 lda rom_package_read ora rom_package_read+1 - bne __b6 - jmp __b7 - // rom_read::@6 - __b6: + bne __b8 + jmp __b9 + // rom_read::@8 + __b8: // if (rom_row_current == ROM_PROGRESS_ROW) - // [1360] if(rom_read::rom_row_current#10!=ROM_PROGRESS_ROW) goto rom_read::@8 -- vwuz1_neq_vwuc1_then_la1 + // [1374] if(rom_read::rom_row_current#10!=ROM_PROGRESS_ROW) goto rom_read::@10 -- vwuz1_neq_vwuc1_then_la1 lda.z rom_row_current+1 cmp #>ROM_PROGRESS_ROW - bne __b8 + bne __b10 lda.z rom_row_current cmp #gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#25 [phi:rom_read::@12->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:rom_read::@12->gotoxy#1] -- vbuz1=vbuc1 + // [1377] call gotoxy + // [751] phi from rom_read::@14 to gotoxy [phi:rom_read::@14->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#25 [phi:rom_read::@14->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:rom_read::@14->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1364] phi from rom_read::@12 to rom_read::@8 [phi:rom_read::@12->rom_read::@8] - // [1364] phi rom_read::y#36 = rom_read::y#1 [phi:rom_read::@12->rom_read::@8#0] -- register_copy - // [1364] phi rom_read::rom_row_current#4 = 0 [phi:rom_read::@12->rom_read::@8#1] -- vwuz1=vbuc1 + // [1378] phi from rom_read::@14 to rom_read::@10 [phi:rom_read::@14->rom_read::@10] + // [1378] phi rom_read::y#40 = rom_read::y#1 [phi:rom_read::@14->rom_read::@10#0] -- register_copy + // [1378] phi rom_read::rom_row_current#4 = 0 [phi:rom_read::@14->rom_read::@10#1] -- vwuz1=vbuc1 lda #<0 sta.z rom_row_current sta.z rom_row_current+1 - // [1364] phi from rom_read::@6 to rom_read::@8 [phi:rom_read::@6->rom_read::@8] - // [1364] phi rom_read::y#36 = rom_read::y#11 [phi:rom_read::@6->rom_read::@8#0] -- register_copy - // [1364] phi rom_read::rom_row_current#4 = rom_read::rom_row_current#10 [phi:rom_read::@6->rom_read::@8#1] -- register_copy - // rom_read::@8 - __b8: - // if(display_progress) - // [1365] if(0==rom_read::display_progress#28) goto rom_read::@9 -- 0_eq_vbum1_then_la1 - lda display_progress - beq __b9 - // rom_read::@13 + // [1378] phi from rom_read::@8 to rom_read::@10 [phi:rom_read::@8->rom_read::@10] + // [1378] phi rom_read::y#40 = rom_read::y#11 [phi:rom_read::@8->rom_read::@10#0] -- register_copy + // [1378] phi rom_read::rom_row_current#4 = rom_read::rom_row_current#10 [phi:rom_read::@8->rom_read::@10#1] -- register_copy + // rom_read::@10 + __b10: + // if(info_status == STATUS_READING) + // [1379] if(rom_read::info_status#10!=STATUS_READING) goto rom_read::@11 -- vbum1_neq_vbuc1_then_la1 + lda #STATUS_READING + cmp info_status + bne __b11 + // rom_read::@15 // cputc('.') - // [1366] stackpush(char) = '.' -- _stackpushbyte_=vbuc1 + // [1380] stackpush(char) = '.' -- _stackpushbyte_=vbuc1 lda #'.' pha - // [1367] callexecute cputc -- call_vprc1 + // [1381] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla - // rom_read::@9 - __b9: + // rom_read::@11 + __b11: // ram_address += rom_package_read - // [1369] rom_read::ram_address#1 = rom_read::ram_address#10 + rom_read::rom_package_read#0 -- pbuz1=pbuz1_plus_vwum2 + // [1383] rom_read::ram_address#1 = rom_read::ram_address#10 + rom_read::rom_package_read#0 -- pbuz1=pbuz1_plus_vwum2 clc lda.z ram_address adc rom_package_read @@ -9198,7 +9323,7 @@ rom_read: { adc rom_package_read+1 sta.z ram_address+1 // rom_address += rom_package_read - // [1370] rom_read::rom_address#1 = rom_read::rom_address#10 + rom_read::rom_package_read#0 -- vduz1=vduz1_plus_vwum2 + // [1384] rom_read::rom_address#1 = rom_read::rom_address#10 + rom_read::rom_package_read#0 -- vduz1=vduz1_plus_vwum2 lda.z rom_address clc adc rom_package_read @@ -9213,7 +9338,7 @@ rom_read: { adc #0 sta.z rom_address+3 // rom_file_size += rom_package_read - // [1371] rom_read::rom_file_size#1 = rom_read::rom_file_size#11 + rom_read::rom_package_read#0 -- vdum1=vdum1_plus_vwum2 + // [1385] rom_read::rom_file_size#1 = rom_read::rom_file_size#11 + rom_read::rom_package_read#0 -- vdum1=vdum1_plus_vwum2 lda rom_file_size clc adc rom_package_read @@ -9228,7 +9353,7 @@ rom_read: { adc #0 sta rom_file_size+3 // rom_row_current += rom_package_read - // [1372] rom_read::rom_row_current#2 = rom_read::rom_row_current#4 + rom_read::rom_package_read#0 -- vwuz1=vwuz1_plus_vwum2 + // [1386] rom_read::rom_row_current#2 = rom_read::rom_row_current#4 + rom_read::rom_package_read#0 -- vwuz1=vwuz1_plus_vwum2 clc lda.z rom_row_current adc rom_package_read @@ -9237,72 +9362,72 @@ rom_read: { adc rom_package_read+1 sta.z rom_row_current+1 // if (ram_address == (ram_ptr_t)BRAM_HIGH) - // [1373] if(rom_read::ram_address#1!=(char *)$c000) goto rom_read::@10 -- pbuz1_neq_pbuc1_then_la1 + // [1387] if(rom_read::ram_address#1!=(char *)$c000) goto rom_read::@12 -- pbuz1_neq_pbuc1_then_la1 lda.z ram_address+1 cmp #>$c000 - bne __b10 + bne __b12 lda.z ram_address cmp #<$c000 - bne __b10 - // rom_read::@14 + bne __b12 + // rom_read::@16 // bram_bank++; - // [1374] rom_read::bram_bank#1 = ++ rom_read::bram_bank#10 -- vbum1=_inc_vbum1 + // [1388] rom_read::bram_bank#1 = ++ rom_read::bram_bank#10 -- vbum1=_inc_vbum1 inc bram_bank - // [1375] phi from rom_read::@14 to rom_read::@10 [phi:rom_read::@14->rom_read::@10] - // [1375] phi rom_read::bram_bank#31 = rom_read::bram_bank#1 [phi:rom_read::@14->rom_read::@10#0] -- register_copy - // [1375] phi rom_read::ram_address#7 = (char *)$a000 [phi:rom_read::@14->rom_read::@10#1] -- pbuz1=pbuc1 + // [1389] phi from rom_read::@16 to rom_read::@12 [phi:rom_read::@16->rom_read::@12] + // [1389] phi rom_read::bram_bank#32 = rom_read::bram_bank#1 [phi:rom_read::@16->rom_read::@12#0] -- register_copy + // [1389] phi rom_read::ram_address#7 = (char *)$a000 [phi:rom_read::@16->rom_read::@12#1] -- pbuz1=pbuc1 lda #<$a000 sta.z ram_address lda #>$a000 sta.z ram_address+1 - // [1375] phi from rom_read::@9 to rom_read::@10 [phi:rom_read::@9->rom_read::@10] - // [1375] phi rom_read::bram_bank#31 = rom_read::bram_bank#10 [phi:rom_read::@9->rom_read::@10#0] -- register_copy - // [1375] phi rom_read::ram_address#7 = rom_read::ram_address#1 [phi:rom_read::@9->rom_read::@10#1] -- register_copy - // rom_read::@10 - __b10: + // [1389] phi from rom_read::@11 to rom_read::@12 [phi:rom_read::@11->rom_read::@12] + // [1389] phi rom_read::bram_bank#32 = rom_read::bram_bank#10 [phi:rom_read::@11->rom_read::@12#0] -- register_copy + // [1389] phi rom_read::ram_address#7 = rom_read::ram_address#1 [phi:rom_read::@11->rom_read::@12#1] -- register_copy + // rom_read::@12 + __b12: // if (ram_address == (ram_ptr_t)RAM_HIGH) - // [1376] if(rom_read::ram_address#7!=(char *)$9800) goto rom_read::@38 -- pbuz1_neq_pbuc1_then_la1 + // [1390] if(rom_read::ram_address#7!=(char *)$9800) goto rom_read::@41 -- pbuz1_neq_pbuc1_then_la1 lda.z ram_address+1 cmp #>$9800 - beq !__b3+ - jmp __b3 - !__b3: + beq !__b5+ + jmp __b5 + !__b5: lda.z ram_address cmp #<$9800 - beq !__b3+ - jmp __b3 - !__b3: - // [1315] phi from rom_read::@10 to rom_read::@3 [phi:rom_read::@10->rom_read::@3] - // [1315] phi rom_read::y#11 = rom_read::y#36 [phi:rom_read::@10->rom_read::@3#0] -- register_copy - // [1315] phi rom_read::rom_row_current#10 = rom_read::rom_row_current#2 [phi:rom_read::@10->rom_read::@3#1] -- register_copy - // [1315] phi rom_read::brom_bank_start#10 = rom_read::brom_bank_start#20 [phi:rom_read::@10->rom_read::@3#2] -- register_copy - // [1315] phi rom_read::rom_address#10 = rom_read::rom_address#1 [phi:rom_read::@10->rom_read::@3#3] -- register_copy - // [1315] phi rom_read::ram_address#10 = (char *)$a000 [phi:rom_read::@10->rom_read::@3#4] -- pbuz1=pbuc1 + beq !__b5+ + jmp __b5 + !__b5: + // [1327] phi from rom_read::@12 to rom_read::@5 [phi:rom_read::@12->rom_read::@5] + // [1327] phi rom_read::y#11 = rom_read::y#40 [phi:rom_read::@12->rom_read::@5#0] -- register_copy + // [1327] phi rom_read::rom_row_current#10 = rom_read::rom_row_current#2 [phi:rom_read::@12->rom_read::@5#1] -- register_copy + // [1327] phi rom_read::brom_bank_start#10 = rom_read::brom_bank_start#21 [phi:rom_read::@12->rom_read::@5#2] -- register_copy + // [1327] phi rom_read::rom_address#10 = rom_read::rom_address#1 [phi:rom_read::@12->rom_read::@5#3] -- register_copy + // [1327] phi rom_read::ram_address#10 = (char *)$a000 [phi:rom_read::@12->rom_read::@5#4] -- pbuz1=pbuc1 lda #<$a000 sta.z ram_address lda #>$a000 sta.z ram_address+1 - // [1315] phi rom_read::bram_bank#10 = 1 [phi:rom_read::@10->rom_read::@3#5] -- vbum1=vbuc1 + // [1327] phi rom_read::bram_bank#10 = 1 [phi:rom_read::@12->rom_read::@5#5] -- vbum1=vbuc1 lda #1 sta bram_bank - // [1315] phi rom_read::rom_file_size#11 = rom_read::rom_file_size#1 [phi:rom_read::@10->rom_read::@3#6] -- register_copy - jmp __b3 - // [1377] phi from rom_read::@10 to rom_read::@38 [phi:rom_read::@10->rom_read::@38] - // rom_read::@38 - // [1315] phi from rom_read::@38 to rom_read::@3 [phi:rom_read::@38->rom_read::@3] - // [1315] phi rom_read::y#11 = rom_read::y#36 [phi:rom_read::@38->rom_read::@3#0] -- register_copy - // [1315] phi rom_read::rom_row_current#10 = rom_read::rom_row_current#2 [phi:rom_read::@38->rom_read::@3#1] -- register_copy - // [1315] phi rom_read::brom_bank_start#10 = rom_read::brom_bank_start#20 [phi:rom_read::@38->rom_read::@3#2] -- register_copy - // [1315] phi rom_read::rom_address#10 = rom_read::rom_address#1 [phi:rom_read::@38->rom_read::@3#3] -- register_copy - // [1315] phi rom_read::ram_address#10 = rom_read::ram_address#7 [phi:rom_read::@38->rom_read::@3#4] -- register_copy - // [1315] phi rom_read::bram_bank#10 = rom_read::bram_bank#31 [phi:rom_read::@38->rom_read::@3#5] -- register_copy - // [1315] phi rom_read::rom_file_size#11 = rom_read::rom_file_size#1 [phi:rom_read::@38->rom_read::@3#6] -- register_copy + // [1327] phi rom_read::rom_file_size#11 = rom_read::rom_file_size#1 [phi:rom_read::@12->rom_read::@5#6] -- register_copy + jmp __b5 + // [1391] phi from rom_read::@12 to rom_read::@41 [phi:rom_read::@12->rom_read::@41] + // rom_read::@41 + // [1327] phi from rom_read::@41 to rom_read::@5 [phi:rom_read::@41->rom_read::@5] + // [1327] phi rom_read::y#11 = rom_read::y#40 [phi:rom_read::@41->rom_read::@5#0] -- register_copy + // [1327] phi rom_read::rom_row_current#10 = rom_read::rom_row_current#2 [phi:rom_read::@41->rom_read::@5#1] -- register_copy + // [1327] phi rom_read::brom_bank_start#10 = rom_read::brom_bank_start#21 [phi:rom_read::@41->rom_read::@5#2] -- register_copy + // [1327] phi rom_read::rom_address#10 = rom_read::rom_address#1 [phi:rom_read::@41->rom_read::@5#3] -- register_copy + // [1327] phi rom_read::ram_address#10 = rom_read::ram_address#7 [phi:rom_read::@41->rom_read::@5#4] -- register_copy + // [1327] phi rom_read::bram_bank#10 = rom_read::bram_bank#32 [phi:rom_read::@41->rom_read::@5#5] -- register_copy + // [1327] phi rom_read::rom_file_size#11 = rom_read::rom_file_size#1 [phi:rom_read::@41->rom_read::@5#6] -- register_copy .segment Data s: .text "Opening " .byte 0 s1: .text " from SD card ..." .byte 0 - rom_read__11: .dword 0 + rom_read__12: .dword 0 .label fp = util_wait_key.ch return: .dword 0 rom_package_read: .word 0 @@ -9310,28 +9435,27 @@ rom_read: { .label y = main.check_status_smc4_main__0 .label rom_file_size = return .label bram_bank = main.check_status_cx16_rom2_check_status_rom1_main__0 - .label file = clrscr.ch - .label display_progress = main.check_status_smc3_main__0 + .label info_status = main.check_status_smc3_main__0 } .segment Code // rom_verify -// __zp($ab) unsigned long rom_verify(__zp($30) char rom_chip, __mem() char rom_bank_start, __mem() unsigned long file_size) +// __zp($a9) unsigned long rom_verify(__zp($30) char rom_chip, __mem() char rom_bank_start, __mem() unsigned long file_size) rom_verify: { .label rom_verify__16 = $50 - .label rom_address = $76 + .label rom_address = $75 .label equal_bytes = $50 - .label ram_address = $d5 - .label rom_different_bytes = $ab + .label ram_address = $d7 + .label rom_different_bytes = $a9 .label rom_chip = $30 - .label return = $ab + .label return = $a9 // unsigned long rom_address = rom_address_from_bank(rom_bank_start) - // [1378] rom_address_from_bank::rom_bank#1 = rom_verify::rom_bank_start#0 - // [1379] call rom_address_from_bank - // [2403] phi from rom_verify to rom_address_from_bank [phi:rom_verify->rom_address_from_bank] - // [2403] phi rom_address_from_bank::rom_bank#3 = rom_address_from_bank::rom_bank#1 [phi:rom_verify->rom_address_from_bank#0] -- register_copy + // [1392] rom_address_from_bank::rom_bank#1 = rom_verify::rom_bank_start#0 + // [1393] call rom_address_from_bank + // [2417] phi from rom_verify to rom_address_from_bank [phi:rom_verify->rom_address_from_bank] + // [2417] phi rom_address_from_bank::rom_bank#3 = rom_address_from_bank::rom_bank#1 [phi:rom_verify->rom_address_from_bank#0] -- register_copy jsr rom_address_from_bank // unsigned long rom_address = rom_address_from_bank(rom_bank_start) - // [1380] rom_address_from_bank::return#3 = rom_address_from_bank::return#0 -- vduz1=vduz2 + // [1394] rom_address_from_bank::return#3 = rom_address_from_bank::return#0 -- vduz1=vduz2 lda.z rom_address_from_bank.return sta.z rom_address_from_bank.return_1 lda.z rom_address_from_bank.return+1 @@ -9341,9 +9465,9 @@ rom_verify: { lda.z rom_address_from_bank.return+3 sta.z rom_address_from_bank.return_1+3 // rom_verify::@11 - // [1381] rom_verify::rom_address#0 = rom_address_from_bank::return#3 + // [1395] rom_verify::rom_address#0 = rom_address_from_bank::return#3 // unsigned long rom_boundary = rom_address + file_size - // [1382] rom_verify::rom_boundary#0 = rom_verify::rom_address#0 + rom_verify::file_size#0 -- vdum1=vduz2_plus_vdum1 + // [1396] rom_verify::rom_boundary#0 = rom_verify::rom_address#0 + rom_verify::file_size#0 -- vdum1=vduz2_plus_vdum1 clc lda rom_boundary adc.z rom_address @@ -9358,59 +9482,59 @@ rom_verify: { adc.z rom_address+3 sta rom_boundary+3 // display_info_rom(rom_chip, STATUS_COMPARING, "Comparing ...") - // [1383] display_info_rom::rom_chip#1 = rom_verify::rom_chip#0 - // [1384] call display_info_rom - // [1240] phi from rom_verify::@11 to display_info_rom [phi:rom_verify::@11->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = rom_verify::info_text [phi:rom_verify::@11->display_info_rom#0] -- pbuz1=pbuc1 + // [1397] display_info_rom::rom_chip#1 = rom_verify::rom_chip#0 + // [1398] call display_info_rom + // [1250] phi from rom_verify::@11 to display_info_rom [phi:rom_verify::@11->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = rom_verify::info_text [phi:rom_verify::@11->display_info_rom#0] -- pbuz1=pbuc1 lda #info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#1 [phi:rom_verify::@11->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_COMPARING [phi:rom_verify::@11->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#1 [phi:rom_verify::@11->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_COMPARING [phi:rom_verify::@11->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_COMPARING sta.z display_info_rom.info_status jsr display_info_rom - // [1385] phi from rom_verify::@11 to rom_verify::@12 [phi:rom_verify::@11->rom_verify::@12] + // [1399] phi from rom_verify::@11 to rom_verify::@12 [phi:rom_verify::@11->rom_verify::@12] // rom_verify::@12 // gotoxy(x, y) - // [1386] call gotoxy - // [744] phi from rom_verify::@12 to gotoxy [phi:rom_verify::@12->gotoxy] - // [744] phi gotoxy::y#30 = PROGRESS_Y [phi:rom_verify::@12->gotoxy#0] -- vbuz1=vbuc1 + // [1400] call gotoxy + // [751] phi from rom_verify::@12 to gotoxy [phi:rom_verify::@12->gotoxy] + // [751] phi gotoxy::y#30 = PROGRESS_Y [phi:rom_verify::@12->gotoxy#0] -- vbuz1=vbuc1 lda #PROGRESS_Y sta.z gotoxy.y - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:rom_verify::@12->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:rom_verify::@12->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1387] phi from rom_verify::@12 to rom_verify::@1 [phi:rom_verify::@12->rom_verify::@1] - // [1387] phi rom_verify::y#3 = PROGRESS_Y [phi:rom_verify::@12->rom_verify::@1#0] -- vbum1=vbuc1 + // [1401] phi from rom_verify::@12 to rom_verify::@1 [phi:rom_verify::@12->rom_verify::@1] + // [1401] phi rom_verify::y#3 = PROGRESS_Y [phi:rom_verify::@12->rom_verify::@1#0] -- vbum1=vbuc1 lda #PROGRESS_Y sta y - // [1387] phi rom_verify::progress_row_current#3 = 0 [phi:rom_verify::@12->rom_verify::@1#1] -- vwum1=vwuc1 + // [1401] phi rom_verify::progress_row_current#3 = 0 [phi:rom_verify::@12->rom_verify::@1#1] -- vwum1=vwuc1 lda #<0 sta progress_row_current sta progress_row_current+1 - // [1387] phi rom_verify::rom_different_bytes#11 = 0 [phi:rom_verify::@12->rom_verify::@1#2] -- vduz1=vduc1 + // [1401] phi rom_verify::rom_different_bytes#11 = 0 [phi:rom_verify::@12->rom_verify::@1#2] -- vduz1=vduc1 sta.z rom_different_bytes sta.z rom_different_bytes+1 lda #<0>>$10 sta.z rom_different_bytes+2 lda #>0>>$10 sta.z rom_different_bytes+3 - // [1387] phi rom_verify::ram_address#10 = (char *)$7800 [phi:rom_verify::@12->rom_verify::@1#3] -- pbuz1=pbuc1 + // [1401] phi rom_verify::ram_address#10 = (char *)$7800 [phi:rom_verify::@12->rom_verify::@1#3] -- pbuz1=pbuc1 lda #<$7800 sta.z ram_address lda #>$7800 sta.z ram_address+1 - // [1387] phi rom_verify::bram_bank#11 = 0 [phi:rom_verify::@12->rom_verify::@1#4] -- vbum1=vbuc1 + // [1401] phi rom_verify::bram_bank#11 = 0 [phi:rom_verify::@12->rom_verify::@1#4] -- vbum1=vbuc1 lda #0 sta bram_bank - // [1387] phi rom_verify::rom_address#12 = rom_verify::rom_address#0 [phi:rom_verify::@12->rom_verify::@1#5] -- register_copy + // [1401] phi rom_verify::rom_address#12 = rom_verify::rom_address#0 [phi:rom_verify::@12->rom_verify::@1#5] -- register_copy // rom_verify::@1 __b1: // while (rom_address < rom_boundary) - // [1388] if(rom_verify::rom_address#12rom_compare] - // [2407] phi rom_compare::ptr_ram#10 = rom_compare::ptr_ram#1 [phi:rom_verify::@2->rom_compare#0] -- register_copy - // [2407] phi rom_compare::rom_compare_size#11 = ROM_PROGRESS_CELL [phi:rom_verify::@2->rom_compare#1] -- vwuz1=vwuc1 + // [2421] phi from rom_verify::@2 to rom_compare [phi:rom_verify::@2->rom_compare] + // [2421] phi rom_compare::ptr_ram#10 = rom_compare::ptr_ram#1 [phi:rom_verify::@2->rom_compare#0] -- register_copy + // [2421] phi rom_compare::rom_compare_size#11 = ROM_PROGRESS_CELL [phi:rom_verify::@2->rom_compare#1] -- vwuz1=vwuc1 lda #ROM_PROGRESS_CELL sta.z rom_compare.rom_compare_size+1 - // [2407] phi rom_compare::rom_compare_address#3 = rom_compare::rom_compare_address#0 [phi:rom_verify::@2->rom_compare#2] -- register_copy - // [2407] phi rom_compare::bank_set_bram1_bank#0 = rom_compare::bank_ram#0 [phi:rom_verify::@2->rom_compare#3] -- register_copy + // [2421] phi rom_compare::rom_compare_address#3 = rom_compare::rom_compare_address#0 [phi:rom_verify::@2->rom_compare#2] -- register_copy + // [2421] phi rom_compare::bank_set_bram1_bank#0 = rom_compare::bank_ram#0 [phi:rom_verify::@2->rom_compare#3] -- register_copy jsr rom_compare // unsigned int equal_bytes = rom_compare(bram_bank, (ram_ptr_t)ram_address, rom_address, ROM_PROGRESS_CELL) - // [1394] rom_compare::return#2 = rom_compare::equal_bytes#2 + // [1408] rom_compare::return#2 = rom_compare::equal_bytes#2 // rom_verify::@13 - // [1395] rom_verify::equal_bytes#0 = rom_compare::return#2 + // [1409] rom_verify::equal_bytes#0 = rom_compare::return#2 // if (progress_row_current == ROM_PROGRESS_ROW) - // [1396] if(rom_verify::progress_row_current#3!=ROM_PROGRESS_ROW) goto rom_verify::@3 -- vwum1_neq_vwuc1_then_la1 + // [1410] if(rom_verify::progress_row_current#3!=ROM_PROGRESS_ROW) goto rom_verify::@3 -- vwum1_neq_vwuc1_then_la1 lda progress_row_current+1 cmp #>ROM_PROGRESS_ROW bne __b3 @@ -9477,32 +9601,32 @@ rom_verify: { bne __b3 // rom_verify::@8 // gotoxy(x, ++y); - // [1397] rom_verify::y#1 = ++ rom_verify::y#3 -- vbum1=_inc_vbum1 + // [1411] rom_verify::y#1 = ++ rom_verify::y#3 -- vbum1=_inc_vbum1 inc y // gotoxy(x, ++y) - // [1398] gotoxy::y#27 = rom_verify::y#1 -- vbuz1=vbum2 + // [1412] gotoxy::y#27 = rom_verify::y#1 -- vbuz1=vbum2 lda y sta.z gotoxy.y - // [1399] call gotoxy - // [744] phi from rom_verify::@8 to gotoxy [phi:rom_verify::@8->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#27 [phi:rom_verify::@8->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:rom_verify::@8->gotoxy#1] -- vbuz1=vbuc1 + // [1413] call gotoxy + // [751] phi from rom_verify::@8 to gotoxy [phi:rom_verify::@8->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#27 [phi:rom_verify::@8->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:rom_verify::@8->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1400] phi from rom_verify::@8 to rom_verify::@3 [phi:rom_verify::@8->rom_verify::@3] - // [1400] phi rom_verify::y#10 = rom_verify::y#1 [phi:rom_verify::@8->rom_verify::@3#0] -- register_copy - // [1400] phi rom_verify::progress_row_current#4 = 0 [phi:rom_verify::@8->rom_verify::@3#1] -- vwum1=vbuc1 + // [1414] phi from rom_verify::@8 to rom_verify::@3 [phi:rom_verify::@8->rom_verify::@3] + // [1414] phi rom_verify::y#10 = rom_verify::y#1 [phi:rom_verify::@8->rom_verify::@3#0] -- register_copy + // [1414] phi rom_verify::progress_row_current#4 = 0 [phi:rom_verify::@8->rom_verify::@3#1] -- vwum1=vbuc1 lda #<0 sta progress_row_current sta progress_row_current+1 - // [1400] phi from rom_verify::@13 to rom_verify::@3 [phi:rom_verify::@13->rom_verify::@3] - // [1400] phi rom_verify::y#10 = rom_verify::y#3 [phi:rom_verify::@13->rom_verify::@3#0] -- register_copy - // [1400] phi rom_verify::progress_row_current#4 = rom_verify::progress_row_current#3 [phi:rom_verify::@13->rom_verify::@3#1] -- register_copy + // [1414] phi from rom_verify::@13 to rom_verify::@3 [phi:rom_verify::@13->rom_verify::@3] + // [1414] phi rom_verify::y#10 = rom_verify::y#3 [phi:rom_verify::@13->rom_verify::@3#0] -- register_copy + // [1414] phi rom_verify::progress_row_current#4 = rom_verify::progress_row_current#3 [phi:rom_verify::@13->rom_verify::@3#1] -- register_copy // rom_verify::@3 __b3: // if (equal_bytes != ROM_PROGRESS_CELL) - // [1401] if(rom_verify::equal_bytes#0!=ROM_PROGRESS_CELL) goto rom_verify::@4 -- vwuz1_neq_vwuc1_then_la1 + // [1415] if(rom_verify::equal_bytes#0!=ROM_PROGRESS_CELL) goto rom_verify::@4 -- vwuz1_neq_vwuc1_then_la1 lda.z equal_bytes+1 cmp #>ROM_PROGRESS_CELL beq !__b4+ @@ -9515,17 +9639,17 @@ rom_verify: { !__b4: // rom_verify::@9 // cputc('=') - // [1402] stackpush(char) = '=' -- _stackpushbyte_=vbuc1 + // [1416] stackpush(char) = '=' -- _stackpushbyte_=vbuc1 lda #'=' pha - // [1403] callexecute cputc -- call_vprc1 + // [1417] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // rom_verify::@5 __b5: // ram_address += ROM_PROGRESS_CELL - // [1405] rom_verify::ram_address#1 = rom_verify::ram_address#10 + ROM_PROGRESS_CELL -- pbuz1=pbuz1_plus_vwuc1 + // [1419] rom_verify::ram_address#1 = rom_verify::ram_address#10 + ROM_PROGRESS_CELL -- pbuz1=pbuz1_plus_vwuc1 lda.z ram_address clc adc #ROM_PROGRESS_CELL sta.z ram_address+1 // rom_address += ROM_PROGRESS_CELL - // [1406] rom_verify::rom_address#1 = rom_verify::rom_address#12 + ROM_PROGRESS_CELL -- vduz1=vduz1_plus_vwuc1 + // [1420] rom_verify::rom_address#1 = rom_verify::rom_address#12 + ROM_PROGRESS_CELL -- vduz1=vduz1_plus_vwuc1 clc lda.z rom_address adc #ROM_PROGRESS_CELL sta progress_row_current+1 // if (ram_address == BRAM_HIGH) - // [1408] if(rom_verify::ram_address#1!=$c000) goto rom_verify::@6 -- pbuz1_neq_vwuc1_then_la1 + // [1422] if(rom_verify::ram_address#1!=$c000) goto rom_verify::@6 -- pbuz1_neq_vwuc1_then_la1 lda.z ram_address+1 cmp #>$c000 bne __b6 @@ -9567,46 +9691,46 @@ rom_verify: { bne __b6 // rom_verify::@10 // bram_bank++; - // [1409] rom_verify::bram_bank#1 = ++ rom_verify::bram_bank#11 -- vbum1=_inc_vbum1 + // [1423] rom_verify::bram_bank#1 = ++ rom_verify::bram_bank#11 -- vbum1=_inc_vbum1 inc bram_bank - // [1410] phi from rom_verify::@10 to rom_verify::@6 [phi:rom_verify::@10->rom_verify::@6] - // [1410] phi rom_verify::bram_bank#24 = rom_verify::bram_bank#1 [phi:rom_verify::@10->rom_verify::@6#0] -- register_copy - // [1410] phi rom_verify::ram_address#6 = (char *)$a000 [phi:rom_verify::@10->rom_verify::@6#1] -- pbuz1=pbuc1 + // [1424] phi from rom_verify::@10 to rom_verify::@6 [phi:rom_verify::@10->rom_verify::@6] + // [1424] phi rom_verify::bram_bank#24 = rom_verify::bram_bank#1 [phi:rom_verify::@10->rom_verify::@6#0] -- register_copy + // [1424] phi rom_verify::ram_address#6 = (char *)$a000 [phi:rom_verify::@10->rom_verify::@6#1] -- pbuz1=pbuc1 lda #<$a000 sta.z ram_address lda #>$a000 sta.z ram_address+1 - // [1410] phi from rom_verify::@5 to rom_verify::@6 [phi:rom_verify::@5->rom_verify::@6] - // [1410] phi rom_verify::bram_bank#24 = rom_verify::bram_bank#11 [phi:rom_verify::@5->rom_verify::@6#0] -- register_copy - // [1410] phi rom_verify::ram_address#6 = rom_verify::ram_address#1 [phi:rom_verify::@5->rom_verify::@6#1] -- register_copy + // [1424] phi from rom_verify::@5 to rom_verify::@6 [phi:rom_verify::@5->rom_verify::@6] + // [1424] phi rom_verify::bram_bank#24 = rom_verify::bram_bank#11 [phi:rom_verify::@5->rom_verify::@6#0] -- register_copy + // [1424] phi rom_verify::ram_address#6 = rom_verify::ram_address#1 [phi:rom_verify::@5->rom_verify::@6#1] -- register_copy // rom_verify::@6 __b6: // if (ram_address == RAM_HIGH) - // [1411] if(rom_verify::ram_address#6!=$9800) goto rom_verify::@23 -- pbuz1_neq_vwuc1_then_la1 + // [1425] if(rom_verify::ram_address#6!=$9800) goto rom_verify::@23 -- pbuz1_neq_vwuc1_then_la1 lda.z ram_address+1 cmp #>$9800 bne __b7 lda.z ram_address cmp #<$9800 bne __b7 - // [1413] phi from rom_verify::@6 to rom_verify::@7 [phi:rom_verify::@6->rom_verify::@7] - // [1413] phi rom_verify::ram_address#11 = (char *)$a000 [phi:rom_verify::@6->rom_verify::@7#0] -- pbuz1=pbuc1 + // [1427] phi from rom_verify::@6 to rom_verify::@7 [phi:rom_verify::@6->rom_verify::@7] + // [1427] phi rom_verify::ram_address#11 = (char *)$a000 [phi:rom_verify::@6->rom_verify::@7#0] -- pbuz1=pbuc1 lda #<$a000 sta.z ram_address lda #>$a000 sta.z ram_address+1 - // [1413] phi rom_verify::bram_bank#10 = 1 [phi:rom_verify::@6->rom_verify::@7#1] -- vbum1=vbuc1 + // [1427] phi rom_verify::bram_bank#10 = 1 [phi:rom_verify::@6->rom_verify::@7#1] -- vbum1=vbuc1 lda #1 sta bram_bank - // [1412] phi from rom_verify::@6 to rom_verify::@23 [phi:rom_verify::@6->rom_verify::@23] + // [1426] phi from rom_verify::@6 to rom_verify::@23 [phi:rom_verify::@6->rom_verify::@23] // rom_verify::@23 - // [1413] phi from rom_verify::@23 to rom_verify::@7 [phi:rom_verify::@23->rom_verify::@7] - // [1413] phi rom_verify::ram_address#11 = rom_verify::ram_address#6 [phi:rom_verify::@23->rom_verify::@7#0] -- register_copy - // [1413] phi rom_verify::bram_bank#10 = rom_verify::bram_bank#24 [phi:rom_verify::@23->rom_verify::@7#1] -- register_copy + // [1427] phi from rom_verify::@23 to rom_verify::@7 [phi:rom_verify::@23->rom_verify::@7] + // [1427] phi rom_verify::ram_address#11 = rom_verify::ram_address#6 [phi:rom_verify::@23->rom_verify::@7#0] -- register_copy + // [1427] phi rom_verify::bram_bank#10 = rom_verify::bram_bank#24 [phi:rom_verify::@23->rom_verify::@7#1] -- register_copy // rom_verify::@7 __b7: // ROM_PROGRESS_CELL - equal_bytes - // [1414] rom_verify::$16 = ROM_PROGRESS_CELL - rom_verify::equal_bytes#0 -- vwuz1=vwuc1_minus_vwuz1 + // [1428] rom_verify::$16 = ROM_PROGRESS_CELL - rom_verify::equal_bytes#0 -- vwuz1=vwuc1_minus_vwuz1 lda # ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1416] call snprintf_init - // [1123] phi from rom_verify::@7 to snprintf_init [phi:rom_verify::@7->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:rom_verify::@7->snprintf_init#0] -- pbuz1=pbuc1 + // [1430] call snprintf_init + // [1133] phi from rom_verify::@7 to snprintf_init [phi:rom_verify::@7->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:rom_verify::@7->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1417] phi from rom_verify::@7 to rom_verify::@14 [phi:rom_verify::@7->rom_verify::@14] + // [1431] phi from rom_verify::@7 to rom_verify::@14 [phi:rom_verify::@7->rom_verify::@14] // rom_verify::@14 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1418] call printf_str - // [1128] phi from rom_verify::@14 to printf_str [phi:rom_verify::@14->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_verify::@14->printf_str#0] -- pprz1=pprc1 + // [1432] call printf_str + // [1138] phi from rom_verify::@14 to printf_str [phi:rom_verify::@14->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_verify::@14->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_verify::s [phi:rom_verify::@14->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_verify::s [phi:rom_verify::@14->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -9656,7 +9780,7 @@ rom_verify: { jsr printf_str // rom_verify::@15 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1419] printf_ulong::uvalue#2 = rom_verify::rom_different_bytes#1 -- vduz1=vduz2 + // [1433] printf_ulong::uvalue#2 = rom_verify::rom_different_bytes#1 -- vduz1=vduz2 lda.z rom_different_bytes sta.z printf_ulong.uvalue lda.z rom_different_bytes+1 @@ -9665,30 +9789,30 @@ rom_verify: { sta.z printf_ulong.uvalue+2 lda.z rom_different_bytes+3 sta.z printf_ulong.uvalue+3 - // [1420] call printf_ulong - // [1440] phi from rom_verify::@15 to printf_ulong [phi:rom_verify::@15->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_verify::@15->printf_ulong#0] -- vbuz1=vbuc1 + // [1434] call printf_ulong + // [1454] phi from rom_verify::@15 to printf_ulong [phi:rom_verify::@15->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_verify::@15->printf_ulong#0] -- vbuz1=vbuc1 lda #1 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 5 [phi:rom_verify::@15->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 5 [phi:rom_verify::@15->printf_ulong#1] -- vbuz1=vbuc1 lda #5 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_verify::@15->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_verify::@15->printf_ulong#2] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#2 [phi:rom_verify::@15->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#2 [phi:rom_verify::@15->printf_ulong#3] -- register_copy jsr printf_ulong - // [1421] phi from rom_verify::@15 to rom_verify::@16 [phi:rom_verify::@15->rom_verify::@16] + // [1435] phi from rom_verify::@15 to rom_verify::@16 [phi:rom_verify::@15->rom_verify::@16] // rom_verify::@16 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1422] call printf_str - // [1128] phi from rom_verify::@16 to printf_str [phi:rom_verify::@16->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_verify::@16->printf_str#0] -- pprz1=pprc1 + // [1436] call printf_str + // [1138] phi from rom_verify::@16 to printf_str [phi:rom_verify::@16->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_verify::@16->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_verify::s1 [phi:rom_verify::@16->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_verify::s1 [phi:rom_verify::@16->printf_str#1] -- pbuz1=pbuc1 lda #s1 @@ -9696,38 +9820,38 @@ rom_verify: { jsr printf_str // rom_verify::@17 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1423] printf_uchar::uvalue#10 = rom_verify::bram_bank#10 -- vbuz1=vbum2 + // [1437] printf_uchar::uvalue#10 = rom_verify::bram_bank#10 -- vbuz1=vbum2 lda bram_bank sta.z printf_uchar.uvalue - // [1424] call printf_uchar - // [1197] phi from rom_verify::@17 to printf_uchar [phi:rom_verify::@17->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_verify::@17->printf_uchar#0] -- vbuz1=vbuc1 + // [1438] call printf_uchar + // [1207] phi from rom_verify::@17 to printf_uchar [phi:rom_verify::@17->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_verify::@17->printf_uchar#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 2 [phi:rom_verify::@17->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 2 [phi:rom_verify::@17->printf_uchar#1] -- vbuz1=vbuc1 lda #2 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:rom_verify::@17->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:rom_verify::@17->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_verify::@17->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_verify::@17->printf_uchar#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#10 [phi:rom_verify::@17->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#10 [phi:rom_verify::@17->printf_uchar#4] -- register_copy jsr printf_uchar - // [1425] phi from rom_verify::@17 to rom_verify::@18 [phi:rom_verify::@17->rom_verify::@18] + // [1439] phi from rom_verify::@17 to rom_verify::@18 [phi:rom_verify::@17->rom_verify::@18] // rom_verify::@18 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1426] call printf_str - // [1128] phi from rom_verify::@18 to printf_str [phi:rom_verify::@18->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_verify::@18->printf_str#0] -- pprz1=pprc1 + // [1440] call printf_str + // [1138] phi from rom_verify::@18 to printf_str [phi:rom_verify::@18->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_verify::@18->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s3 [phi:rom_verify::@18->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s3 [phi:rom_verify::@18->printf_str#1] -- pbuz1=pbuc1 lda #<@s3 sta.z printf_str.s lda #>@s3 @@ -9735,40 +9859,40 @@ rom_verify: { jsr printf_str // rom_verify::@19 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1427] printf_uint::uvalue#11 = (unsigned int)rom_verify::ram_address#11 -- vwuz1=vwuz2 + // [1441] printf_uint::uvalue#11 = (unsigned int)rom_verify::ram_address#11 -- vwuz1=vwuz2 lda.z ram_address sta.z printf_uint.uvalue lda.z ram_address+1 sta.z printf_uint.uvalue+1 - // [1428] call printf_uint - // [1825] phi from rom_verify::@19 to printf_uint [phi:rom_verify::@19->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:rom_verify::@19->printf_uint#0] -- vbuz1=vbuc1 + // [1442] call printf_uint + // [1839] phi from rom_verify::@19 to printf_uint [phi:rom_verify::@19->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:rom_verify::@19->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 4 [phi:rom_verify::@19->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 4 [phi:rom_verify::@19->printf_uint#1] -- vbuz1=vbuc1 lda #4 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:rom_verify::@19->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:rom_verify::@19->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:rom_verify::@19->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:rom_verify::@19->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#11 [phi:rom_verify::@19->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#11 [phi:rom_verify::@19->printf_uint#4] -- register_copy jsr printf_uint - // [1429] phi from rom_verify::@19 to rom_verify::@20 [phi:rom_verify::@19->rom_verify::@20] + // [1443] phi from rom_verify::@19 to rom_verify::@20 [phi:rom_verify::@19->rom_verify::@20] // rom_verify::@20 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1430] call printf_str - // [1128] phi from rom_verify::@20 to printf_str [phi:rom_verify::@20->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_verify::@20->printf_str#0] -- pprz1=pprc1 + // [1444] call printf_str + // [1138] phi from rom_verify::@20 to printf_str [phi:rom_verify::@20->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_verify::@20->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_verify::s3 [phi:rom_verify::@20->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_verify::s3 [phi:rom_verify::@20->printf_str#1] -- pbuz1=pbuc1 lda #s3 @@ -9776,7 +9900,7 @@ rom_verify: { jsr printf_str // rom_verify::@21 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1431] printf_ulong::uvalue#3 = rom_verify::rom_address#1 -- vduz1=vduz2 + // [1445] printf_ulong::uvalue#3 = rom_verify::rom_address#1 -- vduz1=vduz2 lda.z rom_address sta.z printf_ulong.uvalue lda.z rom_address+1 @@ -9785,52 +9909,52 @@ rom_verify: { sta.z printf_ulong.uvalue+2 lda.z rom_address+3 sta.z printf_ulong.uvalue+3 - // [1432] call printf_ulong - // [1440] phi from rom_verify::@21 to printf_ulong [phi:rom_verify::@21->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_verify::@21->printf_ulong#0] -- vbuz1=vbuc1 + // [1446] call printf_ulong + // [1454] phi from rom_verify::@21 to printf_ulong [phi:rom_verify::@21->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_verify::@21->printf_ulong#0] -- vbuz1=vbuc1 lda #1 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 5 [phi:rom_verify::@21->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 5 [phi:rom_verify::@21->printf_ulong#1] -- vbuz1=vbuc1 lda #5 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_verify::@21->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_verify::@21->printf_ulong#2] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#3 [phi:rom_verify::@21->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#3 [phi:rom_verify::@21->printf_ulong#3] -- register_copy jsr printf_ulong // rom_verify::@22 // sprintf(info_text, "Comparing: %05x differences between RAM:%02x:%04p <-> ROM:%05x", rom_different_bytes, bram_bank, ram_address, rom_address) - // [1433] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1447] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1434] callexecute snputc -- call_vprc1 + // [1448] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1436] call display_action_text - // [1208] phi from rom_verify::@22 to display_action_text [phi:rom_verify::@22->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:rom_verify::@22->display_action_text#0] -- pbuz1=pbuc1 + // [1450] call display_action_text + // [1218] phi from rom_verify::@22 to display_action_text [phi:rom_verify::@22->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:rom_verify::@22->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text sta.z display_action_text.info_text+1 jsr display_action_text - // [1387] phi from rom_verify::@22 to rom_verify::@1 [phi:rom_verify::@22->rom_verify::@1] - // [1387] phi rom_verify::y#3 = rom_verify::y#10 [phi:rom_verify::@22->rom_verify::@1#0] -- register_copy - // [1387] phi rom_verify::progress_row_current#3 = rom_verify::progress_row_current#11 [phi:rom_verify::@22->rom_verify::@1#1] -- register_copy - // [1387] phi rom_verify::rom_different_bytes#11 = rom_verify::rom_different_bytes#1 [phi:rom_verify::@22->rom_verify::@1#2] -- register_copy - // [1387] phi rom_verify::ram_address#10 = rom_verify::ram_address#11 [phi:rom_verify::@22->rom_verify::@1#3] -- register_copy - // [1387] phi rom_verify::bram_bank#11 = rom_verify::bram_bank#10 [phi:rom_verify::@22->rom_verify::@1#4] -- register_copy - // [1387] phi rom_verify::rom_address#12 = rom_verify::rom_address#1 [phi:rom_verify::@22->rom_verify::@1#5] -- register_copy + // [1401] phi from rom_verify::@22 to rom_verify::@1 [phi:rom_verify::@22->rom_verify::@1] + // [1401] phi rom_verify::y#3 = rom_verify::y#10 [phi:rom_verify::@22->rom_verify::@1#0] -- register_copy + // [1401] phi rom_verify::progress_row_current#3 = rom_verify::progress_row_current#11 [phi:rom_verify::@22->rom_verify::@1#1] -- register_copy + // [1401] phi rom_verify::rom_different_bytes#11 = rom_verify::rom_different_bytes#1 [phi:rom_verify::@22->rom_verify::@1#2] -- register_copy + // [1401] phi rom_verify::ram_address#10 = rom_verify::ram_address#11 [phi:rom_verify::@22->rom_verify::@1#3] -- register_copy + // [1401] phi rom_verify::bram_bank#11 = rom_verify::bram_bank#10 [phi:rom_verify::@22->rom_verify::@1#4] -- register_copy + // [1401] phi rom_verify::rom_address#12 = rom_verify::rom_address#1 [phi:rom_verify::@22->rom_verify::@1#5] -- register_copy jmp __b1 // rom_verify::@4 __b4: // cputc('*') - // [1437] stackpush(char) = '*' -- _stackpushbyte_=vbuc1 + // [1451] stackpush(char) = '*' -- _stackpushbyte_=vbuc1 lda #'*' pha - // [1438] callexecute cputc -- call_vprc1 + // [1452] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla @@ -9854,46 +9978,46 @@ rom_verify: { .segment Code // printf_ulong // Print an unsigned int using a specific format -// void printf_ulong(void (*putc)(char), __zp($31) unsigned long uvalue, __zp($37) char format_min_length, char format_justify_left, char format_sign_always, __zp($e0) char format_zero_padding, char format_upper_case, __zp($df) char format_radix) +// void printf_ulong(void (*putc)(char), __zp($31) unsigned long uvalue, __zp($36) char format_min_length, char format_justify_left, char format_sign_always, __zp($e2) char format_zero_padding, char format_upper_case, __zp($e1) char format_radix) printf_ulong: { .label uvalue = $31 - .label format_radix = $df - .label format_min_length = $37 - .label format_zero_padding = $e0 + .label format_radix = $e1 + .label format_min_length = $36 + .label format_zero_padding = $e2 // printf_ulong::@1 // printf_buffer.sign = format.sign_always?'+':0 - // [1441] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2 + // [1455] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2 // Handle any sign lda #0 sta printf_buffer // ultoa(uvalue, printf_buffer.digits, format.radix) - // [1442] ultoa::value#1 = printf_ulong::uvalue#10 - // [1443] ultoa::radix#0 = printf_ulong::format_radix#10 - // [1444] call ultoa + // [1456] ultoa::value#1 = printf_ulong::uvalue#10 + // [1457] ultoa::radix#0 = printf_ulong::format_radix#10 + // [1458] call ultoa // Format number into buffer jsr ultoa // printf_ulong::@2 // printf_number_buffer(putc, printf_buffer, format) - // [1445] printf_number_buffer::buffer_sign#0 = *((char *)&printf_buffer) -- vbuz1=_deref_pbuc1 + // [1459] printf_number_buffer::buffer_sign#0 = *((char *)&printf_buffer) -- vbuz1=_deref_pbuc1 lda printf_buffer sta.z printf_number_buffer.buffer_sign - // [1446] printf_number_buffer::format_min_length#0 = printf_ulong::format_min_length#10 - // [1447] printf_number_buffer::format_zero_padding#0 = printf_ulong::format_zero_padding#10 - // [1448] call printf_number_buffer + // [1460] printf_number_buffer::format_min_length#0 = printf_ulong::format_min_length#10 + // [1461] printf_number_buffer::format_zero_padding#0 = printf_ulong::format_zero_padding#10 + // [1462] call printf_number_buffer // Print using format - // [2372] phi from printf_ulong::@2 to printf_number_buffer [phi:printf_ulong::@2->printf_number_buffer] - // [2372] phi printf_number_buffer::putc#10 = &snputc [phi:printf_ulong::@2->printf_number_buffer#0] -- pprz1=pprc1 + // [2386] phi from printf_ulong::@2 to printf_number_buffer [phi:printf_ulong::@2->printf_number_buffer] + // [2386] phi printf_number_buffer::putc#10 = &snputc [phi:printf_ulong::@2->printf_number_buffer#0] -- pprz1=pprc1 lda #snputc sta.z printf_number_buffer.putc+1 - // [2372] phi printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#0 [phi:printf_ulong::@2->printf_number_buffer#1] -- register_copy - // [2372] phi printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#0 [phi:printf_ulong::@2->printf_number_buffer#2] -- register_copy - // [2372] phi printf_number_buffer::format_min_length#3 = printf_number_buffer::format_min_length#0 [phi:printf_ulong::@2->printf_number_buffer#3] -- register_copy + // [2386] phi printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#0 [phi:printf_ulong::@2->printf_number_buffer#1] -- register_copy + // [2386] phi printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#0 [phi:printf_ulong::@2->printf_number_buffer#2] -- register_copy + // [2386] phi printf_number_buffer::format_min_length#3 = printf_number_buffer::format_min_length#0 [phi:printf_ulong::@2->printf_number_buffer#3] -- register_copy jsr printf_number_buffer // printf_ulong::@return // } - // [1449] return + // [1463] return rts .segment Data uvalue_1: .dword 0 @@ -9905,16 +10029,15 @@ rom_flash: { .label equal_bytes = $50 .label ram_address_sector = $d2 .label equal_bytes_1 = $ce - .label retries = $fb - .label flash_errors_sector = $ec + .label flash_errors_sector = $ee .label ram_address = $d0 - .label rom_address = $f1 - .label x = $ee + .label rom_address = $f3 + .label x = $f0 // display_action_progress("Flashing ... (-) equal, (+) flashed, (!) error.") - // [1451] call display_action_progress + // [1465] call display_action_progress // Now we compare the RAM with the actual ROM contents. - // [838] phi from rom_flash to display_action_progress [phi:rom_flash->display_action_progress] - // [838] phi display_action_progress::info_text#18 = rom_flash::info_text [phi:rom_flash->display_action_progress#0] -- pbuz1=pbuc1 + // [845] phi from rom_flash to display_action_progress [phi:rom_flash->display_action_progress] + // [845] phi display_action_progress::info_text#19 = rom_flash::info_text [phi:rom_flash->display_action_progress#0] -- pbuz1=pbuc1 lda #info_text @@ -9922,13 +10045,13 @@ rom_flash: { jsr display_action_progress // rom_flash::@19 // unsigned long rom_address_sector = rom_address_from_bank(rom_bank_start) - // [1452] rom_address_from_bank::rom_bank#2 = rom_flash::rom_bank_start#0 - // [1453] call rom_address_from_bank - // [2403] phi from rom_flash::@19 to rom_address_from_bank [phi:rom_flash::@19->rom_address_from_bank] - // [2403] phi rom_address_from_bank::rom_bank#3 = rom_address_from_bank::rom_bank#2 [phi:rom_flash::@19->rom_address_from_bank#0] -- register_copy + // [1466] rom_address_from_bank::rom_bank#2 = rom_flash::rom_bank_start#0 + // [1467] call rom_address_from_bank + // [2417] phi from rom_flash::@19 to rom_address_from_bank [phi:rom_flash::@19->rom_address_from_bank] + // [2417] phi rom_address_from_bank::rom_bank#3 = rom_address_from_bank::rom_bank#2 [phi:rom_flash::@19->rom_address_from_bank#0] -- register_copy jsr rom_address_from_bank // unsigned long rom_address_sector = rom_address_from_bank(rom_bank_start) - // [1454] rom_address_from_bank::return#4 = rom_address_from_bank::return#0 -- vdum1=vduz2 + // [1468] rom_address_from_bank::return#4 = rom_address_from_bank::return#0 -- vdum1=vduz2 lda.z rom_address_from_bank.return sta rom_address_from_bank.return_2 lda.z rom_address_from_bank.return+1 @@ -9938,9 +10061,9 @@ rom_flash: { lda.z rom_address_from_bank.return+3 sta rom_address_from_bank.return_2+3 // rom_flash::@20 - // [1455] rom_flash::rom_address_sector#0 = rom_address_from_bank::return#4 + // [1469] rom_flash::rom_address_sector#0 = rom_address_from_bank::return#4 // unsigned long rom_boundary = rom_address_sector + file_size - // [1456] rom_flash::rom_boundary#0 = rom_flash::rom_address_sector#0 + rom_flash::file_size#0 -- vdum1=vdum2_plus_vdum3 + // [1470] rom_flash::rom_boundary#0 = rom_flash::rom_address_sector#0 + rom_flash::file_size#0 -- vdum1=vdum2_plus_vdum3 lda rom_address_sector clc adc file_size @@ -9955,29 +10078,29 @@ rom_flash: { adc file_size+3 sta rom_boundary+3 // display_info_rom(rom_chip, STATUS_FLASHING, "Flashing ...") - // [1457] display_info_rom::rom_chip#2 = rom_flash::rom_chip#0 -- vbuz1=vbum2 + // [1471] display_info_rom::rom_chip#2 = rom_flash::rom_chip#0 -- vbuz1=vbum2 lda rom_chip sta.z display_info_rom.rom_chip - // [1458] call display_info_rom - // [1240] phi from rom_flash::@20 to display_info_rom [phi:rom_flash::@20->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = rom_flash::info_text1 [phi:rom_flash::@20->display_info_rom#0] -- pbuz1=pbuc1 + // [1472] call display_info_rom + // [1250] phi from rom_flash::@20 to display_info_rom [phi:rom_flash::@20->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = rom_flash::info_text1 [phi:rom_flash::@20->display_info_rom#0] -- pbuz1=pbuc1 lda #info_text1 sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#2 [phi:rom_flash::@20->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_FLASHING [phi:rom_flash::@20->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#2 [phi:rom_flash::@20->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_FLASHING [phi:rom_flash::@20->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_FLASHING sta.z display_info_rom.info_status jsr display_info_rom - // [1459] phi from rom_flash::@20 to rom_flash::@1 [phi:rom_flash::@20->rom_flash::@1] - // [1459] phi rom_flash::y_sector#13 = PROGRESS_Y [phi:rom_flash::@20->rom_flash::@1#0] -- vbum1=vbuc1 + // [1473] phi from rom_flash::@20 to rom_flash::@1 [phi:rom_flash::@20->rom_flash::@1] + // [1473] phi rom_flash::y_sector#13 = PROGRESS_Y [phi:rom_flash::@20->rom_flash::@1#0] -- vbum1=vbuc1 lda #PROGRESS_Y sta y_sector - // [1459] phi rom_flash::x_sector#10 = PROGRESS_X [phi:rom_flash::@20->rom_flash::@1#1] -- vbum1=vbuc1 + // [1473] phi rom_flash::x_sector#10 = PROGRESS_X [phi:rom_flash::@20->rom_flash::@1#1] -- vbum1=vbuc1 lda #PROGRESS_X sta x_sector - // [1459] phi rom_flash::flash_errors#10 = 0 [phi:rom_flash::@20->rom_flash::@1#2] -- vdum1=vduc1 + // [1473] phi rom_flash::flash_errors#10 = 0 [phi:rom_flash::@20->rom_flash::@1#2] -- vdum1=vduc1 lda #<0 sta flash_errors sta flash_errors+1 @@ -9985,19 +10108,19 @@ rom_flash: { sta flash_errors+2 lda #>0>>$10 sta flash_errors+3 - // [1459] phi rom_flash::ram_address_sector#11 = (char *)$7800 [phi:rom_flash::@20->rom_flash::@1#3] -- pbuz1=pbuc1 + // [1473] phi rom_flash::ram_address_sector#11 = (char *)$7800 [phi:rom_flash::@20->rom_flash::@1#3] -- pbuz1=pbuc1 lda #<$7800 sta.z ram_address_sector lda #>$7800 sta.z ram_address_sector+1 - // [1459] phi rom_flash::bram_bank_sector#14 = 0 [phi:rom_flash::@20->rom_flash::@1#4] -- vbum1=vbuc1 + // [1473] phi rom_flash::bram_bank_sector#14 = 0 [phi:rom_flash::@20->rom_flash::@1#4] -- vbum1=vbuc1 lda #0 sta bram_bank_sector - // [1459] phi rom_flash::rom_address_sector#12 = rom_flash::rom_address_sector#0 [phi:rom_flash::@20->rom_flash::@1#5] -- register_copy + // [1473] phi rom_flash::rom_address_sector#12 = rom_flash::rom_address_sector#0 [phi:rom_flash::@20->rom_flash::@1#5] -- register_copy // rom_flash::@1 __b1: // while (rom_address_sector < rom_boundary) - // [1460] if(rom_flash::rom_address_sector#12rom_flash::@3] + // [1475] phi from rom_flash::@1 to rom_flash::@3 [phi:rom_flash::@1->rom_flash::@3] // rom_flash::@3 // display_action_text("Flashed ...") - // [1462] call display_action_text - // [1208] phi from rom_flash::@3 to display_action_text [phi:rom_flash::@3->display_action_text] - // [1208] phi display_action_text::info_text#19 = rom_flash::info_text2 [phi:rom_flash::@3->display_action_text#0] -- pbuz1=pbuc1 + // [1476] call display_action_text + // [1218] phi from rom_flash::@3 to display_action_text [phi:rom_flash::@3->display_action_text] + // [1218] phi display_action_text::info_text#19 = rom_flash::info_text2 [phi:rom_flash::@3->display_action_text#0] -- pbuz1=pbuc1 lda #info_text2 @@ -10027,20 +10150,20 @@ rom_flash: { jsr display_action_text // rom_flash::@return // } - // [1463] return + // [1477] return rts // rom_flash::@2 __b2: // unsigned int equal_bytes = rom_compare(bram_bank_sector, (ram_ptr_t)ram_address_sector, rom_address_sector, ROM_SECTOR) - // [1464] rom_compare::bank_ram#1 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 + // [1478] rom_compare::bank_ram#1 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 lda bram_bank_sector sta.z rom_compare.bank_ram - // [1465] rom_compare::ptr_ram#2 = rom_flash::ram_address_sector#11 -- pbuz1=pbuz2 + // [1479] rom_compare::ptr_ram#2 = rom_flash::ram_address_sector#11 -- pbuz1=pbuz2 lda.z ram_address_sector sta.z rom_compare.ptr_ram lda.z ram_address_sector+1 sta.z rom_compare.ptr_ram+1 - // [1466] rom_compare::rom_compare_address#1 = rom_flash::rom_address_sector#12 -- vduz1=vdum2 + // [1480] rom_compare::rom_compare_address#1 = rom_flash::rom_address_sector#12 -- vduz1=vdum2 lda rom_address_sector sta.z rom_compare.rom_compare_address lda rom_address_sector+1 @@ -10049,24 +10172,24 @@ rom_flash: { sta.z rom_compare.rom_compare_address+2 lda rom_address_sector+3 sta.z rom_compare.rom_compare_address+3 - // [1467] call rom_compare + // [1481] call rom_compare // {asm{.byte $db}} - // [2407] phi from rom_flash::@2 to rom_compare [phi:rom_flash::@2->rom_compare] - // [2407] phi rom_compare::ptr_ram#10 = rom_compare::ptr_ram#2 [phi:rom_flash::@2->rom_compare#0] -- register_copy - // [2407] phi rom_compare::rom_compare_size#11 = $1000 [phi:rom_flash::@2->rom_compare#1] -- vwuz1=vwuc1 + // [2421] phi from rom_flash::@2 to rom_compare [phi:rom_flash::@2->rom_compare] + // [2421] phi rom_compare::ptr_ram#10 = rom_compare::ptr_ram#2 [phi:rom_flash::@2->rom_compare#0] -- register_copy + // [2421] phi rom_compare::rom_compare_size#11 = $1000 [phi:rom_flash::@2->rom_compare#1] -- vwuz1=vwuc1 lda #<$1000 sta.z rom_compare.rom_compare_size lda #>$1000 sta.z rom_compare.rom_compare_size+1 - // [2407] phi rom_compare::rom_compare_address#3 = rom_compare::rom_compare_address#1 [phi:rom_flash::@2->rom_compare#2] -- register_copy - // [2407] phi rom_compare::bank_set_bram1_bank#0 = rom_compare::bank_ram#1 [phi:rom_flash::@2->rom_compare#3] -- register_copy + // [2421] phi rom_compare::rom_compare_address#3 = rom_compare::rom_compare_address#1 [phi:rom_flash::@2->rom_compare#2] -- register_copy + // [2421] phi rom_compare::bank_set_bram1_bank#0 = rom_compare::bank_ram#1 [phi:rom_flash::@2->rom_compare#3] -- register_copy jsr rom_compare // unsigned int equal_bytes = rom_compare(bram_bank_sector, (ram_ptr_t)ram_address_sector, rom_address_sector, ROM_SECTOR) - // [1468] rom_compare::return#3 = rom_compare::equal_bytes#2 + // [1482] rom_compare::return#3 = rom_compare::equal_bytes#2 // rom_flash::@21 - // [1469] rom_flash::equal_bytes#0 = rom_compare::return#3 + // [1483] rom_flash::equal_bytes#0 = rom_compare::return#3 // if (equal_bytes != ROM_SECTOR) - // [1470] if(rom_flash::equal_bytes#0!=$1000) goto rom_flash::@5 -- vwuz1_neq_vwuc1_then_la1 + // [1484] if(rom_flash::equal_bytes#0!=$1000) goto rom_flash::@5 -- vwuz1_neq_vwuc1_then_la1 lda.z equal_bytes+1 cmp #>$1000 beq !__b3+ @@ -10079,28 +10202,28 @@ rom_flash: { !__b3: // rom_flash::@16 // cputsxy(x_sector, y_sector, "--------") - // [1471] cputsxy::x#1 = rom_flash::x_sector#10 -- vbuz1=vbum2 + // [1485] cputsxy::x#1 = rom_flash::x_sector#10 -- vbuz1=vbum2 lda x_sector sta.z cputsxy.x - // [1472] cputsxy::y#1 = rom_flash::y_sector#13 -- vbuz1=vbum2 + // [1486] cputsxy::y#1 = rom_flash::y_sector#13 -- vbuz1=vbum2 lda y_sector sta.z cputsxy.y - // [1473] call cputsxy - // [831] phi from rom_flash::@16 to cputsxy [phi:rom_flash::@16->cputsxy] - // [831] phi cputsxy::s#4 = rom_flash::s [phi:rom_flash::@16->cputsxy#0] -- pbuz1=pbuc1 + // [1487] call cputsxy + // [838] phi from rom_flash::@16 to cputsxy [phi:rom_flash::@16->cputsxy] + // [838] phi cputsxy::s#4 = rom_flash::s [phi:rom_flash::@16->cputsxy#0] -- pbuz1=pbuc1 lda #s sta.z cputsxy.s+1 - // [831] phi cputsxy::y#4 = cputsxy::y#1 [phi:rom_flash::@16->cputsxy#1] -- register_copy - // [831] phi cputsxy::x#4 = cputsxy::x#1 [phi:rom_flash::@16->cputsxy#2] -- register_copy + // [838] phi cputsxy::y#4 = cputsxy::y#1 [phi:rom_flash::@16->cputsxy#1] -- register_copy + // [838] phi cputsxy::x#4 = cputsxy::x#1 [phi:rom_flash::@16->cputsxy#2] -- register_copy jsr cputsxy - // [1474] phi from rom_flash::@12 rom_flash::@16 to rom_flash::@4 [phi:rom_flash::@12/rom_flash::@16->rom_flash::@4] - // [1474] phi rom_flash::flash_errors#13 = rom_flash::flash_errors#1 [phi:rom_flash::@12/rom_flash::@16->rom_flash::@4#0] -- register_copy + // [1488] phi from rom_flash::@12 rom_flash::@16 to rom_flash::@4 [phi:rom_flash::@12/rom_flash::@16->rom_flash::@4] + // [1488] phi rom_flash::flash_errors#13 = rom_flash::flash_errors#1 [phi:rom_flash::@12/rom_flash::@16->rom_flash::@4#0] -- register_copy // rom_flash::@4 __b4: // ram_address_sector += ROM_SECTOR - // [1475] rom_flash::ram_address_sector#1 = rom_flash::ram_address_sector#11 + $1000 -- pbuz1=pbuz1_plus_vwuc1 + // [1489] rom_flash::ram_address_sector#1 = rom_flash::ram_address_sector#11 + $1000 -- pbuz1=pbuz1_plus_vwuc1 lda.z ram_address_sector clc adc #<$1000 @@ -10109,7 +10232,7 @@ rom_flash: { adc #>$1000 sta.z ram_address_sector+1 // rom_address_sector += ROM_SECTOR - // [1476] rom_flash::rom_address_sector#1 = rom_flash::rom_address_sector#12 + $1000 -- vdum1=vdum1_plus_vwuc1 + // [1490] rom_flash::rom_address_sector#1 = rom_flash::rom_address_sector#12 + $1000 -- vdum1=vdum1_plus_vwuc1 clc lda rom_address_sector adc #<$1000 @@ -10124,7 +10247,7 @@ rom_flash: { adc #0 sta rom_address_sector+3 // if (ram_address_sector == BRAM_HIGH) - // [1477] if(rom_flash::ram_address_sector#1!=$c000) goto rom_flash::@13 -- pbuz1_neq_vwuc1_then_la1 + // [1491] if(rom_flash::ram_address_sector#1!=$c000) goto rom_flash::@13 -- pbuz1_neq_vwuc1_then_la1 lda.z ram_address_sector+1 cmp #>$c000 bne __b13 @@ -10133,52 +10256,52 @@ rom_flash: { bne __b13 // rom_flash::@17 // bram_bank_sector++; - // [1478] rom_flash::bram_bank_sector#1 = ++ rom_flash::bram_bank_sector#14 -- vbum1=_inc_vbum1 + // [1492] rom_flash::bram_bank_sector#1 = ++ rom_flash::bram_bank_sector#14 -- vbum1=_inc_vbum1 inc bram_bank_sector - // [1479] phi from rom_flash::@17 to rom_flash::@13 [phi:rom_flash::@17->rom_flash::@13] - // [1479] phi rom_flash::bram_bank_sector#38 = rom_flash::bram_bank_sector#1 [phi:rom_flash::@17->rom_flash::@13#0] -- register_copy - // [1479] phi rom_flash::ram_address_sector#8 = (char *)$a000 [phi:rom_flash::@17->rom_flash::@13#1] -- pbuz1=pbuc1 + // [1493] phi from rom_flash::@17 to rom_flash::@13 [phi:rom_flash::@17->rom_flash::@13] + // [1493] phi rom_flash::bram_bank_sector#38 = rom_flash::bram_bank_sector#1 [phi:rom_flash::@17->rom_flash::@13#0] -- register_copy + // [1493] phi rom_flash::ram_address_sector#8 = (char *)$a000 [phi:rom_flash::@17->rom_flash::@13#1] -- pbuz1=pbuc1 lda #<$a000 sta.z ram_address_sector lda #>$a000 sta.z ram_address_sector+1 - // [1479] phi from rom_flash::@4 to rom_flash::@13 [phi:rom_flash::@4->rom_flash::@13] - // [1479] phi rom_flash::bram_bank_sector#38 = rom_flash::bram_bank_sector#14 [phi:rom_flash::@4->rom_flash::@13#0] -- register_copy - // [1479] phi rom_flash::ram_address_sector#8 = rom_flash::ram_address_sector#1 [phi:rom_flash::@4->rom_flash::@13#1] -- register_copy + // [1493] phi from rom_flash::@4 to rom_flash::@13 [phi:rom_flash::@4->rom_flash::@13] + // [1493] phi rom_flash::bram_bank_sector#38 = rom_flash::bram_bank_sector#14 [phi:rom_flash::@4->rom_flash::@13#0] -- register_copy + // [1493] phi rom_flash::ram_address_sector#8 = rom_flash::ram_address_sector#1 [phi:rom_flash::@4->rom_flash::@13#1] -- register_copy // rom_flash::@13 __b13: // if (ram_address_sector == RAM_HIGH) - // [1480] if(rom_flash::ram_address_sector#8!=$9800) goto rom_flash::@44 -- pbuz1_neq_vwuc1_then_la1 + // [1494] if(rom_flash::ram_address_sector#8!=$9800) goto rom_flash::@44 -- pbuz1_neq_vwuc1_then_la1 lda.z ram_address_sector+1 cmp #>$9800 bne __b14 lda.z ram_address_sector cmp #<$9800 bne __b14 - // [1482] phi from rom_flash::@13 to rom_flash::@14 [phi:rom_flash::@13->rom_flash::@14] - // [1482] phi rom_flash::ram_address_sector#15 = (char *)$a000 [phi:rom_flash::@13->rom_flash::@14#0] -- pbuz1=pbuc1 + // [1496] phi from rom_flash::@13 to rom_flash::@14 [phi:rom_flash::@13->rom_flash::@14] + // [1496] phi rom_flash::ram_address_sector#15 = (char *)$a000 [phi:rom_flash::@13->rom_flash::@14#0] -- pbuz1=pbuc1 lda #<$a000 sta.z ram_address_sector lda #>$a000 sta.z ram_address_sector+1 - // [1482] phi rom_flash::bram_bank_sector#12 = 1 [phi:rom_flash::@13->rom_flash::@14#1] -- vbum1=vbuc1 + // [1496] phi rom_flash::bram_bank_sector#12 = 1 [phi:rom_flash::@13->rom_flash::@14#1] -- vbum1=vbuc1 lda #1 sta bram_bank_sector - // [1481] phi from rom_flash::@13 to rom_flash::@44 [phi:rom_flash::@13->rom_flash::@44] + // [1495] phi from rom_flash::@13 to rom_flash::@44 [phi:rom_flash::@13->rom_flash::@44] // rom_flash::@44 - // [1482] phi from rom_flash::@44 to rom_flash::@14 [phi:rom_flash::@44->rom_flash::@14] - // [1482] phi rom_flash::ram_address_sector#15 = rom_flash::ram_address_sector#8 [phi:rom_flash::@44->rom_flash::@14#0] -- register_copy - // [1482] phi rom_flash::bram_bank_sector#12 = rom_flash::bram_bank_sector#38 [phi:rom_flash::@44->rom_flash::@14#1] -- register_copy + // [1496] phi from rom_flash::@44 to rom_flash::@14 [phi:rom_flash::@44->rom_flash::@14] + // [1496] phi rom_flash::ram_address_sector#15 = rom_flash::ram_address_sector#8 [phi:rom_flash::@44->rom_flash::@14#0] -- register_copy + // [1496] phi rom_flash::bram_bank_sector#12 = rom_flash::bram_bank_sector#38 [phi:rom_flash::@44->rom_flash::@14#1] -- register_copy // rom_flash::@14 __b14: // x_sector += 8 - // [1483] rom_flash::x_sector#1 = rom_flash::x_sector#10 + 8 -- vbum1=vbum1_plus_vbuc1 + // [1497] rom_flash::x_sector#1 = rom_flash::x_sector#10 + 8 -- vbum1=vbum1_plus_vbuc1 lda #8 clc adc x_sector sta x_sector // rom_address_sector % ROM_PROGRESS_ROW - // [1484] rom_flash::$29 = rom_flash::rom_address_sector#1 & ROM_PROGRESS_ROW-1 -- vdum1=vdum2_band_vduc1 + // [1498] rom_flash::$29 = rom_flash::rom_address_sector#1 & ROM_PROGRESS_ROW-1 -- vdum1=vdum2_band_vduc1 lda rom_address_sector and #ROM_PROGRESS_ROW-1>>$10 sta rom_flash__29+3 // if (!(rom_address_sector % ROM_PROGRESS_ROW)) - // [1485] if(0!=rom_flash::$29) goto rom_flash::@15 -- 0_neq_vdum1_then_la1 + // [1499] if(0!=rom_flash::$29) goto rom_flash::@15 -- 0_neq_vdum1_then_la1 lda rom_flash__29 ora rom_flash__29+1 ora rom_flash__29+2 @@ -10200,22 +10323,22 @@ rom_flash: { bne __b15 // rom_flash::@18 // y_sector++; - // [1486] rom_flash::y_sector#1 = ++ rom_flash::y_sector#13 -- vbum1=_inc_vbum1 + // [1500] rom_flash::y_sector#1 = ++ rom_flash::y_sector#13 -- vbum1=_inc_vbum1 inc y_sector - // [1487] phi from rom_flash::@18 to rom_flash::@15 [phi:rom_flash::@18->rom_flash::@15] - // [1487] phi rom_flash::y_sector#18 = rom_flash::y_sector#1 [phi:rom_flash::@18->rom_flash::@15#0] -- register_copy - // [1487] phi rom_flash::x_sector#20 = PROGRESS_X [phi:rom_flash::@18->rom_flash::@15#1] -- vbum1=vbuc1 + // [1501] phi from rom_flash::@18 to rom_flash::@15 [phi:rom_flash::@18->rom_flash::@15] + // [1501] phi rom_flash::y_sector#18 = rom_flash::y_sector#1 [phi:rom_flash::@18->rom_flash::@15#0] -- register_copy + // [1501] phi rom_flash::x_sector#20 = PROGRESS_X [phi:rom_flash::@18->rom_flash::@15#1] -- vbum1=vbuc1 lda #PROGRESS_X sta x_sector - // [1487] phi from rom_flash::@14 to rom_flash::@15 [phi:rom_flash::@14->rom_flash::@15] - // [1487] phi rom_flash::y_sector#18 = rom_flash::y_sector#13 [phi:rom_flash::@14->rom_flash::@15#0] -- register_copy - // [1487] phi rom_flash::x_sector#20 = rom_flash::x_sector#1 [phi:rom_flash::@14->rom_flash::@15#1] -- register_copy + // [1501] phi from rom_flash::@14 to rom_flash::@15 [phi:rom_flash::@14->rom_flash::@15] + // [1501] phi rom_flash::y_sector#18 = rom_flash::y_sector#13 [phi:rom_flash::@14->rom_flash::@15#0] -- register_copy + // [1501] phi rom_flash::x_sector#20 = rom_flash::x_sector#1 [phi:rom_flash::@14->rom_flash::@15#1] -- register_copy // rom_flash::@15 __b15: // sprintf(info_text, "%u flash errors ...", flash_errors) - // [1488] call snprintf_init - // [1123] phi from rom_flash::@15 to snprintf_init [phi:rom_flash::@15->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:rom_flash::@15->snprintf_init#0] -- pbuz1=pbuc1 + // [1502] call snprintf_init + // [1133] phi from rom_flash::@15 to snprintf_init [phi:rom_flash::@15->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:rom_flash::@15->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text @@ -10223,7 +10346,7 @@ rom_flash: { jsr snprintf_init // rom_flash::@40 // sprintf(info_text, "%u flash errors ...", flash_errors) - // [1489] printf_ulong::uvalue#6 = rom_flash::flash_errors#13 -- vduz1=vdum2 + // [1503] printf_ulong::uvalue#6 = rom_flash::flash_errors#13 -- vduz1=vdum2 lda flash_errors sta.z printf_ulong.uvalue lda flash_errors+1 @@ -10232,29 +10355,29 @@ rom_flash: { sta.z printf_ulong.uvalue+2 lda flash_errors+3 sta.z printf_ulong.uvalue+3 - // [1490] call printf_ulong - // [1440] phi from rom_flash::@40 to printf_ulong [phi:rom_flash::@40->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 0 [phi:rom_flash::@40->printf_ulong#0] -- vbuz1=vbuc1 + // [1504] call printf_ulong + // [1454] phi from rom_flash::@40 to printf_ulong [phi:rom_flash::@40->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 0 [phi:rom_flash::@40->printf_ulong#0] -- vbuz1=vbuc1 lda #0 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 0 [phi:rom_flash::@40->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 0 [phi:rom_flash::@40->printf_ulong#1] -- vbuz1=vbuc1 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = DECIMAL [phi:rom_flash::@40->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = DECIMAL [phi:rom_flash::@40->printf_ulong#2] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#6 [phi:rom_flash::@40->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#6 [phi:rom_flash::@40->printf_ulong#3] -- register_copy jsr printf_ulong - // [1491] phi from rom_flash::@40 to rom_flash::@41 [phi:rom_flash::@40->rom_flash::@41] + // [1505] phi from rom_flash::@40 to rom_flash::@41 [phi:rom_flash::@40->rom_flash::@41] // rom_flash::@41 // sprintf(info_text, "%u flash errors ...", flash_errors) - // [1492] call printf_str - // [1128] phi from rom_flash::@41 to printf_str [phi:rom_flash::@41->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_flash::@41->printf_str#0] -- pprz1=pprc1 + // [1506] call printf_str + // [1138] phi from rom_flash::@41 to printf_str [phi:rom_flash::@41->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_flash::@41->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_flash::s6 [phi:rom_flash::@41->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_flash::s6 [phi:rom_flash::@41->printf_str#1] -- pbuz1=pbuc1 lda #s6 @@ -10262,52 +10385,52 @@ rom_flash: { jsr printf_str // rom_flash::@42 // sprintf(info_text, "%u flash errors ...", flash_errors) - // [1493] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1507] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1494] callexecute snputc -- call_vprc1 + // [1508] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_info_rom(rom_chip, STATUS_FLASHING, info_text) - // [1496] display_info_rom::rom_chip#3 = rom_flash::rom_chip#0 -- vbuz1=vbum2 + // [1510] display_info_rom::rom_chip#3 = rom_flash::rom_chip#0 -- vbuz1=vbum2 lda rom_chip sta.z display_info_rom.rom_chip - // [1497] call display_info_rom - // [1240] phi from rom_flash::@42 to display_info_rom [phi:rom_flash::@42->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = info_text [phi:rom_flash::@42->display_info_rom#0] -- pbuz1=pbuc1 + // [1511] call display_info_rom + // [1250] phi from rom_flash::@42 to display_info_rom [phi:rom_flash::@42->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = info_text [phi:rom_flash::@42->display_info_rom#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_info_rom.info_text lda #>@info_text sta.z display_info_rom.info_text+1 - // [1240] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#3 [phi:rom_flash::@42->display_info_rom#1] -- register_copy - // [1240] phi display_info_rom::info_status#16 = STATUS_FLASHING [phi:rom_flash::@42->display_info_rom#2] -- vbuz1=vbuc1 + // [1250] phi display_info_rom::rom_chip#16 = display_info_rom::rom_chip#3 [phi:rom_flash::@42->display_info_rom#1] -- register_copy + // [1250] phi display_info_rom::info_status#16 = STATUS_FLASHING [phi:rom_flash::@42->display_info_rom#2] -- vbuz1=vbuc1 lda #STATUS_FLASHING sta.z display_info_rom.info_status jsr display_info_rom - // [1459] phi from rom_flash::@42 to rom_flash::@1 [phi:rom_flash::@42->rom_flash::@1] - // [1459] phi rom_flash::y_sector#13 = rom_flash::y_sector#18 [phi:rom_flash::@42->rom_flash::@1#0] -- register_copy - // [1459] phi rom_flash::x_sector#10 = rom_flash::x_sector#20 [phi:rom_flash::@42->rom_flash::@1#1] -- register_copy - // [1459] phi rom_flash::flash_errors#10 = rom_flash::flash_errors#13 [phi:rom_flash::@42->rom_flash::@1#2] -- register_copy - // [1459] phi rom_flash::ram_address_sector#11 = rom_flash::ram_address_sector#15 [phi:rom_flash::@42->rom_flash::@1#3] -- register_copy - // [1459] phi rom_flash::bram_bank_sector#14 = rom_flash::bram_bank_sector#12 [phi:rom_flash::@42->rom_flash::@1#4] -- register_copy - // [1459] phi rom_flash::rom_address_sector#12 = rom_flash::rom_address_sector#1 [phi:rom_flash::@42->rom_flash::@1#5] -- register_copy + // [1473] phi from rom_flash::@42 to rom_flash::@1 [phi:rom_flash::@42->rom_flash::@1] + // [1473] phi rom_flash::y_sector#13 = rom_flash::y_sector#18 [phi:rom_flash::@42->rom_flash::@1#0] -- register_copy + // [1473] phi rom_flash::x_sector#10 = rom_flash::x_sector#20 [phi:rom_flash::@42->rom_flash::@1#1] -- register_copy + // [1473] phi rom_flash::flash_errors#10 = rom_flash::flash_errors#13 [phi:rom_flash::@42->rom_flash::@1#2] -- register_copy + // [1473] phi rom_flash::ram_address_sector#11 = rom_flash::ram_address_sector#15 [phi:rom_flash::@42->rom_flash::@1#3] -- register_copy + // [1473] phi rom_flash::bram_bank_sector#14 = rom_flash::bram_bank_sector#12 [phi:rom_flash::@42->rom_flash::@1#4] -- register_copy + // [1473] phi rom_flash::rom_address_sector#12 = rom_flash::rom_address_sector#1 [phi:rom_flash::@42->rom_flash::@1#5] -- register_copy jmp __b1 - // [1498] phi from rom_flash::@21 to rom_flash::@5 [phi:rom_flash::@21->rom_flash::@5] + // [1512] phi from rom_flash::@21 to rom_flash::@5 [phi:rom_flash::@21->rom_flash::@5] __b3: - // [1498] phi rom_flash::retries#12 = 0 [phi:rom_flash::@21->rom_flash::@5#0] -- vbuz1=vbuc1 + // [1512] phi rom_flash::retries#12 = 0 [phi:rom_flash::@21->rom_flash::@5#0] -- vbum1=vbuc1 lda #0 - sta.z retries - // [1498] phi rom_flash::flash_errors_sector#11 = 0 [phi:rom_flash::@21->rom_flash::@5#1] -- vwuz1=vwuc1 + sta retries + // [1512] phi rom_flash::flash_errors_sector#11 = 0 [phi:rom_flash::@21->rom_flash::@5#1] -- vwuz1=vwuc1 sta.z flash_errors_sector sta.z flash_errors_sector+1 - // [1498] phi from rom_flash::@43 to rom_flash::@5 [phi:rom_flash::@43->rom_flash::@5] - // [1498] phi rom_flash::retries#12 = rom_flash::retries#1 [phi:rom_flash::@43->rom_flash::@5#0] -- register_copy - // [1498] phi rom_flash::flash_errors_sector#11 = rom_flash::flash_errors_sector#10 [phi:rom_flash::@43->rom_flash::@5#1] -- register_copy + // [1512] phi from rom_flash::@43 to rom_flash::@5 [phi:rom_flash::@43->rom_flash::@5] + // [1512] phi rom_flash::retries#12 = rom_flash::retries#1 [phi:rom_flash::@43->rom_flash::@5#0] -- register_copy + // [1512] phi rom_flash::flash_errors_sector#11 = rom_flash::flash_errors_sector#10 [phi:rom_flash::@43->rom_flash::@5#1] -- register_copy // rom_flash::@5 __b5: // rom_sector_erase(rom_address_sector) - // [1499] rom_sector_erase::address#0 = rom_flash::rom_address_sector#12 -- vdum1=vdum2 + // [1513] rom_sector_erase::address#0 = rom_flash::rom_address_sector#12 -- vdum1=vdum2 lda rom_address_sector sta rom_sector_erase.address lda rom_address_sector+1 @@ -10316,12 +10439,12 @@ rom_flash: { sta rom_sector_erase.address+2 lda rom_address_sector+3 sta rom_sector_erase.address+3 - // [1500] call rom_sector_erase - // [2463] phi from rom_flash::@5 to rom_sector_erase [phi:rom_flash::@5->rom_sector_erase] + // [1514] call rom_sector_erase + // [2477] phi from rom_flash::@5 to rom_sector_erase [phi:rom_flash::@5->rom_sector_erase] jsr rom_sector_erase // rom_flash::@22 // unsigned long rom_sector_boundary = rom_address_sector + ROM_SECTOR - // [1501] rom_flash::rom_sector_boundary#0 = rom_flash::rom_address_sector#12 + $1000 -- vdum1=vdum2_plus_vwuc1 + // [1515] rom_flash::rom_sector_boundary#0 = rom_flash::rom_address_sector#12 + $1000 -- vdum1=vdum2_plus_vwuc1 clc lda rom_address_sector adc #<$1000 @@ -10336,35 +10459,35 @@ rom_flash: { adc #0 sta rom_sector_boundary+3 // gotoxy(x, y) - // [1502] gotoxy::x#28 = rom_flash::x_sector#10 -- vbuz1=vbum2 + // [1516] gotoxy::x#28 = rom_flash::x_sector#10 -- vbuz1=vbum2 lda x_sector sta.z gotoxy.x - // [1503] gotoxy::y#28 = rom_flash::y_sector#13 -- vbuz1=vbum2 + // [1517] gotoxy::y#28 = rom_flash::y_sector#13 -- vbuz1=vbum2 lda y_sector sta.z gotoxy.y - // [1504] call gotoxy - // [744] phi from rom_flash::@22 to gotoxy [phi:rom_flash::@22->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#28 [phi:rom_flash::@22->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#28 [phi:rom_flash::@22->gotoxy#1] -- register_copy + // [1518] call gotoxy + // [751] phi from rom_flash::@22 to gotoxy [phi:rom_flash::@22->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#28 [phi:rom_flash::@22->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#28 [phi:rom_flash::@22->gotoxy#1] -- register_copy jsr gotoxy - // [1505] phi from rom_flash::@22 to rom_flash::@23 [phi:rom_flash::@22->rom_flash::@23] + // [1519] phi from rom_flash::@22 to rom_flash::@23 [phi:rom_flash::@22->rom_flash::@23] // rom_flash::@23 // printf("........") - // [1506] call printf_str - // [1128] phi from rom_flash::@23 to printf_str [phi:rom_flash::@23->printf_str] - // [1128] phi printf_str::putc#71 = &cputc [phi:rom_flash::@23->printf_str#0] -- pprz1=pprc1 + // [1520] call printf_str + // [1138] phi from rom_flash::@23 to printf_str [phi:rom_flash::@23->printf_str] + // [1138] phi printf_str::putc#71 = &cputc [phi:rom_flash::@23->printf_str#0] -- pprz1=pprc1 lda #cputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_flash::s1 [phi:rom_flash::@23->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_flash::s1 [phi:rom_flash::@23->printf_str#1] -- pbuz1=pbuc1 lda #s1 sta.z printf_str.s+1 jsr printf_str // rom_flash::@24 - // [1507] rom_flash::rom_address#26 = rom_flash::rom_address_sector#12 -- vduz1=vdum2 + // [1521] rom_flash::rom_address#26 = rom_flash::rom_address_sector#12 -- vduz1=vdum2 lda rom_address_sector sta.z rom_address lda rom_address_sector+1 @@ -10373,23 +10496,23 @@ rom_flash: { sta.z rom_address+2 lda rom_address_sector+3 sta.z rom_address+3 - // [1508] rom_flash::ram_address#26 = rom_flash::ram_address_sector#11 -- pbuz1=pbuz2 + // [1522] rom_flash::ram_address#26 = rom_flash::ram_address_sector#11 -- pbuz1=pbuz2 lda.z ram_address_sector sta.z ram_address lda.z ram_address_sector+1 sta.z ram_address+1 - // [1509] rom_flash::x#26 = rom_flash::x_sector#10 -- vbuz1=vbum2 + // [1523] rom_flash::x#26 = rom_flash::x_sector#10 -- vbuz1=vbum2 lda x_sector sta.z x - // [1510] phi from rom_flash::@10 rom_flash::@24 to rom_flash::@6 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6] - // [1510] phi rom_flash::x#10 = rom_flash::x#1 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#0] -- register_copy - // [1510] phi rom_flash::ram_address#10 = rom_flash::ram_address#1 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#1] -- register_copy - // [1510] phi rom_flash::flash_errors_sector#10 = rom_flash::flash_errors_sector#8 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#2] -- register_copy - // [1510] phi rom_flash::rom_address#11 = rom_flash::rom_address#1 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#3] -- register_copy + // [1524] phi from rom_flash::@10 rom_flash::@24 to rom_flash::@6 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6] + // [1524] phi rom_flash::x#10 = rom_flash::x#1 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#0] -- register_copy + // [1524] phi rom_flash::ram_address#10 = rom_flash::ram_address#1 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#1] -- register_copy + // [1524] phi rom_flash::flash_errors_sector#10 = rom_flash::flash_errors_sector#8 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#2] -- register_copy + // [1524] phi rom_flash::rom_address#11 = rom_flash::rom_address#1 [phi:rom_flash::@10/rom_flash::@24->rom_flash::@6#3] -- register_copy // rom_flash::@6 __b6: // while (rom_address < rom_sector_boundary) - // [1511] if(rom_flash::rom_address#11 ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1516] printf_ulong::uvalue#5 = rom_flash::flash_errors_sector#10 + rom_flash::flash_errors#10 -- vdum1=vwuz2_plus_vdum3 + // [1530] printf_ulong::uvalue#5 = rom_flash::flash_errors_sector#10 + rom_flash::flash_errors#10 -- vdum1=vwuz2_plus_vdum3 lda flash_errors clc adc.z flash_errors_sector @@ -10457,25 +10580,25 @@ rom_flash: { lda flash_errors+3 adc #0 sta printf_ulong.uvalue_1+3 - // [1517] call snprintf_init - // [1123] phi from rom_flash::@7 to snprintf_init [phi:rom_flash::@7->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:rom_flash::@7->snprintf_init#0] -- pbuz1=pbuc1 + // [1531] call snprintf_init + // [1133] phi from rom_flash::@7 to snprintf_init [phi:rom_flash::@7->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:rom_flash::@7->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1518] phi from rom_flash::@7 to rom_flash::@25 [phi:rom_flash::@7->rom_flash::@25] + // [1532] phi from rom_flash::@7 to rom_flash::@25 [phi:rom_flash::@7->rom_flash::@25] // rom_flash::@25 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1519] call printf_str - // [1128] phi from rom_flash::@25 to printf_str [phi:rom_flash::@25->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_flash::@25->printf_str#0] -- pprz1=pprc1 + // [1533] call printf_str + // [1138] phi from rom_flash::@25 to printf_str [phi:rom_flash::@25->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_flash::@25->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_flash::s2 [phi:rom_flash::@25->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_flash::s2 [phi:rom_flash::@25->printf_str#1] -- pbuz1=pbuc1 lda #s2 @@ -10483,38 +10606,38 @@ rom_flash: { jsr printf_str // rom_flash::@26 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1520] printf_uchar::uvalue#11 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 + // [1534] printf_uchar::uvalue#11 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 lda bram_bank_sector sta.z printf_uchar.uvalue - // [1521] call printf_uchar - // [1197] phi from rom_flash::@26 to printf_uchar [phi:rom_flash::@26->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_flash::@26->printf_uchar#0] -- vbuz1=vbuc1 + // [1535] call printf_uchar + // [1207] phi from rom_flash::@26 to printf_uchar [phi:rom_flash::@26->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 1 [phi:rom_flash::@26->printf_uchar#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 2 [phi:rom_flash::@26->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 2 [phi:rom_flash::@26->printf_uchar#1] -- vbuz1=vbuc1 lda #2 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:rom_flash::@26->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:rom_flash::@26->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_flash::@26->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:rom_flash::@26->printf_uchar#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#11 [phi:rom_flash::@26->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#11 [phi:rom_flash::@26->printf_uchar#4] -- register_copy jsr printf_uchar - // [1522] phi from rom_flash::@26 to rom_flash::@27 [phi:rom_flash::@26->rom_flash::@27] + // [1536] phi from rom_flash::@26 to rom_flash::@27 [phi:rom_flash::@26->rom_flash::@27] // rom_flash::@27 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1523] call printf_str - // [1128] phi from rom_flash::@27 to printf_str [phi:rom_flash::@27->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_flash::@27->printf_str#0] -- pprz1=pprc1 + // [1537] call printf_str + // [1138] phi from rom_flash::@27 to printf_str [phi:rom_flash::@27->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_flash::@27->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s3 [phi:rom_flash::@27->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s3 [phi:rom_flash::@27->printf_str#1] -- pbuz1=pbuc1 lda #s3 @@ -10522,40 +10645,40 @@ rom_flash: { jsr printf_str // rom_flash::@28 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1524] printf_uint::uvalue#12 = (unsigned int)rom_flash::ram_address_sector#11 -- vwuz1=vwuz2 + // [1538] printf_uint::uvalue#12 = (unsigned int)rom_flash::ram_address_sector#11 -- vwuz1=vwuz2 lda.z ram_address_sector sta.z printf_uint.uvalue lda.z ram_address_sector+1 sta.z printf_uint.uvalue+1 - // [1525] call printf_uint - // [1825] phi from rom_flash::@28 to printf_uint [phi:rom_flash::@28->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:rom_flash::@28->printf_uint#0] -- vbuz1=vbuc1 + // [1539] call printf_uint + // [1839] phi from rom_flash::@28 to printf_uint [phi:rom_flash::@28->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:rom_flash::@28->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 4 [phi:rom_flash::@28->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 4 [phi:rom_flash::@28->printf_uint#1] -- vbuz1=vbuc1 lda #4 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:rom_flash::@28->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:rom_flash::@28->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:rom_flash::@28->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:rom_flash::@28->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#12 [phi:rom_flash::@28->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#12 [phi:rom_flash::@28->printf_uint#4] -- register_copy jsr printf_uint - // [1526] phi from rom_flash::@28 to rom_flash::@29 [phi:rom_flash::@28->rom_flash::@29] + // [1540] phi from rom_flash::@28 to rom_flash::@29 [phi:rom_flash::@28->rom_flash::@29] // rom_flash::@29 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1527] call printf_str - // [1128] phi from rom_flash::@29 to printf_str [phi:rom_flash::@29->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_flash::@29->printf_str#0] -- pprz1=pprc1 + // [1541] call printf_str + // [1138] phi from rom_flash::@29 to printf_str [phi:rom_flash::@29->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_flash::@29->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_flash::s4 [phi:rom_flash::@29->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_flash::s4 [phi:rom_flash::@29->printf_str#1] -- pbuz1=pbuc1 lda #s4 @@ -10563,7 +10686,7 @@ rom_flash: { jsr printf_str // rom_flash::@30 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1528] printf_ulong::uvalue#4 = rom_flash::rom_address_sector#12 -- vduz1=vdum2 + // [1542] printf_ulong::uvalue#4 = rom_flash::rom_address_sector#12 -- vduz1=vdum2 lda rom_address_sector sta.z printf_ulong.uvalue lda rom_address_sector+1 @@ -10572,37 +10695,37 @@ rom_flash: { sta.z printf_ulong.uvalue+2 lda rom_address_sector+3 sta.z printf_ulong.uvalue+3 - // [1529] call printf_ulong - // [1440] phi from rom_flash::@30 to printf_ulong [phi:rom_flash::@30->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_flash::@30->printf_ulong#0] -- vbuz1=vbuc1 + // [1543] call printf_ulong + // [1454] phi from rom_flash::@30 to printf_ulong [phi:rom_flash::@30->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 1 [phi:rom_flash::@30->printf_ulong#0] -- vbuz1=vbuc1 lda #1 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 5 [phi:rom_flash::@30->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 5 [phi:rom_flash::@30->printf_ulong#1] -- vbuz1=vbuc1 lda #5 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_flash::@30->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = HEXADECIMAL [phi:rom_flash::@30->printf_ulong#2] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#4 [phi:rom_flash::@30->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#4 [phi:rom_flash::@30->printf_ulong#3] -- register_copy jsr printf_ulong - // [1530] phi from rom_flash::@30 to rom_flash::@31 [phi:rom_flash::@30->rom_flash::@31] + // [1544] phi from rom_flash::@30 to rom_flash::@31 [phi:rom_flash::@30->rom_flash::@31] // rom_flash::@31 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1531] call printf_str - // [1128] phi from rom_flash::@31 to printf_str [phi:rom_flash::@31->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_flash::@31->printf_str#0] -- pprz1=pprc1 + // [1545] call printf_str + // [1138] phi from rom_flash::@31 to printf_str [phi:rom_flash::@31->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_flash::@31->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_flash::s5 [phi:rom_flash::@31->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_flash::s5 [phi:rom_flash::@31->printf_str#1] -- pbuz1=pbuc1 lda #s5 sta.z printf_str.s+1 jsr printf_str // rom_flash::@32 - // [1532] printf_ulong::uvalue#16 = printf_ulong::uvalue#5 -- vduz1=vdum2 + // [1546] printf_ulong::uvalue#16 = printf_ulong::uvalue#5 -- vduz1=vdum2 lda printf_ulong.uvalue_1 sta.z printf_ulong.uvalue lda printf_ulong.uvalue_1+1 @@ -10612,29 +10735,29 @@ rom_flash: { lda printf_ulong.uvalue_1+3 sta.z printf_ulong.uvalue+3 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1533] call printf_ulong - // [1440] phi from rom_flash::@32 to printf_ulong [phi:rom_flash::@32->printf_ulong] - // [1440] phi printf_ulong::format_zero_padding#10 = 0 [phi:rom_flash::@32->printf_ulong#0] -- vbuz1=vbuc1 + // [1547] call printf_ulong + // [1454] phi from rom_flash::@32 to printf_ulong [phi:rom_flash::@32->printf_ulong] + // [1454] phi printf_ulong::format_zero_padding#10 = 0 [phi:rom_flash::@32->printf_ulong#0] -- vbuz1=vbuc1 lda #0 sta.z printf_ulong.format_zero_padding - // [1440] phi printf_ulong::format_min_length#10 = 0 [phi:rom_flash::@32->printf_ulong#1] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_min_length#10 = 0 [phi:rom_flash::@32->printf_ulong#1] -- vbuz1=vbuc1 sta.z printf_ulong.format_min_length - // [1440] phi printf_ulong::format_radix#10 = DECIMAL [phi:rom_flash::@32->printf_ulong#2] -- vbuz1=vbuc1 + // [1454] phi printf_ulong::format_radix#10 = DECIMAL [phi:rom_flash::@32->printf_ulong#2] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_ulong.format_radix - // [1440] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#16 [phi:rom_flash::@32->printf_ulong#3] -- register_copy + // [1454] phi printf_ulong::uvalue#10 = printf_ulong::uvalue#16 [phi:rom_flash::@32->printf_ulong#3] -- register_copy jsr printf_ulong - // [1534] phi from rom_flash::@32 to rom_flash::@33 [phi:rom_flash::@32->rom_flash::@33] + // [1548] phi from rom_flash::@32 to rom_flash::@33 [phi:rom_flash::@32->rom_flash::@33] // rom_flash::@33 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1535] call printf_str - // [1128] phi from rom_flash::@33 to printf_str [phi:rom_flash::@33->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_flash::@33->printf_str#0] -- pprz1=pprc1 + // [1549] call printf_str + // [1138] phi from rom_flash::@33 to printf_str [phi:rom_flash::@33->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_flash::@33->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = rom_flash::s6 [phi:rom_flash::@33->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = rom_flash::s6 [phi:rom_flash::@33->printf_str#1] -- pbuz1=pbuc1 lda #s6 @@ -10642,17 +10765,17 @@ rom_flash: { jsr printf_str // rom_flash::@34 // sprintf(info_text, "Flashing ... RAM:%02x:%04p -> ROM:%05x ... %u flash errors ...", bram_bank_sector, ram_address_sector, rom_address_sector, flash_errors_sector + flash_errors) - // [1536] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1550] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1537] callexecute snputc -- call_vprc1 + // [1551] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1539] call display_action_text - // [1208] phi from rom_flash::@34 to display_action_text [phi:rom_flash::@34->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:rom_flash::@34->display_action_text#0] -- pbuz1=pbuc1 + // [1553] call display_action_text + // [1218] phi from rom_flash::@34 to display_action_text [phi:rom_flash::@34->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:rom_flash::@34->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text @@ -10660,15 +10783,15 @@ rom_flash: { jsr display_action_text // rom_flash::@35 // unsigned long written_bytes = rom_write(bram_bank, (ram_ptr_t)ram_address, rom_address, ROM_PROGRESS_CELL) - // [1540] rom_write::flash_ram_bank#0 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 + // [1554] rom_write::flash_ram_bank#0 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 lda bram_bank_sector sta.z rom_write.flash_ram_bank - // [1541] rom_write::flash_ram_address#1 = rom_flash::ram_address#10 -- pbuz1=pbuz2 + // [1555] rom_write::flash_ram_address#1 = rom_flash::ram_address#10 -- pbuz1=pbuz2 lda.z ram_address sta.z rom_write.flash_ram_address lda.z ram_address+1 sta.z rom_write.flash_ram_address+1 - // [1542] rom_write::flash_rom_address#1 = rom_flash::rom_address#11 -- vduz1=vduz2 + // [1556] rom_write::flash_rom_address#1 = rom_flash::rom_address#11 -- vduz1=vduz2 lda.z rom_address sta.z rom_write.flash_rom_address lda.z rom_address+1 @@ -10677,19 +10800,19 @@ rom_flash: { sta.z rom_write.flash_rom_address+2 lda.z rom_address+3 sta.z rom_write.flash_rom_address+3 - // [1543] call rom_write + // [1557] call rom_write jsr rom_write // rom_flash::@36 // rom_compare(bram_bank, (ram_ptr_t)ram_address, rom_address, ROM_PROGRESS_CELL) - // [1544] rom_compare::bank_ram#2 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 + // [1558] rom_compare::bank_ram#2 = rom_flash::bram_bank_sector#14 -- vbuz1=vbum2 lda bram_bank_sector sta.z rom_compare.bank_ram - // [1545] rom_compare::ptr_ram#3 = rom_flash::ram_address#10 -- pbuz1=pbuz2 + // [1559] rom_compare::ptr_ram#3 = rom_flash::ram_address#10 -- pbuz1=pbuz2 lda.z ram_address sta.z rom_compare.ptr_ram lda.z ram_address+1 sta.z rom_compare.ptr_ram+1 - // [1546] rom_compare::rom_compare_address#2 = rom_flash::rom_address#11 -- vduz1=vduz2 + // [1560] rom_compare::rom_compare_address#2 = rom_flash::rom_address#11 -- vduz1=vduz2 lda.z rom_address sta.z rom_compare.rom_compare_address lda.z rom_address+1 @@ -10698,41 +10821,41 @@ rom_flash: { sta.z rom_compare.rom_compare_address+2 lda.z rom_address+3 sta.z rom_compare.rom_compare_address+3 - // [1547] call rom_compare - // [2407] phi from rom_flash::@36 to rom_compare [phi:rom_flash::@36->rom_compare] - // [2407] phi rom_compare::ptr_ram#10 = rom_compare::ptr_ram#3 [phi:rom_flash::@36->rom_compare#0] -- register_copy - // [2407] phi rom_compare::rom_compare_size#11 = ROM_PROGRESS_CELL [phi:rom_flash::@36->rom_compare#1] -- vwuz1=vwuc1 + // [1561] call rom_compare + // [2421] phi from rom_flash::@36 to rom_compare [phi:rom_flash::@36->rom_compare] + // [2421] phi rom_compare::ptr_ram#10 = rom_compare::ptr_ram#3 [phi:rom_flash::@36->rom_compare#0] -- register_copy + // [2421] phi rom_compare::rom_compare_size#11 = ROM_PROGRESS_CELL [phi:rom_flash::@36->rom_compare#1] -- vwuz1=vwuc1 lda #ROM_PROGRESS_CELL sta.z rom_compare.rom_compare_size+1 - // [2407] phi rom_compare::rom_compare_address#3 = rom_compare::rom_compare_address#2 [phi:rom_flash::@36->rom_compare#2] -- register_copy - // [2407] phi rom_compare::bank_set_bram1_bank#0 = rom_compare::bank_ram#2 [phi:rom_flash::@36->rom_compare#3] -- register_copy + // [2421] phi rom_compare::rom_compare_address#3 = rom_compare::rom_compare_address#2 [phi:rom_flash::@36->rom_compare#2] -- register_copy + // [2421] phi rom_compare::bank_set_bram1_bank#0 = rom_compare::bank_ram#2 [phi:rom_flash::@36->rom_compare#3] -- register_copy jsr rom_compare // rom_compare(bram_bank, (ram_ptr_t)ram_address, rom_address, ROM_PROGRESS_CELL) - // [1548] rom_compare::return#4 = rom_compare::equal_bytes#2 + // [1562] rom_compare::return#4 = rom_compare::equal_bytes#2 // rom_flash::@37 // equal_bytes = rom_compare(bram_bank, (ram_ptr_t)ram_address, rom_address, ROM_PROGRESS_CELL) - // [1549] rom_flash::equal_bytes#1 = rom_compare::return#4 -- vwuz1=vwuz2 + // [1563] rom_flash::equal_bytes#1 = rom_compare::return#4 -- vwuz1=vwuz2 lda.z rom_compare.return sta.z equal_bytes_1 lda.z rom_compare.return+1 sta.z equal_bytes_1+1 // gotoxy(x, y) - // [1550] gotoxy::x#29 = rom_flash::x#10 -- vbuz1=vbuz2 + // [1564] gotoxy::x#29 = rom_flash::x#10 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [1551] gotoxy::y#29 = rom_flash::y_sector#13 -- vbuz1=vbum2 + // [1565] gotoxy::y#29 = rom_flash::y_sector#13 -- vbuz1=vbum2 lda y_sector sta.z gotoxy.y - // [1552] call gotoxy - // [744] phi from rom_flash::@37 to gotoxy [phi:rom_flash::@37->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#29 [phi:rom_flash::@37->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#29 [phi:rom_flash::@37->gotoxy#1] -- register_copy + // [1566] call gotoxy + // [751] phi from rom_flash::@37 to gotoxy [phi:rom_flash::@37->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#29 [phi:rom_flash::@37->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#29 [phi:rom_flash::@37->gotoxy#1] -- register_copy jsr gotoxy // rom_flash::@38 // if (equal_bytes != ROM_PROGRESS_CELL) - // [1553] if(rom_flash::equal_bytes#1!=ROM_PROGRESS_CELL) goto rom_flash::@9 -- vwuz1_neq_vwuc1_then_la1 + // [1567] if(rom_flash::equal_bytes#1!=ROM_PROGRESS_CELL) goto rom_flash::@9 -- vwuz1_neq_vwuc1_then_la1 lda.z equal_bytes_1+1 cmp #>ROM_PROGRESS_CELL bne __b9 @@ -10741,26 +10864,26 @@ rom_flash: { bne __b9 // rom_flash::@11 // cputcxy(x,y,'+') - // [1554] cputcxy::x#14 = rom_flash::x#10 -- vbuz1=vbuz2 + // [1568] cputcxy::x#14 = rom_flash::x#10 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [1555] cputcxy::y#14 = rom_flash::y_sector#13 -- vbuz1=vbum2 + // [1569] cputcxy::y#14 = rom_flash::y_sector#13 -- vbuz1=vbum2 lda y_sector sta.z cputcxy.y - // [1556] call cputcxy - // [2054] phi from rom_flash::@11 to cputcxy [phi:rom_flash::@11->cputcxy] - // [2054] phi cputcxy::c#15 = '+' [phi:rom_flash::@11->cputcxy#0] -- vbuz1=vbuc1 + // [1570] call cputcxy + // [2068] phi from rom_flash::@11 to cputcxy [phi:rom_flash::@11->cputcxy] + // [2068] phi cputcxy::c#15 = '+' [phi:rom_flash::@11->cputcxy#0] -- vbuz1=vbuc1 lda #'+' sta.z cputcxy.c - // [2054] phi cputcxy::y#15 = cputcxy::y#14 [phi:rom_flash::@11->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#14 [phi:rom_flash::@11->cputcxy#2] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#14 [phi:rom_flash::@11->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#14 [phi:rom_flash::@11->cputcxy#2] -- register_copy jsr cputcxy - // [1557] phi from rom_flash::@11 rom_flash::@39 to rom_flash::@10 [phi:rom_flash::@11/rom_flash::@39->rom_flash::@10] - // [1557] phi rom_flash::flash_errors_sector#8 = rom_flash::flash_errors_sector#10 [phi:rom_flash::@11/rom_flash::@39->rom_flash::@10#0] -- register_copy + // [1571] phi from rom_flash::@11 rom_flash::@39 to rom_flash::@10 [phi:rom_flash::@11/rom_flash::@39->rom_flash::@10] + // [1571] phi rom_flash::flash_errors_sector#8 = rom_flash::flash_errors_sector#10 [phi:rom_flash::@11/rom_flash::@39->rom_flash::@10#0] -- register_copy // rom_flash::@10 __b10: // ram_address += ROM_PROGRESS_CELL - // [1558] rom_flash::ram_address#1 = rom_flash::ram_address#10 + ROM_PROGRESS_CELL -- pbuz1=pbuz1_plus_vwuc1 + // [1572] rom_flash::ram_address#1 = rom_flash::ram_address#10 + ROM_PROGRESS_CELL -- pbuz1=pbuz1_plus_vwuc1 lda.z ram_address clc adc #ROM_PROGRESS_CELL sta.z ram_address+1 // rom_address += ROM_PROGRESS_CELL - // [1559] rom_flash::rom_address#1 = rom_flash::rom_address#11 + ROM_PROGRESS_CELL -- vduz1=vduz1_plus_vwuc1 + // [1573] rom_flash::rom_address#1 = rom_flash::rom_address#11 + ROM_PROGRESS_CELL -- vduz1=vduz1_plus_vwuc1 clc lda.z rom_address adc #cputcxy] - // [2054] phi cputcxy::c#15 = '!' [phi:rom_flash::@9->cputcxy#0] -- vbuz1=vbuc1 + // [1577] call cputcxy + // [2068] phi from rom_flash::@9 to cputcxy [phi:rom_flash::@9->cputcxy] + // [2068] phi cputcxy::c#15 = '!' [phi:rom_flash::@9->cputcxy#0] -- vbuz1=vbuc1 lda #'!' sta.z cputcxy.c - // [2054] phi cputcxy::y#15 = cputcxy::y#13 [phi:rom_flash::@9->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#13 [phi:rom_flash::@9->cputcxy#2] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#13 [phi:rom_flash::@9->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#13 [phi:rom_flash::@9->cputcxy#2] -- register_copy jsr cputcxy // rom_flash::@39 // flash_errors_sector++; - // [1564] rom_flash::flash_errors_sector#1 = ++ rom_flash::flash_errors_sector#10 -- vwuz1=_inc_vwuz1 + // [1578] rom_flash::flash_errors_sector#1 = ++ rom_flash::flash_errors_sector#10 -- vwuz1=_inc_vwuz1 inc.z flash_errors_sector bne !+ inc.z flash_errors_sector+1 @@ -10835,14 +10958,15 @@ rom_flash: { .label rom_address_sector = main.rom_file_modulo rom_boundary: .dword 0 rom_sector_boundary: .dword 0 - .label flash_errors = rom_read.rom_read__11 + .label retries = main.check_status_smc9_main__0 + .label flash_errors = rom_read.rom_read__12 .label bram_bank_sector = main.check_status_vera2_main__0 .label x_sector = main.check_status_vera1_main__0 .label y_sector = main.main__67 .label rom_chip = util_wait_key.return .label rom_bank_start = main.check_status_rom1_main__0 .label file_size = main.rom_flash_errors - .label return = rom_read.rom_read__11 + .label return = rom_read.rom_read__12 } .segment Code // smc_flash @@ -10854,28 +10978,28 @@ rom_flash: { * @param smc_bytes_total Total bytes to flash the SMC from RAM. * @return unsigned int Total bytes flashed, 0 if there is an error. */ -// __mem() unsigned int smc_flash(__zp($3c) unsigned int smc_bytes_total) +// __mem() unsigned int smc_flash(__zp($3d) unsigned int smc_bytes_total) smc_flash: { - .label cx16_k_i2c_write_byte1_return = $73 - .label smc_bootloader_start = $73 + .label cx16_k_i2c_write_byte1_return = $fb + .label smc_bootloader_start = $fb .label smc_bootloader_not_activated1 = $2e // Waiting a bit to ensure the bootloader is activated. - .label smc_bootloader_activation_countdown = $df + .label smc_bootloader_activation_countdown = $e1 // Waiting a bit to ensure the bootloader is activated. .label smc_bootloader_activation_countdown_1 = $bc .label smc_bootloader_not_activated = $2e - .label smc_byte_upload = $db + .label smc_byte_upload = $dd .label smc_ram_ptr = $b8 .label smc_commit_result = $2e - .label smc_attempts_flashed = $7e - .label smc_row_bytes = $74 + .label smc_attempts_flashed = $7d + .label smc_row_bytes = $73 .label smc_attempts_total = $c4 .label y = $c6 - .label smc_bytes_total = $3c + .label smc_bytes_total = $3d // display_action_progress("To start the SMC update, do the below action ...") - // [1566] call display_action_progress - // [838] phi from smc_flash to display_action_progress [phi:smc_flash->display_action_progress] - // [838] phi display_action_progress::info_text#18 = smc_flash::info_text [phi:smc_flash->display_action_progress#0] -- pbuz1=pbuc1 + // [1580] call display_action_progress + // [845] phi from smc_flash to display_action_progress [phi:smc_flash->display_action_progress] + // [845] phi display_action_progress::info_text#19 = smc_flash::info_text [phi:smc_flash->display_action_progress#0] -- pbuz1=pbuc1 lda #info_text @@ -10883,18 +11007,18 @@ smc_flash: { jsr display_action_progress // smc_flash::@25 // unsigned char smc_bootloader_start = cx16_k_i2c_write_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_BOOTLOADER_RESET, 0x31) - // [1567] smc_flash::cx16_k_i2c_write_byte1_device = $42 -- vbum1=vbuc1 + // [1581] smc_flash::cx16_k_i2c_write_byte1_device = $42 -- vbum1=vbuc1 lda #$42 sta cx16_k_i2c_write_byte1_device - // [1568] smc_flash::cx16_k_i2c_write_byte1_offset = $8f -- vbum1=vbuc1 + // [1582] smc_flash::cx16_k_i2c_write_byte1_offset = $8f -- vbum1=vbuc1 lda #$8f sta cx16_k_i2c_write_byte1_offset - // [1569] smc_flash::cx16_k_i2c_write_byte1_value = $31 -- vbum1=vbuc1 + // [1583] smc_flash::cx16_k_i2c_write_byte1_value = $31 -- vbum1=vbuc1 lda #$31 sta cx16_k_i2c_write_byte1_value // smc_flash::cx16_k_i2c_write_byte1 // unsigned char result - // [1570] smc_flash::cx16_k_i2c_write_byte1_result = 0 -- vbum1=vbuc1 + // [1584] smc_flash::cx16_k_i2c_write_byte1_result = 0 -- vbum1=vbuc1 lda #0 sta cx16_k_i2c_write_byte1_result // asm @@ -10906,41 +11030,41 @@ smc_flash: { jsr CX16_I2C_WRITE_BYTE rol cx16_k_i2c_write_byte1_result // return result; - // [1572] smc_flash::cx16_k_i2c_write_byte1_return#0 = smc_flash::cx16_k_i2c_write_byte1_result -- vbuz1=vbum2 + // [1586] smc_flash::cx16_k_i2c_write_byte1_return#0 = smc_flash::cx16_k_i2c_write_byte1_result -- vbuz1=vbum2 lda cx16_k_i2c_write_byte1_result sta.z cx16_k_i2c_write_byte1_return // smc_flash::cx16_k_i2c_write_byte1_@return // } - // [1573] smc_flash::cx16_k_i2c_write_byte1_return#1 = smc_flash::cx16_k_i2c_write_byte1_return#0 + // [1587] smc_flash::cx16_k_i2c_write_byte1_return#1 = smc_flash::cx16_k_i2c_write_byte1_return#0 // smc_flash::@22 // unsigned char smc_bootloader_start = cx16_k_i2c_write_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_BOOTLOADER_RESET, 0x31) - // [1574] smc_flash::smc_bootloader_start#0 = smc_flash::cx16_k_i2c_write_byte1_return#1 + // [1588] smc_flash::smc_bootloader_start#0 = smc_flash::cx16_k_i2c_write_byte1_return#1 // if(smc_bootloader_start) - // [1575] if(0==smc_flash::smc_bootloader_start#0) goto smc_flash::@3 -- 0_eq_vbuz1_then_la1 + // [1589] if(0==smc_flash::smc_bootloader_start#0) goto smc_flash::@3 -- 0_eq_vbuz1_then_la1 lda.z smc_bootloader_start beq __b6 - // [1576] phi from smc_flash::@22 to smc_flash::@2 [phi:smc_flash::@22->smc_flash::@2] + // [1590] phi from smc_flash::@22 to smc_flash::@2 [phi:smc_flash::@22->smc_flash::@2] // smc_flash::@2 // sprintf(info_text, "There was a problem starting the SMC bootloader: %x", smc_bootloader_start) - // [1577] call snprintf_init - // [1123] phi from smc_flash::@2 to snprintf_init [phi:smc_flash::@2->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:smc_flash::@2->snprintf_init#0] -- pbuz1=pbuc1 + // [1591] call snprintf_init + // [1133] phi from smc_flash::@2 to snprintf_init [phi:smc_flash::@2->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:smc_flash::@2->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1578] phi from smc_flash::@2 to smc_flash::@26 [phi:smc_flash::@2->smc_flash::@26] + // [1592] phi from smc_flash::@2 to smc_flash::@26 [phi:smc_flash::@2->smc_flash::@26] // smc_flash::@26 // sprintf(info_text, "There was a problem starting the SMC bootloader: %x", smc_bootloader_start) - // [1579] call printf_str - // [1128] phi from smc_flash::@26 to printf_str [phi:smc_flash::@26->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@26->printf_str#0] -- pprz1=pprc1 + // [1593] call printf_str + // [1138] phi from smc_flash::@26 to printf_str [phi:smc_flash::@26->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@26->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s [phi:smc_flash::@26->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s [phi:smc_flash::@26->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -10948,39 +11072,39 @@ smc_flash: { jsr printf_str // smc_flash::@27 // sprintf(info_text, "There was a problem starting the SMC bootloader: %x", smc_bootloader_start) - // [1580] printf_uchar::uvalue#4 = smc_flash::smc_bootloader_start#0 -- vbuz1=vbuz2 + // [1594] printf_uchar::uvalue#4 = smc_flash::smc_bootloader_start#0 -- vbuz1=vbuz2 lda.z smc_bootloader_start sta.z printf_uchar.uvalue - // [1581] call printf_uchar - // [1197] phi from smc_flash::@27 to printf_uchar [phi:smc_flash::@27->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_flash::@27->printf_uchar#0] -- vbuz1=vbuc1 + // [1595] call printf_uchar + // [1207] phi from smc_flash::@27 to printf_uchar [phi:smc_flash::@27->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_flash::@27->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:smc_flash::@27->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:smc_flash::@27->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:smc_flash::@27->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:smc_flash::@27->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:smc_flash::@27->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = HEXADECIMAL [phi:smc_flash::@27->printf_uchar#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#4 [phi:smc_flash::@27->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#4 [phi:smc_flash::@27->printf_uchar#4] -- register_copy jsr printf_uchar // smc_flash::@28 // sprintf(info_text, "There was a problem starting the SMC bootloader: %x", smc_bootloader_start) - // [1582] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1596] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1583] callexecute snputc -- call_vprc1 + // [1597] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1585] call display_action_text - // [1208] phi from smc_flash::@28 to display_action_text [phi:smc_flash::@28->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@28->display_action_text#0] -- pbuz1=pbuc1 + // [1599] call display_action_text + // [1218] phi from smc_flash::@28 to display_action_text [phi:smc_flash::@28->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@28->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text @@ -10988,18 +11112,18 @@ smc_flash: { jsr display_action_text // smc_flash::@29 // cx16_k_i2c_write_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_REBOOT, 0) - // [1586] smc_flash::cx16_k_i2c_write_byte2_device = $42 -- vbum1=vbuc1 + // [1600] smc_flash::cx16_k_i2c_write_byte2_device = $42 -- vbum1=vbuc1 lda #$42 sta cx16_k_i2c_write_byte2_device - // [1587] smc_flash::cx16_k_i2c_write_byte2_offset = $82 -- vbum1=vbuc1 + // [1601] smc_flash::cx16_k_i2c_write_byte2_offset = $82 -- vbum1=vbuc1 lda #$82 sta cx16_k_i2c_write_byte2_offset - // [1588] smc_flash::cx16_k_i2c_write_byte2_value = 0 -- vbum1=vbuc1 + // [1602] smc_flash::cx16_k_i2c_write_byte2_value = 0 -- vbum1=vbuc1 lda #0 sta cx16_k_i2c_write_byte2_value // smc_flash::cx16_k_i2c_write_byte2 // unsigned char result - // [1589] smc_flash::cx16_k_i2c_write_byte2_result = 0 -- vbum1=vbuc1 + // [1603] smc_flash::cx16_k_i2c_write_byte2_result = 0 -- vbum1=vbuc1 sta cx16_k_i2c_write_byte2_result // asm // asm { ldxdevice ldyoffset ldavalue stzresult jsrCX16_I2C_WRITE_BYTE rolresult } @@ -11009,83 +11133,83 @@ smc_flash: { stz cx16_k_i2c_write_byte2_result jsr CX16_I2C_WRITE_BYTE rol cx16_k_i2c_write_byte2_result - // [1591] phi from smc_flash::@47 smc_flash::cx16_k_i2c_write_byte2 to smc_flash::@return [phi:smc_flash::@47/smc_flash::cx16_k_i2c_write_byte2->smc_flash::@return] + // [1605] phi from smc_flash::@47 smc_flash::cx16_k_i2c_write_byte2 to smc_flash::@return [phi:smc_flash::@47/smc_flash::cx16_k_i2c_write_byte2->smc_flash::@return] __b2: - // [1591] phi smc_flash::return#1 = 0 [phi:smc_flash::@47/smc_flash::cx16_k_i2c_write_byte2->smc_flash::@return#0] -- vwum1=vbuc1 + // [1605] phi smc_flash::return#1 = 0 [phi:smc_flash::@47/smc_flash::cx16_k_i2c_write_byte2->smc_flash::@return#0] -- vwum1=vbuc1 lda #<0 sta return sta return+1 // smc_flash::@return // } - // [1592] return + // [1606] return rts - // [1593] phi from smc_flash::@22 to smc_flash::@3 [phi:smc_flash::@22->smc_flash::@3] + // [1607] phi from smc_flash::@22 to smc_flash::@3 [phi:smc_flash::@22->smc_flash::@3] __b6: - // [1593] phi smc_flash::smc_bootloader_activation_countdown#10 = $80 [phi:smc_flash::@22->smc_flash::@3#0] -- vbuz1=vbuc1 + // [1607] phi smc_flash::smc_bootloader_activation_countdown#10 = $80 [phi:smc_flash::@22->smc_flash::@3#0] -- vbuz1=vbuc1 lda #$80 sta.z smc_bootloader_activation_countdown // smc_flash::@3 __b3: // while(smc_bootloader_activation_countdown) - // [1594] if(0!=smc_flash::smc_bootloader_activation_countdown#10) goto smc_flash::@4 -- 0_neq_vbuz1_then_la1 + // [1608] if(0!=smc_flash::smc_bootloader_activation_countdown#10) goto smc_flash::@4 -- 0_neq_vbuz1_then_la1 lda.z smc_bootloader_activation_countdown beq !__b4+ jmp __b4 !__b4: - // [1595] phi from smc_flash::@3 smc_flash::@30 to smc_flash::@7 [phi:smc_flash::@3/smc_flash::@30->smc_flash::@7] + // [1609] phi from smc_flash::@3 smc_flash::@30 to smc_flash::@7 [phi:smc_flash::@3/smc_flash::@30->smc_flash::@7] __b9: - // [1595] phi smc_flash::smc_bootloader_activation_countdown#12 = $a [phi:smc_flash::@3/smc_flash::@30->smc_flash::@7#0] -- vbuz1=vbuc1 + // [1609] phi smc_flash::smc_bootloader_activation_countdown#12 = $a [phi:smc_flash::@3/smc_flash::@30->smc_flash::@7#0] -- vbuz1=vbuc1 lda #$a sta.z smc_bootloader_activation_countdown_1 // smc_flash::@7 __b7: // while(smc_bootloader_activation_countdown) - // [1596] if(0!=smc_flash::smc_bootloader_activation_countdown#12) goto smc_flash::@8 -- 0_neq_vbuz1_then_la1 + // [1610] if(0!=smc_flash::smc_bootloader_activation_countdown#12) goto smc_flash::@8 -- 0_neq_vbuz1_then_la1 lda.z smc_bootloader_activation_countdown_1 beq !__b8+ jmp __b8 !__b8: // smc_flash::@9 // cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_OFFSET) - // [1597] cx16_k_i2c_read_byte::device = $42 -- vbum1=vbuc1 + // [1611] cx16_k_i2c_read_byte::device = $42 -- vbum1=vbuc1 lda #$42 sta cx16_k_i2c_read_byte.device - // [1598] cx16_k_i2c_read_byte::offset = $8e -- vbum1=vbuc1 + // [1612] cx16_k_i2c_read_byte::offset = $8e -- vbum1=vbuc1 lda #$8e sta cx16_k_i2c_read_byte.offset - // [1599] call cx16_k_i2c_read_byte + // [1613] call cx16_k_i2c_read_byte jsr cx16_k_i2c_read_byte - // [1600] cx16_k_i2c_read_byte::return#12 = cx16_k_i2c_read_byte::return#1 + // [1614] cx16_k_i2c_read_byte::return#12 = cx16_k_i2c_read_byte::return#1 // smc_flash::@42 // smc_bootloader_not_activated = cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_OFFSET) - // [1601] smc_flash::smc_bootloader_not_activated#1 = cx16_k_i2c_read_byte::return#12 + // [1615] smc_flash::smc_bootloader_not_activated#1 = cx16_k_i2c_read_byte::return#12 // if(smc_bootloader_not_activated) - // [1602] if(0==smc_flash::smc_bootloader_not_activated#1) goto smc_flash::@1 -- 0_eq_vwuz1_then_la1 + // [1616] if(0==smc_flash::smc_bootloader_not_activated#1) goto smc_flash::@1 -- 0_eq_vwuz1_then_la1 lda.z smc_bootloader_not_activated ora.z smc_bootloader_not_activated+1 beq __b1 - // [1603] phi from smc_flash::@42 to smc_flash::@10 [phi:smc_flash::@42->smc_flash::@10] + // [1617] phi from smc_flash::@42 to smc_flash::@10 [phi:smc_flash::@42->smc_flash::@10] // smc_flash::@10 // sprintf(info_text, "There was a problem activating the SMC bootloader: %x", smc_bootloader_not_activated) - // [1604] call snprintf_init - // [1123] phi from smc_flash::@10 to snprintf_init [phi:smc_flash::@10->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:smc_flash::@10->snprintf_init#0] -- pbuz1=pbuc1 + // [1618] call snprintf_init + // [1133] phi from smc_flash::@10 to snprintf_init [phi:smc_flash::@10->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:smc_flash::@10->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1605] phi from smc_flash::@10 to smc_flash::@45 [phi:smc_flash::@10->smc_flash::@45] + // [1619] phi from smc_flash::@10 to smc_flash::@45 [phi:smc_flash::@10->smc_flash::@45] // smc_flash::@45 // sprintf(info_text, "There was a problem activating the SMC bootloader: %x", smc_bootloader_not_activated) - // [1606] call printf_str - // [1128] phi from smc_flash::@45 to printf_str [phi:smc_flash::@45->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@45->printf_str#0] -- pprz1=pprc1 + // [1620] call printf_str + // [1138] phi from smc_flash::@45 to printf_str [phi:smc_flash::@45->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@45->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s5 [phi:smc_flash::@45->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s5 [phi:smc_flash::@45->printf_str#1] -- pbuz1=pbuc1 lda #s5 @@ -11093,106 +11217,106 @@ smc_flash: { jsr printf_str // smc_flash::@46 // sprintf(info_text, "There was a problem activating the SMC bootloader: %x", smc_bootloader_not_activated) - // [1607] printf_uint::uvalue#5 = smc_flash::smc_bootloader_not_activated#1 - // [1608] call printf_uint - // [1825] phi from smc_flash::@46 to printf_uint [phi:smc_flash::@46->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 0 [phi:smc_flash::@46->printf_uint#0] -- vbuz1=vbuc1 + // [1621] printf_uint::uvalue#5 = smc_flash::smc_bootloader_not_activated#1 + // [1622] call printf_uint + // [1839] phi from smc_flash::@46 to printf_uint [phi:smc_flash::@46->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 0 [phi:smc_flash::@46->printf_uint#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 0 [phi:smc_flash::@46->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 0 [phi:smc_flash::@46->printf_uint#1] -- vbuz1=vbuc1 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@46->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@46->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_flash::@46->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_flash::@46->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#5 [phi:smc_flash::@46->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#5 [phi:smc_flash::@46->printf_uint#4] -- register_copy jsr printf_uint // smc_flash::@47 // sprintf(info_text, "There was a problem activating the SMC bootloader: %x", smc_bootloader_not_activated) - // [1609] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1623] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1610] callexecute snputc -- call_vprc1 + // [1624] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1612] call display_action_text - // [1208] phi from smc_flash::@47 to display_action_text [phi:smc_flash::@47->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@47->display_action_text#0] -- pbuz1=pbuc1 + // [1626] call display_action_text + // [1218] phi from smc_flash::@47 to display_action_text [phi:smc_flash::@47->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@47->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text sta.z display_action_text.info_text+1 jsr display_action_text jmp __b2 - // [1613] phi from smc_flash::@42 to smc_flash::@1 [phi:smc_flash::@42->smc_flash::@1] + // [1627] phi from smc_flash::@42 to smc_flash::@1 [phi:smc_flash::@42->smc_flash::@1] // smc_flash::@1 __b1: // display_action_progress("Updating SMC firmware ... (+) Updated") - // [1614] call display_action_progress - // [838] phi from smc_flash::@1 to display_action_progress [phi:smc_flash::@1->display_action_progress] - // [838] phi display_action_progress::info_text#18 = smc_flash::info_text1 [phi:smc_flash::@1->display_action_progress#0] -- pbuz1=pbuc1 + // [1628] call display_action_progress + // [845] phi from smc_flash::@1 to display_action_progress [phi:smc_flash::@1->display_action_progress] + // [845] phi display_action_progress::info_text#19 = smc_flash::info_text1 [phi:smc_flash::@1->display_action_progress#0] -- pbuz1=pbuc1 lda #info_text1 sta.z display_action_progress.info_text+1 jsr display_action_progress - // [1615] phi from smc_flash::@1 to smc_flash::@43 [phi:smc_flash::@1->smc_flash::@43] + // [1629] phi from smc_flash::@1 to smc_flash::@43 [phi:smc_flash::@1->smc_flash::@43] // smc_flash::@43 // textcolor(WHITE) - // [1616] call textcolor - // [726] phi from smc_flash::@43 to textcolor [phi:smc_flash::@43->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:smc_flash::@43->textcolor#0] -- vbuz1=vbuc1 + // [1630] call textcolor + // [733] phi from smc_flash::@43 to textcolor [phi:smc_flash::@43->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:smc_flash::@43->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor - // [1617] phi from smc_flash::@43 to smc_flash::@44 [phi:smc_flash::@43->smc_flash::@44] + // [1631] phi from smc_flash::@43 to smc_flash::@44 [phi:smc_flash::@43->smc_flash::@44] // smc_flash::@44 // gotoxy(x, y) - // [1618] call gotoxy - // [744] phi from smc_flash::@44 to gotoxy [phi:smc_flash::@44->gotoxy] - // [744] phi gotoxy::y#30 = PROGRESS_Y [phi:smc_flash::@44->gotoxy#0] -- vbuz1=vbuc1 + // [1632] call gotoxy + // [751] phi from smc_flash::@44 to gotoxy [phi:smc_flash::@44->gotoxy] + // [751] phi gotoxy::y#30 = PROGRESS_Y [phi:smc_flash::@44->gotoxy#0] -- vbuz1=vbuc1 lda #PROGRESS_Y sta.z gotoxy.y - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:smc_flash::@44->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:smc_flash::@44->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1619] phi from smc_flash::@44 to smc_flash::@11 [phi:smc_flash::@44->smc_flash::@11] - // [1619] phi smc_flash::y#31 = PROGRESS_Y [phi:smc_flash::@44->smc_flash::@11#0] -- vbuz1=vbuc1 + // [1633] phi from smc_flash::@44 to smc_flash::@11 [phi:smc_flash::@44->smc_flash::@11] + // [1633] phi smc_flash::y#31 = PROGRESS_Y [phi:smc_flash::@44->smc_flash::@11#0] -- vbuz1=vbuc1 lda #PROGRESS_Y sta.z y - // [1619] phi smc_flash::smc_attempts_total#21 = 0 [phi:smc_flash::@44->smc_flash::@11#1] -- vwuz1=vwuc1 + // [1633] phi smc_flash::smc_attempts_total#21 = 0 [phi:smc_flash::@44->smc_flash::@11#1] -- vwuz1=vwuc1 lda #<0 sta.z smc_attempts_total sta.z smc_attempts_total+1 - // [1619] phi smc_flash::smc_row_bytes#14 = 0 [phi:smc_flash::@44->smc_flash::@11#2] -- vwuz1=vwuc1 + // [1633] phi smc_flash::smc_row_bytes#14 = 0 [phi:smc_flash::@44->smc_flash::@11#2] -- vwuz1=vwuc1 sta.z smc_row_bytes sta.z smc_row_bytes+1 - // [1619] phi smc_flash::smc_ram_ptr#13 = (char *)$7800 [phi:smc_flash::@44->smc_flash::@11#3] -- pbuz1=pbuc1 + // [1633] phi smc_flash::smc_ram_ptr#13 = (char *)$7800 [phi:smc_flash::@44->smc_flash::@11#3] -- pbuz1=pbuc1 lda #<$7800 sta.z smc_ram_ptr lda #>$7800 sta.z smc_ram_ptr+1 - // [1619] phi smc_flash::smc_bytes_flashed#16 = 0 [phi:smc_flash::@44->smc_flash::@11#4] -- vwum1=vwuc1 + // [1633] phi smc_flash::smc_bytes_flashed#16 = 0 [phi:smc_flash::@44->smc_flash::@11#4] -- vwum1=vwuc1 lda #<0 sta smc_bytes_flashed sta smc_bytes_flashed+1 - // [1619] phi from smc_flash::@13 to smc_flash::@11 [phi:smc_flash::@13->smc_flash::@11] - // [1619] phi smc_flash::y#31 = smc_flash::y#20 [phi:smc_flash::@13->smc_flash::@11#0] -- register_copy - // [1619] phi smc_flash::smc_attempts_total#21 = smc_flash::smc_attempts_total#17 [phi:smc_flash::@13->smc_flash::@11#1] -- register_copy - // [1619] phi smc_flash::smc_row_bytes#14 = smc_flash::smc_row_bytes#10 [phi:smc_flash::@13->smc_flash::@11#2] -- register_copy - // [1619] phi smc_flash::smc_ram_ptr#13 = smc_flash::smc_ram_ptr#10 [phi:smc_flash::@13->smc_flash::@11#3] -- register_copy - // [1619] phi smc_flash::smc_bytes_flashed#16 = smc_flash::smc_bytes_flashed#11 [phi:smc_flash::@13->smc_flash::@11#4] -- register_copy + // [1633] phi from smc_flash::@13 to smc_flash::@11 [phi:smc_flash::@13->smc_flash::@11] + // [1633] phi smc_flash::y#31 = smc_flash::y#20 [phi:smc_flash::@13->smc_flash::@11#0] -- register_copy + // [1633] phi smc_flash::smc_attempts_total#21 = smc_flash::smc_attempts_total#17 [phi:smc_flash::@13->smc_flash::@11#1] -- register_copy + // [1633] phi smc_flash::smc_row_bytes#14 = smc_flash::smc_row_bytes#10 [phi:smc_flash::@13->smc_flash::@11#2] -- register_copy + // [1633] phi smc_flash::smc_ram_ptr#13 = smc_flash::smc_ram_ptr#10 [phi:smc_flash::@13->smc_flash::@11#3] -- register_copy + // [1633] phi smc_flash::smc_bytes_flashed#16 = smc_flash::smc_bytes_flashed#11 [phi:smc_flash::@13->smc_flash::@11#4] -- register_copy // smc_flash::@11 __b11: // while(smc_bytes_flashed < smc_bytes_total) - // [1620] if(smc_flash::smc_bytes_flashed#16smc_flash::@return] - // [1591] phi smc_flash::return#1 = smc_flash::smc_bytes_flashed#16 [phi:smc_flash::@11->smc_flash::@return#0] -- register_copy + // [1605] phi from smc_flash::@11 to smc_flash::@return [phi:smc_flash::@11->smc_flash::@return] + // [1605] phi smc_flash::return#1 = smc_flash::smc_bytes_flashed#16 [phi:smc_flash::@11->smc_flash::@return#0] -- register_copy rts - // [1621] phi from smc_flash::@11 to smc_flash::@12 [phi:smc_flash::@11->smc_flash::@12] + // [1635] phi from smc_flash::@11 to smc_flash::@12 [phi:smc_flash::@11->smc_flash::@12] __b10: - // [1621] phi smc_flash::y#20 = smc_flash::y#31 [phi:smc_flash::@11->smc_flash::@12#0] -- register_copy - // [1621] phi smc_flash::smc_attempts_total#17 = smc_flash::smc_attempts_total#21 [phi:smc_flash::@11->smc_flash::@12#1] -- register_copy - // [1621] phi smc_flash::smc_row_bytes#10 = smc_flash::smc_row_bytes#14 [phi:smc_flash::@11->smc_flash::@12#2] -- register_copy - // [1621] phi smc_flash::smc_ram_ptr#10 = smc_flash::smc_ram_ptr#13 [phi:smc_flash::@11->smc_flash::@12#3] -- register_copy - // [1621] phi smc_flash::smc_bytes_flashed#11 = smc_flash::smc_bytes_flashed#16 [phi:smc_flash::@11->smc_flash::@12#4] -- register_copy - // [1621] phi smc_flash::smc_attempts_flashed#19 = 0 [phi:smc_flash::@11->smc_flash::@12#5] -- vbuz1=vbuc1 + // [1635] phi smc_flash::y#20 = smc_flash::y#31 [phi:smc_flash::@11->smc_flash::@12#0] -- register_copy + // [1635] phi smc_flash::smc_attempts_total#17 = smc_flash::smc_attempts_total#21 [phi:smc_flash::@11->smc_flash::@12#1] -- register_copy + // [1635] phi smc_flash::smc_row_bytes#10 = smc_flash::smc_row_bytes#14 [phi:smc_flash::@11->smc_flash::@12#2] -- register_copy + // [1635] phi smc_flash::smc_ram_ptr#10 = smc_flash::smc_ram_ptr#13 [phi:smc_flash::@11->smc_flash::@12#3] -- register_copy + // [1635] phi smc_flash::smc_bytes_flashed#11 = smc_flash::smc_bytes_flashed#16 [phi:smc_flash::@11->smc_flash::@12#4] -- register_copy + // [1635] phi smc_flash::smc_attempts_flashed#19 = 0 [phi:smc_flash::@11->smc_flash::@12#5] -- vbuz1=vbuc1 lda #0 sta.z smc_attempts_flashed - // [1621] phi smc_flash::smc_package_committed#2 = 0 [phi:smc_flash::@11->smc_flash::@12#6] -- vbum1=vbuc1 + // [1635] phi smc_flash::smc_package_committed#2 = 0 [phi:smc_flash::@11->smc_flash::@12#6] -- vbum1=vbuc1 sta smc_package_committed // smc_flash::@12 __b12: // while(!smc_package_committed && smc_attempts_flashed < 10) - // [1622] if(0!=smc_flash::smc_package_committed#2) goto smc_flash::@13 -- 0_neq_vbum1_then_la1 + // [1636] if(0!=smc_flash::smc_package_committed#2) goto smc_flash::@13 -- 0_neq_vbum1_then_la1 lda smc_package_committed bne __b13 // smc_flash::@60 - // [1623] if(smc_flash::smc_attempts_flashed#19<$a) goto smc_flash::@14 -- vbuz1_lt_vbuc1_then_la1 + // [1637] if(smc_flash::smc_attempts_flashed#19<$a) goto smc_flash::@14 -- vbuz1_lt_vbuc1_then_la1 lda.z smc_attempts_flashed cmp #$a bcc __b16 // smc_flash::@13 __b13: // if(smc_attempts_flashed >= 10) - // [1624] if(smc_flash::smc_attempts_flashed#19<$a) goto smc_flash::@11 -- vbuz1_lt_vbuc1_then_la1 + // [1638] if(smc_flash::smc_attempts_flashed#19<$a) goto smc_flash::@11 -- vbuz1_lt_vbuc1_then_la1 lda.z smc_attempts_flashed cmp #$a bcc __b11 - // [1625] phi from smc_flash::@13 to smc_flash::@21 [phi:smc_flash::@13->smc_flash::@21] + // [1639] phi from smc_flash::@13 to smc_flash::@21 [phi:smc_flash::@13->smc_flash::@21] // smc_flash::@21 // sprintf(info_text, "There were too many attempts trying to flash the SMC at location %04x", smc_bytes_flashed) - // [1626] call snprintf_init - // [1123] phi from smc_flash::@21 to snprintf_init [phi:smc_flash::@21->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:smc_flash::@21->snprintf_init#0] -- pbuz1=pbuc1 + // [1640] call snprintf_init + // [1133] phi from smc_flash::@21 to snprintf_init [phi:smc_flash::@21->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:smc_flash::@21->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1627] phi from smc_flash::@21 to smc_flash::@57 [phi:smc_flash::@21->smc_flash::@57] + // [1641] phi from smc_flash::@21 to smc_flash::@57 [phi:smc_flash::@21->smc_flash::@57] // smc_flash::@57 // sprintf(info_text, "There were too many attempts trying to flash the SMC at location %04x", smc_bytes_flashed) - // [1628] call printf_str - // [1128] phi from smc_flash::@57 to printf_str [phi:smc_flash::@57->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@57->printf_str#0] -- pprz1=pprc1 + // [1642] call printf_str + // [1138] phi from smc_flash::@57 to printf_str [phi:smc_flash::@57->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@57->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s10 [phi:smc_flash::@57->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s10 [phi:smc_flash::@57->printf_str#1] -- pbuz1=pbuc1 lda #s10 @@ -11263,67 +11387,67 @@ smc_flash: { jsr printf_str // smc_flash::@58 // sprintf(info_text, "There were too many attempts trying to flash the SMC at location %04x", smc_bytes_flashed) - // [1629] printf_uint::uvalue#9 = smc_flash::smc_bytes_flashed#11 -- vwuz1=vwum2 + // [1643] printf_uint::uvalue#9 = smc_flash::smc_bytes_flashed#11 -- vwuz1=vwum2 lda smc_bytes_flashed sta.z printf_uint.uvalue lda smc_bytes_flashed+1 sta.z printf_uint.uvalue+1 - // [1630] call printf_uint - // [1825] phi from smc_flash::@58 to printf_uint [phi:smc_flash::@58->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@58->printf_uint#0] -- vbuz1=vbuc1 + // [1644] call printf_uint + // [1839] phi from smc_flash::@58 to printf_uint [phi:smc_flash::@58->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@58->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 4 [phi:smc_flash::@58->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 4 [phi:smc_flash::@58->printf_uint#1] -- vbuz1=vbuc1 lda #4 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@58->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@58->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_flash::@58->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = HEXADECIMAL [phi:smc_flash::@58->printf_uint#3] -- vbuz1=vbuc1 lda #HEXADECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#9 [phi:smc_flash::@58->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#9 [phi:smc_flash::@58->printf_uint#4] -- register_copy jsr printf_uint // smc_flash::@59 // sprintf(info_text, "There were too many attempts trying to flash the SMC at location %04x", smc_bytes_flashed) - // [1631] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1645] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1632] callexecute snputc -- call_vprc1 + // [1646] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1634] call display_action_text - // [1208] phi from smc_flash::@59 to display_action_text [phi:smc_flash::@59->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@59->display_action_text#0] -- pbuz1=pbuc1 + // [1648] call display_action_text + // [1218] phi from smc_flash::@59 to display_action_text [phi:smc_flash::@59->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@59->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text sta.z display_action_text.info_text+1 jsr display_action_text - // [1591] phi from smc_flash::@59 to smc_flash::@return [phi:smc_flash::@59->smc_flash::@return] - // [1591] phi smc_flash::return#1 = $ffff [phi:smc_flash::@59->smc_flash::@return#0] -- vwum1=vwuc1 + // [1605] phi from smc_flash::@59 to smc_flash::@return [phi:smc_flash::@59->smc_flash::@return] + // [1605] phi smc_flash::return#1 = $ffff [phi:smc_flash::@59->smc_flash::@return#0] -- vwum1=vwuc1 lda #<$ffff sta return lda #>$ffff sta return+1 rts - // [1635] phi from smc_flash::@60 to smc_flash::@14 [phi:smc_flash::@60->smc_flash::@14] + // [1649] phi from smc_flash::@60 to smc_flash::@14 [phi:smc_flash::@60->smc_flash::@14] __b16: - // [1635] phi smc_flash::smc_bytes_checksum#2 = 0 [phi:smc_flash::@60->smc_flash::@14#0] -- vbum1=vbuc1 + // [1649] phi smc_flash::smc_bytes_checksum#2 = 0 [phi:smc_flash::@60->smc_flash::@14#0] -- vbum1=vbuc1 lda #0 sta smc_bytes_checksum - // [1635] phi smc_flash::smc_ram_ptr#12 = smc_flash::smc_ram_ptr#10 [phi:smc_flash::@60->smc_flash::@14#1] -- register_copy - // [1635] phi smc_flash::smc_package_flashed#2 = 0 [phi:smc_flash::@60->smc_flash::@14#2] -- vwum1=vwuc1 + // [1649] phi smc_flash::smc_ram_ptr#12 = smc_flash::smc_ram_ptr#10 [phi:smc_flash::@60->smc_flash::@14#1] -- register_copy + // [1649] phi smc_flash::smc_package_flashed#2 = 0 [phi:smc_flash::@60->smc_flash::@14#2] -- vwum1=vwuc1 sta smc_package_flashed sta smc_package_flashed+1 // smc_flash::@14 __b14: // while(smc_package_flashed < SMC_PROGRESS_CELL) - // [1636] if(smc_flash::smc_package_flashed#2smc_flash::@12] - // [1621] phi smc_flash::y#20 = smc_flash::y#20 [phi:smc_flash::@17->smc_flash::@12#0] -- register_copy - // [1621] phi smc_flash::smc_attempts_total#17 = smc_flash::smc_attempts_total#17 [phi:smc_flash::@17->smc_flash::@12#1] -- register_copy - // [1621] phi smc_flash::smc_row_bytes#10 = smc_flash::smc_row_bytes#10 [phi:smc_flash::@17->smc_flash::@12#2] -- register_copy - // [1621] phi smc_flash::smc_ram_ptr#10 = smc_flash::smc_ram_ptr#2 [phi:smc_flash::@17->smc_flash::@12#3] -- register_copy - // [1621] phi smc_flash::smc_bytes_flashed#11 = smc_flash::smc_bytes_flashed#11 [phi:smc_flash::@17->smc_flash::@12#4] -- register_copy - // [1621] phi smc_flash::smc_attempts_flashed#19 = smc_flash::smc_attempts_flashed#1 [phi:smc_flash::@17->smc_flash::@12#5] -- register_copy - // [1621] phi smc_flash::smc_package_committed#2 = smc_flash::smc_package_committed#2 [phi:smc_flash::@17->smc_flash::@12#6] -- register_copy + // [1635] phi from smc_flash::@17 to smc_flash::@12 [phi:smc_flash::@17->smc_flash::@12] + // [1635] phi smc_flash::y#20 = smc_flash::y#20 [phi:smc_flash::@17->smc_flash::@12#0] -- register_copy + // [1635] phi smc_flash::smc_attempts_total#17 = smc_flash::smc_attempts_total#17 [phi:smc_flash::@17->smc_flash::@12#1] -- register_copy + // [1635] phi smc_flash::smc_row_bytes#10 = smc_flash::smc_row_bytes#10 [phi:smc_flash::@17->smc_flash::@12#2] -- register_copy + // [1635] phi smc_flash::smc_ram_ptr#10 = smc_flash::smc_ram_ptr#2 [phi:smc_flash::@17->smc_flash::@12#3] -- register_copy + // [1635] phi smc_flash::smc_bytes_flashed#11 = smc_flash::smc_bytes_flashed#11 [phi:smc_flash::@17->smc_flash::@12#4] -- register_copy + // [1635] phi smc_flash::smc_attempts_flashed#19 = smc_flash::smc_attempts_flashed#1 [phi:smc_flash::@17->smc_flash::@12#5] -- register_copy + // [1635] phi smc_flash::smc_package_committed#2 = smc_flash::smc_package_committed#2 [phi:smc_flash::@17->smc_flash::@12#6] -- register_copy jmp __b12 // smc_flash::@18 __b18: // if (smc_row_bytes == SMC_PROGRESS_ROW) - // [1652] if(smc_flash::smc_row_bytes#10!=SMC_PROGRESS_ROW) goto smc_flash::@19 -- vwuz1_neq_vwuc1_then_la1 + // [1666] if(smc_flash::smc_row_bytes#10!=SMC_PROGRESS_ROW) goto smc_flash::@19 -- vwuz1_neq_vwuc1_then_la1 lda.z smc_row_bytes+1 cmp #>SMC_PROGRESS_ROW bne __b19 @@ -11420,40 +11544,40 @@ smc_flash: { bne __b19 // smc_flash::@20 // gotoxy(x, ++y); - // [1653] smc_flash::y#1 = ++ smc_flash::y#20 -- vbuz1=_inc_vbuz1 + // [1667] smc_flash::y#1 = ++ smc_flash::y#20 -- vbuz1=_inc_vbuz1 inc.z y // gotoxy(x, ++y) - // [1654] gotoxy::y#22 = smc_flash::y#1 -- vbuz1=vbuz2 + // [1668] gotoxy::y#22 = smc_flash::y#1 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [1655] call gotoxy - // [744] phi from smc_flash::@20 to gotoxy [phi:smc_flash::@20->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#22 [phi:smc_flash::@20->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = PROGRESS_X [phi:smc_flash::@20->gotoxy#1] -- vbuz1=vbuc1 + // [1669] call gotoxy + // [751] phi from smc_flash::@20 to gotoxy [phi:smc_flash::@20->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#22 [phi:smc_flash::@20->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = PROGRESS_X [phi:smc_flash::@20->gotoxy#1] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z gotoxy.x jsr gotoxy - // [1656] phi from smc_flash::@20 to smc_flash::@19 [phi:smc_flash::@20->smc_flash::@19] - // [1656] phi smc_flash::y#33 = smc_flash::y#1 [phi:smc_flash::@20->smc_flash::@19#0] -- register_copy - // [1656] phi smc_flash::smc_row_bytes#4 = 0 [phi:smc_flash::@20->smc_flash::@19#1] -- vwuz1=vbuc1 + // [1670] phi from smc_flash::@20 to smc_flash::@19 [phi:smc_flash::@20->smc_flash::@19] + // [1670] phi smc_flash::y#33 = smc_flash::y#1 [phi:smc_flash::@20->smc_flash::@19#0] -- register_copy + // [1670] phi smc_flash::smc_row_bytes#4 = 0 [phi:smc_flash::@20->smc_flash::@19#1] -- vwuz1=vbuc1 lda #<0 sta.z smc_row_bytes sta.z smc_row_bytes+1 - // [1656] phi from smc_flash::@18 to smc_flash::@19 [phi:smc_flash::@18->smc_flash::@19] - // [1656] phi smc_flash::y#33 = smc_flash::y#20 [phi:smc_flash::@18->smc_flash::@19#0] -- register_copy - // [1656] phi smc_flash::smc_row_bytes#4 = smc_flash::smc_row_bytes#10 [phi:smc_flash::@18->smc_flash::@19#1] -- register_copy + // [1670] phi from smc_flash::@18 to smc_flash::@19 [phi:smc_flash::@18->smc_flash::@19] + // [1670] phi smc_flash::y#33 = smc_flash::y#20 [phi:smc_flash::@18->smc_flash::@19#0] -- register_copy + // [1670] phi smc_flash::smc_row_bytes#4 = smc_flash::smc_row_bytes#10 [phi:smc_flash::@18->smc_flash::@19#1] -- register_copy // smc_flash::@19 __b19: // cputc('+') - // [1657] stackpush(char) = '+' -- _stackpushbyte_=vbuc1 + // [1671] stackpush(char) = '+' -- _stackpushbyte_=vbuc1 lda #'+' pha - // [1658] callexecute cputc -- call_vprc1 + // [1672] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // smc_bytes_flashed += SMC_PROGRESS_CELL - // [1660] smc_flash::smc_bytes_flashed#1 = smc_flash::smc_bytes_flashed#11 + SMC_PROGRESS_CELL -- vwum1=vwum1_plus_vbuc1 + // [1674] smc_flash::smc_bytes_flashed#1 = smc_flash::smc_bytes_flashed#11 + SMC_PROGRESS_CELL -- vwum1=vwum1_plus_vbuc1 lda #SMC_PROGRESS_CELL clc adc smc_bytes_flashed @@ -11462,7 +11586,7 @@ smc_flash: { inc smc_bytes_flashed+1 !: // smc_row_bytes += SMC_PROGRESS_CELL - // [1661] smc_flash::smc_row_bytes#1 = smc_flash::smc_row_bytes#4 + SMC_PROGRESS_CELL -- vwuz1=vwuz1_plus_vbuc1 + // [1675] smc_flash::smc_row_bytes#1 = smc_flash::smc_row_bytes#4 + SMC_PROGRESS_CELL -- vwuz1=vwuz1_plus_vbuc1 lda #SMC_PROGRESS_CELL clc adc.z smc_row_bytes @@ -11471,7 +11595,7 @@ smc_flash: { inc.z smc_row_bytes+1 !: // smc_attempts_total += smc_attempts_flashed - // [1662] smc_flash::smc_attempts_total#1 = smc_flash::smc_attempts_total#17 + smc_flash::smc_attempts_flashed#19 -- vwuz1=vwuz1_plus_vbuz2 + // [1676] smc_flash::smc_attempts_total#1 = smc_flash::smc_attempts_total#17 + smc_flash::smc_attempts_flashed#19 -- vwuz1=vwuz1_plus_vbuz2 lda.z smc_attempts_flashed clc adc.z smc_attempts_total @@ -11480,25 +11604,25 @@ smc_flash: { inc.z smc_attempts_total+1 !: // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1663] call snprintf_init - // [1123] phi from smc_flash::@19 to snprintf_init [phi:smc_flash::@19->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:smc_flash::@19->snprintf_init#0] -- pbuz1=pbuc1 + // [1677] call snprintf_init + // [1133] phi from smc_flash::@19 to snprintf_init [phi:smc_flash::@19->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:smc_flash::@19->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1664] phi from smc_flash::@19 to smc_flash::@49 [phi:smc_flash::@19->smc_flash::@49] + // [1678] phi from smc_flash::@19 to smc_flash::@49 [phi:smc_flash::@19->smc_flash::@49] // smc_flash::@49 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1665] call printf_str - // [1128] phi from smc_flash::@49 to printf_str [phi:smc_flash::@49->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@49->printf_str#0] -- pprz1=pprc1 + // [1679] call printf_str + // [1138] phi from smc_flash::@49 to printf_str [phi:smc_flash::@49->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@49->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s6 [phi:smc_flash::@49->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s6 [phi:smc_flash::@49->printf_str#1] -- pbuz1=pbuc1 lda #s6 @@ -11506,40 +11630,40 @@ smc_flash: { jsr printf_str // smc_flash::@50 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1666] printf_uint::uvalue#6 = smc_flash::smc_bytes_flashed#1 -- vwuz1=vwum2 + // [1680] printf_uint::uvalue#6 = smc_flash::smc_bytes_flashed#1 -- vwuz1=vwum2 lda smc_bytes_flashed sta.z printf_uint.uvalue lda smc_bytes_flashed+1 sta.z printf_uint.uvalue+1 - // [1667] call printf_uint - // [1825] phi from smc_flash::@50 to printf_uint [phi:smc_flash::@50->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@50->printf_uint#0] -- vbuz1=vbuc1 + // [1681] call printf_uint + // [1839] phi from smc_flash::@50 to printf_uint [phi:smc_flash::@50->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@50->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 5 [phi:smc_flash::@50->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 5 [phi:smc_flash::@50->printf_uint#1] -- vbuz1=vbuc1 lda #5 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@50->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@50->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = DECIMAL [phi:smc_flash::@50->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = DECIMAL [phi:smc_flash::@50->printf_uint#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#6 [phi:smc_flash::@50->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#6 [phi:smc_flash::@50->printf_uint#4] -- register_copy jsr printf_uint - // [1668] phi from smc_flash::@50 to smc_flash::@51 [phi:smc_flash::@50->smc_flash::@51] + // [1682] phi from smc_flash::@50 to smc_flash::@51 [phi:smc_flash::@50->smc_flash::@51] // smc_flash::@51 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1669] call printf_str - // [1128] phi from smc_flash::@51 to printf_str [phi:smc_flash::@51->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@51->printf_str#0] -- pprz1=pprc1 + // [1683] call printf_str + // [1138] phi from smc_flash::@51 to printf_str [phi:smc_flash::@51->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@51->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s7 [phi:smc_flash::@51->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s7 [phi:smc_flash::@51->printf_str#1] -- pbuz1=pbuc1 lda #s7 @@ -11547,40 +11671,40 @@ smc_flash: { jsr printf_str // smc_flash::@52 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1670] printf_uint::uvalue#7 = smc_flash::smc_bytes_total#0 -- vwuz1=vwuz2 + // [1684] printf_uint::uvalue#7 = smc_flash::smc_bytes_total#0 -- vwuz1=vwuz2 lda.z smc_bytes_total sta.z printf_uint.uvalue lda.z smc_bytes_total+1 sta.z printf_uint.uvalue+1 - // [1671] call printf_uint - // [1825] phi from smc_flash::@52 to printf_uint [phi:smc_flash::@52->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@52->printf_uint#0] -- vbuz1=vbuc1 + // [1685] call printf_uint + // [1839] phi from smc_flash::@52 to printf_uint [phi:smc_flash::@52->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@52->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 5 [phi:smc_flash::@52->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 5 [phi:smc_flash::@52->printf_uint#1] -- vbuz1=vbuc1 lda #5 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@52->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@52->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = DECIMAL [phi:smc_flash::@52->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = DECIMAL [phi:smc_flash::@52->printf_uint#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#7 [phi:smc_flash::@52->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#7 [phi:smc_flash::@52->printf_uint#4] -- register_copy jsr printf_uint - // [1672] phi from smc_flash::@52 to smc_flash::@53 [phi:smc_flash::@52->smc_flash::@53] + // [1686] phi from smc_flash::@52 to smc_flash::@53 [phi:smc_flash::@52->smc_flash::@53] // smc_flash::@53 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1673] call printf_str - // [1128] phi from smc_flash::@53 to printf_str [phi:smc_flash::@53->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@53->printf_str#0] -- pprz1=pprc1 + // [1687] call printf_str + // [1138] phi from smc_flash::@53 to printf_str [phi:smc_flash::@53->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@53->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s8 [phi:smc_flash::@53->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s8 [phi:smc_flash::@53->printf_str#1] -- pbuz1=pbuc1 lda #s8 @@ -11588,40 +11712,40 @@ smc_flash: { jsr printf_str // smc_flash::@54 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1674] printf_uint::uvalue#8 = smc_flash::smc_attempts_total#1 -- vwuz1=vwuz2 + // [1688] printf_uint::uvalue#8 = smc_flash::smc_attempts_total#1 -- vwuz1=vwuz2 lda.z smc_attempts_total sta.z printf_uint.uvalue lda.z smc_attempts_total+1 sta.z printf_uint.uvalue+1 - // [1675] call printf_uint - // [1825] phi from smc_flash::@54 to printf_uint [phi:smc_flash::@54->printf_uint] - // [1825] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@54->printf_uint#0] -- vbuz1=vbuc1 + // [1689] call printf_uint + // [1839] phi from smc_flash::@54 to printf_uint [phi:smc_flash::@54->printf_uint] + // [1839] phi printf_uint::format_zero_padding#14 = 1 [phi:smc_flash::@54->printf_uint#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uint.format_zero_padding - // [1825] phi printf_uint::format_min_length#14 = 2 [phi:smc_flash::@54->printf_uint#1] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_min_length#14 = 2 [phi:smc_flash::@54->printf_uint#1] -- vbuz1=vbuc1 lda #2 sta.z printf_uint.format_min_length - // [1825] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@54->printf_uint#2] -- pprz1=pprc1 + // [1839] phi printf_uint::putc#14 = &snputc [phi:smc_flash::@54->printf_uint#2] -- pprz1=pprc1 lda #snputc sta.z printf_uint.putc+1 - // [1825] phi printf_uint::format_radix#14 = DECIMAL [phi:smc_flash::@54->printf_uint#3] -- vbuz1=vbuc1 + // [1839] phi printf_uint::format_radix#14 = DECIMAL [phi:smc_flash::@54->printf_uint#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uint.format_radix - // [1825] phi printf_uint::uvalue#14 = printf_uint::uvalue#8 [phi:smc_flash::@54->printf_uint#4] -- register_copy + // [1839] phi printf_uint::uvalue#14 = printf_uint::uvalue#8 [phi:smc_flash::@54->printf_uint#4] -- register_copy jsr printf_uint - // [1676] phi from smc_flash::@54 to smc_flash::@55 [phi:smc_flash::@54->smc_flash::@55] + // [1690] phi from smc_flash::@54 to smc_flash::@55 [phi:smc_flash::@54->smc_flash::@55] // smc_flash::@55 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1677] call printf_str - // [1128] phi from smc_flash::@55 to printf_str [phi:smc_flash::@55->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@55->printf_str#0] -- pprz1=pprc1 + // [1691] call printf_str + // [1138] phi from smc_flash::@55 to printf_str [phi:smc_flash::@55->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@55->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s9 [phi:smc_flash::@55->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s9 [phi:smc_flash::@55->printf_str#1] -- pbuz1=pbuc1 lda #s9 @@ -11629,65 +11753,65 @@ smc_flash: { jsr printf_str // smc_flash::@56 // sprintf(info_text, "Flashed %05u of %05u bytes in the SMC, with %02u retries ...", smc_bytes_flashed, smc_bytes_total, smc_attempts_total) - // [1678] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1692] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1679] callexecute snputc -- call_vprc1 + // [1693] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1681] call display_action_text - // [1208] phi from smc_flash::@56 to display_action_text [phi:smc_flash::@56->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@56->display_action_text#0] -- pbuz1=pbuc1 + // [1695] call display_action_text + // [1218] phi from smc_flash::@56 to display_action_text [phi:smc_flash::@56->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@56->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text sta.z display_action_text.info_text+1 jsr display_action_text - // [1621] phi from smc_flash::@56 to smc_flash::@12 [phi:smc_flash::@56->smc_flash::@12] - // [1621] phi smc_flash::y#20 = smc_flash::y#33 [phi:smc_flash::@56->smc_flash::@12#0] -- register_copy - // [1621] phi smc_flash::smc_attempts_total#17 = smc_flash::smc_attempts_total#1 [phi:smc_flash::@56->smc_flash::@12#1] -- register_copy - // [1621] phi smc_flash::smc_row_bytes#10 = smc_flash::smc_row_bytes#1 [phi:smc_flash::@56->smc_flash::@12#2] -- register_copy - // [1621] phi smc_flash::smc_ram_ptr#10 = smc_flash::smc_ram_ptr#12 [phi:smc_flash::@56->smc_flash::@12#3] -- register_copy - // [1621] phi smc_flash::smc_bytes_flashed#11 = smc_flash::smc_bytes_flashed#1 [phi:smc_flash::@56->smc_flash::@12#4] -- register_copy - // [1621] phi smc_flash::smc_attempts_flashed#19 = smc_flash::smc_attempts_flashed#19 [phi:smc_flash::@56->smc_flash::@12#5] -- register_copy - // [1621] phi smc_flash::smc_package_committed#2 = 1 [phi:smc_flash::@56->smc_flash::@12#6] -- vbum1=vbuc1 + // [1635] phi from smc_flash::@56 to smc_flash::@12 [phi:smc_flash::@56->smc_flash::@12] + // [1635] phi smc_flash::y#20 = smc_flash::y#33 [phi:smc_flash::@56->smc_flash::@12#0] -- register_copy + // [1635] phi smc_flash::smc_attempts_total#17 = smc_flash::smc_attempts_total#1 [phi:smc_flash::@56->smc_flash::@12#1] -- register_copy + // [1635] phi smc_flash::smc_row_bytes#10 = smc_flash::smc_row_bytes#1 [phi:smc_flash::@56->smc_flash::@12#2] -- register_copy + // [1635] phi smc_flash::smc_ram_ptr#10 = smc_flash::smc_ram_ptr#12 [phi:smc_flash::@56->smc_flash::@12#3] -- register_copy + // [1635] phi smc_flash::smc_bytes_flashed#11 = smc_flash::smc_bytes_flashed#1 [phi:smc_flash::@56->smc_flash::@12#4] -- register_copy + // [1635] phi smc_flash::smc_attempts_flashed#19 = smc_flash::smc_attempts_flashed#19 [phi:smc_flash::@56->smc_flash::@12#5] -- register_copy + // [1635] phi smc_flash::smc_package_committed#2 = 1 [phi:smc_flash::@56->smc_flash::@12#6] -- vbum1=vbuc1 lda #1 sta smc_package_committed jmp __b12 // smc_flash::@15 __b15: // unsigned char smc_byte_upload = *smc_ram_ptr - // [1682] smc_flash::smc_byte_upload#0 = *smc_flash::smc_ram_ptr#12 -- vbuz1=_deref_pbuz2 + // [1696] smc_flash::smc_byte_upload#0 = *smc_flash::smc_ram_ptr#12 -- vbuz1=_deref_pbuz2 ldy #0 lda (smc_ram_ptr),y sta.z smc_byte_upload // smc_ram_ptr++; - // [1683] smc_flash::smc_ram_ptr#1 = ++ smc_flash::smc_ram_ptr#12 -- pbuz1=_inc_pbuz1 + // [1697] smc_flash::smc_ram_ptr#1 = ++ smc_flash::smc_ram_ptr#12 -- pbuz1=_inc_pbuz1 inc.z smc_ram_ptr bne !+ inc.z smc_ram_ptr+1 !: // smc_bytes_checksum += smc_byte_upload - // [1684] smc_flash::smc_bytes_checksum#1 = smc_flash::smc_bytes_checksum#2 + smc_flash::smc_byte_upload#0 -- vbum1=vbum1_plus_vbuz2 + // [1698] smc_flash::smc_bytes_checksum#1 = smc_flash::smc_bytes_checksum#2 + smc_flash::smc_byte_upload#0 -- vbum1=vbum1_plus_vbuz2 lda smc_bytes_checksum clc adc.z smc_byte_upload sta smc_bytes_checksum // unsigned char smc_upload_result = cx16_k_i2c_write_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_UPLOAD, smc_byte_upload) - // [1685] smc_flash::cx16_k_i2c_write_byte3_device = $42 -- vbum1=vbuc1 + // [1699] smc_flash::cx16_k_i2c_write_byte3_device = $42 -- vbum1=vbuc1 lda #$42 sta cx16_k_i2c_write_byte3_device - // [1686] smc_flash::cx16_k_i2c_write_byte3_offset = $80 -- vbum1=vbuc1 + // [1700] smc_flash::cx16_k_i2c_write_byte3_offset = $80 -- vbum1=vbuc1 lda #$80 sta cx16_k_i2c_write_byte3_offset - // [1687] smc_flash::cx16_k_i2c_write_byte3_value = smc_flash::smc_byte_upload#0 -- vbum1=vbuz2 + // [1701] smc_flash::cx16_k_i2c_write_byte3_value = smc_flash::smc_byte_upload#0 -- vbum1=vbuz2 lda.z smc_byte_upload sta cx16_k_i2c_write_byte3_value // smc_flash::cx16_k_i2c_write_byte3 // unsigned char result - // [1688] smc_flash::cx16_k_i2c_write_byte3_result = 0 -- vbum1=vbuc1 + // [1702] smc_flash::cx16_k_i2c_write_byte3_result = 0 -- vbum1=vbuc1 lda #0 sta cx16_k_i2c_write_byte3_result // asm @@ -11700,45 +11824,45 @@ smc_flash: { rol cx16_k_i2c_write_byte3_result // smc_flash::@23 // smc_package_flashed++; - // [1690] smc_flash::smc_package_flashed#1 = ++ smc_flash::smc_package_flashed#2 -- vwum1=_inc_vwum1 + // [1704] smc_flash::smc_package_flashed#1 = ++ smc_flash::smc_package_flashed#2 -- vwum1=_inc_vwum1 inc smc_package_flashed bne !+ inc smc_package_flashed+1 !: - // [1635] phi from smc_flash::@23 to smc_flash::@14 [phi:smc_flash::@23->smc_flash::@14] - // [1635] phi smc_flash::smc_bytes_checksum#2 = smc_flash::smc_bytes_checksum#1 [phi:smc_flash::@23->smc_flash::@14#0] -- register_copy - // [1635] phi smc_flash::smc_ram_ptr#12 = smc_flash::smc_ram_ptr#1 [phi:smc_flash::@23->smc_flash::@14#1] -- register_copy - // [1635] phi smc_flash::smc_package_flashed#2 = smc_flash::smc_package_flashed#1 [phi:smc_flash::@23->smc_flash::@14#2] -- register_copy + // [1649] phi from smc_flash::@23 to smc_flash::@14 [phi:smc_flash::@23->smc_flash::@14] + // [1649] phi smc_flash::smc_bytes_checksum#2 = smc_flash::smc_bytes_checksum#1 [phi:smc_flash::@23->smc_flash::@14#0] -- register_copy + // [1649] phi smc_flash::smc_ram_ptr#12 = smc_flash::smc_ram_ptr#1 [phi:smc_flash::@23->smc_flash::@14#1] -- register_copy + // [1649] phi smc_flash::smc_package_flashed#2 = smc_flash::smc_package_flashed#1 [phi:smc_flash::@23->smc_flash::@14#2] -- register_copy jmp __b14 - // [1691] phi from smc_flash::@7 to smc_flash::@8 [phi:smc_flash::@7->smc_flash::@8] + // [1705] phi from smc_flash::@7 to smc_flash::@8 [phi:smc_flash::@7->smc_flash::@8] // smc_flash::@8 __b8: // wait_moment() - // [1692] call wait_moment - // [1192] phi from smc_flash::@8 to wait_moment [phi:smc_flash::@8->wait_moment] + // [1706] call wait_moment + // [1202] phi from smc_flash::@8 to wait_moment [phi:smc_flash::@8->wait_moment] jsr wait_moment - // [1693] phi from smc_flash::@8 to smc_flash::@36 [phi:smc_flash::@8->smc_flash::@36] + // [1707] phi from smc_flash::@8 to smc_flash::@36 [phi:smc_flash::@8->smc_flash::@36] // smc_flash::@36 // sprintf(info_text, "Updating SMC in %u ...", smc_bootloader_activation_countdown) - // [1694] call snprintf_init - // [1123] phi from smc_flash::@36 to snprintf_init [phi:smc_flash::@36->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:smc_flash::@36->snprintf_init#0] -- pbuz1=pbuc1 + // [1708] call snprintf_init + // [1133] phi from smc_flash::@36 to snprintf_init [phi:smc_flash::@36->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:smc_flash::@36->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1695] phi from smc_flash::@36 to smc_flash::@37 [phi:smc_flash::@36->smc_flash::@37] + // [1709] phi from smc_flash::@36 to smc_flash::@37 [phi:smc_flash::@36->smc_flash::@37] // smc_flash::@37 // sprintf(info_text, "Updating SMC in %u ...", smc_bootloader_activation_countdown) - // [1696] call printf_str - // [1128] phi from smc_flash::@37 to printf_str [phi:smc_flash::@37->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@37->printf_str#0] -- pprz1=pprc1 + // [1710] call printf_str + // [1138] phi from smc_flash::@37 to printf_str [phi:smc_flash::@37->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@37->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s3 [phi:smc_flash::@37->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s3 [phi:smc_flash::@37->printf_str#1] -- pbuz1=pbuc1 lda #s3 @@ -11746,37 +11870,37 @@ smc_flash: { jsr printf_str // smc_flash::@38 // sprintf(info_text, "Updating SMC in %u ...", smc_bootloader_activation_countdown) - // [1697] printf_uchar::uvalue#6 = smc_flash::smc_bootloader_activation_countdown#12 -- vbuz1=vbuz2 + // [1711] printf_uchar::uvalue#6 = smc_flash::smc_bootloader_activation_countdown#12 -- vbuz1=vbuz2 lda.z smc_bootloader_activation_countdown_1 sta.z printf_uchar.uvalue - // [1698] call printf_uchar - // [1197] phi from smc_flash::@38 to printf_uchar [phi:smc_flash::@38->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_flash::@38->printf_uchar#0] -- vbuz1=vbuc1 + // [1712] call printf_uchar + // [1207] phi from smc_flash::@38 to printf_uchar [phi:smc_flash::@38->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:smc_flash::@38->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:smc_flash::@38->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:smc_flash::@38->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:smc_flash::@38->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:smc_flash::@38->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_flash::@38->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_flash::@38->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#6 [phi:smc_flash::@38->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#6 [phi:smc_flash::@38->printf_uchar#4] -- register_copy jsr printf_uchar - // [1699] phi from smc_flash::@38 to smc_flash::@39 [phi:smc_flash::@38->smc_flash::@39] + // [1713] phi from smc_flash::@38 to smc_flash::@39 [phi:smc_flash::@38->smc_flash::@39] // smc_flash::@39 // sprintf(info_text, "Updating SMC in %u ...", smc_bootloader_activation_countdown) - // [1700] call printf_str - // [1128] phi from smc_flash::@39 to printf_str [phi:smc_flash::@39->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@39->printf_str#0] -- pprz1=pprc1 + // [1714] call printf_str + // [1138] phi from smc_flash::@39 to printf_str [phi:smc_flash::@39->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@39->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s4 [phi:smc_flash::@39->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s4 [phi:smc_flash::@39->printf_str#1] -- pbuz1=pbuc1 lda #s4 @@ -11784,17 +11908,17 @@ smc_flash: { jsr printf_str // smc_flash::@40 // sprintf(info_text, "Updating SMC in %u ...", smc_bootloader_activation_countdown) - // [1701] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1715] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1702] callexecute snputc -- call_vprc1 + // [1716] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1704] call display_action_text - // [1208] phi from smc_flash::@40 to display_action_text [phi:smc_flash::@40->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@40->display_action_text#0] -- pbuz1=pbuc1 + // [1718] call display_action_text + // [1218] phi from smc_flash::@40 to display_action_text [phi:smc_flash::@40->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@40->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text @@ -11802,60 +11926,60 @@ smc_flash: { jsr display_action_text // smc_flash::@41 // smc_bootloader_activation_countdown--; - // [1705] smc_flash::smc_bootloader_activation_countdown#3 = -- smc_flash::smc_bootloader_activation_countdown#12 -- vbuz1=_dec_vbuz1 + // [1719] smc_flash::smc_bootloader_activation_countdown#3 = -- smc_flash::smc_bootloader_activation_countdown#12 -- vbuz1=_dec_vbuz1 dec.z smc_bootloader_activation_countdown_1 - // [1595] phi from smc_flash::@41 to smc_flash::@7 [phi:smc_flash::@41->smc_flash::@7] - // [1595] phi smc_flash::smc_bootloader_activation_countdown#12 = smc_flash::smc_bootloader_activation_countdown#3 [phi:smc_flash::@41->smc_flash::@7#0] -- register_copy + // [1609] phi from smc_flash::@41 to smc_flash::@7 [phi:smc_flash::@41->smc_flash::@7] + // [1609] phi smc_flash::smc_bootloader_activation_countdown#12 = smc_flash::smc_bootloader_activation_countdown#3 [phi:smc_flash::@41->smc_flash::@7#0] -- register_copy jmp __b7 // smc_flash::@4 __b4: // unsigned int smc_bootloader_not_activated = cx16_k_i2c_read_byte(FLASH_I2C_SMC_DEVICE, FLASH_I2C_SMC_OFFSET) - // [1706] cx16_k_i2c_read_byte::device = $42 -- vbum1=vbuc1 + // [1720] cx16_k_i2c_read_byte::device = $42 -- vbum1=vbuc1 lda #$42 sta cx16_k_i2c_read_byte.device - // [1707] cx16_k_i2c_read_byte::offset = $8e -- vbum1=vbuc1 + // [1721] cx16_k_i2c_read_byte::offset = $8e -- vbum1=vbuc1 lda #$8e sta cx16_k_i2c_read_byte.offset - // [1708] call cx16_k_i2c_read_byte + // [1722] call cx16_k_i2c_read_byte jsr cx16_k_i2c_read_byte - // [1709] cx16_k_i2c_read_byte::return#11 = cx16_k_i2c_read_byte::return#1 + // [1723] cx16_k_i2c_read_byte::return#11 = cx16_k_i2c_read_byte::return#1 // smc_flash::@30 - // [1710] smc_flash::smc_bootloader_not_activated1#0 = cx16_k_i2c_read_byte::return#11 + // [1724] smc_flash::smc_bootloader_not_activated1#0 = cx16_k_i2c_read_byte::return#11 // if(smc_bootloader_not_activated) - // [1711] if(0!=smc_flash::smc_bootloader_not_activated1#0) goto smc_flash::@5 -- 0_neq_vwuz1_then_la1 + // [1725] if(0!=smc_flash::smc_bootloader_not_activated1#0) goto smc_flash::@5 -- 0_neq_vwuz1_then_la1 lda.z smc_bootloader_not_activated1 ora.z smc_bootloader_not_activated1+1 bne __b5 jmp __b9 - // [1712] phi from smc_flash::@30 to smc_flash::@5 [phi:smc_flash::@30->smc_flash::@5] + // [1726] phi from smc_flash::@30 to smc_flash::@5 [phi:smc_flash::@30->smc_flash::@5] // smc_flash::@5 __b5: // wait_moment() - // [1713] call wait_moment - // [1192] phi from smc_flash::@5 to wait_moment [phi:smc_flash::@5->wait_moment] + // [1727] call wait_moment + // [1202] phi from smc_flash::@5 to wait_moment [phi:smc_flash::@5->wait_moment] jsr wait_moment - // [1714] phi from smc_flash::@5 to smc_flash::@31 [phi:smc_flash::@5->smc_flash::@31] + // [1728] phi from smc_flash::@5 to smc_flash::@31 [phi:smc_flash::@5->smc_flash::@31] // smc_flash::@31 // sprintf(info_text, "[%03u] Press POWER and RESET on the CX16 to start the SMC update!", smc_bootloader_activation_countdown) - // [1715] call snprintf_init - // [1123] phi from smc_flash::@31 to snprintf_init [phi:smc_flash::@31->snprintf_init] - // [1123] phi snprintf_init::s#26 = info_text [phi:smc_flash::@31->snprintf_init#0] -- pbuz1=pbuc1 + // [1729] call snprintf_init + // [1133] phi from smc_flash::@31 to snprintf_init [phi:smc_flash::@31->snprintf_init] + // [1133] phi snprintf_init::s#26 = info_text [phi:smc_flash::@31->snprintf_init#0] -- pbuz1=pbuc1 lda #<@info_text sta.z snprintf_init.s lda #>@info_text sta.z snprintf_init.s+1 jsr snprintf_init - // [1716] phi from smc_flash::@31 to smc_flash::@32 [phi:smc_flash::@31->smc_flash::@32] + // [1730] phi from smc_flash::@31 to smc_flash::@32 [phi:smc_flash::@31->smc_flash::@32] // smc_flash::@32 // sprintf(info_text, "[%03u] Press POWER and RESET on the CX16 to start the SMC update!", smc_bootloader_activation_countdown) - // [1717] call printf_str - // [1128] phi from smc_flash::@32 to printf_str [phi:smc_flash::@32->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@32->printf_str#0] -- pprz1=pprc1 + // [1731] call printf_str + // [1138] phi from smc_flash::@32 to printf_str [phi:smc_flash::@32->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@32->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s1 [phi:smc_flash::@32->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s1 [phi:smc_flash::@32->printf_str#1] -- pbuz1=pbuc1 lda #s1 @@ -11863,38 +11987,38 @@ smc_flash: { jsr printf_str // smc_flash::@33 // sprintf(info_text, "[%03u] Press POWER and RESET on the CX16 to start the SMC update!", smc_bootloader_activation_countdown) - // [1718] printf_uchar::uvalue#5 = smc_flash::smc_bootloader_activation_countdown#10 -- vbuz1=vbuz2 + // [1732] printf_uchar::uvalue#5 = smc_flash::smc_bootloader_activation_countdown#10 -- vbuz1=vbuz2 lda.z smc_bootloader_activation_countdown sta.z printf_uchar.uvalue - // [1719] call printf_uchar - // [1197] phi from smc_flash::@33 to printf_uchar [phi:smc_flash::@33->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 1 [phi:smc_flash::@33->printf_uchar#0] -- vbuz1=vbuc1 + // [1733] call printf_uchar + // [1207] phi from smc_flash::@33 to printf_uchar [phi:smc_flash::@33->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 1 [phi:smc_flash::@33->printf_uchar#0] -- vbuz1=vbuc1 lda #1 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 3 [phi:smc_flash::@33->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 3 [phi:smc_flash::@33->printf_uchar#1] -- vbuz1=vbuc1 lda #3 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:smc_flash::@33->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:smc_flash::@33->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_flash::@33->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:smc_flash::@33->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#5 [phi:smc_flash::@33->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#5 [phi:smc_flash::@33->printf_uchar#4] -- register_copy jsr printf_uchar - // [1720] phi from smc_flash::@33 to smc_flash::@34 [phi:smc_flash::@33->smc_flash::@34] + // [1734] phi from smc_flash::@33 to smc_flash::@34 [phi:smc_flash::@33->smc_flash::@34] // smc_flash::@34 // sprintf(info_text, "[%03u] Press POWER and RESET on the CX16 to start the SMC update!", smc_bootloader_activation_countdown) - // [1721] call printf_str - // [1128] phi from smc_flash::@34 to printf_str [phi:smc_flash::@34->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:smc_flash::@34->printf_str#0] -- pprz1=pprc1 + // [1735] call printf_str + // [1138] phi from smc_flash::@34 to printf_str [phi:smc_flash::@34->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:smc_flash::@34->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = smc_flash::s2 [phi:smc_flash::@34->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = smc_flash::s2 [phi:smc_flash::@34->printf_str#1] -- pbuz1=pbuc1 lda #s2 @@ -11902,17 +12026,17 @@ smc_flash: { jsr printf_str // smc_flash::@35 // sprintf(info_text, "[%03u] Press POWER and RESET on the CX16 to start the SMC update!", smc_bootloader_activation_countdown) - // [1722] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1736] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1723] callexecute snputc -- call_vprc1 + // [1737] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_action_text(info_text) - // [1725] call display_action_text - // [1208] phi from smc_flash::@35 to display_action_text [phi:smc_flash::@35->display_action_text] - // [1208] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@35->display_action_text#0] -- pbuz1=pbuc1 + // [1739] call display_action_text + // [1218] phi from smc_flash::@35 to display_action_text [phi:smc_flash::@35->display_action_text] + // [1218] phi display_action_text::info_text#19 = info_text [phi:smc_flash::@35->display_action_text#0] -- pbuz1=pbuc1 lda #<@info_text sta.z display_action_text.info_text lda #>@info_text @@ -11920,10 +12044,10 @@ smc_flash: { jsr display_action_text // smc_flash::@6 // smc_bootloader_activation_countdown--; - // [1726] smc_flash::smc_bootloader_activation_countdown#2 = -- smc_flash::smc_bootloader_activation_countdown#10 -- vbuz1=_dec_vbuz1 + // [1740] smc_flash::smc_bootloader_activation_countdown#2 = -- smc_flash::smc_bootloader_activation_countdown#10 -- vbuz1=_dec_vbuz1 dec.z smc_bootloader_activation_countdown - // [1593] phi from smc_flash::@6 to smc_flash::@3 [phi:smc_flash::@6->smc_flash::@3] - // [1593] phi smc_flash::smc_bootloader_activation_countdown#10 = smc_flash::smc_bootloader_activation_countdown#2 [phi:smc_flash::@6->smc_flash::@3#0] -- register_copy + // [1607] phi from smc_flash::@6 to smc_flash::@3 [phi:smc_flash::@6->smc_flash::@3] + // [1607] phi smc_flash::smc_bootloader_activation_countdown#10 = smc_flash::smc_bootloader_activation_countdown#2 [phi:smc_flash::@6->smc_flash::@3#0] -- register_copy jmp __b3 .segment Data info_text: .text "To start the SMC update, do the below action ..." @@ -11983,62 +12107,62 @@ smc_flash: { * @param filter * @return unsigned char */ -// __mem() char util_wait_key(__zp($5f) char *info_text, __zp($b2) char *filter) +// __mem() char util_wait_key(__zp($3f) char *info_text, __zp($b4) char *filter) util_wait_key: { .const bank_set_bram1_bank = 0 .const bank_set_brom1_bank = 4 - .label util_wait_key__9 = $ea - .label bank_get_brom1_return = $e6 - .label info_text = $5f - .label filter = $b2 + .label util_wait_key__9 = $ec + .label bank_get_brom1_return = $e8 + .label info_text = $3f + .label filter = $b4 // display_action_text(info_text) - // [1728] display_action_text::info_text#0 = util_wait_key::info_text#3 - // [1729] call display_action_text - // [1208] phi from util_wait_key to display_action_text [phi:util_wait_key->display_action_text] - // [1208] phi display_action_text::info_text#19 = display_action_text::info_text#0 [phi:util_wait_key->display_action_text#0] -- register_copy + // [1742] display_action_text::info_text#0 = util_wait_key::info_text#3 + // [1743] call display_action_text + // [1218] phi from util_wait_key to display_action_text [phi:util_wait_key->display_action_text] + // [1218] phi display_action_text::info_text#19 = display_action_text::info_text#0 [phi:util_wait_key->display_action_text#0] -- register_copy jsr display_action_text // util_wait_key::bank_get_bram1 // return BRAM; - // [1730] util_wait_key::bram#0 = BRAM -- vbum1=vbuz2 + // [1744] util_wait_key::bram#0 = BRAM -- vbum1=vbuz2 lda.z BRAM sta bram // util_wait_key::bank_get_brom1 // return BROM; - // [1731] util_wait_key::bank_get_brom1_return#0 = BROM -- vbuz1=vbuz2 + // [1745] util_wait_key::bank_get_brom1_return#0 = BROM -- vbuz1=vbuz2 lda.z BROM sta.z bank_get_brom1_return // util_wait_key::bank_set_bram1 // BRAM = bank - // [1732] BRAM = util_wait_key::bank_set_bram1_bank#0 -- vbuz1=vbuc1 + // [1746] BRAM = util_wait_key::bank_set_bram1_bank#0 -- vbuz1=vbuc1 lda #bank_set_bram1_bank sta.z BRAM // util_wait_key::bank_set_brom1 // BROM = bank - // [1733] BROM = util_wait_key::bank_set_brom1_bank#0 -- vbuz1=vbuc1 + // [1747] BROM = util_wait_key::bank_set_brom1_bank#0 -- vbuz1=vbuc1 lda #bank_set_brom1_bank sta.z BROM - // [1734] phi from util_wait_key::@2 util_wait_key::@5 util_wait_key::bank_set_brom1 to util_wait_key::kbhit1 [phi:util_wait_key::@2/util_wait_key::@5/util_wait_key::bank_set_brom1->util_wait_key::kbhit1] + // [1748] phi from util_wait_key::@2 util_wait_key::@5 util_wait_key::bank_set_brom1 to util_wait_key::kbhit1 [phi:util_wait_key::@2/util_wait_key::@5/util_wait_key::bank_set_brom1->util_wait_key::kbhit1] // util_wait_key::kbhit1 kbhit1: // util_wait_key::kbhit1_cbm_k_clrchn1 // asm // asm { jsrCBM_CLRCHN } jsr CBM_CLRCHN - // [1736] phi from util_wait_key::kbhit1_cbm_k_clrchn1 to util_wait_key::kbhit1_@2 [phi:util_wait_key::kbhit1_cbm_k_clrchn1->util_wait_key::kbhit1_@2] + // [1750] phi from util_wait_key::kbhit1_cbm_k_clrchn1 to util_wait_key::kbhit1_@2 [phi:util_wait_key::kbhit1_cbm_k_clrchn1->util_wait_key::kbhit1_@2] // util_wait_key::kbhit1_@2 // cbm_k_getin() - // [1737] call cbm_k_getin + // [1751] call cbm_k_getin jsr cbm_k_getin - // [1738] cbm_k_getin::return#2 = cbm_k_getin::return#1 + // [1752] cbm_k_getin::return#2 = cbm_k_getin::return#1 // util_wait_key::@4 - // [1739] util_wait_key::ch#4 = cbm_k_getin::return#2 -- vwum1=vbuz2 + // [1753] util_wait_key::ch#4 = cbm_k_getin::return#2 -- vwum1=vbuz2 lda.z cbm_k_getin.return sta ch lda #0 sta ch+1 // util_wait_key::@3 // if (filter) - // [1740] if((char *)0!=util_wait_key::filter#13) goto util_wait_key::@1 -- pbuc1_neq_pbuz1_then_la1 + // [1754] if((char *)0!=util_wait_key::filter#13) goto util_wait_key::@1 -- pbuc1_neq_pbuz1_then_la1 // if there is a filter, check the filter, otherwise return ch. lda.z filter+1 cmp #>0 @@ -12048,7 +12172,7 @@ util_wait_key: { bne __b1 // util_wait_key::@2 // if(ch) - // [1741] if(0!=util_wait_key::ch#4) goto util_wait_key::bank_set_bram2 -- 0_neq_vwum1_then_la1 + // [1755] if(0!=util_wait_key::ch#4) goto util_wait_key::bank_set_bram2 -- 0_neq_vwum1_then_la1 lda ch ora ch+1 bne bank_set_bram2 @@ -12056,40 +12180,40 @@ util_wait_key: { // util_wait_key::bank_set_bram2 bank_set_bram2: // BRAM = bank - // [1742] BRAM = util_wait_key::bram#0 -- vbuz1=vbum2 + // [1756] BRAM = util_wait_key::bram#0 -- vbuz1=vbum2 lda bram sta.z BRAM // util_wait_key::bank_set_brom2 // BROM = bank - // [1743] BROM = util_wait_key::bank_get_brom1_return#0 -- vbuz1=vbuz2 + // [1757] BROM = util_wait_key::bank_get_brom1_return#0 -- vbuz1=vbuz2 lda.z bank_get_brom1_return sta.z BROM // util_wait_key::@return // } - // [1744] return + // [1758] return rts // util_wait_key::@1 __b1: // strchr(filter, ch) - // [1745] strchr::str#0 = (const void *)util_wait_key::filter#13 -- pvoz1=pvoz2 + // [1759] strchr::str#0 = (const void *)util_wait_key::filter#13 -- pvoz1=pvoz2 lda.z filter sta.z strchr.str lda.z filter+1 sta.z strchr.str+1 - // [1746] strchr::c#0 = util_wait_key::ch#4 -- vbum1=vwum2 + // [1760] strchr::c#0 = util_wait_key::ch#4 -- vbum1=vwum2 lda ch sta strchr.c - // [1747] call strchr - // [1751] phi from util_wait_key::@1 to strchr [phi:util_wait_key::@1->strchr] - // [1751] phi strchr::c#4 = strchr::c#0 [phi:util_wait_key::@1->strchr#0] -- register_copy - // [1751] phi strchr::str#2 = strchr::str#0 [phi:util_wait_key::@1->strchr#1] -- register_copy + // [1761] call strchr + // [1765] phi from util_wait_key::@1 to strchr [phi:util_wait_key::@1->strchr] + // [1765] phi strchr::c#4 = strchr::c#0 [phi:util_wait_key::@1->strchr#0] -- register_copy + // [1765] phi strchr::str#2 = strchr::str#0 [phi:util_wait_key::@1->strchr#1] -- register_copy jsr strchr // strchr(filter, ch) - // [1748] strchr::return#3 = strchr::return#2 + // [1762] strchr::return#3 = strchr::return#2 // util_wait_key::@5 - // [1749] util_wait_key::$9 = strchr::return#3 + // [1763] util_wait_key::$9 = strchr::return#3 // if(strchr(filter, ch) != NULL) - // [1750] if(util_wait_key::$9!=0) goto util_wait_key::bank_set_bram2 -- pvoz1_neq_0_then_la1 + // [1764] if(util_wait_key::$9!=0) goto util_wait_key::bank_set_bram2 -- pvoz1_neq_0_then_la1 lda.z util_wait_key__9 ora.z util_wait_key__9+1 bne bank_set_bram2 @@ -12106,48 +12230,48 @@ util_wait_key: { // - str: The memory to search // - c: A character to search for // Return: A pointer to the matching byte or NULL if the character does not occur in the given memory area. -// __zp($ea) void * strchr(__zp($ea) const void *str, __mem() char c) +// __zp($ec) void * strchr(__zp($ec) const void *str, __mem() char c) strchr: { - .label ptr = $ea - .label return = $ea - .label str = $ea - // [1752] strchr::ptr#6 = (char *)strchr::str#2 - // [1753] phi from strchr strchr::@3 to strchr::@1 [phi:strchr/strchr::@3->strchr::@1] - // [1753] phi strchr::ptr#2 = strchr::ptr#6 [phi:strchr/strchr::@3->strchr::@1#0] -- register_copy + .label ptr = $ec + .label return = $ec + .label str = $ec + // [1766] strchr::ptr#6 = (char *)strchr::str#2 + // [1767] phi from strchr strchr::@3 to strchr::@1 [phi:strchr/strchr::@3->strchr::@1] + // [1767] phi strchr::ptr#2 = strchr::ptr#6 [phi:strchr/strchr::@3->strchr::@1#0] -- register_copy // strchr::@1 __b1: // while(*ptr) - // [1754] if(0!=*strchr::ptr#2) goto strchr::@2 -- 0_neq__deref_pbuz1_then_la1 + // [1768] if(0!=*strchr::ptr#2) goto strchr::@2 -- 0_neq__deref_pbuz1_then_la1 ldy #0 lda (ptr),y cmp #0 bne __b2 - // [1755] phi from strchr::@1 to strchr::@return [phi:strchr::@1->strchr::@return] - // [1755] phi strchr::return#2 = (void *) 0 [phi:strchr::@1->strchr::@return#0] -- pvoz1=pvoc1 + // [1769] phi from strchr::@1 to strchr::@return [phi:strchr::@1->strchr::@return] + // [1769] phi strchr::return#2 = (void *) 0 [phi:strchr::@1->strchr::@return#0] -- pvoz1=pvoc1 tya sta.z return sta.z return+1 // strchr::@return // } - // [1756] return + // [1770] return rts // strchr::@2 __b2: // if(*ptr==c) - // [1757] if(*strchr::ptr#2!=strchr::c#4) goto strchr::@3 -- _deref_pbuz1_neq_vbum2_then_la1 + // [1771] if(*strchr::ptr#2!=strchr::c#4) goto strchr::@3 -- _deref_pbuz1_neq_vbum2_then_la1 ldy #0 lda (ptr),y cmp c bne __b3 // strchr::@4 - // [1758] strchr::return#8 = (void *)strchr::ptr#2 - // [1755] phi from strchr::@4 to strchr::@return [phi:strchr::@4->strchr::@return] - // [1755] phi strchr::return#2 = strchr::return#8 [phi:strchr::@4->strchr::@return#0] -- register_copy + // [1772] strchr::return#8 = (void *)strchr::ptr#2 + // [1769] phi from strchr::@4 to strchr::@return [phi:strchr::@4->strchr::@return] + // [1769] phi strchr::return#2 = strchr::return#8 [phi:strchr::@4->strchr::@return#0] -- register_copy rts // strchr::@3 __b3: // ptr++; - // [1759] strchr::ptr#1 = ++ strchr::ptr#2 -- pbuz1=_inc_pbuz1 + // [1773] strchr::ptr#1 = ++ strchr::ptr#2 -- pbuz1=_inc_pbuz1 inc.z ptr bne !+ inc.z ptr+1 @@ -12164,24 +12288,24 @@ strchr: { * @param info_status The status. * @param info_text The status text. */ -// void display_info_cx16_rom(__zp($2c) char info_status, __zp($3e) char *info_text) +// void display_info_cx16_rom(__zp($2c) char info_status, __zp($4e) char *info_text) display_info_cx16_rom: { .label info_status = $2c - .label info_text = $3e + .label info_text = $4e // display_info_rom(0, info_status, info_text) - // [1761] display_info_rom::info_status#0 = display_info_cx16_rom::info_status#4 - // [1762] display_info_rom::info_text#0 = display_info_cx16_rom::info_text#4 - // [1763] call display_info_rom - // [1240] phi from display_info_cx16_rom to display_info_rom [phi:display_info_cx16_rom->display_info_rom] - // [1240] phi display_info_rom::info_text#16 = display_info_rom::info_text#0 [phi:display_info_cx16_rom->display_info_rom#0] -- register_copy - // [1240] phi display_info_rom::rom_chip#16 = 0 [phi:display_info_cx16_rom->display_info_rom#1] -- vbuz1=vbuc1 + // [1775] display_info_rom::info_status#0 = display_info_cx16_rom::info_status#4 + // [1776] display_info_rom::info_text#0 = display_info_cx16_rom::info_text#4 + // [1777] call display_info_rom + // [1250] phi from display_info_cx16_rom to display_info_rom [phi:display_info_cx16_rom->display_info_rom] + // [1250] phi display_info_rom::info_text#16 = display_info_rom::info_text#0 [phi:display_info_cx16_rom->display_info_rom#0] -- register_copy + // [1250] phi display_info_rom::rom_chip#16 = 0 [phi:display_info_cx16_rom->display_info_rom#1] -- vbuz1=vbuc1 lda #0 sta.z display_info_rom.rom_chip - // [1240] phi display_info_rom::info_status#16 = display_info_rom::info_status#0 [phi:display_info_cx16_rom->display_info_rom#2] -- register_copy + // [1250] phi display_info_rom::info_status#16 = display_info_rom::info_status#0 [phi:display_info_cx16_rom->display_info_rom#2] -- register_copy jsr display_info_rom // display_info_cx16_rom::@return // } - // [1764] return + // [1778] return rts } // rom_get_github_commit_id @@ -12191,51 +12315,51 @@ display_info_cx16_rom: { * @param commit_id The target commit_id. * @param from The source ptr in ROM or RAM. */ -// void rom_get_github_commit_id(__zp($d5) char *commit_id, __zp($3e) char *from) +// void rom_get_github_commit_id(__zp($d7) char *commit_id, __zp($4e) char *from) rom_get_github_commit_id: { - .label ch = $e6 - .label commit_id = $d5 - .label from = $3e - // [1766] phi from rom_get_github_commit_id to rom_get_github_commit_id::@2 [phi:rom_get_github_commit_id->rom_get_github_commit_id::@2] - // [1766] phi rom_get_github_commit_id::commit_id_ok#2 = true [phi:rom_get_github_commit_id->rom_get_github_commit_id::@2#0] -- vbom1=vboc1 + .label ch = $e8 + .label commit_id = $d7 + .label from = $4e + // [1780] phi from rom_get_github_commit_id to rom_get_github_commit_id::@2 [phi:rom_get_github_commit_id->rom_get_github_commit_id::@2] + // [1780] phi rom_get_github_commit_id::commit_id_ok#2 = true [phi:rom_get_github_commit_id->rom_get_github_commit_id::@2#0] -- vbom1=vboc1 lda #1 sta commit_id_ok - // [1766] phi rom_get_github_commit_id::c#2 = 0 [phi:rom_get_github_commit_id->rom_get_github_commit_id::@2#1] -- vbum1=vbuc1 + // [1780] phi rom_get_github_commit_id::c#2 = 0 [phi:rom_get_github_commit_id->rom_get_github_commit_id::@2#1] -- vbum1=vbuc1 lda #0 sta c // rom_get_github_commit_id::@2 __b2: // for(unsigned char c=0; c<7; c++) - // [1767] if(rom_get_github_commit_id::c#2<7) goto rom_get_github_commit_id::@3 -- vbum1_lt_vbuc1_then_la1 + // [1781] if(rom_get_github_commit_id::c#2<7) goto rom_get_github_commit_id::@3 -- vbum1_lt_vbuc1_then_la1 lda c cmp #7 bcc __b3 // rom_get_github_commit_id::@4 // if(commit_id_ok) - // [1768] if(rom_get_github_commit_id::commit_id_ok#2) goto rom_get_github_commit_id::@1 -- vbom1_then_la1 + // [1782] if(rom_get_github_commit_id::commit_id_ok#2) goto rom_get_github_commit_id::@1 -- vbom1_then_la1 lda commit_id_ok cmp #0 bne __b1 // rom_get_github_commit_id::@6 // *commit_id = '\0' - // [1769] *rom_get_github_commit_id::commit_id#6 = '@' -- _deref_pbuz1=vbuc1 + // [1783] *rom_get_github_commit_id::commit_id#6 = '@' -- _deref_pbuz1=vbuc1 lda #'@' ldy #0 sta (commit_id),y // rom_get_github_commit_id::@return // } - // [1770] return + // [1784] return rts // rom_get_github_commit_id::@1 __b1: // strncpy(commit_id, from, 7) - // [1771] strncpy::dst#2 = rom_get_github_commit_id::commit_id#6 - // [1772] strncpy::src#2 = rom_get_github_commit_id::from#6 - // [1773] call strncpy - // [2493] phi from rom_get_github_commit_id::@1 to strncpy [phi:rom_get_github_commit_id::@1->strncpy] - // [2493] phi strncpy::dst#8 = strncpy::dst#2 [phi:rom_get_github_commit_id::@1->strncpy#0] -- register_copy - // [2493] phi strncpy::src#6 = strncpy::src#2 [phi:rom_get_github_commit_id::@1->strncpy#1] -- register_copy - // [2493] phi strncpy::n#3 = 7 [phi:rom_get_github_commit_id::@1->strncpy#2] -- vwuz1=vbuc1 + // [1785] strncpy::dst#2 = rom_get_github_commit_id::commit_id#6 + // [1786] strncpy::src#2 = rom_get_github_commit_id::from#6 + // [1787] call strncpy + // [2507] phi from rom_get_github_commit_id::@1 to strncpy [phi:rom_get_github_commit_id::@1->strncpy] + // [2507] phi strncpy::dst#8 = strncpy::dst#2 [phi:rom_get_github_commit_id::@1->strncpy#0] -- register_copy + // [2507] phi strncpy::src#6 = strncpy::src#2 [phi:rom_get_github_commit_id::@1->strncpy#1] -- register_copy + // [2507] phi strncpy::n#3 = 7 [phi:rom_get_github_commit_id::@1->strncpy#2] -- vwuz1=vbuc1 lda #<7 sta.z strncpy.n lda #>7 @@ -12245,45 +12369,45 @@ rom_get_github_commit_id: { // rom_get_github_commit_id::@3 __b3: // unsigned char ch = from[c] - // [1774] rom_get_github_commit_id::ch#0 = rom_get_github_commit_id::from#6[rom_get_github_commit_id::c#2] -- vbuz1=pbuz2_derefidx_vbum3 + // [1788] rom_get_github_commit_id::ch#0 = rom_get_github_commit_id::from#6[rom_get_github_commit_id::c#2] -- vbuz1=pbuz2_derefidx_vbum3 ldy c lda (from),y sta.z ch // if(!(ch >= 48 && ch <= 48+9 || ch >= 65 && ch <= 65+26)) - // [1775] if(rom_get_github_commit_id::ch#0<$30) goto rom_get_github_commit_id::@7 -- vbuz1_lt_vbuc1_then_la1 + // [1789] if(rom_get_github_commit_id::ch#0<$30) goto rom_get_github_commit_id::@7 -- vbuz1_lt_vbuc1_then_la1 cmp #$30 bcc __b7 // rom_get_github_commit_id::@8 - // [1776] if(rom_get_github_commit_id::ch#0<$30+9+1) goto rom_get_github_commit_id::@5 -- vbuz1_lt_vbuc1_then_la1 + // [1790] if(rom_get_github_commit_id::ch#0<$30+9+1) goto rom_get_github_commit_id::@5 -- vbuz1_lt_vbuc1_then_la1 cmp #$30+9+1 bcc __b5 // rom_get_github_commit_id::@7 __b7: - // [1777] if(rom_get_github_commit_id::ch#0<$41) goto rom_get_github_commit_id::@5 -- vbuz1_lt_vbuc1_then_la1 + // [1791] if(rom_get_github_commit_id::ch#0<$41) goto rom_get_github_commit_id::@5 -- vbuz1_lt_vbuc1_then_la1 lda.z ch cmp #$41 bcc __b4 // rom_get_github_commit_id::@9 - // [1778] if(rom_get_github_commit_id::ch#0<$41+$1a+1) goto rom_get_github_commit_id::@10 -- vbuz1_lt_vbuc1_then_la1 + // [1792] if(rom_get_github_commit_id::ch#0<$41+$1a+1) goto rom_get_github_commit_id::@10 -- vbuz1_lt_vbuc1_then_la1 cmp #$41+$1a+1 bcc __b5 - // [1780] phi from rom_get_github_commit_id::@7 rom_get_github_commit_id::@9 to rom_get_github_commit_id::@5 [phi:rom_get_github_commit_id::@7/rom_get_github_commit_id::@9->rom_get_github_commit_id::@5] + // [1794] phi from rom_get_github_commit_id::@7 rom_get_github_commit_id::@9 to rom_get_github_commit_id::@5 [phi:rom_get_github_commit_id::@7/rom_get_github_commit_id::@9->rom_get_github_commit_id::@5] __b4: - // [1780] phi rom_get_github_commit_id::commit_id_ok#4 = false [phi:rom_get_github_commit_id::@7/rom_get_github_commit_id::@9->rom_get_github_commit_id::@5#0] -- vbom1=vboc1 + // [1794] phi rom_get_github_commit_id::commit_id_ok#4 = false [phi:rom_get_github_commit_id::@7/rom_get_github_commit_id::@9->rom_get_github_commit_id::@5#0] -- vbom1=vboc1 lda #0 sta commit_id_ok - // [1779] phi from rom_get_github_commit_id::@9 to rom_get_github_commit_id::@10 [phi:rom_get_github_commit_id::@9->rom_get_github_commit_id::@10] + // [1793] phi from rom_get_github_commit_id::@9 to rom_get_github_commit_id::@10 [phi:rom_get_github_commit_id::@9->rom_get_github_commit_id::@10] // rom_get_github_commit_id::@10 - // [1780] phi from rom_get_github_commit_id::@10 rom_get_github_commit_id::@8 to rom_get_github_commit_id::@5 [phi:rom_get_github_commit_id::@10/rom_get_github_commit_id::@8->rom_get_github_commit_id::@5] - // [1780] phi rom_get_github_commit_id::commit_id_ok#4 = rom_get_github_commit_id::commit_id_ok#2 [phi:rom_get_github_commit_id::@10/rom_get_github_commit_id::@8->rom_get_github_commit_id::@5#0] -- register_copy + // [1794] phi from rom_get_github_commit_id::@10 rom_get_github_commit_id::@8 to rom_get_github_commit_id::@5 [phi:rom_get_github_commit_id::@10/rom_get_github_commit_id::@8->rom_get_github_commit_id::@5] + // [1794] phi rom_get_github_commit_id::commit_id_ok#4 = rom_get_github_commit_id::commit_id_ok#2 [phi:rom_get_github_commit_id::@10/rom_get_github_commit_id::@8->rom_get_github_commit_id::@5#0] -- register_copy // rom_get_github_commit_id::@5 __b5: // for(unsigned char c=0; c<7; c++) - // [1781] rom_get_github_commit_id::c#1 = ++ rom_get_github_commit_id::c#2 -- vbum1=_inc_vbum1 + // [1795] rom_get_github_commit_id::c#1 = ++ rom_get_github_commit_id::c#2 -- vbum1=_inc_vbum1 inc c - // [1766] phi from rom_get_github_commit_id::@5 to rom_get_github_commit_id::@2 [phi:rom_get_github_commit_id::@5->rom_get_github_commit_id::@2] - // [1766] phi rom_get_github_commit_id::commit_id_ok#2 = rom_get_github_commit_id::commit_id_ok#4 [phi:rom_get_github_commit_id::@5->rom_get_github_commit_id::@2#0] -- register_copy - // [1766] phi rom_get_github_commit_id::c#2 = rom_get_github_commit_id::c#1 [phi:rom_get_github_commit_id::@5->rom_get_github_commit_id::@2#1] -- register_copy + // [1780] phi from rom_get_github_commit_id::@5 to rom_get_github_commit_id::@2 [phi:rom_get_github_commit_id::@5->rom_get_github_commit_id::@2] + // [1780] phi rom_get_github_commit_id::commit_id_ok#2 = rom_get_github_commit_id::commit_id_ok#4 [phi:rom_get_github_commit_id::@5->rom_get_github_commit_id::@2#0] -- register_copy + // [1780] phi rom_get_github_commit_id::c#2 = rom_get_github_commit_id::c#1 [phi:rom_get_github_commit_id::@5->rom_get_github_commit_id::@2#1] -- register_copy jmp __b2 .segment Data .label c = main.check_status_smc4_main__0 @@ -12298,36 +12422,36 @@ rom_get_github_commit_id: { * @param release The raw release number. * @return unsigned char The release potentially taken 2's complement. */ -// __zp($dd) char rom_get_release(__zp($dd) char release) +// __zp($df) char rom_get_release(__zp($df) char release) rom_get_release: { - .label rom_get_release__0 = $e5 - .label rom_get_release__2 = $dd - .label return = $dd - .label release = $dd + .label rom_get_release__0 = $e7 + .label rom_get_release__2 = $df + .label return = $df + .label release = $df // release & 0x80 - // [1783] rom_get_release::$0 = rom_get_release::release#3 & $80 -- vbuz1=vbuz2_band_vbuc1 + // [1797] rom_get_release::$0 = rom_get_release::release#3 & $80 -- vbuz1=vbuz2_band_vbuc1 lda #$80 and.z release sta.z rom_get_release__0 // if(release & 0x80) - // [1784] if(0==rom_get_release::$0) goto rom_get_release::@1 -- 0_eq_vbuz1_then_la1 + // [1798] if(0==rom_get_release::$0) goto rom_get_release::@1 -- 0_eq_vbuz1_then_la1 beq __b1 // rom_get_release::@2 // ~release - // [1785] rom_get_release::$2 = ~ rom_get_release::release#3 -- vbuz1=_bnot_vbuz1 + // [1799] rom_get_release::$2 = ~ rom_get_release::release#3 -- vbuz1=_bnot_vbuz1 lda.z rom_get_release__2 eor #$ff sta.z rom_get_release__2 // release = ~release + 1 - // [1786] rom_get_release::release#0 = rom_get_release::$2 + 1 -- vbuz1=vbuz1_plus_1 + // [1800] rom_get_release::release#0 = rom_get_release::$2 + 1 -- vbuz1=vbuz1_plus_1 inc.z release - // [1787] phi from rom_get_release rom_get_release::@2 to rom_get_release::@1 [phi:rom_get_release/rom_get_release::@2->rom_get_release::@1] - // [1787] phi rom_get_release::return#0 = rom_get_release::release#3 [phi:rom_get_release/rom_get_release::@2->rom_get_release::@1#0] -- register_copy + // [1801] phi from rom_get_release rom_get_release::@2 to rom_get_release::@1 [phi:rom_get_release/rom_get_release::@2->rom_get_release::@1] + // [1801] phi rom_get_release::return#0 = rom_get_release::release#3 [phi:rom_get_release/rom_get_release::@2->rom_get_release::@1#0] -- register_copy // rom_get_release::@1 __b1: // rom_get_release::@return // } - // [1788] return + // [1802] return rts } // rom_get_prefix @@ -12342,46 +12466,46 @@ rom_get_release: { // __mem() char rom_get_prefix(__mem() char release) rom_get_prefix: { // if(release == 0xFF) - // [1790] if(rom_get_prefix::release#2!=$ff) goto rom_get_prefix::@1 -- vbum1_neq_vbuc1_then_la1 + // [1804] if(rom_get_prefix::release#2!=$ff) goto rom_get_prefix::@1 -- vbum1_neq_vbuc1_then_la1 lda #$ff cmp release bne __b3 - // [1791] phi from rom_get_prefix to rom_get_prefix::@3 [phi:rom_get_prefix->rom_get_prefix::@3] + // [1805] phi from rom_get_prefix to rom_get_prefix::@3 [phi:rom_get_prefix->rom_get_prefix::@3] // rom_get_prefix::@3 - // [1792] phi from rom_get_prefix::@3 to rom_get_prefix::@1 [phi:rom_get_prefix::@3->rom_get_prefix::@1] - // [1792] phi rom_get_prefix::prefix#4 = 'p' [phi:rom_get_prefix::@3->rom_get_prefix::@1#0] -- vbum1=vbuc1 + // [1806] phi from rom_get_prefix::@3 to rom_get_prefix::@1 [phi:rom_get_prefix::@3->rom_get_prefix::@1] + // [1806] phi rom_get_prefix::prefix#4 = 'p' [phi:rom_get_prefix::@3->rom_get_prefix::@1#0] -- vbum1=vbuc1 lda #'p' sta prefix jmp __b1 - // [1792] phi from rom_get_prefix to rom_get_prefix::@1 [phi:rom_get_prefix->rom_get_prefix::@1] + // [1806] phi from rom_get_prefix to rom_get_prefix::@1 [phi:rom_get_prefix->rom_get_prefix::@1] __b3: - // [1792] phi rom_get_prefix::prefix#4 = 'r' [phi:rom_get_prefix->rom_get_prefix::@1#0] -- vbum1=vbuc1 + // [1806] phi rom_get_prefix::prefix#4 = 'r' [phi:rom_get_prefix->rom_get_prefix::@1#0] -- vbum1=vbuc1 lda #'r' sta prefix // rom_get_prefix::@1 __b1: // release & 0x80 - // [1793] rom_get_prefix::$2 = rom_get_prefix::release#2 & $80 -- vbum1=vbum1_band_vbuc1 + // [1807] rom_get_prefix::$2 = rom_get_prefix::release#2 & $80 -- vbum1=vbum1_band_vbuc1 lda #$80 and rom_get_prefix__2 sta rom_get_prefix__2 // if(release & 0x80) - // [1794] if(0==rom_get_prefix::$2) goto rom_get_prefix::@4 -- 0_eq_vbum1_then_la1 + // [1808] if(0==rom_get_prefix::$2) goto rom_get_prefix::@4 -- 0_eq_vbum1_then_la1 beq __b2 - // [1796] phi from rom_get_prefix::@1 to rom_get_prefix::@2 [phi:rom_get_prefix::@1->rom_get_prefix::@2] - // [1796] phi rom_get_prefix::return#0 = 'p' [phi:rom_get_prefix::@1->rom_get_prefix::@2#0] -- vbum1=vbuc1 + // [1810] phi from rom_get_prefix::@1 to rom_get_prefix::@2 [phi:rom_get_prefix::@1->rom_get_prefix::@2] + // [1810] phi rom_get_prefix::return#0 = 'p' [phi:rom_get_prefix::@1->rom_get_prefix::@2#0] -- vbum1=vbuc1 lda #'p' sta return rts - // [1795] phi from rom_get_prefix::@1 to rom_get_prefix::@4 [phi:rom_get_prefix::@1->rom_get_prefix::@4] + // [1809] phi from rom_get_prefix::@1 to rom_get_prefix::@4 [phi:rom_get_prefix::@1->rom_get_prefix::@4] // rom_get_prefix::@4 - // [1796] phi from rom_get_prefix::@4 to rom_get_prefix::@2 [phi:rom_get_prefix::@4->rom_get_prefix::@2] - // [1796] phi rom_get_prefix::return#0 = rom_get_prefix::prefix#4 [phi:rom_get_prefix::@4->rom_get_prefix::@2#0] -- register_copy + // [1810] phi from rom_get_prefix::@4 to rom_get_prefix::@2 [phi:rom_get_prefix::@4->rom_get_prefix::@2] + // [1810] phi rom_get_prefix::return#0 = rom_get_prefix::prefix#4 [phi:rom_get_prefix::@4->rom_get_prefix::@2#0] -- register_copy // rom_get_prefix::@2 __b2: // rom_get_prefix::@return // } - // [1797] return + // [1811] return rts .segment Data .label rom_get_prefix__2 = main.check_status_smc5_main__0 @@ -12393,57 +12517,57 @@ rom_get_prefix: { } .segment Code // rom_get_version_text -// void rom_get_version_text(__zp($b5) char *release_info, __mem() char prefix, __zp($dd) char release, __zp($4e) char *github) +// void rom_get_version_text(__zp($5d) char *release_info, __mem() char prefix, __zp($df) char release, __zp($d5) char *github) rom_get_version_text: { - .label release_info = $b5 - .label release = $dd - .label github = $4e + .label release_info = $5d + .label release = $df + .label github = $d5 // sprintf(release_info, "%c%u %s", prefix, release, github) - // [1799] snprintf_init::s#8 = rom_get_version_text::release_info#2 - // [1800] call snprintf_init - // [1123] phi from rom_get_version_text to snprintf_init [phi:rom_get_version_text->snprintf_init] - // [1123] phi snprintf_init::s#26 = snprintf_init::s#8 [phi:rom_get_version_text->snprintf_init#0] -- register_copy + // [1813] snprintf_init::s#8 = rom_get_version_text::release_info#2 + // [1814] call snprintf_init + // [1133] phi from rom_get_version_text to snprintf_init [phi:rom_get_version_text->snprintf_init] + // [1133] phi snprintf_init::s#26 = snprintf_init::s#8 [phi:rom_get_version_text->snprintf_init#0] -- register_copy jsr snprintf_init // rom_get_version_text::@1 // sprintf(release_info, "%c%u %s", prefix, release, github) - // [1801] stackpush(char) = rom_get_version_text::prefix#2 -- _stackpushbyte_=vbum1 + // [1815] stackpush(char) = rom_get_version_text::prefix#2 -- _stackpushbyte_=vbum1 lda prefix pha - // [1802] callexecute snputc -- call_vprc1 + // [1816] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla - // [1804] printf_uchar::uvalue#7 = rom_get_version_text::release#2 -- vbuz1=vbuz2 + // [1818] printf_uchar::uvalue#7 = rom_get_version_text::release#2 -- vbuz1=vbuz2 lda.z release sta.z printf_uchar.uvalue - // [1805] call printf_uchar - // [1197] phi from rom_get_version_text::@1 to printf_uchar [phi:rom_get_version_text::@1->printf_uchar] - // [1197] phi printf_uchar::format_zero_padding#14 = 0 [phi:rom_get_version_text::@1->printf_uchar#0] -- vbuz1=vbuc1 + // [1819] call printf_uchar + // [1207] phi from rom_get_version_text::@1 to printf_uchar [phi:rom_get_version_text::@1->printf_uchar] + // [1207] phi printf_uchar::format_zero_padding#14 = 0 [phi:rom_get_version_text::@1->printf_uchar#0] -- vbuz1=vbuc1 lda #0 sta.z printf_uchar.format_zero_padding - // [1197] phi printf_uchar::format_min_length#14 = 0 [phi:rom_get_version_text::@1->printf_uchar#1] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_min_length#14 = 0 [phi:rom_get_version_text::@1->printf_uchar#1] -- vbuz1=vbuc1 sta.z printf_uchar.format_min_length - // [1197] phi printf_uchar::putc#14 = &snputc [phi:rom_get_version_text::@1->printf_uchar#2] -- pprz1=pprc1 + // [1207] phi printf_uchar::putc#14 = &snputc [phi:rom_get_version_text::@1->printf_uchar#2] -- pprz1=pprc1 lda #snputc sta.z printf_uchar.putc+1 - // [1197] phi printf_uchar::format_radix#14 = DECIMAL [phi:rom_get_version_text::@1->printf_uchar#3] -- vbuz1=vbuc1 + // [1207] phi printf_uchar::format_radix#14 = DECIMAL [phi:rom_get_version_text::@1->printf_uchar#3] -- vbuz1=vbuc1 lda #DECIMAL sta.z printf_uchar.format_radix - // [1197] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#7 [phi:rom_get_version_text::@1->printf_uchar#4] -- register_copy + // [1207] phi printf_uchar::uvalue#14 = printf_uchar::uvalue#7 [phi:rom_get_version_text::@1->printf_uchar#4] -- register_copy jsr printf_uchar - // [1806] phi from rom_get_version_text::@1 to rom_get_version_text::@2 [phi:rom_get_version_text::@1->rom_get_version_text::@2] + // [1820] phi from rom_get_version_text::@1 to rom_get_version_text::@2 [phi:rom_get_version_text::@1->rom_get_version_text::@2] // rom_get_version_text::@2 // sprintf(release_info, "%c%u %s", prefix, release, github) - // [1807] call printf_str - // [1128] phi from rom_get_version_text::@2 to printf_str [phi:rom_get_version_text::@2->printf_str] - // [1128] phi printf_str::putc#71 = &snputc [phi:rom_get_version_text::@2->printf_str#0] -- pprz1=pprc1 + // [1821] call printf_str + // [1138] phi from rom_get_version_text::@2 to printf_str [phi:rom_get_version_text::@2->printf_str] + // [1138] phi printf_str::putc#71 = &snputc [phi:rom_get_version_text::@2->printf_str#0] -- pprz1=pprc1 lda #snputc sta.z printf_str.putc+1 - // [1128] phi printf_str::s#71 = s [phi:rom_get_version_text::@2->printf_str#1] -- pbuz1=pbuc1 + // [1138] phi printf_str::s#71 = s [phi:rom_get_version_text::@2->printf_str#1] -- pbuz1=pbuc1 lda #s @@ -12451,37 +12575,37 @@ rom_get_version_text: { jsr printf_str // rom_get_version_text::@3 // sprintf(release_info, "%c%u %s", prefix, release, github) - // [1808] printf_string::str#12 = rom_get_version_text::github#2 -- pbuz1=pbuz2 + // [1822] printf_string::str#13 = rom_get_version_text::github#2 -- pbuz1=pbuz2 lda.z github sta.z printf_string.str lda.z github+1 sta.z printf_string.str+1 - // [1809] call printf_string - // [1137] phi from rom_get_version_text::@3 to printf_string [phi:rom_get_version_text::@3->printf_string] - // [1137] phi printf_string::putc#22 = &snputc [phi:rom_get_version_text::@3->printf_string#0] -- pprz1=pprc1 + // [1823] call printf_string + // [1147] phi from rom_get_version_text::@3 to printf_string [phi:rom_get_version_text::@3->printf_string] + // [1147] phi printf_string::putc#24 = &snputc [phi:rom_get_version_text::@3->printf_string#0] -- pprz1=pprc1 lda #snputc sta.z printf_string.putc+1 - // [1137] phi printf_string::str#22 = printf_string::str#12 [phi:rom_get_version_text::@3->printf_string#1] -- register_copy - // [1137] phi printf_string::format_justify_left#22 = 0 [phi:rom_get_version_text::@3->printf_string#2] -- vbuz1=vbuc1 + // [1147] phi printf_string::str#24 = printf_string::str#13 [phi:rom_get_version_text::@3->printf_string#1] -- register_copy + // [1147] phi printf_string::format_justify_left#24 = 0 [phi:rom_get_version_text::@3->printf_string#2] -- vbuz1=vbuc1 lda #0 sta.z printf_string.format_justify_left - // [1137] phi printf_string::format_min_length#22 = 0 [phi:rom_get_version_text::@3->printf_string#3] -- vbuz1=vbuc1 + // [1147] phi printf_string::format_min_length#24 = 0 [phi:rom_get_version_text::@3->printf_string#3] -- vbuz1=vbuc1 sta.z printf_string.format_min_length jsr printf_string // rom_get_version_text::@4 // sprintf(release_info, "%c%u %s", prefix, release, github) - // [1810] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 + // [1824] stackpush(char) = 0 -- _stackpushbyte_=vbuc1 lda #0 pha - // [1811] callexecute snputc -- call_vprc1 + // [1825] callexecute snputc -- call_vprc1 jsr snputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // rom_get_version_text::@return // } - // [1813] return + // [1827] return rts .segment Data .label prefix = rom_get_prefix.return @@ -12496,149 +12620,149 @@ rom_get_version_text: { * @param tc Fore color * @param bc Back color */ -// void display_info_led(__zp($bc) char x, __zp($c6) char y, __zp($de) char tc, char bc) +// void display_info_led(__zp($bc) char x, __zp($c6) char y, __zp($e0) char tc, char bc) display_info_led: { - .label tc = $de + .label tc = $e0 .label y = $c6 .label x = $bc // textcolor(tc) - // [1815] textcolor::color#13 = display_info_led::tc#4 -- vbuz1=vbuz2 + // [1829] textcolor::color#13 = display_info_led::tc#4 -- vbuz1=vbuz2 lda.z tc sta.z textcolor.color - // [1816] call textcolor - // [726] phi from display_info_led to textcolor [phi:display_info_led->textcolor] - // [726] phi textcolor::color#18 = textcolor::color#13 [phi:display_info_led->textcolor#0] -- register_copy + // [1830] call textcolor + // [733] phi from display_info_led to textcolor [phi:display_info_led->textcolor] + // [733] phi textcolor::color#18 = textcolor::color#13 [phi:display_info_led->textcolor#0] -- register_copy jsr textcolor - // [1817] phi from display_info_led to display_info_led::@1 [phi:display_info_led->display_info_led::@1] + // [1831] phi from display_info_led to display_info_led::@1 [phi:display_info_led->display_info_led::@1] // display_info_led::@1 // bgcolor(bc) - // [1818] call bgcolor - // [731] phi from display_info_led::@1 to bgcolor [phi:display_info_led::@1->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_info_led::@1->bgcolor#0] -- vbuz1=vbuc1 + // [1832] call bgcolor + // [738] phi from display_info_led::@1 to bgcolor [phi:display_info_led::@1->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_info_led::@1->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor // display_info_led::@2 // cputcxy(x, y, VERA_CHR_UR) - // [1819] cputcxy::x#11 = display_info_led::x#4 - // [1820] cputcxy::y#11 = display_info_led::y#4 - // [1821] call cputcxy - // [2054] phi from display_info_led::@2 to cputcxy [phi:display_info_led::@2->cputcxy] - // [2054] phi cputcxy::c#15 = $7c [phi:display_info_led::@2->cputcxy#0] -- vbuz1=vbuc1 + // [1833] cputcxy::x#11 = display_info_led::x#4 + // [1834] cputcxy::y#11 = display_info_led::y#4 + // [1835] call cputcxy + // [2068] phi from display_info_led::@2 to cputcxy [phi:display_info_led::@2->cputcxy] + // [2068] phi cputcxy::c#15 = $7c [phi:display_info_led::@2->cputcxy#0] -- vbuz1=vbuc1 lda #$7c sta.z cputcxy.c - // [2054] phi cputcxy::y#15 = cputcxy::y#11 [phi:display_info_led::@2->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#11 [phi:display_info_led::@2->cputcxy#2] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#11 [phi:display_info_led::@2->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#11 [phi:display_info_led::@2->cputcxy#2] -- register_copy jsr cputcxy - // [1822] phi from display_info_led::@2 to display_info_led::@3 [phi:display_info_led::@2->display_info_led::@3] + // [1836] phi from display_info_led::@2 to display_info_led::@3 [phi:display_info_led::@2->display_info_led::@3] // display_info_led::@3 // textcolor(WHITE) - // [1823] call textcolor - // [726] phi from display_info_led::@3 to textcolor [phi:display_info_led::@3->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:display_info_led::@3->textcolor#0] -- vbuz1=vbuc1 + // [1837] call textcolor + // [733] phi from display_info_led::@3 to textcolor [phi:display_info_led::@3->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:display_info_led::@3->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor // display_info_led::@return // } - // [1824] return + // [1838] return rts } // printf_uint // Print an unsigned int using a specific format -// void printf_uint(__zp($5a) void (*putc)(char), __zp($2e) unsigned int uvalue, __zp($37) char format_min_length, char format_justify_left, char format_sign_always, __zp($e0) char format_zero_padding, char format_upper_case, __zp($de) char format_radix) +// void printf_uint(__zp($5b) void (*putc)(char), __zp($2e) unsigned int uvalue, __zp($36) char format_min_length, char format_justify_left, char format_sign_always, __zp($e2) char format_zero_padding, char format_upper_case, __zp($e0) char format_radix) printf_uint: { .label uvalue = $2e - .label format_radix = $de - .label putc = $5a - .label format_min_length = $37 - .label format_zero_padding = $e0 + .label format_radix = $e0 + .label putc = $5b + .label format_min_length = $36 + .label format_zero_padding = $e2 // printf_uint::@1 // printf_buffer.sign = format.sign_always?'+':0 - // [1826] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2 + // [1840] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2 // Handle any sign lda #0 sta printf_buffer // utoa(uvalue, printf_buffer.digits, format.radix) - // [1827] utoa::value#1 = printf_uint::uvalue#14 - // [1828] utoa::radix#0 = printf_uint::format_radix#14 - // [1829] call utoa + // [1841] utoa::value#1 = printf_uint::uvalue#14 + // [1842] utoa::radix#0 = printf_uint::format_radix#14 + // [1843] call utoa // Format number into buffer jsr utoa // printf_uint::@2 // printf_number_buffer(putc, printf_buffer, format) - // [1830] printf_number_buffer::putc#1 = printf_uint::putc#14 - // [1831] printf_number_buffer::buffer_sign#1 = *((char *)&printf_buffer) -- vbuz1=_deref_pbuc1 + // [1844] printf_number_buffer::putc#1 = printf_uint::putc#14 + // [1845] printf_number_buffer::buffer_sign#1 = *((char *)&printf_buffer) -- vbuz1=_deref_pbuc1 lda printf_buffer sta.z printf_number_buffer.buffer_sign - // [1832] printf_number_buffer::format_min_length#1 = printf_uint::format_min_length#14 - // [1833] printf_number_buffer::format_zero_padding#1 = printf_uint::format_zero_padding#14 - // [1834] call printf_number_buffer + // [1846] printf_number_buffer::format_min_length#1 = printf_uint::format_min_length#14 + // [1847] printf_number_buffer::format_zero_padding#1 = printf_uint::format_zero_padding#14 + // [1848] call printf_number_buffer // Print using format - // [2372] phi from printf_uint::@2 to printf_number_buffer [phi:printf_uint::@2->printf_number_buffer] - // [2372] phi printf_number_buffer::putc#10 = printf_number_buffer::putc#1 [phi:printf_uint::@2->printf_number_buffer#0] -- register_copy - // [2372] phi printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#1 [phi:printf_uint::@2->printf_number_buffer#1] -- register_copy - // [2372] phi printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#1 [phi:printf_uint::@2->printf_number_buffer#2] -- register_copy - // [2372] phi printf_number_buffer::format_min_length#3 = printf_number_buffer::format_min_length#1 [phi:printf_uint::@2->printf_number_buffer#3] -- register_copy + // [2386] phi from printf_uint::@2 to printf_number_buffer [phi:printf_uint::@2->printf_number_buffer] + // [2386] phi printf_number_buffer::putc#10 = printf_number_buffer::putc#1 [phi:printf_uint::@2->printf_number_buffer#0] -- register_copy + // [2386] phi printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#1 [phi:printf_uint::@2->printf_number_buffer#1] -- register_copy + // [2386] phi printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#1 [phi:printf_uint::@2->printf_number_buffer#2] -- register_copy + // [2386] phi printf_number_buffer::format_min_length#3 = printf_number_buffer::format_min_length#1 [phi:printf_uint::@2->printf_number_buffer#3] -- register_copy jsr printf_number_buffer // printf_uint::@return // } - // [1835] return + // [1849] return rts } // screenlayer // --- layer management in VERA --- -// void screenlayer(char layer, __zp($dc) char mapbase, __zp($da) char config) +// void screenlayer(char layer, __zp($de) char mapbase, __zp($dc) char config) screenlayer: { - .label screenlayer__1 = $dc - .label screenlayer__5 = $da - .label screenlayer__6 = $da - .label mapbase = $dc - .label config = $da - .label y = $d9 + .label screenlayer__1 = $de + .label screenlayer__5 = $dc + .label screenlayer__6 = $dc + .label mapbase = $de + .label config = $dc + .label y = $db // __mem char vera_dc_hscale_temp = *VERA_DC_HSCALE - // [1836] screenlayer::vera_dc_hscale_temp#0 = *VERA_DC_HSCALE -- vbum1=_deref_pbuc1 + // [1850] screenlayer::vera_dc_hscale_temp#0 = *VERA_DC_HSCALE -- vbum1=_deref_pbuc1 lda VERA_DC_HSCALE sta vera_dc_hscale_temp // __mem char vera_dc_vscale_temp = *VERA_DC_VSCALE - // [1837] screenlayer::vera_dc_vscale_temp#0 = *VERA_DC_VSCALE -- vbum1=_deref_pbuc1 + // [1851] screenlayer::vera_dc_vscale_temp#0 = *VERA_DC_VSCALE -- vbum1=_deref_pbuc1 lda VERA_DC_VSCALE sta vera_dc_vscale_temp // __conio.layer = 0 - // [1838] *((char *)&__conio+2) = 0 -- _deref_pbuc1=vbuc2 + // [1852] *((char *)&__conio+2) = 0 -- _deref_pbuc1=vbuc2 lda #0 sta __conio+2 // mapbase >> 7 - // [1839] screenlayer::$0 = screenlayer::mapbase#0 >> 7 -- vbum1=vbuz2_ror_7 + // [1853] screenlayer::$0 = screenlayer::mapbase#0 >> 7 -- vbum1=vbuz2_ror_7 lda.z mapbase rol rol and #1 sta screenlayer__0 // __conio.mapbase_bank = mapbase >> 7 - // [1840] *((char *)&__conio+5) = screenlayer::$0 -- _deref_pbuc1=vbum1 + // [1854] *((char *)&__conio+5) = screenlayer::$0 -- _deref_pbuc1=vbum1 sta __conio+5 // (mapbase)<<1 - // [1841] screenlayer::$1 = screenlayer::mapbase#0 << 1 -- vbuz1=vbuz1_rol_1 + // [1855] screenlayer::$1 = screenlayer::mapbase#0 << 1 -- vbuz1=vbuz1_rol_1 asl.z screenlayer__1 // MAKEWORD((mapbase)<<1,0) - // [1842] screenlayer::$2 = screenlayer::$1 w= 0 -- vwum1=vbuz2_word_vbuc1 + // [1856] screenlayer::$2 = screenlayer::$1 w= 0 -- vwum1=vbuz2_word_vbuc1 lda #0 ldy.z screenlayer__1 sty screenlayer__2+1 sta screenlayer__2 // __conio.mapbase_offset = MAKEWORD((mapbase)<<1,0) - // [1843] *((unsigned int *)&__conio+3) = screenlayer::$2 -- _deref_pwuc1=vwum1 + // [1857] *((unsigned int *)&__conio+3) = screenlayer::$2 -- _deref_pwuc1=vwum1 sta __conio+3 tya sta __conio+3+1 // config & VERA_LAYER_WIDTH_MASK - // [1844] screenlayer::$7 = screenlayer::config#0 & VERA_LAYER_WIDTH_MASK -- vbum1=vbuz2_band_vbuc1 + // [1858] screenlayer::$7 = screenlayer::config#0 & VERA_LAYER_WIDTH_MASK -- vbum1=vbuz2_band_vbuc1 lda #VERA_LAYER_WIDTH_MASK and.z config sta screenlayer__7 // (config & VERA_LAYER_WIDTH_MASK) >> 4 - // [1845] screenlayer::$8 = screenlayer::$7 >> 4 -- vbum1=vbum1_ror_4 + // [1859] screenlayer::$8 = screenlayer::$7 >> 4 -- vbum1=vbum1_ror_4 lda screenlayer__8 lsr lsr @@ -12646,17 +12770,17 @@ screenlayer: { lsr sta screenlayer__8 // __conio.mapwidth = VERA_LAYER_DIM[ (config & VERA_LAYER_WIDTH_MASK) >> 4] - // [1846] *((char *)&__conio+8) = screenlayer::VERA_LAYER_DIM[screenlayer::$8] -- _deref_pbuc1=pbuc2_derefidx_vbum1 + // [1860] *((char *)&__conio+8) = screenlayer::VERA_LAYER_DIM[screenlayer::$8] -- _deref_pbuc1=pbuc2_derefidx_vbum1 tay lda VERA_LAYER_DIM,y sta __conio+8 // config & VERA_LAYER_HEIGHT_MASK - // [1847] screenlayer::$5 = screenlayer::config#0 & VERA_LAYER_HEIGHT_MASK -- vbuz1=vbuz1_band_vbuc1 + // [1861] screenlayer::$5 = screenlayer::config#0 & VERA_LAYER_HEIGHT_MASK -- vbuz1=vbuz1_band_vbuc1 lda #VERA_LAYER_HEIGHT_MASK and.z screenlayer__5 sta.z screenlayer__5 // (config & VERA_LAYER_HEIGHT_MASK) >> 6 - // [1848] screenlayer::$6 = screenlayer::$5 >> 6 -- vbuz1=vbuz1_ror_6 + // [1862] screenlayer::$6 = screenlayer::$5 >> 6 -- vbuz1=vbuz1_ror_6 lda.z screenlayer__6 rol rol @@ -12664,14 +12788,14 @@ screenlayer: { and #3 sta.z screenlayer__6 // __conio.mapheight = VERA_LAYER_DIM[ (config & VERA_LAYER_HEIGHT_MASK) >> 6] - // [1849] *((char *)&__conio+9) = screenlayer::VERA_LAYER_DIM[screenlayer::$6] -- _deref_pbuc1=pbuc2_derefidx_vbuz1 + // [1863] *((char *)&__conio+9) = screenlayer::VERA_LAYER_DIM[screenlayer::$6] -- _deref_pbuc1=pbuc2_derefidx_vbuz1 tay lda VERA_LAYER_DIM,y sta __conio+9 // __conio.rowskip = VERA_LAYER_SKIP[(config & VERA_LAYER_WIDTH_MASK)>>4] - // [1850] screenlayer::$16 = screenlayer::$8 << 1 -- vbum1=vbum1_rol_1 + // [1864] screenlayer::$16 = screenlayer::$8 << 1 -- vbum1=vbum1_rol_1 asl screenlayer__16 - // [1851] *((unsigned int *)&__conio+$a) = screenlayer::VERA_LAYER_SKIP[screenlayer::$16] -- _deref_pwuc1=pwuc2_derefidx_vbum1 + // [1865] *((unsigned int *)&__conio+$a) = screenlayer::VERA_LAYER_SKIP[screenlayer::$16] -- _deref_pwuc1=pwuc2_derefidx_vbum1 // __conio.rowshift = ((config & VERA_LAYER_WIDTH_MASK)>>4)+6; ldy screenlayer__16 lda VERA_LAYER_SKIP,y @@ -12679,7 +12803,7 @@ screenlayer: { lda VERA_LAYER_SKIP+1,y sta __conio+$a+1 // vera_dc_hscale_temp == 0x80 - // [1852] screenlayer::$9 = screenlayer::vera_dc_hscale_temp#0 == $80 -- vbom1=vbum2_eq_vbuc1 + // [1866] screenlayer::$9 = screenlayer::vera_dc_hscale_temp#0 == $80 -- vbom1=vbum2_eq_vbuc1 lda vera_dc_hscale_temp eor #$80 beq !+ @@ -12688,8 +12812,8 @@ screenlayer: { eor #1 sta screenlayer__9 // 40 << (char)(vera_dc_hscale_temp == 0x80) - // [1853] screenlayer::$18 = (char)screenlayer::$9 - // [1854] screenlayer::$10 = $28 << screenlayer::$18 -- vbum1=vbuc1_rol_vbum1 + // [1867] screenlayer::$18 = (char)screenlayer::$9 + // [1868] screenlayer::$10 = $28 << screenlayer::$18 -- vbum1=vbuc1_rol_vbum1 lda #$28 ldy screenlayer__10 cpy #0 @@ -12701,14 +12825,14 @@ screenlayer: { !e: sta screenlayer__10 // (40 << (char)(vera_dc_hscale_temp == 0x80))-1 - // [1855] screenlayer::$11 = screenlayer::$10 - 1 -- vbum1=vbum1_minus_1 + // [1869] screenlayer::$11 = screenlayer::$10 - 1 -- vbum1=vbum1_minus_1 dec screenlayer__11 // __conio.width = (40 << (char)(vera_dc_hscale_temp == 0x80))-1 - // [1856] *((char *)&__conio+6) = screenlayer::$11 -- _deref_pbuc1=vbum1 + // [1870] *((char *)&__conio+6) = screenlayer::$11 -- _deref_pbuc1=vbum1 lda screenlayer__11 sta __conio+6 // vera_dc_vscale_temp == 0x80 - // [1857] screenlayer::$12 = screenlayer::vera_dc_vscale_temp#0 == $80 -- vbom1=vbum2_eq_vbuc1 + // [1871] screenlayer::$12 = screenlayer::vera_dc_vscale_temp#0 == $80 -- vbom1=vbum2_eq_vbuc1 lda vera_dc_vscale_temp eor #$80 beq !+ @@ -12717,8 +12841,8 @@ screenlayer: { eor #1 sta screenlayer__12 // 30 << (char)(vera_dc_vscale_temp == 0x80) - // [1858] screenlayer::$19 = (char)screenlayer::$12 - // [1859] screenlayer::$13 = $1e << screenlayer::$19 -- vbum1=vbuc1_rol_vbum1 + // [1872] screenlayer::$19 = (char)screenlayer::$12 + // [1873] screenlayer::$13 = $1e << screenlayer::$19 -- vbum1=vbuc1_rol_vbum1 lda #$1e ldy screenlayer__13 cpy #0 @@ -12730,49 +12854,49 @@ screenlayer: { !e: sta screenlayer__13 // (30 << (char)(vera_dc_vscale_temp == 0x80))-1 - // [1860] screenlayer::$14 = screenlayer::$13 - 1 -- vbum1=vbum1_minus_1 + // [1874] screenlayer::$14 = screenlayer::$13 - 1 -- vbum1=vbum1_minus_1 dec screenlayer__14 // __conio.height = (30 << (char)(vera_dc_vscale_temp == 0x80))-1 - // [1861] *((char *)&__conio+7) = screenlayer::$14 -- _deref_pbuc1=vbum1 + // [1875] *((char *)&__conio+7) = screenlayer::$14 -- _deref_pbuc1=vbum1 lda screenlayer__14 sta __conio+7 // unsigned int mapbase_offset = __conio.mapbase_offset - // [1862] screenlayer::mapbase_offset#0 = *((unsigned int *)&__conio+3) -- vwum1=_deref_pwuc1 + // [1876] screenlayer::mapbase_offset#0 = *((unsigned int *)&__conio+3) -- vwum1=_deref_pwuc1 lda __conio+3 sta mapbase_offset lda __conio+3+1 sta mapbase_offset+1 - // [1863] phi from screenlayer to screenlayer::@1 [phi:screenlayer->screenlayer::@1] - // [1863] phi screenlayer::mapbase_offset#2 = screenlayer::mapbase_offset#0 [phi:screenlayer->screenlayer::@1#0] -- register_copy - // [1863] phi screenlayer::y#2 = 0 [phi:screenlayer->screenlayer::@1#1] -- vbuz1=vbuc1 + // [1877] phi from screenlayer to screenlayer::@1 [phi:screenlayer->screenlayer::@1] + // [1877] phi screenlayer::mapbase_offset#2 = screenlayer::mapbase_offset#0 [phi:screenlayer->screenlayer::@1#0] -- register_copy + // [1877] phi screenlayer::y#2 = 0 [phi:screenlayer->screenlayer::@1#1] -- vbuz1=vbuc1 lda #0 sta.z y // screenlayer::@1 __b1: // for(register char y=0; y<=__conio.height; y++) - // [1864] if(screenlayer::y#2<=*((char *)&__conio+7)) goto screenlayer::@2 -- vbuz1_le__deref_pbuc1_then_la1 + // [1878] if(screenlayer::y#2<=*((char *)&__conio+7)) goto screenlayer::@2 -- vbuz1_le__deref_pbuc1_then_la1 lda __conio+7 cmp.z y bcs __b2 // screenlayer::@return // } - // [1865] return + // [1879] return rts // screenlayer::@2 __b2: // __conio.offsets[y] = mapbase_offset - // [1866] screenlayer::$17 = screenlayer::y#2 << 1 -- vbum1=vbuz2_rol_1 + // [1880] screenlayer::$17 = screenlayer::y#2 << 1 -- vbum1=vbuz2_rol_1 lda.z y asl sta screenlayer__17 - // [1867] ((unsigned int *)&__conio+$15)[screenlayer::$17] = screenlayer::mapbase_offset#2 -- pwuc1_derefidx_vbum1=vwum2 + // [1881] ((unsigned int *)&__conio+$15)[screenlayer::$17] = screenlayer::mapbase_offset#2 -- pwuc1_derefidx_vbum1=vwum2 tay lda mapbase_offset sta __conio+$15,y lda mapbase_offset+1 sta __conio+$15+1,y // mapbase_offset += __conio.rowskip - // [1868] screenlayer::mapbase_offset#1 = screenlayer::mapbase_offset#2 + *((unsigned int *)&__conio+$a) -- vwum1=vwum1_plus__deref_pwuc1 + // [1882] screenlayer::mapbase_offset#1 = screenlayer::mapbase_offset#2 + *((unsigned int *)&__conio+$a) -- vwum1=vwum1_plus__deref_pwuc1 clc lda mapbase_offset adc __conio+$a @@ -12781,11 +12905,11 @@ screenlayer: { adc __conio+$a+1 sta mapbase_offset+1 // for(register char y=0; y<=__conio.height; y++) - // [1869] screenlayer::y#1 = ++ screenlayer::y#2 -- vbuz1=_inc_vbuz1 + // [1883] screenlayer::y#1 = ++ screenlayer::y#2 -- vbuz1=_inc_vbuz1 inc.z y - // [1863] phi from screenlayer::@2 to screenlayer::@1 [phi:screenlayer::@2->screenlayer::@1] - // [1863] phi screenlayer::mapbase_offset#2 = screenlayer::mapbase_offset#1 [phi:screenlayer::@2->screenlayer::@1#0] -- register_copy - // [1863] phi screenlayer::y#2 = screenlayer::y#1 [phi:screenlayer::@2->screenlayer::@1#1] -- register_copy + // [1877] phi from screenlayer::@2 to screenlayer::@1 [phi:screenlayer::@2->screenlayer::@1] + // [1877] phi screenlayer::mapbase_offset#2 = screenlayer::mapbase_offset#1 [phi:screenlayer::@2->screenlayer::@1#0] -- register_copy + // [1877] phi screenlayer::y#2 = screenlayer::y#1 [phi:screenlayer::@2->screenlayer::@1#1] -- register_copy jmp __b1 .segment Data VERA_LAYER_DIM: .byte $1f, $3f, $7f, $ff @@ -12813,61 +12937,61 @@ screenlayer: { // Scroll the entire screen if the cursor is beyond the last line cscroll: { // if(__conio.cursor_y>__conio.height) - // [1870] if(*((char *)&__conio+1)<=*((char *)&__conio+7)) goto cscroll::@return -- _deref_pbuc1_le__deref_pbuc2_then_la1 + // [1884] if(*((char *)&__conio+1)<=*((char *)&__conio+7)) goto cscroll::@return -- _deref_pbuc1_le__deref_pbuc2_then_la1 lda __conio+7 cmp __conio+1 bcs __breturn // cscroll::@1 // if(__conio.scroll[__conio.layer]) - // [1871] if(0!=((char *)&__conio+$f)[*((char *)&__conio+2)]) goto cscroll::@4 -- 0_neq_pbuc1_derefidx_(_deref_pbuc2)_then_la1 + // [1885] if(0!=((char *)&__conio+$f)[*((char *)&__conio+2)]) goto cscroll::@4 -- 0_neq_pbuc1_derefidx_(_deref_pbuc2)_then_la1 ldy __conio+2 lda __conio+$f,y cmp #0 bne __b4 // cscroll::@2 // if(__conio.cursor_y>__conio.height) - // [1872] if(*((char *)&__conio+1)<=*((char *)&__conio+7)) goto cscroll::@return -- _deref_pbuc1_le__deref_pbuc2_then_la1 + // [1886] if(*((char *)&__conio+1)<=*((char *)&__conio+7)) goto cscroll::@return -- _deref_pbuc1_le__deref_pbuc2_then_la1 lda __conio+7 cmp __conio+1 bcs __breturn - // [1873] phi from cscroll::@2 to cscroll::@3 [phi:cscroll::@2->cscroll::@3] + // [1887] phi from cscroll::@2 to cscroll::@3 [phi:cscroll::@2->cscroll::@3] // cscroll::@3 // gotoxy(0,0) - // [1874] call gotoxy - // [744] phi from cscroll::@3 to gotoxy [phi:cscroll::@3->gotoxy] - // [744] phi gotoxy::y#30 = 0 [phi:cscroll::@3->gotoxy#0] -- vbuz1=vbuc1 + // [1888] call gotoxy + // [751] phi from cscroll::@3 to gotoxy [phi:cscroll::@3->gotoxy] + // [751] phi gotoxy::y#30 = 0 [phi:cscroll::@3->gotoxy#0] -- vbuz1=vbuc1 lda #0 sta.z gotoxy.y - // [744] phi gotoxy::x#30 = 0 [phi:cscroll::@3->gotoxy#1] -- vbuz1=vbuc1 + // [751] phi gotoxy::x#30 = 0 [phi:cscroll::@3->gotoxy#1] -- vbuz1=vbuc1 sta.z gotoxy.x jsr gotoxy // cscroll::@return __breturn: // } - // [1875] return + // [1889] return rts - // [1876] phi from cscroll::@1 to cscroll::@4 [phi:cscroll::@1->cscroll::@4] + // [1890] phi from cscroll::@1 to cscroll::@4 [phi:cscroll::@1->cscroll::@4] // cscroll::@4 __b4: // insertup(1) - // [1877] call insertup + // [1891] call insertup jsr insertup // cscroll::@5 // gotoxy( 0, __conio.height) - // [1878] gotoxy::y#3 = *((char *)&__conio+7) -- vbuz1=_deref_pbuc1 + // [1892] gotoxy::y#3 = *((char *)&__conio+7) -- vbuz1=_deref_pbuc1 lda __conio+7 sta.z gotoxy.y - // [1879] call gotoxy - // [744] phi from cscroll::@5 to gotoxy [phi:cscroll::@5->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#3 [phi:cscroll::@5->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = 0 [phi:cscroll::@5->gotoxy#1] -- vbuz1=vbuc1 + // [1893] call gotoxy + // [751] phi from cscroll::@5 to gotoxy [phi:cscroll::@5->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#3 [phi:cscroll::@5->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = 0 [phi:cscroll::@5->gotoxy#1] -- vbuz1=vbuc1 lda #0 sta.z gotoxy.x jsr gotoxy - // [1880] phi from cscroll::@5 to cscroll::@6 [phi:cscroll::@5->cscroll::@6] + // [1894] phi from cscroll::@5 to cscroll::@6 [phi:cscroll::@5->cscroll::@6] // cscroll::@6 // clearline() - // [1881] call clearline + // [1895] call clearline jsr clearline rts } @@ -12879,89 +13003,89 @@ cscroll: { scroll: { .const onoff = 0 // __conio.scroll[__conio.layer] = onoff - // [1882] ((char *)&__conio+$f)[*((char *)&__conio+2)] = scroll::onoff#0 -- pbuc1_derefidx_(_deref_pbuc2)=vbuc3 + // [1896] ((char *)&__conio+$f)[*((char *)&__conio+2)] = scroll::onoff#0 -- pbuc1_derefidx_(_deref_pbuc2)=vbuc3 lda #onoff ldy __conio+2 sta __conio+$f,y // scroll::@return // } - // [1883] return + // [1897] return rts } // clrscr // clears the screen and moves the cursor to the upper left-hand corner of the screen. clrscr: { - .label clrscr__2 = $d7 + .label clrscr__2 = $d9 // unsigned int line_text = __conio.mapbase_offset - // [1884] clrscr::line_text#0 = *((unsigned int *)&__conio+3) -- vwum1=_deref_pwuc1 + // [1898] clrscr::line_text#0 = *((unsigned int *)&__conio+3) -- vwum1=_deref_pwuc1 lda __conio+3 sta line_text lda __conio+3+1 sta line_text+1 // *VERA_CTRL &= ~VERA_ADDRSEL - // [1885] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [1899] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_ADDRSEL^$ff and VERA_CTRL sta VERA_CTRL // __conio.mapbase_bank | VERA_INC_1 - // [1886] clrscr::$0 = *((char *)&__conio+5) | VERA_INC_1 -- vbum1=_deref_pbuc1_bor_vbuc2 + // [1900] clrscr::$0 = *((char *)&__conio+5) | VERA_INC_1 -- vbum1=_deref_pbuc1_bor_vbuc2 lda #VERA_INC_1 ora __conio+5 sta clrscr__0 // *VERA_ADDRX_H = __conio.mapbase_bank | VERA_INC_1 - // [1887] *VERA_ADDRX_H = clrscr::$0 -- _deref_pbuc1=vbum1 + // [1901] *VERA_ADDRX_H = clrscr::$0 -- _deref_pbuc1=vbum1 sta VERA_ADDRX_H // unsigned char l = __conio.mapheight - // [1888] clrscr::l#0 = *((char *)&__conio+9) -- vbum1=_deref_pbuc1 + // [1902] clrscr::l#0 = *((char *)&__conio+9) -- vbum1=_deref_pbuc1 lda __conio+9 sta l - // [1889] phi from clrscr clrscr::@3 to clrscr::@1 [phi:clrscr/clrscr::@3->clrscr::@1] - // [1889] phi clrscr::l#4 = clrscr::l#0 [phi:clrscr/clrscr::@3->clrscr::@1#0] -- register_copy - // [1889] phi clrscr::ch#0 = clrscr::line_text#0 [phi:clrscr/clrscr::@3->clrscr::@1#1] -- register_copy + // [1903] phi from clrscr clrscr::@3 to clrscr::@1 [phi:clrscr/clrscr::@3->clrscr::@1] + // [1903] phi clrscr::l#4 = clrscr::l#0 [phi:clrscr/clrscr::@3->clrscr::@1#0] -- register_copy + // [1903] phi clrscr::ch#0 = clrscr::line_text#0 [phi:clrscr/clrscr::@3->clrscr::@1#1] -- register_copy // clrscr::@1 __b1: // BYTE0(ch) - // [1890] clrscr::$1 = byte0 clrscr::ch#0 -- vbum1=_byte0_vwum2 + // [1904] clrscr::$1 = byte0 clrscr::ch#0 -- vbum1=_byte0_vwum2 lda ch sta clrscr__1 // *VERA_ADDRX_L = BYTE0(ch) - // [1891] *VERA_ADDRX_L = clrscr::$1 -- _deref_pbuc1=vbum1 + // [1905] *VERA_ADDRX_L = clrscr::$1 -- _deref_pbuc1=vbum1 // Set address sta VERA_ADDRX_L // BYTE1(ch) - // [1892] clrscr::$2 = byte1 clrscr::ch#0 -- vbuz1=_byte1_vwum2 + // [1906] clrscr::$2 = byte1 clrscr::ch#0 -- vbuz1=_byte1_vwum2 lda ch+1 sta.z clrscr__2 // *VERA_ADDRX_M = BYTE1(ch) - // [1893] *VERA_ADDRX_M = clrscr::$2 -- _deref_pbuc1=vbuz1 + // [1907] *VERA_ADDRX_M = clrscr::$2 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_M // unsigned char c = __conio.mapwidth+1 - // [1894] clrscr::c#0 = *((char *)&__conio+8) + 1 -- vbum1=_deref_pbuc1_plus_1 + // [1908] clrscr::c#0 = *((char *)&__conio+8) + 1 -- vbum1=_deref_pbuc1_plus_1 lda __conio+8 inc sta c - // [1895] phi from clrscr::@1 clrscr::@2 to clrscr::@2 [phi:clrscr::@1/clrscr::@2->clrscr::@2] - // [1895] phi clrscr::c#2 = clrscr::c#0 [phi:clrscr::@1/clrscr::@2->clrscr::@2#0] -- register_copy + // [1909] phi from clrscr::@1 clrscr::@2 to clrscr::@2 [phi:clrscr::@1/clrscr::@2->clrscr::@2] + // [1909] phi clrscr::c#2 = clrscr::c#0 [phi:clrscr::@1/clrscr::@2->clrscr::@2#0] -- register_copy // clrscr::@2 __b2: // *VERA_DATA0 = ' ' - // [1896] *VERA_DATA0 = ' ' -- _deref_pbuc1=vbuc2 + // [1910] *VERA_DATA0 = ' ' -- _deref_pbuc1=vbuc2 lda #' ' sta VERA_DATA0 // *VERA_DATA0 = __conio.color - // [1897] *VERA_DATA0 = *((char *)&__conio+$d) -- _deref_pbuc1=_deref_pbuc2 + // [1911] *VERA_DATA0 = *((char *)&__conio+$d) -- _deref_pbuc1=_deref_pbuc2 lda __conio+$d sta VERA_DATA0 // c--; - // [1898] clrscr::c#1 = -- clrscr::c#2 -- vbum1=_dec_vbum1 + // [1912] clrscr::c#1 = -- clrscr::c#2 -- vbum1=_dec_vbum1 dec c // while(c) - // [1899] if(0!=clrscr::c#1) goto clrscr::@2 -- 0_neq_vbum1_then_la1 + // [1913] if(0!=clrscr::c#1) goto clrscr::@2 -- 0_neq_vbum1_then_la1 lda c bne __b2 // clrscr::@3 // line_text += __conio.rowskip - // [1900] clrscr::line_text#1 = clrscr::ch#0 + *((unsigned int *)&__conio+$a) -- vwum1=vwum1_plus__deref_pwuc1 + // [1914] clrscr::line_text#1 = clrscr::ch#0 + *((unsigned int *)&__conio+$a) -- vwum1=vwum1_plus__deref_pwuc1 clc lda line_text adc __conio+$a @@ -12970,29 +13094,29 @@ clrscr: { adc __conio+$a+1 sta line_text+1 // l--; - // [1901] clrscr::l#1 = -- clrscr::l#4 -- vbum1=_dec_vbum1 + // [1915] clrscr::l#1 = -- clrscr::l#4 -- vbum1=_dec_vbum1 dec l // while(l) - // [1902] if(0!=clrscr::l#1) goto clrscr::@1 -- 0_neq_vbum1_then_la1 + // [1916] if(0!=clrscr::l#1) goto clrscr::@1 -- 0_neq_vbum1_then_la1 lda l bne __b1 // clrscr::@4 // __conio.cursor_x = 0 - // [1903] *((char *)&__conio) = 0 -- _deref_pbuc1=vbuc2 + // [1917] *((char *)&__conio) = 0 -- _deref_pbuc1=vbuc2 lda #0 sta __conio // __conio.cursor_y = 0 - // [1904] *((char *)&__conio+1) = 0 -- _deref_pbuc1=vbuc2 + // [1918] *((char *)&__conio+1) = 0 -- _deref_pbuc1=vbuc2 sta __conio+1 // __conio.offset = __conio.mapbase_offset - // [1905] *((unsigned int *)&__conio+$13) = *((unsigned int *)&__conio+3) -- _deref_pwuc1=_deref_pwuc2 + // [1919] *((unsigned int *)&__conio+$13) = *((unsigned int *)&__conio+3) -- _deref_pwuc1=_deref_pwuc2 lda __conio+3 sta __conio+$13 lda __conio+3+1 sta __conio+$13+1 // clrscr::@return // } - // [1906] return + // [1920] return rts .segment Data .label clrscr__0 = display_frame.w @@ -13016,77 +13140,77 @@ clrscr: { * @param x1 Right down X position, counting from 0. * @param y1 Right down Y position, counting from 0. */ -// void display_frame(char x0, char y0, __zp($61) char x1, __zp($68) char y1) +// void display_frame(char x0, char y0, __zp($3c) char x1, __zp($68) char y1) display_frame: { .label x = $69 .label y = $52 .label mask = $64 .label c = $cb - .label x_1 = $b1 + .label x_1 = $b3 .label y_1 = $62 - .label x1 = $61 + .label x1 = $3c .label y1 = $68 // unsigned char w = x1 - x0 - // [1908] display_frame::w#0 = display_frame::x1#16 - display_frame::x#0 -- vbum1=vbuz2_minus_vbuz3 + // [1922] display_frame::w#0 = display_frame::x1#16 - display_frame::x#0 -- vbum1=vbuz2_minus_vbuz3 lda.z x1 sec sbc.z x sta w // unsigned char h = y1 - y0 - // [1909] display_frame::h#0 = display_frame::y1#16 - display_frame::y#0 -- vbum1=vbuz2_minus_vbuz3 + // [1923] display_frame::h#0 = display_frame::y1#16 - display_frame::y#0 -- vbum1=vbuz2_minus_vbuz3 lda.z y1 sec sbc.z y sta h // unsigned char mask = display_frame_maskxy(x, y) - // [1910] display_frame_maskxy::x#0 = display_frame::x#0 -- vbum1=vbuz2 + // [1924] display_frame_maskxy::x#0 = display_frame::x#0 -- vbum1=vbuz2 lda.z x sta display_frame_maskxy.x - // [1911] display_frame_maskxy::y#0 = display_frame::y#0 -- vbuz1=vbuz2 + // [1925] display_frame_maskxy::y#0 = display_frame::y#0 -- vbuz1=vbuz2 lda.z y sta.z display_frame_maskxy.y - // [1912] call display_frame_maskxy - // [2567] phi from display_frame to display_frame_maskxy [phi:display_frame->display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#0 [phi:display_frame->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#0 [phi:display_frame->display_frame_maskxy#1] -- register_copy + // [1926] call display_frame_maskxy + // [2581] phi from display_frame to display_frame_maskxy [phi:display_frame->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#0 [phi:display_frame->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#0 [phi:display_frame->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // unsigned char mask = display_frame_maskxy(x, y) - // [1913] display_frame_maskxy::return#13 = display_frame_maskxy::return#12 + // [1927] display_frame_maskxy::return#13 = display_frame_maskxy::return#12 // display_frame::@13 - // [1914] display_frame::mask#0 = display_frame_maskxy::return#13 + // [1928] display_frame::mask#0 = display_frame_maskxy::return#13 // mask |= 0b0110 - // [1915] display_frame::mask#1 = display_frame::mask#0 | 6 -- vbuz1=vbuz1_bor_vbuc1 + // [1929] display_frame::mask#1 = display_frame::mask#0 | 6 -- vbuz1=vbuz1_bor_vbuc1 lda #6 ora.z mask sta.z mask // unsigned char c = display_frame_char(mask) - // [1916] display_frame_char::mask#0 = display_frame::mask#1 - // [1917] call display_frame_char + // [1930] display_frame_char::mask#0 = display_frame::mask#1 + // [1931] call display_frame_char // Add a corner. - // [2593] phi from display_frame::@13 to display_frame_char [phi:display_frame::@13->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#0 [phi:display_frame::@13->display_frame_char#0] -- register_copy + // [2607] phi from display_frame::@13 to display_frame_char [phi:display_frame::@13->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#0 [phi:display_frame::@13->display_frame_char#0] -- register_copy jsr display_frame_char // unsigned char c = display_frame_char(mask) - // [1918] display_frame_char::return#13 = display_frame_char::return#12 + // [1932] display_frame_char::return#13 = display_frame_char::return#12 // display_frame::@14 - // [1919] display_frame::c#0 = display_frame_char::return#13 + // [1933] display_frame::c#0 = display_frame_char::return#13 // cputcxy(x, y, c) - // [1920] cputcxy::x#0 = display_frame::x#0 -- vbuz1=vbuz2 + // [1934] cputcxy::x#0 = display_frame::x#0 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [1921] cputcxy::y#0 = display_frame::y#0 -- vbuz1=vbuz2 + // [1935] cputcxy::y#0 = display_frame::y#0 -- vbuz1=vbuz2 lda.z y sta.z cputcxy.y - // [1922] cputcxy::c#0 = display_frame::c#0 - // [1923] call cputcxy - // [2054] phi from display_frame::@14 to cputcxy [phi:display_frame::@14->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#0 [phi:display_frame::@14->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#0 [phi:display_frame::@14->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#0 [phi:display_frame::@14->cputcxy#2] -- register_copy + // [1936] cputcxy::c#0 = display_frame::c#0 + // [1937] call cputcxy + // [2068] phi from display_frame::@14 to cputcxy [phi:display_frame::@14->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#0 [phi:display_frame::@14->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#0 [phi:display_frame::@14->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#0 [phi:display_frame::@14->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@15 // if(w>=2) - // [1924] if(display_frame::w#0<2) goto display_frame::@36 -- vbum1_lt_vbuc1_then_la1 + // [1938] if(display_frame::w#0<2) goto display_frame::@36 -- vbum1_lt_vbuc1_then_la1 lda w cmp #2 bcs !__b36+ @@ -13094,429 +13218,429 @@ display_frame: { !__b36: // display_frame::@2 // x++; - // [1925] display_frame::x#1 = ++ display_frame::x#0 -- vbuz1=_inc_vbuz2 + // [1939] display_frame::x#1 = ++ display_frame::x#0 -- vbuz1=_inc_vbuz2 lda.z x inc sta.z x_1 - // [1926] phi from display_frame::@2 display_frame::@21 to display_frame::@4 [phi:display_frame::@2/display_frame::@21->display_frame::@4] - // [1926] phi display_frame::x#10 = display_frame::x#1 [phi:display_frame::@2/display_frame::@21->display_frame::@4#0] -- register_copy + // [1940] phi from display_frame::@2 display_frame::@21 to display_frame::@4 [phi:display_frame::@2/display_frame::@21->display_frame::@4] + // [1940] phi display_frame::x#10 = display_frame::x#1 [phi:display_frame::@2/display_frame::@21->display_frame::@4#0] -- register_copy // display_frame::@4 __b4: // while(x < x1) - // [1927] if(display_frame::x#10display_frame::@1] - // [1928] phi display_frame::x#24 = display_frame::x#30 [phi:display_frame::@36/display_frame::@4->display_frame::@1#0] -- register_copy + // [1942] phi from display_frame::@36 display_frame::@4 to display_frame::@1 [phi:display_frame::@36/display_frame::@4->display_frame::@1] + // [1942] phi display_frame::x#24 = display_frame::x#30 [phi:display_frame::@36/display_frame::@4->display_frame::@1#0] -- register_copy // display_frame::@1 __b1: // display_frame_maskxy(x, y) - // [1929] display_frame_maskxy::x#1 = display_frame::x#24 -- vbum1=vbuz2 + // [1943] display_frame_maskxy::x#1 = display_frame::x#24 -- vbum1=vbuz2 lda.z x_1 sta display_frame_maskxy.x - // [1930] display_frame_maskxy::y#1 = display_frame::y#0 -- vbuz1=vbuz2 + // [1944] display_frame_maskxy::y#1 = display_frame::y#0 -- vbuz1=vbuz2 lda.z y sta.z display_frame_maskxy.y - // [1931] call display_frame_maskxy - // [2567] phi from display_frame::@1 to display_frame_maskxy [phi:display_frame::@1->display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#1 [phi:display_frame::@1->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#1 [phi:display_frame::@1->display_frame_maskxy#1] -- register_copy + // [1945] call display_frame_maskxy + // [2581] phi from display_frame::@1 to display_frame_maskxy [phi:display_frame::@1->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#1 [phi:display_frame::@1->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#1 [phi:display_frame::@1->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // display_frame_maskxy(x, y) - // [1932] display_frame_maskxy::return#14 = display_frame_maskxy::return#12 + // [1946] display_frame_maskxy::return#14 = display_frame_maskxy::return#12 // display_frame::@16 // mask = display_frame_maskxy(x, y) - // [1933] display_frame::mask#2 = display_frame_maskxy::return#14 + // [1947] display_frame::mask#2 = display_frame_maskxy::return#14 // mask |= 0b0011 - // [1934] display_frame::mask#3 = display_frame::mask#2 | 3 -- vbuz1=vbuz1_bor_vbuc1 + // [1948] display_frame::mask#3 = display_frame::mask#2 | 3 -- vbuz1=vbuz1_bor_vbuc1 lda #3 ora.z mask sta.z mask // display_frame_char(mask) - // [1935] display_frame_char::mask#1 = display_frame::mask#3 - // [1936] call display_frame_char - // [2593] phi from display_frame::@16 to display_frame_char [phi:display_frame::@16->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#1 [phi:display_frame::@16->display_frame_char#0] -- register_copy + // [1949] display_frame_char::mask#1 = display_frame::mask#3 + // [1950] call display_frame_char + // [2607] phi from display_frame::@16 to display_frame_char [phi:display_frame::@16->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#1 [phi:display_frame::@16->display_frame_char#0] -- register_copy jsr display_frame_char // display_frame_char(mask) - // [1937] display_frame_char::return#14 = display_frame_char::return#12 + // [1951] display_frame_char::return#14 = display_frame_char::return#12 // display_frame::@17 // c = display_frame_char(mask) - // [1938] display_frame::c#1 = display_frame_char::return#14 + // [1952] display_frame::c#1 = display_frame_char::return#14 // cputcxy(x, y, c) - // [1939] cputcxy::x#1 = display_frame::x#24 -- vbuz1=vbuz2 + // [1953] cputcxy::x#1 = display_frame::x#24 -- vbuz1=vbuz2 lda.z x_1 sta.z cputcxy.x - // [1940] cputcxy::y#1 = display_frame::y#0 -- vbuz1=vbuz2 + // [1954] cputcxy::y#1 = display_frame::y#0 -- vbuz1=vbuz2 lda.z y sta.z cputcxy.y - // [1941] cputcxy::c#1 = display_frame::c#1 - // [1942] call cputcxy - // [2054] phi from display_frame::@17 to cputcxy [phi:display_frame::@17->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#1 [phi:display_frame::@17->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#1 [phi:display_frame::@17->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#1 [phi:display_frame::@17->cputcxy#2] -- register_copy + // [1955] cputcxy::c#1 = display_frame::c#1 + // [1956] call cputcxy + // [2068] phi from display_frame::@17 to cputcxy [phi:display_frame::@17->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#1 [phi:display_frame::@17->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#1 [phi:display_frame::@17->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#1 [phi:display_frame::@17->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@18 // if(h>=2) - // [1943] if(display_frame::h#0<2) goto display_frame::@return -- vbum1_lt_vbuc1_then_la1 + // [1957] if(display_frame::h#0<2) goto display_frame::@return -- vbum1_lt_vbuc1_then_la1 lda h cmp #2 bcc __breturn // display_frame::@3 // y++; - // [1944] display_frame::y#1 = ++ display_frame::y#0 -- vbuz1=_inc_vbuz2 + // [1958] display_frame::y#1 = ++ display_frame::y#0 -- vbuz1=_inc_vbuz2 lda.z y inc sta.z y_1 - // [1945] phi from display_frame::@27 display_frame::@3 to display_frame::@6 [phi:display_frame::@27/display_frame::@3->display_frame::@6] - // [1945] phi display_frame::y#10 = display_frame::y#2 [phi:display_frame::@27/display_frame::@3->display_frame::@6#0] -- register_copy + // [1959] phi from display_frame::@27 display_frame::@3 to display_frame::@6 [phi:display_frame::@27/display_frame::@3->display_frame::@6] + // [1959] phi display_frame::y#10 = display_frame::y#2 [phi:display_frame::@27/display_frame::@3->display_frame::@6#0] -- register_copy // display_frame::@6 __b6: // while(y < y1) - // [1946] if(display_frame::y#10display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#5 [phi:display_frame::@8->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#5 [phi:display_frame::@8->display_frame_maskxy#1] -- register_copy + // [1963] call display_frame_maskxy + // [2581] phi from display_frame::@8 to display_frame_maskxy [phi:display_frame::@8->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#5 [phi:display_frame::@8->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#5 [phi:display_frame::@8->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // display_frame_maskxy(x, y) - // [1950] display_frame_maskxy::return#18 = display_frame_maskxy::return#12 + // [1964] display_frame_maskxy::return#18 = display_frame_maskxy::return#12 // display_frame::@28 // mask = display_frame_maskxy(x, y) - // [1951] display_frame::mask#10 = display_frame_maskxy::return#18 + // [1965] display_frame::mask#10 = display_frame_maskxy::return#18 // mask |= 0b1100 - // [1952] display_frame::mask#11 = display_frame::mask#10 | $c -- vbuz1=vbuz1_bor_vbuc1 + // [1966] display_frame::mask#11 = display_frame::mask#10 | $c -- vbuz1=vbuz1_bor_vbuc1 lda #$c ora.z mask sta.z mask // display_frame_char(mask) - // [1953] display_frame_char::mask#5 = display_frame::mask#11 - // [1954] call display_frame_char - // [2593] phi from display_frame::@28 to display_frame_char [phi:display_frame::@28->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#5 [phi:display_frame::@28->display_frame_char#0] -- register_copy + // [1967] display_frame_char::mask#5 = display_frame::mask#11 + // [1968] call display_frame_char + // [2607] phi from display_frame::@28 to display_frame_char [phi:display_frame::@28->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#5 [phi:display_frame::@28->display_frame_char#0] -- register_copy jsr display_frame_char // display_frame_char(mask) - // [1955] display_frame_char::return#18 = display_frame_char::return#12 + // [1969] display_frame_char::return#18 = display_frame_char::return#12 // display_frame::@29 // c = display_frame_char(mask) - // [1956] display_frame::c#5 = display_frame_char::return#18 + // [1970] display_frame::c#5 = display_frame_char::return#18 // cputcxy(x, y, c) - // [1957] cputcxy::x#5 = display_frame::x#0 -- vbuz1=vbuz2 + // [1971] cputcxy::x#5 = display_frame::x#0 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [1958] cputcxy::y#5 = display_frame::y#10 -- vbuz1=vbuz2 + // [1972] cputcxy::y#5 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z cputcxy.y - // [1959] cputcxy::c#5 = display_frame::c#5 - // [1960] call cputcxy - // [2054] phi from display_frame::@29 to cputcxy [phi:display_frame::@29->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#5 [phi:display_frame::@29->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#5 [phi:display_frame::@29->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#5 [phi:display_frame::@29->cputcxy#2] -- register_copy + // [1973] cputcxy::c#5 = display_frame::c#5 + // [1974] call cputcxy + // [2068] phi from display_frame::@29 to cputcxy [phi:display_frame::@29->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#5 [phi:display_frame::@29->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#5 [phi:display_frame::@29->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#5 [phi:display_frame::@29->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@30 // if(w>=2) - // [1961] if(display_frame::w#0<2) goto display_frame::@10 -- vbum1_lt_vbuc1_then_la1 + // [1975] if(display_frame::w#0<2) goto display_frame::@10 -- vbum1_lt_vbuc1_then_la1 lda w cmp #2 bcc __b10 // display_frame::@9 // x++; - // [1962] display_frame::x#4 = ++ display_frame::x#0 -- vbuz1=_inc_vbuz1 + // [1976] display_frame::x#4 = ++ display_frame::x#0 -- vbuz1=_inc_vbuz1 inc.z x - // [1963] phi from display_frame::@35 display_frame::@9 to display_frame::@11 [phi:display_frame::@35/display_frame::@9->display_frame::@11] - // [1963] phi display_frame::x#18 = display_frame::x#5 [phi:display_frame::@35/display_frame::@9->display_frame::@11#0] -- register_copy + // [1977] phi from display_frame::@35 display_frame::@9 to display_frame::@11 [phi:display_frame::@35/display_frame::@9->display_frame::@11] + // [1977] phi display_frame::x#18 = display_frame::x#5 [phi:display_frame::@35/display_frame::@9->display_frame::@11#0] -- register_copy // display_frame::@11 __b11: // while(x < x1) - // [1964] if(display_frame::x#18display_frame::@10] - // [1965] phi display_frame::x#15 = display_frame::x#18 [phi:display_frame::@11/display_frame::@30->display_frame::@10#0] -- register_copy + // [1979] phi from display_frame::@11 display_frame::@30 to display_frame::@10 [phi:display_frame::@11/display_frame::@30->display_frame::@10] + // [1979] phi display_frame::x#15 = display_frame::x#18 [phi:display_frame::@11/display_frame::@30->display_frame::@10#0] -- register_copy // display_frame::@10 __b10: // display_frame_maskxy(x, y) - // [1966] display_frame_maskxy::x#6 = display_frame::x#15 -- vbum1=vbuz2 + // [1980] display_frame_maskxy::x#6 = display_frame::x#15 -- vbum1=vbuz2 lda.z x sta display_frame_maskxy.x - // [1967] display_frame_maskxy::y#6 = display_frame::y#10 -- vbuz1=vbuz2 + // [1981] display_frame_maskxy::y#6 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z display_frame_maskxy.y - // [1968] call display_frame_maskxy - // [2567] phi from display_frame::@10 to display_frame_maskxy [phi:display_frame::@10->display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#6 [phi:display_frame::@10->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#6 [phi:display_frame::@10->display_frame_maskxy#1] -- register_copy + // [1982] call display_frame_maskxy + // [2581] phi from display_frame::@10 to display_frame_maskxy [phi:display_frame::@10->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#6 [phi:display_frame::@10->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#6 [phi:display_frame::@10->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // display_frame_maskxy(x, y) - // [1969] display_frame_maskxy::return#19 = display_frame_maskxy::return#12 + // [1983] display_frame_maskxy::return#19 = display_frame_maskxy::return#12 // display_frame::@31 // mask = display_frame_maskxy(x, y) - // [1970] display_frame::mask#12 = display_frame_maskxy::return#19 + // [1984] display_frame::mask#12 = display_frame_maskxy::return#19 // mask |= 0b1001 - // [1971] display_frame::mask#13 = display_frame::mask#12 | 9 -- vbuz1=vbuz1_bor_vbuc1 + // [1985] display_frame::mask#13 = display_frame::mask#12 | 9 -- vbuz1=vbuz1_bor_vbuc1 lda #9 ora.z mask sta.z mask // display_frame_char(mask) - // [1972] display_frame_char::mask#6 = display_frame::mask#13 - // [1973] call display_frame_char - // [2593] phi from display_frame::@31 to display_frame_char [phi:display_frame::@31->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#6 [phi:display_frame::@31->display_frame_char#0] -- register_copy + // [1986] display_frame_char::mask#6 = display_frame::mask#13 + // [1987] call display_frame_char + // [2607] phi from display_frame::@31 to display_frame_char [phi:display_frame::@31->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#6 [phi:display_frame::@31->display_frame_char#0] -- register_copy jsr display_frame_char // display_frame_char(mask) - // [1974] display_frame_char::return#19 = display_frame_char::return#12 + // [1988] display_frame_char::return#19 = display_frame_char::return#12 // display_frame::@32 // c = display_frame_char(mask) - // [1975] display_frame::c#6 = display_frame_char::return#19 + // [1989] display_frame::c#6 = display_frame_char::return#19 // cputcxy(x, y, c) - // [1976] cputcxy::x#6 = display_frame::x#15 -- vbuz1=vbuz2 + // [1990] cputcxy::x#6 = display_frame::x#15 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [1977] cputcxy::y#6 = display_frame::y#10 -- vbuz1=vbuz2 + // [1991] cputcxy::y#6 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z cputcxy.y - // [1978] cputcxy::c#6 = display_frame::c#6 - // [1979] call cputcxy - // [2054] phi from display_frame::@32 to cputcxy [phi:display_frame::@32->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#6 [phi:display_frame::@32->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#6 [phi:display_frame::@32->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#6 [phi:display_frame::@32->cputcxy#2] -- register_copy + // [1992] cputcxy::c#6 = display_frame::c#6 + // [1993] call cputcxy + // [2068] phi from display_frame::@32 to cputcxy [phi:display_frame::@32->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#6 [phi:display_frame::@32->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#6 [phi:display_frame::@32->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#6 [phi:display_frame::@32->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@return __breturn: // } - // [1980] return + // [1994] return rts // display_frame::@12 __b12: // display_frame_maskxy(x, y) - // [1981] display_frame_maskxy::x#7 = display_frame::x#18 -- vbum1=vbuz2 + // [1995] display_frame_maskxy::x#7 = display_frame::x#18 -- vbum1=vbuz2 lda.z x sta display_frame_maskxy.x - // [1982] display_frame_maskxy::y#7 = display_frame::y#10 -- vbuz1=vbuz2 + // [1996] display_frame_maskxy::y#7 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z display_frame_maskxy.y - // [1983] call display_frame_maskxy - // [2567] phi from display_frame::@12 to display_frame_maskxy [phi:display_frame::@12->display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#7 [phi:display_frame::@12->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#7 [phi:display_frame::@12->display_frame_maskxy#1] -- register_copy + // [1997] call display_frame_maskxy + // [2581] phi from display_frame::@12 to display_frame_maskxy [phi:display_frame::@12->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#7 [phi:display_frame::@12->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#7 [phi:display_frame::@12->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // display_frame_maskxy(x, y) - // [1984] display_frame_maskxy::return#20 = display_frame_maskxy::return#12 + // [1998] display_frame_maskxy::return#20 = display_frame_maskxy::return#12 // display_frame::@33 // mask = display_frame_maskxy(x, y) - // [1985] display_frame::mask#14 = display_frame_maskxy::return#20 + // [1999] display_frame::mask#14 = display_frame_maskxy::return#20 // mask |= 0b0101 - // [1986] display_frame::mask#15 = display_frame::mask#14 | 5 -- vbuz1=vbuz1_bor_vbuc1 + // [2000] display_frame::mask#15 = display_frame::mask#14 | 5 -- vbuz1=vbuz1_bor_vbuc1 lda #5 ora.z mask sta.z mask // display_frame_char(mask) - // [1987] display_frame_char::mask#7 = display_frame::mask#15 - // [1988] call display_frame_char - // [2593] phi from display_frame::@33 to display_frame_char [phi:display_frame::@33->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#7 [phi:display_frame::@33->display_frame_char#0] -- register_copy + // [2001] display_frame_char::mask#7 = display_frame::mask#15 + // [2002] call display_frame_char + // [2607] phi from display_frame::@33 to display_frame_char [phi:display_frame::@33->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#7 [phi:display_frame::@33->display_frame_char#0] -- register_copy jsr display_frame_char // display_frame_char(mask) - // [1989] display_frame_char::return#20 = display_frame_char::return#12 + // [2003] display_frame_char::return#20 = display_frame_char::return#12 // display_frame::@34 // c = display_frame_char(mask) - // [1990] display_frame::c#7 = display_frame_char::return#20 + // [2004] display_frame::c#7 = display_frame_char::return#20 // cputcxy(x, y, c) - // [1991] cputcxy::x#7 = display_frame::x#18 -- vbuz1=vbuz2 + // [2005] cputcxy::x#7 = display_frame::x#18 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [1992] cputcxy::y#7 = display_frame::y#10 -- vbuz1=vbuz2 + // [2006] cputcxy::y#7 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z cputcxy.y - // [1993] cputcxy::c#7 = display_frame::c#7 - // [1994] call cputcxy - // [2054] phi from display_frame::@34 to cputcxy [phi:display_frame::@34->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#7 [phi:display_frame::@34->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#7 [phi:display_frame::@34->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#7 [phi:display_frame::@34->cputcxy#2] -- register_copy + // [2007] cputcxy::c#7 = display_frame::c#7 + // [2008] call cputcxy + // [2068] phi from display_frame::@34 to cputcxy [phi:display_frame::@34->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#7 [phi:display_frame::@34->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#7 [phi:display_frame::@34->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#7 [phi:display_frame::@34->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@35 // x++; - // [1995] display_frame::x#5 = ++ display_frame::x#18 -- vbuz1=_inc_vbuz1 + // [2009] display_frame::x#5 = ++ display_frame::x#18 -- vbuz1=_inc_vbuz1 inc.z x jmp __b11 // display_frame::@7 __b7: // display_frame_maskxy(x0, y) - // [1996] display_frame_maskxy::x#3 = display_frame::x#0 -- vbum1=vbuz2 + // [2010] display_frame_maskxy::x#3 = display_frame::x#0 -- vbum1=vbuz2 lda.z x sta display_frame_maskxy.x - // [1997] display_frame_maskxy::y#3 = display_frame::y#10 -- vbuz1=vbuz2 + // [2011] display_frame_maskxy::y#3 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z display_frame_maskxy.y - // [1998] call display_frame_maskxy - // [2567] phi from display_frame::@7 to display_frame_maskxy [phi:display_frame::@7->display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#3 [phi:display_frame::@7->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#3 [phi:display_frame::@7->display_frame_maskxy#1] -- register_copy + // [2012] call display_frame_maskxy + // [2581] phi from display_frame::@7 to display_frame_maskxy [phi:display_frame::@7->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#3 [phi:display_frame::@7->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#3 [phi:display_frame::@7->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // display_frame_maskxy(x0, y) - // [1999] display_frame_maskxy::return#16 = display_frame_maskxy::return#12 + // [2013] display_frame_maskxy::return#16 = display_frame_maskxy::return#12 // display_frame::@22 // mask = display_frame_maskxy(x0, y) - // [2000] display_frame::mask#6 = display_frame_maskxy::return#16 + // [2014] display_frame::mask#6 = display_frame_maskxy::return#16 // mask |= 0b1010 - // [2001] display_frame::mask#7 = display_frame::mask#6 | $a -- vbuz1=vbuz1_bor_vbuc1 + // [2015] display_frame::mask#7 = display_frame::mask#6 | $a -- vbuz1=vbuz1_bor_vbuc1 lda #$a ora.z mask sta.z mask // display_frame_char(mask) - // [2002] display_frame_char::mask#3 = display_frame::mask#7 - // [2003] call display_frame_char - // [2593] phi from display_frame::@22 to display_frame_char [phi:display_frame::@22->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#3 [phi:display_frame::@22->display_frame_char#0] -- register_copy + // [2016] display_frame_char::mask#3 = display_frame::mask#7 + // [2017] call display_frame_char + // [2607] phi from display_frame::@22 to display_frame_char [phi:display_frame::@22->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#3 [phi:display_frame::@22->display_frame_char#0] -- register_copy jsr display_frame_char // display_frame_char(mask) - // [2004] display_frame_char::return#16 = display_frame_char::return#12 + // [2018] display_frame_char::return#16 = display_frame_char::return#12 // display_frame::@23 // c = display_frame_char(mask) - // [2005] display_frame::c#3 = display_frame_char::return#16 + // [2019] display_frame::c#3 = display_frame_char::return#16 // cputcxy(x0, y, c) - // [2006] cputcxy::x#3 = display_frame::x#0 -- vbuz1=vbuz2 + // [2020] cputcxy::x#3 = display_frame::x#0 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [2007] cputcxy::y#3 = display_frame::y#10 -- vbuz1=vbuz2 + // [2021] cputcxy::y#3 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z cputcxy.y - // [2008] cputcxy::c#3 = display_frame::c#3 - // [2009] call cputcxy - // [2054] phi from display_frame::@23 to cputcxy [phi:display_frame::@23->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#3 [phi:display_frame::@23->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#3 [phi:display_frame::@23->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#3 [phi:display_frame::@23->cputcxy#2] -- register_copy + // [2022] cputcxy::c#3 = display_frame::c#3 + // [2023] call cputcxy + // [2068] phi from display_frame::@23 to cputcxy [phi:display_frame::@23->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#3 [phi:display_frame::@23->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#3 [phi:display_frame::@23->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#3 [phi:display_frame::@23->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@24 // display_frame_maskxy(x1, y) - // [2010] display_frame_maskxy::x#4 = display_frame::x1#16 -- vbum1=vbuz2 + // [2024] display_frame_maskxy::x#4 = display_frame::x1#16 -- vbum1=vbuz2 lda.z x1 sta display_frame_maskxy.x - // [2011] display_frame_maskxy::y#4 = display_frame::y#10 -- vbuz1=vbuz2 + // [2025] display_frame_maskxy::y#4 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z display_frame_maskxy.y - // [2012] call display_frame_maskxy - // [2567] phi from display_frame::@24 to display_frame_maskxy [phi:display_frame::@24->display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#4 [phi:display_frame::@24->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#4 [phi:display_frame::@24->display_frame_maskxy#1] -- register_copy + // [2026] call display_frame_maskxy + // [2581] phi from display_frame::@24 to display_frame_maskxy [phi:display_frame::@24->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#4 [phi:display_frame::@24->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#4 [phi:display_frame::@24->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // display_frame_maskxy(x1, y) - // [2013] display_frame_maskxy::return#17 = display_frame_maskxy::return#12 + // [2027] display_frame_maskxy::return#17 = display_frame_maskxy::return#12 // display_frame::@25 // mask = display_frame_maskxy(x1, y) - // [2014] display_frame::mask#8 = display_frame_maskxy::return#17 + // [2028] display_frame::mask#8 = display_frame_maskxy::return#17 // mask |= 0b1010 - // [2015] display_frame::mask#9 = display_frame::mask#8 | $a -- vbuz1=vbuz1_bor_vbuc1 + // [2029] display_frame::mask#9 = display_frame::mask#8 | $a -- vbuz1=vbuz1_bor_vbuc1 lda #$a ora.z mask sta.z mask // display_frame_char(mask) - // [2016] display_frame_char::mask#4 = display_frame::mask#9 - // [2017] call display_frame_char - // [2593] phi from display_frame::@25 to display_frame_char [phi:display_frame::@25->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#4 [phi:display_frame::@25->display_frame_char#0] -- register_copy + // [2030] display_frame_char::mask#4 = display_frame::mask#9 + // [2031] call display_frame_char + // [2607] phi from display_frame::@25 to display_frame_char [phi:display_frame::@25->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#4 [phi:display_frame::@25->display_frame_char#0] -- register_copy jsr display_frame_char // display_frame_char(mask) - // [2018] display_frame_char::return#17 = display_frame_char::return#12 + // [2032] display_frame_char::return#17 = display_frame_char::return#12 // display_frame::@26 // c = display_frame_char(mask) - // [2019] display_frame::c#4 = display_frame_char::return#17 + // [2033] display_frame::c#4 = display_frame_char::return#17 // cputcxy(x1, y, c) - // [2020] cputcxy::x#4 = display_frame::x1#16 -- vbuz1=vbuz2 + // [2034] cputcxy::x#4 = display_frame::x1#16 -- vbuz1=vbuz2 lda.z x1 sta.z cputcxy.x - // [2021] cputcxy::y#4 = display_frame::y#10 -- vbuz1=vbuz2 + // [2035] cputcxy::y#4 = display_frame::y#10 -- vbuz1=vbuz2 lda.z y_1 sta.z cputcxy.y - // [2022] cputcxy::c#4 = display_frame::c#4 - // [2023] call cputcxy - // [2054] phi from display_frame::@26 to cputcxy [phi:display_frame::@26->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#4 [phi:display_frame::@26->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#4 [phi:display_frame::@26->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#4 [phi:display_frame::@26->cputcxy#2] -- register_copy + // [2036] cputcxy::c#4 = display_frame::c#4 + // [2037] call cputcxy + // [2068] phi from display_frame::@26 to cputcxy [phi:display_frame::@26->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#4 [phi:display_frame::@26->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#4 [phi:display_frame::@26->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#4 [phi:display_frame::@26->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@27 // y++; - // [2024] display_frame::y#2 = ++ display_frame::y#10 -- vbuz1=_inc_vbuz1 + // [2038] display_frame::y#2 = ++ display_frame::y#10 -- vbuz1=_inc_vbuz1 inc.z y_1 jmp __b6 // display_frame::@5 __b5: // display_frame_maskxy(x, y) - // [2025] display_frame_maskxy::x#2 = display_frame::x#10 -- vbum1=vbuz2 + // [2039] display_frame_maskxy::x#2 = display_frame::x#10 -- vbum1=vbuz2 lda.z x_1 sta display_frame_maskxy.x - // [2026] display_frame_maskxy::y#2 = display_frame::y#0 -- vbuz1=vbuz2 + // [2040] display_frame_maskxy::y#2 = display_frame::y#0 -- vbuz1=vbuz2 lda.z y sta.z display_frame_maskxy.y - // [2027] call display_frame_maskxy - // [2567] phi from display_frame::@5 to display_frame_maskxy [phi:display_frame::@5->display_frame_maskxy] - // [2567] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#2 [phi:display_frame::@5->display_frame_maskxy#0] -- register_copy - // [2567] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#2 [phi:display_frame::@5->display_frame_maskxy#1] -- register_copy + // [2041] call display_frame_maskxy + // [2581] phi from display_frame::@5 to display_frame_maskxy [phi:display_frame::@5->display_frame_maskxy] + // [2581] phi display_frame_maskxy::cpeekcxy1_y#0 = display_frame_maskxy::y#2 [phi:display_frame::@5->display_frame_maskxy#0] -- register_copy + // [2581] phi display_frame_maskxy::cpeekcxy1_x#0 = display_frame_maskxy::x#2 [phi:display_frame::@5->display_frame_maskxy#1] -- register_copy jsr display_frame_maskxy // display_frame_maskxy(x, y) - // [2028] display_frame_maskxy::return#15 = display_frame_maskxy::return#12 + // [2042] display_frame_maskxy::return#15 = display_frame_maskxy::return#12 // display_frame::@19 // mask = display_frame_maskxy(x, y) - // [2029] display_frame::mask#4 = display_frame_maskxy::return#15 + // [2043] display_frame::mask#4 = display_frame_maskxy::return#15 // mask |= 0b0101 - // [2030] display_frame::mask#5 = display_frame::mask#4 | 5 -- vbuz1=vbuz1_bor_vbuc1 + // [2044] display_frame::mask#5 = display_frame::mask#4 | 5 -- vbuz1=vbuz1_bor_vbuc1 lda #5 ora.z mask sta.z mask // display_frame_char(mask) - // [2031] display_frame_char::mask#2 = display_frame::mask#5 - // [2032] call display_frame_char - // [2593] phi from display_frame::@19 to display_frame_char [phi:display_frame::@19->display_frame_char] - // [2593] phi display_frame_char::mask#10 = display_frame_char::mask#2 [phi:display_frame::@19->display_frame_char#0] -- register_copy + // [2045] display_frame_char::mask#2 = display_frame::mask#5 + // [2046] call display_frame_char + // [2607] phi from display_frame::@19 to display_frame_char [phi:display_frame::@19->display_frame_char] + // [2607] phi display_frame_char::mask#10 = display_frame_char::mask#2 [phi:display_frame::@19->display_frame_char#0] -- register_copy jsr display_frame_char // display_frame_char(mask) - // [2033] display_frame_char::return#15 = display_frame_char::return#12 + // [2047] display_frame_char::return#15 = display_frame_char::return#12 // display_frame::@20 // c = display_frame_char(mask) - // [2034] display_frame::c#2 = display_frame_char::return#15 + // [2048] display_frame::c#2 = display_frame_char::return#15 // cputcxy(x, y, c) - // [2035] cputcxy::x#2 = display_frame::x#10 -- vbuz1=vbuz2 + // [2049] cputcxy::x#2 = display_frame::x#10 -- vbuz1=vbuz2 lda.z x_1 sta.z cputcxy.x - // [2036] cputcxy::y#2 = display_frame::y#0 -- vbuz1=vbuz2 + // [2050] cputcxy::y#2 = display_frame::y#0 -- vbuz1=vbuz2 lda.z y sta.z cputcxy.y - // [2037] cputcxy::c#2 = display_frame::c#2 - // [2038] call cputcxy - // [2054] phi from display_frame::@20 to cputcxy [phi:display_frame::@20->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#2 [phi:display_frame::@20->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#2 [phi:display_frame::@20->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#2 [phi:display_frame::@20->cputcxy#2] -- register_copy + // [2051] cputcxy::c#2 = display_frame::c#2 + // [2052] call cputcxy + // [2068] phi from display_frame::@20 to cputcxy [phi:display_frame::@20->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#2 [phi:display_frame::@20->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#2 [phi:display_frame::@20->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#2 [phi:display_frame::@20->cputcxy#2] -- register_copy jsr cputcxy // display_frame::@21 // x++; - // [2039] display_frame::x#2 = ++ display_frame::x#10 -- vbuz1=_inc_vbuz1 + // [2053] display_frame::x#2 = ++ display_frame::x#10 -- vbuz1=_inc_vbuz1 inc.z x_1 jmp __b4 // display_frame::@36 __b36: - // [2040] display_frame::x#30 = display_frame::x#0 -- vbuz1=vbuz2 + // [2054] display_frame::x#30 = display_frame::x#0 -- vbuz1=vbuz2 lda.z x sta.z x_1 jmp __b1 @@ -13527,38 +13651,38 @@ display_frame: { .segment Code // cputs // Output a NUL-terminated string at the current cursor position -// void cputs(__zp($4e) const char *s) +// void cputs(__zp($d5) const char *s) cputs: { - .label c = $d7 - .label s = $4e - // [2042] phi from cputs cputs::@2 to cputs::@1 [phi:cputs/cputs::@2->cputs::@1] - // [2042] phi cputs::s#2 = cputs::s#1 [phi:cputs/cputs::@2->cputs::@1#0] -- register_copy + .label c = $d9 + .label s = $d5 + // [2056] phi from cputs cputs::@2 to cputs::@1 [phi:cputs/cputs::@2->cputs::@1] + // [2056] phi cputs::s#2 = cputs::s#1 [phi:cputs/cputs::@2->cputs::@1#0] -- register_copy // cputs::@1 __b1: // while(c=*s++) - // [2043] cputs::c#1 = *cputs::s#2 -- vbuz1=_deref_pbuz2 + // [2057] cputs::c#1 = *cputs::s#2 -- vbuz1=_deref_pbuz2 ldy #0 lda (s),y sta.z c - // [2044] cputs::s#0 = ++ cputs::s#2 -- pbuz1=_inc_pbuz1 + // [2058] cputs::s#0 = ++ cputs::s#2 -- pbuz1=_inc_pbuz1 inc.z s bne !+ inc.z s+1 !: - // [2045] if(0!=cputs::c#1) goto cputs::@2 -- 0_neq_vbuz1_then_la1 + // [2059] if(0!=cputs::c#1) goto cputs::@2 -- 0_neq_vbuz1_then_la1 lda.z c bne __b2 // cputs::@return // } - // [2046] return + // [2060] return rts // cputs::@2 __b2: // cputc(c) - // [2047] stackpush(char) = cputs::c#1 -- _stackpushbyte_=vbuz1 + // [2061] stackpush(char) = cputs::c#1 -- _stackpushbyte_=vbuz1 lda.z c pha - // [2048] callexecute cputc -- call_vprc1 + // [2062] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla @@ -13567,35 +13691,35 @@ cputs: { // wherex // Return the x position of the cursor wherex: { - .label return = $e6 - .label return_1 = $e4 - .label return_2 = $cd - .label return_3 = $b4 - .label return_4 = $66 + .label return = $e8 + .label return_1 = $e6 + .label return_2 = $d9 + .label return_3 = $eb + .label return_4 = $65 // return __conio.cursor_x; - // [2050] wherex::return#0 = *((char *)&__conio) -- vbuz1=_deref_pbuc1 + // [2064] wherex::return#0 = *((char *)&__conio) -- vbuz1=_deref_pbuc1 lda __conio sta.z return // wherex::@return // } - // [2051] return + // [2065] return rts } // wherey // Return the y position of the cursor wherey: { - .label return = $e5 - .label return_1 = $65 - .label return_2 = $e9 - .label return_3 = $ba - .label return_4 = $db + .label return = $e7 + .label return_1 = $ba + .label return_2 = $cd + .label return_3 = $b6 + .label return_4 = $dd // return __conio.cursor_y; - // [2052] wherey::return#0 = *((char *)&__conio+1) -- vbuz1=_deref_pbuc1 + // [2066] wherey::return#0 = *((char *)&__conio+1) -- vbuz1=_deref_pbuc1 lda __conio+1 sta.z return // wherey::@return // } - // [2053] return + // [2067] return rts } // cputcxy @@ -13607,29 +13731,29 @@ cputcxy: { .label y = $c6 .label c = $cb // gotoxy(x, y) - // [2055] gotoxy::x#0 = cputcxy::x#15 -- vbuz1=vbuz2 + // [2069] gotoxy::x#0 = cputcxy::x#15 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [2056] gotoxy::y#0 = cputcxy::y#15 -- vbuz1=vbuz2 + // [2070] gotoxy::y#0 = cputcxy::y#15 -- vbuz1=vbuz2 lda.z y sta.z gotoxy.y - // [2057] call gotoxy - // [744] phi from cputcxy to gotoxy [phi:cputcxy->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#0 [phi:cputcxy->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#0 [phi:cputcxy->gotoxy#1] -- register_copy + // [2071] call gotoxy + // [751] phi from cputcxy to gotoxy [phi:cputcxy->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#0 [phi:cputcxy->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#0 [phi:cputcxy->gotoxy#1] -- register_copy jsr gotoxy // cputcxy::@1 // cputc(c) - // [2058] stackpush(char) = cputcxy::c#15 -- _stackpushbyte_=vbuz1 + // [2072] stackpush(char) = cputcxy::c#15 -- _stackpushbyte_=vbuz1 lda.z c pha - // [2059] callexecute cputc -- call_vprc1 + // [2073] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // cputcxy::@return // } - // [2061] return + // [2075] return rts } // display_smc_led @@ -13638,39 +13762,39 @@ cputcxy: { * * @param c Led color */ -// void display_smc_led(__zp($de) char c) +// void display_smc_led(__zp($e0) char c) display_smc_led: { - .label c = $de + .label c = $e0 // display_chip_led(CHIP_SMC_X+1, CHIP_SMC_Y, CHIP_SMC_W, c, BLUE) - // [2063] display_chip_led::tc#0 = display_smc_led::c#2 -- vbuz1=vbuz2 + // [2077] display_chip_led::tc#0 = display_smc_led::c#2 -- vbuz1=vbuz2 lda.z c sta.z display_chip_led.tc - // [2064] call display_chip_led - // [2608] phi from display_smc_led to display_chip_led [phi:display_smc_led->display_chip_led] - // [2608] phi display_chip_led::w#7 = 5 [phi:display_smc_led->display_chip_led#0] -- vbuz1=vbuc1 + // [2078] call display_chip_led + // [2622] phi from display_smc_led to display_chip_led [phi:display_smc_led->display_chip_led] + // [2622] phi display_chip_led::w#7 = 5 [phi:display_smc_led->display_chip_led#0] -- vbuz1=vbuc1 lda #5 sta.z display_chip_led.w - // [2608] phi display_chip_led::x#7 = 1+1 [phi:display_smc_led->display_chip_led#1] -- vbuz1=vbuc1 + // [2622] phi display_chip_led::x#7 = 1+1 [phi:display_smc_led->display_chip_led#1] -- vbuz1=vbuc1 lda #1+1 sta.z display_chip_led.x - // [2608] phi display_chip_led::tc#3 = display_chip_led::tc#0 [phi:display_smc_led->display_chip_led#2] -- register_copy + // [2622] phi display_chip_led::tc#3 = display_chip_led::tc#0 [phi:display_smc_led->display_chip_led#2] -- register_copy jsr display_chip_led // display_smc_led::@1 // display_info_led(INFO_X-2, INFO_Y, c, BLUE) - // [2065] display_info_led::tc#0 = display_smc_led::c#2 - // [2066] call display_info_led - // [1814] phi from display_smc_led::@1 to display_info_led [phi:display_smc_led::@1->display_info_led] - // [1814] phi display_info_led::y#4 = $11 [phi:display_smc_led::@1->display_info_led#0] -- vbuz1=vbuc1 + // [2079] display_info_led::tc#0 = display_smc_led::c#2 + // [2080] call display_info_led + // [1828] phi from display_smc_led::@1 to display_info_led [phi:display_smc_led::@1->display_info_led] + // [1828] phi display_info_led::y#4 = $11 [phi:display_smc_led::@1->display_info_led#0] -- vbuz1=vbuc1 lda #$11 sta.z display_info_led.y - // [1814] phi display_info_led::x#4 = 4-2 [phi:display_smc_led::@1->display_info_led#1] -- vbuz1=vbuc1 + // [1828] phi display_info_led::x#4 = 4-2 [phi:display_smc_led::@1->display_info_led#1] -- vbuz1=vbuc1 lda #4-2 sta.z display_info_led.x - // [1814] phi display_info_led::tc#4 = display_info_led::tc#0 [phi:display_smc_led::@1->display_info_led#2] -- register_copy + // [1828] phi display_info_led::tc#4 = display_info_led::tc#0 [phi:display_smc_led::@1->display_info_led#2] -- register_copy jsr display_info_led // display_smc_led::@return // } - // [2067] return + // [2081] return rts } // display_print_chip @@ -13682,22 +13806,22 @@ display_smc_led: { * @param w Width * @param text Vertical text to be displayed in the chip, starting from the top. */ -// void display_print_chip(__zp($d8) char x, char y, __zp($e7) char w, __zp($53) char *text) +// void display_print_chip(__zp($da) char x, char y, __zp($e9) char w, __zp($54) char *text) display_print_chip: { .label y = 3+2+1+1+1+1+1+1+1+1 - .label text = $53 - .label x = $d8 + .label text = $54 + .label x = $da .label text_5 = $6b - .label text_6 = $e1 - .label w = $e7 + .label text_6 = $e3 + .label w = $e9 // display_chip_line(x, y++, w, *text++) - // [2069] display_chip_line::x#0 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2083] display_chip_line::x#0 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2070] display_chip_line::w#0 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2084] display_chip_line::w#0 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2071] display_chip_line::c#0 = *display_print_chip::text#11 -- vbuz1=_deref_pbum2 + // [2085] display_chip_line::c#0 = *display_print_chip::text#11 -- vbuz1=_deref_pbum2 ldy text_2 sty.z $fe ldy text_2+1 @@ -13705,18 +13829,18 @@ display_print_chip: { ldy #0 lda ($fe),y sta.z display_chip_line.c - // [2072] call display_chip_line - // [2626] phi from display_print_chip to display_chip_line [phi:display_print_chip->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#0 [phi:display_print_chip->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#0 [phi:display_print_chip->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = 3+2 [phi:display_print_chip->display_chip_line#2] -- vbuz1=vbuc1 + // [2086] call display_chip_line + // [2640] phi from display_print_chip to display_chip_line [phi:display_print_chip->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#0 [phi:display_print_chip->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#0 [phi:display_print_chip->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = 3+2 [phi:display_print_chip->display_chip_line#2] -- vbum1=vbuc1 lda #3+2 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#0 [phi:display_print_chip->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#0 [phi:display_print_chip->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@1 // display_chip_line(x, y++, w, *text++); - // [2073] display_print_chip::text#0 = ++ display_print_chip::text#11 -- pbuz1=_inc_pbum2 + // [2087] display_print_chip::text#0 = ++ display_print_chip::text#11 -- pbuz1=_inc_pbum2 clc lda text_2 adc #1 @@ -13725,28 +13849,28 @@ display_print_chip: { adc #0 sta.z text+1 // display_chip_line(x, y++, w, *text++) - // [2074] display_chip_line::x#1 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2088] display_chip_line::x#1 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2075] display_chip_line::w#1 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2089] display_chip_line::w#1 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2076] display_chip_line::c#1 = *display_print_chip::text#0 -- vbuz1=_deref_pbuz2 + // [2090] display_chip_line::c#1 = *display_print_chip::text#0 -- vbuz1=_deref_pbuz2 ldy #0 lda (text),y sta.z display_chip_line.c - // [2077] call display_chip_line - // [2626] phi from display_print_chip::@1 to display_chip_line [phi:display_print_chip::@1->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#1 [phi:display_print_chip::@1->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#1 [phi:display_print_chip::@1->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = ++3+2 [phi:display_print_chip::@1->display_chip_line#2] -- vbuz1=vbuc1 + // [2091] call display_chip_line + // [2640] phi from display_print_chip::@1 to display_chip_line [phi:display_print_chip::@1->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#1 [phi:display_print_chip::@1->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#1 [phi:display_print_chip::@1->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = ++3+2 [phi:display_print_chip::@1->display_chip_line#2] -- vbum1=vbuc1 lda #3+2+1 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#1 [phi:display_print_chip::@1->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#1 [phi:display_print_chip::@1->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@2 // display_chip_line(x, y++, w, *text++); - // [2078] display_print_chip::text#1 = ++ display_print_chip::text#0 -- pbum1=_inc_pbuz2 + // [2092] display_print_chip::text#1 = ++ display_print_chip::text#0 -- pbum1=_inc_pbuz2 clc lda.z text adc #1 @@ -13755,13 +13879,13 @@ display_print_chip: { adc #0 sta text_1+1 // display_chip_line(x, y++, w, *text++) - // [2079] display_chip_line::x#2 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2093] display_chip_line::x#2 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2080] display_chip_line::w#2 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2094] display_chip_line::w#2 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2081] display_chip_line::c#2 = *display_print_chip::text#1 -- vbuz1=_deref_pbum2 + // [2095] display_chip_line::c#2 = *display_print_chip::text#1 -- vbuz1=_deref_pbum2 ldy text_1 sty.z $fe ldy text_1+1 @@ -13769,18 +13893,18 @@ display_print_chip: { ldy #0 lda ($fe),y sta.z display_chip_line.c - // [2082] call display_chip_line - // [2626] phi from display_print_chip::@2 to display_chip_line [phi:display_print_chip::@2->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#2 [phi:display_print_chip::@2->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#2 [phi:display_print_chip::@2->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = ++++3+2 [phi:display_print_chip::@2->display_chip_line#2] -- vbuz1=vbuc1 + // [2096] call display_chip_line + // [2640] phi from display_print_chip::@2 to display_chip_line [phi:display_print_chip::@2->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#2 [phi:display_print_chip::@2->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#2 [phi:display_print_chip::@2->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = ++++3+2 [phi:display_print_chip::@2->display_chip_line#2] -- vbum1=vbuc1 lda #3+2+1+1 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#2 [phi:display_print_chip::@2->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#2 [phi:display_print_chip::@2->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@3 // display_chip_line(x, y++, w, *text++); - // [2083] display_print_chip::text#15 = ++ display_print_chip::text#1 -- pbum1=_inc_pbum2 + // [2097] display_print_chip::text#15 = ++ display_print_chip::text#1 -- pbum1=_inc_pbum2 clc lda text_1 adc #1 @@ -13789,13 +13913,13 @@ display_print_chip: { adc #0 sta text_3+1 // display_chip_line(x, y++, w, *text++) - // [2084] display_chip_line::x#3 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2098] display_chip_line::x#3 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2085] display_chip_line::w#3 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2099] display_chip_line::w#3 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2086] display_chip_line::c#3 = *display_print_chip::text#15 -- vbuz1=_deref_pbum2 + // [2100] display_chip_line::c#3 = *display_print_chip::text#15 -- vbuz1=_deref_pbum2 ldy text_3 sty.z $fe ldy text_3+1 @@ -13803,18 +13927,18 @@ display_print_chip: { ldy #0 lda ($fe),y sta.z display_chip_line.c - // [2087] call display_chip_line - // [2626] phi from display_print_chip::@3 to display_chip_line [phi:display_print_chip::@3->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#3 [phi:display_print_chip::@3->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#3 [phi:display_print_chip::@3->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = ++++++3+2 [phi:display_print_chip::@3->display_chip_line#2] -- vbuz1=vbuc1 + // [2101] call display_chip_line + // [2640] phi from display_print_chip::@3 to display_chip_line [phi:display_print_chip::@3->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#3 [phi:display_print_chip::@3->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#3 [phi:display_print_chip::@3->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = ++++++3+2 [phi:display_print_chip::@3->display_chip_line#2] -- vbum1=vbuc1 lda #3+2+1+1+1 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#3 [phi:display_print_chip::@3->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#3 [phi:display_print_chip::@3->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@4 // display_chip_line(x, y++, w, *text++); - // [2088] display_print_chip::text#16 = ++ display_print_chip::text#15 -- pbum1=_inc_pbum2 + // [2102] display_print_chip::text#16 = ++ display_print_chip::text#15 -- pbum1=_inc_pbum2 clc lda text_3 adc #1 @@ -13823,13 +13947,13 @@ display_print_chip: { adc #0 sta text_4+1 // display_chip_line(x, y++, w, *text++) - // [2089] display_chip_line::x#4 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2103] display_chip_line::x#4 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2090] display_chip_line::w#4 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2104] display_chip_line::w#4 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2091] display_chip_line::c#4 = *display_print_chip::text#16 -- vbuz1=_deref_pbum2 + // [2105] display_chip_line::c#4 = *display_print_chip::text#16 -- vbuz1=_deref_pbum2 ldy text_4 sty.z $fe ldy text_4+1 @@ -13837,18 +13961,18 @@ display_print_chip: { ldy #0 lda ($fe),y sta.z display_chip_line.c - // [2092] call display_chip_line - // [2626] phi from display_print_chip::@4 to display_chip_line [phi:display_print_chip::@4->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#4 [phi:display_print_chip::@4->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#4 [phi:display_print_chip::@4->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = ++++++++3+2 [phi:display_print_chip::@4->display_chip_line#2] -- vbuz1=vbuc1 + // [2106] call display_chip_line + // [2640] phi from display_print_chip::@4 to display_chip_line [phi:display_print_chip::@4->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#4 [phi:display_print_chip::@4->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#4 [phi:display_print_chip::@4->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = ++++++++3+2 [phi:display_print_chip::@4->display_chip_line#2] -- vbum1=vbuc1 lda #3+2+1+1+1+1 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#4 [phi:display_print_chip::@4->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#4 [phi:display_print_chip::@4->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@5 // display_chip_line(x, y++, w, *text++); - // [2093] display_print_chip::text#17 = ++ display_print_chip::text#16 -- pbuz1=_inc_pbum2 + // [2107] display_print_chip::text#17 = ++ display_print_chip::text#16 -- pbuz1=_inc_pbum2 clc lda text_4 adc #1 @@ -13857,28 +13981,28 @@ display_print_chip: { adc #0 sta.z text_5+1 // display_chip_line(x, y++, w, *text++) - // [2094] display_chip_line::x#5 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2108] display_chip_line::x#5 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2095] display_chip_line::w#5 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2109] display_chip_line::w#5 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2096] display_chip_line::c#5 = *display_print_chip::text#17 -- vbuz1=_deref_pbuz2 + // [2110] display_chip_line::c#5 = *display_print_chip::text#17 -- vbuz1=_deref_pbuz2 ldy #0 lda (text_5),y sta.z display_chip_line.c - // [2097] call display_chip_line - // [2626] phi from display_print_chip::@5 to display_chip_line [phi:display_print_chip::@5->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#5 [phi:display_print_chip::@5->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#5 [phi:display_print_chip::@5->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = ++++++++++3+2 [phi:display_print_chip::@5->display_chip_line#2] -- vbuz1=vbuc1 + // [2111] call display_chip_line + // [2640] phi from display_print_chip::@5 to display_chip_line [phi:display_print_chip::@5->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#5 [phi:display_print_chip::@5->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#5 [phi:display_print_chip::@5->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = ++++++++++3+2 [phi:display_print_chip::@5->display_chip_line#2] -- vbum1=vbuc1 lda #3+2+1+1+1+1+1 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#5 [phi:display_print_chip::@5->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#5 [phi:display_print_chip::@5->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@6 // display_chip_line(x, y++, w, *text++); - // [2098] display_print_chip::text#18 = ++ display_print_chip::text#17 -- pbuz1=_inc_pbuz2 + // [2112] display_print_chip::text#18 = ++ display_print_chip::text#17 -- pbuz1=_inc_pbuz2 clc lda.z text_5 adc #1 @@ -13887,63 +14011,63 @@ display_print_chip: { adc #0 sta.z text_6+1 // display_chip_line(x, y++, w, *text++) - // [2099] display_chip_line::x#6 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2113] display_chip_line::x#6 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2100] display_chip_line::w#6 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2114] display_chip_line::w#6 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2101] display_chip_line::c#6 = *display_print_chip::text#18 -- vbuz1=_deref_pbuz2 + // [2115] display_chip_line::c#6 = *display_print_chip::text#18 -- vbuz1=_deref_pbuz2 ldy #0 lda (text_6),y sta.z display_chip_line.c - // [2102] call display_chip_line - // [2626] phi from display_print_chip::@6 to display_chip_line [phi:display_print_chip::@6->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#6 [phi:display_print_chip::@6->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#6 [phi:display_print_chip::@6->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = ++++++++++++3+2 [phi:display_print_chip::@6->display_chip_line#2] -- vbuz1=vbuc1 + // [2116] call display_chip_line + // [2640] phi from display_print_chip::@6 to display_chip_line [phi:display_print_chip::@6->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#6 [phi:display_print_chip::@6->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#6 [phi:display_print_chip::@6->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = ++++++++++++3+2 [phi:display_print_chip::@6->display_chip_line#2] -- vbum1=vbuc1 lda #3+2+1+1+1+1+1+1 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#6 [phi:display_print_chip::@6->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#6 [phi:display_print_chip::@6->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@7 // display_chip_line(x, y++, w, *text++); - // [2103] display_print_chip::text#19 = ++ display_print_chip::text#18 -- pbuz1=_inc_pbuz1 + // [2117] display_print_chip::text#19 = ++ display_print_chip::text#18 -- pbuz1=_inc_pbuz1 inc.z text_6 bne !+ inc.z text_6+1 !: // display_chip_line(x, y++, w, *text++) - // [2104] display_chip_line::x#7 = display_print_chip::x#10 -- vbuz1=vbuz2 + // [2118] display_chip_line::x#7 = display_print_chip::x#10 -- vbuz1=vbuz2 lda.z x sta.z display_chip_line.x - // [2105] display_chip_line::w#7 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2119] display_chip_line::w#7 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_line.w - // [2106] display_chip_line::c#7 = *display_print_chip::text#19 -- vbuz1=_deref_pbuz2 + // [2120] display_chip_line::c#7 = *display_print_chip::text#19 -- vbuz1=_deref_pbuz2 ldy #0 lda (text_6),y sta.z display_chip_line.c - // [2107] call display_chip_line - // [2626] phi from display_print_chip::@7 to display_chip_line [phi:display_print_chip::@7->display_chip_line] - // [2626] phi display_chip_line::c#15 = display_chip_line::c#7 [phi:display_print_chip::@7->display_chip_line#0] -- register_copy - // [2626] phi display_chip_line::w#10 = display_chip_line::w#7 [phi:display_print_chip::@7->display_chip_line#1] -- register_copy - // [2626] phi display_chip_line::y#16 = ++++++++++++++3+2 [phi:display_print_chip::@7->display_chip_line#2] -- vbuz1=vbuc1 + // [2121] call display_chip_line + // [2640] phi from display_print_chip::@7 to display_chip_line [phi:display_print_chip::@7->display_chip_line] + // [2640] phi display_chip_line::c#15 = display_chip_line::c#7 [phi:display_print_chip::@7->display_chip_line#0] -- register_copy + // [2640] phi display_chip_line::w#10 = display_chip_line::w#7 [phi:display_print_chip::@7->display_chip_line#1] -- register_copy + // [2640] phi display_chip_line::y#16 = ++++++++++++++3+2 [phi:display_print_chip::@7->display_chip_line#2] -- vbum1=vbuc1 lda #3+2+1+1+1+1+1+1+1 - sta.z display_chip_line.y - // [2626] phi display_chip_line::x#16 = display_chip_line::x#7 [phi:display_print_chip::@7->display_chip_line#3] -- register_copy + sta display_chip_line.y + // [2640] phi display_chip_line::x#16 = display_chip_line::x#7 [phi:display_print_chip::@7->display_chip_line#3] -- register_copy jsr display_chip_line // display_print_chip::@8 // display_chip_end(x, y++, w) - // [2108] display_chip_end::x#0 = display_print_chip::x#10 - // [2109] display_chip_end::w#0 = display_print_chip::w#10 -- vbuz1=vbuz2 + // [2122] display_chip_end::x#0 = display_print_chip::x#10 + // [2123] display_chip_end::w#0 = display_print_chip::w#10 -- vbuz1=vbuz2 lda.z w sta.z display_chip_end.w - // [2110] call display_chip_end + // [2124] call display_chip_end jsr display_chip_end // display_print_chip::@return // } - // [2111] return + // [2125] return rts .segment Data .label text_1 = fopen.fopen__28 @@ -13962,60 +14086,60 @@ display_print_chip: { display_vera_led: { .label c = $b7 // display_chip_led(CHIP_VERA_X+1, CHIP_VERA_Y, CHIP_VERA_W, c, BLUE) - // [2113] display_chip_led::tc#1 = display_vera_led::c#2 -- vbuz1=vbuz2 + // [2127] display_chip_led::tc#1 = display_vera_led::c#2 -- vbuz1=vbuz2 lda.z c sta.z display_chip_led.tc - // [2114] call display_chip_led - // [2608] phi from display_vera_led to display_chip_led [phi:display_vera_led->display_chip_led] - // [2608] phi display_chip_led::w#7 = 8 [phi:display_vera_led->display_chip_led#0] -- vbuz1=vbuc1 + // [2128] call display_chip_led + // [2622] phi from display_vera_led to display_chip_led [phi:display_vera_led->display_chip_led] + // [2622] phi display_chip_led::w#7 = 8 [phi:display_vera_led->display_chip_led#0] -- vbuz1=vbuc1 lda #8 sta.z display_chip_led.w - // [2608] phi display_chip_led::x#7 = 9+1 [phi:display_vera_led->display_chip_led#1] -- vbuz1=vbuc1 + // [2622] phi display_chip_led::x#7 = 9+1 [phi:display_vera_led->display_chip_led#1] -- vbuz1=vbuc1 lda #9+1 sta.z display_chip_led.x - // [2608] phi display_chip_led::tc#3 = display_chip_led::tc#1 [phi:display_vera_led->display_chip_led#2] -- register_copy + // [2622] phi display_chip_led::tc#3 = display_chip_led::tc#1 [phi:display_vera_led->display_chip_led#2] -- register_copy jsr display_chip_led // display_vera_led::@1 // display_info_led(INFO_X-2, INFO_Y+1, c, BLUE) - // [2115] display_info_led::tc#1 = display_vera_led::c#2 -- vbuz1=vbuz2 + // [2129] display_info_led::tc#1 = display_vera_led::c#2 -- vbuz1=vbuz2 lda.z c sta.z display_info_led.tc - // [2116] call display_info_led - // [1814] phi from display_vera_led::@1 to display_info_led [phi:display_vera_led::@1->display_info_led] - // [1814] phi display_info_led::y#4 = $11+1 [phi:display_vera_led::@1->display_info_led#0] -- vbuz1=vbuc1 + // [2130] call display_info_led + // [1828] phi from display_vera_led::@1 to display_info_led [phi:display_vera_led::@1->display_info_led] + // [1828] phi display_info_led::y#4 = $11+1 [phi:display_vera_led::@1->display_info_led#0] -- vbuz1=vbuc1 lda #$11+1 sta.z display_info_led.y - // [1814] phi display_info_led::x#4 = 4-2 [phi:display_vera_led::@1->display_info_led#1] -- vbuz1=vbuc1 + // [1828] phi display_info_led::x#4 = 4-2 [phi:display_vera_led::@1->display_info_led#1] -- vbuz1=vbuc1 lda #4-2 sta.z display_info_led.x - // [1814] phi display_info_led::tc#4 = display_info_led::tc#1 [phi:display_vera_led::@1->display_info_led#2] -- register_copy + // [1828] phi display_info_led::tc#4 = display_info_led::tc#1 [phi:display_vera_led::@1->display_info_led#2] -- register_copy jsr display_info_led // display_vera_led::@return // } - // [2117] return + // [2131] return rts } // strcat // Concatenates the C string pointed by source into the array pointed by destination, including the terminating null character (and stopping at that point). // char * strcat(char *destination, __mem() char *source) strcat: { - .label strcat__0 = $53 - .label dst = $53 + .label strcat__0 = $54 + .label dst = $54 // strlen(destination) - // [2119] call strlen - // [2330] phi from strcat to strlen [phi:strcat->strlen] - // [2330] phi strlen::str#8 = display_chip_rom::rom [phi:strcat->strlen#0] -- pbuz1=pbuc1 + // [2133] call strlen + // [2344] phi from strcat to strlen [phi:strcat->strlen] + // [2344] phi strlen::str#8 = display_chip_rom::rom [phi:strcat->strlen#0] -- pbuz1=pbuc1 lda #display_chip_rom.rom sta.z strlen.str+1 jsr strlen // strlen(destination) - // [2120] strlen::return#0 = strlen::len#2 + // [2134] strlen::return#0 = strlen::len#2 // strcat::@4 - // [2121] strcat::$0 = strlen::return#0 + // [2135] strcat::$0 = strlen::return#0 // char* dst = destination + strlen(destination) - // [2122] strcat::dst#0 = display_chip_rom::rom + strcat::$0 -- pbuz1=pbuc1_plus_vwuz1 + // [2136] strcat::dst#0 = display_chip_rom::rom + strcat::$0 -- pbuz1=pbuc1_plus_vwuz1 lda.z dst clc adc #display_chip_rom.rom sta.z dst+1 - // [2123] phi from strcat::@2 strcat::@4 to strcat::@1 [phi:strcat::@2/strcat::@4->strcat::@1] - // [2123] phi strcat::dst#2 = strcat::dst#1 [phi:strcat::@2/strcat::@4->strcat::@1#0] -- register_copy - // [2123] phi strcat::src#2 = strcat::src#1 [phi:strcat::@2/strcat::@4->strcat::@1#1] -- register_copy + // [2137] phi from strcat::@2 strcat::@4 to strcat::@1 [phi:strcat::@2/strcat::@4->strcat::@1] + // [2137] phi strcat::dst#2 = strcat::dst#1 [phi:strcat::@2/strcat::@4->strcat::@1#0] -- register_copy + // [2137] phi strcat::src#2 = strcat::src#1 [phi:strcat::@2/strcat::@4->strcat::@1#1] -- register_copy // strcat::@1 __b1: // while(*src) - // [2124] if(0!=*strcat::src#2) goto strcat::@2 -- 0_neq__deref_pbum1_then_la1 + // [2138] if(0!=*strcat::src#2) goto strcat::@2 -- 0_neq__deref_pbum1_then_la1 ldy src sty.z $fe ldy src+1 @@ -14040,18 +14164,18 @@ strcat: { bne __b2 // strcat::@3 // *dst = 0 - // [2125] *strcat::dst#2 = 0 -- _deref_pbuz1=vbuc1 + // [2139] *strcat::dst#2 = 0 -- _deref_pbuz1=vbuc1 tya tay sta (dst),y // strcat::@return // } - // [2126] return + // [2140] return rts // strcat::@2 __b2: // *dst++ = *src++ - // [2127] *strcat::dst#2 = *strcat::src#2 -- _deref_pbuz1=_deref_pbum2 + // [2141] *strcat::dst#2 = *strcat::src#2 -- _deref_pbuz1=_deref_pbum2 ldy src sty.z $fe ldy src+1 @@ -14060,12 +14184,12 @@ strcat: { lda ($fe),y sta (dst),y // *dst++ = *src++; - // [2128] strcat::dst#1 = ++ strcat::dst#2 -- pbuz1=_inc_pbuz1 + // [2142] strcat::dst#1 = ++ strcat::dst#2 -- pbuz1=_inc_pbuz1 inc.z dst bne !+ inc.z dst+1 !: - // [2129] strcat::src#1 = ++ strcat::src#2 -- pbum1=_inc_pbum1 + // [2143] strcat::src#1 = ++ strcat::src#2 -- pbum1=_inc_pbum1 inc src bne !+ inc src+1 @@ -14085,62 +14209,62 @@ strcat: { */ // void display_rom_led(__zp($63) char chip, __zp($6a) char c) display_rom_led: { - .label display_rom_led__0 = $59 + .label display_rom_led__0 = $5a .label chip = $63 .label c = $6a - .label display_rom_led__7 = $59 - .label display_rom_led__8 = $59 + .label display_rom_led__7 = $5a + .label display_rom_led__8 = $5a // chip*6 - // [2131] display_rom_led::$7 = display_rom_led::chip#2 << 1 -- vbuz1=vbuz2_rol_1 + // [2145] display_rom_led::$7 = display_rom_led::chip#2 << 1 -- vbuz1=vbuz2_rol_1 lda.z chip asl sta.z display_rom_led__7 - // [2132] display_rom_led::$8 = display_rom_led::$7 + display_rom_led::chip#2 -- vbuz1=vbuz1_plus_vbuz2 + // [2146] display_rom_led::$8 = display_rom_led::$7 + display_rom_led::chip#2 -- vbuz1=vbuz1_plus_vbuz2 lda.z display_rom_led__8 clc adc.z chip sta.z display_rom_led__8 // CHIP_ROM_X+chip*6 - // [2133] display_rom_led::$0 = display_rom_led::$8 << 1 -- vbuz1=vbuz1_rol_1 + // [2147] display_rom_led::$0 = display_rom_led::$8 << 1 -- vbuz1=vbuz1_rol_1 asl.z display_rom_led__0 // display_chip_led(CHIP_ROM_X+chip*6+1, CHIP_ROM_Y, CHIP_ROM_W, c, BLUE) - // [2134] display_chip_led::x#3 = display_rom_led::$0 + $14+1 -- vbuz1=vbuz1_plus_vbuc1 + // [2148] display_chip_led::x#3 = display_rom_led::$0 + $14+1 -- vbuz1=vbuz1_plus_vbuc1 lda #$14+1 clc adc.z display_chip_led.x sta.z display_chip_led.x - // [2135] display_chip_led::tc#2 = display_rom_led::c#2 -- vbuz1=vbuz2 + // [2149] display_chip_led::tc#2 = display_rom_led::c#2 -- vbuz1=vbuz2 lda.z c sta.z display_chip_led.tc - // [2136] call display_chip_led - // [2608] phi from display_rom_led to display_chip_led [phi:display_rom_led->display_chip_led] - // [2608] phi display_chip_led::w#7 = 3 [phi:display_rom_led->display_chip_led#0] -- vbuz1=vbuc1 + // [2150] call display_chip_led + // [2622] phi from display_rom_led to display_chip_led [phi:display_rom_led->display_chip_led] + // [2622] phi display_chip_led::w#7 = 3 [phi:display_rom_led->display_chip_led#0] -- vbuz1=vbuc1 lda #3 sta.z display_chip_led.w - // [2608] phi display_chip_led::x#7 = display_chip_led::x#3 [phi:display_rom_led->display_chip_led#1] -- register_copy - // [2608] phi display_chip_led::tc#3 = display_chip_led::tc#2 [phi:display_rom_led->display_chip_led#2] -- register_copy + // [2622] phi display_chip_led::x#7 = display_chip_led::x#3 [phi:display_rom_led->display_chip_led#1] -- register_copy + // [2622] phi display_chip_led::tc#3 = display_chip_led::tc#2 [phi:display_rom_led->display_chip_led#2] -- register_copy jsr display_chip_led // display_rom_led::@1 // display_info_led(INFO_X-2, INFO_Y+chip+2, c, BLUE) - // [2137] display_info_led::y#2 = display_rom_led::chip#2 + $11+2 -- vbuz1=vbuz2_plus_vbuc1 + // [2151] display_info_led::y#2 = display_rom_led::chip#2 + $11+2 -- vbuz1=vbuz2_plus_vbuc1 lda #$11+2 clc adc.z chip sta.z display_info_led.y - // [2138] display_info_led::tc#2 = display_rom_led::c#2 -- vbuz1=vbuz2 + // [2152] display_info_led::tc#2 = display_rom_led::c#2 -- vbuz1=vbuz2 lda.z c sta.z display_info_led.tc - // [2139] call display_info_led - // [1814] phi from display_rom_led::@1 to display_info_led [phi:display_rom_led::@1->display_info_led] - // [1814] phi display_info_led::y#4 = display_info_led::y#2 [phi:display_rom_led::@1->display_info_led#0] -- register_copy - // [1814] phi display_info_led::x#4 = 4-2 [phi:display_rom_led::@1->display_info_led#1] -- vbuz1=vbuc1 + // [2153] call display_info_led + // [1828] phi from display_rom_led::@1 to display_info_led [phi:display_rom_led::@1->display_info_led] + // [1828] phi display_info_led::y#4 = display_info_led::y#2 [phi:display_rom_led::@1->display_info_led#0] -- register_copy + // [1828] phi display_info_led::x#4 = 4-2 [phi:display_rom_led::@1->display_info_led#1] -- vbuz1=vbuc1 lda #4-2 sta.z display_info_led.x - // [1814] phi display_info_led::tc#4 = display_info_led::tc#2 [phi:display_rom_led::@1->display_info_led#2] -- register_copy + // [1828] phi display_info_led::tc#4 = display_info_led::tc#2 [phi:display_rom_led::@1->display_info_led#2] -- register_copy jsr display_info_led // display_rom_led::@return // } - // [2140] return + // [2154] return rts } // rom_unlock @@ -14153,13 +14277,13 @@ display_rom_led: { * @param unlock_code The 3rd write to model the specific unlock sequence. */ /* inline */ -// void rom_unlock(__zp($6f) unsigned long address, __zp($7e) char unlock_code) +// void rom_unlock(__zp($6f) unsigned long address, __zp($7d) char unlock_code) rom_unlock: { - .label chip_address = $40 + .label chip_address = $41 .label address = $6f - .label unlock_code = $7e + .label unlock_code = $7d // unsigned long chip_address = address & ROM_CHIP_MASK - // [2142] rom_unlock::chip_address#0 = rom_unlock::address#5 & $380000 -- vduz1=vduz2_band_vduc1 + // [2156] rom_unlock::chip_address#0 = rom_unlock::address#5 & $380000 -- vduz1=vduz2_band_vduc1 lda.z address and #<$380000 sta.z chip_address @@ -14173,7 +14297,7 @@ rom_unlock: { and #>$380000>>$10 sta.z chip_address+3 // rom_write_byte(chip_address + 0x05555, 0xAA) - // [2143] rom_write_byte::address#0 = rom_unlock::chip_address#0 + $5555 -- vduz1=vduz2_plus_vwuc1 + // [2157] rom_write_byte::address#0 = rom_unlock::chip_address#0 + $5555 -- vduz1=vduz2_plus_vwuc1 clc lda.z chip_address adc #<$5555 @@ -14187,17 +14311,17 @@ rom_unlock: { lda.z chip_address+3 adc #0 sta.z rom_write_byte.address+3 - // [2144] call rom_write_byte + // [2158] call rom_write_byte // This is a very important operation... - // [2687] phi from rom_unlock to rom_write_byte [phi:rom_unlock->rom_write_byte] - // [2687] phi rom_write_byte::value#10 = $aa [phi:rom_unlock->rom_write_byte#0] -- vbuz1=vbuc1 + // [2701] phi from rom_unlock to rom_write_byte [phi:rom_unlock->rom_write_byte] + // [2701] phi rom_write_byte::value#10 = $aa [phi:rom_unlock->rom_write_byte#0] -- vbuz1=vbuc1 lda #$aa sta.z rom_write_byte.value - // [2687] phi rom_write_byte::address#4 = rom_write_byte::address#0 [phi:rom_unlock->rom_write_byte#1] -- register_copy + // [2701] phi rom_write_byte::address#4 = rom_write_byte::address#0 [phi:rom_unlock->rom_write_byte#1] -- register_copy jsr rom_write_byte // rom_unlock::@1 // rom_write_byte(chip_address + 0x02AAA, 0x55) - // [2145] rom_write_byte::address#1 = rom_unlock::chip_address#0 + $2aaa -- vduz1=vduz2_plus_vwuc1 + // [2159] rom_write_byte::address#1 = rom_unlock::chip_address#0 + $2aaa -- vduz1=vduz2_plus_vwuc1 clc lda.z chip_address adc #<$2aaa @@ -14211,16 +14335,16 @@ rom_unlock: { lda.z chip_address+3 adc #0 sta.z rom_write_byte.address+3 - // [2146] call rom_write_byte - // [2687] phi from rom_unlock::@1 to rom_write_byte [phi:rom_unlock::@1->rom_write_byte] - // [2687] phi rom_write_byte::value#10 = $55 [phi:rom_unlock::@1->rom_write_byte#0] -- vbuz1=vbuc1 + // [2160] call rom_write_byte + // [2701] phi from rom_unlock::@1 to rom_write_byte [phi:rom_unlock::@1->rom_write_byte] + // [2701] phi rom_write_byte::value#10 = $55 [phi:rom_unlock::@1->rom_write_byte#0] -- vbuz1=vbuc1 lda #$55 sta.z rom_write_byte.value - // [2687] phi rom_write_byte::address#4 = rom_write_byte::address#1 [phi:rom_unlock::@1->rom_write_byte#1] -- register_copy + // [2701] phi rom_write_byte::address#4 = rom_write_byte::address#1 [phi:rom_unlock::@1->rom_write_byte#1] -- register_copy jsr rom_write_byte // rom_unlock::@2 // rom_write_byte(address, unlock_code) - // [2147] rom_write_byte::address#2 = rom_unlock::address#5 -- vduz1=vduz2 + // [2161] rom_write_byte::address#2 = rom_unlock::address#5 -- vduz1=vduz2 lda.z address sta.z rom_write_byte.address lda.z address+1 @@ -14229,17 +14353,17 @@ rom_unlock: { sta.z rom_write_byte.address+2 lda.z address+3 sta.z rom_write_byte.address+3 - // [2148] rom_write_byte::value#2 = rom_unlock::unlock_code#5 -- vbuz1=vbuz2 + // [2162] rom_write_byte::value#2 = rom_unlock::unlock_code#5 -- vbuz1=vbuz2 lda.z unlock_code sta.z rom_write_byte.value - // [2149] call rom_write_byte - // [2687] phi from rom_unlock::@2 to rom_write_byte [phi:rom_unlock::@2->rom_write_byte] - // [2687] phi rom_write_byte::value#10 = rom_write_byte::value#2 [phi:rom_unlock::@2->rom_write_byte#0] -- register_copy - // [2687] phi rom_write_byte::address#4 = rom_write_byte::address#2 [phi:rom_unlock::@2->rom_write_byte#1] -- register_copy + // [2163] call rom_write_byte + // [2701] phi from rom_unlock::@2 to rom_write_byte [phi:rom_unlock::@2->rom_write_byte] + // [2701] phi rom_write_byte::value#10 = rom_write_byte::value#2 [phi:rom_unlock::@2->rom_write_byte#0] -- register_copy + // [2701] phi rom_write_byte::address#4 = rom_write_byte::address#2 [phi:rom_unlock::@2->rom_write_byte#1] -- register_copy jsr rom_write_byte // rom_unlock::@return // } - // [2150] return + // [2164] return rts } // rom_read_byte @@ -14252,50 +14376,50 @@ rom_unlock: { * @param address The 22 bit ROM address. * @return unsigned char The byte read from the ROM. */ -// __zp($d7) char rom_read_byte(__zp($55) unsigned long address) +// __zp($fb) char rom_read_byte(__zp($56) unsigned long address) rom_read_byte: { - .label rom_bank1_rom_read_byte__0 = $44 + .label rom_bank1_rom_read_byte__0 = $66 .label rom_bank1_rom_read_byte__2 = $ce - .label rom_ptr1_rom_read_byte__0 = $53 - .label rom_ptr1_rom_read_byte__2 = $53 + .label rom_ptr1_rom_read_byte__0 = $54 + .label rom_ptr1_rom_read_byte__2 = $54 .label rom_bank1_bank_unshifted = $ce - .label rom_bank1_return = $e4 - .label rom_ptr1_return = $53 - .label return = $d7 - .label address = $55 + .label rom_bank1_return = $e6 + .label rom_ptr1_return = $54 + .label return = $fb + .label address = $56 // rom_read_byte::rom_bank1 // BYTE2(address) - // [2152] rom_read_byte::rom_bank1_$0 = byte2 rom_read_byte::address#2 -- vbuz1=_byte2_vduz2 + // [2166] rom_read_byte::rom_bank1_$0 = byte2 rom_read_byte::address#2 -- vbuz1=_byte2_vduz2 lda.z address+2 sta.z rom_bank1_rom_read_byte__0 // BYTE1(address) - // [2153] rom_read_byte::rom_bank1_$1 = byte1 rom_read_byte::address#2 -- vbum1=_byte1_vduz2 + // [2167] rom_read_byte::rom_bank1_$1 = byte1 rom_read_byte::address#2 -- vbum1=_byte1_vduz2 lda.z address+1 sta rom_bank1_rom_read_byte__1 // MAKEWORD(BYTE2(address),BYTE1(address)) - // [2154] rom_read_byte::rom_bank1_$2 = rom_read_byte::rom_bank1_$0 w= rom_read_byte::rom_bank1_$1 -- vwuz1=vbuz2_word_vbum3 + // [2168] rom_read_byte::rom_bank1_$2 = rom_read_byte::rom_bank1_$0 w= rom_read_byte::rom_bank1_$1 -- vwuz1=vbuz2_word_vbum3 lda.z rom_bank1_rom_read_byte__0 sta.z rom_bank1_rom_read_byte__2+1 lda rom_bank1_rom_read_byte__1 sta.z rom_bank1_rom_read_byte__2 // unsigned int bank_unshifted = MAKEWORD(BYTE2(address),BYTE1(address)) << 2 - // [2155] rom_read_byte::rom_bank1_bank_unshifted#0 = rom_read_byte::rom_bank1_$2 << 2 -- vwuz1=vwuz1_rol_2 + // [2169] rom_read_byte::rom_bank1_bank_unshifted#0 = rom_read_byte::rom_bank1_$2 << 2 -- vwuz1=vwuz1_rol_2 asl.z rom_bank1_bank_unshifted rol.z rom_bank1_bank_unshifted+1 asl.z rom_bank1_bank_unshifted rol.z rom_bank1_bank_unshifted+1 // unsigned char bank = BYTE1(bank_unshifted) - // [2156] rom_read_byte::rom_bank1_return#0 = byte1 rom_read_byte::rom_bank1_bank_unshifted#0 -- vbuz1=_byte1_vwuz2 + // [2170] rom_read_byte::rom_bank1_return#0 = byte1 rom_read_byte::rom_bank1_bank_unshifted#0 -- vbuz1=_byte1_vwuz2 lda.z rom_bank1_bank_unshifted+1 sta.z rom_bank1_return // rom_read_byte::rom_ptr1 // (unsigned int)(address) & ROM_PTR_MASK - // [2157] rom_read_byte::rom_ptr1_$2 = (unsigned int)rom_read_byte::address#2 -- vwuz1=_word_vduz2 + // [2171] rom_read_byte::rom_ptr1_$2 = (unsigned int)rom_read_byte::address#2 -- vwuz1=_word_vduz2 lda.z address sta.z rom_ptr1_rom_read_byte__2 lda.z address+1 sta.z rom_ptr1_rom_read_byte__2+1 - // [2158] rom_read_byte::rom_ptr1_$0 = rom_read_byte::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 + // [2172] rom_read_byte::rom_ptr1_$0 = rom_read_byte::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 lda.z rom_ptr1_rom_read_byte__0 and #<$3fff sta.z rom_ptr1_rom_read_byte__0 @@ -14303,7 +14427,7 @@ rom_read_byte: { and #>$3fff sta.z rom_ptr1_rom_read_byte__0+1 // ((unsigned int)(address) & ROM_PTR_MASK) + ROM_BASE - // [2159] rom_read_byte::rom_ptr1_return#0 = rom_read_byte::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 + // [2173] rom_read_byte::rom_ptr1_return#0 = rom_read_byte::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 lda.z rom_ptr1_return clc adc #<$c000 @@ -14313,18 +14437,18 @@ rom_read_byte: { sta.z rom_ptr1_return+1 // rom_read_byte::bank_set_brom1 // BROM = bank - // [2160] BROM = rom_read_byte::rom_bank1_return#0 -- vbuz1=vbuz2 + // [2174] BROM = rom_read_byte::rom_bank1_return#0 -- vbuz1=vbuz2 lda.z rom_bank1_return sta.z BROM // rom_read_byte::@1 // return *ptr_rom; - // [2161] rom_read_byte::return#0 = *((char *)rom_read_byte::rom_ptr1_return#0) -- vbuz1=_deref_pbuz2 + // [2175] rom_read_byte::return#0 = *((char *)rom_read_byte::rom_ptr1_return#0) -- vbuz1=_deref_pbuz2 ldy #0 lda (rom_ptr1_return),y sta.z return // rom_read_byte::@return // } - // [2162] return + // [2176] return rts .segment Data .label rom_bank1_rom_read_byte__1 = fopen.sp @@ -14337,28 +14461,28 @@ rom_read_byte: { * @param line The start line, counting from 0. * @param text The text to be displayed. */ -// void display_progress_line(__zp($37) char line, __zp($2e) char *text) +// void display_progress_line(__zp($36) char line, __zp($2e) char *text) display_progress_line: { - .label line = $37 + .label line = $36 .label text = $2e // cputsxy(PROGRESS_X, PROGRESS_Y+line, text) - // [2163] cputsxy::y#0 = PROGRESS_Y + display_progress_line::line#0 -- vbuz1=vbuc1_plus_vbuz1 + // [2177] cputsxy::y#0 = PROGRESS_Y + display_progress_line::line#0 -- vbuz1=vbuc1_plus_vbuz1 lda #PROGRESS_Y clc adc.z cputsxy.y sta.z cputsxy.y - // [2164] cputsxy::s#0 = display_progress_line::text#0 - // [2165] call cputsxy - // [831] phi from display_progress_line to cputsxy [phi:display_progress_line->cputsxy] - // [831] phi cputsxy::s#4 = cputsxy::s#0 [phi:display_progress_line->cputsxy#0] -- register_copy - // [831] phi cputsxy::y#4 = cputsxy::y#0 [phi:display_progress_line->cputsxy#1] -- register_copy - // [831] phi cputsxy::x#4 = PROGRESS_X [phi:display_progress_line->cputsxy#2] -- vbuz1=vbuc1 + // [2178] cputsxy::s#0 = display_progress_line::text#0 + // [2179] call cputsxy + // [838] phi from display_progress_line to cputsxy [phi:display_progress_line->cputsxy] + // [838] phi cputsxy::s#4 = cputsxy::s#0 [phi:display_progress_line->cputsxy#0] -- register_copy + // [838] phi cputsxy::y#4 = cputsxy::y#0 [phi:display_progress_line->cputsxy#1] -- register_copy + // [838] phi cputsxy::x#4 = PROGRESS_X [phi:display_progress_line->cputsxy#2] -- vbuz1=vbuc1 lda #PROGRESS_X sta.z cputsxy.x jsr cputsxy // display_progress_line::@return // } - // [2166] return + // [2180] return rts } // fopen @@ -14376,30 +14500,29 @@ display_progress_line: { // __zp($ce) struct $2 * fopen(__zp($d2) const char *path, const char *mode) fopen: { .label fopen__4 = $cd - .label fopen__9 = $e9 - .label fopen__15 = $b4 - .label fopen__26 = $5f + .label fopen__9 = $eb + .label fopen__15 = $b6 + .label fopen__26 = $5d .label fopen__30 = $ce - .label cbm_k_setnam1_fopen__0 = $53 + .label cbm_k_setnam1_fopen__0 = $54 .label stream = $ce .label pathtoken = $d2 - .label pathpos = $e4 - .label pathpos_1 = $fb - .label pathcmp = $ba + .label pathpos = $e6 + .label pathcmp = $bb .label path = $d2 - .label num = $ee - .label cbm_k_readst1_return = $b4 + .label num = $f0 + .label cbm_k_readst1_return = $b6 .label return = $ce // unsigned char sp = __stdio_filecount - // [2168] fopen::sp#0 = __stdio_filecount -- vbum1=vbum2 + // [2182] fopen::sp#0 = __stdio_filecount -- vbum1=vbum2 lda __stdio_filecount sta sp // (unsigned int)sp | 0x8000 - // [2169] fopen::$30 = (unsigned int)fopen::sp#0 -- vwuz1=_word_vbum2 + // [2183] fopen::$30 = (unsigned int)fopen::sp#0 -- vwuz1=_word_vbum2 sta.z fopen__30 lda #0 sta.z fopen__30+1 - // [2170] fopen::stream#0 = fopen::$30 | $8000 -- vwuz1=vwuz1_bor_vwuc1 + // [2184] fopen::stream#0 = fopen::$30 | $8000 -- vwuz1=vwuz1_bor_vwuc1 lda.z stream ora #<$8000 sta.z stream @@ -14407,49 +14530,49 @@ fopen: { ora #>$8000 sta.z stream+1 // char pathpos = sp * __STDIO_FILECOUNT - // [2171] fopen::pathpos#0 = fopen::sp#0 << 1 -- vbuz1=vbum2_rol_1 + // [2185] fopen::pathpos#0 = fopen::sp#0 << 1 -- vbuz1=vbum2_rol_1 lda sp asl sta.z pathpos // __logical = 0 - // [2172] ((char *)&__stdio_file+$40)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 + // [2186] ((char *)&__stdio_file+$40)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 lda #0 ldy sp sta __stdio_file+$40,y // __device = 0 - // [2173] ((char *)&__stdio_file+$42)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 + // [2187] ((char *)&__stdio_file+$42)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 sta __stdio_file+$42,y // __channel = 0 - // [2174] ((char *)&__stdio_file+$44)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 + // [2188] ((char *)&__stdio_file+$44)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 sta __stdio_file+$44,y - // [2175] fopen::pathtoken#22 = fopen::pathtoken#0 -- pbum1=pbuz2 + // [2189] fopen::pathtoken#22 = fopen::pathtoken#0 -- pbum1=pbuz2 lda.z pathtoken sta pathtoken_1 lda.z pathtoken+1 sta pathtoken_1+1 - // [2176] fopen::pathpos#21 = fopen::pathpos#0 -- vbuz1=vbuz2 + // [2190] fopen::pathpos#21 = fopen::pathpos#0 -- vbum1=vbuz2 lda.z pathpos - sta.z pathpos_1 - // [2177] phi from fopen to fopen::@8 [phi:fopen->fopen::@8] - // [2177] phi fopen::num#10 = 0 [phi:fopen->fopen::@8#0] -- vbuz1=vbuc1 + sta pathpos_1 + // [2191] phi from fopen to fopen::@8 [phi:fopen->fopen::@8] + // [2191] phi fopen::num#10 = 0 [phi:fopen->fopen::@8#0] -- vbuz1=vbuc1 lda #0 sta.z num - // [2177] phi fopen::pathpos#10 = fopen::pathpos#21 [phi:fopen->fopen::@8#1] -- register_copy - // [2177] phi fopen::path#10 = fopen::pathtoken#0 [phi:fopen->fopen::@8#2] -- register_copy - // [2177] phi fopen::pathstep#10 = 0 [phi:fopen->fopen::@8#3] -- vbum1=vbuc1 + // [2191] phi fopen::pathpos#10 = fopen::pathpos#21 [phi:fopen->fopen::@8#1] -- register_copy + // [2191] phi fopen::path#10 = fopen::pathtoken#0 [phi:fopen->fopen::@8#2] -- register_copy + // [2191] phi fopen::pathstep#10 = 0 [phi:fopen->fopen::@8#3] -- vbum1=vbuc1 sta pathstep - // [2177] phi fopen::pathtoken#10 = fopen::pathtoken#22 [phi:fopen->fopen::@8#4] -- register_copy + // [2191] phi fopen::pathtoken#10 = fopen::pathtoken#22 [phi:fopen->fopen::@8#4] -- register_copy // Iterate while path is not \0. - // [2177] phi from fopen::@22 to fopen::@8 [phi:fopen::@22->fopen::@8] - // [2177] phi fopen::num#10 = fopen::num#13 [phi:fopen::@22->fopen::@8#0] -- register_copy - // [2177] phi fopen::pathpos#10 = fopen::pathpos#7 [phi:fopen::@22->fopen::@8#1] -- register_copy - // [2177] phi fopen::path#10 = fopen::path#11 [phi:fopen::@22->fopen::@8#2] -- register_copy - // [2177] phi fopen::pathstep#10 = fopen::pathstep#11 [phi:fopen::@22->fopen::@8#3] -- register_copy - // [2177] phi fopen::pathtoken#10 = fopen::pathtoken#1 [phi:fopen::@22->fopen::@8#4] -- register_copy + // [2191] phi from fopen::@22 to fopen::@8 [phi:fopen::@22->fopen::@8] + // [2191] phi fopen::num#10 = fopen::num#13 [phi:fopen::@22->fopen::@8#0] -- register_copy + // [2191] phi fopen::pathpos#10 = fopen::pathpos#7 [phi:fopen::@22->fopen::@8#1] -- register_copy + // [2191] phi fopen::path#10 = fopen::path#11 [phi:fopen::@22->fopen::@8#2] -- register_copy + // [2191] phi fopen::pathstep#10 = fopen::pathstep#11 [phi:fopen::@22->fopen::@8#3] -- register_copy + // [2191] phi fopen::pathtoken#10 = fopen::pathtoken#1 [phi:fopen::@22->fopen::@8#4] -- register_copy // fopen::@8 __b8: // if (*pathtoken == ',' || *pathtoken == '\0') - // [2178] if(*fopen::pathtoken#10==',') goto fopen::@9 -- _deref_pbum1_eq_vbuc1_then_la1 + // [2192] if(*fopen::pathtoken#10==',') goto fopen::@9 -- _deref_pbum1_eq_vbuc1_then_la1 ldy pathtoken_1 sty.z $fe ldy pathtoken_1+1 @@ -14461,7 +14584,7 @@ fopen: { jmp __b9 !__b9: // fopen::@33 - // [2179] if(*fopen::pathtoken#10=='@') goto fopen::@9 -- _deref_pbum1_eq_vbuc1_then_la1 + // [2193] if(*fopen::pathtoken#10=='@') goto fopen::@9 -- _deref_pbum1_eq_vbuc1_then_la1 ldy pathtoken_1 sty.z $fe ldy pathtoken_1+1 @@ -14474,39 +14597,39 @@ fopen: { !__b9: // fopen::@23 // if (pathstep == 0) - // [2180] if(fopen::pathstep#10!=0) goto fopen::@10 -- vbum1_neq_0_then_la1 + // [2194] if(fopen::pathstep#10!=0) goto fopen::@10 -- vbum1_neq_0_then_la1 lda pathstep bne __b10 // fopen::@24 // __stdio_file.filename[pathpos] = *pathtoken - // [2181] ((char *)&__stdio_file)[fopen::pathpos#10] = *fopen::pathtoken#10 -- pbuc1_derefidx_vbuz1=_deref_pbum2 + // [2195] ((char *)&__stdio_file)[fopen::pathpos#10] = *fopen::pathtoken#10 -- pbuc1_derefidx_vbum1=_deref_pbum2 ldy pathtoken_1 sty.z $fe ldy pathtoken_1+1 sty.z $ff ldy #0 lda ($fe),y - ldy.z pathpos_1 + ldy pathpos_1 sta __stdio_file,y // pathpos++; - // [2182] fopen::pathpos#1 = ++ fopen::pathpos#10 -- vbuz1=_inc_vbuz1 - inc.z pathpos_1 - // [2183] phi from fopen::@12 fopen::@23 fopen::@24 to fopen::@10 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10] - // [2183] phi fopen::num#13 = fopen::num#15 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#0] -- register_copy - // [2183] phi fopen::pathpos#7 = fopen::pathpos#10 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#1] -- register_copy - // [2183] phi fopen::path#11 = fopen::path#13 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#2] -- register_copy - // [2183] phi fopen::pathstep#11 = fopen::pathstep#1 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#3] -- register_copy + // [2196] fopen::pathpos#1 = ++ fopen::pathpos#10 -- vbum1=_inc_vbum1 + inc pathpos_1 + // [2197] phi from fopen::@12 fopen::@23 fopen::@24 to fopen::@10 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10] + // [2197] phi fopen::num#13 = fopen::num#15 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#0] -- register_copy + // [2197] phi fopen::pathpos#7 = fopen::pathpos#10 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#1] -- register_copy + // [2197] phi fopen::path#11 = fopen::path#13 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#2] -- register_copy + // [2197] phi fopen::pathstep#11 = fopen::pathstep#1 [phi:fopen::@12/fopen::@23/fopen::@24->fopen::@10#3] -- register_copy // fopen::@10 __b10: // pathtoken++; - // [2184] fopen::pathtoken#1 = ++ fopen::pathtoken#10 -- pbum1=_inc_pbum1 + // [2198] fopen::pathtoken#1 = ++ fopen::pathtoken#10 -- pbum1=_inc_pbum1 inc pathtoken_1 bne !+ inc pathtoken_1+1 !: // fopen::@22 // pathtoken - 1 - // [2185] fopen::$28 = fopen::pathtoken#1 - 1 -- pbum1=pbum2_minus_1 + // [2199] fopen::$28 = fopen::pathtoken#1 - 1 -- pbum1=pbum2_minus_1 lda pathtoken_1 sec sbc #1 @@ -14515,7 +14638,7 @@ fopen: { sbc #0 sta fopen__28+1 // while (*(pathtoken - 1)) - // [2186] if(0!=*fopen::$28) goto fopen::@8 -- 0_neq__deref_pbum1_then_la1 + // [2200] if(0!=*fopen::$28) goto fopen::@8 -- 0_neq__deref_pbum1_then_la1 ldy fopen__28 sty.z $fe tay @@ -14526,59 +14649,59 @@ fopen: { bne __b8 // fopen::@26 // __status = 0 - // [2187] ((char *)&__stdio_file+$46)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 + // [2201] ((char *)&__stdio_file+$46)[fopen::sp#0] = 0 -- pbuc1_derefidx_vbum1=vbuc2 tya ldy sp sta __stdio_file+$46,y // if(!__logical) - // [2188] if(0!=((char *)&__stdio_file+$40)[fopen::sp#0]) goto fopen::@1 -- 0_neq_pbuc1_derefidx_vbum1_then_la1 + // [2202] if(0!=((char *)&__stdio_file+$40)[fopen::sp#0]) goto fopen::@1 -- 0_neq_pbuc1_derefidx_vbum1_then_la1 lda __stdio_file+$40,y cmp #0 bne __b1 // fopen::@27 // __stdio_filecount+1 - // [2189] fopen::$4 = __stdio_filecount + 1 -- vbuz1=vbum2_plus_1 + // [2203] fopen::$4 = __stdio_filecount + 1 -- vbuz1=vbum2_plus_1 lda __stdio_filecount inc sta.z fopen__4 // __logical = __stdio_filecount+1 - // [2190] ((char *)&__stdio_file+$40)[fopen::sp#0] = fopen::$4 -- pbuc1_derefidx_vbum1=vbuz2 + // [2204] ((char *)&__stdio_file+$40)[fopen::sp#0] = fopen::$4 -- pbuc1_derefidx_vbum1=vbuz2 sta __stdio_file+$40,y // fopen::@1 __b1: // if(!__device) - // [2191] if(0!=((char *)&__stdio_file+$42)[fopen::sp#0]) goto fopen::@2 -- 0_neq_pbuc1_derefidx_vbum1_then_la1 + // [2205] if(0!=((char *)&__stdio_file+$42)[fopen::sp#0]) goto fopen::@2 -- 0_neq_pbuc1_derefidx_vbum1_then_la1 ldy sp lda __stdio_file+$42,y cmp #0 bne __b2 // fopen::@5 // __device = 8 - // [2192] ((char *)&__stdio_file+$42)[fopen::sp#0] = 8 -- pbuc1_derefidx_vbum1=vbuc2 + // [2206] ((char *)&__stdio_file+$42)[fopen::sp#0] = 8 -- pbuc1_derefidx_vbum1=vbuc2 lda #8 sta __stdio_file+$42,y // fopen::@2 __b2: // if(!__channel) - // [2193] if(0!=((char *)&__stdio_file+$44)[fopen::sp#0]) goto fopen::@3 -- 0_neq_pbuc1_derefidx_vbum1_then_la1 + // [2207] if(0!=((char *)&__stdio_file+$44)[fopen::sp#0]) goto fopen::@3 -- 0_neq_pbuc1_derefidx_vbum1_then_la1 ldy sp lda __stdio_file+$44,y cmp #0 bne __b3 // fopen::@6 // __stdio_filecount+2 - // [2194] fopen::$9 = __stdio_filecount + 2 -- vbuz1=vbum2_plus_2 + // [2208] fopen::$9 = __stdio_filecount + 2 -- vbuz1=vbum2_plus_2 lda __stdio_filecount clc adc #2 sta.z fopen__9 // __channel = __stdio_filecount+2 - // [2195] ((char *)&__stdio_file+$44)[fopen::sp#0] = fopen::$9 -- pbuc1_derefidx_vbum1=vbuz2 + // [2209] ((char *)&__stdio_file+$44)[fopen::sp#0] = fopen::$9 -- pbuc1_derefidx_vbum1=vbuz2 sta __stdio_file+$44,y // fopen::@3 __b3: // __filename - // [2196] fopen::$11 = (char *)&__stdio_file + fopen::pathpos#0 -- pbum1=pbuc1_plus_vbuz2 + // [2210] fopen::$11 = (char *)&__stdio_file + fopen::pathpos#0 -- pbum1=pbuc1_plus_vbuz2 lda.z pathpos clc adc #<__stdio_file @@ -14587,28 +14710,28 @@ fopen: { adc #0 sta fopen__11+1 // cbm_k_setnam(__filename) - // [2197] fopen::cbm_k_setnam1_filename = fopen::$11 -- pbum1=pbum2 + // [2211] fopen::cbm_k_setnam1_filename = fopen::$11 -- pbum1=pbum2 lda fopen__11 sta cbm_k_setnam1_filename lda fopen__11+1 sta cbm_k_setnam1_filename+1 // fopen::cbm_k_setnam1 // strlen(filename) - // [2198] strlen::str#4 = fopen::cbm_k_setnam1_filename -- pbuz1=pbum2 + // [2212] strlen::str#4 = fopen::cbm_k_setnam1_filename -- pbuz1=pbum2 lda cbm_k_setnam1_filename sta.z strlen.str lda cbm_k_setnam1_filename+1 sta.z strlen.str+1 - // [2199] call strlen - // [2330] phi from fopen::cbm_k_setnam1 to strlen [phi:fopen::cbm_k_setnam1->strlen] - // [2330] phi strlen::str#8 = strlen::str#4 [phi:fopen::cbm_k_setnam1->strlen#0] -- register_copy + // [2213] call strlen + // [2344] phi from fopen::cbm_k_setnam1 to strlen [phi:fopen::cbm_k_setnam1->strlen] + // [2344] phi strlen::str#8 = strlen::str#4 [phi:fopen::cbm_k_setnam1->strlen#0] -- register_copy jsr strlen // strlen(filename) - // [2200] strlen::return#11 = strlen::len#2 + // [2214] strlen::return#11 = strlen::len#2 // fopen::@31 - // [2201] fopen::cbm_k_setnam1_$0 = strlen::return#11 + // [2215] fopen::cbm_k_setnam1_$0 = strlen::return#11 // char filename_len = (char)strlen(filename) - // [2202] fopen::cbm_k_setnam1_filename_len = (char)fopen::cbm_k_setnam1_$0 -- vbum1=_byte_vwuz2 + // [2216] fopen::cbm_k_setnam1_filename_len = (char)fopen::cbm_k_setnam1_$0 -- vbum1=_byte_vwuz2 lda.z cbm_k_setnam1_fopen__0 sta cbm_k_setnam1_filename_len // asm @@ -14618,17 +14741,17 @@ fopen: { jsr CBM_SETNAM // fopen::@28 // cbm_k_setlfs(__logical, __device, __channel) - // [2204] cbm_k_setlfs::channel = ((char *)&__stdio_file+$40)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 + // [2218] cbm_k_setlfs::channel = ((char *)&__stdio_file+$40)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 ldy sp lda __stdio_file+$40,y sta cbm_k_setlfs.channel - // [2205] cbm_k_setlfs::device = ((char *)&__stdio_file+$42)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 + // [2219] cbm_k_setlfs::device = ((char *)&__stdio_file+$42)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 lda __stdio_file+$42,y sta cbm_k_setlfs.device - // [2206] cbm_k_setlfs::command = ((char *)&__stdio_file+$44)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 + // [2220] cbm_k_setlfs::command = ((char *)&__stdio_file+$44)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 lda __stdio_file+$44,y sta cbm_k_setlfs.command - // [2207] call cbm_k_setlfs + // [2221] call cbm_k_setlfs jsr cbm_k_setlfs // fopen::cbm_k_open1 // asm @@ -14636,7 +14759,7 @@ fopen: { jsr CBM_OPEN // fopen::cbm_k_readst1 // char status - // [2209] fopen::cbm_k_readst1_status = 0 -- vbum1=vbuc1 + // [2223] fopen::cbm_k_readst1_status = 0 -- vbum1=vbuc1 lda #0 sta cbm_k_readst1_status // asm @@ -14644,34 +14767,34 @@ fopen: { jsr CBM_READST sta cbm_k_readst1_status // return status; - // [2211] fopen::cbm_k_readst1_return#0 = fopen::cbm_k_readst1_status -- vbuz1=vbum2 + // [2225] fopen::cbm_k_readst1_return#0 = fopen::cbm_k_readst1_status -- vbuz1=vbum2 sta.z cbm_k_readst1_return // fopen::cbm_k_readst1_@return // } - // [2212] fopen::cbm_k_readst1_return#1 = fopen::cbm_k_readst1_return#0 + // [2226] fopen::cbm_k_readst1_return#1 = fopen::cbm_k_readst1_return#0 // fopen::@29 // cbm_k_readst() - // [2213] fopen::$15 = fopen::cbm_k_readst1_return#1 + // [2227] fopen::$15 = fopen::cbm_k_readst1_return#1 // __status = cbm_k_readst() - // [2214] ((char *)&__stdio_file+$46)[fopen::sp#0] = fopen::$15 -- pbuc1_derefidx_vbum1=vbuz2 + // [2228] ((char *)&__stdio_file+$46)[fopen::sp#0] = fopen::$15 -- pbuc1_derefidx_vbum1=vbuz2 lda.z fopen__15 ldy sp sta __stdio_file+$46,y // ferror(stream) - // [2215] ferror::stream#0 = (struct $2 *)fopen::stream#0 - // [2216] call ferror + // [2229] ferror::stream#0 = (struct $2 *)fopen::stream#0 + // [2230] call ferror jsr ferror - // [2217] ferror::return#0 = ferror::return#1 + // [2231] ferror::return#0 = ferror::return#1 // fopen::@32 - // [2218] fopen::$16 = ferror::return#0 + // [2232] fopen::$16 = ferror::return#0 // if (ferror(stream)) - // [2219] if(0==fopen::$16) goto fopen::@4 -- 0_eq_vwsm1_then_la1 + // [2233] if(0==fopen::$16) goto fopen::@4 -- 0_eq_vwsm1_then_la1 lda fopen__16 ora fopen__16+1 beq __b4 // fopen::@7 // cbm_k_close(__logical) - // [2220] fopen::cbm_k_close1_channel = ((char *)&__stdio_file+$40)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 + // [2234] fopen::cbm_k_close1_channel = ((char *)&__stdio_file+$40)[fopen::sp#0] -- vbum1=pbuc1_derefidx_vbum2 ldy sp lda __stdio_file+$40,y sta cbm_k_close1_channel @@ -14679,38 +14802,38 @@ fopen: { // asm // asm { ldachannel jsrCBM_CLOSE } jsr CBM_CLOSE - // [2222] phi from fopen::cbm_k_close1 to fopen::@return [phi:fopen::cbm_k_close1->fopen::@return] - // [2222] phi fopen::return#2 = 0 [phi:fopen::cbm_k_close1->fopen::@return#0] -- pssz1=vbuc1 + // [2236] phi from fopen::cbm_k_close1 to fopen::@return [phi:fopen::cbm_k_close1->fopen::@return] + // [2236] phi fopen::return#2 = 0 [phi:fopen::cbm_k_close1->fopen::@return#0] -- pssz1=vbuc1 lda #<0 sta.z return sta.z return+1 // fopen::@return // } - // [2223] return + // [2237] return rts // fopen::@4 __b4: // __stdio_filecount++; - // [2224] __stdio_filecount = ++ __stdio_filecount -- vbum1=_inc_vbum1 + // [2238] __stdio_filecount = ++ __stdio_filecount -- vbum1=_inc_vbum1 inc __stdio_filecount - // [2225] fopen::return#8 = (struct $2 *)fopen::stream#0 - // [2222] phi from fopen::@4 to fopen::@return [phi:fopen::@4->fopen::@return] - // [2222] phi fopen::return#2 = fopen::return#8 [phi:fopen::@4->fopen::@return#0] -- register_copy + // [2239] fopen::return#8 = (struct $2 *)fopen::stream#0 + // [2236] phi from fopen::@4 to fopen::@return [phi:fopen::@4->fopen::@return] + // [2236] phi fopen::return#2 = fopen::return#8 [phi:fopen::@4->fopen::@return#0] -- register_copy rts // fopen::@9 __b9: // if (pathstep > 0) - // [2226] if(fopen::pathstep#10>0) goto fopen::@11 -- vbum1_gt_0_then_la1 + // [2240] if(fopen::pathstep#10>0) goto fopen::@11 -- vbum1_gt_0_then_la1 lda pathstep bne __b11 // fopen::@25 // __stdio_file.filename[pathpos] = '\0' - // [2227] ((char *)&__stdio_file)[fopen::pathpos#10] = '@' -- pbuc1_derefidx_vbuz1=vbuc2 + // [2241] ((char *)&__stdio_file)[fopen::pathpos#10] = '@' -- pbuc1_derefidx_vbum1=vbuc2 lda #'@' - ldy.z pathpos_1 + ldy pathpos_1 sta __stdio_file,y // path = pathtoken + 1 - // [2228] fopen::path#0 = fopen::pathtoken#10 + 1 -- pbuz1=pbum2_plus_1 + // [2242] fopen::path#0 = fopen::pathtoken#10 + 1 -- pbuz1=pbum2_plus_1 clc lda pathtoken_1 adc #1 @@ -14718,30 +14841,30 @@ fopen: { lda pathtoken_1+1 adc #0 sta.z path+1 - // [2229] phi from fopen::@16 fopen::@17 fopen::@18 fopen::@19 fopen::@25 to fopen::@12 [phi:fopen::@16/fopen::@17/fopen::@18/fopen::@19/fopen::@25->fopen::@12] - // [2229] phi fopen::num#15 = fopen::num#2 [phi:fopen::@16/fopen::@17/fopen::@18/fopen::@19/fopen::@25->fopen::@12#0] -- register_copy - // [2229] phi fopen::path#13 = fopen::path#16 [phi:fopen::@16/fopen::@17/fopen::@18/fopen::@19/fopen::@25->fopen::@12#1] -- register_copy + // [2243] phi from fopen::@16 fopen::@17 fopen::@18 fopen::@19 fopen::@25 to fopen::@12 [phi:fopen::@16/fopen::@17/fopen::@18/fopen::@19/fopen::@25->fopen::@12] + // [2243] phi fopen::num#15 = fopen::num#2 [phi:fopen::@16/fopen::@17/fopen::@18/fopen::@19/fopen::@25->fopen::@12#0] -- register_copy + // [2243] phi fopen::path#13 = fopen::path#16 [phi:fopen::@16/fopen::@17/fopen::@18/fopen::@19/fopen::@25->fopen::@12#1] -- register_copy // fopen::@12 __b12: // pathstep++; - // [2230] fopen::pathstep#1 = ++ fopen::pathstep#10 -- vbum1=_inc_vbum1 + // [2244] fopen::pathstep#1 = ++ fopen::pathstep#10 -- vbum1=_inc_vbum1 inc pathstep jmp __b10 // fopen::@11 __b11: // char pathcmp = *path - // [2231] fopen::pathcmp#0 = *fopen::path#10 -- vbuz1=_deref_pbuz2 + // [2245] fopen::pathcmp#0 = *fopen::path#10 -- vbuz1=_deref_pbuz2 ldy #0 lda (path),y sta.z pathcmp // case 'D': - // [2232] if(fopen::pathcmp#0=='D') goto fopen::@13 -- vbuz1_eq_vbuc1_then_la1 + // [2246] if(fopen::pathcmp#0=='D') goto fopen::@13 -- vbuz1_eq_vbuc1_then_la1 lda #'D' cmp.z pathcmp beq __b13 // fopen::@20 // case 'L': - // [2233] if(fopen::pathcmp#0=='L') goto fopen::@13 -- vbuz1_eq_vbuc1_then_la1 + // [2247] if(fopen::pathcmp#0=='L') goto fopen::@13 -- vbuz1_eq_vbuc1_then_la1 lda #'L' cmp.z pathcmp beq __b13 @@ -14749,19 +14872,19 @@ fopen: { // case 'C': // num = (char)atoi(path + 1); // path = pathtoken + 1; - // [2234] if(fopen::pathcmp#0=='C') goto fopen::@13 -- vbuz1_eq_vbuc1_then_la1 + // [2248] if(fopen::pathcmp#0=='C') goto fopen::@13 -- vbuz1_eq_vbuc1_then_la1 lda #'C' cmp.z pathcmp beq __b13 - // [2235] phi from fopen::@21 fopen::@30 to fopen::@14 [phi:fopen::@21/fopen::@30->fopen::@14] - // [2235] phi fopen::path#16 = fopen::path#10 [phi:fopen::@21/fopen::@30->fopen::@14#0] -- register_copy - // [2235] phi fopen::num#2 = fopen::num#10 [phi:fopen::@21/fopen::@30->fopen::@14#1] -- register_copy + // [2249] phi from fopen::@21 fopen::@30 to fopen::@14 [phi:fopen::@21/fopen::@30->fopen::@14] + // [2249] phi fopen::path#16 = fopen::path#10 [phi:fopen::@21/fopen::@30->fopen::@14#0] -- register_copy + // [2249] phi fopen::num#2 = fopen::num#10 [phi:fopen::@21/fopen::@30->fopen::@14#1] -- register_copy // fopen::@14 __b14: // case 'L': // __logical = num; // break; - // [2236] if(fopen::pathcmp#0=='L') goto fopen::@17 -- vbuz1_eq_vbuc1_then_la1 + // [2250] if(fopen::pathcmp#0=='L') goto fopen::@17 -- vbuz1_eq_vbuc1_then_la1 lda #'L' cmp.z pathcmp beq __b17 @@ -14769,7 +14892,7 @@ fopen: { // case 'D': // __device = num; // break; - // [2237] if(fopen::pathcmp#0=='D') goto fopen::@18 -- vbuz1_eq_vbuc1_then_la1 + // [2251] if(fopen::pathcmp#0=='D') goto fopen::@18 -- vbuz1_eq_vbuc1_then_la1 lda #'D' cmp.z pathcmp beq __b18 @@ -14777,13 +14900,13 @@ fopen: { // case 'C': // __channel = num; // break; - // [2238] if(fopen::pathcmp#0!='C') goto fopen::@12 -- vbuz1_neq_vbuc1_then_la1 + // [2252] if(fopen::pathcmp#0!='C') goto fopen::@12 -- vbuz1_neq_vbuc1_then_la1 lda #'C' cmp.z pathcmp bne __b12 // fopen::@19 // __channel = num - // [2239] ((char *)&__stdio_file+$44)[fopen::sp#0] = fopen::num#2 -- pbuc1_derefidx_vbum1=vbuz2 + // [2253] ((char *)&__stdio_file+$44)[fopen::sp#0] = fopen::num#2 -- pbuc1_derefidx_vbum1=vbuz2 lda.z num ldy sp sta __stdio_file+$44,y @@ -14791,7 +14914,7 @@ fopen: { // fopen::@18 __b18: // __device = num - // [2240] ((char *)&__stdio_file+$42)[fopen::sp#0] = fopen::num#2 -- pbuc1_derefidx_vbum1=vbuz2 + // [2254] ((char *)&__stdio_file+$42)[fopen::sp#0] = fopen::num#2 -- pbuc1_derefidx_vbum1=vbuz2 lda.z num ldy sp sta __stdio_file+$42,y @@ -14799,7 +14922,7 @@ fopen: { // fopen::@17 __b17: // __logical = num - // [2241] ((char *)&__stdio_file+$40)[fopen::sp#0] = fopen::num#2 -- pbuc1_derefidx_vbum1=vbuz2 + // [2255] ((char *)&__stdio_file+$40)[fopen::sp#0] = fopen::num#2 -- pbuc1_derefidx_vbum1=vbuz2 lda.z num ldy sp sta __stdio_file+$40,y @@ -14807,25 +14930,25 @@ fopen: { // fopen::@13 __b13: // atoi(path + 1) - // [2242] atoi::str#0 = fopen::path#10 + 1 -- pbuz1=pbuz1_plus_1 + // [2256] atoi::str#0 = fopen::path#10 + 1 -- pbuz1=pbuz1_plus_1 inc.z atoi.str bne !+ inc.z atoi.str+1 !: - // [2243] call atoi - // [2753] phi from fopen::@13 to atoi [phi:fopen::@13->atoi] - // [2753] phi atoi::str#2 = atoi::str#0 [phi:fopen::@13->atoi#0] -- register_copy + // [2257] call atoi + // [2767] phi from fopen::@13 to atoi [phi:fopen::@13->atoi] + // [2767] phi atoi::str#2 = atoi::str#0 [phi:fopen::@13->atoi#0] -- register_copy jsr atoi // atoi(path + 1) - // [2244] atoi::return#3 = atoi::return#2 + // [2258] atoi::return#3 = atoi::return#2 // fopen::@30 - // [2245] fopen::$26 = atoi::return#3 + // [2259] fopen::$26 = atoi::return#3 // num = (char)atoi(path + 1) - // [2246] fopen::num#1 = (char)fopen::$26 -- vbuz1=_byte_vwsz2 + // [2260] fopen::num#1 = (char)fopen::$26 -- vbuz1=_byte_vwsz2 lda.z fopen__26 sta.z num // path = pathtoken + 1 - // [2247] fopen::path#1 = fopen::pathtoken#10 + 1 -- pbuz1=pbum2_plus_1 + // [2261] fopen::path#1 = fopen::pathtoken#10 + 1 -- pbuz1=pbum2_plus_1 clc lda pathtoken_1 adc #1 @@ -14843,6 +14966,7 @@ fopen: { cbm_k_readst1_status: .byte 0 cbm_k_close1_channel: .byte 0 sp: .byte 0 + .label pathpos_1 = main.check_status_smc9_main__0 pathtoken_1: .word 0 // Parse path .label pathstep = main.check_status_vera2_main__0 @@ -14858,38 +14982,37 @@ fopen: { * @param filename Name of the file to be loaded. * @return ptr the pointer advanced to the point where the stream ends. */ -// __zp($6d) unsigned int fgets(__zp($b8) char *ptr, __zp($d0) unsigned int size, __zp($ec) struct $2 *stream) +// __zp($b1) unsigned int fgets(__zp($b8) char *ptr, __zp($d0) unsigned int size, __zp($ee) struct $2 *stream) fgets: { - .label fgets__1 = $e9 - .label fgets__8 = $b4 - .label fgets__9 = $ba - .label fgets__13 = $bb - .label cbm_k_chkin1_channel = $f9 - .label cbm_k_chkin1_status = $f5 - .label cbm_k_readst1_status = $f6 + .label fgets__1 = $eb + .label fgets__8 = $b6 + .label fgets__9 = $bb + .label fgets__13 = $ba + .label cbm_k_chkin1_status = $f7 + .label cbm_k_readst1_status = $f8 .label cbm_k_readst2_status = $bd .label sp = $cd - .label cbm_k_readst1_return = $e9 - .label return = $6d - .label bytes = $74 - .label cbm_k_readst2_return = $b4 - .label read = $6d + .label cbm_k_readst1_return = $eb + .label return = $b1 + .label bytes = $73 + .label cbm_k_readst2_return = $b6 + .label read = $b1 .label ptr = $b8 .label remaining = $c4 - .label stream = $ec + .label stream = $ee .label size = $d0 // unsigned char sp = (unsigned char)stream - // [2249] fgets::sp#0 = (char)fgets::stream#3 -- vbuz1=_byte_pssz2 + // [2263] fgets::sp#0 = (char)fgets::stream#3 -- vbuz1=_byte_pssz2 lda.z stream sta.z sp // cbm_k_chkin(__logical) - // [2250] fgets::cbm_k_chkin1_channel = ((char *)&__stdio_file+$40)[fgets::sp#0] -- vbuz1=pbuc1_derefidx_vbuz2 + // [2264] fgets::cbm_k_chkin1_channel = ((char *)&__stdio_file+$40)[fgets::sp#0] -- vbum1=pbuc1_derefidx_vbuz2 tay lda __stdio_file+$40,y - sta.z cbm_k_chkin1_channel + sta cbm_k_chkin1_channel // fgets::cbm_k_chkin1 // char status - // [2251] fgets::cbm_k_chkin1_status = 0 -- vbuz1=vbuc1 + // [2265] fgets::cbm_k_chkin1_status = 0 -- vbuz1=vbuc1 lda #0 sta.z cbm_k_chkin1_status // asm @@ -14899,7 +15022,7 @@ fgets: { sta cbm_k_chkin1_status // fgets::cbm_k_readst1 // char status - // [2253] fgets::cbm_k_readst1_status = 0 -- vbuz1=vbuc1 + // [2267] fgets::cbm_k_readst1_status = 0 -- vbuz1=vbuc1 lda #0 sta.z cbm_k_readst1_status // asm @@ -14907,56 +15030,56 @@ fgets: { jsr CBM_READST sta cbm_k_readst1_status // return status; - // [2255] fgets::cbm_k_readst1_return#0 = fgets::cbm_k_readst1_status -- vbuz1=vbuz2 + // [2269] fgets::cbm_k_readst1_return#0 = fgets::cbm_k_readst1_status -- vbuz1=vbuz2 sta.z cbm_k_readst1_return // fgets::cbm_k_readst1_@return // } - // [2256] fgets::cbm_k_readst1_return#1 = fgets::cbm_k_readst1_return#0 + // [2270] fgets::cbm_k_readst1_return#1 = fgets::cbm_k_readst1_return#0 // fgets::@11 // cbm_k_readst() - // [2257] fgets::$1 = fgets::cbm_k_readst1_return#1 + // [2271] fgets::$1 = fgets::cbm_k_readst1_return#1 // __status = cbm_k_readst() - // [2258] ((char *)&__stdio_file+$46)[fgets::sp#0] = fgets::$1 -- pbuc1_derefidx_vbuz1=vbuz2 + // [2272] ((char *)&__stdio_file+$46)[fgets::sp#0] = fgets::$1 -- pbuc1_derefidx_vbuz1=vbuz2 lda.z fgets__1 ldy.z sp sta __stdio_file+$46,y // if (__status) - // [2259] if(0==((char *)&__stdio_file+$46)[fgets::sp#0]) goto fgets::@1 -- 0_eq_pbuc1_derefidx_vbuz1_then_la1 + // [2273] if(0==((char *)&__stdio_file+$46)[fgets::sp#0]) goto fgets::@1 -- 0_eq_pbuc1_derefidx_vbuz1_then_la1 lda __stdio_file+$46,y cmp #0 beq __b1 - // [2260] phi from fgets::@11 fgets::@12 fgets::@5 to fgets::@return [phi:fgets::@11/fgets::@12/fgets::@5->fgets::@return] + // [2274] phi from fgets::@11 fgets::@12 fgets::@5 to fgets::@return [phi:fgets::@11/fgets::@12/fgets::@5->fgets::@return] __b8: - // [2260] phi fgets::return#1 = 0 [phi:fgets::@11/fgets::@12/fgets::@5->fgets::@return#0] -- vwuz1=vbuc1 + // [2274] phi fgets::return#1 = 0 [phi:fgets::@11/fgets::@12/fgets::@5->fgets::@return#0] -- vwuz1=vbuc1 lda #<0 sta.z return sta.z return+1 // fgets::@return // } - // [2261] return + // [2275] return rts // fgets::@1 __b1: - // [2262] fgets::remaining#22 = fgets::size#11 -- vwuz1=vwuz2 + // [2276] fgets::remaining#22 = fgets::size#11 -- vwuz1=vwuz2 lda.z size sta.z remaining lda.z size+1 sta.z remaining+1 - // [2263] phi from fgets::@1 to fgets::@2 [phi:fgets::@1->fgets::@2] - // [2263] phi fgets::read#10 = 0 [phi:fgets::@1->fgets::@2#0] -- vwuz1=vwuc1 + // [2277] phi from fgets::@1 to fgets::@2 [phi:fgets::@1->fgets::@2] + // [2277] phi fgets::read#10 = 0 [phi:fgets::@1->fgets::@2#0] -- vwuz1=vwuc1 lda #<0 sta.z read sta.z read+1 - // [2263] phi fgets::remaining#11 = fgets::remaining#22 [phi:fgets::@1->fgets::@2#1] -- register_copy - // [2263] phi fgets::ptr#10 = fgets::ptr#13 [phi:fgets::@1->fgets::@2#2] -- register_copy - // [2263] phi from fgets::@17 fgets::@18 to fgets::@2 [phi:fgets::@17/fgets::@18->fgets::@2] - // [2263] phi fgets::read#10 = fgets::read#1 [phi:fgets::@17/fgets::@18->fgets::@2#0] -- register_copy - // [2263] phi fgets::remaining#11 = fgets::remaining#1 [phi:fgets::@17/fgets::@18->fgets::@2#1] -- register_copy - // [2263] phi fgets::ptr#10 = fgets::ptr#14 [phi:fgets::@17/fgets::@18->fgets::@2#2] -- register_copy + // [2277] phi fgets::remaining#11 = fgets::remaining#22 [phi:fgets::@1->fgets::@2#1] -- register_copy + // [2277] phi fgets::ptr#10 = fgets::ptr#13 [phi:fgets::@1->fgets::@2#2] -- register_copy + // [2277] phi from fgets::@17 fgets::@18 to fgets::@2 [phi:fgets::@17/fgets::@18->fgets::@2] + // [2277] phi fgets::read#10 = fgets::read#1 [phi:fgets::@17/fgets::@18->fgets::@2#0] -- register_copy + // [2277] phi fgets::remaining#11 = fgets::remaining#1 [phi:fgets::@17/fgets::@18->fgets::@2#1] -- register_copy + // [2277] phi fgets::ptr#10 = fgets::ptr#14 [phi:fgets::@17/fgets::@18->fgets::@2#2] -- register_copy // fgets::@2 __b2: // if (!size) - // [2264] if(0==fgets::size#11) goto fgets::@3 -- 0_eq_vwuz1_then_la1 + // [2278] if(0==fgets::size#11) goto fgets::@3 -- 0_eq_vwuz1_then_la1 lda.z size ora.z size+1 bne !__b3+ @@ -14964,7 +15087,7 @@ fgets: { !__b3: // fgets::@8 // if (remaining >= 512) - // [2265] if(fgets::remaining#11>=$200) goto fgets::@4 -- vwuz1_ge_vwuc1_then_la1 + // [2279] if(fgets::remaining#11>=$200) goto fgets::@4 -- vwuz1_ge_vwuc1_then_la1 lda.z remaining+1 cmp #>$200 bcc !+ @@ -14979,26 +15102,26 @@ fgets: { !: // fgets::@9 // cx16_k_macptr(remaining, ptr) - // [2266] cx16_k_macptr::bytes = fgets::remaining#11 -- vbuz1=vwuz2 + // [2280] cx16_k_macptr::bytes = fgets::remaining#11 -- vbuz1=vwuz2 lda.z remaining sta.z cx16_k_macptr.bytes - // [2267] cx16_k_macptr::buffer = (void *)fgets::ptr#10 -- pvoz1=pvoz2 + // [2281] cx16_k_macptr::buffer = (void *)fgets::ptr#10 -- pvoz1=pvoz2 lda.z ptr sta.z cx16_k_macptr.buffer lda.z ptr+1 sta.z cx16_k_macptr.buffer+1 - // [2268] call cx16_k_macptr + // [2282] call cx16_k_macptr jsr cx16_k_macptr - // [2269] cx16_k_macptr::return#4 = cx16_k_macptr::return#1 + // [2283] cx16_k_macptr::return#4 = cx16_k_macptr::return#1 // fgets::@15 __b15: // bytes = cx16_k_macptr(remaining, ptr) - // [2270] fgets::bytes#3 = cx16_k_macptr::return#4 - // [2271] phi from fgets::@13 fgets::@14 fgets::@15 to fgets::cbm_k_readst2 [phi:fgets::@13/fgets::@14/fgets::@15->fgets::cbm_k_readst2] - // [2271] phi fgets::bytes#10 = fgets::bytes#1 [phi:fgets::@13/fgets::@14/fgets::@15->fgets::cbm_k_readst2#0] -- register_copy + // [2284] fgets::bytes#3 = cx16_k_macptr::return#4 + // [2285] phi from fgets::@13 fgets::@14 fgets::@15 to fgets::cbm_k_readst2 [phi:fgets::@13/fgets::@14/fgets::@15->fgets::cbm_k_readst2] + // [2285] phi fgets::bytes#10 = fgets::bytes#1 [phi:fgets::@13/fgets::@14/fgets::@15->fgets::cbm_k_readst2#0] -- register_copy // fgets::cbm_k_readst2 // char status - // [2272] fgets::cbm_k_readst2_status = 0 -- vbuz1=vbuc1 + // [2286] fgets::cbm_k_readst2_status = 0 -- vbuz1=vbuc1 lda #0 sta.z cbm_k_readst2_status // asm @@ -15006,32 +15129,32 @@ fgets: { jsr CBM_READST sta cbm_k_readst2_status // return status; - // [2274] fgets::cbm_k_readst2_return#0 = fgets::cbm_k_readst2_status -- vbuz1=vbuz2 + // [2288] fgets::cbm_k_readst2_return#0 = fgets::cbm_k_readst2_status -- vbuz1=vbuz2 sta.z cbm_k_readst2_return // fgets::cbm_k_readst2_@return // } - // [2275] fgets::cbm_k_readst2_return#1 = fgets::cbm_k_readst2_return#0 + // [2289] fgets::cbm_k_readst2_return#1 = fgets::cbm_k_readst2_return#0 // fgets::@12 // cbm_k_readst() - // [2276] fgets::$8 = fgets::cbm_k_readst2_return#1 + // [2290] fgets::$8 = fgets::cbm_k_readst2_return#1 // __status = cbm_k_readst() - // [2277] ((char *)&__stdio_file+$46)[fgets::sp#0] = fgets::$8 -- pbuc1_derefidx_vbuz1=vbuz2 + // [2291] ((char *)&__stdio_file+$46)[fgets::sp#0] = fgets::$8 -- pbuc1_derefidx_vbuz1=vbuz2 lda.z fgets__8 ldy.z sp sta __stdio_file+$46,y // __status & 0xBF - // [2278] fgets::$9 = ((char *)&__stdio_file+$46)[fgets::sp#0] & $bf -- vbuz1=pbuc1_derefidx_vbuz2_band_vbuc2 + // [2292] fgets::$9 = ((char *)&__stdio_file+$46)[fgets::sp#0] & $bf -- vbuz1=pbuc1_derefidx_vbuz2_band_vbuc2 lda #$bf and __stdio_file+$46,y sta.z fgets__9 // if (__status & 0xBF) - // [2279] if(0==fgets::$9) goto fgets::@5 -- 0_eq_vbuz1_then_la1 + // [2293] if(0==fgets::$9) goto fgets::@5 -- 0_eq_vbuz1_then_la1 beq __b5 jmp __b8 // fgets::@5 __b5: // if (bytes == 0xFFFF) - // [2280] if(fgets::bytes#10!=$ffff) goto fgets::@6 -- vwuz1_neq_vwuc1_then_la1 + // [2294] if(fgets::bytes#10!=$ffff) goto fgets::@6 -- vwuz1_neq_vwuc1_then_la1 lda.z bytes+1 cmp #>$ffff bne __b6 @@ -15042,7 +15165,7 @@ fgets: { // fgets::@6 __b6: // read += bytes - // [2281] fgets::read#1 = fgets::read#10 + fgets::bytes#10 -- vwuz1=vwuz1_plus_vwuz2 + // [2295] fgets::read#1 = fgets::read#10 + fgets::bytes#10 -- vwuz1=vwuz1_plus_vwuz2 clc lda.z read adc.z bytes @@ -15051,7 +15174,7 @@ fgets: { adc.z bytes+1 sta.z read+1 // ptr += bytes - // [2282] fgets::ptr#0 = fgets::ptr#10 + fgets::bytes#10 -- pbuz1=pbuz1_plus_vwuz2 + // [2296] fgets::ptr#0 = fgets::ptr#10 + fgets::bytes#10 -- pbuz1=pbuz1_plus_vwuz2 clc lda.z ptr adc.z bytes @@ -15060,16 +15183,16 @@ fgets: { adc.z bytes+1 sta.z ptr+1 // BYTE1(ptr) - // [2283] fgets::$13 = byte1 fgets::ptr#0 -- vbuz1=_byte1_pbuz2 + // [2297] fgets::$13 = byte1 fgets::ptr#0 -- vbuz1=_byte1_pbuz2 sta.z fgets__13 // if (BYTE1(ptr) == 0xC0) - // [2284] if(fgets::$13!=$c0) goto fgets::@7 -- vbuz1_neq_vbuc1_then_la1 + // [2298] if(fgets::$13!=$c0) goto fgets::@7 -- vbuz1_neq_vbuc1_then_la1 lda #$c0 cmp.z fgets__13 bne __b7 // fgets::@10 // ptr -= 0x2000 - // [2285] fgets::ptr#1 = fgets::ptr#0 - $2000 -- pbuz1=pbuz1_minus_vwuc1 + // [2299] fgets::ptr#1 = fgets::ptr#0 - $2000 -- pbuz1=pbuz1_minus_vwuc1 lda.z ptr sec sbc #<$2000 @@ -15077,12 +15200,12 @@ fgets: { lda.z ptr+1 sbc #>$2000 sta.z ptr+1 - // [2286] phi from fgets::@10 fgets::@6 to fgets::@7 [phi:fgets::@10/fgets::@6->fgets::@7] - // [2286] phi fgets::ptr#14 = fgets::ptr#1 [phi:fgets::@10/fgets::@6->fgets::@7#0] -- register_copy + // [2300] phi from fgets::@10 fgets::@6 to fgets::@7 [phi:fgets::@10/fgets::@6->fgets::@7] + // [2300] phi fgets::ptr#14 = fgets::ptr#1 [phi:fgets::@10/fgets::@6->fgets::@7#0] -- register_copy // fgets::@7 __b7: // remaining -= bytes - // [2287] fgets::remaining#1 = fgets::remaining#11 - fgets::bytes#10 -- vwuz1=vwuz1_minus_vwuz2 + // [2301] fgets::remaining#1 = fgets::remaining#11 - fgets::bytes#10 -- vwuz1=vwuz1_minus_vwuz2 lda.z remaining sec sbc.z bytes @@ -15091,23 +15214,23 @@ fgets: { sbc.z bytes+1 sta.z remaining+1 // while ((__status == 0) && ((size && remaining) || !size)) - // [2288] if(((char *)&__stdio_file+$46)[fgets::sp#0]==0) goto fgets::@16 -- pbuc1_derefidx_vbuz1_eq_0_then_la1 + // [2302] if(((char *)&__stdio_file+$46)[fgets::sp#0]==0) goto fgets::@16 -- pbuc1_derefidx_vbuz1_eq_0_then_la1 ldy.z sp lda __stdio_file+$46,y cmp #0 beq __b16 - // [2260] phi from fgets::@17 fgets::@7 to fgets::@return [phi:fgets::@17/fgets::@7->fgets::@return] - // [2260] phi fgets::return#1 = fgets::read#1 [phi:fgets::@17/fgets::@7->fgets::@return#0] -- register_copy + // [2274] phi from fgets::@17 fgets::@7 to fgets::@return [phi:fgets::@17/fgets::@7->fgets::@return] + // [2274] phi fgets::return#1 = fgets::read#1 [phi:fgets::@17/fgets::@7->fgets::@return#0] -- register_copy rts // fgets::@16 __b16: // while ((__status == 0) && ((size && remaining) || !size)) - // [2289] if(0==fgets::size#11) goto fgets::@17 -- 0_eq_vwuz1_then_la1 + // [2303] if(0==fgets::size#11) goto fgets::@17 -- 0_eq_vwuz1_then_la1 lda.z size ora.z size+1 beq __b17 // fgets::@18 - // [2290] if(0!=fgets::remaining#1) goto fgets::@2 -- 0_neq_vwuz1_then_la1 + // [2304] if(0!=fgets::remaining#1) goto fgets::@2 -- 0_neq_vwuz1_then_la1 lda.z remaining ora.z remaining+1 beq !__b2+ @@ -15115,7 +15238,7 @@ fgets: { !__b2: // fgets::@17 __b17: - // [2291] if(0==fgets::size#11) goto fgets::@2 -- 0_eq_vwuz1_then_la1 + // [2305] if(0==fgets::size#11) goto fgets::@2 -- 0_eq_vwuz1_then_la1 lda.z size ora.z size+1 bne !__b2+ @@ -15125,40 +15248,43 @@ fgets: { // fgets::@4 __b4: // cx16_k_macptr(512, ptr) - // [2292] cx16_k_macptr::bytes = $200 -- vbuz1=vwuc1 + // [2306] cx16_k_macptr::bytes = $200 -- vbuz1=vwuc1 lda #<$200 sta.z cx16_k_macptr.bytes - // [2293] cx16_k_macptr::buffer = (void *)fgets::ptr#10 -- pvoz1=pvoz2 + // [2307] cx16_k_macptr::buffer = (void *)fgets::ptr#10 -- pvoz1=pvoz2 lda.z ptr sta.z cx16_k_macptr.buffer lda.z ptr+1 sta.z cx16_k_macptr.buffer+1 - // [2294] call cx16_k_macptr + // [2308] call cx16_k_macptr jsr cx16_k_macptr - // [2295] cx16_k_macptr::return#3 = cx16_k_macptr::return#1 + // [2309] cx16_k_macptr::return#3 = cx16_k_macptr::return#1 // fgets::@14 // bytes = cx16_k_macptr(512, ptr) - // [2296] fgets::bytes#2 = cx16_k_macptr::return#3 + // [2310] fgets::bytes#2 = cx16_k_macptr::return#3 jmp __b15 // fgets::@3 __b3: // cx16_k_macptr(0, ptr) - // [2297] cx16_k_macptr::bytes = 0 -- vbuz1=vbuc1 + // [2311] cx16_k_macptr::bytes = 0 -- vbuz1=vbuc1 lda #0 sta.z cx16_k_macptr.bytes - // [2298] cx16_k_macptr::buffer = (void *)fgets::ptr#10 -- pvoz1=pvoz2 + // [2312] cx16_k_macptr::buffer = (void *)fgets::ptr#10 -- pvoz1=pvoz2 lda.z ptr sta.z cx16_k_macptr.buffer lda.z ptr+1 sta.z cx16_k_macptr.buffer+1 - // [2299] call cx16_k_macptr + // [2313] call cx16_k_macptr jsr cx16_k_macptr - // [2300] cx16_k_macptr::return#2 = cx16_k_macptr::return#1 + // [2314] cx16_k_macptr::return#2 = cx16_k_macptr::return#1 // fgets::@13 // bytes = cx16_k_macptr(0, ptr) - // [2301] fgets::bytes#1 = cx16_k_macptr::return#2 + // [2315] fgets::bytes#1 = cx16_k_macptr::return#2 jmp __b15 + .segment Data + cbm_k_chkin1_channel: .byte 0 } +.segment Code // fclose /** * @brief Close a file. @@ -15168,27 +15294,27 @@ fgets: { * - 0x0000: Something is wrong! Kernal Error Code (https://commodore.ca/manuals/pdfs/commodore_error_messages.pdf) * - other: OK! The last pointer between 0xA000 and 0xBFFF is returned. Note that the last pointer is indicating the first free byte. */ -// int fclose(__zp($a9) struct $2 *stream) +// int fclose(__zp($5f) struct $2 *stream) fclose: { - .label fclose__1 = $65 - .label fclose__4 = $44 - .label fclose__6 = $bb - .label sp = $bb - .label cbm_k_readst1_return = $65 - .label cbm_k_readst2_return = $44 - .label stream = $a9 + .label fclose__1 = $66 + .label fclose__4 = $3c + .label fclose__6 = $ba + .label sp = $ba + .label cbm_k_readst1_return = $66 + .label cbm_k_readst2_return = $3c + .label stream = $5f // unsigned char sp = (unsigned char)stream - // [2303] fclose::sp#0 = (char)fclose::stream#2 -- vbuz1=_byte_pssz2 + // [2317] fclose::sp#0 = (char)fclose::stream#2 -- vbuz1=_byte_pssz2 lda.z stream sta.z sp // cbm_k_chkin(__logical) - // [2304] fclose::cbm_k_chkin1_channel = ((char *)&__stdio_file+$40)[fclose::sp#0] -- vbum1=pbuc1_derefidx_vbuz2 + // [2318] fclose::cbm_k_chkin1_channel = ((char *)&__stdio_file+$40)[fclose::sp#0] -- vbum1=pbuc1_derefidx_vbuz2 tay lda __stdio_file+$40,y sta cbm_k_chkin1_channel // fclose::cbm_k_chkin1 // char status - // [2305] fclose::cbm_k_chkin1_status = 0 -- vbum1=vbuc1 + // [2319] fclose::cbm_k_chkin1_status = 0 -- vbum1=vbuc1 lda #0 sta cbm_k_chkin1_status // asm @@ -15198,7 +15324,7 @@ fclose: { sta cbm_k_chkin1_status // fclose::cbm_k_readst1 // char status - // [2307] fclose::cbm_k_readst1_status = 0 -- vbum1=vbuc1 + // [2321] fclose::cbm_k_readst1_status = 0 -- vbum1=vbuc1 lda #0 sta cbm_k_readst1_status // asm @@ -15206,32 +15332,32 @@ fclose: { jsr CBM_READST sta cbm_k_readst1_status // return status; - // [2309] fclose::cbm_k_readst1_return#0 = fclose::cbm_k_readst1_status -- vbuz1=vbum2 + // [2323] fclose::cbm_k_readst1_return#0 = fclose::cbm_k_readst1_status -- vbuz1=vbum2 sta.z cbm_k_readst1_return // fclose::cbm_k_readst1_@return // } - // [2310] fclose::cbm_k_readst1_return#1 = fclose::cbm_k_readst1_return#0 + // [2324] fclose::cbm_k_readst1_return#1 = fclose::cbm_k_readst1_return#0 // fclose::@3 // cbm_k_readst() - // [2311] fclose::$1 = fclose::cbm_k_readst1_return#1 + // [2325] fclose::$1 = fclose::cbm_k_readst1_return#1 // __status = cbm_k_readst() - // [2312] ((char *)&__stdio_file+$46)[fclose::sp#0] = fclose::$1 -- pbuc1_derefidx_vbuz1=vbuz2 + // [2326] ((char *)&__stdio_file+$46)[fclose::sp#0] = fclose::$1 -- pbuc1_derefidx_vbuz1=vbuz2 lda.z fclose__1 ldy.z sp sta __stdio_file+$46,y // if (__status) - // [2313] if(0==((char *)&__stdio_file+$46)[fclose::sp#0]) goto fclose::@1 -- 0_eq_pbuc1_derefidx_vbuz1_then_la1 + // [2327] if(0==((char *)&__stdio_file+$46)[fclose::sp#0]) goto fclose::@1 -- 0_eq_pbuc1_derefidx_vbuz1_then_la1 lda __stdio_file+$46,y cmp #0 beq __b1 // fclose::@return // } - // [2314] return + // [2328] return rts // fclose::@1 __b1: // cbm_k_close(__logical) - // [2315] fclose::cbm_k_close1_channel = ((char *)&__stdio_file+$40)[fclose::sp#0] -- vbum1=pbuc1_derefidx_vbuz2 + // [2329] fclose::cbm_k_close1_channel = ((char *)&__stdio_file+$40)[fclose::sp#0] -- vbum1=pbuc1_derefidx_vbuz2 ldy.z sp lda __stdio_file+$40,y sta cbm_k_close1_channel @@ -15241,7 +15367,7 @@ fclose: { jsr CBM_CLOSE // fclose::cbm_k_readst2 // char status - // [2317] fclose::cbm_k_readst2_status = 0 -- vbum1=vbuc1 + // [2331] fclose::cbm_k_readst2_status = 0 -- vbum1=vbuc1 lda #0 sta cbm_k_readst2_status // asm @@ -15249,21 +15375,21 @@ fclose: { jsr CBM_READST sta cbm_k_readst2_status // return status; - // [2319] fclose::cbm_k_readst2_return#0 = fclose::cbm_k_readst2_status -- vbuz1=vbum2 + // [2333] fclose::cbm_k_readst2_return#0 = fclose::cbm_k_readst2_status -- vbuz1=vbum2 sta.z cbm_k_readst2_return // fclose::cbm_k_readst2_@return // } - // [2320] fclose::cbm_k_readst2_return#1 = fclose::cbm_k_readst2_return#0 + // [2334] fclose::cbm_k_readst2_return#1 = fclose::cbm_k_readst2_return#0 // fclose::@4 // cbm_k_readst() - // [2321] fclose::$4 = fclose::cbm_k_readst2_return#1 + // [2335] fclose::$4 = fclose::cbm_k_readst2_return#1 // __status = cbm_k_readst() - // [2322] ((char *)&__stdio_file+$46)[fclose::sp#0] = fclose::$4 -- pbuc1_derefidx_vbuz1=vbuz2 + // [2336] ((char *)&__stdio_file+$46)[fclose::sp#0] = fclose::$4 -- pbuc1_derefidx_vbuz1=vbuz2 lda.z fclose__4 ldy.z sp sta __stdio_file+$46,y // if (__status) - // [2323] if(0==((char *)&__stdio_file+$46)[fclose::sp#0]) goto fclose::@2 -- 0_eq_pbuc1_derefidx_vbuz1_then_la1 + // [2337] if(0==((char *)&__stdio_file+$46)[fclose::sp#0]) goto fclose::@2 -- 0_eq_pbuc1_derefidx_vbuz1_then_la1 lda __stdio_file+$46,y cmp #0 beq __b2 @@ -15271,26 +15397,26 @@ fclose: { // fclose::@2 __b2: // __logical = 0 - // [2324] ((char *)&__stdio_file+$40)[fclose::sp#0] = 0 -- pbuc1_derefidx_vbuz1=vbuc2 + // [2338] ((char *)&__stdio_file+$40)[fclose::sp#0] = 0 -- pbuc1_derefidx_vbuz1=vbuc2 lda #0 ldy.z sp sta __stdio_file+$40,y // __device = 0 - // [2325] ((char *)&__stdio_file+$42)[fclose::sp#0] = 0 -- pbuc1_derefidx_vbuz1=vbuc2 + // [2339] ((char *)&__stdio_file+$42)[fclose::sp#0] = 0 -- pbuc1_derefidx_vbuz1=vbuc2 sta __stdio_file+$42,y // __channel = 0 - // [2326] ((char *)&__stdio_file+$44)[fclose::sp#0] = 0 -- pbuc1_derefidx_vbuz1=vbuc2 + // [2340] ((char *)&__stdio_file+$44)[fclose::sp#0] = 0 -- pbuc1_derefidx_vbuz1=vbuc2 sta __stdio_file+$44,y // __filename - // [2327] fclose::$6 = fclose::sp#0 << 1 -- vbuz1=vbuz1_rol_1 + // [2341] fclose::$6 = fclose::sp#0 << 1 -- vbuz1=vbuz1_rol_1 asl.z fclose__6 // *__filename = '\0' - // [2328] ((char *)&__stdio_file)[fclose::$6] = '@' -- pbuc1_derefidx_vbuz1=vbuc2 + // [2342] ((char *)&__stdio_file)[fclose::$6] = '@' -- pbuc1_derefidx_vbuz1=vbuc2 lda #'@' ldy.z fclose__6 sta __stdio_file,y // __stdio_filecount--; - // [2329] __stdio_filecount = -- __stdio_filecount -- vbum1=_dec_vbum1 + // [2343] __stdio_filecount = -- __stdio_filecount -- vbum1=_dec_vbum1 dec __stdio_filecount rts .segment Data @@ -15303,87 +15429,87 @@ fclose: { .segment Code // strlen // Computes the length of the string str up to but not including the terminating null character. -// __zp($53) unsigned int strlen(__zp($50) char *str) +// __zp($54) unsigned int strlen(__zp($50) char *str) strlen: { - .label return = $53 - .label len = $53 + .label return = $54 + .label len = $54 .label str = $50 - // [2331] phi from strlen to strlen::@1 [phi:strlen->strlen::@1] - // [2331] phi strlen::len#2 = 0 [phi:strlen->strlen::@1#0] -- vwuz1=vwuc1 + // [2345] phi from strlen to strlen::@1 [phi:strlen->strlen::@1] + // [2345] phi strlen::len#2 = 0 [phi:strlen->strlen::@1#0] -- vwuz1=vwuc1 lda #<0 sta.z len sta.z len+1 - // [2331] phi strlen::str#6 = strlen::str#8 [phi:strlen->strlen::@1#1] -- register_copy + // [2345] phi strlen::str#6 = strlen::str#8 [phi:strlen->strlen::@1#1] -- register_copy // strlen::@1 __b1: // while(*str) - // [2332] if(0!=*strlen::str#6) goto strlen::@2 -- 0_neq__deref_pbuz1_then_la1 + // [2346] if(0!=*strlen::str#6) goto strlen::@2 -- 0_neq__deref_pbuz1_then_la1 ldy #0 lda (str),y cmp #0 bne __b2 // strlen::@return // } - // [2333] return + // [2347] return rts // strlen::@2 __b2: // len++; - // [2334] strlen::len#1 = ++ strlen::len#2 -- vwuz1=_inc_vwuz1 + // [2348] strlen::len#1 = ++ strlen::len#2 -- vwuz1=_inc_vwuz1 inc.z len bne !+ inc.z len+1 !: // str++; - // [2335] strlen::str#1 = ++ strlen::str#6 -- pbuz1=_inc_pbuz1 + // [2349] strlen::str#1 = ++ strlen::str#6 -- pbuz1=_inc_pbuz1 inc.z str bne !+ inc.z str+1 !: - // [2331] phi from strlen::@2 to strlen::@1 [phi:strlen::@2->strlen::@1] - // [2331] phi strlen::len#2 = strlen::len#1 [phi:strlen::@2->strlen::@1#0] -- register_copy - // [2331] phi strlen::str#6 = strlen::str#1 [phi:strlen::@2->strlen::@1#1] -- register_copy + // [2345] phi from strlen::@2 to strlen::@1 [phi:strlen::@2->strlen::@1] + // [2345] phi strlen::len#2 = strlen::len#1 [phi:strlen::@2->strlen::@1#0] -- register_copy + // [2345] phi strlen::str#6 = strlen::str#1 [phi:strlen::@2->strlen::@1#1] -- register_copy jmp __b1 } // printf_padding // Print a padding char a number of times -// void printf_padding(__zp($ce) void (*putc)(char), __zp($68) char pad, __zp($61) char length) +// void printf_padding(__zp($ce) void (*putc)(char), __zp($68) char pad, __zp($3c) char length) printf_padding: { .label i = $52 .label putc = $ce - .label length = $61 + .label length = $3c .label pad = $68 - // [2337] phi from printf_padding to printf_padding::@1 [phi:printf_padding->printf_padding::@1] - // [2337] phi printf_padding::i#2 = 0 [phi:printf_padding->printf_padding::@1#0] -- vbuz1=vbuc1 + // [2351] phi from printf_padding to printf_padding::@1 [phi:printf_padding->printf_padding::@1] + // [2351] phi printf_padding::i#2 = 0 [phi:printf_padding->printf_padding::@1#0] -- vbuz1=vbuc1 lda #0 sta.z i // printf_padding::@1 __b1: // for(char i=0;iprintf_padding::@1] - // [2337] phi printf_padding::i#2 = printf_padding::i#1 [phi:printf_padding::@3->printf_padding::@1#0] -- register_copy + // [2351] phi from printf_padding::@3 to printf_padding::@1 [phi:printf_padding::@3->printf_padding::@1] + // [2351] phi printf_padding::i#2 = printf_padding::i#1 [phi:printf_padding::@3->printf_padding::@1#0] -- register_copy jmp __b1 // Outside Flow icall36: @@ -15395,144 +15521,144 @@ printf_padding: { // - value : The number to be converted to RADIX // - buffer : receives the string representing the number and zero-termination. // - radix : The radix to convert the number to (from the enum RADIX) -// void uctoa(__zp($30) char value, __zp($53) char *buffer, __zp($5c) char radix) +// void uctoa(__zp($30) char value, __zp($54) char *buffer, __zp($61) char radix) uctoa: { - .label uctoa__4 = $65 - .label digit_value = $44 - .label buffer = $53 + .label uctoa__4 = $66 + .label digit_value = $3c + .label buffer = $54 .label digit = $62 .label value = $30 - .label radix = $5c + .label radix = $61 .label started = $69 - .label max_digits = $b1 - .label digit_values = $b2 + .label max_digits = $b3 + .label digit_values = $b4 // if(radix==DECIMAL) - // [2344] if(uctoa::radix#0==DECIMAL) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2358] if(uctoa::radix#0==DECIMAL) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #DECIMAL cmp.z radix beq __b2 // uctoa::@2 // if(radix==HEXADECIMAL) - // [2345] if(uctoa::radix#0==HEXADECIMAL) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2359] if(uctoa::radix#0==HEXADECIMAL) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #HEXADECIMAL cmp.z radix beq __b3 // uctoa::@3 // if(radix==OCTAL) - // [2346] if(uctoa::radix#0==OCTAL) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2360] if(uctoa::radix#0==OCTAL) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #OCTAL cmp.z radix beq __b4 // uctoa::@4 // if(radix==BINARY) - // [2347] if(uctoa::radix#0==BINARY) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2361] if(uctoa::radix#0==BINARY) goto uctoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #BINARY cmp.z radix beq __b5 // uctoa::@5 // *buffer++ = 'e' - // [2348] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS) = 'e' -- _deref_pbuc1=vbuc2 + // [2362] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS) = 'e' -- _deref_pbuc1=vbuc2 // Unknown radix lda #'e' sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS // *buffer++ = 'r' - // [2349] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1) = 'r' -- _deref_pbuc1=vbuc2 + // [2363] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1) = 'r' -- _deref_pbuc1=vbuc2 lda #'r' sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1 - // [2350] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2) = 'r' -- _deref_pbuc1=vbuc2 + // [2364] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2) = 'r' -- _deref_pbuc1=vbuc2 sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2 // *buffer = 0 - // [2351] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3) = 0 -- _deref_pbuc1=vbuc2 + // [2365] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3) = 0 -- _deref_pbuc1=vbuc2 lda #0 sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3 // uctoa::@return // } - // [2352] return + // [2366] return rts - // [2353] phi from uctoa to uctoa::@1 [phi:uctoa->uctoa::@1] + // [2367] phi from uctoa to uctoa::@1 [phi:uctoa->uctoa::@1] __b2: - // [2353] phi uctoa::digit_values#8 = RADIX_DECIMAL_VALUES_CHAR [phi:uctoa->uctoa::@1#0] -- pbuz1=pbuc1 + // [2367] phi uctoa::digit_values#8 = RADIX_DECIMAL_VALUES_CHAR [phi:uctoa->uctoa::@1#0] -- pbuz1=pbuc1 lda #RADIX_DECIMAL_VALUES_CHAR sta.z digit_values+1 - // [2353] phi uctoa::max_digits#7 = 3 [phi:uctoa->uctoa::@1#1] -- vbuz1=vbuc1 + // [2367] phi uctoa::max_digits#7 = 3 [phi:uctoa->uctoa::@1#1] -- vbuz1=vbuc1 lda #3 sta.z max_digits jmp __b1 - // [2353] phi from uctoa::@2 to uctoa::@1 [phi:uctoa::@2->uctoa::@1] + // [2367] phi from uctoa::@2 to uctoa::@1 [phi:uctoa::@2->uctoa::@1] __b3: - // [2353] phi uctoa::digit_values#8 = RADIX_HEXADECIMAL_VALUES_CHAR [phi:uctoa::@2->uctoa::@1#0] -- pbuz1=pbuc1 + // [2367] phi uctoa::digit_values#8 = RADIX_HEXADECIMAL_VALUES_CHAR [phi:uctoa::@2->uctoa::@1#0] -- pbuz1=pbuc1 lda #RADIX_HEXADECIMAL_VALUES_CHAR sta.z digit_values+1 - // [2353] phi uctoa::max_digits#7 = 2 [phi:uctoa::@2->uctoa::@1#1] -- vbuz1=vbuc1 + // [2367] phi uctoa::max_digits#7 = 2 [phi:uctoa::@2->uctoa::@1#1] -- vbuz1=vbuc1 lda #2 sta.z max_digits jmp __b1 - // [2353] phi from uctoa::@3 to uctoa::@1 [phi:uctoa::@3->uctoa::@1] + // [2367] phi from uctoa::@3 to uctoa::@1 [phi:uctoa::@3->uctoa::@1] __b4: - // [2353] phi uctoa::digit_values#8 = RADIX_OCTAL_VALUES_CHAR [phi:uctoa::@3->uctoa::@1#0] -- pbuz1=pbuc1 + // [2367] phi uctoa::digit_values#8 = RADIX_OCTAL_VALUES_CHAR [phi:uctoa::@3->uctoa::@1#0] -- pbuz1=pbuc1 lda #RADIX_OCTAL_VALUES_CHAR sta.z digit_values+1 - // [2353] phi uctoa::max_digits#7 = 3 [phi:uctoa::@3->uctoa::@1#1] -- vbuz1=vbuc1 + // [2367] phi uctoa::max_digits#7 = 3 [phi:uctoa::@3->uctoa::@1#1] -- vbuz1=vbuc1 lda #3 sta.z max_digits jmp __b1 - // [2353] phi from uctoa::@4 to uctoa::@1 [phi:uctoa::@4->uctoa::@1] + // [2367] phi from uctoa::@4 to uctoa::@1 [phi:uctoa::@4->uctoa::@1] __b5: - // [2353] phi uctoa::digit_values#8 = RADIX_BINARY_VALUES_CHAR [phi:uctoa::@4->uctoa::@1#0] -- pbuz1=pbuc1 + // [2367] phi uctoa::digit_values#8 = RADIX_BINARY_VALUES_CHAR [phi:uctoa::@4->uctoa::@1#0] -- pbuz1=pbuc1 lda #RADIX_BINARY_VALUES_CHAR sta.z digit_values+1 - // [2353] phi uctoa::max_digits#7 = 8 [phi:uctoa::@4->uctoa::@1#1] -- vbuz1=vbuc1 + // [2367] phi uctoa::max_digits#7 = 8 [phi:uctoa::@4->uctoa::@1#1] -- vbuz1=vbuc1 lda #8 sta.z max_digits // uctoa::@1 __b1: - // [2354] phi from uctoa::@1 to uctoa::@6 [phi:uctoa::@1->uctoa::@6] - // [2354] phi uctoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:uctoa::@1->uctoa::@6#0] -- pbuz1=pbuc1 + // [2368] phi from uctoa::@1 to uctoa::@6 [phi:uctoa::@1->uctoa::@6] + // [2368] phi uctoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:uctoa::@1->uctoa::@6#0] -- pbuz1=pbuc1 lda #printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS sta.z buffer+1 - // [2354] phi uctoa::started#2 = 0 [phi:uctoa::@1->uctoa::@6#1] -- vbuz1=vbuc1 + // [2368] phi uctoa::started#2 = 0 [phi:uctoa::@1->uctoa::@6#1] -- vbuz1=vbuc1 lda #0 sta.z started - // [2354] phi uctoa::value#2 = uctoa::value#1 [phi:uctoa::@1->uctoa::@6#2] -- register_copy - // [2354] phi uctoa::digit#2 = 0 [phi:uctoa::@1->uctoa::@6#3] -- vbuz1=vbuc1 + // [2368] phi uctoa::value#2 = uctoa::value#1 [phi:uctoa::@1->uctoa::@6#2] -- register_copy + // [2368] phi uctoa::digit#2 = 0 [phi:uctoa::@1->uctoa::@6#3] -- vbuz1=vbuc1 sta.z digit // uctoa::@6 __b6: // max_digits-1 - // [2355] uctoa::$4 = uctoa::max_digits#7 - 1 -- vbuz1=vbuz2_minus_1 + // [2369] uctoa::$4 = uctoa::max_digits#7 - 1 -- vbuz1=vbuz2_minus_1 ldx.z max_digits dex stx.z uctoa__4 // for( char digit=0; digit= digit_value) - // [2361] if(0!=uctoa::started#2) goto uctoa::@10 -- 0_neq_vbuz1_then_la1 + // [2375] if(0!=uctoa::started#2) goto uctoa::@10 -- 0_neq_vbuz1_then_la1 lda.z started bne __b10 // uctoa::@12 - // [2362] if(uctoa::value#2>=uctoa::digit_value#0) goto uctoa::@10 -- vbuz1_ge_vbuz2_then_la1 + // [2376] if(uctoa::value#2>=uctoa::digit_value#0) goto uctoa::@10 -- vbuz1_ge_vbuz2_then_la1 lda.z value cmp.z digit_value bcs __b10 - // [2363] phi from uctoa::@12 to uctoa::@9 [phi:uctoa::@12->uctoa::@9] - // [2363] phi uctoa::buffer#14 = uctoa::buffer#11 [phi:uctoa::@12->uctoa::@9#0] -- register_copy - // [2363] phi uctoa::started#4 = uctoa::started#2 [phi:uctoa::@12->uctoa::@9#1] -- register_copy - // [2363] phi uctoa::value#6 = uctoa::value#2 [phi:uctoa::@12->uctoa::@9#2] -- register_copy + // [2377] phi from uctoa::@12 to uctoa::@9 [phi:uctoa::@12->uctoa::@9] + // [2377] phi uctoa::buffer#14 = uctoa::buffer#11 [phi:uctoa::@12->uctoa::@9#0] -- register_copy + // [2377] phi uctoa::started#4 = uctoa::started#2 [phi:uctoa::@12->uctoa::@9#1] -- register_copy + // [2377] phi uctoa::value#6 = uctoa::value#2 [phi:uctoa::@12->uctoa::@9#2] -- register_copy // uctoa::@9 __b9: // for( char digit=0; digituctoa::@6] - // [2354] phi uctoa::buffer#11 = uctoa::buffer#14 [phi:uctoa::@9->uctoa::@6#0] -- register_copy - // [2354] phi uctoa::started#2 = uctoa::started#4 [phi:uctoa::@9->uctoa::@6#1] -- register_copy - // [2354] phi uctoa::value#2 = uctoa::value#6 [phi:uctoa::@9->uctoa::@6#2] -- register_copy - // [2354] phi uctoa::digit#2 = uctoa::digit#1 [phi:uctoa::@9->uctoa::@6#3] -- register_copy + // [2368] phi from uctoa::@9 to uctoa::@6 [phi:uctoa::@9->uctoa::@6] + // [2368] phi uctoa::buffer#11 = uctoa::buffer#14 [phi:uctoa::@9->uctoa::@6#0] -- register_copy + // [2368] phi uctoa::started#2 = uctoa::started#4 [phi:uctoa::@9->uctoa::@6#1] -- register_copy + // [2368] phi uctoa::value#2 = uctoa::value#6 [phi:uctoa::@9->uctoa::@6#2] -- register_copy + // [2368] phi uctoa::digit#2 = uctoa::digit#1 [phi:uctoa::@9->uctoa::@6#3] -- register_copy jmp __b6 // uctoa::@10 __b10: // uctoa_append(buffer++, value, digit_value) - // [2365] uctoa_append::buffer#0 = uctoa::buffer#11 -- pbuz1=pbuz2 + // [2379] uctoa_append::buffer#0 = uctoa::buffer#11 -- pbuz1=pbuz2 lda.z buffer sta.z uctoa_append.buffer lda.z buffer+1 sta.z uctoa_append.buffer+1 - // [2366] uctoa_append::value#0 = uctoa::value#2 - // [2367] uctoa_append::sub#0 = uctoa::digit_value#0 - // [2368] call uctoa_append - // [2774] phi from uctoa::@10 to uctoa_append [phi:uctoa::@10->uctoa_append] + // [2380] uctoa_append::value#0 = uctoa::value#2 + // [2381] uctoa_append::sub#0 = uctoa::digit_value#0 + // [2382] call uctoa_append + // [2788] phi from uctoa::@10 to uctoa_append [phi:uctoa::@10->uctoa_append] jsr uctoa_append // uctoa_append(buffer++, value, digit_value) - // [2369] uctoa_append::return#0 = uctoa_append::value#2 + // [2383] uctoa_append::return#0 = uctoa_append::value#2 // uctoa::@11 // value = uctoa_append(buffer++, value, digit_value) - // [2370] uctoa::value#0 = uctoa_append::return#0 + // [2384] uctoa::value#0 = uctoa_append::return#0 // value = uctoa_append(buffer++, value, digit_value); - // [2371] uctoa::buffer#4 = ++ uctoa::buffer#11 -- pbuz1=_inc_pbuz1 + // [2385] uctoa::buffer#4 = ++ uctoa::buffer#11 -- pbuz1=_inc_pbuz1 inc.z buffer bne !+ inc.z buffer+1 !: - // [2363] phi from uctoa::@11 to uctoa::@9 [phi:uctoa::@11->uctoa::@9] - // [2363] phi uctoa::buffer#14 = uctoa::buffer#4 [phi:uctoa::@11->uctoa::@9#0] -- register_copy - // [2363] phi uctoa::started#4 = 1 [phi:uctoa::@11->uctoa::@9#1] -- vbuz1=vbuc1 + // [2377] phi from uctoa::@11 to uctoa::@9 [phi:uctoa::@11->uctoa::@9] + // [2377] phi uctoa::buffer#14 = uctoa::buffer#4 [phi:uctoa::@11->uctoa::@9#0] -- register_copy + // [2377] phi uctoa::started#4 = 1 [phi:uctoa::@11->uctoa::@9#1] -- vbuz1=vbuc1 lda #1 sta.z started - // [2363] phi uctoa::value#6 = uctoa::value#0 [phi:uctoa::@11->uctoa::@9#2] -- register_copy + // [2377] phi uctoa::value#6 = uctoa::value#0 [phi:uctoa::@11->uctoa::@9#2] -- register_copy jmp __b9 } // printf_number_buffer // Print the contents of the number buffer using a specific format. // This handles minimum length, zero-filling, and left/right justification from the format -// void printf_number_buffer(__zp($5a) void (*putc)(char), __zp($cb) char buffer_sign, char *buffer_digits, __zp($37) char format_min_length, char format_justify_left, char format_sign_always, __zp($e0) char format_zero_padding, char format_upper_case, char format_radix) +// void printf_number_buffer(__zp($5b) void (*putc)(char), __zp($cb) char buffer_sign, char *buffer_digits, __zp($36) char format_min_length, char format_justify_left, char format_sign_always, __zp($e2) char format_zero_padding, char format_upper_case, char format_radix) printf_number_buffer: { - .label printf_number_buffer__19 = $53 + .label printf_number_buffer__19 = $54 .label buffer_sign = $cb - .label format_min_length = $37 - .label format_zero_padding = $e0 - .label putc = $5a - .label len = $d8 - .label padding = $d8 + .label format_min_length = $36 + .label format_zero_padding = $e2 + .label putc = $5b + .label len = $da + .label padding = $da // if(format.min_length) - // [2373] if(0==printf_number_buffer::format_min_length#3) goto printf_number_buffer::@1 -- 0_eq_vbuz1_then_la1 + // [2387] if(0==printf_number_buffer::format_min_length#3) goto printf_number_buffer::@1 -- 0_eq_vbuz1_then_la1 lda.z format_min_length beq __b5 - // [2374] phi from printf_number_buffer to printf_number_buffer::@5 [phi:printf_number_buffer->printf_number_buffer::@5] + // [2388] phi from printf_number_buffer to printf_number_buffer::@5 [phi:printf_number_buffer->printf_number_buffer::@5] // printf_number_buffer::@5 // strlen(buffer.digits) - // [2375] call strlen - // [2330] phi from printf_number_buffer::@5 to strlen [phi:printf_number_buffer::@5->strlen] - // [2330] phi strlen::str#8 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:printf_number_buffer::@5->strlen#0] -- pbuz1=pbuc1 + // [2389] call strlen + // [2344] phi from printf_number_buffer::@5 to strlen [phi:printf_number_buffer::@5->strlen] + // [2344] phi strlen::str#8 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:printf_number_buffer::@5->strlen#0] -- pbuz1=pbuc1 lda #printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS sta.z strlen.str+1 jsr strlen // strlen(buffer.digits) - // [2376] strlen::return#3 = strlen::len#2 + // [2390] strlen::return#3 = strlen::len#2 // printf_number_buffer::@11 - // [2377] printf_number_buffer::$19 = strlen::return#3 + // [2391] printf_number_buffer::$19 = strlen::return#3 // signed char len = (signed char)strlen(buffer.digits) - // [2378] printf_number_buffer::len#0 = (signed char)printf_number_buffer::$19 -- vbsz1=_sbyte_vwuz2 + // [2392] printf_number_buffer::len#0 = (signed char)printf_number_buffer::$19 -- vbsz1=_sbyte_vwuz2 // There is a minimum length - work out the padding lda.z printf_number_buffer__19 sta.z len // if(buffer.sign) - // [2379] if(0==printf_number_buffer::buffer_sign#10) goto printf_number_buffer::@10 -- 0_eq_vbuz1_then_la1 + // [2393] if(0==printf_number_buffer::buffer_sign#10) goto printf_number_buffer::@10 -- 0_eq_vbuz1_then_la1 lda.z buffer_sign beq __b10 // printf_number_buffer::@6 // len++; - // [2380] printf_number_buffer::len#1 = ++ printf_number_buffer::len#0 -- vbsz1=_inc_vbsz1 + // [2394] printf_number_buffer::len#1 = ++ printf_number_buffer::len#0 -- vbsz1=_inc_vbsz1 inc.z len - // [2381] phi from printf_number_buffer::@11 printf_number_buffer::@6 to printf_number_buffer::@10 [phi:printf_number_buffer::@11/printf_number_buffer::@6->printf_number_buffer::@10] - // [2381] phi printf_number_buffer::len#2 = printf_number_buffer::len#0 [phi:printf_number_buffer::@11/printf_number_buffer::@6->printf_number_buffer::@10#0] -- register_copy + // [2395] phi from printf_number_buffer::@11 printf_number_buffer::@6 to printf_number_buffer::@10 [phi:printf_number_buffer::@11/printf_number_buffer::@6->printf_number_buffer::@10] + // [2395] phi printf_number_buffer::len#2 = printf_number_buffer::len#0 [phi:printf_number_buffer::@11/printf_number_buffer::@6->printf_number_buffer::@10#0] -- register_copy // printf_number_buffer::@10 __b10: // padding = (signed char)format.min_length - len - // [2382] printf_number_buffer::padding#1 = (signed char)printf_number_buffer::format_min_length#3 - printf_number_buffer::len#2 -- vbsz1=vbsz2_minus_vbsz1 + // [2396] printf_number_buffer::padding#1 = (signed char)printf_number_buffer::format_min_length#3 - printf_number_buffer::len#2 -- vbsz1=vbsz2_minus_vbsz1 lda.z format_min_length sec sbc.z padding sta.z padding // if(padding<0) - // [2383] if(printf_number_buffer::padding#1>=0) goto printf_number_buffer::@15 -- vbsz1_ge_0_then_la1 + // [2397] if(printf_number_buffer::padding#1>=0) goto printf_number_buffer::@15 -- vbsz1_ge_0_then_la1 cmp #0 bpl __b1 - // [2385] phi from printf_number_buffer printf_number_buffer::@10 to printf_number_buffer::@1 [phi:printf_number_buffer/printf_number_buffer::@10->printf_number_buffer::@1] + // [2399] phi from printf_number_buffer printf_number_buffer::@10 to printf_number_buffer::@1 [phi:printf_number_buffer/printf_number_buffer::@10->printf_number_buffer::@1] __b5: - // [2385] phi printf_number_buffer::padding#10 = 0 [phi:printf_number_buffer/printf_number_buffer::@10->printf_number_buffer::@1#0] -- vbsz1=vbsc1 + // [2399] phi printf_number_buffer::padding#10 = 0 [phi:printf_number_buffer/printf_number_buffer::@10->printf_number_buffer::@1#0] -- vbsz1=vbsc1 lda #0 sta.z padding - // [2384] phi from printf_number_buffer::@10 to printf_number_buffer::@15 [phi:printf_number_buffer::@10->printf_number_buffer::@15] + // [2398] phi from printf_number_buffer::@10 to printf_number_buffer::@15 [phi:printf_number_buffer::@10->printf_number_buffer::@15] // printf_number_buffer::@15 - // [2385] phi from printf_number_buffer::@15 to printf_number_buffer::@1 [phi:printf_number_buffer::@15->printf_number_buffer::@1] - // [2385] phi printf_number_buffer::padding#10 = printf_number_buffer::padding#1 [phi:printf_number_buffer::@15->printf_number_buffer::@1#0] -- register_copy + // [2399] phi from printf_number_buffer::@15 to printf_number_buffer::@1 [phi:printf_number_buffer::@15->printf_number_buffer::@1] + // [2399] phi printf_number_buffer::padding#10 = printf_number_buffer::padding#1 [phi:printf_number_buffer::@15->printf_number_buffer::@1#0] -- register_copy // printf_number_buffer::@1 __b1: // printf_number_buffer::@13 // if(!format.justify_left && !format.zero_padding && padding) - // [2386] if(0!=printf_number_buffer::format_zero_padding#10) goto printf_number_buffer::@2 -- 0_neq_vbuz1_then_la1 + // [2400] if(0!=printf_number_buffer::format_zero_padding#10) goto printf_number_buffer::@2 -- 0_neq_vbuz1_then_la1 lda.z format_zero_padding bne __b2 // printf_number_buffer::@12 - // [2387] if(0!=printf_number_buffer::padding#10) goto printf_number_buffer::@7 -- 0_neq_vbsz1_then_la1 + // [2401] if(0!=printf_number_buffer::padding#10) goto printf_number_buffer::@7 -- 0_neq_vbsz1_then_la1 lda.z padding cmp #0 bne __b7 @@ -15683,44 +15809,44 @@ printf_number_buffer: { // printf_number_buffer::@7 __b7: // printf_padding(putc, ' ',(char)padding) - // [2388] printf_padding::putc#0 = printf_number_buffer::putc#10 -- pprz1=pprz2 + // [2402] printf_padding::putc#0 = printf_number_buffer::putc#10 -- pprz1=pprz2 lda.z putc sta.z printf_padding.putc lda.z putc+1 sta.z printf_padding.putc+1 - // [2389] printf_padding::length#0 = (char)printf_number_buffer::padding#10 -- vbuz1=vbuz2 + // [2403] printf_padding::length#0 = (char)printf_number_buffer::padding#10 -- vbuz1=vbuz2 lda.z padding sta.z printf_padding.length - // [2390] call printf_padding - // [2336] phi from printf_number_buffer::@7 to printf_padding [phi:printf_number_buffer::@7->printf_padding] - // [2336] phi printf_padding::putc#7 = printf_padding::putc#0 [phi:printf_number_buffer::@7->printf_padding#0] -- register_copy - // [2336] phi printf_padding::pad#7 = ' ' [phi:printf_number_buffer::@7->printf_padding#1] -- vbuz1=vbuc1 + // [2404] call printf_padding + // [2350] phi from printf_number_buffer::@7 to printf_padding [phi:printf_number_buffer::@7->printf_padding] + // [2350] phi printf_padding::putc#7 = printf_padding::putc#0 [phi:printf_number_buffer::@7->printf_padding#0] -- register_copy + // [2350] phi printf_padding::pad#7 = ' ' [phi:printf_number_buffer::@7->printf_padding#1] -- vbuz1=vbuc1 lda #' ' sta.z printf_padding.pad - // [2336] phi printf_padding::length#6 = printf_padding::length#0 [phi:printf_number_buffer::@7->printf_padding#2] -- register_copy + // [2350] phi printf_padding::length#6 = printf_padding::length#0 [phi:printf_number_buffer::@7->printf_padding#2] -- register_copy jsr printf_padding // printf_number_buffer::@2 __b2: // if(buffer.sign) - // [2391] if(0==printf_number_buffer::buffer_sign#10) goto printf_number_buffer::@3 -- 0_eq_vbuz1_then_la1 + // [2405] if(0==printf_number_buffer::buffer_sign#10) goto printf_number_buffer::@3 -- 0_eq_vbuz1_then_la1 lda.z buffer_sign beq __b3 // printf_number_buffer::@8 // putc(buffer.sign) - // [2392] stackpush(char) = printf_number_buffer::buffer_sign#10 -- _stackpushbyte_=vbuz1 + // [2406] stackpush(char) = printf_number_buffer::buffer_sign#10 -- _stackpushbyte_=vbuz1 pha - // [2393] callexecute *printf_number_buffer::putc#10 -- call__deref_pprz1 + // [2407] callexecute *printf_number_buffer::putc#10 -- call__deref_pprz1 jsr icall37 // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // printf_number_buffer::@3 __b3: // if(format.zero_padding && padding) - // [2395] if(0==printf_number_buffer::format_zero_padding#10) goto printf_number_buffer::@4 -- 0_eq_vbuz1_then_la1 + // [2409] if(0==printf_number_buffer::format_zero_padding#10) goto printf_number_buffer::@4 -- 0_eq_vbuz1_then_la1 lda.z format_zero_padding beq __b4 // printf_number_buffer::@14 - // [2396] if(0!=printf_number_buffer::padding#10) goto printf_number_buffer::@9 -- 0_neq_vbsz1_then_la1 + // [2410] if(0!=printf_number_buffer::padding#10) goto printf_number_buffer::@9 -- 0_neq_vbsz1_then_la1 lda.z padding cmp #0 bne __b9 @@ -15728,30 +15854,30 @@ printf_number_buffer: { // printf_number_buffer::@9 __b9: // printf_padding(putc, '0',(char)padding) - // [2397] printf_padding::putc#1 = printf_number_buffer::putc#10 -- pprz1=pprz2 + // [2411] printf_padding::putc#1 = printf_number_buffer::putc#10 -- pprz1=pprz2 lda.z putc sta.z printf_padding.putc lda.z putc+1 sta.z printf_padding.putc+1 - // [2398] printf_padding::length#1 = (char)printf_number_buffer::padding#10 -- vbuz1=vbuz2 + // [2412] printf_padding::length#1 = (char)printf_number_buffer::padding#10 -- vbuz1=vbuz2 lda.z padding sta.z printf_padding.length - // [2399] call printf_padding - // [2336] phi from printf_number_buffer::@9 to printf_padding [phi:printf_number_buffer::@9->printf_padding] - // [2336] phi printf_padding::putc#7 = printf_padding::putc#1 [phi:printf_number_buffer::@9->printf_padding#0] -- register_copy - // [2336] phi printf_padding::pad#7 = '0' [phi:printf_number_buffer::@9->printf_padding#1] -- vbuz1=vbuc1 + // [2413] call printf_padding + // [2350] phi from printf_number_buffer::@9 to printf_padding [phi:printf_number_buffer::@9->printf_padding] + // [2350] phi printf_padding::putc#7 = printf_padding::putc#1 [phi:printf_number_buffer::@9->printf_padding#0] -- register_copy + // [2350] phi printf_padding::pad#7 = '0' [phi:printf_number_buffer::@9->printf_padding#1] -- vbuz1=vbuc1 lda #'0' sta.z printf_padding.pad - // [2336] phi printf_padding::length#6 = printf_padding::length#1 [phi:printf_number_buffer::@9->printf_padding#2] -- register_copy + // [2350] phi printf_padding::length#6 = printf_padding::length#1 [phi:printf_number_buffer::@9->printf_padding#2] -- register_copy jsr printf_padding // printf_number_buffer::@4 __b4: // printf_str(putc, buffer.digits) - // [2400] printf_str::putc#0 = printf_number_buffer::putc#10 - // [2401] call printf_str - // [1128] phi from printf_number_buffer::@4 to printf_str [phi:printf_number_buffer::@4->printf_str] - // [1128] phi printf_str::putc#71 = printf_str::putc#0 [phi:printf_number_buffer::@4->printf_str#0] -- register_copy - // [1128] phi printf_str::s#71 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:printf_number_buffer::@4->printf_str#1] -- pbuz1=pbuc1 + // [2414] printf_str::putc#0 = printf_number_buffer::putc#10 + // [2415] call printf_str + // [1138] phi from printf_number_buffer::@4 to printf_str [phi:printf_number_buffer::@4->printf_str] + // [1138] phi printf_str::putc#71 = printf_str::putc#0 [phi:printf_number_buffer::@4->printf_str#0] -- register_copy + // [1138] phi printf_str::s#71 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:printf_number_buffer::@4->printf_str#1] -- pbuz1=pbuc1 lda #printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS @@ -15759,7 +15885,7 @@ printf_number_buffer: { jsr printf_str // printf_number_buffer::@return // } - // [2402] return + // [2416] return rts // Outside Flow icall37: @@ -15776,18 +15902,18 @@ printf_number_buffer: { /* inline */ // __mem() unsigned long rom_address_from_bank(__mem() char rom_bank) rom_address_from_bank: { - .label rom_address_from_bank__1 = $55 - .label return = $55 - .label return_1 = $76 + .label rom_address_from_bank__1 = $56 + .label return = $56 + .label return_1 = $75 // ((unsigned long)(rom_bank)) << 14 - // [2404] rom_address_from_bank::$1 = (unsigned long)rom_address_from_bank::rom_bank#3 -- vduz1=_dword_vbum2 + // [2418] rom_address_from_bank::$1 = (unsigned long)rom_address_from_bank::rom_bank#3 -- vduz1=_dword_vbum2 lda rom_bank sta.z rom_address_from_bank__1 lda #0 sta.z rom_address_from_bank__1+1 sta.z rom_address_from_bank__1+2 sta.z rom_address_from_bank__1+3 - // [2405] rom_address_from_bank::return#0 = rom_address_from_bank::$1 << $e -- vduz1=vduz1_rol_vbuc1 + // [2419] rom_address_from_bank::return#0 = rom_address_from_bank::$1 << $e -- vduz1=vduz1_rol_vbuc1 ldx #$e cpx #0 beq !e+ @@ -15801,7 +15927,7 @@ rom_address_from_bank: { !e: // rom_address_from_bank::@return // } - // [2406] return + // [2420] return rts .segment Data .label rom_bank = main.check_status_rom1_main__0 @@ -15809,65 +15935,65 @@ rom_address_from_bank: { } .segment Code // rom_compare -// __zp($50) unsigned int rom_compare(__zp($e7) char bank_ram, __zp($a9) char *ptr_ram, __zp($55) unsigned long rom_compare_address, __zp($c8) unsigned int rom_compare_size) +// __zp($50) unsigned int rom_compare(__zp($e9) char bank_ram, __zp($7e) char *ptr_ram, __zp($56) unsigned long rom_compare_address, __zp($c8) unsigned int rom_compare_size) rom_compare: { - .label rom_compare__5 = $73 - .label rom_bank1_rom_compare__0 = $66 - .label rom_bank1_rom_compare__1 = $db - .label rom_bank1_rom_compare__2 = $e1 + .label rom_compare__5 = $53 + .label rom_bank1_rom_compare__0 = $65 + .label rom_bank1_rom_compare__1 = $dd + .label rom_bank1_rom_compare__2 = $e3 .label rom_ptr1_rom_compare__0 = $6d .label rom_ptr1_rom_compare__2 = $6d - .label bank_set_bram1_bank = $e7 - .label rom_bank1_bank_unshifted = $e1 - .label rom_bank1_return = $5c + .label bank_set_bram1_bank = $e9 + .label rom_bank1_bank_unshifted = $e3 + .label rom_bank1_return = $3c .label rom_ptr1_return = $6d .label ptr_rom = $6d - .label ptr_ram = $a9 - .label compared_bytes = $7a + .label ptr_ram = $7e + .label compared_bytes = $79 /// Holds the amount of bytes actually verified between the ROM and the RAM. .label equal_bytes = $50 - .label bank_ram = $e7 - .label rom_compare_address = $55 + .label bank_ram = $e9 + .label rom_compare_address = $56 .label return = $50 .label rom_compare_size = $c8 // rom_compare::bank_set_bram1 // BRAM = bank - // [2408] BRAM = rom_compare::bank_set_bram1_bank#0 -- vbuz1=vbuz2 + // [2422] BRAM = rom_compare::bank_set_bram1_bank#0 -- vbuz1=vbuz2 lda.z bank_set_bram1_bank sta.z BRAM // rom_compare::rom_bank1 // BYTE2(address) - // [2409] rom_compare::rom_bank1_$0 = byte2 rom_compare::rom_compare_address#3 -- vbuz1=_byte2_vduz2 + // [2423] rom_compare::rom_bank1_$0 = byte2 rom_compare::rom_compare_address#3 -- vbuz1=_byte2_vduz2 lda.z rom_compare_address+2 sta.z rom_bank1_rom_compare__0 // BYTE1(address) - // [2410] rom_compare::rom_bank1_$1 = byte1 rom_compare::rom_compare_address#3 -- vbuz1=_byte1_vduz2 + // [2424] rom_compare::rom_bank1_$1 = byte1 rom_compare::rom_compare_address#3 -- vbuz1=_byte1_vduz2 lda.z rom_compare_address+1 sta.z rom_bank1_rom_compare__1 // MAKEWORD(BYTE2(address),BYTE1(address)) - // [2411] rom_compare::rom_bank1_$2 = rom_compare::rom_bank1_$0 w= rom_compare::rom_bank1_$1 -- vwuz1=vbuz2_word_vbuz3 + // [2425] rom_compare::rom_bank1_$2 = rom_compare::rom_bank1_$0 w= rom_compare::rom_bank1_$1 -- vwuz1=vbuz2_word_vbuz3 lda.z rom_bank1_rom_compare__0 sta.z rom_bank1_rom_compare__2+1 lda.z rom_bank1_rom_compare__1 sta.z rom_bank1_rom_compare__2 // unsigned int bank_unshifted = MAKEWORD(BYTE2(address),BYTE1(address)) << 2 - // [2412] rom_compare::rom_bank1_bank_unshifted#0 = rom_compare::rom_bank1_$2 << 2 -- vwuz1=vwuz1_rol_2 + // [2426] rom_compare::rom_bank1_bank_unshifted#0 = rom_compare::rom_bank1_$2 << 2 -- vwuz1=vwuz1_rol_2 asl.z rom_bank1_bank_unshifted rol.z rom_bank1_bank_unshifted+1 asl.z rom_bank1_bank_unshifted rol.z rom_bank1_bank_unshifted+1 // unsigned char bank = BYTE1(bank_unshifted) - // [2413] rom_compare::rom_bank1_return#0 = byte1 rom_compare::rom_bank1_bank_unshifted#0 -- vbuz1=_byte1_vwuz2 + // [2427] rom_compare::rom_bank1_return#0 = byte1 rom_compare::rom_bank1_bank_unshifted#0 -- vbuz1=_byte1_vwuz2 lda.z rom_bank1_bank_unshifted+1 sta.z rom_bank1_return // rom_compare::rom_ptr1 // (unsigned int)(address) & ROM_PTR_MASK - // [2414] rom_compare::rom_ptr1_$2 = (unsigned int)rom_compare::rom_compare_address#3 -- vwuz1=_word_vduz2 + // [2428] rom_compare::rom_ptr1_$2 = (unsigned int)rom_compare::rom_compare_address#3 -- vwuz1=_word_vduz2 lda.z rom_compare_address sta.z rom_ptr1_rom_compare__2 lda.z rom_compare_address+1 sta.z rom_ptr1_rom_compare__2+1 - // [2415] rom_compare::rom_ptr1_$0 = rom_compare::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 + // [2429] rom_compare::rom_ptr1_$0 = rom_compare::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 lda.z rom_ptr1_rom_compare__0 and #<$3fff sta.z rom_ptr1_rom_compare__0 @@ -15875,7 +16001,7 @@ rom_compare: { and #>$3fff sta.z rom_ptr1_rom_compare__0+1 // ((unsigned int)(address) & ROM_PTR_MASK) + ROM_BASE - // [2416] rom_compare::rom_ptr1_return#0 = rom_compare::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 + // [2430] rom_compare::rom_ptr1_return#0 = rom_compare::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 lda.z rom_ptr1_return clc adc #<$c000 @@ -15885,24 +16011,24 @@ rom_compare: { sta.z rom_ptr1_return+1 // rom_compare::bank_set_brom1 // BROM = bank - // [2417] BROM = rom_compare::rom_bank1_return#0 -- vbuz1=vbuz2 + // [2431] BROM = rom_compare::rom_bank1_return#0 -- vbuz1=vbuz2 lda.z rom_bank1_return sta.z BROM - // [2418] rom_compare::ptr_rom#9 = (char *)rom_compare::rom_ptr1_return#0 - // [2419] phi from rom_compare::bank_set_brom1 to rom_compare::@1 [phi:rom_compare::bank_set_brom1->rom_compare::@1] - // [2419] phi rom_compare::equal_bytes#2 = 0 [phi:rom_compare::bank_set_brom1->rom_compare::@1#0] -- vwuz1=vwuc1 + // [2432] rom_compare::ptr_rom#9 = (char *)rom_compare::rom_ptr1_return#0 + // [2433] phi from rom_compare::bank_set_brom1 to rom_compare::@1 [phi:rom_compare::bank_set_brom1->rom_compare::@1] + // [2433] phi rom_compare::equal_bytes#2 = 0 [phi:rom_compare::bank_set_brom1->rom_compare::@1#0] -- vwuz1=vwuc1 lda #<0 sta.z equal_bytes sta.z equal_bytes+1 - // [2419] phi rom_compare::ptr_ram#4 = rom_compare::ptr_ram#10 [phi:rom_compare::bank_set_brom1->rom_compare::@1#1] -- register_copy - // [2419] phi rom_compare::ptr_rom#2 = rom_compare::ptr_rom#9 [phi:rom_compare::bank_set_brom1->rom_compare::@1#2] -- register_copy - // [2419] phi rom_compare::compared_bytes#2 = 0 [phi:rom_compare::bank_set_brom1->rom_compare::@1#3] -- vwuz1=vwuc1 + // [2433] phi rom_compare::ptr_ram#4 = rom_compare::ptr_ram#10 [phi:rom_compare::bank_set_brom1->rom_compare::@1#1] -- register_copy + // [2433] phi rom_compare::ptr_rom#2 = rom_compare::ptr_rom#9 [phi:rom_compare::bank_set_brom1->rom_compare::@1#2] -- register_copy + // [2433] phi rom_compare::compared_bytes#2 = 0 [phi:rom_compare::bank_set_brom1->rom_compare::@1#3] -- vwuz1=vwuc1 sta.z compared_bytes sta.z compared_bytes+1 // rom_compare::@1 __b1: // while (compared_bytes < rom_compare_size) - // [2420] if(rom_compare::compared_bytes#2rom_compare::@3] - // [2429] phi rom_compare::equal_bytes#6 = rom_compare::equal_bytes#1 [phi:rom_compare::@4/rom_compare::@5->rom_compare::@3#0] -- register_copy + // [2443] phi from rom_compare::@4 rom_compare::@5 to rom_compare::@3 [phi:rom_compare::@4/rom_compare::@5->rom_compare::@3] + // [2443] phi rom_compare::equal_bytes#6 = rom_compare::equal_bytes#1 [phi:rom_compare::@4/rom_compare::@5->rom_compare::@3#0] -- register_copy // rom_compare::@3 __b3: // ptr_rom++; - // [2430] rom_compare::ptr_rom#1 = ++ rom_compare::ptr_rom#2 -- pbuz1=_inc_pbuz1 + // [2444] rom_compare::ptr_rom#1 = ++ rom_compare::ptr_rom#2 -- pbuz1=_inc_pbuz1 inc.z ptr_rom bne !+ inc.z ptr_rom+1 !: // ptr_ram++; - // [2431] rom_compare::ptr_ram#0 = ++ rom_compare::ptr_ram#4 -- pbuz1=_inc_pbuz1 + // [2445] rom_compare::ptr_ram#0 = ++ rom_compare::ptr_ram#4 -- pbuz1=_inc_pbuz1 inc.z ptr_ram bne !+ inc.z ptr_ram+1 !: // compared_bytes++; - // [2432] rom_compare::compared_bytes#1 = ++ rom_compare::compared_bytes#2 -- vwuz1=_inc_vwuz1 + // [2446] rom_compare::compared_bytes#1 = ++ rom_compare::compared_bytes#2 -- vwuz1=_inc_vwuz1 inc.z compared_bytes bne !+ inc.z compared_bytes+1 !: - // [2419] phi from rom_compare::@3 to rom_compare::@1 [phi:rom_compare::@3->rom_compare::@1] - // [2419] phi rom_compare::equal_bytes#2 = rom_compare::equal_bytes#6 [phi:rom_compare::@3->rom_compare::@1#0] -- register_copy - // [2419] phi rom_compare::ptr_ram#4 = rom_compare::ptr_ram#0 [phi:rom_compare::@3->rom_compare::@1#1] -- register_copy - // [2419] phi rom_compare::ptr_rom#2 = rom_compare::ptr_rom#1 [phi:rom_compare::@3->rom_compare::@1#2] -- register_copy - // [2419] phi rom_compare::compared_bytes#2 = rom_compare::compared_bytes#1 [phi:rom_compare::@3->rom_compare::@1#3] -- register_copy + // [2433] phi from rom_compare::@3 to rom_compare::@1 [phi:rom_compare::@3->rom_compare::@1] + // [2433] phi rom_compare::equal_bytes#2 = rom_compare::equal_bytes#6 [phi:rom_compare::@3->rom_compare::@1#0] -- register_copy + // [2433] phi rom_compare::ptr_ram#4 = rom_compare::ptr_ram#0 [phi:rom_compare::@3->rom_compare::@1#1] -- register_copy + // [2433] phi rom_compare::ptr_rom#2 = rom_compare::ptr_rom#1 [phi:rom_compare::@3->rom_compare::@1#2] -- register_copy + // [2433] phi rom_compare::compared_bytes#2 = rom_compare::compared_bytes#1 [phi:rom_compare::@3->rom_compare::@1#3] -- register_copy jmp __b1 } // ultoa @@ -15974,149 +16100,149 @@ rom_compare: { // - value : The number to be converted to RADIX // - buffer : receives the string representing the number and zero-termination. // - radix : The radix to convert the number to (from the enum RADIX) -// void ultoa(__zp($31) unsigned long value, __zp($5d) char *buffer, __zp($df) char radix) +// void ultoa(__zp($31) unsigned long value, __zp($5f) char *buffer, __zp($e1) char radix) ultoa: { - .label ultoa__4 = $66 - .label ultoa__10 = $5c - .label ultoa__11 = $db - .label digit_value = $40 - .label buffer = $5d + .label ultoa__4 = $65 + .label ultoa__10 = $3c + .label ultoa__11 = $dd + .label digit_value = $41 + .label buffer = $5f .label digit = $63 .label value = $31 - .label radix = $df + .label radix = $e1 .label started = $6a .label max_digits = $b7 - .label digit_values = $2e + .label digit_values = $b1 // if(radix==DECIMAL) - // [2433] if(ultoa::radix#0==DECIMAL) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2447] if(ultoa::radix#0==DECIMAL) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #DECIMAL cmp.z radix beq __b2 // ultoa::@2 // if(radix==HEXADECIMAL) - // [2434] if(ultoa::radix#0==HEXADECIMAL) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2448] if(ultoa::radix#0==HEXADECIMAL) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #HEXADECIMAL cmp.z radix beq __b3 // ultoa::@3 // if(radix==OCTAL) - // [2435] if(ultoa::radix#0==OCTAL) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2449] if(ultoa::radix#0==OCTAL) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #OCTAL cmp.z radix beq __b4 // ultoa::@4 // if(radix==BINARY) - // [2436] if(ultoa::radix#0==BINARY) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2450] if(ultoa::radix#0==BINARY) goto ultoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #BINARY cmp.z radix beq __b5 // ultoa::@5 // *buffer++ = 'e' - // [2437] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS) = 'e' -- _deref_pbuc1=vbuc2 + // [2451] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS) = 'e' -- _deref_pbuc1=vbuc2 // Unknown radix lda #'e' sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS // *buffer++ = 'r' - // [2438] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1) = 'r' -- _deref_pbuc1=vbuc2 + // [2452] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1) = 'r' -- _deref_pbuc1=vbuc2 lda #'r' sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1 - // [2439] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2) = 'r' -- _deref_pbuc1=vbuc2 + // [2453] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2) = 'r' -- _deref_pbuc1=vbuc2 sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2 // *buffer = 0 - // [2440] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3) = 0 -- _deref_pbuc1=vbuc2 + // [2454] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3) = 0 -- _deref_pbuc1=vbuc2 lda #0 sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3 // ultoa::@return // } - // [2441] return + // [2455] return rts - // [2442] phi from ultoa to ultoa::@1 [phi:ultoa->ultoa::@1] + // [2456] phi from ultoa to ultoa::@1 [phi:ultoa->ultoa::@1] __b2: - // [2442] phi ultoa::digit_values#8 = RADIX_DECIMAL_VALUES_LONG [phi:ultoa->ultoa::@1#0] -- pduz1=pduc1 + // [2456] phi ultoa::digit_values#8 = RADIX_DECIMAL_VALUES_LONG [phi:ultoa->ultoa::@1#0] -- pduz1=pduc1 lda #RADIX_DECIMAL_VALUES_LONG sta.z digit_values+1 - // [2442] phi ultoa::max_digits#7 = $a [phi:ultoa->ultoa::@1#1] -- vbuz1=vbuc1 + // [2456] phi ultoa::max_digits#7 = $a [phi:ultoa->ultoa::@1#1] -- vbuz1=vbuc1 lda #$a sta.z max_digits jmp __b1 - // [2442] phi from ultoa::@2 to ultoa::@1 [phi:ultoa::@2->ultoa::@1] + // [2456] phi from ultoa::@2 to ultoa::@1 [phi:ultoa::@2->ultoa::@1] __b3: - // [2442] phi ultoa::digit_values#8 = RADIX_HEXADECIMAL_VALUES_LONG [phi:ultoa::@2->ultoa::@1#0] -- pduz1=pduc1 + // [2456] phi ultoa::digit_values#8 = RADIX_HEXADECIMAL_VALUES_LONG [phi:ultoa::@2->ultoa::@1#0] -- pduz1=pduc1 lda #RADIX_HEXADECIMAL_VALUES_LONG sta.z digit_values+1 - // [2442] phi ultoa::max_digits#7 = 8 [phi:ultoa::@2->ultoa::@1#1] -- vbuz1=vbuc1 + // [2456] phi ultoa::max_digits#7 = 8 [phi:ultoa::@2->ultoa::@1#1] -- vbuz1=vbuc1 lda #8 sta.z max_digits jmp __b1 - // [2442] phi from ultoa::@3 to ultoa::@1 [phi:ultoa::@3->ultoa::@1] + // [2456] phi from ultoa::@3 to ultoa::@1 [phi:ultoa::@3->ultoa::@1] __b4: - // [2442] phi ultoa::digit_values#8 = RADIX_OCTAL_VALUES_LONG [phi:ultoa::@3->ultoa::@1#0] -- pduz1=pduc1 + // [2456] phi ultoa::digit_values#8 = RADIX_OCTAL_VALUES_LONG [phi:ultoa::@3->ultoa::@1#0] -- pduz1=pduc1 lda #RADIX_OCTAL_VALUES_LONG sta.z digit_values+1 - // [2442] phi ultoa::max_digits#7 = $b [phi:ultoa::@3->ultoa::@1#1] -- vbuz1=vbuc1 + // [2456] phi ultoa::max_digits#7 = $b [phi:ultoa::@3->ultoa::@1#1] -- vbuz1=vbuc1 lda #$b sta.z max_digits jmp __b1 - // [2442] phi from ultoa::@4 to ultoa::@1 [phi:ultoa::@4->ultoa::@1] + // [2456] phi from ultoa::@4 to ultoa::@1 [phi:ultoa::@4->ultoa::@1] __b5: - // [2442] phi ultoa::digit_values#8 = RADIX_BINARY_VALUES_LONG [phi:ultoa::@4->ultoa::@1#0] -- pduz1=pduc1 + // [2456] phi ultoa::digit_values#8 = RADIX_BINARY_VALUES_LONG [phi:ultoa::@4->ultoa::@1#0] -- pduz1=pduc1 lda #RADIX_BINARY_VALUES_LONG sta.z digit_values+1 - // [2442] phi ultoa::max_digits#7 = $20 [phi:ultoa::@4->ultoa::@1#1] -- vbuz1=vbuc1 + // [2456] phi ultoa::max_digits#7 = $20 [phi:ultoa::@4->ultoa::@1#1] -- vbuz1=vbuc1 lda #$20 sta.z max_digits // ultoa::@1 __b1: - // [2443] phi from ultoa::@1 to ultoa::@6 [phi:ultoa::@1->ultoa::@6] - // [2443] phi ultoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:ultoa::@1->ultoa::@6#0] -- pbuz1=pbuc1 + // [2457] phi from ultoa::@1 to ultoa::@6 [phi:ultoa::@1->ultoa::@6] + // [2457] phi ultoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:ultoa::@1->ultoa::@6#0] -- pbuz1=pbuc1 lda #printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS sta.z buffer+1 - // [2443] phi ultoa::started#2 = 0 [phi:ultoa::@1->ultoa::@6#1] -- vbuz1=vbuc1 + // [2457] phi ultoa::started#2 = 0 [phi:ultoa::@1->ultoa::@6#1] -- vbuz1=vbuc1 lda #0 sta.z started - // [2443] phi ultoa::value#2 = ultoa::value#1 [phi:ultoa::@1->ultoa::@6#2] -- register_copy - // [2443] phi ultoa::digit#2 = 0 [phi:ultoa::@1->ultoa::@6#3] -- vbuz1=vbuc1 + // [2457] phi ultoa::value#2 = ultoa::value#1 [phi:ultoa::@1->ultoa::@6#2] -- register_copy + // [2457] phi ultoa::digit#2 = 0 [phi:ultoa::@1->ultoa::@6#3] -- vbuz1=vbuc1 sta.z digit // ultoa::@6 __b6: // max_digits-1 - // [2444] ultoa::$4 = ultoa::max_digits#7 - 1 -- vbuz1=vbuz2_minus_1 + // [2458] ultoa::$4 = ultoa::max_digits#7 - 1 -- vbuz1=vbuz2_minus_1 ldx.z max_digits dex stx.z ultoa__4 // for( char digit=0; digit= digit_value) - // [2452] if(0!=ultoa::started#2) goto ultoa::@10 -- 0_neq_vbuz1_then_la1 + // [2466] if(0!=ultoa::started#2) goto ultoa::@10 -- 0_neq_vbuz1_then_la1 lda.z started bne __b10 // ultoa::@12 - // [2453] if(ultoa::value#2>=ultoa::digit_value#0) goto ultoa::@10 -- vduz1_ge_vduz2_then_la1 + // [2467] if(ultoa::value#2>=ultoa::digit_value#0) goto ultoa::@10 -- vduz1_ge_vduz2_then_la1 lda.z value+3 cmp.z digit_value+3 bcc !+ @@ -16164,51 +16290,51 @@ ultoa: { cmp.z digit_value bcs __b10 !: - // [2454] phi from ultoa::@12 to ultoa::@9 [phi:ultoa::@12->ultoa::@9] - // [2454] phi ultoa::buffer#14 = ultoa::buffer#11 [phi:ultoa::@12->ultoa::@9#0] -- register_copy - // [2454] phi ultoa::started#4 = ultoa::started#2 [phi:ultoa::@12->ultoa::@9#1] -- register_copy - // [2454] phi ultoa::value#6 = ultoa::value#2 [phi:ultoa::@12->ultoa::@9#2] -- register_copy + // [2468] phi from ultoa::@12 to ultoa::@9 [phi:ultoa::@12->ultoa::@9] + // [2468] phi ultoa::buffer#14 = ultoa::buffer#11 [phi:ultoa::@12->ultoa::@9#0] -- register_copy + // [2468] phi ultoa::started#4 = ultoa::started#2 [phi:ultoa::@12->ultoa::@9#1] -- register_copy + // [2468] phi ultoa::value#6 = ultoa::value#2 [phi:ultoa::@12->ultoa::@9#2] -- register_copy // ultoa::@9 __b9: // for( char digit=0; digitultoa::@6] - // [2443] phi ultoa::buffer#11 = ultoa::buffer#14 [phi:ultoa::@9->ultoa::@6#0] -- register_copy - // [2443] phi ultoa::started#2 = ultoa::started#4 [phi:ultoa::@9->ultoa::@6#1] -- register_copy - // [2443] phi ultoa::value#2 = ultoa::value#6 [phi:ultoa::@9->ultoa::@6#2] -- register_copy - // [2443] phi ultoa::digit#2 = ultoa::digit#1 [phi:ultoa::@9->ultoa::@6#3] -- register_copy + // [2457] phi from ultoa::@9 to ultoa::@6 [phi:ultoa::@9->ultoa::@6] + // [2457] phi ultoa::buffer#11 = ultoa::buffer#14 [phi:ultoa::@9->ultoa::@6#0] -- register_copy + // [2457] phi ultoa::started#2 = ultoa::started#4 [phi:ultoa::@9->ultoa::@6#1] -- register_copy + // [2457] phi ultoa::value#2 = ultoa::value#6 [phi:ultoa::@9->ultoa::@6#2] -- register_copy + // [2457] phi ultoa::digit#2 = ultoa::digit#1 [phi:ultoa::@9->ultoa::@6#3] -- register_copy jmp __b6 // ultoa::@10 __b10: // ultoa_append(buffer++, value, digit_value) - // [2456] ultoa_append::buffer#0 = ultoa::buffer#11 -- pbuz1=pbuz2 + // [2470] ultoa_append::buffer#0 = ultoa::buffer#11 -- pbuz1=pbuz2 lda.z buffer sta.z ultoa_append.buffer lda.z buffer+1 sta.z ultoa_append.buffer+1 - // [2457] ultoa_append::value#0 = ultoa::value#2 - // [2458] ultoa_append::sub#0 = ultoa::digit_value#0 - // [2459] call ultoa_append - // [2785] phi from ultoa::@10 to ultoa_append [phi:ultoa::@10->ultoa_append] + // [2471] ultoa_append::value#0 = ultoa::value#2 + // [2472] ultoa_append::sub#0 = ultoa::digit_value#0 + // [2473] call ultoa_append + // [2799] phi from ultoa::@10 to ultoa_append [phi:ultoa::@10->ultoa_append] jsr ultoa_append // ultoa_append(buffer++, value, digit_value) - // [2460] ultoa_append::return#0 = ultoa_append::value#2 + // [2474] ultoa_append::return#0 = ultoa_append::value#2 // ultoa::@11 // value = ultoa_append(buffer++, value, digit_value) - // [2461] ultoa::value#0 = ultoa_append::return#0 + // [2475] ultoa::value#0 = ultoa_append::return#0 // value = ultoa_append(buffer++, value, digit_value); - // [2462] ultoa::buffer#4 = ++ ultoa::buffer#11 -- pbuz1=_inc_pbuz1 + // [2476] ultoa::buffer#4 = ++ ultoa::buffer#11 -- pbuz1=_inc_pbuz1 inc.z buffer bne !+ inc.z buffer+1 !: - // [2454] phi from ultoa::@11 to ultoa::@9 [phi:ultoa::@11->ultoa::@9] - // [2454] phi ultoa::buffer#14 = ultoa::buffer#4 [phi:ultoa::@11->ultoa::@9#0] -- register_copy - // [2454] phi ultoa::started#4 = 1 [phi:ultoa::@11->ultoa::@9#1] -- vbuz1=vbuc1 + // [2468] phi from ultoa::@11 to ultoa::@9 [phi:ultoa::@11->ultoa::@9] + // [2468] phi ultoa::buffer#14 = ultoa::buffer#4 [phi:ultoa::@11->ultoa::@9#0] -- register_copy + // [2468] phi ultoa::started#4 = 1 [phi:ultoa::@11->ultoa::@9#1] -- vbuz1=vbuc1 lda #1 sta.z started - // [2454] phi ultoa::value#6 = ultoa::value#0 [phi:ultoa::@11->ultoa::@9#2] -- register_copy + // [2468] phi ultoa::value#6 = ultoa::value#0 [phi:ultoa::@11->ultoa::@9#2] -- register_copy jmp __b9 } // rom_sector_erase @@ -16243,18 +16369,18 @@ ultoa: { /* inline */ // void rom_sector_erase(__mem() unsigned long address) rom_sector_erase: { - .label rom_ptr1_rom_sector_erase__0 = $3c - .label rom_ptr1_rom_sector_erase__2 = $3c - .label rom_ptr1_return = $3c + .label rom_ptr1_rom_sector_erase__0 = $3d + .label rom_ptr1_rom_sector_erase__2 = $3d + .label rom_ptr1_return = $3d .label rom_chip_address = $6f // rom_sector_erase::rom_ptr1 // (unsigned int)(address) & ROM_PTR_MASK - // [2464] rom_sector_erase::rom_ptr1_$2 = (unsigned int)rom_sector_erase::address#0 -- vwuz1=_word_vdum2 + // [2478] rom_sector_erase::rom_ptr1_$2 = (unsigned int)rom_sector_erase::address#0 -- vwuz1=_word_vdum2 lda address sta.z rom_ptr1_rom_sector_erase__2 lda address+1 sta.z rom_ptr1_rom_sector_erase__2+1 - // [2465] rom_sector_erase::rom_ptr1_$0 = rom_sector_erase::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 + // [2479] rom_sector_erase::rom_ptr1_$0 = rom_sector_erase::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 lda.z rom_ptr1_rom_sector_erase__0 and #<$3fff sta.z rom_ptr1_rom_sector_erase__0 @@ -16262,7 +16388,7 @@ rom_sector_erase: { and #>$3fff sta.z rom_ptr1_rom_sector_erase__0+1 // ((unsigned int)(address) & ROM_PTR_MASK) + ROM_BASE - // [2466] rom_sector_erase::rom_ptr1_return#0 = rom_sector_erase::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 + // [2480] rom_sector_erase::rom_ptr1_return#0 = rom_sector_erase::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 lda.z rom_ptr1_return clc adc #<$c000 @@ -16272,7 +16398,7 @@ rom_sector_erase: { sta.z rom_ptr1_return+1 // rom_sector_erase::@1 // unsigned long rom_chip_address = address & ROM_CHIP_MASK - // [2467] rom_sector_erase::rom_chip_address#0 = rom_sector_erase::address#0 & $380000 -- vduz1=vdum2_band_vduc1 + // [2481] rom_sector_erase::rom_chip_address#0 = rom_sector_erase::address#0 & $380000 -- vduz1=vdum2_band_vduc1 lda address and #<$380000 sta.z rom_chip_address @@ -16286,7 +16412,7 @@ rom_sector_erase: { and #>$380000>>$10 sta.z rom_chip_address+3 // rom_unlock(rom_chip_address + 0x05555, 0x80) - // [2468] rom_unlock::address#0 = rom_sector_erase::rom_chip_address#0 + $5555 -- vduz1=vduz1_plus_vwuc1 + // [2482] rom_unlock::address#0 = rom_sector_erase::rom_chip_address#0 + $5555 -- vduz1=vduz1_plus_vwuc1 clc lda.z rom_unlock.address adc #<$5555 @@ -16300,16 +16426,16 @@ rom_sector_erase: { lda.z rom_unlock.address+3 adc #0 sta.z rom_unlock.address+3 - // [2469] call rom_unlock - // [2141] phi from rom_sector_erase::@1 to rom_unlock [phi:rom_sector_erase::@1->rom_unlock] - // [2141] phi rom_unlock::unlock_code#5 = $80 [phi:rom_sector_erase::@1->rom_unlock#0] -- vbuz1=vbuc1 + // [2483] call rom_unlock + // [2155] phi from rom_sector_erase::@1 to rom_unlock [phi:rom_sector_erase::@1->rom_unlock] + // [2155] phi rom_unlock::unlock_code#5 = $80 [phi:rom_sector_erase::@1->rom_unlock#0] -- vbuz1=vbuc1 lda #$80 sta.z rom_unlock.unlock_code - // [2141] phi rom_unlock::address#5 = rom_unlock::address#0 [phi:rom_sector_erase::@1->rom_unlock#1] -- register_copy + // [2155] phi rom_unlock::address#5 = rom_unlock::address#0 [phi:rom_sector_erase::@1->rom_unlock#1] -- register_copy jsr rom_unlock // rom_sector_erase::@2 // rom_unlock(address, 0x30) - // [2470] rom_unlock::address#1 = rom_sector_erase::address#0 -- vduz1=vdum2 + // [2484] rom_unlock::address#1 = rom_sector_erase::address#0 -- vduz1=vdum2 lda address sta.z rom_unlock.address lda address+1 @@ -16318,23 +16444,23 @@ rom_sector_erase: { sta.z rom_unlock.address+2 lda address+3 sta.z rom_unlock.address+3 - // [2471] call rom_unlock - // [2141] phi from rom_sector_erase::@2 to rom_unlock [phi:rom_sector_erase::@2->rom_unlock] - // [2141] phi rom_unlock::unlock_code#5 = $30 [phi:rom_sector_erase::@2->rom_unlock#0] -- vbuz1=vbuc1 + // [2485] call rom_unlock + // [2155] phi from rom_sector_erase::@2 to rom_unlock [phi:rom_sector_erase::@2->rom_unlock] + // [2155] phi rom_unlock::unlock_code#5 = $30 [phi:rom_sector_erase::@2->rom_unlock#0] -- vbuz1=vbuc1 lda #$30 sta.z rom_unlock.unlock_code - // [2141] phi rom_unlock::address#5 = rom_unlock::address#1 [phi:rom_sector_erase::@2->rom_unlock#1] -- register_copy + // [2155] phi rom_unlock::address#5 = rom_unlock::address#1 [phi:rom_sector_erase::@2->rom_unlock#1] -- register_copy jsr rom_unlock // rom_sector_erase::@3 // rom_wait(ptr_rom) - // [2472] rom_wait::ptr_rom#0 = (char *)rom_sector_erase::rom_ptr1_return#0 - // [2473] call rom_wait - // [2792] phi from rom_sector_erase::@3 to rom_wait [phi:rom_sector_erase::@3->rom_wait] - // [2792] phi rom_wait::ptr_rom#3 = rom_wait::ptr_rom#0 [phi:rom_sector_erase::@3->rom_wait#0] -- register_copy + // [2486] rom_wait::ptr_rom#0 = (char *)rom_sector_erase::rom_ptr1_return#0 + // [2487] call rom_wait + // [2806] phi from rom_sector_erase::@3 to rom_wait [phi:rom_sector_erase::@3->rom_wait] + // [2806] phi rom_wait::ptr_rom#3 = rom_wait::ptr_rom#0 [phi:rom_sector_erase::@3->rom_wait#0] -- register_copy jsr rom_wait // rom_sector_erase::@return // } - // [2474] return + // [2488] return rts .segment Data .label address = printf_ulong.uvalue_1 @@ -16342,15 +16468,15 @@ rom_sector_erase: { .segment Code // rom_write /* inline */ -// unsigned long rom_write(__zp($66) char flash_ram_bank, __zp($2e) char *flash_ram_address, __zp($ab) unsigned long flash_rom_address, unsigned int flash_rom_size) +// unsigned long rom_write(__zp($65) char flash_ram_bank, __zp($2e) char *flash_ram_address, __zp($a9) unsigned long flash_rom_address, unsigned int flash_rom_size) rom_write: { .label rom_chip_address = $be - .label flash_rom_address = $ab + .label flash_rom_address = $a9 .label flash_ram_address = $2e - .label flashed_bytes = $76 - .label flash_ram_bank = $66 + .label flashed_bytes = $75 + .label flash_ram_bank = $65 // unsigned long rom_chip_address = flash_rom_address & ROM_CHIP_MASK - // [2475] rom_write::rom_chip_address#0 = rom_write::flash_rom_address#1 & $380000 -- vduz1=vduz2_band_vduc1 + // [2489] rom_write::rom_chip_address#0 = rom_write::flash_rom_address#1 & $380000 -- vduz1=vduz2_band_vduc1 /// Holds the amount of bytes actually flashed in the ROM. lda.z flash_rom_address and #<$380000 @@ -16366,13 +16492,13 @@ rom_write: { sta.z rom_chip_address+3 // rom_write::bank_set_bram1 // BRAM = bank - // [2476] BRAM = rom_write::flash_ram_bank#0 -- vbuz1=vbuz2 + // [2490] BRAM = rom_write::flash_ram_bank#0 -- vbuz1=vbuz2 lda.z flash_ram_bank sta.z BRAM - // [2477] phi from rom_write::bank_set_bram1 to rom_write::@1 [phi:rom_write::bank_set_bram1->rom_write::@1] - // [2477] phi rom_write::flash_ram_address#2 = rom_write::flash_ram_address#1 [phi:rom_write::bank_set_bram1->rom_write::@1#0] -- register_copy - // [2477] phi rom_write::flash_rom_address#3 = rom_write::flash_rom_address#1 [phi:rom_write::bank_set_bram1->rom_write::@1#1] -- register_copy - // [2477] phi rom_write::flashed_bytes#2 = 0 [phi:rom_write::bank_set_bram1->rom_write::@1#2] -- vduz1=vduc1 + // [2491] phi from rom_write::bank_set_bram1 to rom_write::@1 [phi:rom_write::bank_set_bram1->rom_write::@1] + // [2491] phi rom_write::flash_ram_address#2 = rom_write::flash_ram_address#1 [phi:rom_write::bank_set_bram1->rom_write::@1#0] -- register_copy + // [2491] phi rom_write::flash_rom_address#3 = rom_write::flash_rom_address#1 [phi:rom_write::bank_set_bram1->rom_write::@1#1] -- register_copy + // [2491] phi rom_write::flashed_bytes#2 = 0 [phi:rom_write::bank_set_bram1->rom_write::@1#2] -- vduz1=vduc1 lda #<0 sta.z flashed_bytes sta.z flashed_bytes+1 @@ -16383,7 +16509,7 @@ rom_write: { // rom_write::@1 __b1: // while (flashed_bytes < flash_rom_size) - // [2478] if(rom_write::flashed_bytes#2ROM_PROGRESS_CELL>>$10 bcc __b2 @@ -16402,12 +16528,12 @@ rom_write: { !: // rom_write::@return // } - // [2479] return + // [2493] return rts // rom_write::@2 __b2: // rom_unlock(rom_chip_address + 0x05555, 0xA0) - // [2480] rom_unlock::address#4 = rom_write::rom_chip_address#0 + $5555 -- vduz1=vduz2_plus_vwuc1 + // [2494] rom_unlock::address#4 = rom_write::rom_chip_address#0 + $5555 -- vduz1=vduz2_plus_vwuc1 clc lda.z rom_chip_address adc #<$5555 @@ -16421,16 +16547,16 @@ rom_write: { lda.z rom_chip_address+3 adc #0 sta.z rom_unlock.address+3 - // [2481] call rom_unlock - // [2141] phi from rom_write::@2 to rom_unlock [phi:rom_write::@2->rom_unlock] - // [2141] phi rom_unlock::unlock_code#5 = $a0 [phi:rom_write::@2->rom_unlock#0] -- vbuz1=vbuc1 + // [2495] call rom_unlock + // [2155] phi from rom_write::@2 to rom_unlock [phi:rom_write::@2->rom_unlock] + // [2155] phi rom_unlock::unlock_code#5 = $a0 [phi:rom_write::@2->rom_unlock#0] -- vbuz1=vbuc1 lda #$a0 sta.z rom_unlock.unlock_code - // [2141] phi rom_unlock::address#5 = rom_unlock::address#4 [phi:rom_write::@2->rom_unlock#1] -- register_copy + // [2155] phi rom_unlock::address#5 = rom_unlock::address#4 [phi:rom_write::@2->rom_unlock#1] -- register_copy jsr rom_unlock // rom_write::@3 // rom_byte_program(flash_rom_address, *flash_ram_address) - // [2482] rom_byte_program::address#0 = rom_write::flash_rom_address#3 -- vduz1=vduz2 + // [2496] rom_byte_program::address#0 = rom_write::flash_rom_address#3 -- vduz1=vduz2 lda.z flash_rom_address sta.z rom_byte_program.address lda.z flash_rom_address+1 @@ -16439,16 +16565,16 @@ rom_write: { sta.z rom_byte_program.address+2 lda.z flash_rom_address+3 sta.z rom_byte_program.address+3 - // [2483] rom_byte_program::value#0 = *rom_write::flash_ram_address#2 -- vbuz1=_deref_pbuz2 + // [2497] rom_byte_program::value#0 = *rom_write::flash_ram_address#2 -- vbuz1=_deref_pbuz2 ldy #0 lda (flash_ram_address),y sta.z rom_byte_program.value - // [2484] call rom_byte_program - // [2799] phi from rom_write::@3 to rom_byte_program [phi:rom_write::@3->rom_byte_program] + // [2498] call rom_byte_program + // [2813] phi from rom_write::@3 to rom_byte_program [phi:rom_write::@3->rom_byte_program] jsr rom_byte_program // rom_write::@4 // flash_rom_address++; - // [2485] rom_write::flash_rom_address#0 = ++ rom_write::flash_rom_address#3 -- vduz1=_inc_vduz1 + // [2499] rom_write::flash_rom_address#0 = ++ rom_write::flash_rom_address#3 -- vduz1=_inc_vduz1 inc.z flash_rom_address bne !+ inc.z flash_rom_address+1 @@ -16458,13 +16584,13 @@ rom_write: { inc.z flash_rom_address+3 !: // flash_ram_address++; - // [2486] rom_write::flash_ram_address#0 = ++ rom_write::flash_ram_address#2 -- pbuz1=_inc_pbuz1 + // [2500] rom_write::flash_ram_address#0 = ++ rom_write::flash_ram_address#2 -- pbuz1=_inc_pbuz1 inc.z flash_ram_address bne !+ inc.z flash_ram_address+1 !: // flashed_bytes++; - // [2487] rom_write::flashed_bytes#1 = ++ rom_write::flashed_bytes#2 -- vduz1=_inc_vduz1 + // [2501] rom_write::flashed_bytes#1 = ++ rom_write::flashed_bytes#2 -- vduz1=_inc_vduz1 inc.z flashed_bytes bne !+ inc.z flashed_bytes+1 @@ -16473,10 +16599,10 @@ rom_write: { bne !+ inc.z flashed_bytes+3 !: - // [2477] phi from rom_write::@4 to rom_write::@1 [phi:rom_write::@4->rom_write::@1] - // [2477] phi rom_write::flash_ram_address#2 = rom_write::flash_ram_address#0 [phi:rom_write::@4->rom_write::@1#0] -- register_copy - // [2477] phi rom_write::flash_rom_address#3 = rom_write::flash_rom_address#0 [phi:rom_write::@4->rom_write::@1#1] -- register_copy - // [2477] phi rom_write::flashed_bytes#2 = rom_write::flashed_bytes#1 [phi:rom_write::@4->rom_write::@1#2] -- register_copy + // [2491] phi from rom_write::@4 to rom_write::@1 [phi:rom_write::@4->rom_write::@1] + // [2491] phi rom_write::flash_ram_address#2 = rom_write::flash_ram_address#0 [phi:rom_write::@4->rom_write::@1#0] -- register_copy + // [2491] phi rom_write::flash_rom_address#3 = rom_write::flash_rom_address#0 [phi:rom_write::@4->rom_write::@1#1] -- register_copy + // [2491] phi rom_write::flashed_bytes#2 = rom_write::flashed_bytes#1 [phi:rom_write::@4->rom_write::@1#2] -- register_copy jmp __b1 } // cbm_k_getin @@ -16486,9 +16612,9 @@ rom_write: { * @return char The character read. */ cbm_k_getin: { - .label return = $e5 + .label return = $e7 // __mem unsigned char ch - // [2488] cbm_k_getin::ch = 0 -- vbum1=vbuc1 + // [2502] cbm_k_getin::ch = 0 -- vbum1=vbuc1 lda #0 sta ch // asm @@ -16496,12 +16622,12 @@ cbm_k_getin: { jsr CBM_GETIN sta ch // return ch; - // [2490] cbm_k_getin::return#0 = cbm_k_getin::ch -- vbuz1=vbum2 + // [2504] cbm_k_getin::return#0 = cbm_k_getin::ch -- vbuz1=vbum2 sta.z return // cbm_k_getin::@return // } - // [2491] cbm_k_getin::return#1 = cbm_k_getin::return#0 - // [2492] return + // [2505] cbm_k_getin::return#1 = cbm_k_getin::return#0 + // [2506] return rts .segment Data ch: .byte 0 @@ -16514,24 +16640,24 @@ cbm_k_getin: { /// @param src ? This is the string to be copied. /// @param n ? The number of characters to be copied from source. /// @return The destination -// char * strncpy(__zp($d5) char *dst, __zp($3e) const char *src, __zp($5d) unsigned int n) +// char * strncpy(__zp($d7) char *dst, __zp($4e) const char *src, __zp($2e) unsigned int n) strncpy: { - .label c = $2c - .label dst = $d5 - .label i = $b5 - .label src = $3e - .label n = $5d - // [2494] phi from strncpy to strncpy::@1 [phi:strncpy->strncpy::@1] - // [2494] phi strncpy::dst#3 = strncpy::dst#8 [phi:strncpy->strncpy::@1#0] -- register_copy - // [2494] phi strncpy::src#3 = strncpy::src#6 [phi:strncpy->strncpy::@1#1] -- register_copy - // [2494] phi strncpy::i#2 = 0 [phi:strncpy->strncpy::@1#2] -- vwuz1=vwuc1 + .label c = $61 + .label dst = $d7 + .label i = $af + .label src = $4e + .label n = $2e + // [2508] phi from strncpy to strncpy::@1 [phi:strncpy->strncpy::@1] + // [2508] phi strncpy::dst#3 = strncpy::dst#8 [phi:strncpy->strncpy::@1#0] -- register_copy + // [2508] phi strncpy::src#3 = strncpy::src#6 [phi:strncpy->strncpy::@1#1] -- register_copy + // [2508] phi strncpy::i#2 = 0 [phi:strncpy->strncpy::@1#2] -- vwuz1=vwuc1 lda #<0 sta.z i sta.z i+1 // strncpy::@1 __b1: // for(size_t i = 0;istrncpy::@3] - // [2500] phi strncpy::src#7 = strncpy::src#3 [phi:strncpy::@2/strncpy::@4->strncpy::@3#0] -- register_copy + // [2514] phi from strncpy::@2 strncpy::@4 to strncpy::@3 [phi:strncpy::@2/strncpy::@4->strncpy::@3] + // [2514] phi strncpy::src#7 = strncpy::src#3 [phi:strncpy::@2/strncpy::@4->strncpy::@3#0] -- register_copy // strncpy::@3 __b3: // *dst++ = c - // [2501] *strncpy::dst#3 = strncpy::c#0 -- _deref_pbuz1=vbuz2 + // [2515] *strncpy::dst#3 = strncpy::c#0 -- _deref_pbuz1=vbuz2 lda.z c ldy #0 sta (dst),y // *dst++ = c; - // [2502] strncpy::dst#0 = ++ strncpy::dst#3 -- pbuz1=_inc_pbuz1 + // [2516] strncpy::dst#0 = ++ strncpy::dst#3 -- pbuz1=_inc_pbuz1 inc.z dst bne !+ inc.z dst+1 !: // for(size_t i = 0;istrncpy::@1] - // [2494] phi strncpy::dst#3 = strncpy::dst#0 [phi:strncpy::@3->strncpy::@1#0] -- register_copy - // [2494] phi strncpy::src#3 = strncpy::src#7 [phi:strncpy::@3->strncpy::@1#1] -- register_copy - // [2494] phi strncpy::i#2 = strncpy::i#1 [phi:strncpy::@3->strncpy::@1#2] -- register_copy + // [2508] phi from strncpy::@3 to strncpy::@1 [phi:strncpy::@3->strncpy::@1] + // [2508] phi strncpy::dst#3 = strncpy::dst#0 [phi:strncpy::@3->strncpy::@1#0] -- register_copy + // [2508] phi strncpy::src#3 = strncpy::src#7 [phi:strncpy::@3->strncpy::@1#1] -- register_copy + // [2508] phi strncpy::i#2 = strncpy::i#1 [phi:strncpy::@3->strncpy::@1#2] -- register_copy jmp __b1 } // utoa @@ -16594,149 +16720,149 @@ strncpy: { // - value : The number to be converted to RADIX // - buffer : receives the string representing the number and zero-termination. // - radix : The radix to convert the number to (from the enum RADIX) -// void utoa(__zp($2e) unsigned int value, __zp($5f) char *buffer, __zp($de) char radix) +// void utoa(__zp($2e) unsigned int value, __zp($5d) char *buffer, __zp($e0) char radix) utoa: { - .label utoa__4 = $5c - .label utoa__10 = $36 - .label utoa__11 = $2c - .label digit_value = $3e - .label buffer = $5f + .label utoa__4 = $61 + .label utoa__10 = $2c + .label utoa__11 = $53 + .label digit_value = $3f + .label buffer = $5d .label digit = $64 .label value = $2e - .label radix = $de - .label started = $61 + .label radix = $e0 + .label started = $3c .label max_digits = $2d - .label digit_values = $b5 + .label digit_values = $af // if(radix==DECIMAL) - // [2504] if(utoa::radix#0==DECIMAL) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2518] if(utoa::radix#0==DECIMAL) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #DECIMAL cmp.z radix beq __b2 // utoa::@2 // if(radix==HEXADECIMAL) - // [2505] if(utoa::radix#0==HEXADECIMAL) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2519] if(utoa::radix#0==HEXADECIMAL) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #HEXADECIMAL cmp.z radix beq __b3 // utoa::@3 // if(radix==OCTAL) - // [2506] if(utoa::radix#0==OCTAL) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2520] if(utoa::radix#0==OCTAL) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #OCTAL cmp.z radix beq __b4 // utoa::@4 // if(radix==BINARY) - // [2507] if(utoa::radix#0==BINARY) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 + // [2521] if(utoa::radix#0==BINARY) goto utoa::@1 -- vbuz1_eq_vbuc1_then_la1 lda #BINARY cmp.z radix beq __b5 // utoa::@5 // *buffer++ = 'e' - // [2508] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS) = 'e' -- _deref_pbuc1=vbuc2 + // [2522] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS) = 'e' -- _deref_pbuc1=vbuc2 // Unknown radix lda #'e' sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS // *buffer++ = 'r' - // [2509] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1) = 'r' -- _deref_pbuc1=vbuc2 + // [2523] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1) = 'r' -- _deref_pbuc1=vbuc2 lda #'r' sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+1 - // [2510] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2) = 'r' -- _deref_pbuc1=vbuc2 + // [2524] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2) = 'r' -- _deref_pbuc1=vbuc2 sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+2 // *buffer = 0 - // [2511] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3) = 0 -- _deref_pbuc1=vbuc2 + // [2525] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3) = 0 -- _deref_pbuc1=vbuc2 lda #0 sta printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS+3 // utoa::@return // } - // [2512] return + // [2526] return rts - // [2513] phi from utoa to utoa::@1 [phi:utoa->utoa::@1] + // [2527] phi from utoa to utoa::@1 [phi:utoa->utoa::@1] __b2: - // [2513] phi utoa::digit_values#8 = RADIX_DECIMAL_VALUES [phi:utoa->utoa::@1#0] -- pwuz1=pwuc1 + // [2527] phi utoa::digit_values#8 = RADIX_DECIMAL_VALUES [phi:utoa->utoa::@1#0] -- pwuz1=pwuc1 lda #RADIX_DECIMAL_VALUES sta.z digit_values+1 - // [2513] phi utoa::max_digits#7 = 5 [phi:utoa->utoa::@1#1] -- vbuz1=vbuc1 + // [2527] phi utoa::max_digits#7 = 5 [phi:utoa->utoa::@1#1] -- vbuz1=vbuc1 lda #5 sta.z max_digits jmp __b1 - // [2513] phi from utoa::@2 to utoa::@1 [phi:utoa::@2->utoa::@1] + // [2527] phi from utoa::@2 to utoa::@1 [phi:utoa::@2->utoa::@1] __b3: - // [2513] phi utoa::digit_values#8 = RADIX_HEXADECIMAL_VALUES [phi:utoa::@2->utoa::@1#0] -- pwuz1=pwuc1 + // [2527] phi utoa::digit_values#8 = RADIX_HEXADECIMAL_VALUES [phi:utoa::@2->utoa::@1#0] -- pwuz1=pwuc1 lda #RADIX_HEXADECIMAL_VALUES sta.z digit_values+1 - // [2513] phi utoa::max_digits#7 = 4 [phi:utoa::@2->utoa::@1#1] -- vbuz1=vbuc1 + // [2527] phi utoa::max_digits#7 = 4 [phi:utoa::@2->utoa::@1#1] -- vbuz1=vbuc1 lda #4 sta.z max_digits jmp __b1 - // [2513] phi from utoa::@3 to utoa::@1 [phi:utoa::@3->utoa::@1] + // [2527] phi from utoa::@3 to utoa::@1 [phi:utoa::@3->utoa::@1] __b4: - // [2513] phi utoa::digit_values#8 = RADIX_OCTAL_VALUES [phi:utoa::@3->utoa::@1#0] -- pwuz1=pwuc1 + // [2527] phi utoa::digit_values#8 = RADIX_OCTAL_VALUES [phi:utoa::@3->utoa::@1#0] -- pwuz1=pwuc1 lda #RADIX_OCTAL_VALUES sta.z digit_values+1 - // [2513] phi utoa::max_digits#7 = 6 [phi:utoa::@3->utoa::@1#1] -- vbuz1=vbuc1 + // [2527] phi utoa::max_digits#7 = 6 [phi:utoa::@3->utoa::@1#1] -- vbuz1=vbuc1 lda #6 sta.z max_digits jmp __b1 - // [2513] phi from utoa::@4 to utoa::@1 [phi:utoa::@4->utoa::@1] + // [2527] phi from utoa::@4 to utoa::@1 [phi:utoa::@4->utoa::@1] __b5: - // [2513] phi utoa::digit_values#8 = RADIX_BINARY_VALUES [phi:utoa::@4->utoa::@1#0] -- pwuz1=pwuc1 + // [2527] phi utoa::digit_values#8 = RADIX_BINARY_VALUES [phi:utoa::@4->utoa::@1#0] -- pwuz1=pwuc1 lda #RADIX_BINARY_VALUES sta.z digit_values+1 - // [2513] phi utoa::max_digits#7 = $10 [phi:utoa::@4->utoa::@1#1] -- vbuz1=vbuc1 + // [2527] phi utoa::max_digits#7 = $10 [phi:utoa::@4->utoa::@1#1] -- vbuz1=vbuc1 lda #$10 sta.z max_digits // utoa::@1 __b1: - // [2514] phi from utoa::@1 to utoa::@6 [phi:utoa::@1->utoa::@6] - // [2514] phi utoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:utoa::@1->utoa::@6#0] -- pbuz1=pbuc1 + // [2528] phi from utoa::@1 to utoa::@6 [phi:utoa::@1->utoa::@6] + // [2528] phi utoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:utoa::@1->utoa::@6#0] -- pbuz1=pbuc1 lda #printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS sta.z buffer+1 - // [2514] phi utoa::started#2 = 0 [phi:utoa::@1->utoa::@6#1] -- vbuz1=vbuc1 + // [2528] phi utoa::started#2 = 0 [phi:utoa::@1->utoa::@6#1] -- vbuz1=vbuc1 lda #0 sta.z started - // [2514] phi utoa::value#2 = utoa::value#1 [phi:utoa::@1->utoa::@6#2] -- register_copy - // [2514] phi utoa::digit#2 = 0 [phi:utoa::@1->utoa::@6#3] -- vbuz1=vbuc1 + // [2528] phi utoa::value#2 = utoa::value#1 [phi:utoa::@1->utoa::@6#2] -- register_copy + // [2528] phi utoa::digit#2 = 0 [phi:utoa::@1->utoa::@6#3] -- vbuz1=vbuc1 sta.z digit // utoa::@6 __b6: // max_digits-1 - // [2515] utoa::$4 = utoa::max_digits#7 - 1 -- vbuz1=vbuz2_minus_1 + // [2529] utoa::$4 = utoa::max_digits#7 - 1 -- vbuz1=vbuz2_minus_1 ldx.z max_digits dex stx.z utoa__4 // for( char digit=0; digit= digit_value) - // [2523] if(0!=utoa::started#2) goto utoa::@10 -- 0_neq_vbuz1_then_la1 + // [2537] if(0!=utoa::started#2) goto utoa::@10 -- 0_neq_vbuz1_then_la1 lda.z started bne __b10 // utoa::@12 - // [2524] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@10 -- vwuz1_ge_vwuz2_then_la1 + // [2538] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@10 -- vwuz1_ge_vwuz2_then_la1 lda.z digit_value+1 cmp.z value+1 bne !+ @@ -16769,51 +16895,51 @@ utoa: { beq __b10 !: bcc __b10 - // [2525] phi from utoa::@12 to utoa::@9 [phi:utoa::@12->utoa::@9] - // [2525] phi utoa::buffer#14 = utoa::buffer#11 [phi:utoa::@12->utoa::@9#0] -- register_copy - // [2525] phi utoa::started#4 = utoa::started#2 [phi:utoa::@12->utoa::@9#1] -- register_copy - // [2525] phi utoa::value#6 = utoa::value#2 [phi:utoa::@12->utoa::@9#2] -- register_copy + // [2539] phi from utoa::@12 to utoa::@9 [phi:utoa::@12->utoa::@9] + // [2539] phi utoa::buffer#14 = utoa::buffer#11 [phi:utoa::@12->utoa::@9#0] -- register_copy + // [2539] phi utoa::started#4 = utoa::started#2 [phi:utoa::@12->utoa::@9#1] -- register_copy + // [2539] phi utoa::value#6 = utoa::value#2 [phi:utoa::@12->utoa::@9#2] -- register_copy // utoa::@9 __b9: // for( char digit=0; digitutoa::@6] - // [2514] phi utoa::buffer#11 = utoa::buffer#14 [phi:utoa::@9->utoa::@6#0] -- register_copy - // [2514] phi utoa::started#2 = utoa::started#4 [phi:utoa::@9->utoa::@6#1] -- register_copy - // [2514] phi utoa::value#2 = utoa::value#6 [phi:utoa::@9->utoa::@6#2] -- register_copy - // [2514] phi utoa::digit#2 = utoa::digit#1 [phi:utoa::@9->utoa::@6#3] -- register_copy + // [2528] phi from utoa::@9 to utoa::@6 [phi:utoa::@9->utoa::@6] + // [2528] phi utoa::buffer#11 = utoa::buffer#14 [phi:utoa::@9->utoa::@6#0] -- register_copy + // [2528] phi utoa::started#2 = utoa::started#4 [phi:utoa::@9->utoa::@6#1] -- register_copy + // [2528] phi utoa::value#2 = utoa::value#6 [phi:utoa::@9->utoa::@6#2] -- register_copy + // [2528] phi utoa::digit#2 = utoa::digit#1 [phi:utoa::@9->utoa::@6#3] -- register_copy jmp __b6 // utoa::@10 __b10: // utoa_append(buffer++, value, digit_value) - // [2527] utoa_append::buffer#0 = utoa::buffer#11 -- pbuz1=pbuz2 + // [2541] utoa_append::buffer#0 = utoa::buffer#11 -- pbuz1=pbuz2 lda.z buffer sta.z utoa_append.buffer lda.z buffer+1 sta.z utoa_append.buffer+1 - // [2528] utoa_append::value#0 = utoa::value#2 - // [2529] utoa_append::sub#0 = utoa::digit_value#0 - // [2530] call utoa_append - // [2809] phi from utoa::@10 to utoa_append [phi:utoa::@10->utoa_append] + // [2542] utoa_append::value#0 = utoa::value#2 + // [2543] utoa_append::sub#0 = utoa::digit_value#0 + // [2544] call utoa_append + // [2823] phi from utoa::@10 to utoa_append [phi:utoa::@10->utoa_append] jsr utoa_append // utoa_append(buffer++, value, digit_value) - // [2531] utoa_append::return#0 = utoa_append::value#2 + // [2545] utoa_append::return#0 = utoa_append::value#2 // utoa::@11 // value = utoa_append(buffer++, value, digit_value) - // [2532] utoa::value#0 = utoa_append::return#0 + // [2546] utoa::value#0 = utoa_append::return#0 // value = utoa_append(buffer++, value, digit_value); - // [2533] utoa::buffer#4 = ++ utoa::buffer#11 -- pbuz1=_inc_pbuz1 + // [2547] utoa::buffer#4 = ++ utoa::buffer#11 -- pbuz1=_inc_pbuz1 inc.z buffer bne !+ inc.z buffer+1 !: - // [2525] phi from utoa::@11 to utoa::@9 [phi:utoa::@11->utoa::@9] - // [2525] phi utoa::buffer#14 = utoa::buffer#4 [phi:utoa::@11->utoa::@9#0] -- register_copy - // [2525] phi utoa::started#4 = 1 [phi:utoa::@11->utoa::@9#1] -- vbuz1=vbuc1 + // [2539] phi from utoa::@11 to utoa::@9 [phi:utoa::@11->utoa::@9] + // [2539] phi utoa::buffer#14 = utoa::buffer#4 [phi:utoa::@11->utoa::@9#0] -- register_copy + // [2539] phi utoa::started#4 = 1 [phi:utoa::@11->utoa::@9#1] -- vbuz1=vbuc1 lda #1 sta.z started - // [2525] phi utoa::value#6 = utoa::value#0 [phi:utoa::@11->utoa::@9#2] -- register_copy + // [2539] phi utoa::value#6 = utoa::value#0 [phi:utoa::@11->utoa::@9#2] -- register_copy jmp __b9 } // insertup @@ -16827,77 +16953,77 @@ insertup: { .label width = $45 .label y = $35 // __conio.width+1 - // [2534] insertup::$0 = *((char *)&__conio+6) + 1 -- vbuz1=_deref_pbuc1_plus_1 + // [2548] insertup::$0 = *((char *)&__conio+6) + 1 -- vbuz1=_deref_pbuc1_plus_1 lda __conio+6 inc sta.z insertup__0 // unsigned char width = (__conio.width+1) * 2 - // [2535] insertup::width#0 = insertup::$0 << 1 -- vbuz1=vbuz1_rol_1 + // [2549] insertup::width#0 = insertup::$0 << 1 -- vbuz1=vbuz1_rol_1 // {asm{.byte $db}} asl.z width - // [2536] phi from insertup to insertup::@1 [phi:insertup->insertup::@1] - // [2536] phi insertup::y#2 = 0 [phi:insertup->insertup::@1#0] -- vbuz1=vbuc1 + // [2550] phi from insertup to insertup::@1 [phi:insertup->insertup::@1] + // [2550] phi insertup::y#2 = 0 [phi:insertup->insertup::@1#0] -- vbuz1=vbuc1 lda #0 sta.z y // insertup::@1 __b1: // for(unsigned char y=0; y<__conio.cursor_y; y++) - // [2537] if(insertup::y#2<*((char *)&__conio+1)) goto insertup::@2 -- vbuz1_lt__deref_pbuc1_then_la1 + // [2551] if(insertup::y#2<*((char *)&__conio+1)) goto insertup::@2 -- vbuz1_lt__deref_pbuc1_then_la1 lda.z y cmp __conio+1 bcc __b2 - // [2538] phi from insertup::@1 to insertup::@3 [phi:insertup::@1->insertup::@3] + // [2552] phi from insertup::@1 to insertup::@3 [phi:insertup::@1->insertup::@3] // insertup::@3 // clearline() - // [2539] call clearline + // [2553] call clearline jsr clearline // insertup::@return // } - // [2540] return + // [2554] return rts // insertup::@2 __b2: // y+1 - // [2541] insertup::$4 = insertup::y#2 + 1 -- vbuz1=vbuz2_plus_1 + // [2555] insertup::$4 = insertup::y#2 + 1 -- vbuz1=vbuz2_plus_1 lda.z y inc sta.z insertup__4 // memcpy8_vram_vram(__conio.mapbase_bank, __conio.offsets[y], __conio.mapbase_bank, __conio.offsets[y+1], width) - // [2542] insertup::$6 = insertup::y#2 << 1 -- vbuz1=vbuz2_rol_1 + // [2556] insertup::$6 = insertup::y#2 << 1 -- vbuz1=vbuz2_rol_1 lda.z y asl sta.z insertup__6 - // [2543] insertup::$7 = insertup::$4 << 1 -- vbuz1=vbuz1_rol_1 + // [2557] insertup::$7 = insertup::$4 << 1 -- vbuz1=vbuz1_rol_1 asl.z insertup__7 - // [2544] memcpy8_vram_vram::dbank_vram#0 = *((char *)&__conio+5) -- vbuz1=_deref_pbuc1 + // [2558] memcpy8_vram_vram::dbank_vram#0 = *((char *)&__conio+5) -- vbuz1=_deref_pbuc1 lda __conio+5 sta.z memcpy8_vram_vram.dbank_vram - // [2545] memcpy8_vram_vram::doffset_vram#0 = ((unsigned int *)&__conio+$15)[insertup::$6] -- vwuz1=pwuc1_derefidx_vbuz2 + // [2559] memcpy8_vram_vram::doffset_vram#0 = ((unsigned int *)&__conio+$15)[insertup::$6] -- vwuz1=pwuc1_derefidx_vbuz2 ldy.z insertup__6 lda __conio+$15,y sta.z memcpy8_vram_vram.doffset_vram lda __conio+$15+1,y sta.z memcpy8_vram_vram.doffset_vram+1 - // [2546] memcpy8_vram_vram::sbank_vram#0 = *((char *)&__conio+5) -- vbuz1=_deref_pbuc1 + // [2560] memcpy8_vram_vram::sbank_vram#0 = *((char *)&__conio+5) -- vbuz1=_deref_pbuc1 lda __conio+5 sta.z memcpy8_vram_vram.sbank_vram - // [2547] memcpy8_vram_vram::soffset_vram#0 = ((unsigned int *)&__conio+$15)[insertup::$7] -- vwuz1=pwuc1_derefidx_vbuz2 + // [2561] memcpy8_vram_vram::soffset_vram#0 = ((unsigned int *)&__conio+$15)[insertup::$7] -- vwuz1=pwuc1_derefidx_vbuz2 ldy.z insertup__7 lda __conio+$15,y sta.z memcpy8_vram_vram.soffset_vram lda __conio+$15+1,y sta.z memcpy8_vram_vram.soffset_vram+1 - // [2548] memcpy8_vram_vram::num8#1 = insertup::width#0 -- vbuz1=vbuz2 + // [2562] memcpy8_vram_vram::num8#1 = insertup::width#0 -- vbuz1=vbuz2 lda.z width sta.z memcpy8_vram_vram.num8_1 - // [2549] call memcpy8_vram_vram + // [2563] call memcpy8_vram_vram jsr memcpy8_vram_vram // insertup::@4 // for(unsigned char y=0; y<__conio.cursor_y; y++) - // [2550] insertup::y#1 = ++ insertup::y#2 -- vbuz1=_inc_vbuz1 + // [2564] insertup::y#1 = ++ insertup::y#2 -- vbuz1=_inc_vbuz1 inc.z y - // [2536] phi from insertup::@4 to insertup::@1 [phi:insertup::@4->insertup::@1] - // [2536] phi insertup::y#2 = insertup::y#1 [phi:insertup::@4->insertup::@1#0] -- register_copy + // [2550] phi from insertup::@4 to insertup::@1 [phi:insertup::@4->insertup::@1] + // [2550] phi insertup::y#2 = insertup::y#1 [phi:insertup::@4->insertup::@1#0] -- register_copy jmp __b1 } // clearline @@ -16909,69 +17035,69 @@ clearline: { .label addr = $38 .label c = $22 // unsigned int addr = __conio.offsets[__conio.cursor_y] - // [2551] clearline::$3 = *((char *)&__conio+1) << 1 -- vbuz1=_deref_pbuc1_rol_1 + // [2565] clearline::$3 = *((char *)&__conio+1) << 1 -- vbuz1=_deref_pbuc1_rol_1 lda __conio+1 asl sta.z clearline__3 - // [2552] clearline::addr#0 = ((unsigned int *)&__conio+$15)[clearline::$3] -- vwuz1=pwuc1_derefidx_vbuz2 + // [2566] clearline::addr#0 = ((unsigned int *)&__conio+$15)[clearline::$3] -- vwuz1=pwuc1_derefidx_vbuz2 tay lda __conio+$15,y sta.z addr lda __conio+$15+1,y sta.z addr+1 // *VERA_CTRL &= ~VERA_ADDRSEL - // [2553] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [2567] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_ADDRSEL^$ff and VERA_CTRL sta VERA_CTRL // BYTE0(addr) - // [2554] clearline::$0 = byte0 clearline::addr#0 -- vbuz1=_byte0_vwuz2 + // [2568] clearline::$0 = byte0 clearline::addr#0 -- vbuz1=_byte0_vwuz2 lda.z addr sta.z clearline__0 // *VERA_ADDRX_L = BYTE0(addr) - // [2555] *VERA_ADDRX_L = clearline::$0 -- _deref_pbuc1=vbuz1 + // [2569] *VERA_ADDRX_L = clearline::$0 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_L // BYTE1(addr) - // [2556] clearline::$1 = byte1 clearline::addr#0 -- vbuz1=_byte1_vwuz2 + // [2570] clearline::$1 = byte1 clearline::addr#0 -- vbuz1=_byte1_vwuz2 lda.z addr+1 sta.z clearline__1 // *VERA_ADDRX_M = BYTE1(addr) - // [2557] *VERA_ADDRX_M = clearline::$1 -- _deref_pbuc1=vbuz1 + // [2571] *VERA_ADDRX_M = clearline::$1 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_M // __conio.mapbase_bank | VERA_INC_1 - // [2558] clearline::$2 = *((char *)&__conio+5) | VERA_INC_1 -- vbuz1=_deref_pbuc1_bor_vbuc2 + // [2572] clearline::$2 = *((char *)&__conio+5) | VERA_INC_1 -- vbuz1=_deref_pbuc1_bor_vbuc2 lda #VERA_INC_1 ora __conio+5 sta.z clearline__2 // *VERA_ADDRX_H = __conio.mapbase_bank | VERA_INC_1 - // [2559] *VERA_ADDRX_H = clearline::$2 -- _deref_pbuc1=vbuz1 + // [2573] *VERA_ADDRX_H = clearline::$2 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_H // register unsigned char c=__conio.width - // [2560] clearline::c#0 = *((char *)&__conio+6) -- vbuz1=_deref_pbuc1 + // [2574] clearline::c#0 = *((char *)&__conio+6) -- vbuz1=_deref_pbuc1 lda __conio+6 sta.z c - // [2561] phi from clearline clearline::@1 to clearline::@1 [phi:clearline/clearline::@1->clearline::@1] - // [2561] phi clearline::c#2 = clearline::c#0 [phi:clearline/clearline::@1->clearline::@1#0] -- register_copy + // [2575] phi from clearline clearline::@1 to clearline::@1 [phi:clearline/clearline::@1->clearline::@1] + // [2575] phi clearline::c#2 = clearline::c#0 [phi:clearline/clearline::@1->clearline::@1#0] -- register_copy // clearline::@1 __b1: // *VERA_DATA0 = ' ' - // [2562] *VERA_DATA0 = ' ' -- _deref_pbuc1=vbuc2 + // [2576] *VERA_DATA0 = ' ' -- _deref_pbuc1=vbuc2 lda #' ' sta VERA_DATA0 // *VERA_DATA0 = __conio.color - // [2563] *VERA_DATA0 = *((char *)&__conio+$d) -- _deref_pbuc1=_deref_pbuc2 + // [2577] *VERA_DATA0 = *((char *)&__conio+$d) -- _deref_pbuc1=_deref_pbuc2 lda __conio+$d sta VERA_DATA0 // c--; - // [2564] clearline::c#1 = -- clearline::c#2 -- vbuz1=_dec_vbuz1 + // [2578] clearline::c#1 = -- clearline::c#2 -- vbuz1=_dec_vbuz1 dec.z c // while(c) - // [2565] if(0!=clearline::c#1) goto clearline::@1 -- 0_neq_vbuz1_then_la1 + // [2579] if(0!=clearline::c#1) goto clearline::@1 -- 0_neq_vbuz1_then_la1 lda.z c bne __b1 // clearline::@return // } - // [2566] return + // [2580] return rts } // display_frame_maskxy @@ -16984,11 +17110,11 @@ clearline: { */ // __zp($64) char display_frame_maskxy(__mem() char x, __zp($2d) char y) display_frame_maskxy: { - .label cpeekcxy1_cpeekc1_display_frame_maskxy__0 = $5c - .label cpeekcxy1_cpeekc1_display_frame_maskxy__1 = $2c - .label cpeekcxy1_cpeekc1_display_frame_maskxy__2 = $36 + .label cpeekcxy1_cpeekc1_display_frame_maskxy__0 = $61 + .label cpeekcxy1_cpeekc1_display_frame_maskxy__1 = $53 + .label cpeekcxy1_cpeekc1_display_frame_maskxy__2 = $2c .label cpeekcxy1_y = $2d - .label c = $37 + .label c = $36 // DR corner. // DL corner. // UR corner. @@ -17004,200 +17130,200 @@ display_frame_maskxy: { .label y = $2d // display_frame_maskxy::cpeekcxy1 // gotoxy(x,y) - // [2568] gotoxy::x#5 = display_frame_maskxy::cpeekcxy1_x#0 -- vbuz1=vbum2 + // [2582] gotoxy::x#5 = display_frame_maskxy::cpeekcxy1_x#0 -- vbuz1=vbum2 lda cpeekcxy1_x sta.z gotoxy.x - // [2569] gotoxy::y#5 = display_frame_maskxy::cpeekcxy1_y#0 -- vbuz1=vbuz2 + // [2583] gotoxy::y#5 = display_frame_maskxy::cpeekcxy1_y#0 -- vbuz1=vbuz2 lda.z cpeekcxy1_y sta.z gotoxy.y - // [2570] call gotoxy - // [744] phi from display_frame_maskxy::cpeekcxy1 to gotoxy [phi:display_frame_maskxy::cpeekcxy1->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#5 [phi:display_frame_maskxy::cpeekcxy1->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#5 [phi:display_frame_maskxy::cpeekcxy1->gotoxy#1] -- register_copy + // [2584] call gotoxy + // [751] phi from display_frame_maskxy::cpeekcxy1 to gotoxy [phi:display_frame_maskxy::cpeekcxy1->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#5 [phi:display_frame_maskxy::cpeekcxy1->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#5 [phi:display_frame_maskxy::cpeekcxy1->gotoxy#1] -- register_copy jsr gotoxy // display_frame_maskxy::cpeekcxy1_cpeekc1 // *VERA_CTRL &= ~VERA_ADDRSEL - // [2571] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [2585] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_ADDRSEL^$ff and VERA_CTRL sta VERA_CTRL // BYTE0(__conio.offset) - // [2572] display_frame_maskxy::cpeekcxy1_cpeekc1_$0 = byte0 *((unsigned int *)&__conio+$13) -- vbuz1=_byte0__deref_pwuc1 + // [2586] display_frame_maskxy::cpeekcxy1_cpeekc1_$0 = byte0 *((unsigned int *)&__conio+$13) -- vbuz1=_byte0__deref_pwuc1 lda __conio+$13 sta.z cpeekcxy1_cpeekc1_display_frame_maskxy__0 // *VERA_ADDRX_L = BYTE0(__conio.offset) - // [2573] *VERA_ADDRX_L = display_frame_maskxy::cpeekcxy1_cpeekc1_$0 -- _deref_pbuc1=vbuz1 + // [2587] *VERA_ADDRX_L = display_frame_maskxy::cpeekcxy1_cpeekc1_$0 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_L // BYTE1(__conio.offset) - // [2574] display_frame_maskxy::cpeekcxy1_cpeekc1_$1 = byte1 *((unsigned int *)&__conio+$13) -- vbuz1=_byte1__deref_pwuc1 + // [2588] display_frame_maskxy::cpeekcxy1_cpeekc1_$1 = byte1 *((unsigned int *)&__conio+$13) -- vbuz1=_byte1__deref_pwuc1 lda __conio+$13+1 sta.z cpeekcxy1_cpeekc1_display_frame_maskxy__1 // *VERA_ADDRX_M = BYTE1(__conio.offset) - // [2575] *VERA_ADDRX_M = display_frame_maskxy::cpeekcxy1_cpeekc1_$1 -- _deref_pbuc1=vbuz1 + // [2589] *VERA_ADDRX_M = display_frame_maskxy::cpeekcxy1_cpeekc1_$1 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_M // __conio.mapbase_bank | VERA_INC_0 - // [2576] display_frame_maskxy::cpeekcxy1_cpeekc1_$2 = *((char *)&__conio+5) -- vbuz1=_deref_pbuc1 + // [2590] display_frame_maskxy::cpeekcxy1_cpeekc1_$2 = *((char *)&__conio+5) -- vbuz1=_deref_pbuc1 lda __conio+5 sta.z cpeekcxy1_cpeekc1_display_frame_maskxy__2 // *VERA_ADDRX_H = __conio.mapbase_bank | VERA_INC_0 - // [2577] *VERA_ADDRX_H = display_frame_maskxy::cpeekcxy1_cpeekc1_$2 -- _deref_pbuc1=vbuz1 + // [2591] *VERA_ADDRX_H = display_frame_maskxy::cpeekcxy1_cpeekc1_$2 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_H // return *VERA_DATA0; - // [2578] display_frame_maskxy::c#0 = *VERA_DATA0 -- vbuz1=_deref_pbuc1 + // [2592] display_frame_maskxy::c#0 = *VERA_DATA0 -- vbuz1=_deref_pbuc1 lda VERA_DATA0 sta.z c // display_frame_maskxy::@12 // case 0x70: // DR corner. // return 0b0110; - // [2579] if(display_frame_maskxy::c#0==$70) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2593] if(display_frame_maskxy::c#0==$70) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$70 cmp.z c beq __b2 // display_frame_maskxy::@1 // case 0x6E: // DL corner. // return 0b0011; - // [2580] if(display_frame_maskxy::c#0==$6e) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2594] if(display_frame_maskxy::c#0==$6e) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$6e cmp.z c beq __b1 // display_frame_maskxy::@2 // case 0x6D: // UR corner. // return 0b1100; - // [2581] if(display_frame_maskxy::c#0==$6d) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2595] if(display_frame_maskxy::c#0==$6d) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$6d cmp.z c beq __b3 // display_frame_maskxy::@3 // case 0x7D: // UL corner. // return 0b1001; - // [2582] if(display_frame_maskxy::c#0==$7d) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2596] if(display_frame_maskxy::c#0==$7d) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$7d cmp.z c beq __b4 // display_frame_maskxy::@4 // case 0x40: // HL line. // return 0b0101; - // [2583] if(display_frame_maskxy::c#0==$40) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2597] if(display_frame_maskxy::c#0==$40) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$40 cmp.z c beq __b5 // display_frame_maskxy::@5 // case 0x5D: // VL line. // return 0b1010; - // [2584] if(display_frame_maskxy::c#0==$5d) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2598] if(display_frame_maskxy::c#0==$5d) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$5d cmp.z c beq __b6 // display_frame_maskxy::@6 // case 0x6B: // VR junction. // return 0b1110; - // [2585] if(display_frame_maskxy::c#0==$6b) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2599] if(display_frame_maskxy::c#0==$6b) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$6b cmp.z c beq __b7 // display_frame_maskxy::@7 // case 0x73: // VL junction. // return 0b1011; - // [2586] if(display_frame_maskxy::c#0==$73) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2600] if(display_frame_maskxy::c#0==$73) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$73 cmp.z c beq __b8 // display_frame_maskxy::@8 // case 0x72: // HD junction. // return 0b0111; - // [2587] if(display_frame_maskxy::c#0==$72) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2601] if(display_frame_maskxy::c#0==$72) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$72 cmp.z c beq __b9 // display_frame_maskxy::@9 // case 0x71: // HU junction. // return 0b1101; - // [2588] if(display_frame_maskxy::c#0==$71) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 + // [2602] if(display_frame_maskxy::c#0==$71) goto display_frame_maskxy::@return -- vbuz1_eq_vbuc1_then_la1 lda #$71 cmp.z c beq __b10 // display_frame_maskxy::@10 // case 0x5B: // HV junction. // return 0b1111; - // [2589] if(display_frame_maskxy::c#0==$5b) goto display_frame_maskxy::@11 -- vbuz1_eq_vbuc1_then_la1 + // [2603] if(display_frame_maskxy::c#0==$5b) goto display_frame_maskxy::@11 -- vbuz1_eq_vbuc1_then_la1 lda #$5b cmp.z c beq __b11 - // [2591] phi from display_frame_maskxy::@10 to display_frame_maskxy::@return [phi:display_frame_maskxy::@10->display_frame_maskxy::@return] - // [2591] phi display_frame_maskxy::return#12 = 0 [phi:display_frame_maskxy::@10->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi from display_frame_maskxy::@10 to display_frame_maskxy::@return [phi:display_frame_maskxy::@10->display_frame_maskxy::@return] + // [2605] phi display_frame_maskxy::return#12 = 0 [phi:display_frame_maskxy::@10->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #0 sta.z return rts - // [2590] phi from display_frame_maskxy::@10 to display_frame_maskxy::@11 [phi:display_frame_maskxy::@10->display_frame_maskxy::@11] + // [2604] phi from display_frame_maskxy::@10 to display_frame_maskxy::@11 [phi:display_frame_maskxy::@10->display_frame_maskxy::@11] // display_frame_maskxy::@11 __b11: - // [2591] phi from display_frame_maskxy::@11 to display_frame_maskxy::@return [phi:display_frame_maskxy::@11->display_frame_maskxy::@return] - // [2591] phi display_frame_maskxy::return#12 = $f [phi:display_frame_maskxy::@11->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi from display_frame_maskxy::@11 to display_frame_maskxy::@return [phi:display_frame_maskxy::@11->display_frame_maskxy::@return] + // [2605] phi display_frame_maskxy::return#12 = $f [phi:display_frame_maskxy::@11->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #$f sta.z return rts - // [2591] phi from display_frame_maskxy::@1 to display_frame_maskxy::@return [phi:display_frame_maskxy::@1->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@1 to display_frame_maskxy::@return [phi:display_frame_maskxy::@1->display_frame_maskxy::@return] __b1: - // [2591] phi display_frame_maskxy::return#12 = 3 [phi:display_frame_maskxy::@1->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = 3 [phi:display_frame_maskxy::@1->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #3 sta.z return rts - // [2591] phi from display_frame_maskxy::@12 to display_frame_maskxy::@return [phi:display_frame_maskxy::@12->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@12 to display_frame_maskxy::@return [phi:display_frame_maskxy::@12->display_frame_maskxy::@return] __b2: - // [2591] phi display_frame_maskxy::return#12 = 6 [phi:display_frame_maskxy::@12->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = 6 [phi:display_frame_maskxy::@12->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #6 sta.z return rts - // [2591] phi from display_frame_maskxy::@2 to display_frame_maskxy::@return [phi:display_frame_maskxy::@2->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@2 to display_frame_maskxy::@return [phi:display_frame_maskxy::@2->display_frame_maskxy::@return] __b3: - // [2591] phi display_frame_maskxy::return#12 = $c [phi:display_frame_maskxy::@2->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = $c [phi:display_frame_maskxy::@2->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #$c sta.z return rts - // [2591] phi from display_frame_maskxy::@3 to display_frame_maskxy::@return [phi:display_frame_maskxy::@3->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@3 to display_frame_maskxy::@return [phi:display_frame_maskxy::@3->display_frame_maskxy::@return] __b4: - // [2591] phi display_frame_maskxy::return#12 = 9 [phi:display_frame_maskxy::@3->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = 9 [phi:display_frame_maskxy::@3->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #9 sta.z return rts - // [2591] phi from display_frame_maskxy::@4 to display_frame_maskxy::@return [phi:display_frame_maskxy::@4->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@4 to display_frame_maskxy::@return [phi:display_frame_maskxy::@4->display_frame_maskxy::@return] __b5: - // [2591] phi display_frame_maskxy::return#12 = 5 [phi:display_frame_maskxy::@4->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = 5 [phi:display_frame_maskxy::@4->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #5 sta.z return rts - // [2591] phi from display_frame_maskxy::@5 to display_frame_maskxy::@return [phi:display_frame_maskxy::@5->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@5 to display_frame_maskxy::@return [phi:display_frame_maskxy::@5->display_frame_maskxy::@return] __b6: - // [2591] phi display_frame_maskxy::return#12 = $a [phi:display_frame_maskxy::@5->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = $a [phi:display_frame_maskxy::@5->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #$a sta.z return rts - // [2591] phi from display_frame_maskxy::@6 to display_frame_maskxy::@return [phi:display_frame_maskxy::@6->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@6 to display_frame_maskxy::@return [phi:display_frame_maskxy::@6->display_frame_maskxy::@return] __b7: - // [2591] phi display_frame_maskxy::return#12 = $e [phi:display_frame_maskxy::@6->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = $e [phi:display_frame_maskxy::@6->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #$e sta.z return rts - // [2591] phi from display_frame_maskxy::@7 to display_frame_maskxy::@return [phi:display_frame_maskxy::@7->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@7 to display_frame_maskxy::@return [phi:display_frame_maskxy::@7->display_frame_maskxy::@return] __b8: - // [2591] phi display_frame_maskxy::return#12 = $b [phi:display_frame_maskxy::@7->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = $b [phi:display_frame_maskxy::@7->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #$b sta.z return rts - // [2591] phi from display_frame_maskxy::@8 to display_frame_maskxy::@return [phi:display_frame_maskxy::@8->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@8 to display_frame_maskxy::@return [phi:display_frame_maskxy::@8->display_frame_maskxy::@return] __b9: - // [2591] phi display_frame_maskxy::return#12 = 7 [phi:display_frame_maskxy::@8->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = 7 [phi:display_frame_maskxy::@8->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #7 sta.z return rts - // [2591] phi from display_frame_maskxy::@9 to display_frame_maskxy::@return [phi:display_frame_maskxy::@9->display_frame_maskxy::@return] + // [2605] phi from display_frame_maskxy::@9 to display_frame_maskxy::@return [phi:display_frame_maskxy::@9->display_frame_maskxy::@return] __b10: - // [2591] phi display_frame_maskxy::return#12 = $d [phi:display_frame_maskxy::@9->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 + // [2605] phi display_frame_maskxy::return#12 = $d [phi:display_frame_maskxy::@9->display_frame_maskxy::@return#0] -- vbuz1=vbuc1 lda #$d sta.z return // display_frame_maskxy::@return // } - // [2592] return + // [2606] return rts .segment Data .label cpeekcxy1_x = main.check_status_rom1_main__0 @@ -17217,14 +17343,14 @@ display_frame_char: { .label mask = $64 // case 0b0110: // return 0x70; - // [2594] if(display_frame_char::mask#10==6) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2608] if(display_frame_char::mask#10==6) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 lda #6 cmp.z mask beq __b1 // display_frame_char::@1 // case 0b0011: // return 0x6E; - // [2595] if(display_frame_char::mask#10==3) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2609] if(display_frame_char::mask#10==3) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // DR corner. lda #3 cmp.z mask @@ -17232,7 +17358,7 @@ display_frame_char: { // display_frame_char::@2 // case 0b1100: // return 0x6D; - // [2596] if(display_frame_char::mask#10==$c) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2610] if(display_frame_char::mask#10==$c) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // DL corner. lda #$c cmp.z mask @@ -17240,7 +17366,7 @@ display_frame_char: { // display_frame_char::@3 // case 0b1001: // return 0x7D; - // [2597] if(display_frame_char::mask#10==9) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2611] if(display_frame_char::mask#10==9) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // UR corner. lda #9 cmp.z mask @@ -17248,7 +17374,7 @@ display_frame_char: { // display_frame_char::@4 // case 0b0101: // return 0x40; - // [2598] if(display_frame_char::mask#10==5) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2612] if(display_frame_char::mask#10==5) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // UL corner. lda #5 cmp.z mask @@ -17256,7 +17382,7 @@ display_frame_char: { // display_frame_char::@5 // case 0b1010: // return 0x5D; - // [2599] if(display_frame_char::mask#10==$a) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2613] if(display_frame_char::mask#10==$a) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // HL line. lda #$a cmp.z mask @@ -17264,7 +17390,7 @@ display_frame_char: { // display_frame_char::@6 // case 0b1110: // return 0x6B; - // [2600] if(display_frame_char::mask#10==$e) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2614] if(display_frame_char::mask#10==$e) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // VL line. lda #$e cmp.z mask @@ -17272,7 +17398,7 @@ display_frame_char: { // display_frame_char::@7 // case 0b1011: // return 0x73; - // [2601] if(display_frame_char::mask#10==$b) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2615] if(display_frame_char::mask#10==$b) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // VR junction. lda #$b cmp.z mask @@ -17280,7 +17406,7 @@ display_frame_char: { // display_frame_char::@8 // case 0b0111: // return 0x72; - // [2602] if(display_frame_char::mask#10==7) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2616] if(display_frame_char::mask#10==7) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // VL junction. lda #7 cmp.z mask @@ -17288,7 +17414,7 @@ display_frame_char: { // display_frame_char::@9 // case 0b1101: // return 0x71; - // [2603] if(display_frame_char::mask#10==$d) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 + // [2617] if(display_frame_char::mask#10==$d) goto display_frame_char::@return -- vbuz1_eq_vbuc1_then_la1 // HD junction. lda #$d cmp.z mask @@ -17296,86 +17422,86 @@ display_frame_char: { // display_frame_char::@10 // case 0b1111: // return 0x5B; - // [2604] if(display_frame_char::mask#10==$f) goto display_frame_char::@11 -- vbuz1_eq_vbuc1_then_la1 + // [2618] if(display_frame_char::mask#10==$f) goto display_frame_char::@11 -- vbuz1_eq_vbuc1_then_la1 // HU junction. lda #$f cmp.z mask beq __b11 - // [2606] phi from display_frame_char::@10 to display_frame_char::@return [phi:display_frame_char::@10->display_frame_char::@return] - // [2606] phi display_frame_char::return#12 = $20 [phi:display_frame_char::@10->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi from display_frame_char::@10 to display_frame_char::@return [phi:display_frame_char::@10->display_frame_char::@return] + // [2620] phi display_frame_char::return#12 = $20 [phi:display_frame_char::@10->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$20 sta.z return rts - // [2605] phi from display_frame_char::@10 to display_frame_char::@11 [phi:display_frame_char::@10->display_frame_char::@11] + // [2619] phi from display_frame_char::@10 to display_frame_char::@11 [phi:display_frame_char::@10->display_frame_char::@11] // display_frame_char::@11 __b11: - // [2606] phi from display_frame_char::@11 to display_frame_char::@return [phi:display_frame_char::@11->display_frame_char::@return] - // [2606] phi display_frame_char::return#12 = $5b [phi:display_frame_char::@11->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi from display_frame_char::@11 to display_frame_char::@return [phi:display_frame_char::@11->display_frame_char::@return] + // [2620] phi display_frame_char::return#12 = $5b [phi:display_frame_char::@11->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$5b sta.z return rts - // [2606] phi from display_frame_char to display_frame_char::@return [phi:display_frame_char->display_frame_char::@return] + // [2620] phi from display_frame_char to display_frame_char::@return [phi:display_frame_char->display_frame_char::@return] __b1: - // [2606] phi display_frame_char::return#12 = $70 [phi:display_frame_char->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $70 [phi:display_frame_char->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$70 sta.z return rts - // [2606] phi from display_frame_char::@1 to display_frame_char::@return [phi:display_frame_char::@1->display_frame_char::@return] + // [2620] phi from display_frame_char::@1 to display_frame_char::@return [phi:display_frame_char::@1->display_frame_char::@return] __b2: - // [2606] phi display_frame_char::return#12 = $6e [phi:display_frame_char::@1->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $6e [phi:display_frame_char::@1->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$6e sta.z return rts - // [2606] phi from display_frame_char::@2 to display_frame_char::@return [phi:display_frame_char::@2->display_frame_char::@return] + // [2620] phi from display_frame_char::@2 to display_frame_char::@return [phi:display_frame_char::@2->display_frame_char::@return] __b3: - // [2606] phi display_frame_char::return#12 = $6d [phi:display_frame_char::@2->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $6d [phi:display_frame_char::@2->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$6d sta.z return rts - // [2606] phi from display_frame_char::@3 to display_frame_char::@return [phi:display_frame_char::@3->display_frame_char::@return] + // [2620] phi from display_frame_char::@3 to display_frame_char::@return [phi:display_frame_char::@3->display_frame_char::@return] __b4: - // [2606] phi display_frame_char::return#12 = $7d [phi:display_frame_char::@3->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $7d [phi:display_frame_char::@3->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$7d sta.z return rts - // [2606] phi from display_frame_char::@4 to display_frame_char::@return [phi:display_frame_char::@4->display_frame_char::@return] + // [2620] phi from display_frame_char::@4 to display_frame_char::@return [phi:display_frame_char::@4->display_frame_char::@return] __b5: - // [2606] phi display_frame_char::return#12 = $40 [phi:display_frame_char::@4->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $40 [phi:display_frame_char::@4->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$40 sta.z return rts - // [2606] phi from display_frame_char::@5 to display_frame_char::@return [phi:display_frame_char::@5->display_frame_char::@return] + // [2620] phi from display_frame_char::@5 to display_frame_char::@return [phi:display_frame_char::@5->display_frame_char::@return] __b6: - // [2606] phi display_frame_char::return#12 = $5d [phi:display_frame_char::@5->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $5d [phi:display_frame_char::@5->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$5d sta.z return rts - // [2606] phi from display_frame_char::@6 to display_frame_char::@return [phi:display_frame_char::@6->display_frame_char::@return] + // [2620] phi from display_frame_char::@6 to display_frame_char::@return [phi:display_frame_char::@6->display_frame_char::@return] __b7: - // [2606] phi display_frame_char::return#12 = $6b [phi:display_frame_char::@6->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $6b [phi:display_frame_char::@6->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$6b sta.z return rts - // [2606] phi from display_frame_char::@7 to display_frame_char::@return [phi:display_frame_char::@7->display_frame_char::@return] + // [2620] phi from display_frame_char::@7 to display_frame_char::@return [phi:display_frame_char::@7->display_frame_char::@return] __b8: - // [2606] phi display_frame_char::return#12 = $73 [phi:display_frame_char::@7->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $73 [phi:display_frame_char::@7->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$73 sta.z return rts - // [2606] phi from display_frame_char::@8 to display_frame_char::@return [phi:display_frame_char::@8->display_frame_char::@return] + // [2620] phi from display_frame_char::@8 to display_frame_char::@return [phi:display_frame_char::@8->display_frame_char::@return] __b9: - // [2606] phi display_frame_char::return#12 = $72 [phi:display_frame_char::@8->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $72 [phi:display_frame_char::@8->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$72 sta.z return rts - // [2606] phi from display_frame_char::@9 to display_frame_char::@return [phi:display_frame_char::@9->display_frame_char::@return] + // [2620] phi from display_frame_char::@9 to display_frame_char::@return [phi:display_frame_char::@9->display_frame_char::@return] __b10: - // [2606] phi display_frame_char::return#12 = $71 [phi:display_frame_char::@9->display_frame_char::@return#0] -- vbuz1=vbuc1 + // [2620] phi display_frame_char::return#12 = $71 [phi:display_frame_char::@9->display_frame_char::@return#0] -- vbuz1=vbuc1 lda #$71 sta.z return // display_frame_char::@return // } - // [2607] return + // [2621] return rts } // display_chip_led @@ -17388,93 +17514,93 @@ display_frame_char: { * @param tc Fore color * @param bc Back color */ -// void display_chip_led(__zp($59) char x, char y, __zp($cc) char w, __zp($61) char tc, char bc) +// void display_chip_led(__zp($5a) char x, char y, __zp($cc) char w, __zp($3c) char tc, char bc) display_chip_led: { - .label x = $59 + .label x = $5a .label w = $cc - .label tc = $61 + .label tc = $3c // textcolor(tc) - // [2609] textcolor::color#11 = display_chip_led::tc#3 -- vbuz1=vbuz2 + // [2623] textcolor::color#11 = display_chip_led::tc#3 -- vbuz1=vbuz2 lda.z tc sta.z textcolor.color - // [2610] call textcolor - // [726] phi from display_chip_led to textcolor [phi:display_chip_led->textcolor] - // [726] phi textcolor::color#18 = textcolor::color#11 [phi:display_chip_led->textcolor#0] -- register_copy + // [2624] call textcolor + // [733] phi from display_chip_led to textcolor [phi:display_chip_led->textcolor] + // [733] phi textcolor::color#18 = textcolor::color#11 [phi:display_chip_led->textcolor#0] -- register_copy jsr textcolor - // [2611] phi from display_chip_led to display_chip_led::@3 [phi:display_chip_led->display_chip_led::@3] + // [2625] phi from display_chip_led to display_chip_led::@3 [phi:display_chip_led->display_chip_led::@3] // display_chip_led::@3 // bgcolor(bc) - // [2612] call bgcolor - // [731] phi from display_chip_led::@3 to bgcolor [phi:display_chip_led::@3->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_chip_led::@3->bgcolor#0] -- vbuz1=vbuc1 + // [2626] call bgcolor + // [738] phi from display_chip_led::@3 to bgcolor [phi:display_chip_led::@3->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_chip_led::@3->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor - // [2613] phi from display_chip_led::@3 display_chip_led::@5 to display_chip_led::@1 [phi:display_chip_led::@3/display_chip_led::@5->display_chip_led::@1] - // [2613] phi display_chip_led::w#4 = display_chip_led::w#7 [phi:display_chip_led::@3/display_chip_led::@5->display_chip_led::@1#0] -- register_copy - // [2613] phi display_chip_led::x#4 = display_chip_led::x#7 [phi:display_chip_led::@3/display_chip_led::@5->display_chip_led::@1#1] -- register_copy + // [2627] phi from display_chip_led::@3 display_chip_led::@5 to display_chip_led::@1 [phi:display_chip_led::@3/display_chip_led::@5->display_chip_led::@1] + // [2627] phi display_chip_led::w#4 = display_chip_led::w#7 [phi:display_chip_led::@3/display_chip_led::@5->display_chip_led::@1#0] -- register_copy + // [2627] phi display_chip_led::x#4 = display_chip_led::x#7 [phi:display_chip_led::@3/display_chip_led::@5->display_chip_led::@1#1] -- register_copy // display_chip_led::@1 __b1: // cputcxy(x, y, 0x6F) - // [2614] cputcxy::x#9 = display_chip_led::x#4 -- vbuz1=vbuz2 + // [2628] cputcxy::x#9 = display_chip_led::x#4 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [2615] call cputcxy - // [2054] phi from display_chip_led::@1 to cputcxy [phi:display_chip_led::@1->cputcxy] - // [2054] phi cputcxy::c#15 = $6f [phi:display_chip_led::@1->cputcxy#0] -- vbuz1=vbuc1 + // [2629] call cputcxy + // [2068] phi from display_chip_led::@1 to cputcxy [phi:display_chip_led::@1->cputcxy] + // [2068] phi cputcxy::c#15 = $6f [phi:display_chip_led::@1->cputcxy#0] -- vbuz1=vbuc1 lda #$6f sta.z cputcxy.c - // [2054] phi cputcxy::y#15 = 3 [phi:display_chip_led::@1->cputcxy#1] -- vbuz1=vbuc1 + // [2068] phi cputcxy::y#15 = 3 [phi:display_chip_led::@1->cputcxy#1] -- vbuz1=vbuc1 lda #3 sta.z cputcxy.y - // [2054] phi cputcxy::x#15 = cputcxy::x#9 [phi:display_chip_led::@1->cputcxy#2] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#9 [phi:display_chip_led::@1->cputcxy#2] -- register_copy jsr cputcxy // display_chip_led::@4 // cputcxy(x, y+1, 0x77) - // [2616] cputcxy::x#10 = display_chip_led::x#4 -- vbuz1=vbuz2 + // [2630] cputcxy::x#10 = display_chip_led::x#4 -- vbuz1=vbuz2 lda.z x sta.z cputcxy.x - // [2617] call cputcxy - // [2054] phi from display_chip_led::@4 to cputcxy [phi:display_chip_led::@4->cputcxy] - // [2054] phi cputcxy::c#15 = $77 [phi:display_chip_led::@4->cputcxy#0] -- vbuz1=vbuc1 + // [2631] call cputcxy + // [2068] phi from display_chip_led::@4 to cputcxy [phi:display_chip_led::@4->cputcxy] + // [2068] phi cputcxy::c#15 = $77 [phi:display_chip_led::@4->cputcxy#0] -- vbuz1=vbuc1 lda #$77 sta.z cputcxy.c - // [2054] phi cputcxy::y#15 = 3+1 [phi:display_chip_led::@4->cputcxy#1] -- vbuz1=vbuc1 + // [2068] phi cputcxy::y#15 = 3+1 [phi:display_chip_led::@4->cputcxy#1] -- vbuz1=vbuc1 lda #3+1 sta.z cputcxy.y - // [2054] phi cputcxy::x#15 = cputcxy::x#10 [phi:display_chip_led::@4->cputcxy#2] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#10 [phi:display_chip_led::@4->cputcxy#2] -- register_copy jsr cputcxy // display_chip_led::@5 // x++; - // [2618] display_chip_led::x#0 = ++ display_chip_led::x#4 -- vbuz1=_inc_vbuz1 + // [2632] display_chip_led::x#0 = ++ display_chip_led::x#4 -- vbuz1=_inc_vbuz1 inc.z x // while(--w) - // [2619] display_chip_led::w#0 = -- display_chip_led::w#4 -- vbuz1=_dec_vbuz1 + // [2633] display_chip_led::w#0 = -- display_chip_led::w#4 -- vbuz1=_dec_vbuz1 dec.z w - // [2620] if(0!=display_chip_led::w#0) goto display_chip_led::@1 -- 0_neq_vbuz1_then_la1 + // [2634] if(0!=display_chip_led::w#0) goto display_chip_led::@1 -- 0_neq_vbuz1_then_la1 lda.z w bne __b1 - // [2621] phi from display_chip_led::@5 to display_chip_led::@2 [phi:display_chip_led::@5->display_chip_led::@2] + // [2635] phi from display_chip_led::@5 to display_chip_led::@2 [phi:display_chip_led::@5->display_chip_led::@2] // display_chip_led::@2 // textcolor(WHITE) - // [2622] call textcolor - // [726] phi from display_chip_led::@2 to textcolor [phi:display_chip_led::@2->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:display_chip_led::@2->textcolor#0] -- vbuz1=vbuc1 + // [2636] call textcolor + // [733] phi from display_chip_led::@2 to textcolor [phi:display_chip_led::@2->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:display_chip_led::@2->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor - // [2623] phi from display_chip_led::@2 to display_chip_led::@6 [phi:display_chip_led::@2->display_chip_led::@6] + // [2637] phi from display_chip_led::@2 to display_chip_led::@6 [phi:display_chip_led::@2->display_chip_led::@6] // display_chip_led::@6 // bgcolor(BLUE) - // [2624] call bgcolor - // [731] phi from display_chip_led::@6 to bgcolor [phi:display_chip_led::@6->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_chip_led::@6->bgcolor#0] -- vbuz1=vbuc1 + // [2638] call bgcolor + // [738] phi from display_chip_led::@6 to bgcolor [phi:display_chip_led::@6->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_chip_led::@6->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor // display_chip_led::@return // } - // [2625] return + // [2639] return rts } // display_chip_line @@ -17486,162 +17612,164 @@ display_chip_led: { * @param w Width * @param c Fore color */ -// void display_chip_line(__zp($e8) char x, __zp($fa) char y, __zp($ca) char w, __zp($d4) char c) +// void display_chip_line(__zp($ea) char x, __mem() char y, __zp($ca) char w, __zp($d4) char c) display_chip_line: { - .label i = $36 - .label x = $e8 + .label i = $37 + .label x = $ea .label w = $ca .label c = $d4 - .label y = $fa // gotoxy(x, y) - // [2627] gotoxy::x#7 = display_chip_line::x#16 -- vbuz1=vbuz2 + // [2641] gotoxy::x#7 = display_chip_line::x#16 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [2628] gotoxy::y#7 = display_chip_line::y#16 -- vbuz1=vbuz2 - lda.z y + // [2642] gotoxy::y#7 = display_chip_line::y#16 -- vbuz1=vbum2 + lda y sta.z gotoxy.y - // [2629] call gotoxy - // [744] phi from display_chip_line to gotoxy [phi:display_chip_line->gotoxy] - // [744] phi gotoxy::y#30 = gotoxy::y#7 [phi:display_chip_line->gotoxy#0] -- register_copy - // [744] phi gotoxy::x#30 = gotoxy::x#7 [phi:display_chip_line->gotoxy#1] -- register_copy + // [2643] call gotoxy + // [751] phi from display_chip_line to gotoxy [phi:display_chip_line->gotoxy] + // [751] phi gotoxy::y#30 = gotoxy::y#7 [phi:display_chip_line->gotoxy#0] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#7 [phi:display_chip_line->gotoxy#1] -- register_copy jsr gotoxy - // [2630] phi from display_chip_line to display_chip_line::@4 [phi:display_chip_line->display_chip_line::@4] + // [2644] phi from display_chip_line to display_chip_line::@4 [phi:display_chip_line->display_chip_line::@4] // display_chip_line::@4 // textcolor(GREY) - // [2631] call textcolor - // [726] phi from display_chip_line::@4 to textcolor [phi:display_chip_line::@4->textcolor] - // [726] phi textcolor::color#18 = GREY [phi:display_chip_line::@4->textcolor#0] -- vbuz1=vbuc1 + // [2645] call textcolor + // [733] phi from display_chip_line::@4 to textcolor [phi:display_chip_line::@4->textcolor] + // [733] phi textcolor::color#18 = GREY [phi:display_chip_line::@4->textcolor#0] -- vbuz1=vbuc1 lda #GREY sta.z textcolor.color jsr textcolor - // [2632] phi from display_chip_line::@4 to display_chip_line::@5 [phi:display_chip_line::@4->display_chip_line::@5] + // [2646] phi from display_chip_line::@4 to display_chip_line::@5 [phi:display_chip_line::@4->display_chip_line::@5] // display_chip_line::@5 // bgcolor(BLUE) - // [2633] call bgcolor - // [731] phi from display_chip_line::@5 to bgcolor [phi:display_chip_line::@5->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_chip_line::@5->bgcolor#0] -- vbuz1=vbuc1 + // [2647] call bgcolor + // [738] phi from display_chip_line::@5 to bgcolor [phi:display_chip_line::@5->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_chip_line::@5->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor // display_chip_line::@6 // cputc(VERA_CHR_UR) - // [2634] stackpush(char) = $7c -- _stackpushbyte_=vbuc1 + // [2648] stackpush(char) = $7c -- _stackpushbyte_=vbuc1 lda #$7c pha - // [2635] callexecute cputc -- call_vprc1 + // [2649] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // textcolor(WHITE) - // [2637] call textcolor - // [726] phi from display_chip_line::@6 to textcolor [phi:display_chip_line::@6->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:display_chip_line::@6->textcolor#0] -- vbuz1=vbuc1 + // [2651] call textcolor + // [733] phi from display_chip_line::@6 to textcolor [phi:display_chip_line::@6->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:display_chip_line::@6->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor - // [2638] phi from display_chip_line::@6 to display_chip_line::@7 [phi:display_chip_line::@6->display_chip_line::@7] + // [2652] phi from display_chip_line::@6 to display_chip_line::@7 [phi:display_chip_line::@6->display_chip_line::@7] // display_chip_line::@7 // bgcolor(BLACK) - // [2639] call bgcolor - // [731] phi from display_chip_line::@7 to bgcolor [phi:display_chip_line::@7->bgcolor] - // [731] phi bgcolor::color#14 = BLACK [phi:display_chip_line::@7->bgcolor#0] -- vbuz1=vbuc1 + // [2653] call bgcolor + // [738] phi from display_chip_line::@7 to bgcolor [phi:display_chip_line::@7->bgcolor] + // [738] phi bgcolor::color#14 = BLACK [phi:display_chip_line::@7->bgcolor#0] -- vbuz1=vbuc1 lda #BLACK sta.z bgcolor.color jsr bgcolor - // [2640] phi from display_chip_line::@7 to display_chip_line::@1 [phi:display_chip_line::@7->display_chip_line::@1] - // [2640] phi display_chip_line::i#2 = 0 [phi:display_chip_line::@7->display_chip_line::@1#0] -- vbuz1=vbuc1 + // [2654] phi from display_chip_line::@7 to display_chip_line::@1 [phi:display_chip_line::@7->display_chip_line::@1] + // [2654] phi display_chip_line::i#2 = 0 [phi:display_chip_line::@7->display_chip_line::@1#0] -- vbuz1=vbuc1 lda #0 sta.z i // display_chip_line::@1 __b1: // for(char i=0; idisplay_chip_line::@3] + // [2656] phi from display_chip_line::@1 to display_chip_line::@3 [phi:display_chip_line::@1->display_chip_line::@3] // display_chip_line::@3 // textcolor(GREY) - // [2643] call textcolor - // [726] phi from display_chip_line::@3 to textcolor [phi:display_chip_line::@3->textcolor] - // [726] phi textcolor::color#18 = GREY [phi:display_chip_line::@3->textcolor#0] -- vbuz1=vbuc1 + // [2657] call textcolor + // [733] phi from display_chip_line::@3 to textcolor [phi:display_chip_line::@3->textcolor] + // [733] phi textcolor::color#18 = GREY [phi:display_chip_line::@3->textcolor#0] -- vbuz1=vbuc1 lda #GREY sta.z textcolor.color jsr textcolor - // [2644] phi from display_chip_line::@3 to display_chip_line::@8 [phi:display_chip_line::@3->display_chip_line::@8] + // [2658] phi from display_chip_line::@3 to display_chip_line::@8 [phi:display_chip_line::@3->display_chip_line::@8] // display_chip_line::@8 // bgcolor(BLUE) - // [2645] call bgcolor - // [731] phi from display_chip_line::@8 to bgcolor [phi:display_chip_line::@8->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_chip_line::@8->bgcolor#0] -- vbuz1=vbuc1 + // [2659] call bgcolor + // [738] phi from display_chip_line::@8 to bgcolor [phi:display_chip_line::@8->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_chip_line::@8->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor // display_chip_line::@9 // cputc(VERA_CHR_UL) - // [2646] stackpush(char) = $7e -- _stackpushbyte_=vbuc1 + // [2660] stackpush(char) = $7e -- _stackpushbyte_=vbuc1 lda #$7e pha - // [2647] callexecute cputc -- call_vprc1 + // [2661] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // textcolor(WHITE) - // [2649] call textcolor - // [726] phi from display_chip_line::@9 to textcolor [phi:display_chip_line::@9->textcolor] - // [726] phi textcolor::color#18 = WHITE [phi:display_chip_line::@9->textcolor#0] -- vbuz1=vbuc1 + // [2663] call textcolor + // [733] phi from display_chip_line::@9 to textcolor [phi:display_chip_line::@9->textcolor] + // [733] phi textcolor::color#18 = WHITE [phi:display_chip_line::@9->textcolor#0] -- vbuz1=vbuc1 lda #WHITE sta.z textcolor.color jsr textcolor - // [2650] phi from display_chip_line::@9 to display_chip_line::@10 [phi:display_chip_line::@9->display_chip_line::@10] + // [2664] phi from display_chip_line::@9 to display_chip_line::@10 [phi:display_chip_line::@9->display_chip_line::@10] // display_chip_line::@10 // bgcolor(BLACK) - // [2651] call bgcolor - // [731] phi from display_chip_line::@10 to bgcolor [phi:display_chip_line::@10->bgcolor] - // [731] phi bgcolor::color#14 = BLACK [phi:display_chip_line::@10->bgcolor#0] -- vbuz1=vbuc1 + // [2665] call bgcolor + // [738] phi from display_chip_line::@10 to bgcolor [phi:display_chip_line::@10->bgcolor] + // [738] phi bgcolor::color#14 = BLACK [phi:display_chip_line::@10->bgcolor#0] -- vbuz1=vbuc1 lda #BLACK sta.z bgcolor.color jsr bgcolor // display_chip_line::@11 // cputcxy(x+2, y, c) - // [2652] cputcxy::x#8 = display_chip_line::x#16 + 2 -- vbuz1=vbuz2_plus_2 + // [2666] cputcxy::x#8 = display_chip_line::x#16 + 2 -- vbuz1=vbuz2_plus_2 lda.z x clc adc #2 sta.z cputcxy.x - // [2653] cputcxy::y#8 = display_chip_line::y#16 -- vbuz1=vbuz2 - lda.z y + // [2667] cputcxy::y#8 = display_chip_line::y#16 -- vbuz1=vbum2 + lda y sta.z cputcxy.y - // [2654] cputcxy::c#8 = display_chip_line::c#15 -- vbuz1=vbuz2 + // [2668] cputcxy::c#8 = display_chip_line::c#15 -- vbuz1=vbuz2 lda.z c sta.z cputcxy.c - // [2655] call cputcxy - // [2054] phi from display_chip_line::@11 to cputcxy [phi:display_chip_line::@11->cputcxy] - // [2054] phi cputcxy::c#15 = cputcxy::c#8 [phi:display_chip_line::@11->cputcxy#0] -- register_copy - // [2054] phi cputcxy::y#15 = cputcxy::y#8 [phi:display_chip_line::@11->cputcxy#1] -- register_copy - // [2054] phi cputcxy::x#15 = cputcxy::x#8 [phi:display_chip_line::@11->cputcxy#2] -- register_copy + // [2669] call cputcxy + // [2068] phi from display_chip_line::@11 to cputcxy [phi:display_chip_line::@11->cputcxy] + // [2068] phi cputcxy::c#15 = cputcxy::c#8 [phi:display_chip_line::@11->cputcxy#0] -- register_copy + // [2068] phi cputcxy::y#15 = cputcxy::y#8 [phi:display_chip_line::@11->cputcxy#1] -- register_copy + // [2068] phi cputcxy::x#15 = cputcxy::x#8 [phi:display_chip_line::@11->cputcxy#2] -- register_copy jsr cputcxy // display_chip_line::@return // } - // [2656] return + // [2670] return rts // display_chip_line::@2 __b2: // cputc(VERA_CHR_SPACE) - // [2657] stackpush(char) = $20 -- _stackpushbyte_=vbuc1 + // [2671] stackpush(char) = $20 -- _stackpushbyte_=vbuc1 lda #$20 pha - // [2658] callexecute cputc -- call_vprc1 + // [2672] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // for(char i=0; idisplay_chip_line::@1] - // [2640] phi display_chip_line::i#2 = display_chip_line::i#1 [phi:display_chip_line::@2->display_chip_line::@1#0] -- register_copy + // [2654] phi from display_chip_line::@2 to display_chip_line::@1 [phi:display_chip_line::@2->display_chip_line::@1] + // [2654] phi display_chip_line::i#2 = display_chip_line::i#1 [phi:display_chip_line::@2->display_chip_line::@1#0] -- register_copy jmp __b1 + .segment Data + .label y = main.main__342 } +.segment Code // display_chip_end /** * @brief Print last line of a chip figure. @@ -17650,122 +17778,122 @@ display_chip_line: { * @param y Start Y * @param w Width */ -// void display_chip_end(__zp($d8) char x, char y, __zp($44) char w) +// void display_chip_end(__zp($da) char x, char y, __zp($66) char w) display_chip_end: { - .label i = $73 - .label x = $d8 - .label w = $44 + .label i = $53 + .label x = $da + .label w = $66 // gotoxy(x, y) - // [2661] gotoxy::x#8 = display_chip_end::x#0 -- vbuz1=vbuz2 + // [2675] gotoxy::x#8 = display_chip_end::x#0 -- vbuz1=vbuz2 lda.z x sta.z gotoxy.x - // [2662] call gotoxy - // [744] phi from display_chip_end to gotoxy [phi:display_chip_end->gotoxy] - // [744] phi gotoxy::y#30 = display_print_chip::y#21 [phi:display_chip_end->gotoxy#0] -- vbuz1=vbuc1 + // [2676] call gotoxy + // [751] phi from display_chip_end to gotoxy [phi:display_chip_end->gotoxy] + // [751] phi gotoxy::y#30 = display_print_chip::y#21 [phi:display_chip_end->gotoxy#0] -- vbuz1=vbuc1 lda #display_print_chip.y sta.z gotoxy.y - // [744] phi gotoxy::x#30 = gotoxy::x#8 [phi:display_chip_end->gotoxy#1] -- register_copy + // [751] phi gotoxy::x#30 = gotoxy::x#8 [phi:display_chip_end->gotoxy#1] -- register_copy jsr gotoxy - // [2663] phi from display_chip_end to display_chip_end::@4 [phi:display_chip_end->display_chip_end::@4] + // [2677] phi from display_chip_end to display_chip_end::@4 [phi:display_chip_end->display_chip_end::@4] // display_chip_end::@4 // textcolor(GREY) - // [2664] call textcolor - // [726] phi from display_chip_end::@4 to textcolor [phi:display_chip_end::@4->textcolor] - // [726] phi textcolor::color#18 = GREY [phi:display_chip_end::@4->textcolor#0] -- vbuz1=vbuc1 + // [2678] call textcolor + // [733] phi from display_chip_end::@4 to textcolor [phi:display_chip_end::@4->textcolor] + // [733] phi textcolor::color#18 = GREY [phi:display_chip_end::@4->textcolor#0] -- vbuz1=vbuc1 lda #GREY sta.z textcolor.color jsr textcolor - // [2665] phi from display_chip_end::@4 to display_chip_end::@5 [phi:display_chip_end::@4->display_chip_end::@5] + // [2679] phi from display_chip_end::@4 to display_chip_end::@5 [phi:display_chip_end::@4->display_chip_end::@5] // display_chip_end::@5 // bgcolor(BLUE) - // [2666] call bgcolor - // [731] phi from display_chip_end::@5 to bgcolor [phi:display_chip_end::@5->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_chip_end::@5->bgcolor#0] -- vbuz1=vbuc1 + // [2680] call bgcolor + // [738] phi from display_chip_end::@5 to bgcolor [phi:display_chip_end::@5->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_chip_end::@5->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor // display_chip_end::@6 // cputc(VERA_CHR_UR) - // [2667] stackpush(char) = $7c -- _stackpushbyte_=vbuc1 + // [2681] stackpush(char) = $7c -- _stackpushbyte_=vbuc1 lda #$7c pha - // [2668] callexecute cputc -- call_vprc1 + // [2682] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // textcolor(BLUE) - // [2670] call textcolor - // [726] phi from display_chip_end::@6 to textcolor [phi:display_chip_end::@6->textcolor] - // [726] phi textcolor::color#18 = BLUE [phi:display_chip_end::@6->textcolor#0] -- vbuz1=vbuc1 + // [2684] call textcolor + // [733] phi from display_chip_end::@6 to textcolor [phi:display_chip_end::@6->textcolor] + // [733] phi textcolor::color#18 = BLUE [phi:display_chip_end::@6->textcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z textcolor.color jsr textcolor - // [2671] phi from display_chip_end::@6 to display_chip_end::@7 [phi:display_chip_end::@6->display_chip_end::@7] + // [2685] phi from display_chip_end::@6 to display_chip_end::@7 [phi:display_chip_end::@6->display_chip_end::@7] // display_chip_end::@7 // bgcolor(BLACK) - // [2672] call bgcolor - // [731] phi from display_chip_end::@7 to bgcolor [phi:display_chip_end::@7->bgcolor] - // [731] phi bgcolor::color#14 = BLACK [phi:display_chip_end::@7->bgcolor#0] -- vbuz1=vbuc1 + // [2686] call bgcolor + // [738] phi from display_chip_end::@7 to bgcolor [phi:display_chip_end::@7->bgcolor] + // [738] phi bgcolor::color#14 = BLACK [phi:display_chip_end::@7->bgcolor#0] -- vbuz1=vbuc1 lda #BLACK sta.z bgcolor.color jsr bgcolor - // [2673] phi from display_chip_end::@7 to display_chip_end::@1 [phi:display_chip_end::@7->display_chip_end::@1] - // [2673] phi display_chip_end::i#2 = 0 [phi:display_chip_end::@7->display_chip_end::@1#0] -- vbuz1=vbuc1 + // [2687] phi from display_chip_end::@7 to display_chip_end::@1 [phi:display_chip_end::@7->display_chip_end::@1] + // [2687] phi display_chip_end::i#2 = 0 [phi:display_chip_end::@7->display_chip_end::@1#0] -- vbuz1=vbuc1 lda #0 sta.z i // display_chip_end::@1 __b1: // for(char i=0; idisplay_chip_end::@3] + // [2689] phi from display_chip_end::@1 to display_chip_end::@3 [phi:display_chip_end::@1->display_chip_end::@3] // display_chip_end::@3 // textcolor(GREY) - // [2676] call textcolor - // [726] phi from display_chip_end::@3 to textcolor [phi:display_chip_end::@3->textcolor] - // [726] phi textcolor::color#18 = GREY [phi:display_chip_end::@3->textcolor#0] -- vbuz1=vbuc1 + // [2690] call textcolor + // [733] phi from display_chip_end::@3 to textcolor [phi:display_chip_end::@3->textcolor] + // [733] phi textcolor::color#18 = GREY [phi:display_chip_end::@3->textcolor#0] -- vbuz1=vbuc1 lda #GREY sta.z textcolor.color jsr textcolor - // [2677] phi from display_chip_end::@3 to display_chip_end::@8 [phi:display_chip_end::@3->display_chip_end::@8] + // [2691] phi from display_chip_end::@3 to display_chip_end::@8 [phi:display_chip_end::@3->display_chip_end::@8] // display_chip_end::@8 // bgcolor(BLUE) - // [2678] call bgcolor - // [731] phi from display_chip_end::@8 to bgcolor [phi:display_chip_end::@8->bgcolor] - // [731] phi bgcolor::color#14 = BLUE [phi:display_chip_end::@8->bgcolor#0] -- vbuz1=vbuc1 + // [2692] call bgcolor + // [738] phi from display_chip_end::@8 to bgcolor [phi:display_chip_end::@8->bgcolor] + // [738] phi bgcolor::color#14 = BLUE [phi:display_chip_end::@8->bgcolor#0] -- vbuz1=vbuc1 lda #BLUE sta.z bgcolor.color jsr bgcolor // display_chip_end::@9 // cputc(VERA_CHR_UL) - // [2679] stackpush(char) = $7e -- _stackpushbyte_=vbuc1 + // [2693] stackpush(char) = $7e -- _stackpushbyte_=vbuc1 lda #$7e pha - // [2680] callexecute cputc -- call_vprc1 + // [2694] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // display_chip_end::@return // } - // [2682] return + // [2696] return rts // display_chip_end::@2 __b2: // cputc(VERA_CHR_HL) - // [2683] stackpush(char) = $62 -- _stackpushbyte_=vbuc1 + // [2697] stackpush(char) = $62 -- _stackpushbyte_=vbuc1 lda #$62 pha - // [2684] callexecute cputc -- call_vprc1 + // [2698] callexecute cputc -- call_vprc1 jsr cputc // sideeffect stackpullpadding(1) -- _stackpullpadding_1 pla // for(char i=0; idisplay_chip_end::@1] - // [2673] phi display_chip_end::i#2 = display_chip_end::i#1 [phi:display_chip_end::@2->display_chip_end::@1#0] -- register_copy + // [2687] phi from display_chip_end::@2 to display_chip_end::@1 [phi:display_chip_end::@2->display_chip_end::@1] + // [2687] phi display_chip_end::i#2 = display_chip_end::i#1 [phi:display_chip_end::@2->display_chip_end::@1#0] -- register_copy jmp __b1 } // rom_write_byte @@ -17778,51 +17906,51 @@ display_chip_end: { * @param address The 22 bit ROM address. * @param value The byte value to be written. */ -// void rom_write_byte(__zp($55) unsigned long address, __zp($59) char value) +// void rom_write_byte(__zp($56) unsigned long address, __zp($5a) char value) rom_write_byte: { - .label rom_bank1_rom_write_byte__0 = $37 - .label rom_bank1_rom_write_byte__1 = $36 + .label rom_bank1_rom_write_byte__0 = $36 + .label rom_bank1_rom_write_byte__1 = $53 .label rom_bank1_rom_write_byte__2 = $4e .label rom_ptr1_rom_write_byte__0 = $4c .label rom_ptr1_rom_write_byte__2 = $4c .label rom_bank1_bank_unshifted = $4e - .label rom_bank1_return = $2d + .label rom_bank1_return = $2c .label rom_ptr1_return = $4c - .label address = $55 - .label value = $59 + .label address = $56 + .label value = $5a // rom_write_byte::rom_bank1 // BYTE2(address) - // [2688] rom_write_byte::rom_bank1_$0 = byte2 rom_write_byte::address#4 -- vbuz1=_byte2_vduz2 + // [2702] rom_write_byte::rom_bank1_$0 = byte2 rom_write_byte::address#4 -- vbuz1=_byte2_vduz2 lda.z address+2 sta.z rom_bank1_rom_write_byte__0 // BYTE1(address) - // [2689] rom_write_byte::rom_bank1_$1 = byte1 rom_write_byte::address#4 -- vbuz1=_byte1_vduz2 + // [2703] rom_write_byte::rom_bank1_$1 = byte1 rom_write_byte::address#4 -- vbuz1=_byte1_vduz2 lda.z address+1 sta.z rom_bank1_rom_write_byte__1 // MAKEWORD(BYTE2(address),BYTE1(address)) - // [2690] rom_write_byte::rom_bank1_$2 = rom_write_byte::rom_bank1_$0 w= rom_write_byte::rom_bank1_$1 -- vwuz1=vbuz2_word_vbuz3 + // [2704] rom_write_byte::rom_bank1_$2 = rom_write_byte::rom_bank1_$0 w= rom_write_byte::rom_bank1_$1 -- vwuz1=vbuz2_word_vbuz3 lda.z rom_bank1_rom_write_byte__0 sta.z rom_bank1_rom_write_byte__2+1 lda.z rom_bank1_rom_write_byte__1 sta.z rom_bank1_rom_write_byte__2 // unsigned int bank_unshifted = MAKEWORD(BYTE2(address),BYTE1(address)) << 2 - // [2691] rom_write_byte::rom_bank1_bank_unshifted#0 = rom_write_byte::rom_bank1_$2 << 2 -- vwuz1=vwuz1_rol_2 + // [2705] rom_write_byte::rom_bank1_bank_unshifted#0 = rom_write_byte::rom_bank1_$2 << 2 -- vwuz1=vwuz1_rol_2 asl.z rom_bank1_bank_unshifted rol.z rom_bank1_bank_unshifted+1 asl.z rom_bank1_bank_unshifted rol.z rom_bank1_bank_unshifted+1 // unsigned char bank = BYTE1(bank_unshifted) - // [2692] rom_write_byte::rom_bank1_return#0 = byte1 rom_write_byte::rom_bank1_bank_unshifted#0 -- vbuz1=_byte1_vwuz2 + // [2706] rom_write_byte::rom_bank1_return#0 = byte1 rom_write_byte::rom_bank1_bank_unshifted#0 -- vbuz1=_byte1_vwuz2 lda.z rom_bank1_bank_unshifted+1 sta.z rom_bank1_return // rom_write_byte::rom_ptr1 // (unsigned int)(address) & ROM_PTR_MASK - // [2693] rom_write_byte::rom_ptr1_$2 = (unsigned int)rom_write_byte::address#4 -- vwuz1=_word_vduz2 + // [2707] rom_write_byte::rom_ptr1_$2 = (unsigned int)rom_write_byte::address#4 -- vwuz1=_word_vduz2 lda.z address sta.z rom_ptr1_rom_write_byte__2 lda.z address+1 sta.z rom_ptr1_rom_write_byte__2+1 - // [2694] rom_write_byte::rom_ptr1_$0 = rom_write_byte::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 + // [2708] rom_write_byte::rom_ptr1_$0 = rom_write_byte::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 lda.z rom_ptr1_rom_write_byte__0 and #<$3fff sta.z rom_ptr1_rom_write_byte__0 @@ -17830,7 +17958,7 @@ rom_write_byte: { and #>$3fff sta.z rom_ptr1_rom_write_byte__0+1 // ((unsigned int)(address) & ROM_PTR_MASK) + ROM_BASE - // [2695] rom_write_byte::rom_ptr1_return#0 = rom_write_byte::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 + // [2709] rom_write_byte::rom_ptr1_return#0 = rom_write_byte::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 lda.z rom_ptr1_return clc adc #<$c000 @@ -17840,18 +17968,18 @@ rom_write_byte: { sta.z rom_ptr1_return+1 // rom_write_byte::bank_set_brom1 // BROM = bank - // [2696] BROM = rom_write_byte::rom_bank1_return#0 -- vbuz1=vbuz2 + // [2710] BROM = rom_write_byte::rom_bank1_return#0 -- vbuz1=vbuz2 lda.z rom_bank1_return sta.z BROM // rom_write_byte::@1 // *ptr_rom = value - // [2697] *((char *)rom_write_byte::rom_ptr1_return#0) = rom_write_byte::value#10 -- _deref_pbuz1=vbuz2 + // [2711] *((char *)rom_write_byte::rom_ptr1_return#0) = rom_write_byte::value#10 -- _deref_pbuz1=vbuz2 lda.z value ldy #0 sta (rom_ptr1_return),y // rom_write_byte::@return // } - // [2698] return + // [2712] return rts } // cbm_k_setlfs @@ -17872,7 +18000,7 @@ cbm_k_setlfs: { jsr CBM_SETLFS // cbm_k_setlfs::@return // } - // [2700] return + // [2714] return rts .segment Data channel: .byte 0 @@ -17892,60 +18020,59 @@ cbm_k_setlfs: { */ // __mem() int ferror(__zp($ce) struct $2 *stream) ferror: { - .label ferror__6 = $2d - .label ferror__15 = $e8 - .label cbm_k_setnam1_ferror__0 = $53 - .label cbm_k_readst1_status = $f7 - .label cbm_k_chrin2_ch = $f8 + .label ferror__6 = $2c + .label ferror__15 = $ea + .label cbm_k_setnam1_ferror__0 = $54 + .label cbm_k_readst1_status = $f9 + .label cbm_k_chrin2_ch = $fa .label stream = $ce - .label sp = $36 - .label cbm_k_chrin1_return = $e8 - .label ch = $e8 - .label cbm_k_readst1_return = $2d - .label st = $2d - .label errno_len = $fa - .label cbm_k_chrin2_return = $e8 + .label sp = $53 + .label cbm_k_chrin1_return = $ea + .label ch = $ea + .label cbm_k_readst1_return = $2c + .label st = $2c + .label cbm_k_chrin2_return = $ea .label errno_parsed = $cc // unsigned char sp = (unsigned char)stream - // [2701] ferror::sp#0 = (char)ferror::stream#0 -- vbuz1=_byte_pssz2 + // [2715] ferror::sp#0 = (char)ferror::stream#0 -- vbuz1=_byte_pssz2 lda.z stream sta.z sp // cbm_k_setlfs(15, 8, 15) - // [2702] cbm_k_setlfs::channel = $f -- vbum1=vbuc1 + // [2716] cbm_k_setlfs::channel = $f -- vbum1=vbuc1 lda #$f sta cbm_k_setlfs.channel - // [2703] cbm_k_setlfs::device = 8 -- vbum1=vbuc1 + // [2717] cbm_k_setlfs::device = 8 -- vbum1=vbuc1 lda #8 sta cbm_k_setlfs.device - // [2704] cbm_k_setlfs::command = $f -- vbum1=vbuc1 + // [2718] cbm_k_setlfs::command = $f -- vbum1=vbuc1 lda #$f sta cbm_k_setlfs.command - // [2705] call cbm_k_setlfs + // [2719] call cbm_k_setlfs jsr cbm_k_setlfs // ferror::@11 // cbm_k_setnam("") - // [2706] ferror::cbm_k_setnam1_filename = info_text4 -- pbum1=pbuc1 + // [2720] ferror::cbm_k_setnam1_filename = info_text4 -- pbum1=pbuc1 lda #info_text4 sta cbm_k_setnam1_filename+1 // ferror::cbm_k_setnam1 // strlen(filename) - // [2707] strlen::str#5 = ferror::cbm_k_setnam1_filename -- pbuz1=pbum2 + // [2721] strlen::str#5 = ferror::cbm_k_setnam1_filename -- pbuz1=pbum2 lda cbm_k_setnam1_filename sta.z strlen.str lda cbm_k_setnam1_filename+1 sta.z strlen.str+1 - // [2708] call strlen - // [2330] phi from ferror::cbm_k_setnam1 to strlen [phi:ferror::cbm_k_setnam1->strlen] - // [2330] phi strlen::str#8 = strlen::str#5 [phi:ferror::cbm_k_setnam1->strlen#0] -- register_copy + // [2722] call strlen + // [2344] phi from ferror::cbm_k_setnam1 to strlen [phi:ferror::cbm_k_setnam1->strlen] + // [2344] phi strlen::str#8 = strlen::str#5 [phi:ferror::cbm_k_setnam1->strlen#0] -- register_copy jsr strlen // strlen(filename) - // [2709] strlen::return#12 = strlen::len#2 + // [2723] strlen::return#12 = strlen::len#2 // ferror::@12 - // [2710] ferror::cbm_k_setnam1_$0 = strlen::return#12 + // [2724] ferror::cbm_k_setnam1_$0 = strlen::return#12 // char filename_len = (char)strlen(filename) - // [2711] ferror::cbm_k_setnam1_filename_len = (char)ferror::cbm_k_setnam1_$0 -- vbum1=_byte_vwuz2 + // [2725] ferror::cbm_k_setnam1_filename_len = (char)ferror::cbm_k_setnam1_$0 -- vbum1=_byte_vwuz2 lda.z cbm_k_setnam1_ferror__0 sta cbm_k_setnam1_filename_len // asm @@ -17958,12 +18085,12 @@ ferror: { jsr CBM_OPEN // ferror::@6 // cbm_k_chkin(15) - // [2714] ferror::cbm_k_chkin1_channel = $f -- vbum1=vbuc1 + // [2728] ferror::cbm_k_chkin1_channel = $f -- vbum1=vbuc1 lda #$f sta cbm_k_chkin1_channel // ferror::cbm_k_chkin1 // char status - // [2715] ferror::cbm_k_chkin1_status = 0 -- vbum1=vbuc1 + // [2729] ferror::cbm_k_chkin1_status = 0 -- vbum1=vbuc1 lda #0 sta cbm_k_chkin1_status // asm @@ -17973,7 +18100,7 @@ ferror: { sta cbm_k_chkin1_status // ferror::cbm_k_chrin1 // char ch - // [2717] ferror::cbm_k_chrin1_ch = 0 -- vbum1=vbuc1 + // [2731] ferror::cbm_k_chrin1_ch = 0 -- vbum1=vbuc1 lda #0 sta cbm_k_chrin1_ch // asm @@ -17981,26 +18108,26 @@ ferror: { jsr CBM_CHRIN sta cbm_k_chrin1_ch // return ch; - // [2719] ferror::cbm_k_chrin1_return#0 = ferror::cbm_k_chrin1_ch -- vbuz1=vbum2 + // [2733] ferror::cbm_k_chrin1_return#0 = ferror::cbm_k_chrin1_ch -- vbuz1=vbum2 sta.z cbm_k_chrin1_return // ferror::cbm_k_chrin1_@return // } - // [2720] ferror::cbm_k_chrin1_return#1 = ferror::cbm_k_chrin1_return#0 + // [2734] ferror::cbm_k_chrin1_return#1 = ferror::cbm_k_chrin1_return#0 // ferror::@7 // char ch = cbm_k_chrin() - // [2721] ferror::ch#0 = ferror::cbm_k_chrin1_return#1 - // [2722] phi from ferror::@7 to ferror::cbm_k_readst1 [phi:ferror::@7->ferror::cbm_k_readst1] - // [2722] phi __errno#18 = __errno#299 [phi:ferror::@7->ferror::cbm_k_readst1#0] -- register_copy - // [2722] phi ferror::errno_len#10 = 0 [phi:ferror::@7->ferror::cbm_k_readst1#1] -- vbuz1=vbuc1 + // [2735] ferror::ch#0 = ferror::cbm_k_chrin1_return#1 + // [2736] phi from ferror::@7 to ferror::cbm_k_readst1 [phi:ferror::@7->ferror::cbm_k_readst1] + // [2736] phi __errno#18 = __errno#302 [phi:ferror::@7->ferror::cbm_k_readst1#0] -- register_copy + // [2736] phi ferror::errno_len#10 = 0 [phi:ferror::@7->ferror::cbm_k_readst1#1] -- vbum1=vbuc1 lda #0 - sta.z errno_len - // [2722] phi ferror::ch#10 = ferror::ch#0 [phi:ferror::@7->ferror::cbm_k_readst1#2] -- register_copy - // [2722] phi ferror::errno_parsed#2 = 0 [phi:ferror::@7->ferror::cbm_k_readst1#3] -- vbuz1=vbuc1 + sta errno_len + // [2736] phi ferror::ch#10 = ferror::ch#0 [phi:ferror::@7->ferror::cbm_k_readst1#2] -- register_copy + // [2736] phi ferror::errno_parsed#2 = 0 [phi:ferror::@7->ferror::cbm_k_readst1#3] -- vbuz1=vbuc1 sta.z errno_parsed // ferror::cbm_k_readst1 cbm_k_readst1: // char status - // [2723] ferror::cbm_k_readst1_status = 0 -- vbuz1=vbuc1 + // [2737] ferror::cbm_k_readst1_status = 0 -- vbuz1=vbuc1 lda #0 sta.z cbm_k_readst1_status // asm @@ -18008,27 +18135,27 @@ ferror: { jsr CBM_READST sta cbm_k_readst1_status // return status; - // [2725] ferror::cbm_k_readst1_return#0 = ferror::cbm_k_readst1_status -- vbuz1=vbuz2 + // [2739] ferror::cbm_k_readst1_return#0 = ferror::cbm_k_readst1_status -- vbuz1=vbuz2 sta.z cbm_k_readst1_return // ferror::cbm_k_readst1_@return // } - // [2726] ferror::cbm_k_readst1_return#1 = ferror::cbm_k_readst1_return#0 + // [2740] ferror::cbm_k_readst1_return#1 = ferror::cbm_k_readst1_return#0 // ferror::@8 // cbm_k_readst() - // [2727] ferror::$6 = ferror::cbm_k_readst1_return#1 + // [2741] ferror::$6 = ferror::cbm_k_readst1_return#1 // st = cbm_k_readst() - // [2728] ferror::st#1 = ferror::$6 + // [2742] ferror::st#1 = ferror::$6 // while (!(st = cbm_k_readst())) - // [2729] if(0==ferror::st#1) goto ferror::@1 -- 0_eq_vbuz1_then_la1 + // [2743] if(0==ferror::st#1) goto ferror::@1 -- 0_eq_vbuz1_then_la1 lda.z st beq __b1 // ferror::@2 // __status = st - // [2730] ((char *)&__stdio_file+$46)[ferror::sp#0] = ferror::st#1 -- pbuc1_derefidx_vbuz1=vbuz2 + // [2744] ((char *)&__stdio_file+$46)[ferror::sp#0] = ferror::st#1 -- pbuc1_derefidx_vbuz1=vbuz2 ldy.z sp sta __stdio_file+$46,y // cbm_k_close(15) - // [2731] ferror::cbm_k_close1_channel = $f -- vbum1=vbuc1 + // [2745] ferror::cbm_k_close1_channel = $f -- vbum1=vbuc1 lda #$f sta cbm_k_close1_channel // ferror::cbm_k_close1 @@ -18037,90 +18164,90 @@ ferror: { jsr CBM_CLOSE // ferror::@9 // return __errno; - // [2733] ferror::return#1 = __errno#18 -- vwsm1=vwsz2 + // [2747] ferror::return#1 = __errno#18 -- vwsm1=vwsz2 lda.z __errno sta return lda.z __errno+1 sta return+1 // ferror::@return // } - // [2734] return + // [2748] return rts // ferror::@1 __b1: // if (!errno_parsed) - // [2735] if(0!=ferror::errno_parsed#2) goto ferror::@3 -- 0_neq_vbuz1_then_la1 + // [2749] if(0!=ferror::errno_parsed#2) goto ferror::@3 -- 0_neq_vbuz1_then_la1 lda.z errno_parsed bne __b3 // ferror::@4 // if (ch == ',') - // [2736] if(ferror::ch#10!=',') goto ferror::@3 -- vbuz1_neq_vbuc1_then_la1 + // [2750] if(ferror::ch#10!=',') goto ferror::@3 -- vbuz1_neq_vbuc1_then_la1 lda #',' cmp.z ch bne __b3 // ferror::@5 // errno_parsed++; - // [2737] ferror::errno_parsed#1 = ++ ferror::errno_parsed#2 -- vbuz1=_inc_vbuz1 + // [2751] ferror::errno_parsed#1 = ++ ferror::errno_parsed#2 -- vbuz1=_inc_vbuz1 inc.z errno_parsed // strncpy(temp, __errno_error, errno_len+1) - // [2738] strncpy::n#0 = ferror::errno_len#10 + 1 -- vwuz1=vbuz2_plus_1 - lda.z errno_len + // [2752] strncpy::n#0 = ferror::errno_len#10 + 1 -- vwuz1=vbum2_plus_1 + lda errno_len clc adc #1 sta.z strncpy.n lda #0 adc #0 sta.z strncpy.n+1 - // [2739] call strncpy - // [2493] phi from ferror::@5 to strncpy [phi:ferror::@5->strncpy] - // [2493] phi strncpy::dst#8 = ferror::temp [phi:ferror::@5->strncpy#0] -- pbuz1=pbuc1 + // [2753] call strncpy + // [2507] phi from ferror::@5 to strncpy [phi:ferror::@5->strncpy] + // [2507] phi strncpy::dst#8 = ferror::temp [phi:ferror::@5->strncpy#0] -- pbuz1=pbuc1 lda #temp sta.z strncpy.dst+1 - // [2493] phi strncpy::src#6 = __errno_error [phi:ferror::@5->strncpy#1] -- pbuz1=pbuc1 + // [2507] phi strncpy::src#6 = __errno_error [phi:ferror::@5->strncpy#1] -- pbuz1=pbuc1 lda #<__errno_error sta.z strncpy.src lda #>__errno_error sta.z strncpy.src+1 - // [2493] phi strncpy::n#3 = strncpy::n#0 [phi:ferror::@5->strncpy#2] -- register_copy + // [2507] phi strncpy::n#3 = strncpy::n#0 [phi:ferror::@5->strncpy#2] -- register_copy jsr strncpy - // [2740] phi from ferror::@5 to ferror::@13 [phi:ferror::@5->ferror::@13] + // [2754] phi from ferror::@5 to ferror::@13 [phi:ferror::@5->ferror::@13] // ferror::@13 // atoi(temp) - // [2741] call atoi - // [2753] phi from ferror::@13 to atoi [phi:ferror::@13->atoi] - // [2753] phi atoi::str#2 = ferror::temp [phi:ferror::@13->atoi#0] -- pbuz1=pbuc1 + // [2755] call atoi + // [2767] phi from ferror::@13 to atoi [phi:ferror::@13->atoi] + // [2767] phi atoi::str#2 = ferror::temp [phi:ferror::@13->atoi#0] -- pbuz1=pbuc1 lda #temp sta.z atoi.str+1 jsr atoi // atoi(temp) - // [2742] atoi::return#4 = atoi::return#2 + // [2756] atoi::return#4 = atoi::return#2 // ferror::@14 // __errno = atoi(temp) - // [2743] __errno#2 = atoi::return#4 -- vwsz1=vwsz2 + // [2757] __errno#2 = atoi::return#4 -- vwsz1=vwsz2 lda.z atoi.return sta.z __errno lda.z atoi.return+1 sta.z __errno+1 - // [2744] phi from ferror::@1 ferror::@14 ferror::@4 to ferror::@3 [phi:ferror::@1/ferror::@14/ferror::@4->ferror::@3] - // [2744] phi __errno#105 = __errno#18 [phi:ferror::@1/ferror::@14/ferror::@4->ferror::@3#0] -- register_copy - // [2744] phi ferror::errno_parsed#11 = ferror::errno_parsed#2 [phi:ferror::@1/ferror::@14/ferror::@4->ferror::@3#1] -- register_copy + // [2758] phi from ferror::@1 ferror::@14 ferror::@4 to ferror::@3 [phi:ferror::@1/ferror::@14/ferror::@4->ferror::@3] + // [2758] phi __errno#107 = __errno#18 [phi:ferror::@1/ferror::@14/ferror::@4->ferror::@3#0] -- register_copy + // [2758] phi ferror::errno_parsed#11 = ferror::errno_parsed#2 [phi:ferror::@1/ferror::@14/ferror::@4->ferror::@3#1] -- register_copy // ferror::@3 __b3: // __errno_error[errno_len] = ch - // [2745] __errno_error[ferror::errno_len#10] = ferror::ch#10 -- pbuc1_derefidx_vbuz1=vbuz2 + // [2759] __errno_error[ferror::errno_len#10] = ferror::ch#10 -- pbuc1_derefidx_vbum1=vbuz2 lda.z ch - ldy.z errno_len + ldy errno_len sta __errno_error,y // errno_len++; - // [2746] ferror::errno_len#1 = ++ ferror::errno_len#10 -- vbuz1=_inc_vbuz1 - inc.z errno_len + // [2760] ferror::errno_len#1 = ++ ferror::errno_len#10 -- vbum1=_inc_vbum1 + inc errno_len // ferror::cbm_k_chrin2 // char ch - // [2747] ferror::cbm_k_chrin2_ch = 0 -- vbuz1=vbuc1 + // [2761] ferror::cbm_k_chrin2_ch = 0 -- vbuz1=vbuc1 lda #0 sta.z cbm_k_chrin2_ch // asm @@ -18128,21 +18255,21 @@ ferror: { jsr CBM_CHRIN sta cbm_k_chrin2_ch // return ch; - // [2749] ferror::cbm_k_chrin2_return#0 = ferror::cbm_k_chrin2_ch -- vbuz1=vbuz2 + // [2763] ferror::cbm_k_chrin2_return#0 = ferror::cbm_k_chrin2_ch -- vbuz1=vbuz2 sta.z cbm_k_chrin2_return // ferror::cbm_k_chrin2_@return // } - // [2750] ferror::cbm_k_chrin2_return#1 = ferror::cbm_k_chrin2_return#0 + // [2764] ferror::cbm_k_chrin2_return#1 = ferror::cbm_k_chrin2_return#0 // ferror::@10 // cbm_k_chrin() - // [2751] ferror::$15 = ferror::cbm_k_chrin2_return#1 + // [2765] ferror::$15 = ferror::cbm_k_chrin2_return#1 // ch = cbm_k_chrin() - // [2752] ferror::ch#1 = ferror::$15 - // [2722] phi from ferror::@10 to ferror::cbm_k_readst1 [phi:ferror::@10->ferror::cbm_k_readst1] - // [2722] phi __errno#18 = __errno#105 [phi:ferror::@10->ferror::cbm_k_readst1#0] -- register_copy - // [2722] phi ferror::errno_len#10 = ferror::errno_len#1 [phi:ferror::@10->ferror::cbm_k_readst1#1] -- register_copy - // [2722] phi ferror::ch#10 = ferror::ch#1 [phi:ferror::@10->ferror::cbm_k_readst1#2] -- register_copy - // [2722] phi ferror::errno_parsed#2 = ferror::errno_parsed#11 [phi:ferror::@10->ferror::cbm_k_readst1#3] -- register_copy + // [2766] ferror::ch#1 = ferror::$15 + // [2736] phi from ferror::@10 to ferror::cbm_k_readst1 [phi:ferror::@10->ferror::cbm_k_readst1] + // [2736] phi __errno#18 = __errno#107 [phi:ferror::@10->ferror::cbm_k_readst1#0] -- register_copy + // [2736] phi ferror::errno_len#10 = ferror::errno_len#1 [phi:ferror::@10->ferror::cbm_k_readst1#1] -- register_copy + // [2736] phi ferror::ch#10 = ferror::ch#1 [phi:ferror::@10->ferror::cbm_k_readst1#2] -- register_copy + // [2736] phi ferror::errno_parsed#2 = ferror::errno_parsed#11 [phi:ferror::@10->ferror::cbm_k_readst1#3] -- register_copy jmp cbm_k_readst1 .segment Data temp: .fill 4, 0 @@ -18153,64 +18280,65 @@ ferror: { cbm_k_chrin1_ch: .byte 0 cbm_k_close1_channel: .byte 0 return: .word 0 + .label errno_len = main.main__342 } .segment Code // atoi // Converts the string argument str to an integer. -// __zp($5f) int atoi(__zp($d2) const char *str) +// __zp($5d) int atoi(__zp($d2) const char *str) atoi: { - .label atoi__6 = $5f - .label atoi__7 = $5f - .label res = $5f + .label atoi__6 = $5d + .label atoi__7 = $5d + .label res = $5d // Initialize sign as positive .label i = $ca - .label return = $5f + .label return = $5d .label str = $d2 // Initialize result .label negative = $d4 .label atoi__10 = $4c - .label atoi__11 = $5f + .label atoi__11 = $5d // if (str[i] == '-') - // [2754] if(*atoi::str#2!='-') goto atoi::@3 -- _deref_pbuz1_neq_vbuc1_then_la1 + // [2768] if(*atoi::str#2!='-') goto atoi::@3 -- _deref_pbuz1_neq_vbuc1_then_la1 ldy #0 lda (str),y cmp #'-' bne __b2 - // [2755] phi from atoi to atoi::@2 [phi:atoi->atoi::@2] + // [2769] phi from atoi to atoi::@2 [phi:atoi->atoi::@2] // atoi::@2 - // [2756] phi from atoi::@2 to atoi::@3 [phi:atoi::@2->atoi::@3] - // [2756] phi atoi::negative#2 = 1 [phi:atoi::@2->atoi::@3#0] -- vbuz1=vbuc1 + // [2770] phi from atoi::@2 to atoi::@3 [phi:atoi::@2->atoi::@3] + // [2770] phi atoi::negative#2 = 1 [phi:atoi::@2->atoi::@3#0] -- vbuz1=vbuc1 lda #1 sta.z negative - // [2756] phi atoi::res#2 = 0 [phi:atoi::@2->atoi::@3#1] -- vwsz1=vwsc1 + // [2770] phi atoi::res#2 = 0 [phi:atoi::@2->atoi::@3#1] -- vwsz1=vwsc1 tya sta.z res sta.z res+1 - // [2756] phi atoi::i#4 = 1 [phi:atoi::@2->atoi::@3#2] -- vbuz1=vbuc1 + // [2770] phi atoi::i#4 = 1 [phi:atoi::@2->atoi::@3#2] -- vbuz1=vbuc1 lda #1 sta.z i jmp __b3 // Iterate through all digits and update the result - // [2756] phi from atoi to atoi::@3 [phi:atoi->atoi::@3] + // [2770] phi from atoi to atoi::@3 [phi:atoi->atoi::@3] __b2: - // [2756] phi atoi::negative#2 = 0 [phi:atoi->atoi::@3#0] -- vbuz1=vbuc1 + // [2770] phi atoi::negative#2 = 0 [phi:atoi->atoi::@3#0] -- vbuz1=vbuc1 lda #0 sta.z negative - // [2756] phi atoi::res#2 = 0 [phi:atoi->atoi::@3#1] -- vwsz1=vwsc1 + // [2770] phi atoi::res#2 = 0 [phi:atoi->atoi::@3#1] -- vwsz1=vwsc1 sta.z res sta.z res+1 - // [2756] phi atoi::i#4 = 0 [phi:atoi->atoi::@3#2] -- vbuz1=vbuc1 + // [2770] phi atoi::i#4 = 0 [phi:atoi->atoi::@3#2] -- vbuz1=vbuc1 sta.z i // atoi::@3 __b3: // for (; str[i]>='0' && str[i]<='9'; ++i) - // [2757] if(atoi::str#2[atoi::i#4]<'0') goto atoi::@5 -- pbuz1_derefidx_vbuz2_lt_vbuc1_then_la1 + // [2771] if(atoi::str#2[atoi::i#4]<'0') goto atoi::@5 -- pbuz1_derefidx_vbuz2_lt_vbuc1_then_la1 ldy.z i lda (str),y cmp #'0' bcc __b5 // atoi::@6 - // [2758] if(atoi::str#2[atoi::i#4]<='9') goto atoi::@4 -- pbuz1_derefidx_vbuz2_le_vbuc1_then_la1 + // [2772] if(atoi::str#2[atoi::i#4]<='9') goto atoi::@4 -- pbuz1_derefidx_vbuz2_le_vbuc1_then_la1 lda (str),y cmp #'9' bcc __b4 @@ -18218,17 +18346,17 @@ atoi: { // atoi::@5 __b5: // if(negative) - // [2759] if(0!=atoi::negative#2) goto atoi::@1 -- 0_neq_vbuz1_then_la1 + // [2773] if(0!=atoi::negative#2) goto atoi::@1 -- 0_neq_vbuz1_then_la1 // Return result with sign lda.z negative bne __b1 - // [2761] phi from atoi::@1 atoi::@5 to atoi::@return [phi:atoi::@1/atoi::@5->atoi::@return] - // [2761] phi atoi::return#2 = atoi::return#0 [phi:atoi::@1/atoi::@5->atoi::@return#0] -- register_copy + // [2775] phi from atoi::@1 atoi::@5 to atoi::@return [phi:atoi::@1/atoi::@5->atoi::@return] + // [2775] phi atoi::return#2 = atoi::return#0 [phi:atoi::@1/atoi::@5->atoi::@return#0] -- register_copy rts // atoi::@1 __b1: // return -res; - // [2760] atoi::return#0 = - atoi::res#2 -- vwsz1=_neg_vwsz1 + // [2774] atoi::return#0 = - atoi::res#2 -- vwsz1=_neg_vwsz1 lda #0 sec sbc.z return @@ -18238,12 +18366,12 @@ atoi: { sta.z return+1 // atoi::@return // } - // [2762] return + // [2776] return rts // atoi::@4 __b4: // res * 10 - // [2763] atoi::$10 = atoi::res#2 << 2 -- vwsz1=vwsz2_rol_2 + // [2777] atoi::$10 = atoi::res#2 << 2 -- vwsz1=vwsz2_rol_2 lda.z res asl sta.z atoi__10 @@ -18252,7 +18380,7 @@ atoi: { sta.z atoi__10+1 asl.z atoi__10 rol.z atoi__10+1 - // [2764] atoi::$11 = atoi::$10 + atoi::res#2 -- vwsz1=vwsz2_plus_vwsz1 + // [2778] atoi::$11 = atoi::$10 + atoi::res#2 -- vwsz1=vwsz2_plus_vwsz1 clc lda.z atoi__11 adc.z atoi__10 @@ -18260,11 +18388,11 @@ atoi: { lda.z atoi__11+1 adc.z atoi__10+1 sta.z atoi__11+1 - // [2765] atoi::$6 = atoi::$11 << 1 -- vwsz1=vwsz1_rol_1 + // [2779] atoi::$6 = atoi::$11 << 1 -- vwsz1=vwsz1_rol_1 asl.z atoi__6 rol.z atoi__6+1 // res * 10 + str[i] - // [2766] atoi::$7 = atoi::$6 + atoi::str#2[atoi::i#4] -- vwsz1=vwsz1_plus_pbuz2_derefidx_vbuz3 + // [2780] atoi::$7 = atoi::$6 + atoi::str#2[atoi::i#4] -- vwsz1=vwsz1_plus_pbuz2_derefidx_vbuz3 ldy.z i lda.z atoi__7 clc @@ -18274,7 +18402,7 @@ atoi: { inc.z atoi__7+1 !: // res = res * 10 + str[i] - '0' - // [2767] atoi::res#1 = atoi::$7 - '0' -- vwsz1=vwsz1_minus_vbuc1 + // [2781] atoi::res#1 = atoi::$7 - '0' -- vwsz1=vwsz1_minus_vbuc1 lda.z res sec sbc #'0' @@ -18283,12 +18411,12 @@ atoi: { dec.z res+1 !: // for (; str[i]>='0' && str[i]<='9'; ++i) - // [2768] atoi::i#2 = ++ atoi::i#4 -- vbuz1=_inc_vbuz1 + // [2782] atoi::i#2 = ++ atoi::i#4 -- vbuz1=_inc_vbuz1 inc.z i - // [2756] phi from atoi::@4 to atoi::@3 [phi:atoi::@4->atoi::@3] - // [2756] phi atoi::negative#2 = atoi::negative#2 [phi:atoi::@4->atoi::@3#0] -- register_copy - // [2756] phi atoi::res#2 = atoi::res#1 [phi:atoi::@4->atoi::@3#1] -- register_copy - // [2756] phi atoi::i#4 = atoi::i#2 [phi:atoi::@4->atoi::@3#2] -- register_copy + // [2770] phi from atoi::@4 to atoi::@3 [phi:atoi::@4->atoi::@3] + // [2770] phi atoi::negative#2 = atoi::negative#2 [phi:atoi::@4->atoi::@3#0] -- register_copy + // [2770] phi atoi::res#2 = atoi::res#1 [phi:atoi::@4->atoi::@3#1] -- register_copy + // [2770] phi atoi::i#4 = atoi::i#2 [phi:atoi::@4->atoi::@3#2] -- register_copy jmp __b3 } // cx16_k_macptr @@ -18300,14 +18428,14 @@ atoi: { * @return y the size of bytes read * @return if carry is set there is an error */ -// __zp($74) unsigned int cx16_k_macptr(__zp($c7) volatile char bytes, __zp($c2) void * volatile buffer) +// __zp($73) unsigned int cx16_k_macptr(__zp($c7) volatile char bytes, __zp($c2) void * volatile buffer) cx16_k_macptr: { .label bytes = $c7 .label buffer = $c2 - .label bytes_read = $af - .label return = $74 + .label bytes_read = $ad + .label return = $73 // unsigned int bytes_read - // [2769] cx16_k_macptr::bytes_read = 0 -- vwuz1=vwuc1 + // [2783] cx16_k_macptr::bytes_read = 0 -- vwuz1=vwuc1 lda #<0 sta.z bytes_read sta.z bytes_read+1 @@ -18326,15 +18454,15 @@ cx16_k_macptr: { sta bytes_read+1 !: // return bytes_read; - // [2771] cx16_k_macptr::return#0 = cx16_k_macptr::bytes_read -- vwuz1=vwuz2 + // [2785] cx16_k_macptr::return#0 = cx16_k_macptr::bytes_read -- vwuz1=vwuz2 lda.z bytes_read sta.z return lda.z bytes_read+1 sta.z return+1 // cx16_k_macptr::@return // } - // [2772] cx16_k_macptr::return#1 = cx16_k_macptr::return#0 - // [2773] return + // [2786] cx16_k_macptr::return#1 = cx16_k_macptr::return#0 + // [2787] return rts } // uctoa_append @@ -18346,50 +18474,50 @@ cx16_k_macptr: { // - sub : the value of a '1' in the digit. Subtracted continually while the digit is increased. // (For decimal the subs used are 10000, 1000, 100, 10, 1) // returns : the value reduced by sub * digit so that it is less than sub. -// __zp($30) char uctoa_append(__zp($6b) char *buffer, __zp($30) char value, __zp($44) char sub) +// __zp($30) char uctoa_append(__zp($6b) char *buffer, __zp($30) char value, __zp($3c) char sub) uctoa_append: { .label buffer = $6b .label value = $30 - .label sub = $44 + .label sub = $3c .label return = $30 - .label digit = $36 - // [2775] phi from uctoa_append to uctoa_append::@1 [phi:uctoa_append->uctoa_append::@1] - // [2775] phi uctoa_append::digit#2 = 0 [phi:uctoa_append->uctoa_append::@1#0] -- vbuz1=vbuc1 + .label digit = $37 + // [2789] phi from uctoa_append to uctoa_append::@1 [phi:uctoa_append->uctoa_append::@1] + // [2789] phi uctoa_append::digit#2 = 0 [phi:uctoa_append->uctoa_append::@1#0] -- vbuz1=vbuc1 lda #0 sta.z digit - // [2775] phi uctoa_append::value#2 = uctoa_append::value#0 [phi:uctoa_append->uctoa_append::@1#1] -- register_copy + // [2789] phi uctoa_append::value#2 = uctoa_append::value#0 [phi:uctoa_append->uctoa_append::@1#1] -- register_copy // uctoa_append::@1 __b1: // while (value >= sub) - // [2776] if(uctoa_append::value#2>=uctoa_append::sub#0) goto uctoa_append::@2 -- vbuz1_ge_vbuz2_then_la1 + // [2790] if(uctoa_append::value#2>=uctoa_append::sub#0) goto uctoa_append::@2 -- vbuz1_ge_vbuz2_then_la1 lda.z value cmp.z sub bcs __b2 // uctoa_append::@3 // *buffer = DIGITS[digit] - // [2777] *uctoa_append::buffer#0 = DIGITS[uctoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuz2 + // [2791] *uctoa_append::buffer#0 = DIGITS[uctoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuz2 ldy.z digit lda DIGITS,y ldy #0 sta (buffer),y // uctoa_append::@return // } - // [2778] return + // [2792] return rts // uctoa_append::@2 __b2: // digit++; - // [2779] uctoa_append::digit#1 = ++ uctoa_append::digit#2 -- vbuz1=_inc_vbuz1 + // [2793] uctoa_append::digit#1 = ++ uctoa_append::digit#2 -- vbuz1=_inc_vbuz1 inc.z digit // value -= sub - // [2780] uctoa_append::value#1 = uctoa_append::value#2 - uctoa_append::sub#0 -- vbuz1=vbuz1_minus_vbuz2 + // [2794] uctoa_append::value#1 = uctoa_append::value#2 - uctoa_append::sub#0 -- vbuz1=vbuz1_minus_vbuz2 lda.z value sec sbc.z sub sta.z value - // [2775] phi from uctoa_append::@2 to uctoa_append::@1 [phi:uctoa_append::@2->uctoa_append::@1] - // [2775] phi uctoa_append::digit#2 = uctoa_append::digit#1 [phi:uctoa_append::@2->uctoa_append::@1#0] -- register_copy - // [2775] phi uctoa_append::value#2 = uctoa_append::value#1 [phi:uctoa_append::@2->uctoa_append::@1#1] -- register_copy + // [2789] phi from uctoa_append::@2 to uctoa_append::@1 [phi:uctoa_append::@2->uctoa_append::@1] + // [2789] phi uctoa_append::digit#2 = uctoa_append::digit#1 [phi:uctoa_append::@2->uctoa_append::@1#0] -- register_copy + // [2789] phi uctoa_append::value#2 = uctoa_append::value#1 [phi:uctoa_append::@2->uctoa_append::@1#1] -- register_copy jmp __b1 } // rom_byte_compare @@ -18402,33 +18530,33 @@ uctoa_append: { * @param address The 22 bit ROM address. * @param value The byte value to be written. */ -// __zp($73) char rom_byte_compare(__zp($6d) char *ptr_rom, __zp($2c) char value) +// __zp($53) char rom_byte_compare(__zp($6d) char *ptr_rom, __zp($61) char value) rom_byte_compare: { - .label return = $73 + .label return = $53 .label ptr_rom = $6d - .label value = $2c + .label value = $61 // if (*ptr_rom != value) - // [2781] if(*rom_byte_compare::ptr_rom#0==rom_byte_compare::value#0) goto rom_byte_compare::@1 -- _deref_pbuz1_eq_vbuz2_then_la1 + // [2795] if(*rom_byte_compare::ptr_rom#0==rom_byte_compare::value#0) goto rom_byte_compare::@1 -- _deref_pbuz1_eq_vbuz2_then_la1 lda.z value ldy #0 cmp (ptr_rom),y beq __b2 - // [2782] phi from rom_byte_compare to rom_byte_compare::@2 [phi:rom_byte_compare->rom_byte_compare::@2] + // [2796] phi from rom_byte_compare to rom_byte_compare::@2 [phi:rom_byte_compare->rom_byte_compare::@2] // rom_byte_compare::@2 - // [2783] phi from rom_byte_compare::@2 to rom_byte_compare::@1 [phi:rom_byte_compare::@2->rom_byte_compare::@1] - // [2783] phi rom_byte_compare::return#0 = 0 [phi:rom_byte_compare::@2->rom_byte_compare::@1#0] -- vbuz1=vbuc1 + // [2797] phi from rom_byte_compare::@2 to rom_byte_compare::@1 [phi:rom_byte_compare::@2->rom_byte_compare::@1] + // [2797] phi rom_byte_compare::return#0 = 0 [phi:rom_byte_compare::@2->rom_byte_compare::@1#0] -- vbuz1=vbuc1 tya sta.z return rts - // [2783] phi from rom_byte_compare to rom_byte_compare::@1 [phi:rom_byte_compare->rom_byte_compare::@1] + // [2797] phi from rom_byte_compare to rom_byte_compare::@1 [phi:rom_byte_compare->rom_byte_compare::@1] __b2: - // [2783] phi rom_byte_compare::return#0 = 1 [phi:rom_byte_compare->rom_byte_compare::@1#0] -- vbuz1=vbuc1 + // [2797] phi rom_byte_compare::return#0 = 1 [phi:rom_byte_compare->rom_byte_compare::@1#0] -- vbuz1=vbuc1 lda #1 sta.z return // rom_byte_compare::@1 // rom_byte_compare::@return // } - // [2784] return + // [2798] return rts } // ultoa_append @@ -18440,22 +18568,22 @@ rom_byte_compare: { // - sub : the value of a '1' in the digit. Subtracted continually while the digit is increased. // (For decimal the subs used are 10000, 1000, 100, 10, 1) // returns : the value reduced by sub * digit so that it is less than sub. -// __zp($31) unsigned long ultoa_append(__zp($3e) char *buffer, __zp($31) unsigned long value, __zp($40) unsigned long sub) +// __zp($31) unsigned long ultoa_append(__zp($3f) char *buffer, __zp($31) unsigned long value, __zp($41) unsigned long sub) ultoa_append: { - .label buffer = $3e + .label buffer = $3f .label value = $31 - .label sub = $40 + .label sub = $41 .label return = $31 .label digit = $2c - // [2786] phi from ultoa_append to ultoa_append::@1 [phi:ultoa_append->ultoa_append::@1] - // [2786] phi ultoa_append::digit#2 = 0 [phi:ultoa_append->ultoa_append::@1#0] -- vbuz1=vbuc1 + // [2800] phi from ultoa_append to ultoa_append::@1 [phi:ultoa_append->ultoa_append::@1] + // [2800] phi ultoa_append::digit#2 = 0 [phi:ultoa_append->ultoa_append::@1#0] -- vbuz1=vbuc1 lda #0 sta.z digit - // [2786] phi ultoa_append::value#2 = ultoa_append::value#0 [phi:ultoa_append->ultoa_append::@1#1] -- register_copy + // [2800] phi ultoa_append::value#2 = ultoa_append::value#0 [phi:ultoa_append->ultoa_append::@1#1] -- register_copy // ultoa_append::@1 __b1: // while (value >= sub) - // [2787] if(ultoa_append::value#2>=ultoa_append::sub#0) goto ultoa_append::@2 -- vduz1_ge_vduz2_then_la1 + // [2801] if(ultoa_append::value#2>=ultoa_append::sub#0) goto ultoa_append::@2 -- vduz1_ge_vduz2_then_la1 lda.z value+3 cmp.z sub+3 bcc !+ @@ -18474,22 +18602,22 @@ ultoa_append: { !: // ultoa_append::@3 // *buffer = DIGITS[digit] - // [2788] *ultoa_append::buffer#0 = DIGITS[ultoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuz2 + // [2802] *ultoa_append::buffer#0 = DIGITS[ultoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuz2 ldy.z digit lda DIGITS,y ldy #0 sta (buffer),y // ultoa_append::@return // } - // [2789] return + // [2803] return rts // ultoa_append::@2 __b2: // digit++; - // [2790] ultoa_append::digit#1 = ++ ultoa_append::digit#2 -- vbuz1=_inc_vbuz1 + // [2804] ultoa_append::digit#1 = ++ ultoa_append::digit#2 -- vbuz1=_inc_vbuz1 inc.z digit // value -= sub - // [2791] ultoa_append::value#1 = ultoa_append::value#2 - ultoa_append::sub#0 -- vduz1=vduz1_minus_vduz2 + // [2805] ultoa_append::value#1 = ultoa_append::value#2 - ultoa_append::sub#0 -- vduz1=vduz1_minus_vduz2 lda.z value sec sbc.z sub @@ -18503,9 +18631,9 @@ ultoa_append: { lda.z value+3 sbc.z sub+3 sta.z value+3 - // [2786] phi from ultoa_append::@2 to ultoa_append::@1 [phi:ultoa_append::@2->ultoa_append::@1] - // [2786] phi ultoa_append::digit#2 = ultoa_append::digit#1 [phi:ultoa_append::@2->ultoa_append::@1#0] -- register_copy - // [2786] phi ultoa_append::value#2 = ultoa_append::value#1 [phi:ultoa_append::@2->ultoa_append::@1#1] -- register_copy + // [2800] phi from ultoa_append::@2 to ultoa_append::@1 [phi:ultoa_append::@2->ultoa_append::@1] + // [2800] phi ultoa_append::digit#2 = ultoa_append::digit#1 [phi:ultoa_append::@2->ultoa_append::@1#0] -- register_copy + // [2800] phi ultoa_append::value#2 = ultoa_append::value#1 [phi:ultoa_append::@2->ultoa_append::@1#1] -- register_copy jmp __b1 } // rom_wait @@ -18522,42 +18650,42 @@ ultoa_append: { * @param ptr_rom The 16 bit pointer where the byte was written. This pointer is used for the sequence reads to verify bit 6. */ /* inline */ -// void rom_wait(__zp($3c) char *ptr_rom) +// void rom_wait(__zp($3d) char *ptr_rom) rom_wait: { - .label rom_wait__0 = $37 + .label rom_wait__0 = $36 .label rom_wait__1 = $2d - .label test1 = $37 + .label test1 = $36 .label test2 = $2d - .label ptr_rom = $3c + .label ptr_rom = $3d // rom_wait::@1 __b1: // test1 = *((brom_ptr_t)ptr_rom) - // [2793] rom_wait::test1#1 = *rom_wait::ptr_rom#3 -- vbuz1=_deref_pbuz2 + // [2807] rom_wait::test1#1 = *rom_wait::ptr_rom#3 -- vbuz1=_deref_pbuz2 ldy #0 lda (ptr_rom),y sta.z test1 // test2 = *((brom_ptr_t)ptr_rom) - // [2794] rom_wait::test2#1 = *rom_wait::ptr_rom#3 -- vbuz1=_deref_pbuz2 + // [2808] rom_wait::test2#1 = *rom_wait::ptr_rom#3 -- vbuz1=_deref_pbuz2 lda (ptr_rom),y sta.z test2 // test1 & 0x40 - // [2795] rom_wait::$0 = rom_wait::test1#1 & $40 -- vbuz1=vbuz1_band_vbuc1 + // [2809] rom_wait::$0 = rom_wait::test1#1 & $40 -- vbuz1=vbuz1_band_vbuc1 lda #$40 and.z rom_wait__0 sta.z rom_wait__0 // test2 & 0x40 - // [2796] rom_wait::$1 = rom_wait::test2#1 & $40 -- vbuz1=vbuz1_band_vbuc1 + // [2810] rom_wait::$1 = rom_wait::test2#1 & $40 -- vbuz1=vbuz1_band_vbuc1 lda #$40 and.z rom_wait__1 sta.z rom_wait__1 // while ((test1 & 0x40) != (test2 & 0x40)) - // [2797] if(rom_wait::$0!=rom_wait::$1) goto rom_wait::@1 -- vbuz1_neq_vbuz2_then_la1 + // [2811] if(rom_wait::$0!=rom_wait::$1) goto rom_wait::@1 -- vbuz1_neq_vbuz2_then_la1 lda.z rom_wait__0 cmp.z rom_wait__1 bne __b1 // rom_wait::@return // } - // [2798] return + // [2812] return rts } // rom_byte_program @@ -18568,21 +18696,21 @@ rom_wait: { * @param value The byte value to be written. */ /* inline */ -// void rom_byte_program(__zp($55) unsigned long address, __zp($59) char value) +// void rom_byte_program(__zp($56) unsigned long address, __zp($5a) char value) rom_byte_program: { - .label rom_ptr1_rom_byte_program__0 = $5a - .label rom_ptr1_rom_byte_program__2 = $5a - .label rom_ptr1_return = $5a - .label address = $55 - .label value = $59 + .label rom_ptr1_rom_byte_program__0 = $5b + .label rom_ptr1_rom_byte_program__2 = $5b + .label rom_ptr1_return = $5b + .label address = $56 + .label value = $5a // rom_byte_program::rom_ptr1 // (unsigned int)(address) & ROM_PTR_MASK - // [2800] rom_byte_program::rom_ptr1_$2 = (unsigned int)rom_byte_program::address#0 -- vwuz1=_word_vduz2 + // [2814] rom_byte_program::rom_ptr1_$2 = (unsigned int)rom_byte_program::address#0 -- vwuz1=_word_vduz2 lda.z address sta.z rom_ptr1_rom_byte_program__2 lda.z address+1 sta.z rom_ptr1_rom_byte_program__2+1 - // [2801] rom_byte_program::rom_ptr1_$0 = rom_byte_program::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 + // [2815] rom_byte_program::rom_ptr1_$0 = rom_byte_program::rom_ptr1_$2 & $3fff -- vwuz1=vwuz1_band_vwuc1 lda.z rom_ptr1_rom_byte_program__0 and #<$3fff sta.z rom_ptr1_rom_byte_program__0 @@ -18590,7 +18718,7 @@ rom_byte_program: { and #>$3fff sta.z rom_ptr1_rom_byte_program__0+1 // ((unsigned int)(address) & ROM_PTR_MASK) + ROM_BASE - // [2802] rom_byte_program::rom_ptr1_return#0 = rom_byte_program::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 + // [2816] rom_byte_program::rom_ptr1_return#0 = rom_byte_program::rom_ptr1_$0 + $c000 -- vwuz1=vwuz1_plus_vwuc1 lda.z rom_ptr1_return clc adc #<$c000 @@ -18600,27 +18728,27 @@ rom_byte_program: { sta.z rom_ptr1_return+1 // rom_byte_program::@1 // rom_write_byte(address, value) - // [2803] rom_write_byte::address#3 = rom_byte_program::address#0 - // [2804] rom_write_byte::value#3 = rom_byte_program::value#0 - // [2805] call rom_write_byte - // [2687] phi from rom_byte_program::@1 to rom_write_byte [phi:rom_byte_program::@1->rom_write_byte] - // [2687] phi rom_write_byte::value#10 = rom_write_byte::value#3 [phi:rom_byte_program::@1->rom_write_byte#0] -- register_copy - // [2687] phi rom_write_byte::address#4 = rom_write_byte::address#3 [phi:rom_byte_program::@1->rom_write_byte#1] -- register_copy + // [2817] rom_write_byte::address#3 = rom_byte_program::address#0 + // [2818] rom_write_byte::value#3 = rom_byte_program::value#0 + // [2819] call rom_write_byte + // [2701] phi from rom_byte_program::@1 to rom_write_byte [phi:rom_byte_program::@1->rom_write_byte] + // [2701] phi rom_write_byte::value#10 = rom_write_byte::value#3 [phi:rom_byte_program::@1->rom_write_byte#0] -- register_copy + // [2701] phi rom_write_byte::address#4 = rom_write_byte::address#3 [phi:rom_byte_program::@1->rom_write_byte#1] -- register_copy jsr rom_write_byte // rom_byte_program::@2 // rom_wait(ptr_rom) - // [2806] rom_wait::ptr_rom#1 = (char *)rom_byte_program::rom_ptr1_return#0 -- pbuz1=pbuz2 + // [2820] rom_wait::ptr_rom#1 = (char *)rom_byte_program::rom_ptr1_return#0 -- pbuz1=pbuz2 lda.z rom_ptr1_return sta.z rom_wait.ptr_rom lda.z rom_ptr1_return+1 sta.z rom_wait.ptr_rom+1 - // [2807] call rom_wait - // [2792] phi from rom_byte_program::@2 to rom_wait [phi:rom_byte_program::@2->rom_wait] - // [2792] phi rom_wait::ptr_rom#3 = rom_wait::ptr_rom#1 [phi:rom_byte_program::@2->rom_wait#0] -- register_copy + // [2821] call rom_wait + // [2806] phi from rom_byte_program::@2 to rom_wait [phi:rom_byte_program::@2->rom_wait] + // [2806] phi rom_wait::ptr_rom#3 = rom_wait::ptr_rom#1 [phi:rom_byte_program::@2->rom_wait#0] -- register_copy jsr rom_wait // rom_byte_program::@return // } - // [2808] return + // [2822] return rts } // utoa_append @@ -18632,22 +18760,22 @@ rom_byte_program: { // - sub : the value of a '1' in the digit. Subtracted continually while the digit is increased. // (For decimal the subs used are 10000, 1000, 100, 10, 1) // returns : the value reduced by sub * digit so that it is less than sub. -// __zp($2e) unsigned int utoa_append(__zp($4e) char *buffer, __zp($2e) unsigned int value, __zp($3e) unsigned int sub) +// __zp($2e) unsigned int utoa_append(__zp($4e) char *buffer, __zp($2e) unsigned int value, __zp($3f) unsigned int sub) utoa_append: { .label buffer = $4e .label value = $2e - .label sub = $3e + .label sub = $3f .label return = $2e .label digit = $2c - // [2810] phi from utoa_append to utoa_append::@1 [phi:utoa_append->utoa_append::@1] - // [2810] phi utoa_append::digit#2 = 0 [phi:utoa_append->utoa_append::@1#0] -- vbuz1=vbuc1 + // [2824] phi from utoa_append to utoa_append::@1 [phi:utoa_append->utoa_append::@1] + // [2824] phi utoa_append::digit#2 = 0 [phi:utoa_append->utoa_append::@1#0] -- vbuz1=vbuc1 lda #0 sta.z digit - // [2810] phi utoa_append::value#2 = utoa_append::value#0 [phi:utoa_append->utoa_append::@1#1] -- register_copy + // [2824] phi utoa_append::value#2 = utoa_append::value#0 [phi:utoa_append->utoa_append::@1#1] -- register_copy // utoa_append::@1 __b1: // while (value >= sub) - // [2811] if(utoa_append::value#2>=utoa_append::sub#0) goto utoa_append::@2 -- vwuz1_ge_vwuz2_then_la1 + // [2825] if(utoa_append::value#2>=utoa_append::sub#0) goto utoa_append::@2 -- vwuz1_ge_vwuz2_then_la1 lda.z sub+1 cmp.z value+1 bne !+ @@ -18658,22 +18786,22 @@ utoa_append: { bcc __b2 // utoa_append::@3 // *buffer = DIGITS[digit] - // [2812] *utoa_append::buffer#0 = DIGITS[utoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuz2 + // [2826] *utoa_append::buffer#0 = DIGITS[utoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuz2 ldy.z digit lda DIGITS,y ldy #0 sta (buffer),y // utoa_append::@return // } - // [2813] return + // [2827] return rts // utoa_append::@2 __b2: // digit++; - // [2814] utoa_append::digit#1 = ++ utoa_append::digit#2 -- vbuz1=_inc_vbuz1 + // [2828] utoa_append::digit#1 = ++ utoa_append::digit#2 -- vbuz1=_inc_vbuz1 inc.z digit // value -= sub - // [2815] utoa_append::value#1 = utoa_append::value#2 - utoa_append::sub#0 -- vwuz1=vwuz1_minus_vwuz2 + // [2829] utoa_append::value#1 = utoa_append::value#2 - utoa_append::sub#0 -- vwuz1=vwuz1_minus_vwuz2 lda.z value sec sbc.z sub @@ -18681,9 +18809,9 @@ utoa_append: { lda.z value+1 sbc.z sub+1 sta.z value+1 - // [2810] phi from utoa_append::@2 to utoa_append::@1 [phi:utoa_append::@2->utoa_append::@1] - // [2810] phi utoa_append::digit#2 = utoa_append::digit#1 [phi:utoa_append::@2->utoa_append::@1#0] -- register_copy - // [2810] phi utoa_append::value#2 = utoa_append::value#1 [phi:utoa_append::@2->utoa_append::@1#1] -- register_copy + // [2824] phi from utoa_append::@2 to utoa_append::@1 [phi:utoa_append::@2->utoa_append::@1] + // [2824] phi utoa_append::digit#2 = utoa_append::digit#1 [phi:utoa_append::@2->utoa_append::@1#0] -- register_copy + // [2824] phi utoa_append::value#2 = utoa_append::value#1 [phi:utoa_append::@2->utoa_append::@1#1] -- register_copy jmp __b1 } // memcpy8_vram_vram @@ -18715,83 +18843,83 @@ memcpy8_vram_vram: { .label soffset_vram = $2a .label num8_1 = $22 // *VERA_CTRL &= ~VERA_ADDRSEL - // [2816] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 + // [2830] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_band_vbuc2 lda #VERA_ADDRSEL^$ff and VERA_CTRL sta VERA_CTRL // BYTE0(soffset_vram) - // [2817] memcpy8_vram_vram::$0 = byte0 memcpy8_vram_vram::soffset_vram#0 -- vbuz1=_byte0_vwuz2 + // [2831] memcpy8_vram_vram::$0 = byte0 memcpy8_vram_vram::soffset_vram#0 -- vbuz1=_byte0_vwuz2 lda.z soffset_vram sta.z memcpy8_vram_vram__0 // *VERA_ADDRX_L = BYTE0(soffset_vram) - // [2818] *VERA_ADDRX_L = memcpy8_vram_vram::$0 -- _deref_pbuc1=vbuz1 + // [2832] *VERA_ADDRX_L = memcpy8_vram_vram::$0 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_L // BYTE1(soffset_vram) - // [2819] memcpy8_vram_vram::$1 = byte1 memcpy8_vram_vram::soffset_vram#0 -- vbuz1=_byte1_vwuz2 + // [2833] memcpy8_vram_vram::$1 = byte1 memcpy8_vram_vram::soffset_vram#0 -- vbuz1=_byte1_vwuz2 lda.z soffset_vram+1 sta.z memcpy8_vram_vram__1 // *VERA_ADDRX_M = BYTE1(soffset_vram) - // [2820] *VERA_ADDRX_M = memcpy8_vram_vram::$1 -- _deref_pbuc1=vbuz1 + // [2834] *VERA_ADDRX_M = memcpy8_vram_vram::$1 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_M // sbank_vram | VERA_INC_1 - // [2821] memcpy8_vram_vram::$2 = memcpy8_vram_vram::sbank_vram#0 | VERA_INC_1 -- vbuz1=vbuz1_bor_vbuc1 + // [2835] memcpy8_vram_vram::$2 = memcpy8_vram_vram::sbank_vram#0 | VERA_INC_1 -- vbuz1=vbuz1_bor_vbuc1 lda #VERA_INC_1 ora.z memcpy8_vram_vram__2 sta.z memcpy8_vram_vram__2 // *VERA_ADDRX_H = sbank_vram | VERA_INC_1 - // [2822] *VERA_ADDRX_H = memcpy8_vram_vram::$2 -- _deref_pbuc1=vbuz1 + // [2836] *VERA_ADDRX_H = memcpy8_vram_vram::$2 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_H // *VERA_CTRL |= VERA_ADDRSEL - // [2823] *VERA_CTRL = *VERA_CTRL | VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 + // [2837] *VERA_CTRL = *VERA_CTRL | VERA_ADDRSEL -- _deref_pbuc1=_deref_pbuc1_bor_vbuc2 lda #VERA_ADDRSEL ora VERA_CTRL sta VERA_CTRL // BYTE0(doffset_vram) - // [2824] memcpy8_vram_vram::$3 = byte0 memcpy8_vram_vram::doffset_vram#0 -- vbuz1=_byte0_vwuz2 + // [2838] memcpy8_vram_vram::$3 = byte0 memcpy8_vram_vram::doffset_vram#0 -- vbuz1=_byte0_vwuz2 lda.z doffset_vram sta.z memcpy8_vram_vram__3 // *VERA_ADDRX_L = BYTE0(doffset_vram) - // [2825] *VERA_ADDRX_L = memcpy8_vram_vram::$3 -- _deref_pbuc1=vbuz1 + // [2839] *VERA_ADDRX_L = memcpy8_vram_vram::$3 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_L // BYTE1(doffset_vram) - // [2826] memcpy8_vram_vram::$4 = byte1 memcpy8_vram_vram::doffset_vram#0 -- vbuz1=_byte1_vwuz2 + // [2840] memcpy8_vram_vram::$4 = byte1 memcpy8_vram_vram::doffset_vram#0 -- vbuz1=_byte1_vwuz2 lda.z doffset_vram+1 sta.z memcpy8_vram_vram__4 // *VERA_ADDRX_M = BYTE1(doffset_vram) - // [2827] *VERA_ADDRX_M = memcpy8_vram_vram::$4 -- _deref_pbuc1=vbuz1 + // [2841] *VERA_ADDRX_M = memcpy8_vram_vram::$4 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_M // dbank_vram | VERA_INC_1 - // [2828] memcpy8_vram_vram::$5 = memcpy8_vram_vram::dbank_vram#0 | VERA_INC_1 -- vbuz1=vbuz1_bor_vbuc1 + // [2842] memcpy8_vram_vram::$5 = memcpy8_vram_vram::dbank_vram#0 | VERA_INC_1 -- vbuz1=vbuz1_bor_vbuc1 lda #VERA_INC_1 ora.z memcpy8_vram_vram__5 sta.z memcpy8_vram_vram__5 // *VERA_ADDRX_H = dbank_vram | VERA_INC_1 - // [2829] *VERA_ADDRX_H = memcpy8_vram_vram::$5 -- _deref_pbuc1=vbuz1 + // [2843] *VERA_ADDRX_H = memcpy8_vram_vram::$5 -- _deref_pbuc1=vbuz1 sta VERA_ADDRX_H - // [2830] phi from memcpy8_vram_vram memcpy8_vram_vram::@2 to memcpy8_vram_vram::@1 [phi:memcpy8_vram_vram/memcpy8_vram_vram::@2->memcpy8_vram_vram::@1] + // [2844] phi from memcpy8_vram_vram memcpy8_vram_vram::@2 to memcpy8_vram_vram::@1 [phi:memcpy8_vram_vram/memcpy8_vram_vram::@2->memcpy8_vram_vram::@1] __b1: - // [2830] phi memcpy8_vram_vram::num8#2 = memcpy8_vram_vram::num8#1 [phi:memcpy8_vram_vram/memcpy8_vram_vram::@2->memcpy8_vram_vram::@1#0] -- register_copy + // [2844] phi memcpy8_vram_vram::num8#2 = memcpy8_vram_vram::num8#1 [phi:memcpy8_vram_vram/memcpy8_vram_vram::@2->memcpy8_vram_vram::@1#0] -- register_copy // the size is only a byte, this is the fastest loop! // memcpy8_vram_vram::@1 // while (num8--) - // [2831] memcpy8_vram_vram::num8#0 = -- memcpy8_vram_vram::num8#2 -- vbuz1=_dec_vbuz2 + // [2845] memcpy8_vram_vram::num8#0 = -- memcpy8_vram_vram::num8#2 -- vbuz1=_dec_vbuz2 ldy.z num8_1 dey sty.z num8 - // [2832] if(0!=memcpy8_vram_vram::num8#2) goto memcpy8_vram_vram::@2 -- 0_neq_vbuz1_then_la1 + // [2846] if(0!=memcpy8_vram_vram::num8#2) goto memcpy8_vram_vram::@2 -- 0_neq_vbuz1_then_la1 lda.z num8_1 bne __b2 // memcpy8_vram_vram::@return // } - // [2833] return + // [2847] return rts // memcpy8_vram_vram::@2 __b2: // *VERA_DATA1 = *VERA_DATA0 - // [2834] *VERA_DATA1 = *VERA_DATA0 -- _deref_pbuc1=_deref_pbuc2 + // [2848] *VERA_DATA1 = *VERA_DATA0 -- _deref_pbuc1=_deref_pbuc2 lda VERA_DATA0 sta VERA_DATA1 - // [2835] memcpy8_vram_vram::num8#6 = memcpy8_vram_vram::num8#0 -- vbuz1=vbuz2 + // [2849] memcpy8_vram_vram::num8#6 = memcpy8_vram_vram::num8#0 -- vbuz1=vbuz2 lda.z num8 sta.z num8_1 jmp __b1 @@ -18836,7 +18964,7 @@ memcpy8_vram_vram: { // Values of hexadecimal digits RADIX_HEXADECIMAL_VALUES_LONG: .dword $10000000, $1000000, $100000, $10000, $1000, $100, $10 info_text: .fill $50, 0 - status_text: .word __3, __4, __5, __6, __7, __8, __9, __10, __11, __12, __13 + status_text: .word __3, __4, __5, smc_action_text_1, smc_action_text, __8, __9, __10, __11, __12, __13 status_color: .byte BLACK, GREY, WHITE, CYAN, PURPLE, CYAN, PURPLE, PURPLE, GREEN, YELLOW, RED status_rom: .byte 0 .fill 7, 0 @@ -18872,10 +19000,6 @@ memcpy8_vram_vram: { .byte 0 __5: .text "Detected" .byte 0 - __6: .text "Checking" - .byte 0 - __7: .text "Reading" - .byte 0 __8: .text "Comparing" .byte 0 __9: .text "Update" @@ -19004,7 +19128,9 @@ memcpy8_vram_vram: { .byte 0 s4: .text " ..." .byte 0 - s11: .text "Reading " + smc_action_text: .text "Reading" + .byte 0 + smc_action_text_1: .text "Checking" .byte 0 info_text4: .text "" .byte 0 diff --git a/target/src/cx16-update.klog b/target/src/cx16-update.klog index a60831f..445da4b 100644 --- a/target/src/cx16-update.klog +++ b/target/src/cx16-update.klog @@ -15,10 +15,10 @@ Basic-segment: $0801-$080c Basic Code-segment: - $080d-$4e91 Code + $080d-$4f2f Code Data-segment: - $4e92-$688b Data + $4f30-$693a Data Writing Vice symbol file: cx16-update.vs Writing Symbol file: cx16-update.sym diff --git a/target/src/cx16-update.prg b/target/src/cx16-update.prg index 5a0cc51..5b45c4a 100644 Binary files a/target/src/cx16-update.prg and b/target/src/cx16-update.prg differ