mirror of
https://gitlab.com/camelot/kickc.git
synced 2024-06-02 00:41:42 +00:00
6126 lines
359 KiB
Plaintext
6126 lines
359 KiB
Plaintext
Fixing struct type size struct printf_buffer_number to 12
|
|
Fixing struct type size struct printf_buffer_number to 12
|
|
Fixing struct type size struct printf_buffer_number to 12
|
|
Fixing struct type SIZE_OF struct printf_buffer_number to 12
|
|
Fixing struct type SIZE_OF struct printf_buffer_number to 12
|
|
Setting inferred __stackcall on procedure affected by address-of __stackcall void cputc(char c) caused by statement call printf_sint(&cputc, test_casting::signed_short_value, { 0, 0, 0, 0, 0, DECIMAL })
|
|
Setting inferred __stackcall on procedure affected by address-of __stackcall void cputc(char c) caused by statement call printf_str(&cputc, "
|
|
")
|
|
Adding parameter assignment in __stackcall procedure cputc::c = param(cputc::c)
|
|
Added struct type cast to parameter value list call printf_sint(&cputc, test_casting::signed_short_value, (struct printf_format_number){ 0, 0, 0, 0, 0, DECIMAL })
|
|
Inlined call vicSelectGfxBank::$0 = call toDd00(vicSelectGfxBank::gfx)
|
|
Inlined call call __init
|
|
Eliminating unused variable with no statement gotoxy::$4
|
|
Eliminating unused variable with no statement memcpy::$0
|
|
Eliminating unused variable with no statement memset::$2
|
|
Eliminating unused variable with no statement test_casting::$0
|
|
Calling convention STACK_CALL adding prepare/execute/finalize for call *printf_str::putc printf_str::c
|
|
Calling convention STACK_CALL adding prepare/execute/finalize for call *printf_padding::putc printf_padding::pad
|
|
Calling convention STACK_CALL adding prepare/execute/finalize for call *printf_number_buffer::putc printf_number_buffer::buffer_sign
|
|
Calling convention STACK_CALL replacing param(cputc::c) with stackidx(char,cputc::OFFSET_STACK_C)
|
|
Calling convention STACK_CALL adding stack push stackpush(char) = printf_str::c
|
|
Calling convention STACK_CALL adding stack push stackpush(char) = printf_padding::pad
|
|
Calling convention STACK_CALL adding stack push stackpush(char) = printf_number_buffer::buffer_sign
|
|
|
|
CONTROL FLOW GRAPH SSA
|
|
|
|
void clrscr()
|
|
clrscr: scope:[clrscr] from main
|
|
clrscr::line_text#0 = DEFAULT_SCREEN
|
|
clrscr::line_cols#0 = COLORRAM
|
|
clrscr::l#0 = 0
|
|
to:clrscr::@1
|
|
clrscr::@1: scope:[clrscr] from clrscr clrscr::@6
|
|
clrscr::line_cols#6 = phi( clrscr/clrscr::line_cols#0, clrscr::@6/clrscr::line_cols#1 )
|
|
clrscr::line_text#6 = phi( clrscr/clrscr::line_text#0, clrscr::@6/clrscr::line_text#1 )
|
|
clrscr::l#2 = phi( clrscr/clrscr::l#0, clrscr::@6/clrscr::l#1 )
|
|
clrscr::$0 = clrscr::l#2 < $19
|
|
if(clrscr::$0) goto clrscr::@2
|
|
to:clrscr::@3
|
|
clrscr::@2: scope:[clrscr] from clrscr::@1
|
|
clrscr::l#5 = phi( clrscr::@1/clrscr::l#2 )
|
|
clrscr::line_cols#5 = phi( clrscr::@1/clrscr::line_cols#6 )
|
|
clrscr::line_text#5 = phi( clrscr::@1/clrscr::line_text#6 )
|
|
clrscr::c#0 = 0
|
|
to:clrscr::@4
|
|
clrscr::@3: scope:[clrscr] from clrscr::@1
|
|
conio_cursor_x = 0
|
|
conio_cursor_y = 0
|
|
conio_line_text = DEFAULT_SCREEN
|
|
conio_line_color = COLORRAM
|
|
to:clrscr::@return
|
|
clrscr::@4: scope:[clrscr] from clrscr::@2 clrscr::@5
|
|
clrscr::l#4 = phi( clrscr::@2/clrscr::l#5, clrscr::@5/clrscr::l#6 )
|
|
clrscr::line_cols#4 = phi( clrscr::@2/clrscr::line_cols#5, clrscr::@5/clrscr::line_cols#2 )
|
|
clrscr::line_text#4 = phi( clrscr::@2/clrscr::line_text#5, clrscr::@5/clrscr::line_text#2 )
|
|
clrscr::c#2 = phi( clrscr::@2/clrscr::c#0, clrscr::@5/clrscr::c#1 )
|
|
clrscr::$1 = clrscr::c#2 < $28
|
|
if(clrscr::$1) goto clrscr::@5
|
|
to:clrscr::@6
|
|
clrscr::@5: scope:[clrscr] from clrscr::@4
|
|
clrscr::l#6 = phi( clrscr::@4/clrscr::l#4 )
|
|
clrscr::line_cols#2 = phi( clrscr::@4/clrscr::line_cols#4 )
|
|
clrscr::c#3 = phi( clrscr::@4/clrscr::c#2 )
|
|
clrscr::line_text#2 = phi( clrscr::@4/clrscr::line_text#4 )
|
|
clrscr::line_text#2[clrscr::c#3] = ' '
|
|
clrscr::line_cols#2[clrscr::c#3] = conio_textcolor
|
|
clrscr::c#1 = ++ clrscr::c#3
|
|
to:clrscr::@4
|
|
clrscr::@6: scope:[clrscr] from clrscr::@4
|
|
clrscr::l#3 = phi( clrscr::@4/clrscr::l#4 )
|
|
clrscr::line_cols#3 = phi( clrscr::@4/clrscr::line_cols#4 )
|
|
clrscr::line_text#3 = phi( clrscr::@4/clrscr::line_text#4 )
|
|
clrscr::line_text#1 = clrscr::line_text#3 + $28
|
|
clrscr::line_cols#1 = clrscr::line_cols#3 + $28
|
|
clrscr::l#1 = ++ clrscr::l#3
|
|
to:clrscr::@1
|
|
clrscr::@return: scope:[clrscr] from clrscr::@3
|
|
return
|
|
to:@return
|
|
|
|
void gotoxy(char x , char y)
|
|
gotoxy: scope:[gotoxy] from conio_c64_init::@1 cscroll::@2
|
|
gotoxy::x#5 = phi( conio_c64_init::@1/gotoxy::x#2, cscroll::@2/gotoxy::x#1 )
|
|
gotoxy::y#3 = phi( conio_c64_init::@1/gotoxy::y#2, cscroll::@2/gotoxy::y#1 )
|
|
gotoxy::$0 = gotoxy::y#3 > $19
|
|
gotoxy::$1 = ! gotoxy::$0
|
|
if(gotoxy::$1) goto gotoxy::@1
|
|
to:gotoxy::@3
|
|
gotoxy::@1: scope:[gotoxy] from gotoxy gotoxy::@3
|
|
gotoxy::y#5 = phi( gotoxy/gotoxy::y#3, gotoxy::@3/gotoxy::y#0 )
|
|
gotoxy::x#3 = phi( gotoxy/gotoxy::x#5, gotoxy::@3/gotoxy::x#6 )
|
|
gotoxy::$2 = gotoxy::x#3 >= $28
|
|
gotoxy::$3 = ! gotoxy::$2
|
|
if(gotoxy::$3) goto gotoxy::@2
|
|
to:gotoxy::@4
|
|
gotoxy::@3: scope:[gotoxy] from gotoxy
|
|
gotoxy::x#6 = phi( gotoxy/gotoxy::x#5 )
|
|
gotoxy::y#0 = 0
|
|
to:gotoxy::@1
|
|
gotoxy::@2: scope:[gotoxy] from gotoxy::@1 gotoxy::@4
|
|
gotoxy::y#4 = phi( gotoxy::@1/gotoxy::y#5, gotoxy::@4/gotoxy::y#6 )
|
|
gotoxy::x#4 = phi( gotoxy::@1/gotoxy::x#3, gotoxy::@4/gotoxy::x#0 )
|
|
conio_cursor_x = gotoxy::x#4
|
|
conio_cursor_y = gotoxy::y#4
|
|
gotoxy::$7 = (unsigned int)gotoxy::y#4
|
|
gotoxy::line_offset#0 = gotoxy::$7 * $28
|
|
gotoxy::$5 = DEFAULT_SCREEN + gotoxy::line_offset#0
|
|
conio_line_text = gotoxy::$5
|
|
gotoxy::$6 = COLORRAM + gotoxy::line_offset#0
|
|
conio_line_color = gotoxy::$6
|
|
to:gotoxy::@return
|
|
gotoxy::@4: scope:[gotoxy] from gotoxy::@1
|
|
gotoxy::y#6 = phi( gotoxy::@1/gotoxy::y#5 )
|
|
gotoxy::x#0 = 0
|
|
to:gotoxy::@2
|
|
gotoxy::@return: scope:[gotoxy] from gotoxy::@2
|
|
return
|
|
to:@return
|
|
|
|
__stackcall void cputc(char c)
|
|
cputc: scope:[cputc] from
|
|
cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C)
|
|
cputc::$0 = cputc::c#0 == '
|
|
'
|
|
if(cputc::$0) goto cputc::@1
|
|
to:cputc::@2
|
|
cputc::@1: scope:[cputc] from cputc
|
|
call cputln
|
|
to:cputc::@4
|
|
cputc::@4: scope:[cputc] from cputc::@1
|
|
to:cputc::@return
|
|
cputc::@2: scope:[cputc] from cputc
|
|
cputc::c#1 = phi( cputc/cputc::c#0 )
|
|
conio_line_text[conio_cursor_x] = cputc::c#1
|
|
conio_line_color[conio_cursor_x] = conio_textcolor
|
|
conio_cursor_x = ++ conio_cursor_x
|
|
cputc::$1 = conio_cursor_x == $28
|
|
cputc::$2 = ! cputc::$1
|
|
if(cputc::$2) goto cputc::@return
|
|
to:cputc::@3
|
|
cputc::@3: scope:[cputc] from cputc::@2
|
|
call cputln
|
|
to:cputc::@5
|
|
cputc::@5: scope:[cputc] from cputc::@3
|
|
to:cputc::@return
|
|
cputc::@return: scope:[cputc] from cputc::@2 cputc::@4 cputc::@5
|
|
return
|
|
to:@return
|
|
|
|
void cputln()
|
|
cputln: scope:[cputln] from cputc::@1 cputc::@3
|
|
conio_line_text = conio_line_text + $28
|
|
conio_line_color = conio_line_color + $28
|
|
conio_cursor_x = 0
|
|
conio_cursor_y = ++ conio_cursor_y
|
|
call cscroll
|
|
to:cputln::@1
|
|
cputln::@1: scope:[cputln] from cputln
|
|
to:cputln::@return
|
|
cputln::@return: scope:[cputln] from cputln::@1
|
|
return
|
|
to:@return
|
|
|
|
void * memcpy(void *destination , void *source , unsigned int num)
|
|
memcpy: scope:[memcpy] from cscroll::@3 cscroll::@4
|
|
memcpy::num#2 = phi( cscroll::@3/memcpy::num#0, cscroll::@4/memcpy::num#1 )
|
|
memcpy::destination#2 = phi( cscroll::@3/memcpy::destination#0, cscroll::@4/memcpy::destination#1 )
|
|
memcpy::source#2 = phi( cscroll::@3/memcpy::source#0, cscroll::@4/memcpy::source#1 )
|
|
memcpy::src#0 = ((char *)) memcpy::source#2
|
|
memcpy::dst#0 = ((char *)) memcpy::destination#2
|
|
memcpy::$2 = (char *)memcpy::source#2
|
|
memcpy::src_end#0 = memcpy::$2 + memcpy::num#2
|
|
to:memcpy::@1
|
|
memcpy::@1: scope:[memcpy] from memcpy memcpy::@2
|
|
memcpy::destination#4 = phi( memcpy/memcpy::destination#2, memcpy::@2/memcpy::destination#5 )
|
|
memcpy::dst#3 = phi( memcpy/memcpy::dst#0, memcpy::@2/memcpy::dst#1 )
|
|
memcpy::src_end#1 = phi( memcpy/memcpy::src_end#0, memcpy::@2/memcpy::src_end#2 )
|
|
memcpy::src#2 = phi( memcpy/memcpy::src#0, memcpy::@2/memcpy::src#1 )
|
|
memcpy::$1 = memcpy::src#2 != memcpy::src_end#1
|
|
if(memcpy::$1) goto memcpy::@2
|
|
to:memcpy::@3
|
|
memcpy::@2: scope:[memcpy] from memcpy::@1
|
|
memcpy::destination#5 = phi( memcpy::@1/memcpy::destination#4 )
|
|
memcpy::src_end#2 = phi( memcpy::@1/memcpy::src_end#1 )
|
|
memcpy::dst#2 = phi( memcpy::@1/memcpy::dst#3 )
|
|
memcpy::src#3 = phi( memcpy::@1/memcpy::src#2 )
|
|
*memcpy::dst#2 = *memcpy::src#3
|
|
memcpy::dst#1 = ++ memcpy::dst#2
|
|
memcpy::src#1 = ++ memcpy::src#3
|
|
to:memcpy::@1
|
|
memcpy::@3: scope:[memcpy] from memcpy::@1
|
|
memcpy::destination#3 = phi( memcpy::@1/memcpy::destination#4 )
|
|
memcpy::return#0 = memcpy::destination#3
|
|
to:memcpy::@return
|
|
memcpy::@return: scope:[memcpy] from memcpy::@3
|
|
memcpy::return#4 = phi( memcpy::@3/memcpy::return#0 )
|
|
memcpy::return#1 = memcpy::return#4
|
|
return
|
|
to:@return
|
|
|
|
void * memset(void *str , char c , unsigned int num)
|
|
memset: scope:[memset] from cscroll::@5 cscroll::@6
|
|
memset::c#5 = phi( cscroll::@5/memset::c#0, cscroll::@6/memset::c#1 )
|
|
memset::str#4 = phi( cscroll::@5/memset::str#0, cscroll::@6/memset::str#1 )
|
|
memset::num#2 = phi( cscroll::@5/memset::num#0, cscroll::@6/memset::num#1 )
|
|
memset::$0 = memset::num#2 > 0
|
|
memset::$1 = ! memset::$0
|
|
if(memset::$1) goto memset::@1
|
|
to:memset::@2
|
|
memset::@1: scope:[memset] from memset memset::@3
|
|
memset::str#2 = phi( memset/memset::str#4, memset::@3/memset::str#5 )
|
|
memset::return#0 = memset::str#2
|
|
to:memset::@return
|
|
memset::@2: scope:[memset] from memset
|
|
memset::c#4 = phi( memset/memset::c#5 )
|
|
memset::num#3 = phi( memset/memset::num#2 )
|
|
memset::str#3 = phi( memset/memset::str#4 )
|
|
memset::$4 = (char *)memset::str#3
|
|
memset::end#0 = memset::$4 + memset::num#3
|
|
memset::dst#0 = ((char *)) memset::str#3
|
|
to:memset::@3
|
|
memset::@3: scope:[memset] from memset::@2 memset::@4
|
|
memset::c#3 = phi( memset::@2/memset::c#4, memset::@4/memset::c#2 )
|
|
memset::str#5 = phi( memset::@2/memset::str#3, memset::@4/memset::str#6 )
|
|
memset::end#1 = phi( memset::@2/memset::end#0, memset::@4/memset::end#2 )
|
|
memset::dst#2 = phi( memset::@2/memset::dst#0, memset::@4/memset::dst#1 )
|
|
memset::$3 = memset::dst#2 != memset::end#1
|
|
if(memset::$3) goto memset::@4
|
|
to:memset::@1
|
|
memset::@4: scope:[memset] from memset::@3
|
|
memset::str#6 = phi( memset::@3/memset::str#5 )
|
|
memset::end#2 = phi( memset::@3/memset::end#1 )
|
|
memset::dst#3 = phi( memset::@3/memset::dst#2 )
|
|
memset::c#2 = phi( memset::@3/memset::c#3 )
|
|
*memset::dst#3 = memset::c#2
|
|
memset::dst#1 = ++ memset::dst#3
|
|
to:memset::@3
|
|
memset::@return: scope:[memset] from memset::@1
|
|
memset::return#4 = phi( memset::@1/memset::return#0 )
|
|
memset::return#1 = memset::return#4
|
|
return
|
|
to:@return
|
|
|
|
unsigned int strlen(char *str)
|
|
strlen: scope:[strlen] from printf_number_buffer::@6
|
|
strlen::str#4 = phi( printf_number_buffer::@6/strlen::str#1 )
|
|
strlen::len#0 = 0
|
|
to:strlen::@1
|
|
strlen::@1: scope:[strlen] from strlen strlen::@2
|
|
strlen::len#4 = phi( strlen/strlen::len#0, strlen::@2/strlen::len#1 )
|
|
strlen::str#2 = phi( strlen/strlen::str#4, strlen::@2/strlen::str#0 )
|
|
strlen::$0 = 0 != *strlen::str#2
|
|
if(strlen::$0) goto strlen::@2
|
|
to:strlen::@3
|
|
strlen::@2: scope:[strlen] from strlen::@1
|
|
strlen::str#3 = phi( strlen::@1/strlen::str#2 )
|
|
strlen::len#2 = phi( strlen::@1/strlen::len#4 )
|
|
strlen::len#1 = ++ strlen::len#2
|
|
strlen::str#0 = ++ strlen::str#3
|
|
to:strlen::@1
|
|
strlen::@3: scope:[strlen] from strlen::@1
|
|
strlen::len#3 = phi( strlen::@1/strlen::len#4 )
|
|
strlen::return#0 = strlen::len#3
|
|
to:strlen::@return
|
|
strlen::@return: scope:[strlen] from strlen::@3
|
|
strlen::return#3 = phi( strlen::@3/strlen::return#0 )
|
|
strlen::return#1 = strlen::return#3
|
|
return
|
|
to:@return
|
|
|
|
char toupper(char ch)
|
|
toupper: scope:[toupper] from strupr::@2
|
|
toupper::ch#1 = phi( strupr::@2/toupper::ch#0 )
|
|
toupper::$0 = toupper::ch#1 >= 'a'
|
|
toupper::$1 = toupper::ch#1 <= 'z'
|
|
toupper::$2 = toupper::$0 && toupper::$1
|
|
if(toupper::$2) goto toupper::@1
|
|
to:toupper::@2
|
|
toupper::@1: scope:[toupper] from toupper
|
|
toupper::ch#2 = phi( toupper/toupper::ch#1 )
|
|
toupper::$3 = toupper::ch#2 + 'A'-'a'
|
|
toupper::return#0 = toupper::$3
|
|
to:toupper::@return
|
|
toupper::@2: scope:[toupper] from toupper
|
|
toupper::ch#3 = phi( toupper/toupper::ch#1 )
|
|
toupper::return#1 = toupper::ch#3
|
|
to:toupper::@return
|
|
toupper::@return: scope:[toupper] from toupper::@1 toupper::@2
|
|
toupper::return#4 = phi( toupper::@1/toupper::return#0, toupper::@2/toupper::return#1 )
|
|
toupper::return#2 = toupper::return#4
|
|
return
|
|
to:@return
|
|
|
|
char * strupr(char *str)
|
|
strupr: scope:[strupr] from printf_number_buffer::@11
|
|
strupr::str#1 = phi( printf_number_buffer::@11/strupr::str#0 )
|
|
strupr::src#0 = strupr::str#1
|
|
to:strupr::@1
|
|
strupr::@1: scope:[strupr] from strupr strupr::@4
|
|
strupr::str#3 = phi( strupr/strupr::str#1, strupr::@4/strupr::str#4 )
|
|
strupr::src#2 = phi( strupr/strupr::src#0, strupr::@4/strupr::src#1 )
|
|
strupr::$1 = 0 != *strupr::src#2
|
|
if(strupr::$1) goto strupr::@2
|
|
to:strupr::@3
|
|
strupr::@2: scope:[strupr] from strupr::@1
|
|
strupr::str#5 = phi( strupr::@1/strupr::str#3 )
|
|
strupr::src#3 = phi( strupr::@1/strupr::src#2 )
|
|
toupper::ch#0 = *strupr::src#3
|
|
call toupper
|
|
toupper::return#3 = toupper::return#2
|
|
to:strupr::@4
|
|
strupr::@4: scope:[strupr] from strupr::@2
|
|
strupr::str#4 = phi( strupr::@2/strupr::str#5 )
|
|
strupr::src#4 = phi( strupr::@2/strupr::src#3 )
|
|
toupper::return#5 = phi( strupr::@2/toupper::return#3 )
|
|
strupr::$0 = toupper::return#5
|
|
*strupr::src#4 = strupr::$0
|
|
strupr::src#1 = ++ strupr::src#4
|
|
to:strupr::@1
|
|
strupr::@3: scope:[strupr] from strupr::@1
|
|
strupr::str#2 = phi( strupr::@1/strupr::str#3 )
|
|
strupr::return#0 = strupr::str#2
|
|
to:strupr::@return
|
|
strupr::@return: scope:[strupr] from strupr::@3
|
|
strupr::return#3 = phi( strupr::@3/strupr::return#0 )
|
|
strupr::return#1 = strupr::return#3
|
|
return
|
|
to:@return
|
|
|
|
void cscroll()
|
|
cscroll: scope:[cscroll] from cputln
|
|
cscroll::$0 = conio_cursor_y == $19
|
|
cscroll::$1 = ! cscroll::$0
|
|
if(cscroll::$1) goto cscroll::@return
|
|
to:cscroll::@1
|
|
cscroll::@1: scope:[cscroll] from cscroll
|
|
cscroll::$7 = 0 != conio_scroll_enable
|
|
if(cscroll::$7) goto cscroll::@3
|
|
to:cscroll::@2
|
|
cscroll::@3: scope:[cscroll] from cscroll::@1
|
|
memcpy::destination#0 = (void *)DEFAULT_SCREEN
|
|
memcpy::source#0 = (void *)DEFAULT_SCREEN+$28
|
|
memcpy::num#0 = $19*$28-$28
|
|
call memcpy
|
|
memcpy::return#2 = memcpy::return#1
|
|
to:cscroll::@4
|
|
cscroll::@4: scope:[cscroll] from cscroll::@3
|
|
memcpy::destination#1 = (void *)COLORRAM
|
|
memcpy::source#1 = (void *)COLORRAM+$28
|
|
memcpy::num#1 = $19*$28-$28
|
|
call memcpy
|
|
memcpy::return#3 = memcpy::return#1
|
|
to:cscroll::@5
|
|
cscroll::@5: scope:[cscroll] from cscroll::@4
|
|
memset::str#0 = (void *)DEFAULT_SCREEN+$19*$28-$28
|
|
memset::c#0 = ' '
|
|
memset::num#0 = $28
|
|
call memset
|
|
memset::return#2 = memset::return#1
|
|
to:cscroll::@6
|
|
cscroll::@6: scope:[cscroll] from cscroll::@5
|
|
memset::str#1 = (void *)COLORRAM+$19*$28-$28
|
|
memset::c#1 = conio_textcolor
|
|
memset::num#1 = $28
|
|
call memset
|
|
memset::return#3 = memset::return#1
|
|
to:cscroll::@7
|
|
cscroll::@7: scope:[cscroll] from cscroll::@6
|
|
conio_line_text = conio_line_text - $28
|
|
conio_line_color = conio_line_color - $28
|
|
conio_cursor_y = -- conio_cursor_y
|
|
to:cscroll::@return
|
|
cscroll::@2: scope:[cscroll] from cscroll::@1
|
|
gotoxy::x#1 = 0
|
|
gotoxy::y#1 = 0
|
|
call gotoxy
|
|
to:cscroll::@8
|
|
cscroll::@8: scope:[cscroll] from cscroll::@2
|
|
to:cscroll::@return
|
|
cscroll::@return: scope:[cscroll] from cscroll cscroll::@7 cscroll::@8
|
|
return
|
|
to:@return
|
|
|
|
void conio_c64_init()
|
|
conio_c64_init: scope:[conio_c64_init] from __start::__init1
|
|
conio_c64_init::line#0 = *conio_c64_init::BASIC_CURSOR_LINE
|
|
conio_c64_init::$0 = conio_c64_init::line#0 >= $19
|
|
conio_c64_init::$1 = ! conio_c64_init::$0
|
|
if(conio_c64_init::$1) goto conio_c64_init::@1
|
|
to:conio_c64_init::@2
|
|
conio_c64_init::@1: scope:[conio_c64_init] from conio_c64_init conio_c64_init::@2
|
|
conio_c64_init::line#2 = phi( conio_c64_init/conio_c64_init::line#0, conio_c64_init::@2/conio_c64_init::line#1 )
|
|
gotoxy::x#2 = 0
|
|
gotoxy::y#2 = conio_c64_init::line#2
|
|
call gotoxy
|
|
to:conio_c64_init::@3
|
|
conio_c64_init::@3: scope:[conio_c64_init] from conio_c64_init::@1
|
|
to:conio_c64_init::@return
|
|
conio_c64_init::@2: scope:[conio_c64_init] from conio_c64_init
|
|
conio_c64_init::line#1 = $19-1
|
|
to:conio_c64_init::@1
|
|
conio_c64_init::@return: scope:[conio_c64_init] from conio_c64_init::@3
|
|
return
|
|
to:@return
|
|
|
|
void utoa(unsigned int value , char *buffer , char radix)
|
|
utoa: scope:[utoa] from printf_sint::@2
|
|
utoa::buffer#21 = phi( printf_sint::@2/utoa::buffer#5 )
|
|
utoa::value#12 = phi( printf_sint::@2/utoa::value#1 )
|
|
utoa::radix#1 = phi( printf_sint::@2/utoa::radix#0 )
|
|
utoa::max_digits#0 = 0
|
|
utoa::digit_values#0 = (unsigned int *) 0
|
|
utoa::$0 = utoa::radix#1 == DECIMAL
|
|
if(utoa::$0) goto utoa::@1
|
|
to:utoa::@6
|
|
utoa::@1: scope:[utoa] from utoa
|
|
utoa::buffer#17 = phi( utoa/utoa::buffer#21 )
|
|
utoa::value#8 = phi( utoa/utoa::value#12 )
|
|
utoa::max_digits#1 = 5
|
|
utoa::digit_values#1 = RADIX_DECIMAL_VALUES
|
|
to:utoa::@5
|
|
utoa::@6: scope:[utoa] from utoa
|
|
utoa::value#13 = phi( utoa/utoa::value#12 )
|
|
utoa::buffer#16 = phi( utoa/utoa::buffer#21 )
|
|
utoa::radix#2 = phi( utoa/utoa::radix#1 )
|
|
utoa::$1 = utoa::radix#2 == HEXADECIMAL
|
|
if(utoa::$1) goto utoa::@2
|
|
to:utoa::@7
|
|
utoa::@2: scope:[utoa] from utoa::@6
|
|
utoa::buffer#18 = phi( utoa::@6/utoa::buffer#16 )
|
|
utoa::value#9 = phi( utoa::@6/utoa::value#13 )
|
|
utoa::max_digits#2 = 4
|
|
utoa::digit_values#2 = RADIX_HEXADECIMAL_VALUES
|
|
to:utoa::@5
|
|
utoa::@7: scope:[utoa] from utoa::@6
|
|
utoa::value#14 = phi( utoa::@6/utoa::value#13 )
|
|
utoa::buffer#13 = phi( utoa::@6/utoa::buffer#16 )
|
|
utoa::radix#3 = phi( utoa::@6/utoa::radix#2 )
|
|
utoa::$2 = utoa::radix#3 == OCTAL
|
|
if(utoa::$2) goto utoa::@3
|
|
to:utoa::@8
|
|
utoa::@3: scope:[utoa] from utoa::@7
|
|
utoa::buffer#19 = phi( utoa::@7/utoa::buffer#13 )
|
|
utoa::value#10 = phi( utoa::@7/utoa::value#14 )
|
|
utoa::max_digits#3 = 6
|
|
utoa::digit_values#3 = RADIX_OCTAL_VALUES
|
|
to:utoa::@5
|
|
utoa::@8: scope:[utoa] from utoa::@7
|
|
utoa::value#15 = phi( utoa::@7/utoa::value#14 )
|
|
utoa::buffer#10 = phi( utoa::@7/utoa::buffer#13 )
|
|
utoa::radix#4 = phi( utoa::@7/utoa::radix#3 )
|
|
utoa::$3 = utoa::radix#4 == BINARY
|
|
if(utoa::$3) goto utoa::@4
|
|
to:utoa::@9
|
|
utoa::@4: scope:[utoa] from utoa::@8
|
|
utoa::buffer#20 = phi( utoa::@8/utoa::buffer#10 )
|
|
utoa::value#11 = phi( utoa::@8/utoa::value#15 )
|
|
utoa::max_digits#4 = $10
|
|
utoa::digit_values#4 = RADIX_BINARY_VALUES
|
|
to:utoa::@5
|
|
utoa::@9: scope:[utoa] from utoa::@8
|
|
utoa::buffer#6 = phi( utoa::@8/utoa::buffer#10 )
|
|
*utoa::buffer#6 = 'e'
|
|
utoa::buffer#0 = ++ utoa::buffer#6
|
|
*utoa::buffer#0 = 'r'
|
|
utoa::buffer#1 = ++ utoa::buffer#0
|
|
*utoa::buffer#1 = 'r'
|
|
utoa::buffer#2 = ++ utoa::buffer#1
|
|
*utoa::buffer#2 = 0
|
|
to:utoa::@return
|
|
utoa::@return: scope:[utoa] from utoa::@12 utoa::@9
|
|
return
|
|
to:@return
|
|
utoa::@5: scope:[utoa] from utoa::@1 utoa::@2 utoa::@3 utoa::@4
|
|
utoa::buffer#15 = phi( utoa::@1/utoa::buffer#17, utoa::@2/utoa::buffer#18, utoa::@3/utoa::buffer#19, utoa::@4/utoa::buffer#20 )
|
|
utoa::value#7 = phi( utoa::@1/utoa::value#8, utoa::@2/utoa::value#9, utoa::@3/utoa::value#10, utoa::@4/utoa::value#11 )
|
|
utoa::digit_values#8 = phi( utoa::@1/utoa::digit_values#1, utoa::@2/utoa::digit_values#2, utoa::@3/utoa::digit_values#3, utoa::@4/utoa::digit_values#4 )
|
|
utoa::max_digits#7 = phi( utoa::@1/utoa::max_digits#1, utoa::@2/utoa::max_digits#2, utoa::@3/utoa::max_digits#3, utoa::@4/utoa::max_digits#4 )
|
|
utoa::started#0 = 0
|
|
utoa::digit#0 = 0
|
|
to:utoa::@10
|
|
utoa::@10: scope:[utoa] from utoa::@13 utoa::@5
|
|
utoa::buffer#11 = phi( utoa::@13/utoa::buffer#14, utoa::@5/utoa::buffer#15 )
|
|
utoa::started#3 = phi( utoa::@13/utoa::started#4, utoa::@5/utoa::started#0 )
|
|
utoa::value#5 = phi( utoa::@13/utoa::value#6, utoa::@5/utoa::value#7 )
|
|
utoa::digit_values#6 = phi( utoa::@13/utoa::digit_values#7, utoa::@5/utoa::digit_values#8 )
|
|
utoa::digit#2 = phi( utoa::@13/utoa::digit#1, utoa::@5/utoa::digit#0 )
|
|
utoa::max_digits#5 = phi( utoa::@13/utoa::max_digits#6, utoa::@5/utoa::max_digits#7 )
|
|
utoa::$4 = utoa::max_digits#5 - 1
|
|
utoa::$5 = utoa::digit#2 < utoa::$4
|
|
if(utoa::$5) goto utoa::@11
|
|
to:utoa::@12
|
|
utoa::@11: scope:[utoa] from utoa::@10
|
|
utoa::max_digits#8 = phi( utoa::@10/utoa::max_digits#5 )
|
|
utoa::buffer#12 = phi( utoa::@10/utoa::buffer#11 )
|
|
utoa::started#2 = phi( utoa::@10/utoa::started#3 )
|
|
utoa::value#2 = phi( utoa::@10/utoa::value#5 )
|
|
utoa::digit_values#5 = phi( utoa::@10/utoa::digit_values#6 )
|
|
utoa::digit#3 = phi( utoa::@10/utoa::digit#2 )
|
|
utoa::$10 = utoa::digit#3 * SIZEOF_UNSIGNED_INT
|
|
utoa::digit_value#0 = utoa::digit_values#5[utoa::$10]
|
|
utoa::$6 = utoa::value#2 >= utoa::digit_value#0
|
|
utoa::$7 = utoa::started#2 || utoa::$6
|
|
utoa::$8 = ! utoa::$7
|
|
if(utoa::$8) goto utoa::@13
|
|
to:utoa::@14
|
|
utoa::@12: scope:[utoa] from utoa::@10
|
|
utoa::buffer#7 = phi( utoa::@10/utoa::buffer#11 )
|
|
utoa::value#3 = phi( utoa::@10/utoa::value#5 )
|
|
utoa::$11 = (char)utoa::value#3
|
|
*utoa::buffer#7 = DIGITS[utoa::$11]
|
|
utoa::buffer#3 = ++ utoa::buffer#7
|
|
*utoa::buffer#3 = 0
|
|
to:utoa::@return
|
|
utoa::@13: scope:[utoa] from utoa::@11 utoa::@15
|
|
utoa::buffer#14 = phi( utoa::@11/utoa::buffer#12, utoa::@15/utoa::buffer#4 )
|
|
utoa::started#4 = phi( utoa::@11/utoa::started#2, utoa::@15/utoa::started#1 )
|
|
utoa::value#6 = phi( utoa::@11/utoa::value#2, utoa::@15/utoa::value#0 )
|
|
utoa::digit_values#7 = phi( utoa::@11/utoa::digit_values#5, utoa::@15/utoa::digit_values#9 )
|
|
utoa::max_digits#6 = phi( utoa::@11/utoa::max_digits#8, utoa::@15/utoa::max_digits#9 )
|
|
utoa::digit#4 = phi( utoa::@11/utoa::digit#3, utoa::@15/utoa::digit#5 )
|
|
utoa::digit#1 = ++ utoa::digit#4
|
|
to:utoa::@10
|
|
utoa::@14: scope:[utoa] from utoa::@11
|
|
utoa::digit_values#10 = phi( utoa::@11/utoa::digit_values#5 )
|
|
utoa::max_digits#10 = phi( utoa::@11/utoa::max_digits#8 )
|
|
utoa::digit#6 = phi( utoa::@11/utoa::digit#3 )
|
|
utoa::digit_value#1 = phi( utoa::@11/utoa::digit_value#0 )
|
|
utoa::value#4 = phi( utoa::@11/utoa::value#2 )
|
|
utoa::buffer#8 = phi( utoa::@11/utoa::buffer#12 )
|
|
utoa_append::buffer#0 = utoa::buffer#8
|
|
utoa_append::value#0 = utoa::value#4
|
|
utoa_append::sub#0 = utoa::digit_value#1
|
|
call utoa_append
|
|
utoa_append::return#0 = utoa_append::return#2
|
|
to:utoa::@15
|
|
utoa::@15: scope:[utoa] from utoa::@14
|
|
utoa::digit_values#9 = phi( utoa::@14/utoa::digit_values#10 )
|
|
utoa::max_digits#9 = phi( utoa::@14/utoa::max_digits#10 )
|
|
utoa::digit#5 = phi( utoa::@14/utoa::digit#6 )
|
|
utoa::buffer#9 = phi( utoa::@14/utoa::buffer#8 )
|
|
utoa_append::return#3 = phi( utoa::@14/utoa_append::return#0 )
|
|
utoa::$9 = utoa_append::return#3
|
|
utoa::value#0 = utoa::$9
|
|
utoa::buffer#4 = ++ utoa::buffer#9
|
|
utoa::started#1 = 1
|
|
to:utoa::@13
|
|
|
|
unsigned int utoa_append(char *buffer , unsigned int value , unsigned int sub)
|
|
utoa_append: scope:[utoa_append] from utoa::@14
|
|
utoa_append::buffer#3 = phi( utoa::@14/utoa_append::buffer#0 )
|
|
utoa_append::sub#3 = phi( utoa::@14/utoa_append::sub#0 )
|
|
utoa_append::value#5 = phi( utoa::@14/utoa_append::value#0 )
|
|
utoa_append::digit#0 = 0
|
|
to:utoa_append::@1
|
|
utoa_append::@1: scope:[utoa_append] from utoa_append utoa_append::@2
|
|
utoa_append::buffer#2 = phi( utoa_append/utoa_append::buffer#3, utoa_append::@2/utoa_append::buffer#4 )
|
|
utoa_append::digit#4 = phi( utoa_append/utoa_append::digit#0, utoa_append::@2/utoa_append::digit#1 )
|
|
utoa_append::sub#1 = phi( utoa_append/utoa_append::sub#3, utoa_append::@2/utoa_append::sub#2 )
|
|
utoa_append::value#2 = phi( utoa_append/utoa_append::value#5, utoa_append::@2/utoa_append::value#1 )
|
|
utoa_append::$0 = utoa_append::value#2 >= utoa_append::sub#1
|
|
if(utoa_append::$0) goto utoa_append::@2
|
|
to:utoa_append::@3
|
|
utoa_append::@2: scope:[utoa_append] from utoa_append::@1
|
|
utoa_append::buffer#4 = phi( utoa_append::@1/utoa_append::buffer#2 )
|
|
utoa_append::sub#2 = phi( utoa_append::@1/utoa_append::sub#1 )
|
|
utoa_append::value#3 = phi( utoa_append::@1/utoa_append::value#2 )
|
|
utoa_append::digit#2 = phi( utoa_append::@1/utoa_append::digit#4 )
|
|
utoa_append::digit#1 = ++ utoa_append::digit#2
|
|
utoa_append::value#1 = utoa_append::value#3 - utoa_append::sub#2
|
|
to:utoa_append::@1
|
|
utoa_append::@3: scope:[utoa_append] from utoa_append::@1
|
|
utoa_append::value#4 = phi( utoa_append::@1/utoa_append::value#2 )
|
|
utoa_append::buffer#1 = phi( utoa_append::@1/utoa_append::buffer#2 )
|
|
utoa_append::digit#3 = phi( utoa_append::@1/utoa_append::digit#4 )
|
|
*utoa_append::buffer#1 = DIGITS[utoa_append::digit#3]
|
|
utoa_append::return#1 = utoa_append::value#4
|
|
to:utoa_append::@return
|
|
utoa_append::@return: scope:[utoa_append] from utoa_append::@3
|
|
utoa_append::return#4 = phi( utoa_append::@3/utoa_append::return#1 )
|
|
utoa_append::return#2 = utoa_append::return#4
|
|
return
|
|
to:@return
|
|
|
|
void printf_str(void (*putc)(char) , const char *s)
|
|
printf_str: scope:[printf_str] from printf_number_buffer::@5 test_casting::@1
|
|
printf_str::putc#4 = phi( printf_number_buffer::@5/printf_str::putc#0, test_casting::@1/printf_str::putc#1 )
|
|
printf_str::s#4 = phi( printf_number_buffer::@5/printf_str::s#1, test_casting::@1/printf_str::s#2 )
|
|
printf_str::c#0 = 0
|
|
to:printf_str::@1
|
|
printf_str::@1: scope:[printf_str] from printf_str printf_str::@2
|
|
printf_str::putc#3 = phi( printf_str/printf_str::putc#4, printf_str::@2/printf_str::putc#2 )
|
|
printf_str::s#3 = phi( printf_str/printf_str::s#4, printf_str::@2/printf_str::s#5 )
|
|
printf_str::c#1 = *printf_str::s#3
|
|
printf_str::$0 = printf_str::c#1
|
|
printf_str::s#0 = ++ printf_str::s#3
|
|
printf_str::$2 = 0 != printf_str::$0
|
|
if(printf_str::$2) goto printf_str::@2
|
|
to:printf_str::@return
|
|
printf_str::@2: scope:[printf_str] from printf_str::@1
|
|
printf_str::s#5 = phi( printf_str::@1/printf_str::s#0 )
|
|
printf_str::putc#2 = phi( printf_str::@1/printf_str::putc#3 )
|
|
printf_str::c#2 = phi( printf_str::@1/printf_str::c#1 )
|
|
stackpush(char) = printf_str::c#2
|
|
callexecute *printf_str::putc#2
|
|
sideeffect stackpullpadding(1)
|
|
to:printf_str::@1
|
|
printf_str::@return: scope:[printf_str] from printf_str::@1
|
|
return
|
|
to:@return
|
|
|
|
void printf_padding(void (*putc)(char) , char pad , char length)
|
|
printf_padding: scope:[printf_padding] from printf_number_buffer::@10 printf_number_buffer::@12 printf_number_buffer::@8
|
|
printf_padding::putc#5 = phi( printf_number_buffer::@10/printf_padding::putc#1, printf_number_buffer::@12/printf_padding::putc#2, printf_number_buffer::@8/printf_padding::putc#0 )
|
|
printf_padding::pad#5 = phi( printf_number_buffer::@10/printf_padding::pad#1, printf_number_buffer::@12/printf_padding::pad#2, printf_number_buffer::@8/printf_padding::pad#0 )
|
|
printf_padding::length#4 = phi( printf_number_buffer::@10/printf_padding::length#1, printf_number_buffer::@12/printf_padding::length#2, printf_number_buffer::@8/printf_padding::length#0 )
|
|
printf_padding::i#0 = 0
|
|
to:printf_padding::@1
|
|
printf_padding::@1: scope:[printf_padding] from printf_padding printf_padding::@3
|
|
printf_padding::putc#4 = phi( printf_padding/printf_padding::putc#5, printf_padding::@3/printf_padding::putc#6 )
|
|
printf_padding::pad#4 = phi( printf_padding/printf_padding::pad#5, printf_padding::@3/printf_padding::pad#6 )
|
|
printf_padding::length#3 = phi( printf_padding/printf_padding::length#4, printf_padding::@3/printf_padding::length#5 )
|
|
printf_padding::i#2 = phi( printf_padding/printf_padding::i#0, printf_padding::@3/printf_padding::i#1 )
|
|
printf_padding::$0 = printf_padding::i#2 < printf_padding::length#3
|
|
if(printf_padding::$0) goto printf_padding::@2
|
|
to:printf_padding::@return
|
|
printf_padding::@2: scope:[printf_padding] from printf_padding::@1
|
|
printf_padding::length#6 = phi( printf_padding::@1/printf_padding::length#3 )
|
|
printf_padding::i#4 = phi( printf_padding::@1/printf_padding::i#2 )
|
|
printf_padding::putc#3 = phi( printf_padding::@1/printf_padding::putc#4 )
|
|
printf_padding::pad#3 = phi( printf_padding::@1/printf_padding::pad#4 )
|
|
stackpush(char) = printf_padding::pad#3
|
|
callexecute *printf_padding::putc#3
|
|
sideeffect stackpullpadding(1)
|
|
to:printf_padding::@3
|
|
printf_padding::@3: scope:[printf_padding] from printf_padding::@2
|
|
printf_padding::putc#6 = phi( printf_padding::@2/printf_padding::putc#3 )
|
|
printf_padding::pad#6 = phi( printf_padding::@2/printf_padding::pad#3 )
|
|
printf_padding::length#5 = phi( printf_padding::@2/printf_padding::length#6 )
|
|
printf_padding::i#3 = phi( printf_padding::@2/printf_padding::i#4 )
|
|
printf_padding::i#1 = ++ printf_padding::i#3
|
|
to:printf_padding::@1
|
|
printf_padding::@return: scope:[printf_padding] from printf_padding::@1
|
|
return
|
|
to:@return
|
|
|
|
void printf_sint(void (*putc)(char) , int value , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
printf_sint: scope:[printf_sint] from test_casting
|
|
printf_sint::format_upper_case#6 = phi( test_casting/printf_sint::format_upper_case#0 )
|
|
printf_sint::format_zero_padding#6 = phi( test_casting/printf_sint::format_zero_padding#0 )
|
|
printf_sint::format_justify_left#6 = phi( test_casting/printf_sint::format_justify_left#0 )
|
|
printf_sint::format_min_length#6 = phi( test_casting/printf_sint::format_min_length#0 )
|
|
printf_sint::putc#6 = phi( test_casting/printf_sint::putc#0 )
|
|
printf_sint::format_radix#6 = phi( test_casting/printf_sint::format_radix#0 )
|
|
printf_sint::format_sign_always#3 = phi( test_casting/printf_sint::format_sign_always#0 )
|
|
printf_sint::value#2 = phi( test_casting/printf_sint::value#1 )
|
|
*((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = 0
|
|
printf_sint::$0 = printf_sint::value#2 < 0
|
|
if(printf_sint::$0) goto printf_sint::@1
|
|
to:printf_sint::@3
|
|
printf_sint::@1: scope:[printf_sint] from printf_sint
|
|
printf_sint::format_upper_case#3 = phi( printf_sint/printf_sint::format_upper_case#6 )
|
|
printf_sint::format_zero_padding#3 = phi( printf_sint/printf_sint::format_zero_padding#6 )
|
|
printf_sint::format_sign_always#5 = phi( printf_sint/printf_sint::format_sign_always#3 )
|
|
printf_sint::format_justify_left#3 = phi( printf_sint/printf_sint::format_justify_left#6 )
|
|
printf_sint::format_min_length#3 = phi( printf_sint/printf_sint::format_min_length#6 )
|
|
printf_sint::putc#3 = phi( printf_sint/printf_sint::putc#6 )
|
|
printf_sint::format_radix#3 = phi( printf_sint/printf_sint::format_radix#6 )
|
|
printf_sint::value#3 = phi( printf_sint/printf_sint::value#2 )
|
|
printf_sint::$4 = - printf_sint::value#3
|
|
printf_sint::value#0 = printf_sint::$4
|
|
*((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = '-'
|
|
to:printf_sint::@2
|
|
printf_sint::@3: scope:[printf_sint] from printf_sint
|
|
printf_sint::format_upper_case#4 = phi( printf_sint/printf_sint::format_upper_case#6 )
|
|
printf_sint::format_zero_padding#4 = phi( printf_sint/printf_sint::format_zero_padding#6 )
|
|
printf_sint::format_justify_left#4 = phi( printf_sint/printf_sint::format_justify_left#6 )
|
|
printf_sint::format_min_length#4 = phi( printf_sint/printf_sint::format_min_length#6 )
|
|
printf_sint::putc#4 = phi( printf_sint/printf_sint::putc#6 )
|
|
printf_sint::format_radix#4 = phi( printf_sint/printf_sint::format_radix#6 )
|
|
printf_sint::value#5 = phi( printf_sint/printf_sint::value#2 )
|
|
printf_sint::format_sign_always#1 = phi( printf_sint/printf_sint::format_sign_always#3 )
|
|
printf_sint::$5 = 0 != printf_sint::format_sign_always#1
|
|
printf_sint::$3 = ! printf_sint::$5
|
|
if(printf_sint::$3) goto printf_sint::@2
|
|
to:printf_sint::@4
|
|
printf_sint::@4: scope:[printf_sint] from printf_sint::@3
|
|
printf_sint::format_upper_case#5 = phi( printf_sint::@3/printf_sint::format_upper_case#4 )
|
|
printf_sint::format_zero_padding#5 = phi( printf_sint::@3/printf_sint::format_zero_padding#4 )
|
|
printf_sint::format_sign_always#6 = phi( printf_sint::@3/printf_sint::format_sign_always#1 )
|
|
printf_sint::format_justify_left#5 = phi( printf_sint::@3/printf_sint::format_justify_left#4 )
|
|
printf_sint::format_min_length#5 = phi( printf_sint::@3/printf_sint::format_min_length#4 )
|
|
printf_sint::putc#5 = phi( printf_sint::@3/printf_sint::putc#4 )
|
|
printf_sint::format_radix#5 = phi( printf_sint::@3/printf_sint::format_radix#4 )
|
|
printf_sint::value#6 = phi( printf_sint::@3/printf_sint::value#5 )
|
|
*((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = '+'
|
|
to:printf_sint::@2
|
|
printf_sint::@2: scope:[printf_sint] from printf_sint::@1 printf_sint::@3 printf_sint::@4
|
|
printf_sint::format_upper_case#2 = phi( printf_sint::@1/printf_sint::format_upper_case#3, printf_sint::@3/printf_sint::format_upper_case#4, printf_sint::@4/printf_sint::format_upper_case#5 )
|
|
printf_sint::format_zero_padding#2 = phi( printf_sint::@1/printf_sint::format_zero_padding#3, printf_sint::@3/printf_sint::format_zero_padding#4, printf_sint::@4/printf_sint::format_zero_padding#5 )
|
|
printf_sint::format_sign_always#4 = phi( printf_sint::@1/printf_sint::format_sign_always#5, printf_sint::@3/printf_sint::format_sign_always#1, printf_sint::@4/printf_sint::format_sign_always#6 )
|
|
printf_sint::format_justify_left#2 = phi( printf_sint::@1/printf_sint::format_justify_left#3, printf_sint::@3/printf_sint::format_justify_left#4, printf_sint::@4/printf_sint::format_justify_left#5 )
|
|
printf_sint::format_min_length#2 = phi( printf_sint::@1/printf_sint::format_min_length#3, printf_sint::@3/printf_sint::format_min_length#4, printf_sint::@4/printf_sint::format_min_length#5 )
|
|
printf_sint::putc#2 = phi( printf_sint::@1/printf_sint::putc#3, printf_sint::@3/printf_sint::putc#4, printf_sint::@4/printf_sint::putc#5 )
|
|
printf_sint::format_radix#1 = phi( printf_sint::@1/printf_sint::format_radix#3, printf_sint::@3/printf_sint::format_radix#4, printf_sint::@4/printf_sint::format_radix#5 )
|
|
printf_sint::value#4 = phi( printf_sint::@1/printf_sint::value#0, printf_sint::@3/printf_sint::value#5, printf_sint::@4/printf_sint::value#6 )
|
|
printf_sint::uvalue#0 = (unsigned int)printf_sint::value#4
|
|
utoa::value#1 = printf_sint::uvalue#0
|
|
utoa::buffer#5 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
utoa::radix#0 = printf_sint::format_radix#1
|
|
call utoa
|
|
to:printf_sint::@5
|
|
printf_sint::@5: scope:[printf_sint] from printf_sint::@2
|
|
printf_sint::format_radix#2 = phi( printf_sint::@2/printf_sint::format_radix#1 )
|
|
printf_sint::format_upper_case#1 = phi( printf_sint::@2/printf_sint::format_upper_case#2 )
|
|
printf_sint::format_zero_padding#1 = phi( printf_sint::@2/printf_sint::format_zero_padding#2 )
|
|
printf_sint::format_sign_always#2 = phi( printf_sint::@2/printf_sint::format_sign_always#4 )
|
|
printf_sint::format_justify_left#1 = phi( printf_sint::@2/printf_sint::format_justify_left#2 )
|
|
printf_sint::format_min_length#1 = phi( printf_sint::@2/printf_sint::format_min_length#2 )
|
|
printf_sint::putc#1 = phi( printf_sint::@2/printf_sint::putc#2 )
|
|
printf_number_buffer::putc#0 = printf_sint::putc#1
|
|
printf_number_buffer::buffer_sign#0 = *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN)
|
|
printf_number_buffer::buffer_digits#0 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
printf_number_buffer::format_min_length#0 = printf_sint::format_min_length#1
|
|
printf_number_buffer::format_justify_left#0 = printf_sint::format_justify_left#1
|
|
printf_number_buffer::format_sign_always#0 = printf_sint::format_sign_always#2
|
|
printf_number_buffer::format_zero_padding#0 = printf_sint::format_zero_padding#1
|
|
printf_number_buffer::format_upper_case#0 = printf_sint::format_upper_case#1
|
|
printf_number_buffer::format_radix#0 = printf_sint::format_radix#2
|
|
call printf_number_buffer
|
|
to:printf_sint::@6
|
|
printf_sint::@6: scope:[printf_sint] from printf_sint::@5
|
|
to:printf_sint::@return
|
|
printf_sint::@return: scope:[printf_sint] from printf_sint::@6
|
|
return
|
|
to:@return
|
|
|
|
void printf_number_buffer(void (*putc)(char) , char buffer_sign , char *buffer_digits , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
printf_number_buffer: scope:[printf_number_buffer] from printf_sint::@5
|
|
printf_number_buffer::format_upper_case#9 = phi( printf_sint::@5/printf_number_buffer::format_upper_case#0 )
|
|
printf_number_buffer::putc#12 = phi( printf_sint::@5/printf_number_buffer::putc#0 )
|
|
printf_number_buffer::buffer_sign#7 = phi( printf_sint::@5/printf_number_buffer::buffer_sign#0 )
|
|
printf_number_buffer::buffer_digits#4 = phi( printf_sint::@5/printf_number_buffer::buffer_digits#0 )
|
|
printf_number_buffer::format_zero_padding#4 = phi( printf_sint::@5/printf_number_buffer::format_zero_padding#0 )
|
|
printf_number_buffer::format_justify_left#3 = phi( printf_sint::@5/printf_number_buffer::format_justify_left#0 )
|
|
printf_number_buffer::format_min_length#1 = phi( printf_sint::@5/printf_number_buffer::format_min_length#0 )
|
|
printf_number_buffer::padding#0 = 0
|
|
printf_number_buffer::$26 = 0 != printf_number_buffer::format_min_length#1
|
|
printf_number_buffer::$0 = ! printf_number_buffer::$26
|
|
if(printf_number_buffer::$0) goto printf_number_buffer::@1
|
|
to:printf_number_buffer::@6
|
|
printf_number_buffer::@1: scope:[printf_number_buffer] from printf_number_buffer printf_number_buffer::@13 printf_number_buffer::@14
|
|
printf_number_buffer::buffer_digits#12 = phi( printf_number_buffer/printf_number_buffer::buffer_digits#4, printf_number_buffer::@13/printf_number_buffer::buffer_digits#14, printf_number_buffer::@14/printf_number_buffer::buffer_digits#15 )
|
|
printf_number_buffer::format_upper_case#7 = phi( printf_number_buffer/printf_number_buffer::format_upper_case#9, printf_number_buffer::@13/printf_number_buffer::format_upper_case#10, printf_number_buffer::@14/printf_number_buffer::format_upper_case#11 )
|
|
printf_number_buffer::putc#6 = phi( printf_number_buffer/printf_number_buffer::putc#12, printf_number_buffer::@13/printf_number_buffer::putc#13, printf_number_buffer::@14/printf_number_buffer::putc#14 )
|
|
printf_number_buffer::buffer_sign#5 = phi( printf_number_buffer/printf_number_buffer::buffer_sign#7, printf_number_buffer::@13/printf_number_buffer::buffer_sign#8, printf_number_buffer::@14/printf_number_buffer::buffer_sign#9 )
|
|
printf_number_buffer::padding#3 = phi( printf_number_buffer/printf_number_buffer::padding#0, printf_number_buffer::@13/printf_number_buffer::padding#1, printf_number_buffer::@14/printf_number_buffer::padding#2 )
|
|
printf_number_buffer::format_zero_padding#1 = phi( printf_number_buffer/printf_number_buffer::format_zero_padding#4, printf_number_buffer::@13/printf_number_buffer::format_zero_padding#5, printf_number_buffer::@14/printf_number_buffer::format_zero_padding#6 )
|
|
printf_number_buffer::format_justify_left#1 = phi( printf_number_buffer/printf_number_buffer::format_justify_left#3, printf_number_buffer::@13/printf_number_buffer::format_justify_left#4, printf_number_buffer::@14/printf_number_buffer::format_justify_left#5 )
|
|
printf_number_buffer::$27 = 0 != printf_number_buffer::format_justify_left#1
|
|
printf_number_buffer::$1 = ! printf_number_buffer::$27
|
|
printf_number_buffer::$28 = 0 != printf_number_buffer::format_zero_padding#1
|
|
printf_number_buffer::$2 = ! printf_number_buffer::$28
|
|
printf_number_buffer::$3 = printf_number_buffer::$1 && printf_number_buffer::$2
|
|
printf_number_buffer::$4 = printf_number_buffer::$3 && printf_number_buffer::padding#3
|
|
printf_number_buffer::$5 = ! printf_number_buffer::$4
|
|
if(printf_number_buffer::$5) goto printf_number_buffer::@2
|
|
to:printf_number_buffer::@8
|
|
printf_number_buffer::@6: scope:[printf_number_buffer] from printf_number_buffer
|
|
printf_number_buffer::format_upper_case#15 = phi( printf_number_buffer/printf_number_buffer::format_upper_case#9 )
|
|
printf_number_buffer::putc#20 = phi( printf_number_buffer/printf_number_buffer::putc#12 )
|
|
printf_number_buffer::format_zero_padding#15 = phi( printf_number_buffer/printf_number_buffer::format_zero_padding#4 )
|
|
printf_number_buffer::format_justify_left#11 = phi( printf_number_buffer/printf_number_buffer::format_justify_left#3 )
|
|
printf_number_buffer::format_min_length#5 = phi( printf_number_buffer/printf_number_buffer::format_min_length#1 )
|
|
printf_number_buffer::buffer_sign#4 = phi( printf_number_buffer/printf_number_buffer::buffer_sign#7 )
|
|
printf_number_buffer::buffer_digits#1 = phi( printf_number_buffer/printf_number_buffer::buffer_digits#4 )
|
|
strlen::str#1 = printf_number_buffer::buffer_digits#1
|
|
call strlen
|
|
strlen::return#2 = strlen::return#1
|
|
to:printf_number_buffer::@15
|
|
printf_number_buffer::@15: scope:[printf_number_buffer] from printf_number_buffer::@6
|
|
printf_number_buffer::buffer_digits#17 = phi( printf_number_buffer::@6/printf_number_buffer::buffer_digits#1 )
|
|
printf_number_buffer::format_upper_case#13 = phi( printf_number_buffer::@6/printf_number_buffer::format_upper_case#15 )
|
|
printf_number_buffer::putc#18 = phi( printf_number_buffer::@6/printf_number_buffer::putc#20 )
|
|
printf_number_buffer::format_zero_padding#10 = phi( printf_number_buffer::@6/printf_number_buffer::format_zero_padding#15 )
|
|
printf_number_buffer::format_justify_left#7 = phi( printf_number_buffer::@6/printf_number_buffer::format_justify_left#11 )
|
|
printf_number_buffer::format_min_length#3 = phi( printf_number_buffer::@6/printf_number_buffer::format_min_length#5 )
|
|
printf_number_buffer::buffer_sign#1 = phi( printf_number_buffer::@6/printf_number_buffer::buffer_sign#4 )
|
|
strlen::return#4 = phi( printf_number_buffer::@6/strlen::return#2 )
|
|
printf_number_buffer::$19 = strlen::return#4
|
|
printf_number_buffer::len#0 = (signed char)printf_number_buffer::$19
|
|
printf_number_buffer::$29 = 0 != printf_number_buffer::buffer_sign#1
|
|
printf_number_buffer::$20 = ! printf_number_buffer::$29
|
|
if(printf_number_buffer::$20) goto printf_number_buffer::@13
|
|
to:printf_number_buffer::@7
|
|
printf_number_buffer::@13: scope:[printf_number_buffer] from printf_number_buffer::@15 printf_number_buffer::@7
|
|
printf_number_buffer::buffer_digits#14 = phi( printf_number_buffer::@15/printf_number_buffer::buffer_digits#17, printf_number_buffer::@7/printf_number_buffer::buffer_digits#18 )
|
|
printf_number_buffer::format_upper_case#10 = phi( printf_number_buffer::@15/printf_number_buffer::format_upper_case#13, printf_number_buffer::@7/printf_number_buffer::format_upper_case#14 )
|
|
printf_number_buffer::putc#13 = phi( printf_number_buffer::@15/printf_number_buffer::putc#18, printf_number_buffer::@7/printf_number_buffer::putc#19 )
|
|
printf_number_buffer::buffer_sign#8 = phi( printf_number_buffer::@15/printf_number_buffer::buffer_sign#1, printf_number_buffer::@7/printf_number_buffer::buffer_sign#11 )
|
|
printf_number_buffer::format_zero_padding#5 = phi( printf_number_buffer::@15/printf_number_buffer::format_zero_padding#10, printf_number_buffer::@7/printf_number_buffer::format_zero_padding#11 )
|
|
printf_number_buffer::format_justify_left#4 = phi( printf_number_buffer::@15/printf_number_buffer::format_justify_left#7, printf_number_buffer::@7/printf_number_buffer::format_justify_left#8 )
|
|
printf_number_buffer::len#2 = phi( printf_number_buffer::@15/printf_number_buffer::len#0, printf_number_buffer::@7/printf_number_buffer::len#1 )
|
|
printf_number_buffer::format_min_length#2 = phi( printf_number_buffer::@15/printf_number_buffer::format_min_length#3, printf_number_buffer::@7/printf_number_buffer::format_min_length#4 )
|
|
printf_number_buffer::$25 = (signed char)printf_number_buffer::format_min_length#2
|
|
printf_number_buffer::$21 = printf_number_buffer::$25 - printf_number_buffer::len#2
|
|
printf_number_buffer::padding#1 = printf_number_buffer::$21
|
|
printf_number_buffer::$22 = printf_number_buffer::padding#1 < 0
|
|
printf_number_buffer::$23 = ! printf_number_buffer::$22
|
|
if(printf_number_buffer::$23) goto printf_number_buffer::@1
|
|
to:printf_number_buffer::@14
|
|
printf_number_buffer::@7: scope:[printf_number_buffer] from printf_number_buffer::@15
|
|
printf_number_buffer::buffer_digits#18 = phi( printf_number_buffer::@15/printf_number_buffer::buffer_digits#17 )
|
|
printf_number_buffer::format_upper_case#14 = phi( printf_number_buffer::@15/printf_number_buffer::format_upper_case#13 )
|
|
printf_number_buffer::putc#19 = phi( printf_number_buffer::@15/printf_number_buffer::putc#18 )
|
|
printf_number_buffer::buffer_sign#11 = phi( printf_number_buffer::@15/printf_number_buffer::buffer_sign#1 )
|
|
printf_number_buffer::format_zero_padding#11 = phi( printf_number_buffer::@15/printf_number_buffer::format_zero_padding#10 )
|
|
printf_number_buffer::format_justify_left#8 = phi( printf_number_buffer::@15/printf_number_buffer::format_justify_left#7 )
|
|
printf_number_buffer::format_min_length#4 = phi( printf_number_buffer::@15/printf_number_buffer::format_min_length#3 )
|
|
printf_number_buffer::len#3 = phi( printf_number_buffer::@15/printf_number_buffer::len#0 )
|
|
printf_number_buffer::len#1 = ++ printf_number_buffer::len#3
|
|
to:printf_number_buffer::@13
|
|
printf_number_buffer::@14: scope:[printf_number_buffer] from printf_number_buffer::@13
|
|
printf_number_buffer::buffer_digits#15 = phi( printf_number_buffer::@13/printf_number_buffer::buffer_digits#14 )
|
|
printf_number_buffer::format_upper_case#11 = phi( printf_number_buffer::@13/printf_number_buffer::format_upper_case#10 )
|
|
printf_number_buffer::putc#14 = phi( printf_number_buffer::@13/printf_number_buffer::putc#13 )
|
|
printf_number_buffer::buffer_sign#9 = phi( printf_number_buffer::@13/printf_number_buffer::buffer_sign#8 )
|
|
printf_number_buffer::format_zero_padding#6 = phi( printf_number_buffer::@13/printf_number_buffer::format_zero_padding#5 )
|
|
printf_number_buffer::format_justify_left#5 = phi( printf_number_buffer::@13/printf_number_buffer::format_justify_left#4 )
|
|
printf_number_buffer::padding#2 = 0
|
|
to:printf_number_buffer::@1
|
|
printf_number_buffer::@2: scope:[printf_number_buffer] from printf_number_buffer::@1 printf_number_buffer::@16
|
|
printf_number_buffer::format_justify_left#15 = phi( printf_number_buffer::@1/printf_number_buffer::format_justify_left#1, printf_number_buffer::@16/printf_number_buffer::format_justify_left#18 )
|
|
printf_number_buffer::buffer_digits#9 = phi( printf_number_buffer::@1/printf_number_buffer::buffer_digits#12, printf_number_buffer::@16/printf_number_buffer::buffer_digits#13 )
|
|
printf_number_buffer::format_upper_case#4 = phi( printf_number_buffer::@1/printf_number_buffer::format_upper_case#7, printf_number_buffer::@16/printf_number_buffer::format_upper_case#8 )
|
|
printf_number_buffer::putc#7 = phi( printf_number_buffer::@1/printf_number_buffer::putc#6, printf_number_buffer::@16/printf_number_buffer::putc#15 )
|
|
printf_number_buffer::padding#9 = phi( printf_number_buffer::@1/printf_number_buffer::padding#3, printf_number_buffer::@16/printf_number_buffer::padding#12 )
|
|
printf_number_buffer::format_zero_padding#7 = phi( printf_number_buffer::@1/printf_number_buffer::format_zero_padding#1, printf_number_buffer::@16/printf_number_buffer::format_zero_padding#12 )
|
|
printf_number_buffer::buffer_sign#2 = phi( printf_number_buffer::@1/printf_number_buffer::buffer_sign#5, printf_number_buffer::@16/printf_number_buffer::buffer_sign#6 )
|
|
printf_number_buffer::$30 = 0 != printf_number_buffer::buffer_sign#2
|
|
printf_number_buffer::$7 = ! printf_number_buffer::$30
|
|
if(printf_number_buffer::$7) goto printf_number_buffer::@3
|
|
to:printf_number_buffer::@9
|
|
printf_number_buffer::@8: scope:[printf_number_buffer] from printf_number_buffer::@1
|
|
printf_number_buffer::format_justify_left#19 = phi( printf_number_buffer::@1/printf_number_buffer::format_justify_left#1 )
|
|
printf_number_buffer::buffer_digits#16 = phi( printf_number_buffer::@1/printf_number_buffer::buffer_digits#12 )
|
|
printf_number_buffer::format_upper_case#12 = phi( printf_number_buffer::@1/printf_number_buffer::format_upper_case#7 )
|
|
printf_number_buffer::format_zero_padding#16 = phi( printf_number_buffer::@1/printf_number_buffer::format_zero_padding#1 )
|
|
printf_number_buffer::buffer_sign#10 = phi( printf_number_buffer::@1/printf_number_buffer::buffer_sign#5 )
|
|
printf_number_buffer::padding#4 = phi( printf_number_buffer::@1/printf_number_buffer::padding#3 )
|
|
printf_number_buffer::putc#1 = phi( printf_number_buffer::@1/printf_number_buffer::putc#6 )
|
|
printf_padding::putc#0 = printf_number_buffer::putc#1
|
|
printf_padding::pad#0 = ' '
|
|
printf_padding::length#0 = (char)printf_number_buffer::padding#4
|
|
call printf_padding
|
|
to:printf_number_buffer::@16
|
|
printf_number_buffer::@16: scope:[printf_number_buffer] from printf_number_buffer::@8
|
|
printf_number_buffer::format_justify_left#18 = phi( printf_number_buffer::@8/printf_number_buffer::format_justify_left#19 )
|
|
printf_number_buffer::buffer_digits#13 = phi( printf_number_buffer::@8/printf_number_buffer::buffer_digits#16 )
|
|
printf_number_buffer::format_upper_case#8 = phi( printf_number_buffer::@8/printf_number_buffer::format_upper_case#12 )
|
|
printf_number_buffer::putc#15 = phi( printf_number_buffer::@8/printf_number_buffer::putc#1 )
|
|
printf_number_buffer::padding#12 = phi( printf_number_buffer::@8/printf_number_buffer::padding#4 )
|
|
printf_number_buffer::format_zero_padding#12 = phi( printf_number_buffer::@8/printf_number_buffer::format_zero_padding#16 )
|
|
printf_number_buffer::buffer_sign#6 = phi( printf_number_buffer::@8/printf_number_buffer::buffer_sign#10 )
|
|
to:printf_number_buffer::@2
|
|
printf_number_buffer::@3: scope:[printf_number_buffer] from printf_number_buffer::@2 printf_number_buffer::@9
|
|
printf_number_buffer::format_justify_left#13 = phi( printf_number_buffer::@2/printf_number_buffer::format_justify_left#15, printf_number_buffer::@9/printf_number_buffer::format_justify_left#16 )
|
|
printf_number_buffer::buffer_digits#8 = phi( printf_number_buffer::@2/printf_number_buffer::buffer_digits#9, printf_number_buffer::@9/printf_number_buffer::buffer_digits#10 )
|
|
printf_number_buffer::putc#8 = phi( printf_number_buffer::@2/printf_number_buffer::putc#7, printf_number_buffer::@9/printf_number_buffer::putc#2 )
|
|
printf_number_buffer::format_upper_case#3 = phi( printf_number_buffer::@2/printf_number_buffer::format_upper_case#4, printf_number_buffer::@9/printf_number_buffer::format_upper_case#5 )
|
|
printf_number_buffer::padding#5 = phi( printf_number_buffer::@2/printf_number_buffer::padding#9, printf_number_buffer::@9/printf_number_buffer::padding#10 )
|
|
printf_number_buffer::format_zero_padding#2 = phi( printf_number_buffer::@2/printf_number_buffer::format_zero_padding#7, printf_number_buffer::@9/printf_number_buffer::format_zero_padding#8 )
|
|
printf_number_buffer::$9 = printf_number_buffer::format_zero_padding#2 && printf_number_buffer::padding#5
|
|
printf_number_buffer::$10 = ! printf_number_buffer::$9
|
|
if(printf_number_buffer::$10) goto printf_number_buffer::@4
|
|
to:printf_number_buffer::@10
|
|
printf_number_buffer::@9: scope:[printf_number_buffer] from printf_number_buffer::@2
|
|
printf_number_buffer::format_justify_left#16 = phi( printf_number_buffer::@2/printf_number_buffer::format_justify_left#15 )
|
|
printf_number_buffer::buffer_digits#10 = phi( printf_number_buffer::@2/printf_number_buffer::buffer_digits#9 )
|
|
printf_number_buffer::format_upper_case#5 = phi( printf_number_buffer::@2/printf_number_buffer::format_upper_case#4 )
|
|
printf_number_buffer::padding#10 = phi( printf_number_buffer::@2/printf_number_buffer::padding#9 )
|
|
printf_number_buffer::format_zero_padding#8 = phi( printf_number_buffer::@2/printf_number_buffer::format_zero_padding#7 )
|
|
printf_number_buffer::putc#2 = phi( printf_number_buffer::@2/printf_number_buffer::putc#7 )
|
|
printf_number_buffer::buffer_sign#3 = phi( printf_number_buffer::@2/printf_number_buffer::buffer_sign#2 )
|
|
stackpush(char) = printf_number_buffer::buffer_sign#3
|
|
callexecute *printf_number_buffer::putc#2
|
|
sideeffect stackpullpadding(1)
|
|
to:printf_number_buffer::@3
|
|
printf_number_buffer::@4: scope:[printf_number_buffer] from printf_number_buffer::@17 printf_number_buffer::@3
|
|
printf_number_buffer::padding#14 = phi( printf_number_buffer::@17/printf_number_buffer::padding#15, printf_number_buffer::@3/printf_number_buffer::padding#5 )
|
|
printf_number_buffer::format_justify_left#10 = phi( printf_number_buffer::@17/printf_number_buffer::format_justify_left#12, printf_number_buffer::@3/printf_number_buffer::format_justify_left#13 )
|
|
printf_number_buffer::format_zero_padding#14 = phi( printf_number_buffer::@17/printf_number_buffer::format_zero_padding#17, printf_number_buffer::@3/printf_number_buffer::format_zero_padding#2 )
|
|
printf_number_buffer::buffer_digits#6 = phi( printf_number_buffer::@17/printf_number_buffer::buffer_digits#7, printf_number_buffer::@3/printf_number_buffer::buffer_digits#8 )
|
|
printf_number_buffer::putc#10 = phi( printf_number_buffer::@17/printf_number_buffer::putc#16, printf_number_buffer::@3/printf_number_buffer::putc#8 )
|
|
printf_number_buffer::format_upper_case#1 = phi( printf_number_buffer::@17/printf_number_buffer::format_upper_case#2, printf_number_buffer::@3/printf_number_buffer::format_upper_case#3 )
|
|
printf_number_buffer::$31 = 0 != printf_number_buffer::format_upper_case#1
|
|
printf_number_buffer::$12 = ! printf_number_buffer::$31
|
|
if(printf_number_buffer::$12) goto printf_number_buffer::@5
|
|
to:printf_number_buffer::@11
|
|
printf_number_buffer::@10: scope:[printf_number_buffer] from printf_number_buffer::@3
|
|
printf_number_buffer::format_justify_left#17 = phi( printf_number_buffer::@3/printf_number_buffer::format_justify_left#13 )
|
|
printf_number_buffer::format_zero_padding#19 = phi( printf_number_buffer::@3/printf_number_buffer::format_zero_padding#2 )
|
|
printf_number_buffer::buffer_digits#11 = phi( printf_number_buffer::@3/printf_number_buffer::buffer_digits#8 )
|
|
printf_number_buffer::format_upper_case#6 = phi( printf_number_buffer::@3/printf_number_buffer::format_upper_case#3 )
|
|
printf_number_buffer::padding#6 = phi( printf_number_buffer::@3/printf_number_buffer::padding#5 )
|
|
printf_number_buffer::putc#3 = phi( printf_number_buffer::@3/printf_number_buffer::putc#8 )
|
|
printf_padding::putc#1 = printf_number_buffer::putc#3
|
|
printf_padding::pad#1 = '0'
|
|
printf_padding::length#1 = (char)printf_number_buffer::padding#6
|
|
call printf_padding
|
|
to:printf_number_buffer::@17
|
|
printf_number_buffer::@17: scope:[printf_number_buffer] from printf_number_buffer::@10
|
|
printf_number_buffer::padding#15 = phi( printf_number_buffer::@10/printf_number_buffer::padding#6 )
|
|
printf_number_buffer::format_justify_left#12 = phi( printf_number_buffer::@10/printf_number_buffer::format_justify_left#17 )
|
|
printf_number_buffer::format_zero_padding#17 = phi( printf_number_buffer::@10/printf_number_buffer::format_zero_padding#19 )
|
|
printf_number_buffer::buffer_digits#7 = phi( printf_number_buffer::@10/printf_number_buffer::buffer_digits#11 )
|
|
printf_number_buffer::putc#16 = phi( printf_number_buffer::@10/printf_number_buffer::putc#3 )
|
|
printf_number_buffer::format_upper_case#2 = phi( printf_number_buffer::@10/printf_number_buffer::format_upper_case#6 )
|
|
to:printf_number_buffer::@4
|
|
printf_number_buffer::@5: scope:[printf_number_buffer] from printf_number_buffer::@19 printf_number_buffer::@4
|
|
printf_number_buffer::padding#11 = phi( printf_number_buffer::@19/printf_number_buffer::padding#13, printf_number_buffer::@4/printf_number_buffer::padding#14 )
|
|
printf_number_buffer::format_justify_left#6 = phi( printf_number_buffer::@19/printf_number_buffer::format_justify_left#9, printf_number_buffer::@4/printf_number_buffer::format_justify_left#10 )
|
|
printf_number_buffer::format_zero_padding#9 = phi( printf_number_buffer::@19/printf_number_buffer::format_zero_padding#13, printf_number_buffer::@4/printf_number_buffer::format_zero_padding#14 )
|
|
printf_number_buffer::buffer_digits#2 = phi( printf_number_buffer::@19/printf_number_buffer::buffer_digits#5, printf_number_buffer::@4/printf_number_buffer::buffer_digits#6 )
|
|
printf_number_buffer::putc#4 = phi( printf_number_buffer::@19/printf_number_buffer::putc#9, printf_number_buffer::@4/printf_number_buffer::putc#10 )
|
|
printf_str::putc#0 = printf_number_buffer::putc#4
|
|
printf_str::s#1 = printf_number_buffer::buffer_digits#2
|
|
call printf_str
|
|
to:printf_number_buffer::@18
|
|
printf_number_buffer::@18: scope:[printf_number_buffer] from printf_number_buffer::@5
|
|
printf_number_buffer::putc#11 = phi( printf_number_buffer::@5/printf_number_buffer::putc#4 )
|
|
printf_number_buffer::padding#7 = phi( printf_number_buffer::@5/printf_number_buffer::padding#11 )
|
|
printf_number_buffer::format_justify_left#2 = phi( printf_number_buffer::@5/printf_number_buffer::format_justify_left#6 )
|
|
printf_number_buffer::format_zero_padding#3 = phi( printf_number_buffer::@5/printf_number_buffer::format_zero_padding#9 )
|
|
printf_number_buffer::$32 = 0 != printf_number_buffer::format_zero_padding#3
|
|
printf_number_buffer::$14 = ! printf_number_buffer::$32
|
|
printf_number_buffer::$15 = printf_number_buffer::format_justify_left#2 && printf_number_buffer::$14
|
|
printf_number_buffer::$16 = printf_number_buffer::$15 && printf_number_buffer::padding#7
|
|
printf_number_buffer::$17 = ! printf_number_buffer::$16
|
|
if(printf_number_buffer::$17) goto printf_number_buffer::@return
|
|
to:printf_number_buffer::@12
|
|
printf_number_buffer::@11: scope:[printf_number_buffer] from printf_number_buffer::@4
|
|
printf_number_buffer::padding#16 = phi( printf_number_buffer::@4/printf_number_buffer::padding#14 )
|
|
printf_number_buffer::format_justify_left#14 = phi( printf_number_buffer::@4/printf_number_buffer::format_justify_left#10 )
|
|
printf_number_buffer::format_zero_padding#18 = phi( printf_number_buffer::@4/printf_number_buffer::format_zero_padding#14 )
|
|
printf_number_buffer::putc#17 = phi( printf_number_buffer::@4/printf_number_buffer::putc#10 )
|
|
printf_number_buffer::buffer_digits#3 = phi( printf_number_buffer::@4/printf_number_buffer::buffer_digits#6 )
|
|
strupr::str#0 = printf_number_buffer::buffer_digits#3
|
|
call strupr
|
|
strupr::return#2 = strupr::return#1
|
|
to:printf_number_buffer::@19
|
|
printf_number_buffer::@19: scope:[printf_number_buffer] from printf_number_buffer::@11
|
|
printf_number_buffer::padding#13 = phi( printf_number_buffer::@11/printf_number_buffer::padding#16 )
|
|
printf_number_buffer::format_justify_left#9 = phi( printf_number_buffer::@11/printf_number_buffer::format_justify_left#14 )
|
|
printf_number_buffer::format_zero_padding#13 = phi( printf_number_buffer::@11/printf_number_buffer::format_zero_padding#18 )
|
|
printf_number_buffer::buffer_digits#5 = phi( printf_number_buffer::@11/printf_number_buffer::buffer_digits#3 )
|
|
printf_number_buffer::putc#9 = phi( printf_number_buffer::@11/printf_number_buffer::putc#17 )
|
|
to:printf_number_buffer::@5
|
|
printf_number_buffer::@12: scope:[printf_number_buffer] from printf_number_buffer::@18
|
|
printf_number_buffer::padding#8 = phi( printf_number_buffer::@18/printf_number_buffer::padding#7 )
|
|
printf_number_buffer::putc#5 = phi( printf_number_buffer::@18/printf_number_buffer::putc#11 )
|
|
printf_padding::putc#2 = printf_number_buffer::putc#5
|
|
printf_padding::pad#2 = ' '
|
|
printf_padding::length#2 = (char)printf_number_buffer::padding#8
|
|
call printf_padding
|
|
to:printf_number_buffer::@20
|
|
printf_number_buffer::@20: scope:[printf_number_buffer] from printf_number_buffer::@12
|
|
to:printf_number_buffer::@return
|
|
printf_number_buffer::@return: scope:[printf_number_buffer] from printf_number_buffer::@18 printf_number_buffer::@20
|
|
return
|
|
to:@return
|
|
|
|
void test_casting(int signed_short_value)
|
|
test_casting: scope:[test_casting] from main::@2
|
|
test_casting::signed_short_value#1 = phi( main::@2/test_casting::signed_short_value#0 )
|
|
printf_sint::putc#0 = &cputc
|
|
printf_sint::value#1 = test_casting::signed_short_value#1
|
|
printf_sint::format_min_length#0 = 0
|
|
printf_sint::format_justify_left#0 = 0
|
|
printf_sint::format_sign_always#0 = 0
|
|
printf_sint::format_zero_padding#0 = 0
|
|
printf_sint::format_upper_case#0 = 0
|
|
printf_sint::format_radix#0 = DECIMAL
|
|
call printf_sint
|
|
to:test_casting::@1
|
|
test_casting::@1: scope:[test_casting] from test_casting
|
|
printf_str::putc#1 = &cputc
|
|
printf_str::s#2 = test_casting::s
|
|
call printf_str
|
|
to:test_casting::@2
|
|
test_casting::@2: scope:[test_casting] from test_casting::@1
|
|
to:test_casting::@return
|
|
test_casting::@return: scope:[test_casting] from test_casting::@2
|
|
return
|
|
to:@return
|
|
|
|
void main()
|
|
main: scope:[main] from __start::@1
|
|
call clrscr
|
|
to:main::@3
|
|
main::@3: scope:[main] from main
|
|
main::signed_char_value#0 = -5
|
|
to:main::@1
|
|
main::@1: scope:[main] from main::@3 main::@4
|
|
main::signed_char_value#2 = phi( main::@3/main::signed_char_value#0, main::@4/main::signed_char_value#4 )
|
|
main::$1 = main::signed_char_value#2 != 0
|
|
if(main::$1) goto main::@2
|
|
to:main::@return
|
|
main::@2: scope:[main] from main::@1
|
|
main::signed_char_value#3 = phi( main::@1/main::signed_char_value#2 )
|
|
main::signed_char_value#1 = ++ main::signed_char_value#3
|
|
test_casting::signed_short_value#0 = main::signed_char_value#1
|
|
call test_casting
|
|
to:main::@4
|
|
main::@4: scope:[main] from main::@2
|
|
main::signed_char_value#4 = phi( main::@2/main::signed_char_value#1 )
|
|
to:main::@1
|
|
main::@return: scope:[main] from main::@1
|
|
return
|
|
to:@return
|
|
|
|
void __start()
|
|
__start: scope:[__start] from
|
|
to:__start::__init1
|
|
__start::__init1: scope:[__start] from __start
|
|
conio_cursor_x = 0
|
|
conio_cursor_y = 0
|
|
conio_line_text = DEFAULT_SCREEN
|
|
conio_line_color = COLORRAM
|
|
conio_textcolor = LIGHT_BLUE
|
|
conio_scroll_enable = 1
|
|
call conio_c64_init
|
|
to:__start::@2
|
|
__start::@2: scope:[__start] from __start::__init1
|
|
to:__start::@1
|
|
__start::@1: scope:[__start] from __start::@2
|
|
call main
|
|
to:__start::@3
|
|
__start::@3: scope:[__start] from __start::@1
|
|
to:__start::@return
|
|
__start::@return: scope:[__start] from __start::@3
|
|
return
|
|
to:@return
|
|
|
|
SYMBOL TABLE SSA
|
|
__constant char BINARY = 2
|
|
__constant char * const COLORRAM = (char *)$d800
|
|
__constant char DECIMAL = $a
|
|
__constant char * const DEFAULT_SCREEN = (char *)$400
|
|
__constant char DIGITS[] = "0123456789abcdef"z
|
|
__constant char HEXADECIMAL = $10
|
|
__constant const char LIGHT_BLUE = $e
|
|
__constant char OCTAL = 8
|
|
__constant char OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS = 1
|
|
__constant char OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN = 0
|
|
__constant char RADIX::BINARY = 2
|
|
__constant char RADIX::DECIMAL = $a
|
|
__constant char RADIX::HEXADECIMAL = $10
|
|
__constant char RADIX::OCTAL = 8
|
|
__constant unsigned int RADIX_BINARY_VALUES[] = { $8000, $4000, $2000, $1000, $800, $400, $200, $100, $80, $40, $20, $10, 8, 4, 2 }
|
|
__constant unsigned int RADIX_DECIMAL_VALUES[] = { $2710, $3e8, $64, $a }
|
|
__constant unsigned int RADIX_HEXADECIMAL_VALUES[] = { $1000, $100, $10 }
|
|
__constant unsigned int RADIX_OCTAL_VALUES[] = { $8000, $1000, $200, $40, 8 }
|
|
__constant char SIZEOF_UNSIGNED_INT = 2
|
|
__constant unsigned int STACK_BASE = $103
|
|
void __start()
|
|
void clrscr()
|
|
bool clrscr::$0
|
|
bool clrscr::$1
|
|
char clrscr::c
|
|
char clrscr::c#0
|
|
char clrscr::c#1
|
|
char clrscr::c#2
|
|
char clrscr::c#3
|
|
char clrscr::l
|
|
char clrscr::l#0
|
|
char clrscr::l#1
|
|
char clrscr::l#2
|
|
char clrscr::l#3
|
|
char clrscr::l#4
|
|
char clrscr::l#5
|
|
char clrscr::l#6
|
|
char *clrscr::line_cols
|
|
char *clrscr::line_cols#0
|
|
char *clrscr::line_cols#1
|
|
char *clrscr::line_cols#2
|
|
char *clrscr::line_cols#3
|
|
char *clrscr::line_cols#4
|
|
char *clrscr::line_cols#5
|
|
char *clrscr::line_cols#6
|
|
char *clrscr::line_text
|
|
char *clrscr::line_text#0
|
|
char *clrscr::line_text#1
|
|
char *clrscr::line_text#2
|
|
char *clrscr::line_text#3
|
|
char *clrscr::line_text#4
|
|
char *clrscr::line_text#5
|
|
char *clrscr::line_text#6
|
|
void conio_c64_init()
|
|
bool conio_c64_init::$0
|
|
bool conio_c64_init::$1
|
|
__constant char * const conio_c64_init::BASIC_CURSOR_LINE = (char *)$d6
|
|
char conio_c64_init::line
|
|
char conio_c64_init::line#0
|
|
char conio_c64_init::line#1
|
|
char conio_c64_init::line#2
|
|
__loadstore char conio_cursor_x
|
|
__loadstore char conio_cursor_y
|
|
__loadstore char *conio_line_color
|
|
__loadstore char *conio_line_text
|
|
__loadstore char conio_scroll_enable
|
|
__loadstore char conio_textcolor
|
|
__stackcall void cputc(char c)
|
|
bool cputc::$0
|
|
bool cputc::$1
|
|
bool cputc::$2
|
|
__constant char cputc::OFFSET_STACK_C = 0
|
|
char cputc::c
|
|
char cputc::c#0
|
|
char cputc::c#1
|
|
void cputln()
|
|
void cscroll()
|
|
bool cscroll::$0
|
|
bool cscroll::$1
|
|
bool cscroll::$7
|
|
void gotoxy(char x , char y)
|
|
bool gotoxy::$0
|
|
bool gotoxy::$1
|
|
bool gotoxy::$2
|
|
bool gotoxy::$3
|
|
char *gotoxy::$5
|
|
char *gotoxy::$6
|
|
unsigned int gotoxy::$7
|
|
unsigned int gotoxy::line_offset
|
|
unsigned int gotoxy::line_offset#0
|
|
char gotoxy::x
|
|
char gotoxy::x#0
|
|
char gotoxy::x#1
|
|
char gotoxy::x#2
|
|
char gotoxy::x#3
|
|
char gotoxy::x#4
|
|
char gotoxy::x#5
|
|
char gotoxy::x#6
|
|
char gotoxy::y
|
|
char gotoxy::y#0
|
|
char gotoxy::y#1
|
|
char gotoxy::y#2
|
|
char gotoxy::y#3
|
|
char gotoxy::y#4
|
|
char gotoxy::y#5
|
|
char gotoxy::y#6
|
|
void main()
|
|
bool main::$1
|
|
signed char main::signed_char_value
|
|
signed char main::signed_char_value#0
|
|
signed char main::signed_char_value#1
|
|
signed char main::signed_char_value#2
|
|
signed char main::signed_char_value#3
|
|
signed char main::signed_char_value#4
|
|
void * memcpy(void *destination , void *source , unsigned int num)
|
|
bool memcpy::$1
|
|
char *memcpy::$2
|
|
void *memcpy::destination
|
|
void *memcpy::destination#0
|
|
void *memcpy::destination#1
|
|
void *memcpy::destination#2
|
|
void *memcpy::destination#3
|
|
void *memcpy::destination#4
|
|
void *memcpy::destination#5
|
|
char *memcpy::dst
|
|
char *memcpy::dst#0
|
|
char *memcpy::dst#1
|
|
char *memcpy::dst#2
|
|
char *memcpy::dst#3
|
|
unsigned int memcpy::num
|
|
unsigned int memcpy::num#0
|
|
unsigned int memcpy::num#1
|
|
unsigned int memcpy::num#2
|
|
void *memcpy::return
|
|
void *memcpy::return#0
|
|
void *memcpy::return#1
|
|
void *memcpy::return#2
|
|
void *memcpy::return#3
|
|
void *memcpy::return#4
|
|
void *memcpy::source
|
|
void *memcpy::source#0
|
|
void *memcpy::source#1
|
|
void *memcpy::source#2
|
|
char *memcpy::src
|
|
char *memcpy::src#0
|
|
char *memcpy::src#1
|
|
char *memcpy::src#2
|
|
char *memcpy::src#3
|
|
char *memcpy::src_end
|
|
char *memcpy::src_end#0
|
|
char *memcpy::src_end#1
|
|
char *memcpy::src_end#2
|
|
void * memset(void *str , char c , unsigned int num)
|
|
bool memset::$0
|
|
bool memset::$1
|
|
bool memset::$3
|
|
char *memset::$4
|
|
char memset::c
|
|
char memset::c#0
|
|
char memset::c#1
|
|
char memset::c#2
|
|
char memset::c#3
|
|
char memset::c#4
|
|
char memset::c#5
|
|
char *memset::dst
|
|
char *memset::dst#0
|
|
char *memset::dst#1
|
|
char *memset::dst#2
|
|
char *memset::dst#3
|
|
char *memset::end
|
|
char *memset::end#0
|
|
char *memset::end#1
|
|
char *memset::end#2
|
|
unsigned int memset::num
|
|
unsigned int memset::num#0
|
|
unsigned int memset::num#1
|
|
unsigned int memset::num#2
|
|
unsigned int memset::num#3
|
|
void *memset::return
|
|
void *memset::return#0
|
|
void *memset::return#1
|
|
void *memset::return#2
|
|
void *memset::return#3
|
|
void *memset::return#4
|
|
void *memset::str
|
|
void *memset::str#0
|
|
void *memset::str#1
|
|
void *memset::str#2
|
|
void *memset::str#3
|
|
void *memset::str#4
|
|
void *memset::str#5
|
|
void *memset::str#6
|
|
__loadstore struct printf_buffer_number printf_buffer = {}
|
|
void printf_number_buffer(void (*putc)(char) , char buffer_sign , char *buffer_digits , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
bool printf_number_buffer::$0
|
|
bool printf_number_buffer::$1
|
|
bool printf_number_buffer::$10
|
|
bool printf_number_buffer::$12
|
|
bool printf_number_buffer::$14
|
|
bool printf_number_buffer::$15
|
|
bool printf_number_buffer::$16
|
|
bool printf_number_buffer::$17
|
|
unsigned int printf_number_buffer::$19
|
|
bool printf_number_buffer::$2
|
|
bool printf_number_buffer::$20
|
|
signed char printf_number_buffer::$21
|
|
bool printf_number_buffer::$22
|
|
bool printf_number_buffer::$23
|
|
signed char printf_number_buffer::$25
|
|
bool printf_number_buffer::$26
|
|
bool printf_number_buffer::$27
|
|
bool printf_number_buffer::$28
|
|
bool printf_number_buffer::$29
|
|
bool printf_number_buffer::$3
|
|
bool printf_number_buffer::$30
|
|
bool printf_number_buffer::$31
|
|
bool printf_number_buffer::$32
|
|
bool printf_number_buffer::$4
|
|
bool printf_number_buffer::$5
|
|
bool printf_number_buffer::$7
|
|
bool printf_number_buffer::$9
|
|
struct printf_buffer_number printf_number_buffer::buffer
|
|
char *printf_number_buffer::buffer_digits
|
|
char *printf_number_buffer::buffer_digits#0
|
|
char *printf_number_buffer::buffer_digits#1
|
|
char *printf_number_buffer::buffer_digits#10
|
|
char *printf_number_buffer::buffer_digits#11
|
|
char *printf_number_buffer::buffer_digits#12
|
|
char *printf_number_buffer::buffer_digits#13
|
|
char *printf_number_buffer::buffer_digits#14
|
|
char *printf_number_buffer::buffer_digits#15
|
|
char *printf_number_buffer::buffer_digits#16
|
|
char *printf_number_buffer::buffer_digits#17
|
|
char *printf_number_buffer::buffer_digits#18
|
|
char *printf_number_buffer::buffer_digits#2
|
|
char *printf_number_buffer::buffer_digits#3
|
|
char *printf_number_buffer::buffer_digits#4
|
|
char *printf_number_buffer::buffer_digits#5
|
|
char *printf_number_buffer::buffer_digits#6
|
|
char *printf_number_buffer::buffer_digits#7
|
|
char *printf_number_buffer::buffer_digits#8
|
|
char *printf_number_buffer::buffer_digits#9
|
|
char printf_number_buffer::buffer_sign
|
|
char printf_number_buffer::buffer_sign#0
|
|
char printf_number_buffer::buffer_sign#1
|
|
char printf_number_buffer::buffer_sign#10
|
|
char printf_number_buffer::buffer_sign#11
|
|
char printf_number_buffer::buffer_sign#2
|
|
char printf_number_buffer::buffer_sign#3
|
|
char printf_number_buffer::buffer_sign#4
|
|
char printf_number_buffer::buffer_sign#5
|
|
char printf_number_buffer::buffer_sign#6
|
|
char printf_number_buffer::buffer_sign#7
|
|
char printf_number_buffer::buffer_sign#8
|
|
char printf_number_buffer::buffer_sign#9
|
|
struct printf_format_number printf_number_buffer::format
|
|
char printf_number_buffer::format_justify_left
|
|
char printf_number_buffer::format_justify_left#0
|
|
char printf_number_buffer::format_justify_left#1
|
|
char printf_number_buffer::format_justify_left#10
|
|
char printf_number_buffer::format_justify_left#11
|
|
char printf_number_buffer::format_justify_left#12
|
|
char printf_number_buffer::format_justify_left#13
|
|
char printf_number_buffer::format_justify_left#14
|
|
char printf_number_buffer::format_justify_left#15
|
|
char printf_number_buffer::format_justify_left#16
|
|
char printf_number_buffer::format_justify_left#17
|
|
char printf_number_buffer::format_justify_left#18
|
|
char printf_number_buffer::format_justify_left#19
|
|
char printf_number_buffer::format_justify_left#2
|
|
char printf_number_buffer::format_justify_left#3
|
|
char printf_number_buffer::format_justify_left#4
|
|
char printf_number_buffer::format_justify_left#5
|
|
char printf_number_buffer::format_justify_left#6
|
|
char printf_number_buffer::format_justify_left#7
|
|
char printf_number_buffer::format_justify_left#8
|
|
char printf_number_buffer::format_justify_left#9
|
|
char printf_number_buffer::format_min_length
|
|
char printf_number_buffer::format_min_length#0
|
|
char printf_number_buffer::format_min_length#1
|
|
char printf_number_buffer::format_min_length#2
|
|
char printf_number_buffer::format_min_length#3
|
|
char printf_number_buffer::format_min_length#4
|
|
char printf_number_buffer::format_min_length#5
|
|
char printf_number_buffer::format_radix
|
|
char printf_number_buffer::format_radix#0
|
|
char printf_number_buffer::format_sign_always
|
|
char printf_number_buffer::format_sign_always#0
|
|
char printf_number_buffer::format_upper_case
|
|
char printf_number_buffer::format_upper_case#0
|
|
char printf_number_buffer::format_upper_case#1
|
|
char printf_number_buffer::format_upper_case#10
|
|
char printf_number_buffer::format_upper_case#11
|
|
char printf_number_buffer::format_upper_case#12
|
|
char printf_number_buffer::format_upper_case#13
|
|
char printf_number_buffer::format_upper_case#14
|
|
char printf_number_buffer::format_upper_case#15
|
|
char printf_number_buffer::format_upper_case#2
|
|
char printf_number_buffer::format_upper_case#3
|
|
char printf_number_buffer::format_upper_case#4
|
|
char printf_number_buffer::format_upper_case#5
|
|
char printf_number_buffer::format_upper_case#6
|
|
char printf_number_buffer::format_upper_case#7
|
|
char printf_number_buffer::format_upper_case#8
|
|
char printf_number_buffer::format_upper_case#9
|
|
char printf_number_buffer::format_zero_padding
|
|
char printf_number_buffer::format_zero_padding#0
|
|
char printf_number_buffer::format_zero_padding#1
|
|
char printf_number_buffer::format_zero_padding#10
|
|
char printf_number_buffer::format_zero_padding#11
|
|
char printf_number_buffer::format_zero_padding#12
|
|
char printf_number_buffer::format_zero_padding#13
|
|
char printf_number_buffer::format_zero_padding#14
|
|
char printf_number_buffer::format_zero_padding#15
|
|
char printf_number_buffer::format_zero_padding#16
|
|
char printf_number_buffer::format_zero_padding#17
|
|
char printf_number_buffer::format_zero_padding#18
|
|
char printf_number_buffer::format_zero_padding#19
|
|
char printf_number_buffer::format_zero_padding#2
|
|
char printf_number_buffer::format_zero_padding#3
|
|
char printf_number_buffer::format_zero_padding#4
|
|
char printf_number_buffer::format_zero_padding#5
|
|
char printf_number_buffer::format_zero_padding#6
|
|
char printf_number_buffer::format_zero_padding#7
|
|
char printf_number_buffer::format_zero_padding#8
|
|
char printf_number_buffer::format_zero_padding#9
|
|
signed char printf_number_buffer::len
|
|
signed char printf_number_buffer::len#0
|
|
signed char printf_number_buffer::len#1
|
|
signed char printf_number_buffer::len#2
|
|
signed char printf_number_buffer::len#3
|
|
signed char printf_number_buffer::padding
|
|
signed char printf_number_buffer::padding#0
|
|
signed char printf_number_buffer::padding#1
|
|
signed char printf_number_buffer::padding#10
|
|
signed char printf_number_buffer::padding#11
|
|
signed char printf_number_buffer::padding#12
|
|
signed char printf_number_buffer::padding#13
|
|
signed char printf_number_buffer::padding#14
|
|
signed char printf_number_buffer::padding#15
|
|
signed char printf_number_buffer::padding#16
|
|
signed char printf_number_buffer::padding#2
|
|
signed char printf_number_buffer::padding#3
|
|
signed char printf_number_buffer::padding#4
|
|
signed char printf_number_buffer::padding#5
|
|
signed char printf_number_buffer::padding#6
|
|
signed char printf_number_buffer::padding#7
|
|
signed char printf_number_buffer::padding#8
|
|
signed char printf_number_buffer::padding#9
|
|
void (*printf_number_buffer::putc)(char)
|
|
void (*printf_number_buffer::putc#0)(char)
|
|
void (*printf_number_buffer::putc#1)(char)
|
|
void (*printf_number_buffer::putc#10)(char)
|
|
void (*printf_number_buffer::putc#11)(char)
|
|
void (*printf_number_buffer::putc#12)(char)
|
|
void (*printf_number_buffer::putc#13)(char)
|
|
void (*printf_number_buffer::putc#14)(char)
|
|
void (*printf_number_buffer::putc#15)(char)
|
|
void (*printf_number_buffer::putc#16)(char)
|
|
void (*printf_number_buffer::putc#17)(char)
|
|
void (*printf_number_buffer::putc#18)(char)
|
|
void (*printf_number_buffer::putc#19)(char)
|
|
void (*printf_number_buffer::putc#2)(char)
|
|
void (*printf_number_buffer::putc#20)(char)
|
|
void (*printf_number_buffer::putc#3)(char)
|
|
void (*printf_number_buffer::putc#4)(char)
|
|
void (*printf_number_buffer::putc#5)(char)
|
|
void (*printf_number_buffer::putc#6)(char)
|
|
void (*printf_number_buffer::putc#7)(char)
|
|
void (*printf_number_buffer::putc#8)(char)
|
|
void (*printf_number_buffer::putc#9)(char)
|
|
void printf_padding(void (*putc)(char) , char pad , char length)
|
|
bool printf_padding::$0
|
|
char printf_padding::i
|
|
char printf_padding::i#0
|
|
char printf_padding::i#1
|
|
char printf_padding::i#2
|
|
char printf_padding::i#3
|
|
char printf_padding::i#4
|
|
char printf_padding::length
|
|
char printf_padding::length#0
|
|
char printf_padding::length#1
|
|
char printf_padding::length#2
|
|
char printf_padding::length#3
|
|
char printf_padding::length#4
|
|
char printf_padding::length#5
|
|
char printf_padding::length#6
|
|
char printf_padding::pad
|
|
char printf_padding::pad#0
|
|
char printf_padding::pad#1
|
|
char printf_padding::pad#2
|
|
char printf_padding::pad#3
|
|
char printf_padding::pad#4
|
|
char printf_padding::pad#5
|
|
char printf_padding::pad#6
|
|
void (*printf_padding::putc)(char)
|
|
void (*printf_padding::putc#0)(char)
|
|
void (*printf_padding::putc#1)(char)
|
|
void (*printf_padding::putc#2)(char)
|
|
void (*printf_padding::putc#3)(char)
|
|
void (*printf_padding::putc#4)(char)
|
|
void (*printf_padding::putc#5)(char)
|
|
void (*printf_padding::putc#6)(char)
|
|
void printf_sint(void (*putc)(char) , int value , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
bool printf_sint::$0
|
|
bool printf_sint::$3
|
|
int printf_sint::$4
|
|
bool printf_sint::$5
|
|
struct printf_format_number printf_sint::format
|
|
char printf_sint::format_justify_left
|
|
char printf_sint::format_justify_left#0
|
|
char printf_sint::format_justify_left#1
|
|
char printf_sint::format_justify_left#2
|
|
char printf_sint::format_justify_left#3
|
|
char printf_sint::format_justify_left#4
|
|
char printf_sint::format_justify_left#5
|
|
char printf_sint::format_justify_left#6
|
|
char printf_sint::format_min_length
|
|
char printf_sint::format_min_length#0
|
|
char printf_sint::format_min_length#1
|
|
char printf_sint::format_min_length#2
|
|
char printf_sint::format_min_length#3
|
|
char printf_sint::format_min_length#4
|
|
char printf_sint::format_min_length#5
|
|
char printf_sint::format_min_length#6
|
|
char printf_sint::format_radix
|
|
char printf_sint::format_radix#0
|
|
char printf_sint::format_radix#1
|
|
char printf_sint::format_radix#2
|
|
char printf_sint::format_radix#3
|
|
char printf_sint::format_radix#4
|
|
char printf_sint::format_radix#5
|
|
char printf_sint::format_radix#6
|
|
char printf_sint::format_sign_always
|
|
char printf_sint::format_sign_always#0
|
|
char printf_sint::format_sign_always#1
|
|
char printf_sint::format_sign_always#2
|
|
char printf_sint::format_sign_always#3
|
|
char printf_sint::format_sign_always#4
|
|
char printf_sint::format_sign_always#5
|
|
char printf_sint::format_sign_always#6
|
|
char printf_sint::format_upper_case
|
|
char printf_sint::format_upper_case#0
|
|
char printf_sint::format_upper_case#1
|
|
char printf_sint::format_upper_case#2
|
|
char printf_sint::format_upper_case#3
|
|
char printf_sint::format_upper_case#4
|
|
char printf_sint::format_upper_case#5
|
|
char printf_sint::format_upper_case#6
|
|
char printf_sint::format_zero_padding
|
|
char printf_sint::format_zero_padding#0
|
|
char printf_sint::format_zero_padding#1
|
|
char printf_sint::format_zero_padding#2
|
|
char printf_sint::format_zero_padding#3
|
|
char printf_sint::format_zero_padding#4
|
|
char printf_sint::format_zero_padding#5
|
|
char printf_sint::format_zero_padding#6
|
|
void (*printf_sint::putc)(char)
|
|
void (*printf_sint::putc#0)(char)
|
|
void (*printf_sint::putc#1)(char)
|
|
void (*printf_sint::putc#2)(char)
|
|
void (*printf_sint::putc#3)(char)
|
|
void (*printf_sint::putc#4)(char)
|
|
void (*printf_sint::putc#5)(char)
|
|
void (*printf_sint::putc#6)(char)
|
|
unsigned int printf_sint::uvalue
|
|
unsigned int printf_sint::uvalue#0
|
|
int printf_sint::value
|
|
int printf_sint::value#0
|
|
int printf_sint::value#1
|
|
int printf_sint::value#2
|
|
int printf_sint::value#3
|
|
int printf_sint::value#4
|
|
int printf_sint::value#5
|
|
int printf_sint::value#6
|
|
void printf_str(void (*putc)(char) , const char *s)
|
|
char printf_str::$0
|
|
bool printf_str::$2
|
|
char printf_str::c
|
|
char printf_str::c#0
|
|
char printf_str::c#1
|
|
char printf_str::c#2
|
|
void (*printf_str::putc)(char)
|
|
void (*printf_str::putc#0)(char)
|
|
void (*printf_str::putc#1)(char)
|
|
void (*printf_str::putc#2)(char)
|
|
void (*printf_str::putc#3)(char)
|
|
void (*printf_str::putc#4)(char)
|
|
const char *printf_str::s
|
|
const char *printf_str::s#0
|
|
const char *printf_str::s#1
|
|
const char *printf_str::s#2
|
|
const char *printf_str::s#3
|
|
const char *printf_str::s#4
|
|
const char *printf_str::s#5
|
|
unsigned int strlen(char *str)
|
|
bool strlen::$0
|
|
unsigned int strlen::len
|
|
unsigned int strlen::len#0
|
|
unsigned int strlen::len#1
|
|
unsigned int strlen::len#2
|
|
unsigned int strlen::len#3
|
|
unsigned int strlen::len#4
|
|
unsigned int strlen::return
|
|
unsigned int strlen::return#0
|
|
unsigned int strlen::return#1
|
|
unsigned int strlen::return#2
|
|
unsigned int strlen::return#3
|
|
unsigned int strlen::return#4
|
|
char *strlen::str
|
|
char *strlen::str#0
|
|
char *strlen::str#1
|
|
char *strlen::str#2
|
|
char *strlen::str#3
|
|
char *strlen::str#4
|
|
char * strupr(char *str)
|
|
char strupr::$0
|
|
bool strupr::$1
|
|
char *strupr::return
|
|
char *strupr::return#0
|
|
char *strupr::return#1
|
|
char *strupr::return#2
|
|
char *strupr::return#3
|
|
char *strupr::src
|
|
char *strupr::src#0
|
|
char *strupr::src#1
|
|
char *strupr::src#2
|
|
char *strupr::src#3
|
|
char *strupr::src#4
|
|
char *strupr::str
|
|
char *strupr::str#0
|
|
char *strupr::str#1
|
|
char *strupr::str#2
|
|
char *strupr::str#3
|
|
char *strupr::str#4
|
|
char *strupr::str#5
|
|
void test_casting(int signed_short_value)
|
|
__constant char test_casting::s[2] = "
|
|
"
|
|
int test_casting::signed_short_value
|
|
int test_casting::signed_short_value#0
|
|
int test_casting::signed_short_value#1
|
|
char toupper(char ch)
|
|
bool toupper::$0
|
|
bool toupper::$1
|
|
bool toupper::$2
|
|
char toupper::$3
|
|
char toupper::ch
|
|
char toupper::ch#0
|
|
char toupper::ch#1
|
|
char toupper::ch#2
|
|
char toupper::ch#3
|
|
char toupper::return
|
|
char toupper::return#0
|
|
char toupper::return#1
|
|
char toupper::return#2
|
|
char toupper::return#3
|
|
char toupper::return#4
|
|
char toupper::return#5
|
|
void utoa(unsigned int value , char *buffer , char radix)
|
|
bool utoa::$0
|
|
bool utoa::$1
|
|
char utoa::$10
|
|
char utoa::$11
|
|
bool utoa::$2
|
|
bool utoa::$3
|
|
number utoa::$4
|
|
bool utoa::$5
|
|
bool utoa::$6
|
|
bool utoa::$7
|
|
bool utoa::$8
|
|
unsigned int utoa::$9
|
|
char *utoa::buffer
|
|
char *utoa::buffer#0
|
|
char *utoa::buffer#1
|
|
char *utoa::buffer#10
|
|
char *utoa::buffer#11
|
|
char *utoa::buffer#12
|
|
char *utoa::buffer#13
|
|
char *utoa::buffer#14
|
|
char *utoa::buffer#15
|
|
char *utoa::buffer#16
|
|
char *utoa::buffer#17
|
|
char *utoa::buffer#18
|
|
char *utoa::buffer#19
|
|
char *utoa::buffer#2
|
|
char *utoa::buffer#20
|
|
char *utoa::buffer#21
|
|
char *utoa::buffer#3
|
|
char *utoa::buffer#4
|
|
char *utoa::buffer#5
|
|
char *utoa::buffer#6
|
|
char *utoa::buffer#7
|
|
char *utoa::buffer#8
|
|
char *utoa::buffer#9
|
|
char utoa::digit
|
|
char utoa::digit#0
|
|
char utoa::digit#1
|
|
char utoa::digit#2
|
|
char utoa::digit#3
|
|
char utoa::digit#4
|
|
char utoa::digit#5
|
|
char utoa::digit#6
|
|
unsigned int utoa::digit_value
|
|
unsigned int utoa::digit_value#0
|
|
unsigned int utoa::digit_value#1
|
|
unsigned int *utoa::digit_values
|
|
unsigned int *utoa::digit_values#0
|
|
unsigned int *utoa::digit_values#1
|
|
unsigned int *utoa::digit_values#10
|
|
unsigned int *utoa::digit_values#2
|
|
unsigned int *utoa::digit_values#3
|
|
unsigned int *utoa::digit_values#4
|
|
unsigned int *utoa::digit_values#5
|
|
unsigned int *utoa::digit_values#6
|
|
unsigned int *utoa::digit_values#7
|
|
unsigned int *utoa::digit_values#8
|
|
unsigned int *utoa::digit_values#9
|
|
char utoa::max_digits
|
|
char utoa::max_digits#0
|
|
char utoa::max_digits#1
|
|
char utoa::max_digits#10
|
|
char utoa::max_digits#2
|
|
char utoa::max_digits#3
|
|
char utoa::max_digits#4
|
|
char utoa::max_digits#5
|
|
char utoa::max_digits#6
|
|
char utoa::max_digits#7
|
|
char utoa::max_digits#8
|
|
char utoa::max_digits#9
|
|
char utoa::radix
|
|
char utoa::radix#0
|
|
char utoa::radix#1
|
|
char utoa::radix#2
|
|
char utoa::radix#3
|
|
char utoa::radix#4
|
|
char utoa::started
|
|
char utoa::started#0
|
|
char utoa::started#1
|
|
char utoa::started#2
|
|
char utoa::started#3
|
|
char utoa::started#4
|
|
unsigned int utoa::value
|
|
unsigned int utoa::value#0
|
|
unsigned int utoa::value#1
|
|
unsigned int utoa::value#10
|
|
unsigned int utoa::value#11
|
|
unsigned int utoa::value#12
|
|
unsigned int utoa::value#13
|
|
unsigned int utoa::value#14
|
|
unsigned int utoa::value#15
|
|
unsigned int utoa::value#2
|
|
unsigned int utoa::value#3
|
|
unsigned int utoa::value#4
|
|
unsigned int utoa::value#5
|
|
unsigned int utoa::value#6
|
|
unsigned int utoa::value#7
|
|
unsigned int utoa::value#8
|
|
unsigned int utoa::value#9
|
|
unsigned int utoa_append(char *buffer , unsigned int value , unsigned int sub)
|
|
bool utoa_append::$0
|
|
char *utoa_append::buffer
|
|
char *utoa_append::buffer#0
|
|
char *utoa_append::buffer#1
|
|
char *utoa_append::buffer#2
|
|
char *utoa_append::buffer#3
|
|
char *utoa_append::buffer#4
|
|
char utoa_append::digit
|
|
char utoa_append::digit#0
|
|
char utoa_append::digit#1
|
|
char utoa_append::digit#2
|
|
char utoa_append::digit#3
|
|
char utoa_append::digit#4
|
|
unsigned int utoa_append::return
|
|
unsigned int utoa_append::return#0
|
|
unsigned int utoa_append::return#1
|
|
unsigned int utoa_append::return#2
|
|
unsigned int utoa_append::return#3
|
|
unsigned int utoa_append::return#4
|
|
unsigned int utoa_append::sub
|
|
unsigned int utoa_append::sub#0
|
|
unsigned int utoa_append::sub#1
|
|
unsigned int utoa_append::sub#2
|
|
unsigned int utoa_append::sub#3
|
|
unsigned int utoa_append::value
|
|
unsigned int utoa_append::value#0
|
|
unsigned int utoa_append::value#1
|
|
unsigned int utoa_append::value#2
|
|
unsigned int utoa_append::value#3
|
|
unsigned int utoa_append::value#4
|
|
unsigned int utoa_append::value#5
|
|
|
|
Adding number conversion cast (unumber) $19 in clrscr::$0 = clrscr::l#2 < $19
|
|
Adding number conversion cast (unumber) 0 in conio_cursor_x = 0
|
|
Adding number conversion cast (unumber) 0 in conio_cursor_y = 0
|
|
Adding number conversion cast (unumber) $28 in clrscr::$1 = clrscr::c#2 < $28
|
|
Adding number conversion cast (unumber) $28 in clrscr::line_text#1 = clrscr::line_text#3 + $28
|
|
Adding number conversion cast (unumber) $28 in clrscr::line_cols#1 = clrscr::line_cols#3 + $28
|
|
Adding number conversion cast (unumber) $19 in gotoxy::$0 = gotoxy::y#3 > $19
|
|
Adding number conversion cast (unumber) $28 in gotoxy::$2 = gotoxy::x#3 >= $28
|
|
Adding number conversion cast (unumber) 0 in gotoxy::y#0 = 0
|
|
Adding number conversion cast (unumber) $28 in gotoxy::line_offset#0 = gotoxy::$7 * $28
|
|
Adding number conversion cast (unumber) 0 in gotoxy::x#0 = 0
|
|
Adding number conversion cast (unumber) $28 in cputc::$1 = conio_cursor_x == $28
|
|
Adding number conversion cast (unumber) $28 in conio_line_text = conio_line_text + $28
|
|
Adding number conversion cast (unumber) $28 in conio_line_color = conio_line_color + $28
|
|
Adding number conversion cast (unumber) 0 in conio_cursor_x = 0
|
|
Adding number conversion cast (unumber) 0 in memset::$0 = memset::num#2 > 0
|
|
Adding number conversion cast (unumber) 0 in strlen::$0 = 0 != *strlen::str#2
|
|
Adding number conversion cast (unumber) 0 in strupr::$1 = 0 != *strupr::src#2
|
|
Adding number conversion cast (unumber) $19 in cscroll::$0 = conio_cursor_y == $19
|
|
Adding number conversion cast (unumber) 0 in cscroll::$7 = 0 != conio_scroll_enable
|
|
Adding number conversion cast (unumber) $28 in memcpy::source#0 = (void *)DEFAULT_SCREEN+$28
|
|
Adding number conversion cast (unumber) $19*$28-$28 in memcpy::num#0 = $19*$28-$28
|
|
Adding number conversion cast (unumber) $28 in memcpy::source#1 = (void *)COLORRAM+$28
|
|
Adding number conversion cast (unumber) $19*$28-$28 in memcpy::num#1 = $19*$28-$28
|
|
Adding number conversion cast (unumber) $28 in memset::str#0 = (void *)DEFAULT_SCREEN+$19*$28-$28
|
|
Adding number conversion cast (unumber) $19*$28 in memset::str#0 = (void *)DEFAULT_SCREEN+$19*$28-(unumber)$28
|
|
Adding number conversion cast (unumber) $28 in memset::num#0 = $28
|
|
Adding number conversion cast (unumber) $28 in memset::str#1 = (void *)COLORRAM+$19*$28-$28
|
|
Adding number conversion cast (unumber) $19*$28 in memset::str#1 = (void *)COLORRAM+$19*$28-(unumber)$28
|
|
Adding number conversion cast (unumber) $28 in memset::num#1 = $28
|
|
Adding number conversion cast (unumber) $28 in conio_line_text = conio_line_text - $28
|
|
Adding number conversion cast (unumber) $28 in conio_line_color = conio_line_color - $28
|
|
Adding number conversion cast (unumber) 0 in gotoxy::x#1 = 0
|
|
Adding number conversion cast (unumber) 0 in gotoxy::y#1 = 0
|
|
Adding number conversion cast (unumber) $19 in conio_c64_init::$0 = conio_c64_init::line#0 >= $19
|
|
Adding number conversion cast (unumber) 0 in gotoxy::x#2 = 0
|
|
Adding number conversion cast (unumber) $19-1 in conio_c64_init::line#1 = $19-1
|
|
Adding number conversion cast (unumber) 5 in utoa::max_digits#1 = 5
|
|
Adding number conversion cast (unumber) 4 in utoa::max_digits#2 = 4
|
|
Adding number conversion cast (unumber) 6 in utoa::max_digits#3 = 6
|
|
Adding number conversion cast (unumber) $10 in utoa::max_digits#4 = $10
|
|
Adding number conversion cast (unumber) 0 in *utoa::buffer#2 = 0
|
|
Adding number conversion cast (unumber) 1 in utoa::$4 = utoa::max_digits#5 - 1
|
|
Adding number conversion cast (unumber) utoa::$4 in utoa::$4 = utoa::max_digits#5 - (unumber)1
|
|
Adding number conversion cast (unumber) 0 in *utoa::buffer#3 = 0
|
|
Adding number conversion cast (unumber) 1 in utoa::started#1 = 1
|
|
Adding number conversion cast (unumber) 0 in printf_str::$2 = 0 != printf_str::$0
|
|
Adding number conversion cast (unumber) 0 in *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = 0
|
|
Adding number conversion cast (snumber) 0 in printf_sint::$0 = printf_sint::value#2 < 0
|
|
Adding number conversion cast (unumber) 0 in printf_sint::$5 = 0 != printf_sint::format_sign_always#1
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$26 = 0 != printf_number_buffer::format_min_length#1
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$27 = 0 != printf_number_buffer::format_justify_left#1
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$28 = 0 != printf_number_buffer::format_zero_padding#1
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$29 = 0 != printf_number_buffer::buffer_sign#1
|
|
Adding number conversion cast (snumber) 0 in printf_number_buffer::$22 = printf_number_buffer::padding#1 < 0
|
|
Adding number conversion cast (snumber) 0 in printf_number_buffer::padding#2 = 0
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$30 = 0 != printf_number_buffer::buffer_sign#2
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$31 = 0 != printf_number_buffer::format_upper_case#1
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$32 = 0 != printf_number_buffer::format_zero_padding#3
|
|
Adding number conversion cast (snumber) 0 in main::$1 = main::signed_char_value#2 != 0
|
|
Successful SSA optimization PassNAddNumberTypeConversions
|
|
Inlining cast conio_cursor_x = (unumber)0
|
|
Inlining cast conio_cursor_y = (unumber)0
|
|
Inlining cast gotoxy::y#0 = (unumber)0
|
|
Inlining cast gotoxy::x#0 = (unumber)0
|
|
Inlining cast conio_cursor_x = (unumber)0
|
|
Inlining cast memcpy::src#0 = (char *)memcpy::source#2
|
|
Inlining cast memcpy::dst#0 = (char *)memcpy::destination#2
|
|
Inlining cast memset::dst#0 = (char *)memset::str#3
|
|
Inlining cast memcpy::num#0 = (unumber)$19*$28-$28
|
|
Inlining cast memcpy::num#1 = (unumber)$19*$28-$28
|
|
Inlining cast memset::num#0 = (unumber)$28
|
|
Inlining cast memset::num#1 = (unumber)$28
|
|
Inlining cast gotoxy::x#1 = (unumber)0
|
|
Inlining cast gotoxy::y#1 = (unumber)0
|
|
Inlining cast gotoxy::x#2 = (unumber)0
|
|
Inlining cast conio_c64_init::line#1 = (unumber)$19-1
|
|
Inlining cast utoa::max_digits#1 = (unumber)5
|
|
Inlining cast utoa::max_digits#2 = (unumber)4
|
|
Inlining cast utoa::max_digits#3 = (unumber)6
|
|
Inlining cast utoa::max_digits#4 = (unumber)$10
|
|
Inlining cast *utoa::buffer#2 = (unumber)0
|
|
Inlining cast *utoa::buffer#3 = (unumber)0
|
|
Inlining cast utoa::started#1 = (unumber)1
|
|
Inlining cast *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = (unumber)0
|
|
Inlining cast printf_number_buffer::padding#2 = (snumber)0
|
|
Successful SSA optimization Pass2InlineCast
|
|
Simplifying constant pointer cast (char *) 55296
|
|
Simplifying constant pointer cast (char *) 1024
|
|
Simplifying constant pointer cast (char *) 214
|
|
Simplifying constant integer cast $19
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $19
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast $19
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast $28
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast $19
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 5
|
|
Simplifying constant integer cast 4
|
|
Simplifying constant integer cast 6
|
|
Simplifying constant integer cast $10
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 1
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 1
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Successful SSA optimization PassNCastSimplification
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 5
|
|
Finalized unsigned number type (char) 4
|
|
Finalized unsigned number type (char) 6
|
|
Finalized unsigned number type (char) $10
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 1
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 1
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized signed number type (signed char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized signed number type (signed char) 0
|
|
Finalized signed number type (signed char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized signed number type (signed char) 0
|
|
Successful SSA optimization PassNFinalizeNumberTypeConversions
|
|
Inferred type updated to char in utoa::$4 = utoa::max_digits#5 - 1
|
|
Inversing boolean not [26] gotoxy::$1 = gotoxy::y#3 <= $19 from [25] gotoxy::$0 = gotoxy::y#3 > $19
|
|
Inversing boolean not [30] gotoxy::$3 = gotoxy::x#3 < $28 from [29] gotoxy::$2 = gotoxy::x#3 >= $28
|
|
Inversing boolean not [55] cputc::$2 = conio_cursor_x != $28 from [54] cputc::$1 = conio_cursor_x == $28
|
|
Inversing boolean not [84] memset::$1 = memset::num#2 <= 0 from [83] memset::$0 = memset::num#2 > 0
|
|
Inversing boolean not [146] cscroll::$1 = conio_cursor_y != $19 from [145] cscroll::$0 = conio_cursor_y == $19
|
|
Inversing boolean not [179] conio_c64_init::$1 = conio_c64_init::line#0 < $19 from [178] conio_c64_init::$0 = conio_c64_init::line#0 >= $19
|
|
Inversing boolean not [303] printf_sint::$3 = 0 == printf_sint::format_sign_always#1 from [302] printf_sint::$5 = 0 != printf_sint::format_sign_always#1
|
|
Inversing boolean not [328] printf_number_buffer::$0 = 0 == printf_number_buffer::format_min_length#1 from [327] printf_number_buffer::$26 = 0 != printf_number_buffer::format_min_length#1
|
|
Inversing boolean not [332] printf_number_buffer::$1 = 0 == printf_number_buffer::format_justify_left#1 from [331] printf_number_buffer::$27 = 0 != printf_number_buffer::format_justify_left#1
|
|
Inversing boolean not [334] printf_number_buffer::$2 = 0 == printf_number_buffer::format_zero_padding#1 from [333] printf_number_buffer::$28 = 0 != printf_number_buffer::format_zero_padding#1
|
|
Inversing boolean not [347] printf_number_buffer::$20 = 0 == printf_number_buffer::buffer_sign#1 from [346] printf_number_buffer::$29 = 0 != printf_number_buffer::buffer_sign#1
|
|
Inversing boolean not [354] printf_number_buffer::$23 = printf_number_buffer::padding#1 >= 0 from [353] printf_number_buffer::$22 = printf_number_buffer::padding#1 < 0
|
|
Inversing boolean not [362] printf_number_buffer::$7 = 0 == printf_number_buffer::buffer_sign#2 from [361] printf_number_buffer::$30 = 0 != printf_number_buffer::buffer_sign#2
|
|
Inversing boolean not [380] printf_number_buffer::$12 = 0 == printf_number_buffer::format_upper_case#1 from [379] printf_number_buffer::$31 = 0 != printf_number_buffer::format_upper_case#1
|
|
Inversing boolean not [394] printf_number_buffer::$14 = 0 == printf_number_buffer::format_zero_padding#3 from [393] printf_number_buffer::$32 = 0 != printf_number_buffer::format_zero_padding#3
|
|
Successful SSA optimization Pass2UnaryNotSimplification
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Alias clrscr::line_text#5 = clrscr::line_text#6
|
|
Alias clrscr::line_cols#5 = clrscr::line_cols#6
|
|
Alias clrscr::l#2 = clrscr::l#5
|
|
Alias clrscr::line_text#2 = clrscr::line_text#4 clrscr::line_text#3
|
|
Alias clrscr::c#2 = clrscr::c#3
|
|
Alias clrscr::line_cols#2 = clrscr::line_cols#4 clrscr::line_cols#3
|
|
Alias clrscr::l#3 = clrscr::l#6 clrscr::l#4
|
|
Alias gotoxy::x#5 = gotoxy::x#6
|
|
Alias gotoxy::y#5 = gotoxy::y#6
|
|
Alias cputc::c#0 = cputc::c#1
|
|
Alias memcpy::src#2 = memcpy::src#3
|
|
Alias memcpy::dst#2 = memcpy::dst#3
|
|
Alias memcpy::src_end#1 = memcpy::src_end#2
|
|
Alias memcpy::destination#3 = memcpy::destination#5 memcpy::destination#4 memcpy::return#0 memcpy::return#4 memcpy::return#1
|
|
Alias memset::return#0 = memset::str#2 memset::return#4 memset::return#1
|
|
Alias memset::str#3 = memset::str#4
|
|
Alias memset::num#2 = memset::num#3
|
|
Alias memset::c#4 = memset::c#5
|
|
Alias memset::c#2 = memset::c#3
|
|
Alias memset::dst#2 = memset::dst#3
|
|
Alias memset::end#1 = memset::end#2
|
|
Alias memset::str#5 = memset::str#6
|
|
Alias strlen::len#2 = strlen::len#4 strlen::len#3 strlen::return#0 strlen::return#3 strlen::return#1
|
|
Alias strlen::str#2 = strlen::str#3
|
|
Alias toupper::ch#1 = toupper::ch#2 toupper::ch#3 toupper::return#1
|
|
Alias toupper::return#0 = toupper::$3
|
|
Alias toupper::return#2 = toupper::return#4
|
|
Alias strupr::src#0 = strupr::str#1
|
|
Alias strupr::src#2 = strupr::src#3 strupr::src#4
|
|
Alias strupr::str#2 = strupr::str#5 strupr::str#3 strupr::str#4 strupr::return#0 strupr::return#3 strupr::return#1
|
|
Alias toupper::return#3 = toupper::return#5
|
|
Alias utoa::value#10 = utoa::value#8 utoa::value#12 utoa::value#13 utoa::value#9 utoa::value#14 utoa::value#15 utoa::value#11
|
|
Alias utoa::buffer#10 = utoa::buffer#17 utoa::buffer#21 utoa::buffer#16 utoa::buffer#18 utoa::buffer#13 utoa::buffer#19 utoa::buffer#20 utoa::buffer#6
|
|
Alias utoa::radix#1 = utoa::radix#2 utoa::radix#3 utoa::radix#4
|
|
Alias utoa::digit#2 = utoa::digit#3 utoa::digit#6 utoa::digit#5
|
|
Alias utoa::digit_values#10 = utoa::digit_values#5 utoa::digit_values#6 utoa::digit_values#9
|
|
Alias utoa::value#2 = utoa::value#5 utoa::value#3 utoa::value#4
|
|
Alias utoa::started#2 = utoa::started#3
|
|
Alias utoa::buffer#11 = utoa::buffer#12 utoa::buffer#7 utoa::buffer#8 utoa::buffer#9
|
|
Alias utoa::max_digits#10 = utoa::max_digits#8 utoa::max_digits#5 utoa::max_digits#9
|
|
Alias utoa::digit_value#0 = utoa::digit_value#1
|
|
Alias utoa_append::return#0 = utoa_append::return#3
|
|
Alias utoa::value#0 = utoa::$9
|
|
Alias utoa_append::digit#2 = utoa_append::digit#4 utoa_append::digit#3
|
|
Alias utoa_append::value#2 = utoa_append::value#3 utoa_append::value#4 utoa_append::return#1 utoa_append::return#4 utoa_append::return#2
|
|
Alias utoa_append::sub#1 = utoa_append::sub#2
|
|
Alias utoa_append::buffer#1 = utoa_append::buffer#4 utoa_append::buffer#2
|
|
Alias printf_str::c#1 = printf_str::$0 printf_str::c#2
|
|
Alias printf_str::putc#2 = printf_str::putc#3
|
|
Alias printf_str::s#0 = printf_str::s#5
|
|
Alias printf_padding::pad#3 = printf_padding::pad#4 printf_padding::pad#6
|
|
Alias printf_padding::putc#3 = printf_padding::putc#4 printf_padding::putc#6
|
|
Alias printf_padding::i#2 = printf_padding::i#4 printf_padding::i#3
|
|
Alias printf_padding::length#3 = printf_padding::length#6 printf_padding::length#5
|
|
Alias printf_sint::value#2 = printf_sint::value#3 printf_sint::value#5 printf_sint::value#6
|
|
Alias printf_sint::format_radix#3 = printf_sint::format_radix#6 printf_sint::format_radix#4 printf_sint::format_radix#5
|
|
Alias printf_sint::putc#3 = printf_sint::putc#6 printf_sint::putc#4 printf_sint::putc#5
|
|
Alias printf_sint::format_min_length#3 = printf_sint::format_min_length#6 printf_sint::format_min_length#4 printf_sint::format_min_length#5
|
|
Alias printf_sint::format_justify_left#3 = printf_sint::format_justify_left#6 printf_sint::format_justify_left#4 printf_sint::format_justify_left#5
|
|
Alias printf_sint::format_sign_always#1 = printf_sint::format_sign_always#5 printf_sint::format_sign_always#3 printf_sint::format_sign_always#6
|
|
Alias printf_sint::format_zero_padding#3 = printf_sint::format_zero_padding#6 printf_sint::format_zero_padding#4 printf_sint::format_zero_padding#5
|
|
Alias printf_sint::format_upper_case#3 = printf_sint::format_upper_case#6 printf_sint::format_upper_case#4 printf_sint::format_upper_case#5
|
|
Alias printf_sint::value#0 = printf_sint::$4
|
|
Alias printf_sint::putc#1 = printf_sint::putc#2
|
|
Alias printf_sint::format_min_length#1 = printf_sint::format_min_length#2
|
|
Alias printf_sint::format_justify_left#1 = printf_sint::format_justify_left#2
|
|
Alias printf_sint::format_sign_always#2 = printf_sint::format_sign_always#4
|
|
Alias printf_sint::format_zero_padding#1 = printf_sint::format_zero_padding#2
|
|
Alias printf_sint::format_upper_case#1 = printf_sint::format_upper_case#2
|
|
Alias printf_sint::format_radix#1 = printf_sint::format_radix#2
|
|
Alias printf_number_buffer::buffer_digits#1 = printf_number_buffer::buffer_digits#4 printf_number_buffer::buffer_digits#17 printf_number_buffer::buffer_digits#18
|
|
Alias printf_number_buffer::buffer_sign#1 = printf_number_buffer::buffer_sign#4 printf_number_buffer::buffer_sign#7 printf_number_buffer::buffer_sign#11
|
|
Alias printf_number_buffer::format_min_length#1 = printf_number_buffer::format_min_length#5 printf_number_buffer::format_min_length#3 printf_number_buffer::format_min_length#4
|
|
Alias printf_number_buffer::format_justify_left#11 = printf_number_buffer::format_justify_left#3 printf_number_buffer::format_justify_left#7 printf_number_buffer::format_justify_left#8
|
|
Alias printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#15 printf_number_buffer::format_zero_padding#4 printf_number_buffer::format_zero_padding#11
|
|
Alias printf_number_buffer::putc#12 = printf_number_buffer::putc#20 printf_number_buffer::putc#18 printf_number_buffer::putc#19
|
|
Alias printf_number_buffer::format_upper_case#13 = printf_number_buffer::format_upper_case#15 printf_number_buffer::format_upper_case#9 printf_number_buffer::format_upper_case#14
|
|
Alias strlen::return#2 = strlen::return#4
|
|
Alias printf_number_buffer::padding#1 = printf_number_buffer::$21
|
|
Alias printf_number_buffer::len#0 = printf_number_buffer::len#3
|
|
Alias printf_number_buffer::format_justify_left#4 = printf_number_buffer::format_justify_left#5
|
|
Alias printf_number_buffer::format_zero_padding#5 = printf_number_buffer::format_zero_padding#6
|
|
Alias printf_number_buffer::buffer_sign#8 = printf_number_buffer::buffer_sign#9
|
|
Alias printf_number_buffer::putc#13 = printf_number_buffer::putc#14
|
|
Alias printf_number_buffer::format_upper_case#10 = printf_number_buffer::format_upper_case#11
|
|
Alias printf_number_buffer::buffer_digits#14 = printf_number_buffer::buffer_digits#15
|
|
Alias printf_number_buffer::putc#1 = printf_number_buffer::putc#6 printf_number_buffer::putc#15
|
|
Alias printf_number_buffer::padding#12 = printf_number_buffer::padding#4 printf_number_buffer::padding#3
|
|
Alias printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#5 printf_number_buffer::buffer_sign#6
|
|
Alias printf_number_buffer::format_zero_padding#1 = printf_number_buffer::format_zero_padding#16 printf_number_buffer::format_zero_padding#12
|
|
Alias printf_number_buffer::format_upper_case#12 = printf_number_buffer::format_upper_case#7 printf_number_buffer::format_upper_case#8
|
|
Alias printf_number_buffer::buffer_digits#12 = printf_number_buffer::buffer_digits#16 printf_number_buffer::buffer_digits#13
|
|
Alias printf_number_buffer::format_justify_left#1 = printf_number_buffer::format_justify_left#19 printf_number_buffer::format_justify_left#18
|
|
Alias printf_number_buffer::buffer_sign#2 = printf_number_buffer::buffer_sign#3
|
|
Alias printf_number_buffer::putc#2 = printf_number_buffer::putc#7
|
|
Alias printf_number_buffer::format_zero_padding#7 = printf_number_buffer::format_zero_padding#8
|
|
Alias printf_number_buffer::padding#10 = printf_number_buffer::padding#9
|
|
Alias printf_number_buffer::format_upper_case#4 = printf_number_buffer::format_upper_case#5
|
|
Alias printf_number_buffer::buffer_digits#10 = printf_number_buffer::buffer_digits#9
|
|
Alias printf_number_buffer::format_justify_left#15 = printf_number_buffer::format_justify_left#16
|
|
Alias printf_number_buffer::putc#16 = printf_number_buffer::putc#3 printf_number_buffer::putc#8
|
|
Alias printf_number_buffer::padding#15 = printf_number_buffer::padding#6 printf_number_buffer::padding#5
|
|
Alias printf_number_buffer::format_upper_case#2 = printf_number_buffer::format_upper_case#6 printf_number_buffer::format_upper_case#3
|
|
Alias printf_number_buffer::buffer_digits#11 = printf_number_buffer::buffer_digits#8 printf_number_buffer::buffer_digits#7
|
|
Alias printf_number_buffer::format_zero_padding#17 = printf_number_buffer::format_zero_padding#19 printf_number_buffer::format_zero_padding#2
|
|
Alias printf_number_buffer::format_justify_left#12 = printf_number_buffer::format_justify_left#17 printf_number_buffer::format_justify_left#13
|
|
Alias printf_number_buffer::format_zero_padding#3 = printf_number_buffer::format_zero_padding#9
|
|
Alias printf_number_buffer::format_justify_left#2 = printf_number_buffer::format_justify_left#6
|
|
Alias printf_number_buffer::padding#11 = printf_number_buffer::padding#7 printf_number_buffer::padding#8
|
|
Alias printf_number_buffer::putc#11 = printf_number_buffer::putc#4 printf_number_buffer::putc#5
|
|
Alias printf_number_buffer::buffer_digits#3 = printf_number_buffer::buffer_digits#6 printf_number_buffer::buffer_digits#5
|
|
Alias printf_number_buffer::putc#10 = printf_number_buffer::putc#17 printf_number_buffer::putc#9
|
|
Alias printf_number_buffer::format_zero_padding#13 = printf_number_buffer::format_zero_padding#18 printf_number_buffer::format_zero_padding#14
|
|
Alias printf_number_buffer::format_justify_left#10 = printf_number_buffer::format_justify_left#14 printf_number_buffer::format_justify_left#9
|
|
Alias printf_number_buffer::padding#13 = printf_number_buffer::padding#16 printf_number_buffer::padding#14
|
|
Alias main::signed_char_value#2 = main::signed_char_value#3
|
|
Alias main::signed_char_value#1 = main::signed_char_value#4
|
|
Successful SSA optimization Pass2AliasElimination
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Alias gotoxy::x#3 = gotoxy::x#5
|
|
Alias gotoxy::y#4 = gotoxy::y#5
|
|
Alias utoa::value#10 = utoa::value#7
|
|
Alias utoa::buffer#10 = utoa::buffer#15
|
|
Alias utoa::digit#2 = utoa::digit#4
|
|
Alias utoa::max_digits#10 = utoa::max_digits#6
|
|
Alias utoa::digit_values#10 = utoa::digit_values#7
|
|
Alias printf_sint::format_radix#1 = printf_sint::format_radix#3
|
|
Alias printf_sint::putc#1 = printf_sint::putc#3
|
|
Alias printf_sint::format_min_length#1 = printf_sint::format_min_length#3
|
|
Alias printf_sint::format_justify_left#1 = printf_sint::format_justify_left#3
|
|
Alias printf_sint::format_sign_always#1 = printf_sint::format_sign_always#2
|
|
Alias printf_sint::format_zero_padding#1 = printf_sint::format_zero_padding#3
|
|
Alias printf_sint::format_upper_case#1 = printf_sint::format_upper_case#3
|
|
Alias printf_number_buffer::format_min_length#1 = printf_number_buffer::format_min_length#2
|
|
Alias printf_number_buffer::format_justify_left#11 = printf_number_buffer::format_justify_left#4
|
|
Alias printf_number_buffer::format_zero_padding#10 = printf_number_buffer::format_zero_padding#5
|
|
Alias printf_number_buffer::buffer_sign#1 = printf_number_buffer::buffer_sign#8
|
|
Alias printf_number_buffer::putc#12 = printf_number_buffer::putc#13
|
|
Alias printf_number_buffer::format_upper_case#10 = printf_number_buffer::format_upper_case#13
|
|
Alias printf_number_buffer::buffer_digits#1 = printf_number_buffer::buffer_digits#14
|
|
Alias printf_number_buffer::buffer_sign#10 = printf_number_buffer::buffer_sign#2
|
|
Alias printf_number_buffer::format_zero_padding#1 = printf_number_buffer::format_zero_padding#7 printf_number_buffer::format_zero_padding#17 printf_number_buffer::format_zero_padding#13 printf_number_buffer::format_zero_padding#3
|
|
Alias printf_number_buffer::padding#10 = printf_number_buffer::padding#12 printf_number_buffer::padding#15 printf_number_buffer::padding#13 printf_number_buffer::padding#11
|
|
Alias printf_number_buffer::putc#1 = printf_number_buffer::putc#2 printf_number_buffer::putc#16 printf_number_buffer::putc#10 printf_number_buffer::putc#11
|
|
Alias printf_number_buffer::format_upper_case#1 = printf_number_buffer::format_upper_case#4 printf_number_buffer::format_upper_case#12 printf_number_buffer::format_upper_case#2
|
|
Alias printf_number_buffer::buffer_digits#10 = printf_number_buffer::buffer_digits#12 printf_number_buffer::buffer_digits#11 printf_number_buffer::buffer_digits#3 printf_number_buffer::buffer_digits#2
|
|
Alias printf_number_buffer::format_justify_left#1 = printf_number_buffer::format_justify_left#15 printf_number_buffer::format_justify_left#12 printf_number_buffer::format_justify_left#10 printf_number_buffer::format_justify_left#2
|
|
Successful SSA optimization Pass2AliasElimination
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Alias printf_number_buffer::format_justify_left#1 = printf_number_buffer::format_justify_left#11
|
|
Alias printf_number_buffer::format_zero_padding#1 = printf_number_buffer::format_zero_padding#10
|
|
Alias printf_number_buffer::buffer_sign#1 = printf_number_buffer::buffer_sign#10
|
|
Alias printf_number_buffer::putc#1 = printf_number_buffer::putc#12
|
|
Alias printf_number_buffer::format_upper_case#1 = printf_number_buffer::format_upper_case#10
|
|
Alias printf_number_buffer::buffer_digits#1 = printf_number_buffer::buffer_digits#10
|
|
Successful SSA optimization Pass2AliasElimination
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Identical Phi Values clrscr::line_text#2 clrscr::line_text#5
|
|
Identical Phi Values clrscr::line_cols#2 clrscr::line_cols#5
|
|
Identical Phi Values clrscr::l#3 clrscr::l#2
|
|
Identical Phi Values memcpy::src_end#1 memcpy::src_end#0
|
|
Identical Phi Values memcpy::destination#3 memcpy::destination#2
|
|
Identical Phi Values memset::end#1 memset::end#0
|
|
Identical Phi Values memset::str#5 memset::str#3
|
|
Identical Phi Values memset::c#2 memset::c#4
|
|
Identical Phi Values strlen::str#4 strlen::str#1
|
|
Identical Phi Values toupper::ch#1 toupper::ch#0
|
|
Identical Phi Values strupr::src#0 strupr::str#0
|
|
Identical Phi Values strupr::str#2 strupr::src#0
|
|
Identical Phi Values utoa::radix#1 utoa::radix#0
|
|
Identical Phi Values utoa::value#10 utoa::value#1
|
|
Identical Phi Values utoa::buffer#10 utoa::buffer#5
|
|
Identical Phi Values utoa::max_digits#10 utoa::max_digits#7
|
|
Identical Phi Values utoa::digit_values#10 utoa::digit_values#8
|
|
Identical Phi Values utoa_append::value#5 utoa_append::value#0
|
|
Identical Phi Values utoa_append::sub#3 utoa_append::sub#0
|
|
Identical Phi Values utoa_append::buffer#3 utoa_append::buffer#0
|
|
Identical Phi Values utoa_append::sub#1 utoa_append::sub#3
|
|
Identical Phi Values utoa_append::buffer#1 utoa_append::buffer#3
|
|
Identical Phi Values printf_str::putc#2 printf_str::putc#4
|
|
Identical Phi Values printf_padding::length#3 printf_padding::length#4
|
|
Identical Phi Values printf_padding::pad#3 printf_padding::pad#5
|
|
Identical Phi Values printf_padding::putc#3 printf_padding::putc#5
|
|
Identical Phi Values printf_sint::value#2 printf_sint::value#1
|
|
Identical Phi Values printf_sint::format_sign_always#1 printf_sint::format_sign_always#0
|
|
Identical Phi Values printf_sint::format_radix#1 printf_sint::format_radix#0
|
|
Identical Phi Values printf_sint::putc#1 printf_sint::putc#0
|
|
Identical Phi Values printf_sint::format_min_length#1 printf_sint::format_min_length#0
|
|
Identical Phi Values printf_sint::format_justify_left#1 printf_sint::format_justify_left#0
|
|
Identical Phi Values printf_sint::format_zero_padding#1 printf_sint::format_zero_padding#0
|
|
Identical Phi Values printf_sint::format_upper_case#1 printf_sint::format_upper_case#0
|
|
Identical Phi Values printf_number_buffer::format_min_length#1 printf_number_buffer::format_min_length#0
|
|
Identical Phi Values printf_number_buffer::format_justify_left#1 printf_number_buffer::format_justify_left#0
|
|
Identical Phi Values printf_number_buffer::format_zero_padding#1 printf_number_buffer::format_zero_padding#0
|
|
Identical Phi Values printf_number_buffer::buffer_digits#1 printf_number_buffer::buffer_digits#0
|
|
Identical Phi Values printf_number_buffer::buffer_sign#1 printf_number_buffer::buffer_sign#0
|
|
Identical Phi Values printf_number_buffer::putc#1 printf_number_buffer::putc#0
|
|
Identical Phi Values printf_number_buffer::format_upper_case#1 printf_number_buffer::format_upper_case#0
|
|
Identical Phi Values test_casting::signed_short_value#1 test_casting::signed_short_value#0
|
|
Successful SSA optimization Pass2IdenticalPhiElimination
|
|
Identical Phi Values memset::return#0 memset::str#3
|
|
Successful SSA optimization Pass2IdenticalPhiElimination
|
|
Simple Condition clrscr::$0 [5] if(clrscr::l#2<$19) goto clrscr::@2
|
|
Simple Condition clrscr::$1 [13] if(clrscr::c#2<$28) goto clrscr::@5
|
|
Simple Condition gotoxy::$1 [23] if(gotoxy::y#3<=$19) goto gotoxy::@1
|
|
Simple Condition gotoxy::$3 [26] if(gotoxy::x#3<$28) goto gotoxy::@2
|
|
Simple Condition cputc::$0 [41] if(cputc::c#0=='
|
|
') goto cputc::@1
|
|
Simple Condition cputc::$2 [47] if(conio_cursor_x!=$28) goto cputc::@return
|
|
Simple Condition memcpy::$1 [63] if(memcpy::src#2!=memcpy::src_end#0) goto memcpy::@2
|
|
Simple Condition memset::$1 [70] if(memset::num#2<=0) goto memset::@1
|
|
Simple Condition memset::$3 [77] if(memset::dst#2!=memset::end#0) goto memset::@4
|
|
Simple Condition strlen::$0 [85] if(0!=*strlen::str#2) goto strlen::@2
|
|
Simple Condition strupr::$1 [100] if(0!=*strupr::src#2) goto strupr::@2
|
|
Simple Condition cscroll::$1 [109] if(conio_cursor_y!=$19) goto cscroll::@return
|
|
Simple Condition cscroll::$7 [111] if(0!=conio_scroll_enable) goto cscroll::@3
|
|
Simple Condition conio_c64_init::$1 [141] if(conio_c64_init::line#0<$19) goto conio_c64_init::@1
|
|
Simple Condition utoa::$0 [152] if(utoa::radix#0==DECIMAL) goto utoa::@1
|
|
Simple Condition utoa::$1 [156] if(utoa::radix#0==HEXADECIMAL) goto utoa::@2
|
|
Simple Condition utoa::$2 [160] if(utoa::radix#0==OCTAL) goto utoa::@3
|
|
Simple Condition utoa::$3 [164] if(utoa::radix#0==BINARY) goto utoa::@4
|
|
Simple Condition utoa::$5 [181] if(utoa::digit#2<utoa::$4) goto utoa::@11
|
|
Simple Condition utoa_append::$0 [206] if(utoa_append::value#2>=utoa_append::sub#0) goto utoa_append::@2
|
|
Simple Condition printf_str::$2 [217] if(0!=printf_str::c#1) goto printf_str::@2
|
|
Simple Condition printf_padding::$0 [226] if(printf_padding::i#2<printf_padding::length#4) goto printf_padding::@2
|
|
Simple Condition printf_sint::$0 [235] if(printf_sint::value#1<0) goto printf_sint::@1
|
|
Simple Condition printf_sint::$3 [239] if(0==printf_sint::format_sign_always#0) goto printf_sint::@2
|
|
Simple Condition printf_number_buffer::$0 [261] if(0==printf_number_buffer::format_min_length#0) goto printf_number_buffer::@1
|
|
Simple Condition printf_number_buffer::$20 [275] if(0==printf_number_buffer::buffer_sign#0) goto printf_number_buffer::@13
|
|
Simple Condition printf_number_buffer::$23 [280] if(printf_number_buffer::padding#1>=0) goto printf_number_buffer::@1
|
|
Simple Condition printf_number_buffer::$7 [284] if(0==printf_number_buffer::buffer_sign#0) goto printf_number_buffer::@3
|
|
Simple Condition printf_number_buffer::$12 [296] if(0==printf_number_buffer::format_upper_case#0) goto printf_number_buffer::@5
|
|
Simple Condition main::$1 [335] if(main::signed_char_value#2!=0) goto main::@2
|
|
Successful SSA optimization Pass2ConditionalJumpSimplification
|
|
Rewriting && if()-condition to two if()s [92] toupper::$2 = toupper::$0 && toupper::$1
|
|
Rewriting ! if()-condition to reversed if() [186] utoa::$8 = ! utoa::$7
|
|
Rewriting || if()-condition to two if()s [185] utoa::$7 = utoa::started#2 || utoa::$6
|
|
Rewriting ! if()-condition to reversed if() [267] printf_number_buffer::$5 = ! printf_number_buffer::$4
|
|
Rewriting && if()-condition to two if()s [266] printf_number_buffer::$4 = printf_number_buffer::$3 && printf_number_buffer::padding#10
|
|
Rewriting && if()-condition to two if()s [265] printf_number_buffer::$3 = printf_number_buffer::$1 && printf_number_buffer::$2
|
|
Rewriting ! if()-condition to reversed if() [290] printf_number_buffer::$10 = ! printf_number_buffer::$9
|
|
Rewriting && if()-condition to two if()s [289] printf_number_buffer::$9 = printf_number_buffer::format_zero_padding#0 && printf_number_buffer::padding#10
|
|
Rewriting ! if()-condition to reversed if() [307] printf_number_buffer::$17 = ! printf_number_buffer::$16
|
|
Rewriting && if()-condition to two if()s [306] printf_number_buffer::$16 = printf_number_buffer::$15 && printf_number_buffer::padding#10
|
|
Rewriting && if()-condition to two if()s [305] printf_number_buffer::$15 = printf_number_buffer::format_justify_left#0 && printf_number_buffer::$14
|
|
Successful SSA optimization Pass2ConditionalAndOrRewriting
|
|
Warning! Adding boolean cast to non-boolean condition utoa::started#2
|
|
Warning! Adding boolean cast to non-boolean condition printf_number_buffer::format_zero_padding#0
|
|
Warning! Adding boolean cast to non-boolean condition printf_number_buffer::format_justify_left#0
|
|
Warning! Adding boolean cast to non-boolean condition printf_number_buffer::padding#10
|
|
Warning! Adding boolean cast to non-boolean condition printf_number_buffer::padding#10
|
|
Warning! Adding boolean cast to non-boolean condition printf_number_buffer::padding#10
|
|
Constant right-side identified [114] memcpy::num#0 = (unumber)$19*$28-$28
|
|
Constant right-side identified [119] memcpy::num#1 = (unumber)$19*$28-$28
|
|
Constant right-side identified [146] conio_c64_init::line#1 = (unumber)$19-1
|
|
Successful SSA optimization Pass2ConstantRValueConsolidation
|
|
Constant clrscr::line_text#0 = DEFAULT_SCREEN
|
|
Constant clrscr::line_cols#0 = COLORRAM
|
|
Constant clrscr::l#0 = 0
|
|
Constant clrscr::c#0 = 0
|
|
Constant gotoxy::y#0 = 0
|
|
Constant gotoxy::x#0 = 0
|
|
Constant strlen::len#0 = 0
|
|
Constant memcpy::destination#0 = (void *)DEFAULT_SCREEN
|
|
Constant memcpy::source#0 = (void *)DEFAULT_SCREEN+$28
|
|
Constant memcpy::num#0 = (unumber)$19*$28-$28
|
|
Constant memcpy::destination#1 = (void *)COLORRAM
|
|
Constant memcpy::source#1 = (void *)COLORRAM+$28
|
|
Constant memcpy::num#1 = (unumber)$19*$28-$28
|
|
Constant memset::str#0 = (void *)DEFAULT_SCREEN+(unsigned int)$19*$28-$28
|
|
Constant memset::c#0 = ' '
|
|
Constant memset::num#0 = $28
|
|
Constant memset::str#1 = (void *)COLORRAM+(unsigned int)$19*$28-$28
|
|
Constant memset::num#1 = $28
|
|
Constant gotoxy::x#1 = 0
|
|
Constant gotoxy::y#1 = 0
|
|
Constant gotoxy::x#2 = 0
|
|
Constant conio_c64_init::line#1 = (unumber)$19-1
|
|
Constant utoa::max_digits#0 = 0
|
|
Constant utoa::digit_values#0 = (unsigned int *) 0
|
|
Constant utoa::max_digits#1 = 5
|
|
Constant utoa::digit_values#1 = RADIX_DECIMAL_VALUES
|
|
Constant utoa::max_digits#2 = 4
|
|
Constant utoa::digit_values#2 = RADIX_HEXADECIMAL_VALUES
|
|
Constant utoa::max_digits#3 = 6
|
|
Constant utoa::digit_values#3 = RADIX_OCTAL_VALUES
|
|
Constant utoa::max_digits#4 = $10
|
|
Constant utoa::digit_values#4 = RADIX_BINARY_VALUES
|
|
Constant utoa::started#0 = 0
|
|
Constant utoa::digit#0 = 0
|
|
Constant utoa::started#1 = 1
|
|
Constant utoa_append::digit#0 = 0
|
|
Constant printf_str::c#0 = 0
|
|
Constant printf_padding::i#0 = 0
|
|
Constant utoa::buffer#5 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
Constant printf_number_buffer::buffer_digits#0 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
Constant printf_number_buffer::padding#0 = 0
|
|
Constant printf_number_buffer::padding#2 = 0
|
|
Constant printf_padding::pad#0 = ' '
|
|
Constant printf_padding::pad#1 = '0'
|
|
Constant printf_padding::pad#2 = ' '
|
|
Constant printf_sint::putc#0 = &cputc
|
|
Constant printf_sint::format_min_length#0 = 0
|
|
Constant printf_sint::format_justify_left#0 = 0
|
|
Constant printf_sint::format_sign_always#0 = 0
|
|
Constant printf_sint::format_zero_padding#0 = 0
|
|
Constant printf_sint::format_upper_case#0 = 0
|
|
Constant printf_sint::format_radix#0 = DECIMAL
|
|
Constant printf_str::putc#1 = &cputc
|
|
Constant printf_str::s#2 = test_casting::s
|
|
Constant main::signed_char_value#0 = -5
|
|
Constant conio_textcolor = LIGHT_BLUE
|
|
Constant conio_scroll_enable = 1
|
|
Successful SSA optimization Pass2ConstantIdentification
|
|
Constant memset::c#1 = conio_textcolor
|
|
Constant utoa::radix#0 = printf_sint::format_radix#0
|
|
Constant printf_number_buffer::putc#0 = printf_sint::putc#0
|
|
Constant printf_number_buffer::format_min_length#0 = printf_sint::format_min_length#0
|
|
Constant printf_number_buffer::format_justify_left#0 = printf_sint::format_justify_left#0
|
|
Constant printf_number_buffer::format_sign_always#0 = printf_sint::format_sign_always#0
|
|
Constant printf_number_buffer::format_zero_padding#0 = printf_sint::format_zero_padding#0
|
|
Constant printf_number_buffer::format_upper_case#0 = printf_sint::format_upper_case#0
|
|
Constant printf_number_buffer::format_radix#0 = printf_sint::format_radix#0
|
|
Constant strlen::str#1 = printf_number_buffer::buffer_digits#0
|
|
Constant printf_str::s#1 = printf_number_buffer::buffer_digits#0
|
|
Constant strupr::str#0 = printf_number_buffer::buffer_digits#0
|
|
Successful SSA optimization Pass2ConstantIdentification
|
|
Constant printf_number_buffer::$25 = (signed char)printf_number_buffer::format_min_length#0
|
|
Constant printf_padding::putc#0 = printf_number_buffer::putc#0
|
|
Constant printf_padding::putc#1 = printf_number_buffer::putc#0
|
|
Constant printf_str::putc#0 = printf_number_buffer::putc#0
|
|
Constant strupr::return#2 = strupr::str#0
|
|
Constant printf_padding::putc#2 = printf_number_buffer::putc#0
|
|
Successful SSA optimization Pass2ConstantIdentification
|
|
Replacing constant pointer function [293] callexecute cputc
|
|
Successful SSA optimization Pass2ConstantCallPointerIdentification
|
|
if() condition always true - replacing block destination [111] if(0!=conio_scroll_enable) goto cscroll::@3
|
|
if() condition always true - replacing block destination [152] if(utoa::radix#0==DECIMAL) goto utoa::@1
|
|
if() condition always false - eliminating [156] if(utoa::radix#0==HEXADECIMAL) goto utoa::@2
|
|
if() condition always false - eliminating [160] if(utoa::radix#0==OCTAL) goto utoa::@3
|
|
if() condition always false - eliminating [164] if(utoa::radix#0==BINARY) goto utoa::@4
|
|
if() condition always true - replacing block destination [239] if(0==printf_sint::format_sign_always#0) goto printf_sint::@2
|
|
if() condition always true - replacing block destination [261] if(0==printf_number_buffer::format_min_length#0) goto printf_number_buffer::@1
|
|
if() condition always true - replacing block destination [296] if(0==printf_number_buffer::format_upper_case#0) goto printf_number_buffer::@5
|
|
Successful SSA optimization Pass2ConstantIfs
|
|
Rewriting conditional comparison [23] if(gotoxy::y#3<=$19) goto gotoxy::@1
|
|
Simplifying constant evaluating to zero (signed char)printf_number_buffer::format_min_length#0 in
|
|
Successful SSA optimization PassNSimplifyConstantZero
|
|
Simplifying expression containing zero (char *)&printf_buffer in [233] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = 0
|
|
Simplifying expression containing zero (char *)&printf_buffer in [237] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = '-'
|
|
Simplifying expression containing zero (char *)&printf_buffer in [240] *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN) = '+'
|
|
Simplifying expression containing zero (char *)&printf_buffer in [248] printf_number_buffer::buffer_sign#0 = *((char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN)
|
|
Simplifying expression containing zero printf_number_buffer::len#2 in [278] printf_number_buffer::padding#1 = printf_number_buffer::$25 - printf_number_buffer::len#2
|
|
Successful SSA optimization PassNSimplifyExpressionWithZero
|
|
Eliminating variable strlen::str#2 from unused block strlen::@1
|
|
Eliminating variable strlen::len#2 from unused block strlen::@1
|
|
Eliminating variable strlen::len#1 from unused block strlen::@2
|
|
Eliminating variable strlen::str#0 from unused block strlen::@2
|
|
Eliminating variable toupper::$0 from unused block toupper
|
|
Eliminating variable toupper::$1 from unused block toupper
|
|
Eliminating variable toupper::return#0 from unused block toupper::@1
|
|
Eliminating variable toupper::return#2 from unused block toupper::@return
|
|
Eliminating variable strupr::src#2 from unused block strupr::@1
|
|
Eliminating variable toupper::ch#0 from unused block strupr::@2
|
|
Eliminating variable toupper::return#3 from unused block strupr::@2
|
|
Eliminating variable strupr::$0 from unused block strupr::@4
|
|
Eliminating variable strupr::src#1 from unused block strupr::@4
|
|
Eliminating variable utoa::buffer#0 from unused block utoa::@9
|
|
Eliminating variable utoa::buffer#1 from unused block utoa::@9
|
|
Eliminating variable utoa::buffer#2 from unused block utoa::@9
|
|
Eliminating variable strlen::return#2 from unused block printf_number_buffer::@6
|
|
Eliminating variable printf_number_buffer::$19 from unused block printf_number_buffer::@15
|
|
Eliminating variable printf_number_buffer::len#0 from unused block printf_number_buffer::@15
|
|
Eliminating variable printf_number_buffer::len#2 from unused block printf_number_buffer::@13
|
|
Eliminating variable printf_number_buffer::padding#1 from unused block printf_number_buffer::@13
|
|
Eliminating variable printf_number_buffer::len#1 from unused block printf_number_buffer::@7
|
|
Removing unused procedure strlen
|
|
Removing unused procedure block strlen
|
|
Removing PHI-reference to removed block (strlen) in block strlen::@1
|
|
Removing PHI-reference to removed block (strlen) in block strlen::@1
|
|
Removing unused procedure block strlen::@1
|
|
Removing unused procedure block strlen::@2
|
|
Removing unused procedure block strlen::@3
|
|
Removing unused procedure block strlen::@return
|
|
Removing unused procedure toupper
|
|
Removing unused procedure block toupper
|
|
Removing unused procedure block toupper::@1
|
|
Removing PHI-reference to removed block (toupper::@1) in block toupper::@return
|
|
Removing unused procedure block toupper::@2
|
|
Removing PHI-reference to removed block (toupper::@2) in block toupper::@return
|
|
Removing unused procedure block toupper::@return
|
|
Removing unused procedure block toupper::@3
|
|
Removing unused procedure strupr
|
|
Removing unused procedure block strupr
|
|
Removing PHI-reference to removed block (strupr) in block strupr::@1
|
|
Removing unused procedure block strupr::@1
|
|
Removing unused procedure block strupr::@2
|
|
Removing unused procedure block strupr::@4
|
|
Removing unused procedure block strupr::@3
|
|
Removing unused procedure block strupr::@return
|
|
Removing PHI-reference to removed block (cscroll::@2) in block gotoxy
|
|
Removing PHI-reference to removed block (cscroll::@2) in block gotoxy
|
|
Removing unused block cscroll::@2
|
|
Removing unused block cscroll::@8
|
|
Removing unused block utoa::@6
|
|
Removing PHI-reference to removed block (utoa::@2) in block utoa::@5
|
|
Removing PHI-reference to removed block (utoa::@2) in block utoa::@5
|
|
Removing unused block utoa::@2
|
|
Removing unused block utoa::@7
|
|
Removing PHI-reference to removed block (utoa::@3) in block utoa::@5
|
|
Removing PHI-reference to removed block (utoa::@3) in block utoa::@5
|
|
Removing unused block utoa::@3
|
|
Removing unused block utoa::@8
|
|
Removing PHI-reference to removed block (utoa::@4) in block utoa::@5
|
|
Removing PHI-reference to removed block (utoa::@4) in block utoa::@5
|
|
Removing unused block utoa::@4
|
|
Removing unused block utoa::@9
|
|
Removing PHI-reference to removed block (printf_sint::@4) in block printf_sint::@2
|
|
Removing unused block printf_sint::@4
|
|
Removing unused block printf_number_buffer::@6
|
|
Removing PHI-reference to removed block (printf_number_buffer::@15) in block printf_number_buffer::@13
|
|
Removing unused block printf_number_buffer::@15
|
|
Removing PHI-reference to removed block (printf_number_buffer::@13) in block printf_number_buffer::@1
|
|
Removing unused block printf_number_buffer::@13
|
|
Removing unused block printf_number_buffer::@7
|
|
Removing PHI-reference to removed block (printf_number_buffer::@14) in block printf_number_buffer::@1
|
|
Removing unused block printf_number_buffer::@14
|
|
Removing unused block printf_number_buffer::@11
|
|
Removing unused block printf_number_buffer::@19
|
|
Successful SSA optimization Pass2EliminateUnusedBlocks
|
|
Eliminating unused variable memcpy::return#2 and assignment [67] memcpy::return#2 = memcpy::destination#2
|
|
Eliminating unused variable memcpy::return#3 and assignment [69] memcpy::return#3 = memcpy::destination#2
|
|
Eliminating unused variable memset::return#2 and assignment [71] memset::return#2 = memset::str#3
|
|
Eliminating unused variable memset::return#3 and assignment [73] memset::return#3 = memset::str#3
|
|
Eliminating unused constant gotoxy::x#1
|
|
Eliminating unused constant gotoxy::y#1
|
|
Eliminating unused constant BINARY
|
|
Eliminating unused constant OCTAL
|
|
Eliminating unused constant HEXADECIMAL
|
|
Eliminating unused constant utoa::max_digits#0
|
|
Eliminating unused constant utoa::digit_values#0
|
|
Eliminating unused constant utoa::max_digits#2
|
|
Eliminating unused constant utoa::digit_values#2
|
|
Eliminating unused constant utoa::max_digits#3
|
|
Eliminating unused constant utoa::digit_values#3
|
|
Eliminating unused constant utoa::max_digits#4
|
|
Eliminating unused constant utoa::digit_values#4
|
|
Eliminating unused constant utoa::radix#0
|
|
Eliminating unused constant printf_str::c#0
|
|
Eliminating unused constant printf_number_buffer::padding#2
|
|
Eliminating unused constant printf_number_buffer::format_min_length#0
|
|
Eliminating unused constant printf_number_buffer::format_sign_always#0
|
|
Eliminating unused constant printf_number_buffer::format_upper_case#0
|
|
Eliminating unused constant printf_number_buffer::format_radix#0
|
|
Eliminating unused constant printf_number_buffer::$25
|
|
Eliminating unused constant OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_SIGN
|
|
Eliminating unused constant conio_scroll_enable
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
Eliminating unused constant RADIX_BINARY_VALUES
|
|
Eliminating unused constant RADIX_OCTAL_VALUES
|
|
Eliminating unused constant RADIX_HEXADECIMAL_VALUES
|
|
Eliminating unused constant printf_sint::format_min_length#0
|
|
Eliminating unused constant printf_sint::format_sign_always#0
|
|
Eliminating unused constant printf_sint::format_upper_case#0
|
|
Eliminating unused constant printf_sint::format_radix#0
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
Eliminating unused constant DECIMAL
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
Adding number conversion cast (unumber) $19+1 in if(gotoxy::y#3<$19+1) goto gotoxy::@1
|
|
Adding number conversion cast (unumber) 1 in if(gotoxy::y#3<(unumber)$19+1) goto gotoxy::@1
|
|
Adding number conversion cast (unumber) 0 in utoa::$12 = 0 != utoa::started#2
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$33 = 0 != printf_number_buffer::format_zero_padding#0
|
|
Adding number conversion cast (unumber) 0 in printf_number_buffer::$34 = 0 != printf_number_buffer::format_justify_left#0
|
|
Adding number conversion cast (snumber) 0 in printf_number_buffer::$35 = 0 != printf_number_buffer::padding#10
|
|
Adding number conversion cast (snumber) 0 in printf_number_buffer::$36 = 0 != printf_number_buffer::padding#10
|
|
Adding number conversion cast (snumber) 0 in printf_number_buffer::$37 = 0 != printf_number_buffer::padding#10
|
|
Successful SSA optimization PassNAddNumberTypeConversions
|
|
Simplifying constant integer cast $19+(unumber)1
|
|
Simplifying constant integer cast 1
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Simplifying constant integer cast 0
|
|
Successful SSA optimization PassNCastSimplification
|
|
Finalized unsigned number type (char) 1
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized unsigned number type (char) 0
|
|
Finalized signed number type (signed char) 0
|
|
Finalized signed number type (signed char) 0
|
|
Finalized signed number type (signed char) 0
|
|
Successful SSA optimization PassNFinalizeNumberTypeConversions
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Identical Phi Values gotoxy::y#3 gotoxy::y#2
|
|
Identical Phi Values gotoxy::x#3 gotoxy::x#2
|
|
Identical Phi Values utoa::max_digits#7 utoa::max_digits#1
|
|
Identical Phi Values utoa::digit_values#8 utoa::digit_values#1
|
|
Identical Phi Values printf_number_buffer::padding#10 printf_number_buffer::padding#0
|
|
Successful SSA optimization Pass2IdenticalPhiElimination
|
|
Simple Condition utoa::$12 [89] if(0!=utoa::started#2) goto utoa::@14
|
|
Simple Condition printf_number_buffer::$1 [140] if(0==printf_number_buffer::format_justify_left#0) goto printf_number_buffer::@22
|
|
Simple Condition printf_number_buffer::$33 [145] if(0!=printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@23
|
|
Simple Condition printf_number_buffer::$34 [154] if(0!=printf_number_buffer::format_justify_left#0) goto printf_number_buffer::@25
|
|
Simple Condition utoa::$6 [176] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@14
|
|
Simple Condition printf_number_buffer::$35 [178] if(0!=printf_number_buffer::padding#0) goto printf_number_buffer::@8
|
|
Simple Condition printf_number_buffer::$2 [179] if(0==printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@21
|
|
Simple Condition printf_number_buffer::$36 [181] if(0!=printf_number_buffer::padding#0) goto printf_number_buffer::@10
|
|
Simple Condition printf_number_buffer::$37 [183] if(0!=printf_number_buffer::padding#0) goto printf_number_buffer::@12
|
|
Simple Condition printf_number_buffer::$14 [184] if(0==printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@24
|
|
Successful SSA optimization Pass2ConditionalJumpSimplification
|
|
Negating conditional jump and destination [140] if(0!=printf_number_buffer::format_justify_left#0) goto printf_number_buffer::@2
|
|
Negating conditional jump and destination [145] if(0==printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@4
|
|
Negating conditional jump and destination [154] if(0==printf_number_buffer::format_justify_left#0) goto printf_number_buffer::@return
|
|
Negating conditional jump and destination [179] if(0!=printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@2
|
|
Negating conditional jump and destination [184] if(0!=printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@return
|
|
Successful SSA optimization Pass2ConditionalJumpSequenceImprovement
|
|
Constant right-side identified [83] utoa::$4 = utoa::max_digits#1 - 1
|
|
Constant right-side identified [142] printf_padding::length#0 = (char)printf_number_buffer::padding#0
|
|
Constant right-side identified [149] printf_padding::length#1 = (char)printf_number_buffer::padding#0
|
|
Constant right-side identified [155] printf_padding::length#2 = (char)printf_number_buffer::padding#0
|
|
Successful SSA optimization Pass2ConstantRValueConsolidation
|
|
Constant utoa::$4 = utoa::max_digits#1-1
|
|
Constant printf_padding::length#0 = (char)printf_number_buffer::padding#0
|
|
Constant printf_padding::length#1 = (char)printf_number_buffer::padding#0
|
|
Constant printf_padding::length#2 = (char)printf_number_buffer::padding#0
|
|
Successful SSA optimization Pass2ConstantIdentification
|
|
if() condition always true - replacing block destination [18] if(gotoxy::x#2<$28) goto gotoxy::@2
|
|
if() condition always false - eliminating [140] if(0!=printf_number_buffer::format_justify_left#0) goto printf_number_buffer::@2
|
|
if() condition always true - replacing block destination [145] if(0==printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@4
|
|
if() condition always true - replacing block destination [154] if(0==printf_number_buffer::format_justify_left#0) goto printf_number_buffer::@return
|
|
if() condition always false - eliminating [178] if(0!=printf_number_buffer::padding#0) goto printf_number_buffer::@8
|
|
if() condition always false - eliminating [179] if(0!=printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@2
|
|
if() condition always false - eliminating [181] if(0!=printf_number_buffer::padding#0) goto printf_number_buffer::@10
|
|
if() condition always false - eliminating [183] if(0!=printf_number_buffer::padding#0) goto printf_number_buffer::@12
|
|
if() condition always false - eliminating [184] if(0!=printf_number_buffer::format_zero_padding#0) goto printf_number_buffer::@return
|
|
Successful SSA optimization Pass2ConstantIfs
|
|
Simplifying constant evaluating to zero (char)printf_number_buffer::padding#0 in
|
|
Simplifying constant evaluating to zero (char)printf_number_buffer::padding#0 in
|
|
Simplifying constant evaluating to zero (char)printf_number_buffer::padding#0 in
|
|
Successful SSA optimization PassNSimplifyConstantZero
|
|
Eliminating variable printf_padding::length#4 from unused block printf_padding
|
|
Eliminating variable printf_padding::pad#5 from unused block printf_padding
|
|
Eliminating variable printf_padding::putc#5 from unused block printf_padding
|
|
Eliminating variable printf_padding::i#2 from unused block printf_padding::@1
|
|
Eliminating variable printf_padding::i#1 from unused block printf_padding::@3
|
|
Removing PHI-reference to removed block (gotoxy::@4) in block gotoxy::@2
|
|
Removing unused block gotoxy::@4
|
|
Removing unused procedure printf_padding
|
|
Removing unused procedure block printf_padding
|
|
Removing PHI-reference to removed block (printf_padding) in block printf_padding::@1
|
|
Removing unused procedure block printf_padding::@1
|
|
Removing unused procedure block printf_padding::@2
|
|
Removing unused procedure block printf_padding::@3
|
|
Removing unused procedure block printf_padding::@return
|
|
Removing unused block printf_number_buffer::@8
|
|
Removing unused block printf_number_buffer::@16
|
|
Removing unused block printf_number_buffer::@10
|
|
Removing unused block printf_number_buffer::@17
|
|
Removing unused block printf_number_buffer::@12
|
|
Removing unused block printf_number_buffer::@20
|
|
Removing unused block printf_number_buffer::@23
|
|
Removing unused block printf_number_buffer::@24
|
|
Removing unused block printf_number_buffer::@25
|
|
Successful SSA optimization Pass2EliminateUnusedBlocks
|
|
Eliminating unused constant gotoxy::x#0
|
|
Eliminating unused constant printf_number_buffer::padding#0
|
|
Eliminating unused constant printf_number_buffer::format_justify_left#0
|
|
Eliminating unused constant printf_number_buffer::format_zero_padding#0
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
Eliminating unused constant printf_sint::format_justify_left#0
|
|
Eliminating unused constant printf_sint::format_zero_padding#0
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Identical Phi Values gotoxy::x#4 gotoxy::x#2
|
|
Successful SSA optimization Pass2IdenticalPhiElimination
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Inlining Noop Cast [42] memcpy::src#0 = (char *)memcpy::source#2 keeping memcpy::source#2
|
|
Inlining Noop Cast [43] memcpy::dst#0 = (char *)memcpy::destination#2 keeping memcpy::destination#2
|
|
Inlining Noop Cast [44] memcpy::$2 = (char *)memcpy::source#2 keeping memcpy::source#2
|
|
Inlining Noop Cast [54] memset::$4 = (char *)memset::str#3 keeping memset::str#3
|
|
Inlining Noop Cast [56] memset::dst#0 = (char *)memset::str#3 keeping memset::str#3
|
|
Inlining Noop Cast [116] printf_sint::uvalue#0 = (unsigned int)printf_sint::value#4 keeping printf_sint::value#4
|
|
Successful SSA optimization Pass2NopCastInlining
|
|
Rewriting multiplication to use shift and addition[20] gotoxy::line_offset#0 = gotoxy::$7 * $28
|
|
Rewriting multiplication to use shift [80] utoa::$10 = utoa::digit#2 * SIZEOF_UNSIGNED_INT
|
|
Successful SSA optimization Pass2MultiplyToShiftRewriting
|
|
Inlining constant with var siblings clrscr::line_text#0
|
|
Inlining constant with var siblings clrscr::line_cols#0
|
|
Inlining constant with var siblings clrscr::l#0
|
|
Inlining constant with var siblings clrscr::c#0
|
|
Inlining constant with var siblings gotoxy::y#0
|
|
Inlining constant with var siblings memcpy::destination#0
|
|
Inlining constant with var siblings memcpy::source#0
|
|
Inlining constant with var siblings memcpy::num#0
|
|
Inlining constant with var siblings memcpy::destination#1
|
|
Inlining constant with var siblings memcpy::source#1
|
|
Inlining constant with var siblings memcpy::num#1
|
|
Inlining constant with var siblings memset::str#0
|
|
Inlining constant with var siblings memset::c#0
|
|
Inlining constant with var siblings memset::num#0
|
|
Inlining constant with var siblings memset::str#1
|
|
Inlining constant with var siblings memset::num#1
|
|
Inlining constant with var siblings memset::c#1
|
|
Inlining constant with var siblings conio_c64_init::line#1
|
|
Inlining constant with var siblings utoa::started#0
|
|
Inlining constant with var siblings utoa::digit#0
|
|
Inlining constant with var siblings utoa::started#1
|
|
Inlining constant with var siblings utoa::buffer#5
|
|
Inlining constant with var siblings utoa_append::digit#0
|
|
Inlining constant with var siblings printf_str::putc#1
|
|
Inlining constant with var siblings printf_str::s#2
|
|
Inlining constant with var siblings printf_str::s#1
|
|
Inlining constant with var siblings printf_str::putc#0
|
|
Inlining constant with var siblings main::signed_char_value#0
|
|
Constant inlined utoa_append::digit#0 = 0
|
|
Constant inlined utoa::digit_values#1 = RADIX_DECIMAL_VALUES
|
|
Constant inlined printf_str::putc#0 = printf_sint::putc#0
|
|
Constant inlined conio_textcolor = LIGHT_BLUE
|
|
Constant inlined printf_str::putc#1 = &cputc
|
|
Constant inlined memcpy::destination#0 = (void *)DEFAULT_SCREEN
|
|
Constant inlined memset::num#1 = $28
|
|
Constant inlined memcpy::destination#1 = (void *)COLORRAM
|
|
Constant inlined memset::num#0 = $28
|
|
Constant inlined clrscr::l#0 = 0
|
|
Constant inlined conio_c64_init::line#1 = (char)$19-1
|
|
Constant inlined memcpy::source#1 = (void *)COLORRAM+$28
|
|
Constant inlined utoa::digit#0 = 0
|
|
Constant inlined printf_str::s#1 = printf_number_buffer::buffer_digits#0
|
|
Constant inlined main::signed_char_value#0 = -5
|
|
Constant inlined printf_str::s#2 = test_casting::s
|
|
Constant inlined utoa::$4 = utoa::max_digits#1-1
|
|
Constant inlined memset::str#1 = (void *)COLORRAM+(unsigned int)$19*$28-$28
|
|
Constant inlined memset::str#0 = (void *)DEFAULT_SCREEN+(unsigned int)$19*$28-$28
|
|
Constant inlined clrscr::line_text#0 = DEFAULT_SCREEN
|
|
Constant inlined utoa::started#1 = 1
|
|
Constant inlined utoa::started#0 = 0
|
|
Constant inlined printf_number_buffer::putc#0 = printf_sint::putc#0
|
|
Constant inlined memcpy::source#0 = (void *)DEFAULT_SCREEN+$28
|
|
Constant inlined memcpy::num#1 = (unsigned int)$19*$28-$28
|
|
Constant inlined memcpy::num#0 = (unsigned int)$19*$28-$28
|
|
Constant inlined utoa::buffer#5 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
Constant inlined gotoxy::y#0 = 0
|
|
Constant inlined memset::c#0 = ' '
|
|
Constant inlined memset::c#1 = LIGHT_BLUE
|
|
Constant inlined clrscr::c#0 = 0
|
|
Constant inlined clrscr::line_cols#0 = COLORRAM
|
|
Successful SSA optimization Pass2ConstantInlining
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Alias gotoxy::line_offset#0 = gotoxy::$10
|
|
Successful SSA optimization Pass2AliasElimination
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Identical Phi Values memcpy::num#2 (unsigned int)$19*$28-$28
|
|
Identical Phi Values memset::num#2 $28
|
|
Successful SSA optimization Pass2IdenticalPhiElimination
|
|
if() condition always false - eliminating [52] if($28<=0) goto memset::@1
|
|
Successful SSA optimization Pass2ConstantIfs
|
|
Eliminating unused constant SIZEOF_UNSIGNED_INT
|
|
Successful SSA optimization PassNEliminateUnusedVars
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Finalized unsigned number type (char) 2
|
|
Finalized unsigned number type (char) 8
|
|
Finalized unsigned number type (char) $a
|
|
Finalized unsigned number type (char) $10
|
|
Finalized unsigned number type (char) $b
|
|
Finalized unsigned number type (char) $b
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) $28
|
|
Finalized unsigned number type (char) $19
|
|
Finalized unsigned number type (char) 1
|
|
Finalized unsigned number type (char) 1
|
|
Finalized unsigned number type (char) 1
|
|
Successful SSA optimization PassNFinalizeNumberTypeConversions
|
|
Simplifying constant integer cast $19-1
|
|
Successful SSA optimization PassNCastSimplification
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Alias candidate removed (volatile)conio_line_text = gotoxy::$5
|
|
Alias candidate removed (volatile)conio_line_color = gotoxy::$6
|
|
Added new block during phi lifting gotoxy::@5(between gotoxy and gotoxy::@1)
|
|
Added new block during phi lifting conio_c64_init::@4(between conio_c64_init and conio_c64_init::@1)
|
|
Added new block during phi lifting utoa::@17(between utoa::@16 and utoa::@13)
|
|
Adding NOP phi() at start of __start
|
|
Adding NOP phi() at start of __start::@2
|
|
Adding NOP phi() at start of __start::@1
|
|
Adding NOP phi() at start of __start::@3
|
|
Adding NOP phi() at start of conio_c64_init::@2
|
|
Adding NOP phi() at start of conio_c64_init::@3
|
|
Adding NOP phi() at start of cputc::@3
|
|
Adding NOP phi() at start of cputc::@5
|
|
Adding NOP phi() at start of cputc::@1
|
|
Adding NOP phi() at start of cputc::@4
|
|
Adding NOP phi() at start of main
|
|
Adding NOP phi() at start of main::@3
|
|
Adding NOP phi() at start of gotoxy::@3
|
|
Adding NOP phi() at start of cputln::@1
|
|
Adding NOP phi() at start of clrscr
|
|
Adding NOP phi() at start of clrscr::@2
|
|
Adding NOP phi() at start of test_casting::@1
|
|
Adding NOP phi() at start of test_casting::@2
|
|
Adding NOP phi() at start of cscroll::@1
|
|
Adding NOP phi() at start of cscroll::@3
|
|
Adding NOP phi() at start of cscroll::@4
|
|
Adding NOP phi() at start of cscroll::@5
|
|
Adding NOP phi() at start of cscroll::@6
|
|
Adding NOP phi() at start of printf_sint::@6
|
|
Adding NOP phi() at start of memcpy::@3
|
|
Adding NOP phi() at start of memset::@1
|
|
Adding NOP phi() at start of utoa
|
|
Adding NOP phi() at start of utoa::@1
|
|
Adding NOP phi() at start of printf_number_buffer
|
|
Adding NOP phi() at start of printf_number_buffer::@1
|
|
Adding NOP phi() at start of printf_number_buffer::@22
|
|
Adding NOP phi() at start of printf_number_buffer::@21
|
|
Adding NOP phi() at start of printf_number_buffer::@3
|
|
Adding NOP phi() at start of printf_number_buffer::@4
|
|
Adding NOP phi() at start of printf_number_buffer::@5
|
|
Adding NOP phi() at start of printf_number_buffer::@18
|
|
CALL GRAPH
|
|
Calls in [__start] to conio_c64_init:5 main:8
|
|
Calls in [conio_c64_init] to gotoxy:16
|
|
Calls in [cputc] to cputln:27 cputln:31
|
|
Calls in [main] to clrscr:34 test_casting:41
|
|
Calls in [cputln] to cscroll:62
|
|
Calls in [test_casting] to printf_sint:87 printf_str:89
|
|
Calls in [cscroll] to memcpy:95 memcpy:97 memset:99 memset:101
|
|
Calls in [printf_sint] to utoa:111 printf_number_buffer:113
|
|
Calls in [printf_str] to null:127
|
|
Calls in [utoa] to utoa_append:179
|
|
Calls in [printf_number_buffer] to cputc:191 printf_str:196
|
|
|
|
Created 27 initial phi equivalence classes
|
|
Coalesced [19] conio_c64_init::line#3 = conio_c64_init::line#0
|
|
Coalesced [42] main::signed_char_value#5 = main::signed_char_value#1
|
|
Coalesced [57] gotoxy::y#7 = gotoxy::y#2
|
|
Coalesced [79] clrscr::l#7 = clrscr::l#1
|
|
Coalesced [80] clrscr::line_text#7 = clrscr::line_text#1
|
|
Coalesced [81] clrscr::line_cols#7 = clrscr::line_cols#1
|
|
Coalesced [85] clrscr::c#4 = clrscr::c#1
|
|
Coalesced [108] printf_sint::value#8 = printf_sint::value#1
|
|
Coalesced [118] printf_sint::value#7 = printf_sint::value#0
|
|
Coalesced [120] printf_str::s#6 = printf_str::s#4
|
|
Coalesced [129] printf_str::s#7 = printf_str::s#0
|
|
Coalesced [141] memcpy::src#5 = memcpy::src#1
|
|
Coalesced [142] memcpy::dst#5 = memcpy::dst#1
|
|
Coalesced [152] memset::dst#5 = memset::dst#1
|
|
Coalesced [155] utoa::value#17 = utoa::value#1
|
|
Coalesced [167] utoa::value#18 = utoa::value#2
|
|
Coalesced [168] utoa::started#6 = utoa::started#2
|
|
Coalesced [169] utoa::buffer#23 = utoa::buffer#11
|
|
Coalesced [172] utoa::digit#7 = utoa::digit#1
|
|
Coalesced (already) [173] utoa::value#16 = utoa::value#6
|
|
Coalesced (already) [174] utoa::started#5 = utoa::started#4
|
|
Coalesced (already) [175] utoa::buffer#22 = utoa::buffer#14
|
|
Coalesced [183] utoa::value#19 = utoa::value#0
|
|
Coalesced [184] utoa::buffer#24 = utoa::buffer#4
|
|
Coalesced [199] utoa_append::value#6 = utoa_append::value#0
|
|
Coalesced [206] utoa_append::value#7 = utoa_append::value#1
|
|
Coalesced [207] utoa_append::digit#5 = utoa_append::digit#1
|
|
Coalesced down to 23 phi equivalence classes
|
|
Culled Empty Block label __start::@2
|
|
Culled Empty Block label __start::@3
|
|
Culled Empty Block label conio_c64_init::@2
|
|
Culled Empty Block label conio_c64_init::@3
|
|
Culled Empty Block label cputc::@5
|
|
Culled Empty Block label cputc::@4
|
|
Culled Empty Block label main::@3
|
|
Culled Empty Block label main::@4
|
|
Culled Empty Block label gotoxy::@3
|
|
Culled Empty Block label cputln::@1
|
|
Culled Empty Block label clrscr::@2
|
|
Culled Empty Block label test_casting::@2
|
|
Culled Empty Block label cscroll::@1
|
|
Culled Empty Block label printf_sint::@3
|
|
Culled Empty Block label printf_sint::@6
|
|
Culled Empty Block label memcpy::@3
|
|
Culled Empty Block label memset::@1
|
|
Culled Empty Block label utoa::@1
|
|
Culled Empty Block label utoa::@5
|
|
Culled Empty Block label utoa::@17
|
|
Culled Empty Block label printf_number_buffer::@1
|
|
Culled Empty Block label printf_number_buffer::@22
|
|
Culled Empty Block label printf_number_buffer::@21
|
|
Culled Empty Block label printf_number_buffer::@3
|
|
Culled Empty Block label printf_number_buffer::@4
|
|
Culled Empty Block label printf_number_buffer::@18
|
|
Renumbering block clrscr::@3 to clrscr::@2
|
|
Renumbering block clrscr::@4 to clrscr::@3
|
|
Renumbering block clrscr::@5 to clrscr::@4
|
|
Renumbering block clrscr::@6 to clrscr::@5
|
|
Renumbering block gotoxy::@5 to gotoxy::@3
|
|
Renumbering block memset::@2 to memset::@1
|
|
Renumbering block memset::@3 to memset::@2
|
|
Renumbering block memset::@4 to memset::@3
|
|
Renumbering block cscroll::@3 to cscroll::@1
|
|
Renumbering block cscroll::@4 to cscroll::@2
|
|
Renumbering block cscroll::@5 to cscroll::@3
|
|
Renumbering block cscroll::@6 to cscroll::@4
|
|
Renumbering block cscroll::@7 to cscroll::@5
|
|
Renumbering block conio_c64_init::@4 to conio_c64_init::@2
|
|
Renumbering block utoa::@10 to utoa::@1
|
|
Renumbering block utoa::@11 to utoa::@2
|
|
Renumbering block utoa::@12 to utoa::@3
|
|
Renumbering block utoa::@13 to utoa::@4
|
|
Renumbering block utoa::@14 to utoa::@5
|
|
Renumbering block utoa::@15 to utoa::@6
|
|
Renumbering block utoa::@16 to utoa::@7
|
|
Renumbering block printf_sint::@5 to printf_sint::@3
|
|
Renumbering block printf_number_buffer::@2 to printf_number_buffer::@1
|
|
Renumbering block printf_number_buffer::@5 to printf_number_buffer::@2
|
|
Renumbering block printf_number_buffer::@9 to printf_number_buffer::@3
|
|
Adding NOP phi() at start of __start
|
|
Adding NOP phi() at start of __start::@1
|
|
Adding NOP phi() at start of conio_c64_init::@2
|
|
Adding NOP phi() at start of cputc::@3
|
|
Adding NOP phi() at start of cputc::@1
|
|
Adding NOP phi() at start of main
|
|
Adding NOP phi() at start of gotoxy::@3
|
|
Adding NOP phi() at start of clrscr
|
|
Adding NOP phi() at start of test_casting::@1
|
|
Adding NOP phi() at start of cscroll::@1
|
|
Adding NOP phi() at start of cscroll::@2
|
|
Adding NOP phi() at start of cscroll::@3
|
|
Adding NOP phi() at start of cscroll::@4
|
|
Adding NOP phi() at start of utoa
|
|
Adding NOP phi() at start of printf_number_buffer
|
|
Adding NOP phi() at start of printf_number_buffer::@2
|
|
Adding NOP phi() at start of utoa_append
|
|
|
|
FINAL CONTROL FLOW GRAPH
|
|
|
|
void __start()
|
|
__start: scope:[__start] from
|
|
[0] phi()
|
|
to:__start::__init1
|
|
__start::__init1: scope:[__start] from __start
|
|
[1] conio_cursor_x = 0
|
|
[2] conio_cursor_y = 0
|
|
[3] conio_line_text = DEFAULT_SCREEN
|
|
[4] conio_line_color = COLORRAM
|
|
[5] call conio_c64_init
|
|
to:__start::@1
|
|
__start::@1: scope:[__start] from __start::__init1
|
|
[6] phi()
|
|
[7] call main
|
|
to:__start::@return
|
|
__start::@return: scope:[__start] from __start::@1
|
|
[8] return
|
|
to:@return
|
|
|
|
void conio_c64_init()
|
|
conio_c64_init: scope:[conio_c64_init] from __start::__init1
|
|
[9] conio_c64_init::line#0 = *conio_c64_init::BASIC_CURSOR_LINE
|
|
[10] if(conio_c64_init::line#0<$19) goto conio_c64_init::@2
|
|
to:conio_c64_init::@1
|
|
conio_c64_init::@2: scope:[conio_c64_init] from conio_c64_init
|
|
[11] phi()
|
|
to:conio_c64_init::@1
|
|
conio_c64_init::@1: scope:[conio_c64_init] from conio_c64_init conio_c64_init::@2
|
|
[12] conio_c64_init::line#2 = phi( conio_c64_init::@2/conio_c64_init::line#0, conio_c64_init/$19-1 )
|
|
[13] gotoxy::y#2 = conio_c64_init::line#2
|
|
[14] call gotoxy
|
|
to:conio_c64_init::@return
|
|
conio_c64_init::@return: scope:[conio_c64_init] from conio_c64_init::@1
|
|
[15] return
|
|
to:@return
|
|
|
|
__stackcall void cputc(char c)
|
|
cputc: scope:[cputc] from printf_number_buffer::@3
|
|
[16] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C)
|
|
[17] if(cputc::c#0=='
|
|
') goto cputc::@1
|
|
to:cputc::@2
|
|
cputc::@2: scope:[cputc] from cputc
|
|
[18] conio_line_text[conio_cursor_x] = cputc::c#0
|
|
[19] conio_line_color[conio_cursor_x] = LIGHT_BLUE
|
|
[20] conio_cursor_x = ++ conio_cursor_x
|
|
[21] if(conio_cursor_x!=$28) goto cputc::@return
|
|
to:cputc::@3
|
|
cputc::@3: scope:[cputc] from cputc::@2
|
|
[22] phi()
|
|
[23] call cputln
|
|
to:cputc::@return
|
|
cputc::@return: scope:[cputc] from cputc::@1 cputc::@2 cputc::@3
|
|
[24] return
|
|
to:@return
|
|
cputc::@1: scope:[cputc] from cputc
|
|
[25] phi()
|
|
[26] call cputln
|
|
to:cputc::@return
|
|
|
|
void main()
|
|
main: scope:[main] from __start::@1
|
|
[27] phi()
|
|
[28] call clrscr
|
|
to:main::@1
|
|
main::@1: scope:[main] from main main::@2
|
|
[29] main::signed_char_value#2 = phi( main/-5, main::@2/main::signed_char_value#1 )
|
|
[30] if(main::signed_char_value#2!=0) goto main::@2
|
|
to:main::@return
|
|
main::@return: scope:[main] from main::@1
|
|
[31] return
|
|
to:@return
|
|
main::@2: scope:[main] from main::@1
|
|
[32] main::signed_char_value#1 = ++ main::signed_char_value#2
|
|
[33] test_casting::signed_short_value#0 = main::signed_char_value#1
|
|
[34] call test_casting
|
|
to:main::@1
|
|
|
|
void gotoxy(char x , char y)
|
|
gotoxy: scope:[gotoxy] from conio_c64_init::@1
|
|
[35] if(gotoxy::y#2<$19+1) goto gotoxy::@3
|
|
to:gotoxy::@1
|
|
gotoxy::@3: scope:[gotoxy] from gotoxy
|
|
[36] phi()
|
|
to:gotoxy::@1
|
|
gotoxy::@1: scope:[gotoxy] from gotoxy gotoxy::@3
|
|
[37] gotoxy::y#4 = phi( gotoxy::@3/gotoxy::y#2, gotoxy/0 )
|
|
to:gotoxy::@2
|
|
gotoxy::@2: scope:[gotoxy] from gotoxy::@1
|
|
[38] conio_cursor_x = gotoxy::x#2
|
|
[39] conio_cursor_y = gotoxy::y#4
|
|
[40] gotoxy::$7 = (unsigned int)gotoxy::y#4
|
|
[41] gotoxy::$8 = gotoxy::$7 << 2
|
|
[42] gotoxy::$9 = gotoxy::$8 + gotoxy::$7
|
|
[43] gotoxy::line_offset#0 = gotoxy::$9 << 3
|
|
[44] gotoxy::$5 = DEFAULT_SCREEN + gotoxy::line_offset#0
|
|
[45] conio_line_text = gotoxy::$5
|
|
[46] gotoxy::$6 = COLORRAM + gotoxy::line_offset#0
|
|
[47] conio_line_color = gotoxy::$6
|
|
to:gotoxy::@return
|
|
gotoxy::@return: scope:[gotoxy] from gotoxy::@2
|
|
[48] return
|
|
to:@return
|
|
|
|
void cputln()
|
|
cputln: scope:[cputln] from cputc::@1 cputc::@3
|
|
[49] conio_line_text = conio_line_text + $28
|
|
[50] conio_line_color = conio_line_color + $28
|
|
[51] conio_cursor_x = 0
|
|
[52] conio_cursor_y = ++ conio_cursor_y
|
|
[53] call cscroll
|
|
to:cputln::@return
|
|
cputln::@return: scope:[cputln] from cputln
|
|
[54] return
|
|
to:@return
|
|
|
|
void clrscr()
|
|
clrscr: scope:[clrscr] from main
|
|
[55] phi()
|
|
to:clrscr::@1
|
|
clrscr::@1: scope:[clrscr] from clrscr clrscr::@5
|
|
[56] clrscr::line_cols#5 = phi( clrscr/COLORRAM, clrscr::@5/clrscr::line_cols#1 )
|
|
[56] clrscr::line_text#5 = phi( clrscr/DEFAULT_SCREEN, clrscr::@5/clrscr::line_text#1 )
|
|
[56] clrscr::l#2 = phi( clrscr/0, clrscr::@5/clrscr::l#1 )
|
|
[57] if(clrscr::l#2<$19) goto clrscr::@3
|
|
to:clrscr::@2
|
|
clrscr::@2: scope:[clrscr] from clrscr::@1
|
|
[58] conio_cursor_x = 0
|
|
[59] conio_cursor_y = 0
|
|
[60] conio_line_text = DEFAULT_SCREEN
|
|
[61] conio_line_color = COLORRAM
|
|
to:clrscr::@return
|
|
clrscr::@return: scope:[clrscr] from clrscr::@2
|
|
[62] return
|
|
to:@return
|
|
clrscr::@3: scope:[clrscr] from clrscr::@1 clrscr::@4
|
|
[63] clrscr::c#2 = phi( clrscr::@1/0, clrscr::@4/clrscr::c#1 )
|
|
[64] if(clrscr::c#2<$28) goto clrscr::@4
|
|
to:clrscr::@5
|
|
clrscr::@5: scope:[clrscr] from clrscr::@3
|
|
[65] clrscr::line_text#1 = clrscr::line_text#5 + $28
|
|
[66] clrscr::line_cols#1 = clrscr::line_cols#5 + $28
|
|
[67] clrscr::l#1 = ++ clrscr::l#2
|
|
to:clrscr::@1
|
|
clrscr::@4: scope:[clrscr] from clrscr::@3
|
|
[68] clrscr::line_text#5[clrscr::c#2] = ' '
|
|
[69] clrscr::line_cols#5[clrscr::c#2] = LIGHT_BLUE
|
|
[70] clrscr::c#1 = ++ clrscr::c#2
|
|
to:clrscr::@3
|
|
|
|
void test_casting(int signed_short_value)
|
|
test_casting: scope:[test_casting] from main::@2
|
|
[71] printf_sint::value#1 = test_casting::signed_short_value#0
|
|
[72] call printf_sint
|
|
to:test_casting::@1
|
|
test_casting::@1: scope:[test_casting] from test_casting
|
|
[73] phi()
|
|
[74] call printf_str
|
|
to:test_casting::@return
|
|
test_casting::@return: scope:[test_casting] from test_casting::@1
|
|
[75] return
|
|
to:@return
|
|
|
|
void cscroll()
|
|
cscroll: scope:[cscroll] from cputln
|
|
[76] if(conio_cursor_y!=$19) goto cscroll::@return
|
|
to:cscroll::@1
|
|
cscroll::@1: scope:[cscroll] from cscroll
|
|
[77] phi()
|
|
[78] call memcpy
|
|
to:cscroll::@2
|
|
cscroll::@2: scope:[cscroll] from cscroll::@1
|
|
[79] phi()
|
|
[80] call memcpy
|
|
to:cscroll::@3
|
|
cscroll::@3: scope:[cscroll] from cscroll::@2
|
|
[81] phi()
|
|
[82] call memset
|
|
to:cscroll::@4
|
|
cscroll::@4: scope:[cscroll] from cscroll::@3
|
|
[83] phi()
|
|
[84] call memset
|
|
to:cscroll::@5
|
|
cscroll::@5: scope:[cscroll] from cscroll::@4
|
|
[85] conio_line_text = conio_line_text - $28
|
|
[86] conio_line_color = conio_line_color - $28
|
|
[87] conio_cursor_y = -- conio_cursor_y
|
|
to:cscroll::@return
|
|
cscroll::@return: scope:[cscroll] from cscroll cscroll::@5
|
|
[88] return
|
|
to:@return
|
|
|
|
void printf_sint(void (*putc)(char) , int value , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
printf_sint: scope:[printf_sint] from test_casting
|
|
[89] *((char *)&printf_buffer) = 0
|
|
[90] if(printf_sint::value#1<0) goto printf_sint::@1
|
|
to:printf_sint::@2
|
|
printf_sint::@1: scope:[printf_sint] from printf_sint
|
|
[91] printf_sint::value#0 = - printf_sint::value#1
|
|
[92] *((char *)&printf_buffer) = '-'
|
|
to:printf_sint::@2
|
|
printf_sint::@2: scope:[printf_sint] from printf_sint printf_sint::@1
|
|
[93] printf_sint::value#4 = phi( printf_sint::@1/printf_sint::value#0, printf_sint/printf_sint::value#1 )
|
|
[94] utoa::value#1 = (unsigned int)printf_sint::value#4
|
|
[95] call utoa
|
|
to:printf_sint::@3
|
|
printf_sint::@3: scope:[printf_sint] from printf_sint::@2
|
|
[96] printf_number_buffer::buffer_sign#0 = *((char *)&printf_buffer)
|
|
[97] call printf_number_buffer
|
|
to:printf_sint::@return
|
|
printf_sint::@return: scope:[printf_sint] from printf_sint::@3
|
|
[98] return
|
|
to:@return
|
|
|
|
void printf_str(void (*putc)(char) , const char *s)
|
|
printf_str: scope:[printf_str] from printf_number_buffer::@2 test_casting::@1
|
|
[99] printf_str::putc#4 = phi( printf_number_buffer::@2/printf_sint::putc#0, test_casting::@1/&cputc )
|
|
[99] printf_str::s#4 = phi( printf_number_buffer::@2/printf_number_buffer::buffer_digits#0, test_casting::@1/test_casting::s )
|
|
to:printf_str::@1
|
|
printf_str::@1: scope:[printf_str] from printf_str printf_str::@2
|
|
[100] printf_str::s#3 = phi( printf_str/printf_str::s#4, printf_str::@2/printf_str::s#0 )
|
|
[101] printf_str::c#1 = *printf_str::s#3
|
|
[102] printf_str::s#0 = ++ printf_str::s#3
|
|
[103] if(0!=printf_str::c#1) goto printf_str::@2
|
|
to:printf_str::@return
|
|
printf_str::@return: scope:[printf_str] from printf_str::@1
|
|
[104] return
|
|
to:@return
|
|
printf_str::@2: scope:[printf_str] from printf_str::@1
|
|
[105] stackpush(char) = printf_str::c#1
|
|
[106] callexecute *printf_str::putc#4
|
|
sideeffect stackpullpadding(1)
|
|
to:printf_str::@1
|
|
|
|
void * memcpy(void *destination , void *source , unsigned int num)
|
|
memcpy: scope:[memcpy] from cscroll::@1 cscroll::@2
|
|
[108] memcpy::destination#2 = phi( cscroll::@1/(void *)DEFAULT_SCREEN, cscroll::@2/(void *)COLORRAM )
|
|
[108] memcpy::source#2 = phi( cscroll::@1/(void *)DEFAULT_SCREEN+$28, cscroll::@2/(void *)COLORRAM+$28 )
|
|
[109] memcpy::src_end#0 = (char *)memcpy::source#2 + (unsigned int)$19*$28-$28
|
|
[110] memcpy::src#4 = (char *)memcpy::source#2
|
|
[111] memcpy::dst#4 = (char *)memcpy::destination#2
|
|
to:memcpy::@1
|
|
memcpy::@1: scope:[memcpy] from memcpy memcpy::@2
|
|
[112] memcpy::dst#2 = phi( memcpy/memcpy::dst#4, memcpy::@2/memcpy::dst#1 )
|
|
[112] memcpy::src#2 = phi( memcpy/memcpy::src#4, memcpy::@2/memcpy::src#1 )
|
|
[113] if(memcpy::src#2!=memcpy::src_end#0) goto memcpy::@2
|
|
to:memcpy::@return
|
|
memcpy::@return: scope:[memcpy] from memcpy::@1
|
|
[114] return
|
|
to:@return
|
|
memcpy::@2: scope:[memcpy] from memcpy::@1
|
|
[115] *memcpy::dst#2 = *memcpy::src#2
|
|
[116] memcpy::dst#1 = ++ memcpy::dst#2
|
|
[117] memcpy::src#1 = ++ memcpy::src#2
|
|
to:memcpy::@1
|
|
|
|
void * memset(void *str , char c , unsigned int num)
|
|
memset: scope:[memset] from cscroll::@3 cscroll::@4
|
|
[118] memset::c#4 = phi( cscroll::@3/' ', cscroll::@4/LIGHT_BLUE )
|
|
[118] memset::str#3 = phi( cscroll::@3/(void *)DEFAULT_SCREEN+(unsigned int)$19*$28-$28, cscroll::@4/(void *)COLORRAM+(unsigned int)$19*$28-$28 )
|
|
to:memset::@1
|
|
memset::@1: scope:[memset] from memset
|
|
[119] memset::end#0 = (char *)memset::str#3 + $28
|
|
[120] memset::dst#4 = (char *)memset::str#3
|
|
to:memset::@2
|
|
memset::@2: scope:[memset] from memset::@1 memset::@3
|
|
[121] memset::dst#2 = phi( memset::@1/memset::dst#4, memset::@3/memset::dst#1 )
|
|
[122] if(memset::dst#2!=memset::end#0) goto memset::@3
|
|
to:memset::@return
|
|
memset::@return: scope:[memset] from memset::@2
|
|
[123] return
|
|
to:@return
|
|
memset::@3: scope:[memset] from memset::@2
|
|
[124] *memset::dst#2 = memset::c#4
|
|
[125] memset::dst#1 = ++ memset::dst#2
|
|
to:memset::@2
|
|
|
|
void utoa(unsigned int value , char *buffer , char radix)
|
|
utoa: scope:[utoa] from printf_sint::@2
|
|
[126] phi()
|
|
to:utoa::@1
|
|
utoa::@1: scope:[utoa] from utoa utoa::@4
|
|
[127] utoa::buffer#11 = phi( utoa::@4/utoa::buffer#14, utoa/(char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS )
|
|
[127] utoa::started#2 = phi( utoa::@4/utoa::started#4, utoa/0 )
|
|
[127] utoa::value#2 = phi( utoa::@4/utoa::value#6, utoa/utoa::value#1 )
|
|
[127] utoa::digit#2 = phi( utoa::@4/utoa::digit#1, utoa/0 )
|
|
[128] if(utoa::digit#2<utoa::max_digits#1-1) goto utoa::@2
|
|
to:utoa::@3
|
|
utoa::@3: scope:[utoa] from utoa::@1
|
|
[129] utoa::$11 = (char)utoa::value#2
|
|
[130] *utoa::buffer#11 = DIGITS[utoa::$11]
|
|
[131] utoa::buffer#3 = ++ utoa::buffer#11
|
|
[132] *utoa::buffer#3 = 0
|
|
to:utoa::@return
|
|
utoa::@return: scope:[utoa] from utoa::@3
|
|
[133] return
|
|
to:@return
|
|
utoa::@2: scope:[utoa] from utoa::@1
|
|
[134] utoa::$10 = utoa::digit#2 << 1
|
|
[135] utoa::digit_value#0 = RADIX_DECIMAL_VALUES[utoa::$10]
|
|
[136] if(0!=utoa::started#2) goto utoa::@5
|
|
to:utoa::@7
|
|
utoa::@7: scope:[utoa] from utoa::@2
|
|
[137] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@5
|
|
to:utoa::@4
|
|
utoa::@4: scope:[utoa] from utoa::@6 utoa::@7
|
|
[138] utoa::buffer#14 = phi( utoa::@7/utoa::buffer#11, utoa::@6/utoa::buffer#4 )
|
|
[138] utoa::started#4 = phi( utoa::@7/utoa::started#2, utoa::@6/1 )
|
|
[138] utoa::value#6 = phi( utoa::@7/utoa::value#2, utoa::@6/utoa::value#0 )
|
|
[139] utoa::digit#1 = ++ utoa::digit#2
|
|
to:utoa::@1
|
|
utoa::@5: scope:[utoa] from utoa::@2 utoa::@7
|
|
[140] utoa_append::buffer#0 = utoa::buffer#11
|
|
[141] utoa_append::value#0 = utoa::value#2
|
|
[142] utoa_append::sub#0 = utoa::digit_value#0
|
|
[143] call utoa_append
|
|
[144] utoa_append::return#0 = utoa_append::value#2
|
|
to:utoa::@6
|
|
utoa::@6: scope:[utoa] from utoa::@5
|
|
[145] utoa::value#0 = utoa_append::return#0
|
|
[146] utoa::buffer#4 = ++ utoa::buffer#11
|
|
to:utoa::@4
|
|
|
|
void printf_number_buffer(void (*putc)(char) , char buffer_sign , char *buffer_digits , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
printf_number_buffer: scope:[printf_number_buffer] from printf_sint::@3
|
|
[147] phi()
|
|
to:printf_number_buffer::@1
|
|
printf_number_buffer::@1: scope:[printf_number_buffer] from printf_number_buffer
|
|
[148] if(0==printf_number_buffer::buffer_sign#0) goto printf_number_buffer::@2
|
|
to:printf_number_buffer::@3
|
|
printf_number_buffer::@3: scope:[printf_number_buffer] from printf_number_buffer::@1
|
|
[149] stackpush(char) = printf_number_buffer::buffer_sign#0
|
|
[150] callexecute cputc
|
|
sideeffect stackpullpadding(1)
|
|
to:printf_number_buffer::@2
|
|
printf_number_buffer::@2: scope:[printf_number_buffer] from printf_number_buffer::@1 printf_number_buffer::@3
|
|
[152] phi()
|
|
[153] call printf_str
|
|
to:printf_number_buffer::@return
|
|
printf_number_buffer::@return: scope:[printf_number_buffer] from printf_number_buffer::@2
|
|
[154] return
|
|
to:@return
|
|
|
|
unsigned int utoa_append(char *buffer , unsigned int value , unsigned int sub)
|
|
utoa_append: scope:[utoa_append] from utoa::@5
|
|
[155] phi()
|
|
to:utoa_append::@1
|
|
utoa_append::@1: scope:[utoa_append] from utoa_append utoa_append::@2
|
|
[156] utoa_append::digit#2 = phi( utoa_append/0, utoa_append::@2/utoa_append::digit#1 )
|
|
[156] utoa_append::value#2 = phi( utoa_append/utoa_append::value#0, utoa_append::@2/utoa_append::value#1 )
|
|
[157] if(utoa_append::value#2>=utoa_append::sub#0) goto utoa_append::@2
|
|
to:utoa_append::@3
|
|
utoa_append::@3: scope:[utoa_append] from utoa_append::@1
|
|
[158] *utoa_append::buffer#0 = DIGITS[utoa_append::digit#2]
|
|
to:utoa_append::@return
|
|
utoa_append::@return: scope:[utoa_append] from utoa_append::@3
|
|
[159] return
|
|
to:@return
|
|
utoa_append::@2: scope:[utoa_append] from utoa_append::@1
|
|
[160] utoa_append::digit#1 = ++ utoa_append::digit#2
|
|
[161] utoa_append::value#1 = utoa_append::value#2 - utoa_append::sub#0
|
|
to:utoa_append::@1
|
|
|
|
null depth in calling loop Loop head: main::@1 tails: main::@2 blocks: main::@2 main::@1 in scope test_casting
|
|
|
|
VARIABLE REGISTER WEIGHTS
|
|
void __start()
|
|
void clrscr()
|
|
char clrscr::c
|
|
char clrscr::c#1 // 20002.0
|
|
char clrscr::c#2 // 12501.25
|
|
char clrscr::l
|
|
char clrscr::l#1 // 2002.0
|
|
char clrscr::l#2 // 333.6666666666667
|
|
char *clrscr::line_cols
|
|
char *clrscr::line_cols#1 // 1001.0
|
|
char *clrscr::line_cols#5 // 1500.375
|
|
char *clrscr::line_text
|
|
char *clrscr::line_text#1 // 667.3333333333334
|
|
char *clrscr::line_text#5 // 1714.7142857142858
|
|
void conio_c64_init()
|
|
char conio_c64_init::line
|
|
char conio_c64_init::line#0 // 11.0
|
|
char conio_c64_init::line#2 // 22.0
|
|
__loadstore char conio_cursor_x // 319153.40425531915
|
|
__loadstore char conio_cursor_y // 5079368.396825396
|
|
__loadstore char *conio_line_color // 3622954.2459016396
|
|
__loadstore char *conio_line_text // 3564519.5
|
|
__stackcall void cputc(char c)
|
|
char cputc::c
|
|
char cputc::c#0 // 1500001.5
|
|
void cputln()
|
|
void cscroll()
|
|
void gotoxy(char x , char y)
|
|
char *gotoxy::$5 // 202.0
|
|
char *gotoxy::$6 // 202.0
|
|
unsigned int gotoxy::$7 // 151.5
|
|
unsigned int gotoxy::$8 // 202.0
|
|
unsigned int gotoxy::$9 // 202.0
|
|
unsigned int gotoxy::line_offset
|
|
unsigned int gotoxy::line_offset#0 // 101.0
|
|
char gotoxy::x
|
|
char gotoxy::y
|
|
char gotoxy::y#2 // 71.0
|
|
char gotoxy::y#4 // 67.33333333333333
|
|
void main()
|
|
signed char main::signed_char_value
|
|
signed char main::signed_char_value#1 // 101.0
|
|
signed char main::signed_char_value#2 // 151.5
|
|
void * memcpy(void *destination , void *source , unsigned int num)
|
|
void *memcpy::destination
|
|
void *memcpy::destination#2
|
|
char *memcpy::dst
|
|
char *memcpy::dst#1 // 1.00000000001E11
|
|
char *memcpy::dst#2 // 1.0033333333466667E11
|
|
char *memcpy::dst#4 // 2.000000002E9
|
|
unsigned int memcpy::num
|
|
void *memcpy::return
|
|
void *memcpy::source
|
|
void *memcpy::source#2
|
|
char *memcpy::src
|
|
char *memcpy::src#1 // 2.00000000002E11
|
|
char *memcpy::src#2 // 1.0025000000125E11
|
|
char *memcpy::src#4 // 1.000000001E9
|
|
char *memcpy::src_end
|
|
char *memcpy::src_end#0 // 1.262500000025E10
|
|
void * memset(void *str , char c , unsigned int num)
|
|
char memset::c
|
|
char memset::c#4 // 1.4285714285857143E10
|
|
char *memset::dst
|
|
char *memset::dst#1 // 2.00000000002E11
|
|
char *memset::dst#2 // 1.3366666666833334E11
|
|
char *memset::dst#4 // 2.000000002E9
|
|
char *memset::end
|
|
char *memset::end#0 // 1.6833333333666668E10
|
|
unsigned int memset::num
|
|
void *memset::return
|
|
void *memset::str
|
|
void *memset::str#3
|
|
__loadstore struct printf_buffer_number printf_buffer = {}
|
|
void printf_number_buffer(void (*putc)(char) , char buffer_sign , char *buffer_digits , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
struct printf_buffer_number printf_number_buffer::buffer
|
|
char *printf_number_buffer::buffer_digits
|
|
char printf_number_buffer::buffer_sign
|
|
char printf_number_buffer::buffer_sign#0 // 70001.0
|
|
struct printf_format_number printf_number_buffer::format
|
|
char printf_number_buffer::format_justify_left
|
|
char printf_number_buffer::format_min_length
|
|
char printf_number_buffer::format_radix
|
|
char printf_number_buffer::format_sign_always
|
|
char printf_number_buffer::format_upper_case
|
|
char printf_number_buffer::format_zero_padding
|
|
signed char printf_number_buffer::len
|
|
signed char printf_number_buffer::padding
|
|
void (*printf_number_buffer::putc)(char)
|
|
void printf_sint(void (*putc)(char) , int value , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
struct printf_format_number printf_sint::format
|
|
char printf_sint::format_justify_left
|
|
char printf_sint::format_min_length
|
|
char printf_sint::format_radix
|
|
char printf_sint::format_sign_always
|
|
char printf_sint::format_upper_case
|
|
char printf_sint::format_zero_padding
|
|
void (*printf_sint::putc)(char)
|
|
unsigned int printf_sint::uvalue
|
|
int printf_sint::value
|
|
int printf_sint::value#0 // 10001.0
|
|
int printf_sint::value#1 // 10334.666666666666
|
|
int printf_sint::value#4 // 20002.0
|
|
void printf_str(void (*putc)(char) , const char *s)
|
|
char printf_str::c
|
|
char printf_str::c#1 // 1.00000001E8
|
|
void (*printf_str::putc)(char)
|
|
void (*printf_str::putc#4)(char)
|
|
const char *printf_str::s
|
|
const char *printf_str::s#0 // 1.00000001E8
|
|
const char *printf_str::s#3 // 1.50500002E8
|
|
const char *printf_str::s#4 // 1000001.0
|
|
void test_casting(int signed_short_value)
|
|
int test_casting::signed_short_value
|
|
int test_casting::signed_short_value#0 // 1102.0
|
|
void utoa(unsigned int value , char *buffer , char radix)
|
|
char utoa::$10 // 2.0000002E7
|
|
char utoa::$11 // 200002.0
|
|
char *utoa::buffer
|
|
char *utoa::buffer#11 // 2871429.0
|
|
char *utoa::buffer#14 // 1.50000015E7
|
|
char *utoa::buffer#3 // 200002.0
|
|
char *utoa::buffer#4 // 2.0000002E7
|
|
char utoa::digit
|
|
char utoa::digit#1 // 2.0000002E7
|
|
char utoa::digit#2 // 2857143.1428571427
|
|
unsigned int utoa::digit_value
|
|
unsigned int utoa::digit_value#0 // 6000000.6
|
|
unsigned int *utoa::digit_values
|
|
char utoa::max_digits
|
|
char utoa::radix
|
|
char utoa::started
|
|
char utoa::started#2 // 5000000.5
|
|
char utoa::started#4 // 1.0000001E7
|
|
unsigned int utoa::value
|
|
unsigned int utoa::value#0 // 1.0000001E7
|
|
unsigned int utoa::value#1 // 55001.0
|
|
unsigned int utoa::value#2 // 5728572.142857142
|
|
unsigned int utoa::value#6 // 1.50000015E7
|
|
unsigned int utoa_append(char *buffer , unsigned int value , unsigned int sub)
|
|
char *utoa_append::buffer
|
|
char *utoa_append::buffer#0 // 1.375000025E7
|
|
char utoa_append::digit
|
|
char utoa_append::digit#1 // 1.00000000001E11
|
|
char utoa_append::digit#2 // 1.000500000015E11
|
|
unsigned int utoa_append::return
|
|
unsigned int utoa_append::return#0 // 2.0000002E7
|
|
unsigned int utoa_append::sub
|
|
unsigned int utoa_append::sub#0 // 3.33350000005E10
|
|
unsigned int utoa_append::value
|
|
unsigned int utoa_append::value#0 // 3.6666667333333336E7
|
|
unsigned int utoa_append::value#1 // 2.00000000002E11
|
|
unsigned int utoa_append::value#2 // 5.001833333416667E10
|
|
|
|
Initial phi equivalence classes
|
|
[ conio_c64_init::line#2 conio_c64_init::line#0 ]
|
|
[ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
[ gotoxy::y#4 gotoxy::y#2 ]
|
|
[ clrscr::l#2 clrscr::l#1 ]
|
|
[ clrscr::line_text#5 clrscr::line_text#1 ]
|
|
[ clrscr::line_cols#5 clrscr::line_cols#1 ]
|
|
[ clrscr::c#2 clrscr::c#1 ]
|
|
[ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 ]
|
|
[ printf_str::putc#4 ]
|
|
[ printf_str::s#3 printf_str::s#4 printf_str::s#0 ]
|
|
[ memcpy::source#2 ]
|
|
[ memcpy::destination#2 ]
|
|
[ memcpy::src#2 memcpy::src#4 memcpy::src#1 ]
|
|
[ memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ]
|
|
[ memset::str#3 ]
|
|
[ memset::c#4 ]
|
|
[ memset::dst#2 memset::dst#4 memset::dst#1 ]
|
|
[ utoa::digit#2 utoa::digit#1 ]
|
|
[ utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ]
|
|
[ utoa::started#2 utoa::started#4 ]
|
|
[ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 ]
|
|
[ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 ]
|
|
[ utoa_append::digit#2 utoa_append::digit#1 ]
|
|
Added variable conio_cursor_x to live range equivalence class [ conio_cursor_x ]
|
|
Added variable conio_cursor_y to live range equivalence class [ conio_cursor_y ]
|
|
Added variable conio_line_text to live range equivalence class [ conio_line_text ]
|
|
Added variable conio_line_color to live range equivalence class [ conio_line_color ]
|
|
Added variable cputc::c#0 to live range equivalence class [ cputc::c#0 ]
|
|
Added variable test_casting::signed_short_value#0 to live range equivalence class [ test_casting::signed_short_value#0 ]
|
|
Added variable gotoxy::$7 to live range equivalence class [ gotoxy::$7 ]
|
|
Added variable gotoxy::$8 to live range equivalence class [ gotoxy::$8 ]
|
|
Added variable gotoxy::$9 to live range equivalence class [ gotoxy::$9 ]
|
|
Added variable gotoxy::line_offset#0 to live range equivalence class [ gotoxy::line_offset#0 ]
|
|
Added variable gotoxy::$5 to live range equivalence class [ gotoxy::$5 ]
|
|
Added variable gotoxy::$6 to live range equivalence class [ gotoxy::$6 ]
|
|
Added variable printf_number_buffer::buffer_sign#0 to live range equivalence class [ printf_number_buffer::buffer_sign#0 ]
|
|
Added variable printf_str::c#1 to live range equivalence class [ printf_str::c#1 ]
|
|
Added variable memcpy::src_end#0 to live range equivalence class [ memcpy::src_end#0 ]
|
|
Added variable memset::end#0 to live range equivalence class [ memset::end#0 ]
|
|
Added variable utoa::$11 to live range equivalence class [ utoa::$11 ]
|
|
Added variable utoa::buffer#3 to live range equivalence class [ utoa::buffer#3 ]
|
|
Added variable utoa::$10 to live range equivalence class [ utoa::$10 ]
|
|
Added variable utoa::digit_value#0 to live range equivalence class [ utoa::digit_value#0 ]
|
|
Added variable utoa_append::buffer#0 to live range equivalence class [ utoa_append::buffer#0 ]
|
|
Added variable utoa_append::sub#0 to live range equivalence class [ utoa_append::sub#0 ]
|
|
Added variable utoa_append::return#0 to live range equivalence class [ utoa_append::return#0 ]
|
|
Added variable printf_buffer to live range equivalence class [ printf_buffer ]
|
|
Complete equivalence classes
|
|
[ conio_c64_init::line#2 conio_c64_init::line#0 ]
|
|
[ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
[ gotoxy::y#4 gotoxy::y#2 ]
|
|
[ clrscr::l#2 clrscr::l#1 ]
|
|
[ clrscr::line_text#5 clrscr::line_text#1 ]
|
|
[ clrscr::line_cols#5 clrscr::line_cols#1 ]
|
|
[ clrscr::c#2 clrscr::c#1 ]
|
|
[ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 ]
|
|
[ printf_str::putc#4 ]
|
|
[ printf_str::s#3 printf_str::s#4 printf_str::s#0 ]
|
|
[ memcpy::source#2 ]
|
|
[ memcpy::destination#2 ]
|
|
[ memcpy::src#2 memcpy::src#4 memcpy::src#1 ]
|
|
[ memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ]
|
|
[ memset::str#3 ]
|
|
[ memset::c#4 ]
|
|
[ memset::dst#2 memset::dst#4 memset::dst#1 ]
|
|
[ utoa::digit#2 utoa::digit#1 ]
|
|
[ utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ]
|
|
[ utoa::started#2 utoa::started#4 ]
|
|
[ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 ]
|
|
[ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 ]
|
|
[ utoa_append::digit#2 utoa_append::digit#1 ]
|
|
[ conio_cursor_x ]
|
|
[ conio_cursor_y ]
|
|
[ conio_line_text ]
|
|
[ conio_line_color ]
|
|
[ cputc::c#0 ]
|
|
[ test_casting::signed_short_value#0 ]
|
|
[ gotoxy::$7 ]
|
|
[ gotoxy::$8 ]
|
|
[ gotoxy::$9 ]
|
|
[ gotoxy::line_offset#0 ]
|
|
[ gotoxy::$5 ]
|
|
[ gotoxy::$6 ]
|
|
[ printf_number_buffer::buffer_sign#0 ]
|
|
[ printf_str::c#1 ]
|
|
[ memcpy::src_end#0 ]
|
|
[ memset::end#0 ]
|
|
[ utoa::$11 ]
|
|
[ utoa::buffer#3 ]
|
|
[ utoa::$10 ]
|
|
[ utoa::digit_value#0 ]
|
|
[ utoa_append::buffer#0 ]
|
|
[ utoa_append::sub#0 ]
|
|
[ utoa_append::return#0 ]
|
|
[ printf_buffer ]
|
|
Allocated zp[2]:2 [ memset::dst#2 memset::dst#4 memset::dst#1 ]
|
|
Allocated zp[2]:4 [ memcpy::src#2 memcpy::src#4 memcpy::src#1 ]
|
|
Allocated zp[2]:6 [ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 ]
|
|
Allocated zp[2]:8 [ memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ]
|
|
Allocated zp[1]:10 [ utoa_append::digit#2 utoa_append::digit#1 ]
|
|
Allocated zp[2]:11 [ utoa_append::sub#0 ]
|
|
Allocated zp[2]:13 [ memset::end#0 ]
|
|
Allocated zp[1]:15 [ memset::c#4 ]
|
|
Allocated zp[2]:16 [ memcpy::src_end#0 ]
|
|
Allocated zp[2]:18 [ printf_str::s#3 printf_str::s#4 printf_str::s#0 ]
|
|
Allocated zp[1]:20 [ printf_str::c#1 ]
|
|
Allocated zp[2]:21 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 ]
|
|
Allocated zp[2]:23 [ utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ]
|
|
Allocated zp[1]:25 [ utoa::digit#2 utoa::digit#1 ]
|
|
Allocated zp[1]:26 [ utoa::$10 ]
|
|
Allocated zp[2]:27 [ utoa_append::return#0 ]
|
|
Allocated zp[1]:29 [ utoa::started#2 utoa::started#4 ]
|
|
Allocated zp[2]:30 [ utoa_append::buffer#0 ]
|
|
Allocated zp[2]:32 [ utoa::digit_value#0 ]
|
|
Allocated zp[1]:34 [ conio_cursor_y ]
|
|
Allocated zp[2]:35 [ conio_line_color ]
|
|
Allocated zp[2]:37 [ conio_line_text ]
|
|
Allocated zp[1]:39 [ cputc::c#0 ]
|
|
Allocated zp[1]:40 [ conio_cursor_x ]
|
|
Allocated zp[1]:41 [ utoa::$11 ]
|
|
Allocated zp[2]:42 [ utoa::buffer#3 ]
|
|
Allocated zp[1]:44 [ printf_number_buffer::buffer_sign#0 ]
|
|
Allocated zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 ]
|
|
Allocated zp[1]:47 [ clrscr::c#2 clrscr::c#1 ]
|
|
Allocated zp[2]:48 [ clrscr::line_cols#5 clrscr::line_cols#1 ]
|
|
Allocated zp[2]:50 [ clrscr::line_text#5 clrscr::line_text#1 ]
|
|
Allocated zp[1]:52 [ clrscr::l#2 clrscr::l#1 ]
|
|
Allocated zp[2]:53 [ test_casting::signed_short_value#0 ]
|
|
Allocated zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Allocated zp[2]:56 [ gotoxy::$8 ]
|
|
Allocated zp[2]:58 [ gotoxy::$9 ]
|
|
Allocated zp[2]:60 [ gotoxy::$5 ]
|
|
Allocated zp[2]:62 [ gotoxy::$6 ]
|
|
Allocated zp[2]:64 [ gotoxy::$7 ]
|
|
Allocated zp[1]:66 [ gotoxy::y#4 gotoxy::y#2 ]
|
|
Allocated zp[2]:67 [ gotoxy::line_offset#0 ]
|
|
Allocated zp[1]:69 [ conio_c64_init::line#2 conio_c64_init::line#0 ]
|
|
Allocated zp[2]:70 [ printf_str::putc#4 ]
|
|
Allocated zp[2]:72 [ memcpy::source#2 ]
|
|
Allocated zp[2]:74 [ memcpy::destination#2 ]
|
|
Allocated zp[2]:76 [ memset::str#3 ]
|
|
Allocated mem[12] [ printf_buffer ]
|
|
REGISTER UPLIFT POTENTIAL REGISTERS
|
|
Statement [1] conio_cursor_x = 0 [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [2] conio_cursor_y = 0 [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [3] conio_line_text = DEFAULT_SCREEN [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [4] conio_line_color = COLORRAM [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [16] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C) [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color cputc::c#0 ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color cputc::c#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color cputc::c#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte x
|
|
Removing always clobbered register reg byte a as potential for zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Removing always clobbered register reg byte x as potential for zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Statement [18] conio_line_text[conio_cursor_x] = cputc::c#0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte y
|
|
Removing always clobbered register reg byte y as potential for zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Statement [19] conio_line_color[conio_cursor_x] = LIGHT_BLUE [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [21] if(conio_cursor_x!=$28) goto cputc::@return [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [30] if(main::signed_char_value#2!=0) goto main::@2 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#2 printf_buffer ] ( main:7 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#2 printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [33] test_casting::signed_short_value#0 = main::signed_char_value#1 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#1 test_casting::signed_short_value#0 printf_buffer ] ( main:7 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#1 test_casting::signed_short_value#0 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 } } ) always clobbers reg byte a
|
|
Statement [38] conio_cursor_x = gotoxy::x#2 [ gotoxy::y#4 ] ( gotoxy:14 [ gotoxy::y#4 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::y#4 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Removing always clobbered register reg byte a as potential for zp[1]:66 [ gotoxy::y#4 gotoxy::y#2 ]
|
|
Statement [40] gotoxy::$7 = (unsigned int)gotoxy::y#4 [ gotoxy::$7 ] ( gotoxy:14 [ gotoxy::$7 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$7 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [41] gotoxy::$8 = gotoxy::$7 << 2 [ gotoxy::$7 gotoxy::$8 ] ( gotoxy:14 [ gotoxy::$7 gotoxy::$8 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$7 gotoxy::$8 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [42] gotoxy::$9 = gotoxy::$8 + gotoxy::$7 [ gotoxy::$9 ] ( gotoxy:14 [ gotoxy::$9 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$9 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [43] gotoxy::line_offset#0 = gotoxy::$9 << 3 [ gotoxy::line_offset#0 ] ( gotoxy:14 [ gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [44] gotoxy::$5 = DEFAULT_SCREEN + gotoxy::line_offset#0 [ gotoxy::line_offset#0 gotoxy::$5 ] ( gotoxy:14 [ gotoxy::line_offset#0 gotoxy::$5 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::line_offset#0 gotoxy::$5 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [45] conio_line_text = gotoxy::$5 [ gotoxy::line_offset#0 ] ( gotoxy:14 [ gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [46] gotoxy::$6 = COLORRAM + gotoxy::line_offset#0 [ gotoxy::$6 ] ( gotoxy:14 [ gotoxy::$6 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$6 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [47] conio_line_color = gotoxy::$6 [ ] ( gotoxy:14 [ ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [49] conio_line_text = conio_line_text + $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [50] conio_line_color = conio_line_color + $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [51] conio_cursor_x = 0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( cputln:23 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [58] conio_cursor_x = 0 [ conio_cursor_x ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x ] { } ) always clobbers reg byte a
|
|
Statement [59] conio_cursor_y = 0 [ conio_cursor_x conio_cursor_y ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x conio_cursor_y ] { } ) always clobbers reg byte a
|
|
Statement [60] conio_line_text = DEFAULT_SCREEN [ conio_cursor_x conio_cursor_y conio_line_text ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x conio_cursor_y conio_line_text ] { } ) always clobbers reg byte a
|
|
Statement [61] conio_line_color = COLORRAM [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } ) always clobbers reg byte a
|
|
Statement [65] clrscr::line_text#1 = clrscr::line_text#5 + $28 [ clrscr::l#2 clrscr::line_cols#5 clrscr::line_text#1 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_cols#5 clrscr::line_text#1 ] { } ) always clobbers reg byte a
|
|
Removing always clobbered register reg byte a as potential for zp[1]:52 [ clrscr::l#2 clrscr::l#1 ]
|
|
Statement [66] clrscr::line_cols#1 = clrscr::line_cols#5 + $28 [ clrscr::l#2 clrscr::line_text#1 clrscr::line_cols#1 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_text#1 clrscr::line_cols#1 ] { } ) always clobbers reg byte a
|
|
Statement [68] clrscr::line_text#5[clrscr::c#2] = ' ' [ clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] { } ) always clobbers reg byte a
|
|
Removing always clobbered register reg byte a as potential for zp[1]:47 [ clrscr::c#2 clrscr::c#1 ]
|
|
Statement [69] clrscr::line_cols#5[clrscr::c#2] = LIGHT_BLUE [ clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] { } ) always clobbers reg byte a
|
|
Statement [71] printf_sint::value#1 = test_casting::signed_short_value#0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] ( main:7::test_casting:34 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [76] if(conio_cursor_y!=$19) goto cscroll::@return [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [85] conio_line_text = conio_line_text - $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [86] conio_line_color = conio_line_color - $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [89] *((char *)&printf_buffer) = 0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [90] if(printf_sint::value#1<0) goto printf_sint::@1 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [91] printf_sint::value#0 = - printf_sint::value#1 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [92] *((char *)&printf_buffer) = '-' [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [94] utoa::value#1 = (unsigned int)printf_sint::value#4 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::value#1 ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::value#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [101] printf_str::c#1 = *printf_str::s#3 [ printf_str::s#3 printf_str::c#1 ] ( main:7::test_casting:34::printf_str:74 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_str::s#3 printf_str::c#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 } } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::printf_str:153 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_str::s#3 printf_str::c#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [106] callexecute *printf_str::putc#4 [ printf_str::s#0 ] ( main:7::test_casting:34::printf_str:74 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_str::s#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 } } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::printf_str:153 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_str::s#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte x reg byte y
|
|
Statement sideeffect stackpullpadding(1) always clobbers reg byte a
|
|
Statement [109] memcpy::src_end#0 = (char *)memcpy::source#2 + (unsigned int)$19*$28-$28 [ memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [110] memcpy::src#4 = (char *)memcpy::source#2 [ memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [111] memcpy::dst#4 = (char *)memcpy::destination#2 [ memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [113] if(memcpy::src#2!=memcpy::src_end#0) goto memcpy::@2 [ memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [115] *memcpy::dst#2 = *memcpy::src#2 [ memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [119] memset::end#0 = (char *)memset::str#3 + $28 [ memset::str#3 memset::c#4 memset::end#0 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Removing always clobbered register reg byte a as potential for zp[1]:15 [ memset::c#4 ]
|
|
Statement [120] memset::dst#4 = (char *)memset::str#3 [ memset::c#4 memset::end#0 memset::dst#4 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [122] if(memset::dst#2!=memset::end#0) goto memset::@3 [ memset::c#4 memset::end#0 memset::dst#2 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [124] *memset::dst#2 = memset::c#4 [ memset::c#4 memset::end#0 memset::dst#2 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Removing always clobbered register reg byte y as potential for zp[1]:15 [ memset::c#4 ]
|
|
Statement [130] *utoa::buffer#11 = DIGITS[utoa::$11] [ printf_buffer utoa::buffer#11 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::buffer#11 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [131] utoa::buffer#3 = ++ utoa::buffer#11 [ printf_buffer utoa::buffer#3 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::buffer#3 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [132] *utoa::buffer#3 = 0 [ printf_buffer ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [134] utoa::$10 = utoa::digit#2 << 1 [ printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::$10 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::$10 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Removing always clobbered register reg byte a as potential for zp[1]:25 [ utoa::digit#2 utoa::digit#1 ]
|
|
Removing always clobbered register reg byte a as potential for zp[1]:29 [ utoa::started#2 utoa::started#4 ]
|
|
Statement [135] utoa::digit_value#0 = RADIX_DECIMAL_VALUES[utoa::$10] [ printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [137] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@5 [ printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [140] utoa_append::buffer#0 = utoa::buffer#11 [ printf_buffer utoa::digit#2 utoa::value#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [141] utoa_append::value#0 = utoa::value#2 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 utoa_append::value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 utoa_append::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [142] utoa_append::sub#0 = utoa::digit_value#0 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::value#0 utoa_append::sub#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::value#0 utoa_append::sub#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [144] utoa_append::return#0 = utoa_append::value#2 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::return#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::return#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [145] utoa::value#0 = utoa_append::return#0 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa::value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement sideeffect stackpullpadding(1) always clobbers reg byte a
|
|
Statement [157] if(utoa_append::value#2>=utoa_append::sub#0) goto utoa_append::@2 [ utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#2 utoa_append::digit#2 ] ( main:7::test_casting:34::printf_sint:72::utoa:95::utoa_append:143 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#2 utoa_append::digit#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Removing always clobbered register reg byte a as potential for zp[1]:10 [ utoa_append::digit#2 utoa_append::digit#1 ]
|
|
Statement [158] *utoa_append::buffer#0 = DIGITS[utoa_append::digit#2] [ utoa_append::value#2 ] ( main:7::test_casting:34::printf_sint:72::utoa:95::utoa_append:143 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::value#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a reg byte y
|
|
Removing always clobbered register reg byte y as potential for zp[1]:25 [ utoa::digit#2 utoa::digit#1 ]
|
|
Statement [161] utoa_append::value#1 = utoa_append::value#2 - utoa_append::sub#0 [ utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#1 utoa_append::digit#1 ] ( main:7::test_casting:34::printf_sint:72::utoa:95::utoa_append:143 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#1 utoa_append::digit#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [1] conio_cursor_x = 0 [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [2] conio_cursor_y = 0 [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [3] conio_line_text = DEFAULT_SCREEN [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [4] conio_line_color = COLORRAM [ printf_buffer ] ( [ printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [16] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C) [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color cputc::c#0 ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color cputc::c#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color cputc::c#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte x
|
|
Statement [18] conio_line_text[conio_cursor_x] = cputc::c#0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte y
|
|
Statement [19] conio_line_color[conio_cursor_x] = LIGHT_BLUE [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [21] if(conio_cursor_x!=$28) goto cputc::@return [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [30] if(main::signed_char_value#2!=0) goto main::@2 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#2 printf_buffer ] ( main:7 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#2 printf_buffer ] { } ) always clobbers reg byte a
|
|
Statement [33] test_casting::signed_short_value#0 = main::signed_char_value#1 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#1 test_casting::signed_short_value#0 printf_buffer ] ( main:7 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color main::signed_char_value#1 test_casting::signed_short_value#0 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 } } ) always clobbers reg byte a
|
|
Statement [38] conio_cursor_x = gotoxy::x#2 [ gotoxy::y#4 ] ( gotoxy:14 [ gotoxy::y#4 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::y#4 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [40] gotoxy::$7 = (unsigned int)gotoxy::y#4 [ gotoxy::$7 ] ( gotoxy:14 [ gotoxy::$7 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$7 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [41] gotoxy::$8 = gotoxy::$7 << 2 [ gotoxy::$7 gotoxy::$8 ] ( gotoxy:14 [ gotoxy::$7 gotoxy::$8 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$7 gotoxy::$8 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [42] gotoxy::$9 = gotoxy::$8 + gotoxy::$7 [ gotoxy::$9 ] ( gotoxy:14 [ gotoxy::$9 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$9 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [43] gotoxy::line_offset#0 = gotoxy::$9 << 3 [ gotoxy::line_offset#0 ] ( gotoxy:14 [ gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [44] gotoxy::$5 = DEFAULT_SCREEN + gotoxy::line_offset#0 [ gotoxy::line_offset#0 gotoxy::$5 ] ( gotoxy:14 [ gotoxy::line_offset#0 gotoxy::$5 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::line_offset#0 gotoxy::$5 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [45] conio_line_text = gotoxy::$5 [ gotoxy::line_offset#0 ] ( gotoxy:14 [ gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::line_offset#0 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [46] gotoxy::$6 = COLORRAM + gotoxy::line_offset#0 [ gotoxy::$6 ] ( gotoxy:14 [ gotoxy::$6 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer gotoxy::$6 ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [47] conio_line_color = gotoxy::$6 [ ] ( gotoxy:14 [ ] { { gotoxy::y#2 = conio_c64_init::line#2 } } conio_c64_init:5::gotoxy:14 [ printf_buffer ] { { gotoxy::y#2 = conio_c64_init::line#2 } } ) always clobbers reg byte a
|
|
Statement [49] conio_line_text = conio_line_text + $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [50] conio_line_color = conio_line_color + $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26 [ conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26 [ main::signed_char_value#1 printf_buffer conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [51] conio_cursor_x = 0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( cputln:23 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [58] conio_cursor_x = 0 [ conio_cursor_x ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x ] { } ) always clobbers reg byte a
|
|
Statement [59] conio_cursor_y = 0 [ conio_cursor_x conio_cursor_y ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x conio_cursor_y ] { } ) always clobbers reg byte a
|
|
Statement [60] conio_line_text = DEFAULT_SCREEN [ conio_cursor_x conio_cursor_y conio_line_text ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x conio_cursor_y conio_line_text ] { } ) always clobbers reg byte a
|
|
Statement [61] conio_line_color = COLORRAM [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] ( main:7::clrscr:28 [ printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } ) always clobbers reg byte a
|
|
Statement [65] clrscr::line_text#1 = clrscr::line_text#5 + $28 [ clrscr::l#2 clrscr::line_cols#5 clrscr::line_text#1 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_cols#5 clrscr::line_text#1 ] { } ) always clobbers reg byte a
|
|
Statement [66] clrscr::line_cols#1 = clrscr::line_cols#5 + $28 [ clrscr::l#2 clrscr::line_text#1 clrscr::line_cols#1 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_text#1 clrscr::line_cols#1 ] { } ) always clobbers reg byte a
|
|
Statement [68] clrscr::line_text#5[clrscr::c#2] = ' ' [ clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] { } ) always clobbers reg byte a
|
|
Statement [69] clrscr::line_cols#5[clrscr::c#2] = LIGHT_BLUE [ clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] ( main:7::clrscr:28 [ printf_buffer clrscr::l#2 clrscr::line_text#5 clrscr::line_cols#5 clrscr::c#2 ] { } ) always clobbers reg byte a
|
|
Statement [71] printf_sint::value#1 = test_casting::signed_short_value#0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] ( main:7::test_casting:34 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [76] if(conio_cursor_y!=$19) goto cscroll::@return [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [85] conio_line_text = conio_line_text - $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [86] conio_line_color = conio_line_color - $28 [ conio_cursor_y conio_line_text conio_line_color ] ( cputln:23::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [89] *((char *)&printf_buffer) = 0 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [90] if(printf_sint::value#1<0) goto printf_sint::@1 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_sint::value#1 printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [91] printf_sint::value#0 = - printf_sint::value#1 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [92] *((char *)&printf_buffer) = '-' [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_sint::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [94] utoa::value#1 = (unsigned int)printf_sint::value#4 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::value#1 ] ( main:7::test_casting:34::printf_sint:72 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::value#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [101] printf_str::c#1 = *printf_str::s#3 [ printf_str::s#3 printf_str::c#1 ] ( main:7::test_casting:34::printf_str:74 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_str::s#3 printf_str::c#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 } } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::printf_str:153 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_str::s#3 printf_str::c#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [106] callexecute *printf_str::putc#4 [ printf_str::s#0 ] ( main:7::test_casting:34::printf_str:74 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer printf_str::s#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 } } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::printf_str:153 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_str::s#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte x reg byte y
|
|
Statement sideeffect stackpullpadding(1) always clobbers reg byte a
|
|
Statement [109] memcpy::src_end#0 = (char *)memcpy::source#2 + (unsigned int)$19*$28-$28 [ memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::source#2 memcpy::destination#2 memcpy::src_end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [110] memcpy::src#4 = (char *)memcpy::source#2 [ memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::destination#2 memcpy::src_end#0 memcpy::src#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [111] memcpy::dst#4 = (char *)memcpy::destination#2 [ memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#4 memcpy::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [113] if(memcpy::src#2!=memcpy::src_end#0) goto memcpy::@2 [ memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [115] *memcpy::dst#2 = *memcpy::src#2 [ memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] ( cputln:23::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:78 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:78 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memcpy:80 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memcpy:80 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memcpy::src_end#0 memcpy::src#2 memcpy::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [119] memset::end#0 = (char *)memset::str#3 + $28 [ memset::str#3 memset::c#4 memset::end#0 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::str#3 memset::c#4 memset::end#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [120] memset::dst#4 = (char *)memset::str#3 [ memset::c#4 memset::end#0 memset::dst#4 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#4 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [122] if(memset::dst#2!=memset::end#0) goto memset::@3 [ memset::c#4 memset::end#0 memset::dst#2 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [124] *memset::dst#2 = memset::c#4 [ memset::c#4 memset::end#0 memset::dst#2 ] ( cputln:23::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:82 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:82 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:23::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:23::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } cputln:26::cscroll:53::memset:84 [ conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { } main:7::test_casting:34::printf_sint:72::printf_number_buffer:97::cputc:150::cputln:26::cscroll:53::memset:84 [ main::signed_char_value#1 printf_buffer conio_cursor_x conio_cursor_y conio_line_text conio_line_color memset::c#4 memset::end#0 memset::dst#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [130] *utoa::buffer#11 = DIGITS[utoa::$11] [ printf_buffer utoa::buffer#11 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::buffer#11 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [131] utoa::buffer#3 = ++ utoa::buffer#11 [ printf_buffer utoa::buffer#3 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::buffer#3 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [132] *utoa::buffer#3 = 0 [ printf_buffer ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a reg byte y
|
|
Statement [134] utoa::$10 = utoa::digit#2 << 1 [ printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::$10 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::$10 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [135] utoa::digit_value#0 = RADIX_DECIMAL_VALUES[utoa::$10] [ printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [137] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@5 [ printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::started#2 utoa::buffer#11 utoa::digit_value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement [140] utoa_append::buffer#0 = utoa::buffer#11 [ printf_buffer utoa::digit#2 utoa::value#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::value#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [141] utoa_append::value#0 = utoa::value#2 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 utoa_append::value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa::digit_value#0 utoa_append::buffer#0 utoa_append::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [142] utoa_append::sub#0 = utoa::digit_value#0 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::value#0 utoa_append::sub#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::value#0 utoa_append::sub#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [144] utoa_append::return#0 = utoa_append::value#2 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::return#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::return#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [145] utoa::value#0 = utoa_append::return#0 [ printf_buffer utoa::digit#2 utoa::buffer#11 utoa::value#0 ] ( main:7::test_casting:34::printf_sint:72::utoa:95 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa::value#0 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } } ) always clobbers reg byte a
|
|
Statement sideeffect stackpullpadding(1) always clobbers reg byte a
|
|
Statement [157] if(utoa_append::value#2>=utoa_append::sub#0) goto utoa_append::@2 [ utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#2 utoa_append::digit#2 ] ( main:7::test_casting:34::printf_sint:72::utoa:95::utoa_append:143 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#2 utoa_append::digit#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Statement [158] *utoa_append::buffer#0 = DIGITS[utoa_append::digit#2] [ utoa_append::value#2 ] ( main:7::test_casting:34::printf_sint:72::utoa:95::utoa_append:143 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::value#2 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a reg byte y
|
|
Statement [161] utoa_append::value#1 = utoa_append::value#2 - utoa_append::sub#0 [ utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#1 utoa_append::digit#1 ] ( main:7::test_casting:34::printf_sint:72::utoa:95::utoa_append:143 [ main::signed_char_value#1 conio_cursor_x conio_cursor_y conio_line_text conio_line_color printf_buffer utoa::digit#2 utoa::buffer#11 utoa_append::buffer#0 utoa_append::sub#0 utoa_append::value#1 utoa_append::digit#1 ] { { test_casting::signed_short_value#0 = main::signed_char_value#1 printf_sint::value#1 } { utoa_append::buffer#0 = utoa::buffer#11 } { utoa_append::value#0 = utoa::value#2 } { utoa_append::sub#0 = utoa::digit_value#0 } { utoa_append::return#0 = utoa_append::value#2 } } ) always clobbers reg byte a
|
|
Potential registers zp[1]:69 [ conio_c64_init::line#2 conio_c64_init::line#0 ] : zp[1]:69 , reg byte a , reg byte x , reg byte y ,
|
|
Potential registers zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ] : zp[1]:55 ,
|
|
Potential registers zp[1]:66 [ gotoxy::y#4 gotoxy::y#2 ] : zp[1]:66 , reg byte x , reg byte y ,
|
|
Potential registers zp[1]:52 [ clrscr::l#2 clrscr::l#1 ] : zp[1]:52 , reg byte x , reg byte y ,
|
|
Potential registers zp[2]:50 [ clrscr::line_text#5 clrscr::line_text#1 ] : zp[2]:50 ,
|
|
Potential registers zp[2]:48 [ clrscr::line_cols#5 clrscr::line_cols#1 ] : zp[2]:48 ,
|
|
Potential registers zp[1]:47 [ clrscr::c#2 clrscr::c#1 ] : zp[1]:47 , reg byte x , reg byte y ,
|
|
Potential registers zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 ] : zp[2]:45 ,
|
|
Potential registers zp[2]:70 [ printf_str::putc#4 ] : zp[2]:70 ,
|
|
Potential registers zp[2]:18 [ printf_str::s#3 printf_str::s#4 printf_str::s#0 ] : zp[2]:18 ,
|
|
Potential registers zp[2]:72 [ memcpy::source#2 ] : zp[2]:72 ,
|
|
Potential registers zp[2]:74 [ memcpy::destination#2 ] : zp[2]:74 ,
|
|
Potential registers zp[2]:4 [ memcpy::src#2 memcpy::src#4 memcpy::src#1 ] : zp[2]:4 ,
|
|
Potential registers zp[2]:8 [ memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ] : zp[2]:8 ,
|
|
Potential registers zp[2]:76 [ memset::str#3 ] : zp[2]:76 ,
|
|
Potential registers zp[1]:15 [ memset::c#4 ] : zp[1]:15 , reg byte x ,
|
|
Potential registers zp[2]:2 [ memset::dst#2 memset::dst#4 memset::dst#1 ] : zp[2]:2 ,
|
|
Potential registers zp[1]:25 [ utoa::digit#2 utoa::digit#1 ] : zp[1]:25 , reg byte x ,
|
|
Potential registers zp[2]:23 [ utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ] : zp[2]:23 ,
|
|
Potential registers zp[1]:29 [ utoa::started#2 utoa::started#4 ] : zp[1]:29 , reg byte x , reg byte y ,
|
|
Potential registers zp[2]:21 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 ] : zp[2]:21 ,
|
|
Potential registers zp[2]:6 [ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 ] : zp[2]:6 ,
|
|
Potential registers zp[1]:10 [ utoa_append::digit#2 utoa_append::digit#1 ] : zp[1]:10 , reg byte x , reg byte y ,
|
|
Potential registers zp[1]:40 [ conio_cursor_x ] : zp[1]:40 ,
|
|
Potential registers zp[1]:34 [ conio_cursor_y ] : zp[1]:34 ,
|
|
Potential registers zp[2]:37 [ conio_line_text ] : zp[2]:37 ,
|
|
Potential registers zp[2]:35 [ conio_line_color ] : zp[2]:35 ,
|
|
Potential registers zp[1]:39 [ cputc::c#0 ] : zp[1]:39 , reg byte a , reg byte x , reg byte y ,
|
|
Potential registers zp[2]:53 [ test_casting::signed_short_value#0 ] : zp[2]:53 ,
|
|
Potential registers zp[2]:64 [ gotoxy::$7 ] : zp[2]:64 ,
|
|
Potential registers zp[2]:56 [ gotoxy::$8 ] : zp[2]:56 ,
|
|
Potential registers zp[2]:58 [ gotoxy::$9 ] : zp[2]:58 ,
|
|
Potential registers zp[2]:67 [ gotoxy::line_offset#0 ] : zp[2]:67 ,
|
|
Potential registers zp[2]:60 [ gotoxy::$5 ] : zp[2]:60 ,
|
|
Potential registers zp[2]:62 [ gotoxy::$6 ] : zp[2]:62 ,
|
|
Potential registers zp[1]:44 [ printf_number_buffer::buffer_sign#0 ] : zp[1]:44 , reg byte a , reg byte x , reg byte y ,
|
|
Potential registers zp[1]:20 [ printf_str::c#1 ] : zp[1]:20 , reg byte a , reg byte x , reg byte y ,
|
|
Potential registers zp[2]:16 [ memcpy::src_end#0 ] : zp[2]:16 ,
|
|
Potential registers zp[2]:13 [ memset::end#0 ] : zp[2]:13 ,
|
|
Potential registers zp[1]:41 [ utoa::$11 ] : zp[1]:41 , reg byte a , reg byte x , reg byte y ,
|
|
Potential registers zp[2]:42 [ utoa::buffer#3 ] : zp[2]:42 ,
|
|
Potential registers zp[1]:26 [ utoa::$10 ] : zp[1]:26 , reg byte a , reg byte x , reg byte y ,
|
|
Potential registers zp[2]:32 [ utoa::digit_value#0 ] : zp[2]:32 ,
|
|
Potential registers zp[2]:30 [ utoa_append::buffer#0 ] : zp[2]:30 ,
|
|
Potential registers zp[2]:11 [ utoa_append::sub#0 ] : zp[2]:11 ,
|
|
Potential registers zp[2]:27 [ utoa_append::return#0 ] : zp[2]:27 ,
|
|
Potential registers mem[12] [ printf_buffer ] : mem[12] ,
|
|
|
|
REGISTER UPLIFT SCOPES
|
|
Uplift Scope [memcpy] 301,250,000,004.25: zp[2]:4 [ memcpy::src#2 memcpy::src#4 memcpy::src#1 ] 202,333,333,337.67: zp[2]:8 [ memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ] 12,625,000,000.25: zp[2]:16 [ memcpy::src_end#0 ] 0: zp[2]:72 [ memcpy::source#2 ] 0: zp[2]:74 [ memcpy::destination#2 ]
|
|
Uplift Scope [utoa_append] 250,055,000,003.5: zp[2]:6 [ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 ] 200,050,000,002.5: zp[1]:10 [ utoa_append::digit#2 utoa_append::digit#1 ] 33,335,000,000.5: zp[2]:11 [ utoa_append::sub#0 ] 20,000,002: zp[2]:27 [ utoa_append::return#0 ] 13,750,000.25: zp[2]:30 [ utoa_append::buffer#0 ]
|
|
Uplift Scope [memset] 335,666,666,672.33: zp[2]:2 [ memset::dst#2 memset::dst#4 memset::dst#1 ] 16,833,333,333.67: zp[2]:13 [ memset::end#0 ] 14,285,714,285.86: zp[1]:15 [ memset::c#4 ] 0: zp[2]:76 [ memset::str#3 ]
|
|
Uplift Scope [printf_str] 251,500,004: zp[2]:18 [ printf_str::s#3 printf_str::s#4 printf_str::s#0 ] 100,000,001: zp[1]:20 [ printf_str::c#1 ] 0: zp[2]:70 [ printf_str::putc#4 ]
|
|
Uplift Scope [utoa] 37,871,432.5: zp[2]:21 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 ] 30,783,575.64: zp[2]:23 [ utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ] 22,857,145.14: zp[1]:25 [ utoa::digit#2 utoa::digit#1 ] 20,000,002: zp[1]:26 [ utoa::$10 ] 15,000,001.5: zp[1]:29 [ utoa::started#2 utoa::started#4 ] 6,000,000.6: zp[2]:32 [ utoa::digit_value#0 ] 200,002: zp[1]:41 [ utoa::$11 ] 200,002: zp[2]:42 [ utoa::buffer#3 ]
|
|
Uplift Scope [] 5,079,368.4: zp[1]:34 [ conio_cursor_y ] 3,622,954.25: zp[2]:35 [ conio_line_color ] 3,564,519.5: zp[2]:37 [ conio_line_text ] 319,153.4: zp[1]:40 [ conio_cursor_x ] 0: mem[12] [ printf_buffer ]
|
|
Uplift Scope [cputc] 1,500,001.5: zp[1]:39 [ cputc::c#0 ]
|
|
Uplift Scope [printf_number_buffer] 70,001: zp[1]:44 [ printf_number_buffer::buffer_sign#0 ]
|
|
Uplift Scope [printf_sint] 40,337.67: zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 ]
|
|
Uplift Scope [clrscr] 32,503.25: zp[1]:47 [ clrscr::c#2 clrscr::c#1 ] 2,501.38: zp[2]:48 [ clrscr::line_cols#5 clrscr::line_cols#1 ] 2,382.05: zp[2]:50 [ clrscr::line_text#5 clrscr::line_text#1 ] 2,335.67: zp[1]:52 [ clrscr::l#2 clrscr::l#1 ]
|
|
Uplift Scope [gotoxy] 202: zp[2]:56 [ gotoxy::$8 ] 202: zp[2]:58 [ gotoxy::$9 ] 202: zp[2]:60 [ gotoxy::$5 ] 202: zp[2]:62 [ gotoxy::$6 ] 151.5: zp[2]:64 [ gotoxy::$7 ] 138.33: zp[1]:66 [ gotoxy::y#4 gotoxy::y#2 ] 101: zp[2]:67 [ gotoxy::line_offset#0 ]
|
|
Uplift Scope [test_casting] 1,102: zp[2]:53 [ test_casting::signed_short_value#0 ]
|
|
Uplift Scope [main] 252.5: zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Uplift Scope [conio_c64_init] 33: zp[1]:69 [ conio_c64_init::line#2 conio_c64_init::line#0 ]
|
|
Uplift Scope [cputln]
|
|
Uplift Scope [MOS6526_CIA]
|
|
Uplift Scope [MOS6569_VICII]
|
|
Uplift Scope [MOS6581_SID]
|
|
Uplift Scope [cscroll]
|
|
Uplift Scope [RADIX]
|
|
Uplift Scope [printf_format_number]
|
|
Uplift Scope [printf_buffer_number]
|
|
Uplift Scope [printf_format_string]
|
|
Uplift Scope [__start]
|
|
|
|
Uplifting [memcpy] best 101001 combination zp[2]:4 [ memcpy::src#2 memcpy::src#4 memcpy::src#1 ] zp[2]:8 [ memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ] zp[2]:16 [ memcpy::src_end#0 ] zp[2]:72 [ memcpy::source#2 ] zp[2]:74 [ memcpy::destination#2 ]
|
|
Uplifting [utoa_append] best 94998 combination zp[2]:6 [ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 ] reg byte x [ utoa_append::digit#2 utoa_append::digit#1 ] zp[2]:11 [ utoa_append::sub#0 ] zp[2]:27 [ utoa_append::return#0 ] zp[2]:30 [ utoa_append::buffer#0 ]
|
|
Uplifting [memset] best 94892 combination zp[2]:2 [ memset::dst#2 memset::dst#4 memset::dst#1 ] zp[2]:13 [ memset::end#0 ] reg byte x [ memset::c#4 ] zp[2]:76 [ memset::str#3 ]
|
|
Uplifting [printf_str] best 94192 combination zp[2]:18 [ printf_str::s#3 printf_str::s#4 printf_str::s#0 ] reg byte a [ printf_str::c#1 ] zp[2]:70 [ printf_str::putc#4 ]
|
|
Uplifting [utoa] best 93086 combination zp[2]:21 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 ] zp[2]:23 [ utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ] zp[1]:25 [ utoa::digit#2 utoa::digit#1 ] reg byte a [ utoa::$10 ] reg byte x [ utoa::started#2 utoa::started#4 ] zp[2]:32 [ utoa::digit_value#0 ] reg byte x [ utoa::$11 ] zp[2]:42 [ utoa::buffer#3 ]
|
|
Uplifting [] best 93086 combination zp[1]:34 [ conio_cursor_y ] zp[2]:35 [ conio_line_color ] zp[2]:37 [ conio_line_text ] zp[1]:40 [ conio_cursor_x ] mem[12] [ printf_buffer ]
|
|
Uplifting [cputc] best 93077 combination reg byte a [ cputc::c#0 ]
|
|
Uplifting [printf_number_buffer] best 93070 combination reg byte a [ printf_number_buffer::buffer_sign#0 ]
|
|
Uplifting [printf_sint] best 93070 combination zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 ]
|
|
Uplifting [clrscr] best 91480 combination reg byte y [ clrscr::c#2 clrscr::c#1 ] zp[2]:48 [ clrscr::line_cols#5 clrscr::line_cols#1 ] zp[2]:50 [ clrscr::line_text#5 clrscr::line_text#1 ] reg byte x [ clrscr::l#2 clrscr::l#1 ]
|
|
Uplifting [gotoxy] best 91467 combination zp[2]:56 [ gotoxy::$8 ] zp[2]:58 [ gotoxy::$9 ] zp[2]:60 [ gotoxy::$5 ] zp[2]:62 [ gotoxy::$6 ] zp[2]:64 [ gotoxy::$7 ] reg byte x [ gotoxy::y#4 gotoxy::y#2 ] zp[2]:67 [ gotoxy::line_offset#0 ]
|
|
Uplifting [test_casting] best 91467 combination zp[2]:53 [ test_casting::signed_short_value#0 ]
|
|
Uplifting [main] best 91467 combination zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Uplifting [conio_c64_init] best 91455 combination reg byte x [ conio_c64_init::line#2 conio_c64_init::line#0 ]
|
|
Uplifting [cputln] best 91455 combination
|
|
Uplifting [MOS6526_CIA] best 91455 combination
|
|
Uplifting [MOS6569_VICII] best 91455 combination
|
|
Uplifting [MOS6581_SID] best 91455 combination
|
|
Uplifting [cscroll] best 91455 combination
|
|
Uplifting [RADIX] best 91455 combination
|
|
Uplifting [printf_format_number] best 91455 combination
|
|
Uplifting [printf_buffer_number] best 91455 combination
|
|
Uplifting [printf_format_string] best 91455 combination
|
|
Uplifting [__start] best 91455 combination
|
|
Attempting to uplift remaining variables inzp[1]:25 [ utoa::digit#2 utoa::digit#1 ]
|
|
Uplifting [utoa] best 91455 combination zp[1]:25 [ utoa::digit#2 utoa::digit#1 ]
|
|
Attempting to uplift remaining variables inzp[1]:34 [ conio_cursor_y ]
|
|
Uplifting [] best 91455 combination zp[1]:34 [ conio_cursor_y ]
|
|
Attempting to uplift remaining variables inzp[1]:40 [ conio_cursor_x ]
|
|
Uplifting [] best 91455 combination zp[1]:40 [ conio_cursor_x ]
|
|
Attempting to uplift remaining variables inzp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Uplifting [main] best 91455 combination zp[1]:55 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Coalescing zero page register [ zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 ] ] with [ zp[2]:23 [ utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 ] ] with [ zp[2]:53 [ test_casting::signed_short_value#0 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:72 [ memcpy::source#2 ] ] with [ zp[2]:4 [ memcpy::src#2 memcpy::src#4 memcpy::src#1 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:74 [ memcpy::destination#2 ] ] with [ zp[2]:8 [ memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:76 [ memset::str#3 ] ] with [ zp[2]:2 [ memset::dst#2 memset::dst#4 memset::dst#1 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:21 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 ] ] with [ zp[2]:42 [ utoa::buffer#3 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:21 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 utoa::buffer#3 ] ] with [ zp[2]:30 [ utoa_append::buffer#0 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:6 [ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 ] ] with [ zp[2]:27 [ utoa_append::return#0 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:64 [ gotoxy::$7 ] ] with [ zp[2]:58 [ gotoxy::$9 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:67 [ gotoxy::line_offset#0 ] ] with [ zp[2]:62 [ gotoxy::$6 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:32 [ utoa::digit_value#0 ] ] with [ zp[2]:11 [ utoa_append::sub#0 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 test_casting::signed_short_value#0 ] ] with [ zp[2]:6 [ utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 utoa_append::return#0 ] ] - score: 2
|
|
Coalescing zero page register [ zp[2]:64 [ gotoxy::$7 gotoxy::$9 ] ] with [ zp[2]:67 [ gotoxy::line_offset#0 gotoxy::$6 ] ] - score: 1
|
|
Coalescing zero page register [ zp[2]:45 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 test_casting::signed_short_value#0 utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 utoa_append::return#0 ] ] with [ zp[2]:50 [ clrscr::line_text#5 clrscr::line_text#1 ] ]
|
|
Coalescing zero page register [ zp[2]:70 [ printf_str::putc#4 ] ] with [ zp[2]:48 [ clrscr::line_cols#5 clrscr::line_cols#1 ] ]
|
|
Coalescing zero page register [ zp[2]:76 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 ] ] with [ zp[2]:72 [ memcpy::source#2 memcpy::src#2 memcpy::src#4 memcpy::src#1 ] ]
|
|
Coalescing zero page register [ zp[2]:21 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 utoa::buffer#3 utoa_append::buffer#0 ] ] with [ zp[2]:18 [ printf_str::s#3 printf_str::s#4 printf_str::s#0 ] ]
|
|
Coalescing zero page register [ zp[2]:13 [ memset::end#0 ] ] with [ zp[2]:74 [ memcpy::destination#2 memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ] ]
|
|
Coalescing zero page register [ zp[2]:32 [ utoa::digit_value#0 utoa_append::sub#0 ] ] with [ zp[2]:70 [ printf_str::putc#4 clrscr::line_cols#5 clrscr::line_cols#1 ] ]
|
|
Allocated (was zp[2]:76) zp[2]:2 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 memcpy::source#2 memcpy::src#2 memcpy::src#4 memcpy::src#1 ]
|
|
Allocated (was zp[2]:45) zp[2]:4 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 test_casting::signed_short_value#0 utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 utoa_append::return#0 clrscr::line_text#5 clrscr::line_text#1 ]
|
|
Allocated (was zp[2]:13) zp[2]:6 [ memset::end#0 memcpy::destination#2 memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ]
|
|
Allocated (was zp[2]:32) zp[2]:8 [ utoa::digit_value#0 utoa_append::sub#0 printf_str::putc#4 clrscr::line_cols#5 clrscr::line_cols#1 ]
|
|
Allocated (was zp[2]:16) zp[2]:10 [ memcpy::src_end#0 ]
|
|
Allocated (was zp[2]:21) zp[2]:12 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 utoa::buffer#3 utoa_append::buffer#0 printf_str::s#3 printf_str::s#4 printf_str::s#0 ]
|
|
Allocated (was zp[1]:25) zp[1]:14 [ utoa::digit#2 utoa::digit#1 ]
|
|
Allocated (was zp[1]:34) zp[1]:15 [ conio_cursor_y ]
|
|
Allocated (was zp[2]:35) zp[2]:16 [ conio_line_color ]
|
|
Allocated (was zp[2]:37) zp[2]:18 [ conio_line_text ]
|
|
Allocated (was zp[1]:40) zp[1]:20 [ conio_cursor_x ]
|
|
Allocated (was zp[2]:64) zp[2]:21 [ gotoxy::$7 gotoxy::$9 gotoxy::line_offset#0 gotoxy::$6 ]
|
|
Allocated (was zp[1]:55) zp[1]:23 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
Allocated (was zp[2]:56) zp[2]:24 [ gotoxy::$8 ]
|
|
Allocated (was zp[2]:60) zp[2]:26 [ gotoxy::$5 ]
|
|
|
|
ASSEMBLER BEFORE OPTIMIZATION
|
|
// File Comments
|
|
// Demonstrates problem with Casting of negative signed values
|
|
// https://gitlab.com/camelot/kickc/-/issues/496
|
|
// Upstart
|
|
// Commodore 64 PRG executable file
|
|
.file [name="casting-negative.prg", type="prg", segments="Program"]
|
|
.segmentdef Program [segments="Basic, Code, Data"]
|
|
.segmentdef Basic [start=$0801]
|
|
.segmentdef Code [start=$80d]
|
|
.segmentdef Data [startAfter="Code"]
|
|
.segment Basic
|
|
:BasicUpstart(__start)
|
|
// Global Constants & labels
|
|
.const LIGHT_BLUE = $e
|
|
.const OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS = 1
|
|
.const STACK_BASE = $103
|
|
.const SIZEOF_STRUCT_PRINTF_BUFFER_NUMBER = $c
|
|
/// Color Ram
|
|
.label COLORRAM = $d800
|
|
/// Default address of screen character matrix
|
|
.label DEFAULT_SCREEN = $400
|
|
// The number of bytes on the screen
|
|
// The current cursor x-position
|
|
.label conio_cursor_x = $14
|
|
// The current cursor y-position
|
|
.label conio_cursor_y = $f
|
|
// The current text cursor line start
|
|
.label conio_line_text = $12
|
|
// The current color cursor line start
|
|
.label conio_line_color = $10
|
|
.segment Code
|
|
// __start
|
|
__start: {
|
|
jmp __init1
|
|
// __start::__init1
|
|
__init1:
|
|
// [1] conio_cursor_x = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_x
|
|
// [2] conio_cursor_y = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_y
|
|
// [3] conio_line_text = DEFAULT_SCREEN -- pbuz1=pbuc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z conio_line_text
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z conio_line_text+1
|
|
// [4] conio_line_color = COLORRAM -- pbuz1=pbuc1
|
|
lda #<COLORRAM
|
|
sta.z conio_line_color
|
|
lda #>COLORRAM
|
|
sta.z conio_line_color+1
|
|
// [5] call conio_c64_init
|
|
jsr conio_c64_init
|
|
// [6] phi from __start::__init1 to __start::@1 [phi:__start::__init1->__start::@1]
|
|
__b1_from___init1:
|
|
jmp __b1
|
|
// __start::@1
|
|
__b1:
|
|
// [7] call main
|
|
// [27] phi from __start::@1 to main [phi:__start::@1->main]
|
|
main_from___b1:
|
|
jsr main
|
|
jmp __breturn
|
|
// __start::@return
|
|
__breturn:
|
|
// [8] return
|
|
rts
|
|
}
|
|
// conio_c64_init
|
|
// Set initial cursor position
|
|
conio_c64_init: {
|
|
// Position cursor at current line
|
|
.label BASIC_CURSOR_LINE = $d6
|
|
// [9] conio_c64_init::line#0 = *conio_c64_init::BASIC_CURSOR_LINE -- vbuxx=_deref_pbuc1
|
|
ldx.z BASIC_CURSOR_LINE
|
|
// [10] if(conio_c64_init::line#0<$19) goto conio_c64_init::@2 -- vbuxx_lt_vbuc1_then_la1
|
|
cpx #$19
|
|
bcc __b2_from_conio_c64_init
|
|
// [12] phi from conio_c64_init to conio_c64_init::@1 [phi:conio_c64_init->conio_c64_init::@1]
|
|
__b1_from_conio_c64_init:
|
|
// [12] phi conio_c64_init::line#2 = $19-1 [phi:conio_c64_init->conio_c64_init::@1#0] -- vbuxx=vbuc1
|
|
ldx #$19-1
|
|
jmp __b1
|
|
// [11] phi from conio_c64_init to conio_c64_init::@2 [phi:conio_c64_init->conio_c64_init::@2]
|
|
__b2_from_conio_c64_init:
|
|
jmp __b2
|
|
// conio_c64_init::@2
|
|
__b2:
|
|
// [12] phi from conio_c64_init::@2 to conio_c64_init::@1 [phi:conio_c64_init::@2->conio_c64_init::@1]
|
|
__b1_from___b2:
|
|
// [12] phi conio_c64_init::line#2 = conio_c64_init::line#0 [phi:conio_c64_init::@2->conio_c64_init::@1#0] -- register_copy
|
|
jmp __b1
|
|
// conio_c64_init::@1
|
|
__b1:
|
|
// [13] gotoxy::y#2 = conio_c64_init::line#2
|
|
// [14] call gotoxy
|
|
jsr gotoxy
|
|
jmp __breturn
|
|
// conio_c64_init::@return
|
|
__breturn:
|
|
// [15] return
|
|
rts
|
|
}
|
|
// cputc
|
|
// Output one character at the current cursor position
|
|
// Moves the cursor forward. Scrolls the entire screen if needed
|
|
// void cputc(__register(A) char c)
|
|
cputc: {
|
|
.const OFFSET_STACK_C = 0
|
|
// [16] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C) -- vbuaa=_stackidxbyte_vbuc1
|
|
tsx
|
|
lda STACK_BASE+OFFSET_STACK_C,x
|
|
// [17] if(cputc::c#0==' ') goto cputc::@1 -- vbuaa_eq_vbuc1_then_la1
|
|
cmp #'\n'
|
|
beq __b1_from_cputc
|
|
jmp __b2
|
|
// cputc::@2
|
|
__b2:
|
|
// [18] conio_line_text[conio_cursor_x] = cputc::c#0 -- pbuz1_derefidx_vbuz2=vbuaa
|
|
ldy.z conio_cursor_x
|
|
sta (conio_line_text),y
|
|
// [19] conio_line_color[conio_cursor_x] = LIGHT_BLUE -- pbuz1_derefidx_vbuz2=vbuc1
|
|
lda #LIGHT_BLUE
|
|
ldy.z conio_cursor_x
|
|
sta (conio_line_color),y
|
|
// [20] conio_cursor_x = ++ conio_cursor_x -- vbuz1=_inc_vbuz1
|
|
inc.z conio_cursor_x
|
|
// [21] if(conio_cursor_x!=$28) goto cputc::@return -- vbuz1_neq_vbuc1_then_la1
|
|
lda #$28
|
|
cmp.z conio_cursor_x
|
|
bne __breturn
|
|
// [22] phi from cputc::@2 to cputc::@3 [phi:cputc::@2->cputc::@3]
|
|
__b3_from___b2:
|
|
jmp __b3
|
|
// cputc::@3
|
|
__b3:
|
|
// [23] call cputln
|
|
jsr cputln
|
|
jmp __breturn
|
|
// cputc::@return
|
|
__breturn:
|
|
// [24] return
|
|
rts
|
|
// [25] phi from cputc to cputc::@1 [phi:cputc->cputc::@1]
|
|
__b1_from_cputc:
|
|
jmp __b1
|
|
// cputc::@1
|
|
__b1:
|
|
// [26] call cputln
|
|
jsr cputln
|
|
jmp __breturn
|
|
}
|
|
// main
|
|
main: {
|
|
.label signed_char_value = $17
|
|
// [28] call clrscr
|
|
// [55] phi from main to clrscr [phi:main->clrscr]
|
|
clrscr_from_main:
|
|
jsr clrscr
|
|
// [29] phi from main to main::@1 [phi:main->main::@1]
|
|
__b1_from_main:
|
|
// [29] phi main::signed_char_value#2 = -5 [phi:main->main::@1#0] -- vbsz1=vbsc1
|
|
lda #-5
|
|
sta.z signed_char_value
|
|
jmp __b1
|
|
// main::@1
|
|
__b1:
|
|
// [30] if(main::signed_char_value#2!=0) goto main::@2 -- vbsz1_neq_0_then_la1
|
|
lda.z signed_char_value
|
|
cmp #0
|
|
bne __b2
|
|
jmp __breturn
|
|
// main::@return
|
|
__breturn:
|
|
// [31] return
|
|
rts
|
|
// main::@2
|
|
__b2:
|
|
// [32] main::signed_char_value#1 = ++ main::signed_char_value#2 -- vbsz1=_inc_vbsz1
|
|
inc.z signed_char_value
|
|
// [33] test_casting::signed_short_value#0 = main::signed_char_value#1 -- vwsz1=vbsz2
|
|
lda.z signed_char_value
|
|
sta.z test_casting.signed_short_value
|
|
and #$80
|
|
beq !+
|
|
lda #$ff
|
|
!:
|
|
sta.z test_casting.signed_short_value+1
|
|
// [34] call test_casting
|
|
jsr test_casting
|
|
// [29] phi from main::@2 to main::@1 [phi:main::@2->main::@1]
|
|
__b1_from___b2:
|
|
// [29] phi main::signed_char_value#2 = main::signed_char_value#1 [phi:main::@2->main::@1#0] -- register_copy
|
|
jmp __b1
|
|
}
|
|
// gotoxy
|
|
// Set the cursor to the specified position
|
|
// void gotoxy(char x, __register(X) char y)
|
|
gotoxy: {
|
|
.const x = 0
|
|
.label __5 = $1a
|
|
.label __6 = $15
|
|
.label __7 = $15
|
|
.label line_offset = $15
|
|
.label __8 = $18
|
|
.label __9 = $15
|
|
// [35] if(gotoxy::y#2<$19+1) goto gotoxy::@3 -- vbuxx_lt_vbuc1_then_la1
|
|
cpx #$19+1
|
|
bcc __b3_from_gotoxy
|
|
// [37] phi from gotoxy to gotoxy::@1 [phi:gotoxy->gotoxy::@1]
|
|
__b1_from_gotoxy:
|
|
// [37] phi gotoxy::y#4 = 0 [phi:gotoxy->gotoxy::@1#0] -- vbuxx=vbuc1
|
|
ldx #0
|
|
jmp __b1
|
|
// [36] phi from gotoxy to gotoxy::@3 [phi:gotoxy->gotoxy::@3]
|
|
__b3_from_gotoxy:
|
|
jmp __b3
|
|
// gotoxy::@3
|
|
__b3:
|
|
// [37] phi from gotoxy::@3 to gotoxy::@1 [phi:gotoxy::@3->gotoxy::@1]
|
|
__b1_from___b3:
|
|
// [37] phi gotoxy::y#4 = gotoxy::y#2 [phi:gotoxy::@3->gotoxy::@1#0] -- register_copy
|
|
jmp __b1
|
|
// gotoxy::@1
|
|
__b1:
|
|
jmp __b2
|
|
// gotoxy::@2
|
|
__b2:
|
|
// [38] conio_cursor_x = gotoxy::x#2 -- vbuz1=vbuc1
|
|
lda #x
|
|
sta.z conio_cursor_x
|
|
// [39] conio_cursor_y = gotoxy::y#4 -- vbuz1=vbuxx
|
|
stx.z conio_cursor_y
|
|
// [40] gotoxy::$7 = (unsigned int)gotoxy::y#4 -- vwuz1=_word_vbuxx
|
|
txa
|
|
sta.z __7
|
|
lda #0
|
|
sta.z __7+1
|
|
// [41] gotoxy::$8 = gotoxy::$7 << 2 -- vwuz1=vwuz2_rol_2
|
|
lda.z __7
|
|
asl
|
|
sta.z __8
|
|
lda.z __7+1
|
|
rol
|
|
sta.z __8+1
|
|
asl.z __8
|
|
rol.z __8+1
|
|
// [42] gotoxy::$9 = gotoxy::$8 + gotoxy::$7 -- vwuz1=vwuz2_plus_vwuz1
|
|
clc
|
|
lda.z __9
|
|
adc.z __8
|
|
sta.z __9
|
|
lda.z __9+1
|
|
adc.z __8+1
|
|
sta.z __9+1
|
|
// [43] gotoxy::line_offset#0 = gotoxy::$9 << 3 -- vwuz1=vwuz1_rol_3
|
|
asl.z line_offset
|
|
rol.z line_offset+1
|
|
asl.z line_offset
|
|
rol.z line_offset+1
|
|
asl.z line_offset
|
|
rol.z line_offset+1
|
|
// [44] gotoxy::$5 = DEFAULT_SCREEN + gotoxy::line_offset#0 -- pbuz1=pbuc1_plus_vwuz2
|
|
lda.z line_offset
|
|
clc
|
|
adc #<DEFAULT_SCREEN
|
|
sta.z __5
|
|
lda.z line_offset+1
|
|
adc #>DEFAULT_SCREEN
|
|
sta.z __5+1
|
|
// [45] conio_line_text = gotoxy::$5 -- pbuz1=pbuz2
|
|
lda.z __5
|
|
sta.z conio_line_text
|
|
lda.z __5+1
|
|
sta.z conio_line_text+1
|
|
// [46] gotoxy::$6 = COLORRAM + gotoxy::line_offset#0 -- pbuz1=pbuc1_plus_vwuz1
|
|
lda.z __6
|
|
clc
|
|
adc #<COLORRAM
|
|
sta.z __6
|
|
lda.z __6+1
|
|
adc #>COLORRAM
|
|
sta.z __6+1
|
|
// [47] conio_line_color = gotoxy::$6 -- pbuz1=pbuz2
|
|
lda.z __6
|
|
sta.z conio_line_color
|
|
lda.z __6+1
|
|
sta.z conio_line_color+1
|
|
jmp __breturn
|
|
// gotoxy::@return
|
|
__breturn:
|
|
// [48] return
|
|
rts
|
|
}
|
|
// cputln
|
|
// Print a newline
|
|
cputln: {
|
|
// [49] conio_line_text = conio_line_text + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z conio_line_text
|
|
sta.z conio_line_text
|
|
bcc !+
|
|
inc.z conio_line_text+1
|
|
!:
|
|
// [50] conio_line_color = conio_line_color + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z conio_line_color
|
|
sta.z conio_line_color
|
|
bcc !+
|
|
inc.z conio_line_color+1
|
|
!:
|
|
// [51] conio_cursor_x = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_x
|
|
// [52] conio_cursor_y = ++ conio_cursor_y -- vbuz1=_inc_vbuz1
|
|
inc.z conio_cursor_y
|
|
// [53] call cscroll
|
|
jsr cscroll
|
|
jmp __breturn
|
|
// cputln::@return
|
|
__breturn:
|
|
// [54] return
|
|
rts
|
|
}
|
|
// clrscr
|
|
// clears the screen and moves the cursor to the upper left-hand corner of the screen.
|
|
clrscr: {
|
|
.label line_text = 4
|
|
.label line_cols = 8
|
|
// [56] phi from clrscr to clrscr::@1 [phi:clrscr->clrscr::@1]
|
|
__b1_from_clrscr:
|
|
// [56] phi clrscr::line_cols#5 = COLORRAM [phi:clrscr->clrscr::@1#0] -- pbuz1=pbuc1
|
|
lda #<COLORRAM
|
|
sta.z line_cols
|
|
lda #>COLORRAM
|
|
sta.z line_cols+1
|
|
// [56] phi clrscr::line_text#5 = DEFAULT_SCREEN [phi:clrscr->clrscr::@1#1] -- pbuz1=pbuc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z line_text
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z line_text+1
|
|
// [56] phi clrscr::l#2 = 0 [phi:clrscr->clrscr::@1#2] -- vbuxx=vbuc1
|
|
ldx #0
|
|
jmp __b1
|
|
// clrscr::@1
|
|
__b1:
|
|
// [57] if(clrscr::l#2<$19) goto clrscr::@3 -- vbuxx_lt_vbuc1_then_la1
|
|
cpx #$19
|
|
bcc __b3_from___b1
|
|
jmp __b2
|
|
// clrscr::@2
|
|
__b2:
|
|
// [58] conio_cursor_x = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_x
|
|
// [59] conio_cursor_y = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_y
|
|
// [60] conio_line_text = DEFAULT_SCREEN -- pbuz1=pbuc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z conio_line_text
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z conio_line_text+1
|
|
// [61] conio_line_color = COLORRAM -- pbuz1=pbuc1
|
|
lda #<COLORRAM
|
|
sta.z conio_line_color
|
|
lda #>COLORRAM
|
|
sta.z conio_line_color+1
|
|
jmp __breturn
|
|
// clrscr::@return
|
|
__breturn:
|
|
// [62] return
|
|
rts
|
|
// [63] phi from clrscr::@1 to clrscr::@3 [phi:clrscr::@1->clrscr::@3]
|
|
__b3_from___b1:
|
|
// [63] phi clrscr::c#2 = 0 [phi:clrscr::@1->clrscr::@3#0] -- vbuyy=vbuc1
|
|
ldy #0
|
|
jmp __b3
|
|
// clrscr::@3
|
|
__b3:
|
|
// [64] if(clrscr::c#2<$28) goto clrscr::@4 -- vbuyy_lt_vbuc1_then_la1
|
|
cpy #$28
|
|
bcc __b4
|
|
jmp __b5
|
|
// clrscr::@5
|
|
__b5:
|
|
// [65] clrscr::line_text#1 = clrscr::line_text#5 + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z line_text
|
|
sta.z line_text
|
|
bcc !+
|
|
inc.z line_text+1
|
|
!:
|
|
// [66] clrscr::line_cols#1 = clrscr::line_cols#5 + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z line_cols
|
|
sta.z line_cols
|
|
bcc !+
|
|
inc.z line_cols+1
|
|
!:
|
|
// [67] clrscr::l#1 = ++ clrscr::l#2 -- vbuxx=_inc_vbuxx
|
|
inx
|
|
// [56] phi from clrscr::@5 to clrscr::@1 [phi:clrscr::@5->clrscr::@1]
|
|
__b1_from___b5:
|
|
// [56] phi clrscr::line_cols#5 = clrscr::line_cols#1 [phi:clrscr::@5->clrscr::@1#0] -- register_copy
|
|
// [56] phi clrscr::line_text#5 = clrscr::line_text#1 [phi:clrscr::@5->clrscr::@1#1] -- register_copy
|
|
// [56] phi clrscr::l#2 = clrscr::l#1 [phi:clrscr::@5->clrscr::@1#2] -- register_copy
|
|
jmp __b1
|
|
// clrscr::@4
|
|
__b4:
|
|
// [68] clrscr::line_text#5[clrscr::c#2] = ' ' -- pbuz1_derefidx_vbuyy=vbuc1
|
|
lda #' '
|
|
sta (line_text),y
|
|
// [69] clrscr::line_cols#5[clrscr::c#2] = LIGHT_BLUE -- pbuz1_derefidx_vbuyy=vbuc1
|
|
lda #LIGHT_BLUE
|
|
sta (line_cols),y
|
|
// [70] clrscr::c#1 = ++ clrscr::c#2 -- vbuyy=_inc_vbuyy
|
|
iny
|
|
// [63] phi from clrscr::@4 to clrscr::@3 [phi:clrscr::@4->clrscr::@3]
|
|
__b3_from___b4:
|
|
// [63] phi clrscr::c#2 = clrscr::c#1 [phi:clrscr::@4->clrscr::@3#0] -- register_copy
|
|
jmp __b3
|
|
}
|
|
// test_casting
|
|
// void test_casting(__zp(4) int signed_short_value)
|
|
test_casting: {
|
|
.label signed_short_value = 4
|
|
// [71] printf_sint::value#1 = test_casting::signed_short_value#0
|
|
// [72] call printf_sint
|
|
jsr printf_sint
|
|
// [73] phi from test_casting to test_casting::@1 [phi:test_casting->test_casting::@1]
|
|
__b1_from_test_casting:
|
|
jmp __b1
|
|
// test_casting::@1
|
|
__b1:
|
|
// [74] call printf_str
|
|
// [99] phi from test_casting::@1 to printf_str [phi:test_casting::@1->printf_str]
|
|
printf_str_from___b1:
|
|
// [99] phi printf_str::putc#4 = &cputc [phi:test_casting::@1->printf_str#0] -- pprz1=pprc1
|
|
lda #<cputc
|
|
sta.z printf_str.putc
|
|
lda #>cputc
|
|
sta.z printf_str.putc+1
|
|
// [99] phi printf_str::s#4 = test_casting::s [phi:test_casting::@1->printf_str#1] -- pbuz1=pbuc1
|
|
lda #<s
|
|
sta.z printf_str.s
|
|
lda #>s
|
|
sta.z printf_str.s+1
|
|
jsr printf_str
|
|
jmp __breturn
|
|
// test_casting::@return
|
|
__breturn:
|
|
// [75] return
|
|
rts
|
|
.segment Data
|
|
s: .text @"\n"
|
|
.byte 0
|
|
}
|
|
.segment Code
|
|
// cscroll
|
|
// Scroll the entire screen if the cursor is beyond the last line
|
|
cscroll: {
|
|
// [76] if(conio_cursor_y!=$19) goto cscroll::@return -- vbuz1_neq_vbuc1_then_la1
|
|
lda #$19
|
|
cmp.z conio_cursor_y
|
|
bne __breturn
|
|
// [77] phi from cscroll to cscroll::@1 [phi:cscroll->cscroll::@1]
|
|
__b1_from_cscroll:
|
|
jmp __b1
|
|
// cscroll::@1
|
|
__b1:
|
|
// [78] call memcpy
|
|
// [108] phi from cscroll::@1 to memcpy [phi:cscroll::@1->memcpy]
|
|
memcpy_from___b1:
|
|
// [108] phi memcpy::destination#2 = (void *)DEFAULT_SCREEN [phi:cscroll::@1->memcpy#0] -- pvoz1=pvoc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z memcpy.destination
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z memcpy.destination+1
|
|
// [108] phi memcpy::source#2 = (void *)DEFAULT_SCREEN+$28 [phi:cscroll::@1->memcpy#1] -- pvoz1=pvoc1
|
|
lda #<DEFAULT_SCREEN+$28
|
|
sta.z memcpy.source
|
|
lda #>DEFAULT_SCREEN+$28
|
|
sta.z memcpy.source+1
|
|
jsr memcpy
|
|
// [79] phi from cscroll::@1 to cscroll::@2 [phi:cscroll::@1->cscroll::@2]
|
|
__b2_from___b1:
|
|
jmp __b2
|
|
// cscroll::@2
|
|
__b2:
|
|
// [80] call memcpy
|
|
// [108] phi from cscroll::@2 to memcpy [phi:cscroll::@2->memcpy]
|
|
memcpy_from___b2:
|
|
// [108] phi memcpy::destination#2 = (void *)COLORRAM [phi:cscroll::@2->memcpy#0] -- pvoz1=pvoc1
|
|
lda #<COLORRAM
|
|
sta.z memcpy.destination
|
|
lda #>COLORRAM
|
|
sta.z memcpy.destination+1
|
|
// [108] phi memcpy::source#2 = (void *)COLORRAM+$28 [phi:cscroll::@2->memcpy#1] -- pvoz1=pvoc1
|
|
lda #<COLORRAM+$28
|
|
sta.z memcpy.source
|
|
lda #>COLORRAM+$28
|
|
sta.z memcpy.source+1
|
|
jsr memcpy
|
|
// [81] phi from cscroll::@2 to cscroll::@3 [phi:cscroll::@2->cscroll::@3]
|
|
__b3_from___b2:
|
|
jmp __b3
|
|
// cscroll::@3
|
|
__b3:
|
|
// [82] call memset
|
|
// [118] phi from cscroll::@3 to memset [phi:cscroll::@3->memset]
|
|
memset_from___b3:
|
|
// [118] phi memset::c#4 = ' ' [phi:cscroll::@3->memset#0] -- vbuxx=vbuc1
|
|
ldx #' '
|
|
// [118] phi memset::str#3 = (void *)DEFAULT_SCREEN+(unsigned int)$19*$28-$28 [phi:cscroll::@3->memset#1] -- pvoz1=pvoc1
|
|
lda #<DEFAULT_SCREEN+$19*$28-$28
|
|
sta.z memset.str
|
|
lda #>DEFAULT_SCREEN+$19*$28-$28
|
|
sta.z memset.str+1
|
|
jsr memset
|
|
// [83] phi from cscroll::@3 to cscroll::@4 [phi:cscroll::@3->cscroll::@4]
|
|
__b4_from___b3:
|
|
jmp __b4
|
|
// cscroll::@4
|
|
__b4:
|
|
// [84] call memset
|
|
// [118] phi from cscroll::@4 to memset [phi:cscroll::@4->memset]
|
|
memset_from___b4:
|
|
// [118] phi memset::c#4 = LIGHT_BLUE [phi:cscroll::@4->memset#0] -- vbuxx=vbuc1
|
|
ldx #LIGHT_BLUE
|
|
// [118] phi memset::str#3 = (void *)COLORRAM+(unsigned int)$19*$28-$28 [phi:cscroll::@4->memset#1] -- pvoz1=pvoc1
|
|
lda #<COLORRAM+$19*$28-$28
|
|
sta.z memset.str
|
|
lda #>COLORRAM+$19*$28-$28
|
|
sta.z memset.str+1
|
|
jsr memset
|
|
jmp __b5
|
|
// cscroll::@5
|
|
__b5:
|
|
// [85] conio_line_text = conio_line_text - $28 -- pbuz1=pbuz1_minus_vbuc1
|
|
sec
|
|
lda.z conio_line_text
|
|
sbc #$28
|
|
sta.z conio_line_text
|
|
lda.z conio_line_text+1
|
|
sbc #0
|
|
sta.z conio_line_text+1
|
|
// [86] conio_line_color = conio_line_color - $28 -- pbuz1=pbuz1_minus_vbuc1
|
|
sec
|
|
lda.z conio_line_color
|
|
sbc #$28
|
|
sta.z conio_line_color
|
|
lda.z conio_line_color+1
|
|
sbc #0
|
|
sta.z conio_line_color+1
|
|
// [87] conio_cursor_y = -- conio_cursor_y -- vbuz1=_dec_vbuz1
|
|
dec.z conio_cursor_y
|
|
jmp __breturn
|
|
// cscroll::@return
|
|
__breturn:
|
|
// [88] return
|
|
rts
|
|
}
|
|
// printf_sint
|
|
// Print a signed integer using a specific format
|
|
// void printf_sint(void (*putc)(char), __zp(4) int value, char format_min_length, char format_justify_left, char format_sign_always, char format_zero_padding, char format_upper_case, char format_radix)
|
|
printf_sint: {
|
|
.label putc = cputc
|
|
.label value = 4
|
|
// [89] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2
|
|
// Handle any sign
|
|
lda #0
|
|
sta printf_buffer
|
|
// [90] if(printf_sint::value#1<0) goto printf_sint::@1 -- vwsz1_lt_0_then_la1
|
|
lda.z value+1
|
|
bmi __b1
|
|
// [93] phi from printf_sint printf_sint::@1 to printf_sint::@2 [phi:printf_sint/printf_sint::@1->printf_sint::@2]
|
|
__b2_from_printf_sint:
|
|
__b2_from___b1:
|
|
// [93] phi printf_sint::value#4 = printf_sint::value#1 [phi:printf_sint/printf_sint::@1->printf_sint::@2#0] -- register_copy
|
|
jmp __b2
|
|
// printf_sint::@1
|
|
__b1:
|
|
// [91] printf_sint::value#0 = - printf_sint::value#1 -- vwsz1=_neg_vwsz1
|
|
lda #0
|
|
sec
|
|
sbc.z value
|
|
sta.z value
|
|
lda #0
|
|
sbc.z value+1
|
|
sta.z value+1
|
|
// [92] *((char *)&printf_buffer) = '-' -- _deref_pbuc1=vbuc2
|
|
lda #'-'
|
|
sta printf_buffer
|
|
jmp __b2_from___b1
|
|
// printf_sint::@2
|
|
__b2:
|
|
// [94] utoa::value#1 = (unsigned int)printf_sint::value#4
|
|
// [95] call utoa
|
|
// [126] phi from printf_sint::@2 to utoa [phi:printf_sint::@2->utoa]
|
|
utoa_from___b2:
|
|
jsr utoa
|
|
jmp __b3
|
|
// printf_sint::@3
|
|
__b3:
|
|
// [96] printf_number_buffer::buffer_sign#0 = *((char *)&printf_buffer) -- vbuaa=_deref_pbuc1
|
|
lda printf_buffer
|
|
// [97] call printf_number_buffer
|
|
// Print using format
|
|
// [147] phi from printf_sint::@3 to printf_number_buffer [phi:printf_sint::@3->printf_number_buffer]
|
|
printf_number_buffer_from___b3:
|
|
jsr printf_number_buffer
|
|
jmp __breturn
|
|
// printf_sint::@return
|
|
__breturn:
|
|
// [98] return
|
|
rts
|
|
}
|
|
// printf_str
|
|
/// Print a NUL-terminated string
|
|
// void printf_str(__zp(8) void (*putc)(char), __zp($c) const char *s)
|
|
printf_str: {
|
|
.label s = $c
|
|
.label putc = 8
|
|
// [100] phi from printf_str printf_str::@2 to printf_str::@1 [phi:printf_str/printf_str::@2->printf_str::@1]
|
|
__b1_from_printf_str:
|
|
__b1_from___b2:
|
|
// [100] phi printf_str::s#3 = printf_str::s#4 [phi:printf_str/printf_str::@2->printf_str::@1#0] -- register_copy
|
|
jmp __b1
|
|
// printf_str::@1
|
|
__b1:
|
|
// [101] printf_str::c#1 = *printf_str::s#3 -- vbuaa=_deref_pbuz1
|
|
ldy #0
|
|
lda (s),y
|
|
// [102] printf_str::s#0 = ++ printf_str::s#3 -- pbuz1=_inc_pbuz1
|
|
inc.z s
|
|
bne !+
|
|
inc.z s+1
|
|
!:
|
|
// [103] if(0!=printf_str::c#1) goto printf_str::@2 -- 0_neq_vbuaa_then_la1
|
|
cmp #0
|
|
bne __b2
|
|
jmp __breturn
|
|
// printf_str::@return
|
|
__breturn:
|
|
// [104] return
|
|
rts
|
|
// printf_str::@2
|
|
__b2:
|
|
// [105] stackpush(char) = printf_str::c#1 -- _stackpushbyte_=vbuaa
|
|
pha
|
|
// [106] callexecute *printf_str::putc#4 -- call__deref_pprz1
|
|
jsr icall1
|
|
// sideeffect stackpullpadding(1) -- _stackpullpadding_1
|
|
pla
|
|
jmp __b1_from___b2
|
|
// Outside Flow
|
|
icall1:
|
|
jmp (putc)
|
|
}
|
|
// memcpy
|
|
// Copy block of memory (forwards)
|
|
// Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination.
|
|
// void * memcpy(__zp(6) void *destination, __zp(2) void *source, unsigned int num)
|
|
memcpy: {
|
|
.label src_end = $a
|
|
.label dst = 6
|
|
.label src = 2
|
|
.label source = 2
|
|
.label destination = 6
|
|
// [109] memcpy::src_end#0 = (char *)memcpy::source#2 + (unsigned int)$19*$28-$28 -- pbuz1=pbuz2_plus_vwuc1
|
|
lda.z source
|
|
clc
|
|
adc #<$19*$28-$28
|
|
sta.z src_end
|
|
lda.z source+1
|
|
adc #>$19*$28-$28
|
|
sta.z src_end+1
|
|
// [110] memcpy::src#4 = (char *)memcpy::source#2
|
|
// [111] memcpy::dst#4 = (char *)memcpy::destination#2
|
|
// [112] phi from memcpy memcpy::@2 to memcpy::@1 [phi:memcpy/memcpy::@2->memcpy::@1]
|
|
__b1_from_memcpy:
|
|
__b1_from___b2:
|
|
// [112] phi memcpy::dst#2 = memcpy::dst#4 [phi:memcpy/memcpy::@2->memcpy::@1#0] -- register_copy
|
|
// [112] phi memcpy::src#2 = memcpy::src#4 [phi:memcpy/memcpy::@2->memcpy::@1#1] -- register_copy
|
|
jmp __b1
|
|
// memcpy::@1
|
|
__b1:
|
|
// [113] if(memcpy::src#2!=memcpy::src_end#0) goto memcpy::@2 -- pbuz1_neq_pbuz2_then_la1
|
|
lda.z src+1
|
|
cmp.z src_end+1
|
|
bne __b2
|
|
lda.z src
|
|
cmp.z src_end
|
|
bne __b2
|
|
jmp __breturn
|
|
// memcpy::@return
|
|
__breturn:
|
|
// [114] return
|
|
rts
|
|
// memcpy::@2
|
|
__b2:
|
|
// [115] *memcpy::dst#2 = *memcpy::src#2 -- _deref_pbuz1=_deref_pbuz2
|
|
ldy #0
|
|
lda (src),y
|
|
ldy #0
|
|
sta (dst),y
|
|
// [116] memcpy::dst#1 = ++ memcpy::dst#2 -- pbuz1=_inc_pbuz1
|
|
inc.z dst
|
|
bne !+
|
|
inc.z dst+1
|
|
!:
|
|
// [117] memcpy::src#1 = ++ memcpy::src#2 -- pbuz1=_inc_pbuz1
|
|
inc.z src
|
|
bne !+
|
|
inc.z src+1
|
|
!:
|
|
jmp __b1_from___b2
|
|
}
|
|
// memset
|
|
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
|
|
// void * memset(__zp(2) void *str, __register(X) char c, unsigned int num)
|
|
memset: {
|
|
.label end = 6
|
|
.label dst = 2
|
|
.label str = 2
|
|
jmp __b1
|
|
// memset::@1
|
|
__b1:
|
|
// [119] memset::end#0 = (char *)memset::str#3 + $28 -- pbuz1=pbuz2_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z str
|
|
sta.z end
|
|
lda #0
|
|
adc.z str+1
|
|
sta.z end+1
|
|
// [120] memset::dst#4 = (char *)memset::str#3
|
|
// [121] phi from memset::@1 memset::@3 to memset::@2 [phi:memset::@1/memset::@3->memset::@2]
|
|
__b2_from___b1:
|
|
__b2_from___b3:
|
|
// [121] phi memset::dst#2 = memset::dst#4 [phi:memset::@1/memset::@3->memset::@2#0] -- register_copy
|
|
jmp __b2
|
|
// memset::@2
|
|
__b2:
|
|
// [122] if(memset::dst#2!=memset::end#0) goto memset::@3 -- pbuz1_neq_pbuz2_then_la1
|
|
lda.z dst+1
|
|
cmp.z end+1
|
|
bne __b3
|
|
lda.z dst
|
|
cmp.z end
|
|
bne __b3
|
|
jmp __breturn
|
|
// memset::@return
|
|
__breturn:
|
|
// [123] return
|
|
rts
|
|
// memset::@3
|
|
__b3:
|
|
// [124] *memset::dst#2 = memset::c#4 -- _deref_pbuz1=vbuxx
|
|
txa
|
|
ldy #0
|
|
sta (dst),y
|
|
// [125] memset::dst#1 = ++ memset::dst#2 -- pbuz1=_inc_pbuz1
|
|
inc.z dst
|
|
bne !+
|
|
inc.z dst+1
|
|
!:
|
|
jmp __b2_from___b3
|
|
}
|
|
// utoa
|
|
// Converts unsigned number value to a string representing it in RADIX format.
|
|
// If the leading digits are zero they are not included in the string.
|
|
// - 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(4) unsigned int value, __zp($c) char *buffer, char radix)
|
|
utoa: {
|
|
.const max_digits = 5
|
|
.label digit_value = 8
|
|
.label buffer = $c
|
|
.label digit = $e
|
|
.label value = 4
|
|
// [127] phi from utoa to utoa::@1 [phi:utoa->utoa::@1]
|
|
__b1_from_utoa:
|
|
// [127] phi utoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:utoa->utoa::@1#0] -- pbuz1=pbuc1
|
|
lda #<printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
sta.z buffer
|
|
lda #>printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
sta.z buffer+1
|
|
// [127] phi utoa::started#2 = 0 [phi:utoa->utoa::@1#1] -- vbuxx=vbuc1
|
|
ldx #0
|
|
// [127] phi utoa::value#2 = utoa::value#1 [phi:utoa->utoa::@1#2] -- register_copy
|
|
// [127] phi utoa::digit#2 = 0 [phi:utoa->utoa::@1#3] -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z digit
|
|
jmp __b1
|
|
// utoa::@1
|
|
__b1:
|
|
// [128] if(utoa::digit#2<utoa::max_digits#1-1) goto utoa::@2 -- vbuz1_lt_vbuc1_then_la1
|
|
lda.z digit
|
|
cmp #max_digits-1
|
|
bcc __b2
|
|
jmp __b3
|
|
// utoa::@3
|
|
__b3:
|
|
// [129] utoa::$11 = (char)utoa::value#2 -- vbuxx=_byte_vwuz1
|
|
ldx.z value
|
|
// [130] *utoa::buffer#11 = DIGITS[utoa::$11] -- _deref_pbuz1=pbuc1_derefidx_vbuxx
|
|
lda DIGITS,x
|
|
ldy #0
|
|
sta (buffer),y
|
|
// [131] utoa::buffer#3 = ++ utoa::buffer#11 -- pbuz1=_inc_pbuz1
|
|
inc.z buffer
|
|
bne !+
|
|
inc.z buffer+1
|
|
!:
|
|
// [132] *utoa::buffer#3 = 0 -- _deref_pbuz1=vbuc1
|
|
lda #0
|
|
ldy #0
|
|
sta (buffer),y
|
|
jmp __breturn
|
|
// utoa::@return
|
|
__breturn:
|
|
// [133] return
|
|
rts
|
|
// utoa::@2
|
|
__b2:
|
|
// [134] utoa::$10 = utoa::digit#2 << 1 -- vbuaa=vbuz1_rol_1
|
|
lda.z digit
|
|
asl
|
|
// [135] utoa::digit_value#0 = RADIX_DECIMAL_VALUES[utoa::$10] -- vwuz1=pwuc1_derefidx_vbuaa
|
|
tay
|
|
lda RADIX_DECIMAL_VALUES,y
|
|
sta.z digit_value
|
|
lda RADIX_DECIMAL_VALUES+1,y
|
|
sta.z digit_value+1
|
|
// [136] if(0!=utoa::started#2) goto utoa::@5 -- 0_neq_vbuxx_then_la1
|
|
cpx #0
|
|
bne __b5
|
|
jmp __b7
|
|
// utoa::@7
|
|
__b7:
|
|
// [137] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@5 -- vwuz1_ge_vwuz2_then_la1
|
|
lda.z digit_value+1
|
|
cmp.z value+1
|
|
bne !+
|
|
lda.z digit_value
|
|
cmp.z value
|
|
beq __b5
|
|
!:
|
|
bcc __b5
|
|
// [138] phi from utoa::@7 to utoa::@4 [phi:utoa::@7->utoa::@4]
|
|
__b4_from___b7:
|
|
// [138] phi utoa::buffer#14 = utoa::buffer#11 [phi:utoa::@7->utoa::@4#0] -- register_copy
|
|
// [138] phi utoa::started#4 = utoa::started#2 [phi:utoa::@7->utoa::@4#1] -- register_copy
|
|
// [138] phi utoa::value#6 = utoa::value#2 [phi:utoa::@7->utoa::@4#2] -- register_copy
|
|
jmp __b4
|
|
// utoa::@4
|
|
__b4:
|
|
// [139] utoa::digit#1 = ++ utoa::digit#2 -- vbuz1=_inc_vbuz1
|
|
inc.z digit
|
|
// [127] phi from utoa::@4 to utoa::@1 [phi:utoa::@4->utoa::@1]
|
|
__b1_from___b4:
|
|
// [127] phi utoa::buffer#11 = utoa::buffer#14 [phi:utoa::@4->utoa::@1#0] -- register_copy
|
|
// [127] phi utoa::started#2 = utoa::started#4 [phi:utoa::@4->utoa::@1#1] -- register_copy
|
|
// [127] phi utoa::value#2 = utoa::value#6 [phi:utoa::@4->utoa::@1#2] -- register_copy
|
|
// [127] phi utoa::digit#2 = utoa::digit#1 [phi:utoa::@4->utoa::@1#3] -- register_copy
|
|
jmp __b1
|
|
// utoa::@5
|
|
__b5:
|
|
// [140] utoa_append::buffer#0 = utoa::buffer#11
|
|
// [141] utoa_append::value#0 = utoa::value#2
|
|
// [142] utoa_append::sub#0 = utoa::digit_value#0
|
|
// [143] call utoa_append
|
|
// [155] phi from utoa::@5 to utoa_append [phi:utoa::@5->utoa_append]
|
|
utoa_append_from___b5:
|
|
jsr utoa_append
|
|
// [144] utoa_append::return#0 = utoa_append::value#2
|
|
jmp __b6
|
|
// utoa::@6
|
|
__b6:
|
|
// [145] utoa::value#0 = utoa_append::return#0
|
|
// [146] utoa::buffer#4 = ++ utoa::buffer#11 -- pbuz1=_inc_pbuz1
|
|
inc.z buffer
|
|
bne !+
|
|
inc.z buffer+1
|
|
!:
|
|
// [138] phi from utoa::@6 to utoa::@4 [phi:utoa::@6->utoa::@4]
|
|
__b4_from___b6:
|
|
// [138] phi utoa::buffer#14 = utoa::buffer#4 [phi:utoa::@6->utoa::@4#0] -- register_copy
|
|
// [138] phi utoa::started#4 = 1 [phi:utoa::@6->utoa::@4#1] -- vbuxx=vbuc1
|
|
ldx #1
|
|
// [138] phi utoa::value#6 = utoa::value#0 [phi:utoa::@6->utoa::@4#2] -- register_copy
|
|
jmp __b4
|
|
}
|
|
// 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(void (*putc)(char), __register(A) char buffer_sign, char *buffer_digits, char format_min_length, char format_justify_left, char format_sign_always, char format_zero_padding, char format_upper_case, char format_radix)
|
|
printf_number_buffer: {
|
|
.label buffer_digits = printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
jmp __b1
|
|
// printf_number_buffer::@1
|
|
__b1:
|
|
// [148] if(0==printf_number_buffer::buffer_sign#0) goto printf_number_buffer::@2 -- 0_eq_vbuaa_then_la1
|
|
cmp #0
|
|
beq __b2_from___b1
|
|
jmp __b3
|
|
// printf_number_buffer::@3
|
|
__b3:
|
|
// [149] stackpush(char) = printf_number_buffer::buffer_sign#0 -- _stackpushbyte_=vbuaa
|
|
pha
|
|
// [150] callexecute cputc -- call_vprc1
|
|
jsr cputc
|
|
// sideeffect stackpullpadding(1) -- _stackpullpadding_1
|
|
pla
|
|
// [152] phi from printf_number_buffer::@1 printf_number_buffer::@3 to printf_number_buffer::@2 [phi:printf_number_buffer::@1/printf_number_buffer::@3->printf_number_buffer::@2]
|
|
__b2_from___b1:
|
|
__b2_from___b3:
|
|
jmp __b2
|
|
// printf_number_buffer::@2
|
|
__b2:
|
|
// [153] call printf_str
|
|
// [99] phi from printf_number_buffer::@2 to printf_str [phi:printf_number_buffer::@2->printf_str]
|
|
printf_str_from___b2:
|
|
// [99] phi printf_str::putc#4 = printf_sint::putc#0 [phi:printf_number_buffer::@2->printf_str#0] -- pprz1=pprc1
|
|
lda #<printf_sint.putc
|
|
sta.z printf_str.putc
|
|
lda #>printf_sint.putc
|
|
sta.z printf_str.putc+1
|
|
// [99] phi printf_str::s#4 = printf_number_buffer::buffer_digits#0 [phi:printf_number_buffer::@2->printf_str#1] -- pbuz1=pbuc1
|
|
lda #<buffer_digits
|
|
sta.z printf_str.s
|
|
lda #>buffer_digits
|
|
sta.z printf_str.s+1
|
|
jsr printf_str
|
|
jmp __breturn
|
|
// printf_number_buffer::@return
|
|
__breturn:
|
|
// [154] return
|
|
rts
|
|
}
|
|
// utoa_append
|
|
// Used to convert a single digit of an unsigned number value to a string representation
|
|
// Counts a single digit up from '0' as long as the value is larger than sub.
|
|
// Each time the digit is increased sub is subtracted from value.
|
|
// - buffer : pointer to the char that receives the digit
|
|
// - value : The value where the digit will be derived from
|
|
// - 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(4) unsigned int utoa_append(__zp($c) char *buffer, __zp(4) unsigned int value, __zp(8) unsigned int sub)
|
|
utoa_append: {
|
|
.label buffer = $c
|
|
.label value = 4
|
|
.label sub = 8
|
|
.label return = 4
|
|
// [156] phi from utoa_append to utoa_append::@1 [phi:utoa_append->utoa_append::@1]
|
|
__b1_from_utoa_append:
|
|
// [156] phi utoa_append::digit#2 = 0 [phi:utoa_append->utoa_append::@1#0] -- vbuxx=vbuc1
|
|
ldx #0
|
|
// [156] phi utoa_append::value#2 = utoa_append::value#0 [phi:utoa_append->utoa_append::@1#1] -- register_copy
|
|
jmp __b1
|
|
// utoa_append::@1
|
|
__b1:
|
|
// [157] 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 !+
|
|
lda.z sub
|
|
cmp.z value
|
|
beq __b2
|
|
!:
|
|
bcc __b2
|
|
jmp __b3
|
|
// utoa_append::@3
|
|
__b3:
|
|
// [158] *utoa_append::buffer#0 = DIGITS[utoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuxx
|
|
lda DIGITS,x
|
|
ldy #0
|
|
sta (buffer),y
|
|
jmp __breturn
|
|
// utoa_append::@return
|
|
__breturn:
|
|
// [159] return
|
|
rts
|
|
// utoa_append::@2
|
|
__b2:
|
|
// [160] utoa_append::digit#1 = ++ utoa_append::digit#2 -- vbuxx=_inc_vbuxx
|
|
inx
|
|
// [161] utoa_append::value#1 = utoa_append::value#2 - utoa_append::sub#0 -- vwuz1=vwuz1_minus_vwuz2
|
|
lda.z value
|
|
sec
|
|
sbc.z sub
|
|
sta.z value
|
|
lda.z value+1
|
|
sbc.z sub+1
|
|
sta.z value+1
|
|
// [156] phi from utoa_append::@2 to utoa_append::@1 [phi:utoa_append::@2->utoa_append::@1]
|
|
__b1_from___b2:
|
|
// [156] phi utoa_append::digit#2 = utoa_append::digit#1 [phi:utoa_append::@2->utoa_append::@1#0] -- register_copy
|
|
// [156] phi utoa_append::value#2 = utoa_append::value#1 [phi:utoa_append::@2->utoa_append::@1#1] -- register_copy
|
|
jmp __b1
|
|
}
|
|
// File Data
|
|
.segment Data
|
|
// The digits used for numbers
|
|
DIGITS: .text "0123456789abcdef"
|
|
// Values of decimal digits
|
|
RADIX_DECIMAL_VALUES: .word $2710, $3e8, $64, $a
|
|
// Buffer used for stringified number being printed
|
|
printf_buffer: .fill SIZEOF_STRUCT_PRINTF_BUFFER_NUMBER, 0
|
|
|
|
ASSEMBLER OPTIMIZATIONS
|
|
Removing instruction jmp __init1
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __b5
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __b4
|
|
Removing instruction jmp __b5
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b7
|
|
Removing instruction jmp __b4
|
|
Removing instruction jmp __b6
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __breturn
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b3
|
|
Removing instruction jmp __breturn
|
|
Succesful ASM optimization Pass5NextJumpElimination
|
|
Removing instruction lda #0
|
|
Removing instruction ldy.z conio_cursor_x
|
|
Removing instruction lda #0
|
|
Removing instruction ldy #0
|
|
Replacing instruction lda #0 with TXA
|
|
Replacing instruction ldy #0 with TAY
|
|
Succesful ASM optimization Pass5UnnecesaryLoadElimination
|
|
Replacing label __b2_from_conio_c64_init with __b1
|
|
Replacing label __b1_from_cputc with __b1
|
|
Replacing label __b3_from_gotoxy with __b2
|
|
Replacing label __b1 with __b2
|
|
Replacing label __b1_from___b2 with __b1
|
|
Replacing label __b1_from___b2 with __b1
|
|
Replacing label __b2_from___b3 with __b2
|
|
Replacing label __b2_from___b1 with __b2
|
|
Removing instruction __b1_from___init1:
|
|
Removing instruction main_from___b1:
|
|
Removing instruction __b2_from_conio_c64_init:
|
|
Removing instruction __b2:
|
|
Removing instruction __b1_from___b2:
|
|
Removing instruction __b3_from___b2:
|
|
Removing instruction __b1_from_cputc:
|
|
Removing instruction __b3_from_gotoxy:
|
|
Removing instruction __b3:
|
|
Removing instruction __b1_from___b3:
|
|
Removing instruction __b1:
|
|
Removing instruction __b1_from_test_casting:
|
|
Removing instruction printf_str_from___b1:
|
|
Removing instruction __b1_from_cscroll:
|
|
Removing instruction memcpy_from___b1:
|
|
Removing instruction __b2_from___b1:
|
|
Removing instruction memcpy_from___b2:
|
|
Removing instruction __b3_from___b2:
|
|
Removing instruction memset_from___b3:
|
|
Removing instruction __b4_from___b3:
|
|
Removing instruction memset_from___b4:
|
|
Removing instruction __b2_from_printf_sint:
|
|
Removing instruction utoa_from___b2:
|
|
Removing instruction __b1_from_printf_str:
|
|
Removing instruction __b1_from___b2:
|
|
Removing instruction __b1_from_memcpy:
|
|
Removing instruction __b1_from___b2:
|
|
Removing instruction __b2_from___b1:
|
|
Removing instruction __b2_from___b3:
|
|
Removing instruction __b4_from___b7:
|
|
Removing instruction utoa_append_from___b5:
|
|
Removing instruction __b2_from___b1:
|
|
Removing instruction __b2_from___b3:
|
|
Removing instruction printf_str_from___b2:
|
|
Succesful ASM optimization Pass5RedundantLabelElimination
|
|
Removing instruction __init1:
|
|
Removing instruction __b1:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1_from_conio_c64_init:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b2:
|
|
Removing instruction __b3:
|
|
Removing instruction clrscr_from_main:
|
|
Removing instruction __b1_from_main:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1_from___b2:
|
|
Removing instruction __b1_from_gotoxy:
|
|
Removing instruction __breturn:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1_from_clrscr:
|
|
Removing instruction __b2:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b5:
|
|
Removing instruction __b1_from___b5:
|
|
Removing instruction __b3_from___b4:
|
|
Removing instruction __b1:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1:
|
|
Removing instruction __b2:
|
|
Removing instruction __b3:
|
|
Removing instruction __b4:
|
|
Removing instruction __b5:
|
|
Removing instruction __b3:
|
|
Removing instruction printf_number_buffer_from___b3:
|
|
Removing instruction __breturn:
|
|
Removing instruction __breturn:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1_from_utoa:
|
|
Removing instruction __b3:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b7:
|
|
Removing instruction __b1_from___b4:
|
|
Removing instruction __b6:
|
|
Removing instruction __b4_from___b6:
|
|
Removing instruction __b1:
|
|
Removing instruction __b3:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1_from_utoa_append:
|
|
Removing instruction __b3:
|
|
Removing instruction __breturn:
|
|
Removing instruction __b1_from___b2:
|
|
Succesful ASM optimization Pass5UnusedLabelElimination
|
|
Replacing jump to rts with rts in jmp __breturn
|
|
Skipping double jump to __b2 in jmp __b2_from___b1
|
|
Succesful ASM optimization Pass5DoubleJumpElimination
|
|
Relabelling long label __b3_from___b1 to __b2
|
|
Relabelling long label __b2_from___b1 to __b3
|
|
Succesful ASM optimization Pass5RelabelLongLabels
|
|
Removing instruction jmp __b1
|
|
Removing instruction jmp __b2
|
|
Removing instruction jmp __b2
|
|
Succesful ASM optimization Pass5NextJumpElimination
|
|
Removing instruction lda.z digit_value+1
|
|
Succesful ASM optimization Pass5UnnecesaryLoadElimination
|
|
Removing instruction __b3:
|
|
Succesful ASM optimization Pass5UnusedLabelElimination
|
|
|
|
FINAL SYMBOL TABLE
|
|
__constant char * const COLORRAM = (char *) 55296
|
|
__constant char * const DEFAULT_SCREEN = (char *) 1024
|
|
__constant char DIGITS[] = "0123456789abcdef"z
|
|
__constant const char LIGHT_BLUE = $e
|
|
__constant char OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS = 1
|
|
__constant char RADIX::BINARY = 2
|
|
__constant char RADIX::DECIMAL = $a
|
|
__constant char RADIX::HEXADECIMAL = $10
|
|
__constant char RADIX::OCTAL = 8
|
|
__constant unsigned int RADIX_DECIMAL_VALUES[] = { $2710, $3e8, $64, $a }
|
|
__constant char SIZEOF_STRUCT_PRINTF_BUFFER_NUMBER = $c
|
|
__constant unsigned int STACK_BASE = $103
|
|
void __start()
|
|
void clrscr()
|
|
char clrscr::c
|
|
char clrscr::c#1 // reg byte y 20002.0
|
|
char clrscr::c#2 // reg byte y 12501.25
|
|
char clrscr::l
|
|
char clrscr::l#1 // reg byte x 2002.0
|
|
char clrscr::l#2 // reg byte x 333.6666666666667
|
|
char *clrscr::line_cols
|
|
char *clrscr::line_cols#1 // line_cols zp[2]:8 1001.0
|
|
char *clrscr::line_cols#5 // line_cols zp[2]:8 1500.375
|
|
char *clrscr::line_text
|
|
char *clrscr::line_text#1 // line_text zp[2]:4 667.3333333333334
|
|
char *clrscr::line_text#5 // line_text zp[2]:4 1714.7142857142858
|
|
void conio_c64_init()
|
|
__constant char * const conio_c64_init::BASIC_CURSOR_LINE = (char *) 214
|
|
char conio_c64_init::line
|
|
char conio_c64_init::line#0 // reg byte x 11.0
|
|
char conio_c64_init::line#2 // reg byte x 22.0
|
|
__loadstore char conio_cursor_x // zp[1]:20 319153.40425531915
|
|
__loadstore char conio_cursor_y // zp[1]:15 5079368.396825396
|
|
__loadstore char *conio_line_color // zp[2]:16 3622954.2459016396
|
|
__loadstore char *conio_line_text // zp[2]:18 3564519.5
|
|
__stackcall void cputc(char c)
|
|
__constant char cputc::OFFSET_STACK_C = 0
|
|
char cputc::c
|
|
char cputc::c#0 // reg byte a 1500001.5
|
|
void cputln()
|
|
void cscroll()
|
|
void gotoxy(char x , char y)
|
|
char *gotoxy::$5 // zp[2]:26 202.0
|
|
char *gotoxy::$6 // zp[2]:21 202.0
|
|
unsigned int gotoxy::$7 // zp[2]:21 151.5
|
|
unsigned int gotoxy::$8 // zp[2]:24 202.0
|
|
unsigned int gotoxy::$9 // zp[2]:21 202.0
|
|
unsigned int gotoxy::line_offset
|
|
unsigned int gotoxy::line_offset#0 // line_offset zp[2]:21 101.0
|
|
char gotoxy::x
|
|
__constant char gotoxy::x#2 = 0 // x
|
|
char gotoxy::y
|
|
char gotoxy::y#2 // reg byte x 71.0
|
|
char gotoxy::y#4 // reg byte x 67.33333333333333
|
|
void main()
|
|
signed char main::signed_char_value
|
|
signed char main::signed_char_value#1 // signed_char_value zp[1]:23 101.0
|
|
signed char main::signed_char_value#2 // signed_char_value zp[1]:23 151.5
|
|
void * memcpy(void *destination , void *source , unsigned int num)
|
|
void *memcpy::destination
|
|
void *memcpy::destination#2 // destination zp[2]:6
|
|
char *memcpy::dst
|
|
char *memcpy::dst#1 // dst zp[2]:6 1.00000000001E11
|
|
char *memcpy::dst#2 // dst zp[2]:6 1.0033333333466667E11
|
|
char *memcpy::dst#4 // dst zp[2]:6 2.000000002E9
|
|
unsigned int memcpy::num
|
|
void *memcpy::return
|
|
void *memcpy::source
|
|
void *memcpy::source#2 // source zp[2]:2
|
|
char *memcpy::src
|
|
char *memcpy::src#1 // src zp[2]:2 2.00000000002E11
|
|
char *memcpy::src#2 // src zp[2]:2 1.0025000000125E11
|
|
char *memcpy::src#4 // src zp[2]:2 1.000000001E9
|
|
char *memcpy::src_end
|
|
char *memcpy::src_end#0 // src_end zp[2]:10 1.262500000025E10
|
|
void * memset(void *str , char c , unsigned int num)
|
|
char memset::c
|
|
char memset::c#4 // reg byte x 1.4285714285857143E10
|
|
char *memset::dst
|
|
char *memset::dst#1 // dst zp[2]:2 2.00000000002E11
|
|
char *memset::dst#2 // dst zp[2]:2 1.3366666666833334E11
|
|
char *memset::dst#4 // dst zp[2]:2 2.000000002E9
|
|
char *memset::end
|
|
char *memset::end#0 // end zp[2]:6 1.6833333333666668E10
|
|
unsigned int memset::num
|
|
void *memset::return
|
|
void *memset::str
|
|
void *memset::str#3 // str zp[2]:2
|
|
__loadstore struct printf_buffer_number printf_buffer = {} // mem[12]
|
|
void printf_number_buffer(void (*putc)(char) , char buffer_sign , char *buffer_digits , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
struct printf_buffer_number printf_number_buffer::buffer
|
|
char *printf_number_buffer::buffer_digits
|
|
__constant char *printf_number_buffer::buffer_digits#0 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS // buffer_digits
|
|
char printf_number_buffer::buffer_sign
|
|
char printf_number_buffer::buffer_sign#0 // reg byte a 70001.0
|
|
struct printf_format_number printf_number_buffer::format
|
|
char printf_number_buffer::format_justify_left
|
|
char printf_number_buffer::format_min_length
|
|
char printf_number_buffer::format_radix
|
|
char printf_number_buffer::format_sign_always
|
|
char printf_number_buffer::format_upper_case
|
|
char printf_number_buffer::format_zero_padding
|
|
signed char printf_number_buffer::len
|
|
signed char printf_number_buffer::padding
|
|
void (*printf_number_buffer::putc)(char)
|
|
void printf_sint(void (*putc)(char) , int value , char format_min_length , char format_justify_left , char format_sign_always , char format_zero_padding , char format_upper_case , char format_radix)
|
|
struct printf_format_number printf_sint::format
|
|
char printf_sint::format_justify_left
|
|
char printf_sint::format_min_length
|
|
char printf_sint::format_radix
|
|
char printf_sint::format_sign_always
|
|
char printf_sint::format_upper_case
|
|
char printf_sint::format_zero_padding
|
|
void (*printf_sint::putc)(char)
|
|
__constant void (*printf_sint::putc#0)(char) = &cputc // putc
|
|
unsigned int printf_sint::uvalue
|
|
int printf_sint::value
|
|
int printf_sint::value#0 // value zp[2]:4 10001.0
|
|
int printf_sint::value#1 // value zp[2]:4 10334.666666666666
|
|
int printf_sint::value#4 // value zp[2]:4 20002.0
|
|
void printf_str(void (*putc)(char) , const char *s)
|
|
char printf_str::c
|
|
char printf_str::c#1 // reg byte a 1.00000001E8
|
|
void (*printf_str::putc)(char)
|
|
void (*printf_str::putc#4)(char) // putc zp[2]:8
|
|
const char *printf_str::s
|
|
const char *printf_str::s#0 // s zp[2]:12 1.00000001E8
|
|
const char *printf_str::s#3 // s zp[2]:12 1.50500002E8
|
|
const char *printf_str::s#4 // s zp[2]:12 1000001.0
|
|
void test_casting(int signed_short_value)
|
|
__constant char test_casting::s[2] = "
|
|
"
|
|
int test_casting::signed_short_value
|
|
int test_casting::signed_short_value#0 // signed_short_value zp[2]:4 1102.0
|
|
void utoa(unsigned int value , char *buffer , char radix)
|
|
char utoa::$10 // reg byte a 2.0000002E7
|
|
char utoa::$11 // reg byte x 200002.0
|
|
char *utoa::buffer
|
|
char *utoa::buffer#11 // buffer zp[2]:12 2871429.0
|
|
char *utoa::buffer#14 // buffer zp[2]:12 1.50000015E7
|
|
char *utoa::buffer#3 // buffer zp[2]:12 200002.0
|
|
char *utoa::buffer#4 // buffer zp[2]:12 2.0000002E7
|
|
char utoa::digit
|
|
char utoa::digit#1 // digit zp[1]:14 2.0000002E7
|
|
char utoa::digit#2 // digit zp[1]:14 2857143.1428571427
|
|
unsigned int utoa::digit_value
|
|
unsigned int utoa::digit_value#0 // digit_value zp[2]:8 6000000.6
|
|
unsigned int *utoa::digit_values
|
|
char utoa::max_digits
|
|
__constant char utoa::max_digits#1 = 5 // max_digits
|
|
char utoa::radix
|
|
char utoa::started
|
|
char utoa::started#2 // reg byte x 5000000.5
|
|
char utoa::started#4 // reg byte x 1.0000001E7
|
|
unsigned int utoa::value
|
|
unsigned int utoa::value#0 // value zp[2]:4 1.0000001E7
|
|
unsigned int utoa::value#1 // value zp[2]:4 55001.0
|
|
unsigned int utoa::value#2 // value zp[2]:4 5728572.142857142
|
|
unsigned int utoa::value#6 // value zp[2]:4 1.50000015E7
|
|
unsigned int utoa_append(char *buffer , unsigned int value , unsigned int sub)
|
|
char *utoa_append::buffer
|
|
char *utoa_append::buffer#0 // buffer zp[2]:12 1.375000025E7
|
|
char utoa_append::digit
|
|
char utoa_append::digit#1 // reg byte x 1.00000000001E11
|
|
char utoa_append::digit#2 // reg byte x 1.000500000015E11
|
|
unsigned int utoa_append::return
|
|
unsigned int utoa_append::return#0 // return zp[2]:4 2.0000002E7
|
|
unsigned int utoa_append::sub
|
|
unsigned int utoa_append::sub#0 // sub zp[2]:8 3.33350000005E10
|
|
unsigned int utoa_append::value
|
|
unsigned int utoa_append::value#0 // value zp[2]:4 3.6666667333333336E7
|
|
unsigned int utoa_append::value#1 // value zp[2]:4 2.00000000002E11
|
|
unsigned int utoa_append::value#2 // value zp[2]:4 5.001833333416667E10
|
|
|
|
reg byte x [ conio_c64_init::line#2 conio_c64_init::line#0 ]
|
|
zp[1]:23 [ main::signed_char_value#2 main::signed_char_value#1 ]
|
|
reg byte x [ gotoxy::y#4 gotoxy::y#2 ]
|
|
reg byte x [ clrscr::l#2 clrscr::l#1 ]
|
|
reg byte y [ clrscr::c#2 clrscr::c#1 ]
|
|
zp[2]:4 [ printf_sint::value#4 printf_sint::value#0 printf_sint::value#1 utoa::value#2 utoa::value#6 utoa::value#1 utoa::value#0 test_casting::signed_short_value#0 utoa_append::value#2 utoa_append::value#0 utoa_append::value#1 utoa_append::return#0 clrscr::line_text#5 clrscr::line_text#1 ]
|
|
zp[2]:2 [ memset::str#3 memset::dst#2 memset::dst#4 memset::dst#1 memcpy::source#2 memcpy::src#2 memcpy::src#4 memcpy::src#1 ]
|
|
reg byte x [ memset::c#4 ]
|
|
zp[1]:14 [ utoa::digit#2 utoa::digit#1 ]
|
|
reg byte x [ utoa::started#2 utoa::started#4 ]
|
|
zp[2]:12 [ utoa::buffer#11 utoa::buffer#14 utoa::buffer#4 utoa::buffer#3 utoa_append::buffer#0 printf_str::s#3 printf_str::s#4 printf_str::s#0 ]
|
|
reg byte x [ utoa_append::digit#2 utoa_append::digit#1 ]
|
|
zp[1]:20 [ conio_cursor_x ]
|
|
zp[1]:15 [ conio_cursor_y ]
|
|
zp[2]:18 [ conio_line_text ]
|
|
zp[2]:16 [ conio_line_color ]
|
|
reg byte a [ cputc::c#0 ]
|
|
zp[2]:21 [ gotoxy::$7 gotoxy::$9 gotoxy::line_offset#0 gotoxy::$6 ]
|
|
zp[2]:24 [ gotoxy::$8 ]
|
|
zp[2]:26 [ gotoxy::$5 ]
|
|
reg byte a [ printf_number_buffer::buffer_sign#0 ]
|
|
reg byte a [ printf_str::c#1 ]
|
|
zp[2]:10 [ memcpy::src_end#0 ]
|
|
zp[2]:6 [ memset::end#0 memcpy::destination#2 memcpy::dst#2 memcpy::dst#4 memcpy::dst#1 ]
|
|
reg byte x [ utoa::$11 ]
|
|
reg byte a [ utoa::$10 ]
|
|
zp[2]:8 [ utoa::digit_value#0 utoa_append::sub#0 printf_str::putc#4 clrscr::line_cols#5 clrscr::line_cols#1 ]
|
|
mem[12] [ printf_buffer ]
|
|
|
|
|
|
FINAL ASSEMBLER
|
|
Score: 74643
|
|
|
|
// File Comments
|
|
// Demonstrates problem with Casting of negative signed values
|
|
// https://gitlab.com/camelot/kickc/-/issues/496
|
|
// Upstart
|
|
// Commodore 64 PRG executable file
|
|
.file [name="casting-negative.prg", type="prg", segments="Program"]
|
|
.segmentdef Program [segments="Basic, Code, Data"]
|
|
.segmentdef Basic [start=$0801]
|
|
.segmentdef Code [start=$80d]
|
|
.segmentdef Data [startAfter="Code"]
|
|
.segment Basic
|
|
:BasicUpstart(__start)
|
|
// Global Constants & labels
|
|
.const LIGHT_BLUE = $e
|
|
.const OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS = 1
|
|
.const STACK_BASE = $103
|
|
.const SIZEOF_STRUCT_PRINTF_BUFFER_NUMBER = $c
|
|
/// Color Ram
|
|
.label COLORRAM = $d800
|
|
/// Default address of screen character matrix
|
|
.label DEFAULT_SCREEN = $400
|
|
// The number of bytes on the screen
|
|
// The current cursor x-position
|
|
.label conio_cursor_x = $14
|
|
// The current cursor y-position
|
|
.label conio_cursor_y = $f
|
|
// The current text cursor line start
|
|
.label conio_line_text = $12
|
|
// The current color cursor line start
|
|
.label conio_line_color = $10
|
|
.segment Code
|
|
// __start
|
|
__start: {
|
|
// __start::__init1
|
|
// __ma char conio_cursor_x = 0
|
|
// [1] conio_cursor_x = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_x
|
|
// __ma char conio_cursor_y = 0
|
|
// [2] conio_cursor_y = 0 -- vbuz1=vbuc1
|
|
sta.z conio_cursor_y
|
|
// __ma char *conio_line_text = CONIO_SCREEN_TEXT
|
|
// [3] conio_line_text = DEFAULT_SCREEN -- pbuz1=pbuc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z conio_line_text
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z conio_line_text+1
|
|
// __ma char *conio_line_color = CONIO_SCREEN_COLORS
|
|
// [4] conio_line_color = COLORRAM -- pbuz1=pbuc1
|
|
lda #<COLORRAM
|
|
sta.z conio_line_color
|
|
lda #>COLORRAM
|
|
sta.z conio_line_color+1
|
|
// #pragma constructor_for(conio_c64_init, cputc, clrscr, cscroll)
|
|
// [5] call conio_c64_init
|
|
jsr conio_c64_init
|
|
// [6] phi from __start::__init1 to __start::@1 [phi:__start::__init1->__start::@1]
|
|
// __start::@1
|
|
// [7] call main
|
|
// [27] phi from __start::@1 to main [phi:__start::@1->main]
|
|
jsr main
|
|
// __start::@return
|
|
// [8] return
|
|
rts
|
|
}
|
|
// conio_c64_init
|
|
// Set initial cursor position
|
|
conio_c64_init: {
|
|
// Position cursor at current line
|
|
.label BASIC_CURSOR_LINE = $d6
|
|
// char line = *BASIC_CURSOR_LINE
|
|
// [9] conio_c64_init::line#0 = *conio_c64_init::BASIC_CURSOR_LINE -- vbuxx=_deref_pbuc1
|
|
ldx.z BASIC_CURSOR_LINE
|
|
// if(line>=CONIO_HEIGHT)
|
|
// [10] if(conio_c64_init::line#0<$19) goto conio_c64_init::@2 -- vbuxx_lt_vbuc1_then_la1
|
|
cpx #$19
|
|
bcc __b1
|
|
// [12] phi from conio_c64_init to conio_c64_init::@1 [phi:conio_c64_init->conio_c64_init::@1]
|
|
// [12] phi conio_c64_init::line#2 = $19-1 [phi:conio_c64_init->conio_c64_init::@1#0] -- vbuxx=vbuc1
|
|
ldx #$19-1
|
|
// [11] phi from conio_c64_init to conio_c64_init::@2 [phi:conio_c64_init->conio_c64_init::@2]
|
|
// conio_c64_init::@2
|
|
// [12] phi from conio_c64_init::@2 to conio_c64_init::@1 [phi:conio_c64_init::@2->conio_c64_init::@1]
|
|
// [12] phi conio_c64_init::line#2 = conio_c64_init::line#0 [phi:conio_c64_init::@2->conio_c64_init::@1#0] -- register_copy
|
|
// conio_c64_init::@1
|
|
__b1:
|
|
// gotoxy(0, line)
|
|
// [13] gotoxy::y#2 = conio_c64_init::line#2
|
|
// [14] call gotoxy
|
|
jsr gotoxy
|
|
// conio_c64_init::@return
|
|
// }
|
|
// [15] return
|
|
rts
|
|
}
|
|
// cputc
|
|
// Output one character at the current cursor position
|
|
// Moves the cursor forward. Scrolls the entire screen if needed
|
|
// void cputc(__register(A) char c)
|
|
cputc: {
|
|
.const OFFSET_STACK_C = 0
|
|
// [16] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C) -- vbuaa=_stackidxbyte_vbuc1
|
|
tsx
|
|
lda STACK_BASE+OFFSET_STACK_C,x
|
|
// if(c=='\n')
|
|
// [17] if(cputc::c#0==' ') goto cputc::@1 -- vbuaa_eq_vbuc1_then_la1
|
|
cmp #'\n'
|
|
beq __b1
|
|
// cputc::@2
|
|
// conio_line_text[conio_cursor_x] = c
|
|
// [18] conio_line_text[conio_cursor_x] = cputc::c#0 -- pbuz1_derefidx_vbuz2=vbuaa
|
|
ldy.z conio_cursor_x
|
|
sta (conio_line_text),y
|
|
// conio_line_color[conio_cursor_x] = conio_textcolor
|
|
// [19] conio_line_color[conio_cursor_x] = LIGHT_BLUE -- pbuz1_derefidx_vbuz2=vbuc1
|
|
lda #LIGHT_BLUE
|
|
sta (conio_line_color),y
|
|
// if(++conio_cursor_x==CONIO_WIDTH)
|
|
// [20] conio_cursor_x = ++ conio_cursor_x -- vbuz1=_inc_vbuz1
|
|
inc.z conio_cursor_x
|
|
// [21] if(conio_cursor_x!=$28) goto cputc::@return -- vbuz1_neq_vbuc1_then_la1
|
|
lda #$28
|
|
cmp.z conio_cursor_x
|
|
bne __breturn
|
|
// [22] phi from cputc::@2 to cputc::@3 [phi:cputc::@2->cputc::@3]
|
|
// cputc::@3
|
|
// cputln()
|
|
// [23] call cputln
|
|
jsr cputln
|
|
// cputc::@return
|
|
__breturn:
|
|
// }
|
|
// [24] return
|
|
rts
|
|
// [25] phi from cputc to cputc::@1 [phi:cputc->cputc::@1]
|
|
// cputc::@1
|
|
__b1:
|
|
// cputln()
|
|
// [26] call cputln
|
|
jsr cputln
|
|
rts
|
|
}
|
|
// main
|
|
main: {
|
|
.label signed_char_value = $17
|
|
// clrscr()
|
|
// [28] call clrscr
|
|
// [55] phi from main to clrscr [phi:main->clrscr]
|
|
jsr clrscr
|
|
// [29] phi from main to main::@1 [phi:main->main::@1]
|
|
// [29] phi main::signed_char_value#2 = -5 [phi:main->main::@1#0] -- vbsz1=vbsc1
|
|
lda #-5
|
|
sta.z signed_char_value
|
|
// main::@1
|
|
__b1:
|
|
// while (signed_char_value != 0)
|
|
// [30] if(main::signed_char_value#2!=0) goto main::@2 -- vbsz1_neq_0_then_la1
|
|
lda.z signed_char_value
|
|
cmp #0
|
|
bne __b2
|
|
// main::@return
|
|
// }
|
|
// [31] return
|
|
rts
|
|
// main::@2
|
|
__b2:
|
|
// ++signed_char_value;
|
|
// [32] main::signed_char_value#1 = ++ main::signed_char_value#2 -- vbsz1=_inc_vbsz1
|
|
inc.z signed_char_value
|
|
// test_casting(signed_char_value)
|
|
// [33] test_casting::signed_short_value#0 = main::signed_char_value#1 -- vwsz1=vbsz2
|
|
lda.z signed_char_value
|
|
sta.z test_casting.signed_short_value
|
|
and #$80
|
|
beq !+
|
|
lda #$ff
|
|
!:
|
|
sta.z test_casting.signed_short_value+1
|
|
// [34] call test_casting
|
|
jsr test_casting
|
|
// [29] phi from main::@2 to main::@1 [phi:main::@2->main::@1]
|
|
// [29] phi main::signed_char_value#2 = main::signed_char_value#1 [phi:main::@2->main::@1#0] -- register_copy
|
|
jmp __b1
|
|
}
|
|
// gotoxy
|
|
// Set the cursor to the specified position
|
|
// void gotoxy(char x, __register(X) char y)
|
|
gotoxy: {
|
|
.const x = 0
|
|
.label __5 = $1a
|
|
.label __6 = $15
|
|
.label __7 = $15
|
|
.label line_offset = $15
|
|
.label __8 = $18
|
|
.label __9 = $15
|
|
// if(y>CONIO_HEIGHT)
|
|
// [35] if(gotoxy::y#2<$19+1) goto gotoxy::@3 -- vbuxx_lt_vbuc1_then_la1
|
|
cpx #$19+1
|
|
bcc __b2
|
|
// [37] phi from gotoxy to gotoxy::@1 [phi:gotoxy->gotoxy::@1]
|
|
// [37] phi gotoxy::y#4 = 0 [phi:gotoxy->gotoxy::@1#0] -- vbuxx=vbuc1
|
|
ldx #0
|
|
// [36] phi from gotoxy to gotoxy::@3 [phi:gotoxy->gotoxy::@3]
|
|
// gotoxy::@3
|
|
// [37] phi from gotoxy::@3 to gotoxy::@1 [phi:gotoxy::@3->gotoxy::@1]
|
|
// [37] phi gotoxy::y#4 = gotoxy::y#2 [phi:gotoxy::@3->gotoxy::@1#0] -- register_copy
|
|
// gotoxy::@1
|
|
// gotoxy::@2
|
|
__b2:
|
|
// conio_cursor_x = x
|
|
// [38] conio_cursor_x = gotoxy::x#2 -- vbuz1=vbuc1
|
|
lda #x
|
|
sta.z conio_cursor_x
|
|
// conio_cursor_y = y
|
|
// [39] conio_cursor_y = gotoxy::y#4 -- vbuz1=vbuxx
|
|
stx.z conio_cursor_y
|
|
// unsigned int line_offset = (unsigned int)y*CONIO_WIDTH
|
|
// [40] gotoxy::$7 = (unsigned int)gotoxy::y#4 -- vwuz1=_word_vbuxx
|
|
txa
|
|
sta.z __7
|
|
lda #0
|
|
sta.z __7+1
|
|
// [41] gotoxy::$8 = gotoxy::$7 << 2 -- vwuz1=vwuz2_rol_2
|
|
lda.z __7
|
|
asl
|
|
sta.z __8
|
|
lda.z __7+1
|
|
rol
|
|
sta.z __8+1
|
|
asl.z __8
|
|
rol.z __8+1
|
|
// [42] gotoxy::$9 = gotoxy::$8 + gotoxy::$7 -- vwuz1=vwuz2_plus_vwuz1
|
|
clc
|
|
lda.z __9
|
|
adc.z __8
|
|
sta.z __9
|
|
lda.z __9+1
|
|
adc.z __8+1
|
|
sta.z __9+1
|
|
// [43] gotoxy::line_offset#0 = gotoxy::$9 << 3 -- vwuz1=vwuz1_rol_3
|
|
asl.z line_offset
|
|
rol.z line_offset+1
|
|
asl.z line_offset
|
|
rol.z line_offset+1
|
|
asl.z line_offset
|
|
rol.z line_offset+1
|
|
// CONIO_SCREEN_TEXT + line_offset
|
|
// [44] gotoxy::$5 = DEFAULT_SCREEN + gotoxy::line_offset#0 -- pbuz1=pbuc1_plus_vwuz2
|
|
lda.z line_offset
|
|
clc
|
|
adc #<DEFAULT_SCREEN
|
|
sta.z __5
|
|
lda.z line_offset+1
|
|
adc #>DEFAULT_SCREEN
|
|
sta.z __5+1
|
|
// conio_line_text = CONIO_SCREEN_TEXT + line_offset
|
|
// [45] conio_line_text = gotoxy::$5 -- pbuz1=pbuz2
|
|
lda.z __5
|
|
sta.z conio_line_text
|
|
lda.z __5+1
|
|
sta.z conio_line_text+1
|
|
// CONIO_SCREEN_COLORS + line_offset
|
|
// [46] gotoxy::$6 = COLORRAM + gotoxy::line_offset#0 -- pbuz1=pbuc1_plus_vwuz1
|
|
lda.z __6
|
|
clc
|
|
adc #<COLORRAM
|
|
sta.z __6
|
|
lda.z __6+1
|
|
adc #>COLORRAM
|
|
sta.z __6+1
|
|
// conio_line_color = CONIO_SCREEN_COLORS + line_offset
|
|
// [47] conio_line_color = gotoxy::$6 -- pbuz1=pbuz2
|
|
lda.z __6
|
|
sta.z conio_line_color
|
|
lda.z __6+1
|
|
sta.z conio_line_color+1
|
|
// gotoxy::@return
|
|
// }
|
|
// [48] return
|
|
rts
|
|
}
|
|
// cputln
|
|
// Print a newline
|
|
cputln: {
|
|
// conio_line_text += CONIO_WIDTH
|
|
// [49] conio_line_text = conio_line_text + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z conio_line_text
|
|
sta.z conio_line_text
|
|
bcc !+
|
|
inc.z conio_line_text+1
|
|
!:
|
|
// conio_line_color += CONIO_WIDTH
|
|
// [50] conio_line_color = conio_line_color + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z conio_line_color
|
|
sta.z conio_line_color
|
|
bcc !+
|
|
inc.z conio_line_color+1
|
|
!:
|
|
// conio_cursor_x = 0
|
|
// [51] conio_cursor_x = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_x
|
|
// conio_cursor_y++;
|
|
// [52] conio_cursor_y = ++ conio_cursor_y -- vbuz1=_inc_vbuz1
|
|
inc.z conio_cursor_y
|
|
// cscroll()
|
|
// [53] call cscroll
|
|
jsr cscroll
|
|
// cputln::@return
|
|
// }
|
|
// [54] return
|
|
rts
|
|
}
|
|
// clrscr
|
|
// clears the screen and moves the cursor to the upper left-hand corner of the screen.
|
|
clrscr: {
|
|
.label line_text = 4
|
|
.label line_cols = 8
|
|
// [56] phi from clrscr to clrscr::@1 [phi:clrscr->clrscr::@1]
|
|
// [56] phi clrscr::line_cols#5 = COLORRAM [phi:clrscr->clrscr::@1#0] -- pbuz1=pbuc1
|
|
lda #<COLORRAM
|
|
sta.z line_cols
|
|
lda #>COLORRAM
|
|
sta.z line_cols+1
|
|
// [56] phi clrscr::line_text#5 = DEFAULT_SCREEN [phi:clrscr->clrscr::@1#1] -- pbuz1=pbuc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z line_text
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z line_text+1
|
|
// [56] phi clrscr::l#2 = 0 [phi:clrscr->clrscr::@1#2] -- vbuxx=vbuc1
|
|
ldx #0
|
|
// clrscr::@1
|
|
__b1:
|
|
// for( char l=0;l<CONIO_HEIGHT; l++ )
|
|
// [57] if(clrscr::l#2<$19) goto clrscr::@3 -- vbuxx_lt_vbuc1_then_la1
|
|
cpx #$19
|
|
bcc __b2
|
|
// clrscr::@2
|
|
// conio_cursor_x = 0
|
|
// [58] conio_cursor_x = 0 -- vbuz1=vbuc1
|
|
lda #0
|
|
sta.z conio_cursor_x
|
|
// conio_cursor_y = 0
|
|
// [59] conio_cursor_y = 0 -- vbuz1=vbuc1
|
|
sta.z conio_cursor_y
|
|
// conio_line_text = CONIO_SCREEN_TEXT
|
|
// [60] conio_line_text = DEFAULT_SCREEN -- pbuz1=pbuc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z conio_line_text
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z conio_line_text+1
|
|
// conio_line_color = CONIO_SCREEN_COLORS
|
|
// [61] conio_line_color = COLORRAM -- pbuz1=pbuc1
|
|
lda #<COLORRAM
|
|
sta.z conio_line_color
|
|
lda #>COLORRAM
|
|
sta.z conio_line_color+1
|
|
// clrscr::@return
|
|
// }
|
|
// [62] return
|
|
rts
|
|
// [63] phi from clrscr::@1 to clrscr::@3 [phi:clrscr::@1->clrscr::@3]
|
|
__b2:
|
|
// [63] phi clrscr::c#2 = 0 [phi:clrscr::@1->clrscr::@3#0] -- vbuyy=vbuc1
|
|
ldy #0
|
|
// clrscr::@3
|
|
__b3:
|
|
// for( char c=0;c<CONIO_WIDTH; c++ )
|
|
// [64] if(clrscr::c#2<$28) goto clrscr::@4 -- vbuyy_lt_vbuc1_then_la1
|
|
cpy #$28
|
|
bcc __b4
|
|
// clrscr::@5
|
|
// line_text += CONIO_WIDTH
|
|
// [65] clrscr::line_text#1 = clrscr::line_text#5 + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z line_text
|
|
sta.z line_text
|
|
bcc !+
|
|
inc.z line_text+1
|
|
!:
|
|
// line_cols += CONIO_WIDTH
|
|
// [66] clrscr::line_cols#1 = clrscr::line_cols#5 + $28 -- pbuz1=pbuz1_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z line_cols
|
|
sta.z line_cols
|
|
bcc !+
|
|
inc.z line_cols+1
|
|
!:
|
|
// for( char l=0;l<CONIO_HEIGHT; l++ )
|
|
// [67] clrscr::l#1 = ++ clrscr::l#2 -- vbuxx=_inc_vbuxx
|
|
inx
|
|
// [56] phi from clrscr::@5 to clrscr::@1 [phi:clrscr::@5->clrscr::@1]
|
|
// [56] phi clrscr::line_cols#5 = clrscr::line_cols#1 [phi:clrscr::@5->clrscr::@1#0] -- register_copy
|
|
// [56] phi clrscr::line_text#5 = clrscr::line_text#1 [phi:clrscr::@5->clrscr::@1#1] -- register_copy
|
|
// [56] phi clrscr::l#2 = clrscr::l#1 [phi:clrscr::@5->clrscr::@1#2] -- register_copy
|
|
jmp __b1
|
|
// clrscr::@4
|
|
__b4:
|
|
// line_text[c] = ' '
|
|
// [68] clrscr::line_text#5[clrscr::c#2] = ' ' -- pbuz1_derefidx_vbuyy=vbuc1
|
|
lda #' '
|
|
sta (line_text),y
|
|
// line_cols[c] = conio_textcolor
|
|
// [69] clrscr::line_cols#5[clrscr::c#2] = LIGHT_BLUE -- pbuz1_derefidx_vbuyy=vbuc1
|
|
lda #LIGHT_BLUE
|
|
sta (line_cols),y
|
|
// for( char c=0;c<CONIO_WIDTH; c++ )
|
|
// [70] clrscr::c#1 = ++ clrscr::c#2 -- vbuyy=_inc_vbuyy
|
|
iny
|
|
// [63] phi from clrscr::@4 to clrscr::@3 [phi:clrscr::@4->clrscr::@3]
|
|
// [63] phi clrscr::c#2 = clrscr::c#1 [phi:clrscr::@4->clrscr::@3#0] -- register_copy
|
|
jmp __b3
|
|
}
|
|
// test_casting
|
|
// void test_casting(__zp(4) int signed_short_value)
|
|
test_casting: {
|
|
.label signed_short_value = 4
|
|
// printf("%d\n", signed_short_value)
|
|
// [71] printf_sint::value#1 = test_casting::signed_short_value#0
|
|
// [72] call printf_sint
|
|
jsr printf_sint
|
|
// [73] phi from test_casting to test_casting::@1 [phi:test_casting->test_casting::@1]
|
|
// test_casting::@1
|
|
// printf("%d\n", signed_short_value)
|
|
// [74] call printf_str
|
|
// [99] phi from test_casting::@1 to printf_str [phi:test_casting::@1->printf_str]
|
|
// [99] phi printf_str::putc#4 = &cputc [phi:test_casting::@1->printf_str#0] -- pprz1=pprc1
|
|
lda #<cputc
|
|
sta.z printf_str.putc
|
|
lda #>cputc
|
|
sta.z printf_str.putc+1
|
|
// [99] phi printf_str::s#4 = test_casting::s [phi:test_casting::@1->printf_str#1] -- pbuz1=pbuc1
|
|
lda #<s
|
|
sta.z printf_str.s
|
|
lda #>s
|
|
sta.z printf_str.s+1
|
|
jsr printf_str
|
|
// test_casting::@return
|
|
// }
|
|
// [75] return
|
|
rts
|
|
.segment Data
|
|
s: .text @"\n"
|
|
.byte 0
|
|
}
|
|
.segment Code
|
|
// cscroll
|
|
// Scroll the entire screen if the cursor is beyond the last line
|
|
cscroll: {
|
|
// if(conio_cursor_y==CONIO_HEIGHT)
|
|
// [76] if(conio_cursor_y!=$19) goto cscroll::@return -- vbuz1_neq_vbuc1_then_la1
|
|
lda #$19
|
|
cmp.z conio_cursor_y
|
|
bne __breturn
|
|
// [77] phi from cscroll to cscroll::@1 [phi:cscroll->cscroll::@1]
|
|
// cscroll::@1
|
|
// memcpy(CONIO_SCREEN_TEXT, CONIO_SCREEN_TEXT+CONIO_WIDTH, CONIO_BYTES-CONIO_WIDTH)
|
|
// [78] call memcpy
|
|
// [108] phi from cscroll::@1 to memcpy [phi:cscroll::@1->memcpy]
|
|
// [108] phi memcpy::destination#2 = (void *)DEFAULT_SCREEN [phi:cscroll::@1->memcpy#0] -- pvoz1=pvoc1
|
|
lda #<DEFAULT_SCREEN
|
|
sta.z memcpy.destination
|
|
lda #>DEFAULT_SCREEN
|
|
sta.z memcpy.destination+1
|
|
// [108] phi memcpy::source#2 = (void *)DEFAULT_SCREEN+$28 [phi:cscroll::@1->memcpy#1] -- pvoz1=pvoc1
|
|
lda #<DEFAULT_SCREEN+$28
|
|
sta.z memcpy.source
|
|
lda #>DEFAULT_SCREEN+$28
|
|
sta.z memcpy.source+1
|
|
jsr memcpy
|
|
// [79] phi from cscroll::@1 to cscroll::@2 [phi:cscroll::@1->cscroll::@2]
|
|
// cscroll::@2
|
|
// memcpy(CONIO_SCREEN_COLORS, CONIO_SCREEN_COLORS+CONIO_WIDTH, CONIO_BYTES-CONIO_WIDTH)
|
|
// [80] call memcpy
|
|
// [108] phi from cscroll::@2 to memcpy [phi:cscroll::@2->memcpy]
|
|
// [108] phi memcpy::destination#2 = (void *)COLORRAM [phi:cscroll::@2->memcpy#0] -- pvoz1=pvoc1
|
|
lda #<COLORRAM
|
|
sta.z memcpy.destination
|
|
lda #>COLORRAM
|
|
sta.z memcpy.destination+1
|
|
// [108] phi memcpy::source#2 = (void *)COLORRAM+$28 [phi:cscroll::@2->memcpy#1] -- pvoz1=pvoc1
|
|
lda #<COLORRAM+$28
|
|
sta.z memcpy.source
|
|
lda #>COLORRAM+$28
|
|
sta.z memcpy.source+1
|
|
jsr memcpy
|
|
// [81] phi from cscroll::@2 to cscroll::@3 [phi:cscroll::@2->cscroll::@3]
|
|
// cscroll::@3
|
|
// memset(CONIO_SCREEN_TEXT+CONIO_BYTES-CONIO_WIDTH, ' ', CONIO_WIDTH)
|
|
// [82] call memset
|
|
// [118] phi from cscroll::@3 to memset [phi:cscroll::@3->memset]
|
|
// [118] phi memset::c#4 = ' ' [phi:cscroll::@3->memset#0] -- vbuxx=vbuc1
|
|
ldx #' '
|
|
// [118] phi memset::str#3 = (void *)DEFAULT_SCREEN+(unsigned int)$19*$28-$28 [phi:cscroll::@3->memset#1] -- pvoz1=pvoc1
|
|
lda #<DEFAULT_SCREEN+$19*$28-$28
|
|
sta.z memset.str
|
|
lda #>DEFAULT_SCREEN+$19*$28-$28
|
|
sta.z memset.str+1
|
|
jsr memset
|
|
// [83] phi from cscroll::@3 to cscroll::@4 [phi:cscroll::@3->cscroll::@4]
|
|
// cscroll::@4
|
|
// memset(CONIO_SCREEN_COLORS+CONIO_BYTES-CONIO_WIDTH, conio_textcolor, CONIO_WIDTH)
|
|
// [84] call memset
|
|
// [118] phi from cscroll::@4 to memset [phi:cscroll::@4->memset]
|
|
// [118] phi memset::c#4 = LIGHT_BLUE [phi:cscroll::@4->memset#0] -- vbuxx=vbuc1
|
|
ldx #LIGHT_BLUE
|
|
// [118] phi memset::str#3 = (void *)COLORRAM+(unsigned int)$19*$28-$28 [phi:cscroll::@4->memset#1] -- pvoz1=pvoc1
|
|
lda #<COLORRAM+$19*$28-$28
|
|
sta.z memset.str
|
|
lda #>COLORRAM+$19*$28-$28
|
|
sta.z memset.str+1
|
|
jsr memset
|
|
// cscroll::@5
|
|
// conio_line_text -= CONIO_WIDTH
|
|
// [85] conio_line_text = conio_line_text - $28 -- pbuz1=pbuz1_minus_vbuc1
|
|
sec
|
|
lda.z conio_line_text
|
|
sbc #$28
|
|
sta.z conio_line_text
|
|
lda.z conio_line_text+1
|
|
sbc #0
|
|
sta.z conio_line_text+1
|
|
// conio_line_color -= CONIO_WIDTH
|
|
// [86] conio_line_color = conio_line_color - $28 -- pbuz1=pbuz1_minus_vbuc1
|
|
sec
|
|
lda.z conio_line_color
|
|
sbc #$28
|
|
sta.z conio_line_color
|
|
lda.z conio_line_color+1
|
|
sbc #0
|
|
sta.z conio_line_color+1
|
|
// conio_cursor_y--;
|
|
// [87] conio_cursor_y = -- conio_cursor_y -- vbuz1=_dec_vbuz1
|
|
dec.z conio_cursor_y
|
|
// cscroll::@return
|
|
__breturn:
|
|
// }
|
|
// [88] return
|
|
rts
|
|
}
|
|
// printf_sint
|
|
// Print a signed integer using a specific format
|
|
// void printf_sint(void (*putc)(char), __zp(4) int value, char format_min_length, char format_justify_left, char format_sign_always, char format_zero_padding, char format_upper_case, char format_radix)
|
|
printf_sint: {
|
|
.label putc = cputc
|
|
.label value = 4
|
|
// printf_buffer.sign = 0
|
|
// [89] *((char *)&printf_buffer) = 0 -- _deref_pbuc1=vbuc2
|
|
// Handle any sign
|
|
lda #0
|
|
sta printf_buffer
|
|
// if(value<0)
|
|
// [90] if(printf_sint::value#1<0) goto printf_sint::@1 -- vwsz1_lt_0_then_la1
|
|
lda.z value+1
|
|
bmi __b1
|
|
// [93] phi from printf_sint printf_sint::@1 to printf_sint::@2 [phi:printf_sint/printf_sint::@1->printf_sint::@2]
|
|
// [93] phi printf_sint::value#4 = printf_sint::value#1 [phi:printf_sint/printf_sint::@1->printf_sint::@2#0] -- register_copy
|
|
jmp __b2
|
|
// printf_sint::@1
|
|
__b1:
|
|
// value = -value
|
|
// [91] printf_sint::value#0 = - printf_sint::value#1 -- vwsz1=_neg_vwsz1
|
|
lda #0
|
|
sec
|
|
sbc.z value
|
|
sta.z value
|
|
lda #0
|
|
sbc.z value+1
|
|
sta.z value+1
|
|
// printf_buffer.sign = '-'
|
|
// [92] *((char *)&printf_buffer) = '-' -- _deref_pbuc1=vbuc2
|
|
lda #'-'
|
|
sta printf_buffer
|
|
// printf_sint::@2
|
|
__b2:
|
|
// utoa(uvalue, printf_buffer.digits, format.radix)
|
|
// [94] utoa::value#1 = (unsigned int)printf_sint::value#4
|
|
// [95] call utoa
|
|
// [126] phi from printf_sint::@2 to utoa [phi:printf_sint::@2->utoa]
|
|
jsr utoa
|
|
// printf_sint::@3
|
|
// printf_number_buffer(putc, printf_buffer, format)
|
|
// [96] printf_number_buffer::buffer_sign#0 = *((char *)&printf_buffer) -- vbuaa=_deref_pbuc1
|
|
lda printf_buffer
|
|
// [97] call printf_number_buffer
|
|
// Print using format
|
|
// [147] phi from printf_sint::@3 to printf_number_buffer [phi:printf_sint::@3->printf_number_buffer]
|
|
jsr printf_number_buffer
|
|
// printf_sint::@return
|
|
// }
|
|
// [98] return
|
|
rts
|
|
}
|
|
// printf_str
|
|
/// Print a NUL-terminated string
|
|
// void printf_str(__zp(8) void (*putc)(char), __zp($c) const char *s)
|
|
printf_str: {
|
|
.label s = $c
|
|
.label putc = 8
|
|
// [100] phi from printf_str printf_str::@2 to printf_str::@1 [phi:printf_str/printf_str::@2->printf_str::@1]
|
|
// [100] phi printf_str::s#3 = printf_str::s#4 [phi:printf_str/printf_str::@2->printf_str::@1#0] -- register_copy
|
|
// printf_str::@1
|
|
__b1:
|
|
// while(c=*s++)
|
|
// [101] printf_str::c#1 = *printf_str::s#3 -- vbuaa=_deref_pbuz1
|
|
ldy #0
|
|
lda (s),y
|
|
// [102] printf_str::s#0 = ++ printf_str::s#3 -- pbuz1=_inc_pbuz1
|
|
inc.z s
|
|
bne !+
|
|
inc.z s+1
|
|
!:
|
|
// [103] if(0!=printf_str::c#1) goto printf_str::@2 -- 0_neq_vbuaa_then_la1
|
|
cmp #0
|
|
bne __b2
|
|
// printf_str::@return
|
|
// }
|
|
// [104] return
|
|
rts
|
|
// printf_str::@2
|
|
__b2:
|
|
// putc(c)
|
|
// [105] stackpush(char) = printf_str::c#1 -- _stackpushbyte_=vbuaa
|
|
pha
|
|
// [106] callexecute *printf_str::putc#4 -- call__deref_pprz1
|
|
jsr icall1
|
|
// sideeffect stackpullpadding(1) -- _stackpullpadding_1
|
|
pla
|
|
jmp __b1
|
|
// Outside Flow
|
|
icall1:
|
|
jmp (putc)
|
|
}
|
|
// memcpy
|
|
// Copy block of memory (forwards)
|
|
// Copies the values of num bytes from the location pointed to by source directly to the memory block pointed to by destination.
|
|
// void * memcpy(__zp(6) void *destination, __zp(2) void *source, unsigned int num)
|
|
memcpy: {
|
|
.label src_end = $a
|
|
.label dst = 6
|
|
.label src = 2
|
|
.label source = 2
|
|
.label destination = 6
|
|
// char* src_end = (char*)source+num
|
|
// [109] memcpy::src_end#0 = (char *)memcpy::source#2 + (unsigned int)$19*$28-$28 -- pbuz1=pbuz2_plus_vwuc1
|
|
lda.z source
|
|
clc
|
|
adc #<$19*$28-$28
|
|
sta.z src_end
|
|
lda.z source+1
|
|
adc #>$19*$28-$28
|
|
sta.z src_end+1
|
|
// [110] memcpy::src#4 = (char *)memcpy::source#2
|
|
// [111] memcpy::dst#4 = (char *)memcpy::destination#2
|
|
// [112] phi from memcpy memcpy::@2 to memcpy::@1 [phi:memcpy/memcpy::@2->memcpy::@1]
|
|
// [112] phi memcpy::dst#2 = memcpy::dst#4 [phi:memcpy/memcpy::@2->memcpy::@1#0] -- register_copy
|
|
// [112] phi memcpy::src#2 = memcpy::src#4 [phi:memcpy/memcpy::@2->memcpy::@1#1] -- register_copy
|
|
// memcpy::@1
|
|
__b1:
|
|
// while(src!=src_end)
|
|
// [113] if(memcpy::src#2!=memcpy::src_end#0) goto memcpy::@2 -- pbuz1_neq_pbuz2_then_la1
|
|
lda.z src+1
|
|
cmp.z src_end+1
|
|
bne __b2
|
|
lda.z src
|
|
cmp.z src_end
|
|
bne __b2
|
|
// memcpy::@return
|
|
// }
|
|
// [114] return
|
|
rts
|
|
// memcpy::@2
|
|
__b2:
|
|
// *dst++ = *src++
|
|
// [115] *memcpy::dst#2 = *memcpy::src#2 -- _deref_pbuz1=_deref_pbuz2
|
|
ldy #0
|
|
lda (src),y
|
|
sta (dst),y
|
|
// *dst++ = *src++;
|
|
// [116] memcpy::dst#1 = ++ memcpy::dst#2 -- pbuz1=_inc_pbuz1
|
|
inc.z dst
|
|
bne !+
|
|
inc.z dst+1
|
|
!:
|
|
// [117] memcpy::src#1 = ++ memcpy::src#2 -- pbuz1=_inc_pbuz1
|
|
inc.z src
|
|
bne !+
|
|
inc.z src+1
|
|
!:
|
|
jmp __b1
|
|
}
|
|
// memset
|
|
// Copies the character c (an unsigned char) to the first num characters of the object pointed to by the argument str.
|
|
// void * memset(__zp(2) void *str, __register(X) char c, unsigned int num)
|
|
memset: {
|
|
.label end = 6
|
|
.label dst = 2
|
|
.label str = 2
|
|
// memset::@1
|
|
// char* end = (char*)str + num
|
|
// [119] memset::end#0 = (char *)memset::str#3 + $28 -- pbuz1=pbuz2_plus_vbuc1
|
|
lda #$28
|
|
clc
|
|
adc.z str
|
|
sta.z end
|
|
lda #0
|
|
adc.z str+1
|
|
sta.z end+1
|
|
// [120] memset::dst#4 = (char *)memset::str#3
|
|
// [121] phi from memset::@1 memset::@3 to memset::@2 [phi:memset::@1/memset::@3->memset::@2]
|
|
// [121] phi memset::dst#2 = memset::dst#4 [phi:memset::@1/memset::@3->memset::@2#0] -- register_copy
|
|
// memset::@2
|
|
__b2:
|
|
// for(char* dst = str; dst!=end; dst++)
|
|
// [122] if(memset::dst#2!=memset::end#0) goto memset::@3 -- pbuz1_neq_pbuz2_then_la1
|
|
lda.z dst+1
|
|
cmp.z end+1
|
|
bne __b3
|
|
lda.z dst
|
|
cmp.z end
|
|
bne __b3
|
|
// memset::@return
|
|
// }
|
|
// [123] return
|
|
rts
|
|
// memset::@3
|
|
__b3:
|
|
// *dst = c
|
|
// [124] *memset::dst#2 = memset::c#4 -- _deref_pbuz1=vbuxx
|
|
txa
|
|
ldy #0
|
|
sta (dst),y
|
|
// for(char* dst = str; dst!=end; dst++)
|
|
// [125] memset::dst#1 = ++ memset::dst#2 -- pbuz1=_inc_pbuz1
|
|
inc.z dst
|
|
bne !+
|
|
inc.z dst+1
|
|
!:
|
|
jmp __b2
|
|
}
|
|
// utoa
|
|
// Converts unsigned number value to a string representing it in RADIX format.
|
|
// If the leading digits are zero they are not included in the string.
|
|
// - 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(4) unsigned int value, __zp($c) char *buffer, char radix)
|
|
utoa: {
|
|
.const max_digits = 5
|
|
.label digit_value = 8
|
|
.label buffer = $c
|
|
.label digit = $e
|
|
.label value = 4
|
|
// [127] phi from utoa to utoa::@1 [phi:utoa->utoa::@1]
|
|
// [127] phi utoa::buffer#11 = (char *)&printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS [phi:utoa->utoa::@1#0] -- pbuz1=pbuc1
|
|
lda #<printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
sta.z buffer
|
|
lda #>printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
sta.z buffer+1
|
|
// [127] phi utoa::started#2 = 0 [phi:utoa->utoa::@1#1] -- vbuxx=vbuc1
|
|
ldx #0
|
|
// [127] phi utoa::value#2 = utoa::value#1 [phi:utoa->utoa::@1#2] -- register_copy
|
|
// [127] phi utoa::digit#2 = 0 [phi:utoa->utoa::@1#3] -- vbuz1=vbuc1
|
|
txa
|
|
sta.z digit
|
|
// utoa::@1
|
|
__b1:
|
|
// for( char digit=0; digit<max_digits-1; digit++ )
|
|
// [128] if(utoa::digit#2<utoa::max_digits#1-1) goto utoa::@2 -- vbuz1_lt_vbuc1_then_la1
|
|
lda.z digit
|
|
cmp #max_digits-1
|
|
bcc __b2
|
|
// utoa::@3
|
|
// *buffer++ = DIGITS[(char)value]
|
|
// [129] utoa::$11 = (char)utoa::value#2 -- vbuxx=_byte_vwuz1
|
|
ldx.z value
|
|
// [130] *utoa::buffer#11 = DIGITS[utoa::$11] -- _deref_pbuz1=pbuc1_derefidx_vbuxx
|
|
lda DIGITS,x
|
|
ldy #0
|
|
sta (buffer),y
|
|
// *buffer++ = DIGITS[(char)value];
|
|
// [131] utoa::buffer#3 = ++ utoa::buffer#11 -- pbuz1=_inc_pbuz1
|
|
inc.z buffer
|
|
bne !+
|
|
inc.z buffer+1
|
|
!:
|
|
// *buffer = 0
|
|
// [132] *utoa::buffer#3 = 0 -- _deref_pbuz1=vbuc1
|
|
lda #0
|
|
tay
|
|
sta (buffer),y
|
|
// utoa::@return
|
|
// }
|
|
// [133] return
|
|
rts
|
|
// utoa::@2
|
|
__b2:
|
|
// unsigned int digit_value = digit_values[digit]
|
|
// [134] utoa::$10 = utoa::digit#2 << 1 -- vbuaa=vbuz1_rol_1
|
|
lda.z digit
|
|
asl
|
|
// [135] utoa::digit_value#0 = RADIX_DECIMAL_VALUES[utoa::$10] -- vwuz1=pwuc1_derefidx_vbuaa
|
|
tay
|
|
lda RADIX_DECIMAL_VALUES,y
|
|
sta.z digit_value
|
|
lda RADIX_DECIMAL_VALUES+1,y
|
|
sta.z digit_value+1
|
|
// if (started || value >= digit_value)
|
|
// [136] if(0!=utoa::started#2) goto utoa::@5 -- 0_neq_vbuxx_then_la1
|
|
cpx #0
|
|
bne __b5
|
|
// utoa::@7
|
|
// [137] if(utoa::value#2>=utoa::digit_value#0) goto utoa::@5 -- vwuz1_ge_vwuz2_then_la1
|
|
cmp.z value+1
|
|
bne !+
|
|
lda.z digit_value
|
|
cmp.z value
|
|
beq __b5
|
|
!:
|
|
bcc __b5
|
|
// [138] phi from utoa::@7 to utoa::@4 [phi:utoa::@7->utoa::@4]
|
|
// [138] phi utoa::buffer#14 = utoa::buffer#11 [phi:utoa::@7->utoa::@4#0] -- register_copy
|
|
// [138] phi utoa::started#4 = utoa::started#2 [phi:utoa::@7->utoa::@4#1] -- register_copy
|
|
// [138] phi utoa::value#6 = utoa::value#2 [phi:utoa::@7->utoa::@4#2] -- register_copy
|
|
// utoa::@4
|
|
__b4:
|
|
// for( char digit=0; digit<max_digits-1; digit++ )
|
|
// [139] utoa::digit#1 = ++ utoa::digit#2 -- vbuz1=_inc_vbuz1
|
|
inc.z digit
|
|
// [127] phi from utoa::@4 to utoa::@1 [phi:utoa::@4->utoa::@1]
|
|
// [127] phi utoa::buffer#11 = utoa::buffer#14 [phi:utoa::@4->utoa::@1#0] -- register_copy
|
|
// [127] phi utoa::started#2 = utoa::started#4 [phi:utoa::@4->utoa::@1#1] -- register_copy
|
|
// [127] phi utoa::value#2 = utoa::value#6 [phi:utoa::@4->utoa::@1#2] -- register_copy
|
|
// [127] phi utoa::digit#2 = utoa::digit#1 [phi:utoa::@4->utoa::@1#3] -- register_copy
|
|
jmp __b1
|
|
// utoa::@5
|
|
__b5:
|
|
// utoa_append(buffer++, value, digit_value)
|
|
// [140] utoa_append::buffer#0 = utoa::buffer#11
|
|
// [141] utoa_append::value#0 = utoa::value#2
|
|
// [142] utoa_append::sub#0 = utoa::digit_value#0
|
|
// [143] call utoa_append
|
|
// [155] phi from utoa::@5 to utoa_append [phi:utoa::@5->utoa_append]
|
|
jsr utoa_append
|
|
// utoa_append(buffer++, value, digit_value)
|
|
// [144] utoa_append::return#0 = utoa_append::value#2
|
|
// utoa::@6
|
|
// value = utoa_append(buffer++, value, digit_value)
|
|
// [145] utoa::value#0 = utoa_append::return#0
|
|
// value = utoa_append(buffer++, value, digit_value);
|
|
// [146] utoa::buffer#4 = ++ utoa::buffer#11 -- pbuz1=_inc_pbuz1
|
|
inc.z buffer
|
|
bne !+
|
|
inc.z buffer+1
|
|
!:
|
|
// [138] phi from utoa::@6 to utoa::@4 [phi:utoa::@6->utoa::@4]
|
|
// [138] phi utoa::buffer#14 = utoa::buffer#4 [phi:utoa::@6->utoa::@4#0] -- register_copy
|
|
// [138] phi utoa::started#4 = 1 [phi:utoa::@6->utoa::@4#1] -- vbuxx=vbuc1
|
|
ldx #1
|
|
// [138] phi utoa::value#6 = utoa::value#0 [phi:utoa::@6->utoa::@4#2] -- register_copy
|
|
jmp __b4
|
|
}
|
|
// 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(void (*putc)(char), __register(A) char buffer_sign, char *buffer_digits, char format_min_length, char format_justify_left, char format_sign_always, char format_zero_padding, char format_upper_case, char format_radix)
|
|
printf_number_buffer: {
|
|
.label buffer_digits = printf_buffer+OFFSET_STRUCT_PRINTF_BUFFER_NUMBER_DIGITS
|
|
// printf_number_buffer::@1
|
|
// if(buffer.sign)
|
|
// [148] if(0==printf_number_buffer::buffer_sign#0) goto printf_number_buffer::@2 -- 0_eq_vbuaa_then_la1
|
|
cmp #0
|
|
beq __b2
|
|
// printf_number_buffer::@3
|
|
// putc(buffer.sign)
|
|
// [149] stackpush(char) = printf_number_buffer::buffer_sign#0 -- _stackpushbyte_=vbuaa
|
|
pha
|
|
// [150] callexecute cputc -- call_vprc1
|
|
jsr cputc
|
|
// sideeffect stackpullpadding(1) -- _stackpullpadding_1
|
|
pla
|
|
// [152] phi from printf_number_buffer::@1 printf_number_buffer::@3 to printf_number_buffer::@2 [phi:printf_number_buffer::@1/printf_number_buffer::@3->printf_number_buffer::@2]
|
|
// printf_number_buffer::@2
|
|
__b2:
|
|
// printf_str(putc, buffer.digits)
|
|
// [153] call printf_str
|
|
// [99] phi from printf_number_buffer::@2 to printf_str [phi:printf_number_buffer::@2->printf_str]
|
|
// [99] phi printf_str::putc#4 = printf_sint::putc#0 [phi:printf_number_buffer::@2->printf_str#0] -- pprz1=pprc1
|
|
lda #<printf_sint.putc
|
|
sta.z printf_str.putc
|
|
lda #>printf_sint.putc
|
|
sta.z printf_str.putc+1
|
|
// [99] phi printf_str::s#4 = printf_number_buffer::buffer_digits#0 [phi:printf_number_buffer::@2->printf_str#1] -- pbuz1=pbuc1
|
|
lda #<buffer_digits
|
|
sta.z printf_str.s
|
|
lda #>buffer_digits
|
|
sta.z printf_str.s+1
|
|
jsr printf_str
|
|
// printf_number_buffer::@return
|
|
// }
|
|
// [154] return
|
|
rts
|
|
}
|
|
// utoa_append
|
|
// Used to convert a single digit of an unsigned number value to a string representation
|
|
// Counts a single digit up from '0' as long as the value is larger than sub.
|
|
// Each time the digit is increased sub is subtracted from value.
|
|
// - buffer : pointer to the char that receives the digit
|
|
// - value : The value where the digit will be derived from
|
|
// - 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(4) unsigned int utoa_append(__zp($c) char *buffer, __zp(4) unsigned int value, __zp(8) unsigned int sub)
|
|
utoa_append: {
|
|
.label buffer = $c
|
|
.label value = 4
|
|
.label sub = 8
|
|
.label return = 4
|
|
// [156] phi from utoa_append to utoa_append::@1 [phi:utoa_append->utoa_append::@1]
|
|
// [156] phi utoa_append::digit#2 = 0 [phi:utoa_append->utoa_append::@1#0] -- vbuxx=vbuc1
|
|
ldx #0
|
|
// [156] 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)
|
|
// [157] 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 !+
|
|
lda.z sub
|
|
cmp.z value
|
|
beq __b2
|
|
!:
|
|
bcc __b2
|
|
// utoa_append::@3
|
|
// *buffer = DIGITS[digit]
|
|
// [158] *utoa_append::buffer#0 = DIGITS[utoa_append::digit#2] -- _deref_pbuz1=pbuc1_derefidx_vbuxx
|
|
lda DIGITS,x
|
|
ldy #0
|
|
sta (buffer),y
|
|
// utoa_append::@return
|
|
// }
|
|
// [159] return
|
|
rts
|
|
// utoa_append::@2
|
|
__b2:
|
|
// digit++;
|
|
// [160] utoa_append::digit#1 = ++ utoa_append::digit#2 -- vbuxx=_inc_vbuxx
|
|
inx
|
|
// value -= sub
|
|
// [161] utoa_append::value#1 = utoa_append::value#2 - utoa_append::sub#0 -- vwuz1=vwuz1_minus_vwuz2
|
|
lda.z value
|
|
sec
|
|
sbc.z sub
|
|
sta.z value
|
|
lda.z value+1
|
|
sbc.z sub+1
|
|
sta.z value+1
|
|
// [156] phi from utoa_append::@2 to utoa_append::@1 [phi:utoa_append::@2->utoa_append::@1]
|
|
// [156] phi utoa_append::digit#2 = utoa_append::digit#1 [phi:utoa_append::@2->utoa_append::@1#0] -- register_copy
|
|
// [156] phi utoa_append::value#2 = utoa_append::value#1 [phi:utoa_append::@2->utoa_append::@1#1] -- register_copy
|
|
jmp __b1
|
|
}
|
|
// File Data
|
|
.segment Data
|
|
// The digits used for numbers
|
|
DIGITS: .text "0123456789abcdef"
|
|
// Values of decimal digits
|
|
RADIX_DECIMAL_VALUES: .word $2710, $3e8, $64, $a
|
|
// Buffer used for stringified number being printed
|
|
printf_buffer: .fill SIZEOF_STRUCT_PRINTF_BUFFER_NUMBER, 0
|
|
|