
void __start()
__start: scope:[__start]  from
  [0] phi()
  to:__start::__init1
__start::__init1: scope:[__start]  from __start
  [1] conio_screen_width = 0
  [2] conio_screen_height = 0
  [3] conio_screen_layer = 1
  [4] conio_width = 0
  [5] conio_height = 0
  [6] conio_rowshift = 0
  [7] conio_rowskip = 0
  [8] __bitmap_address = 0
  [9] __bitmap_layer = 0
  [10] __bitmap_hscale = 0
  [11] __bitmap_vscale = 0
  [12] __bitmap_color_depth = 0
  [13] call conio_x16_init
  to:__start::@1
__start::@1: scope:[__start]  from __start::__init1
  [14] phi()
  [15] call main
  to:__start::@return
__start::@return: scope:[__start]  from __start::@1
  [16] return 
  to:@return

void conio_x16_init()
conio_x16_init: scope:[conio_x16_init]  from __start::__init1
  [17] conio_x16_init::line#0 = *conio_x16_init::BASIC_CURSOR_LINE
  [18] call vera_layer_mode_text
  to:conio_x16_init::@3
conio_x16_init::@3: scope:[conio_x16_init]  from conio_x16_init
  [19] phi()
  [20] call screensize
  to:conio_x16_init::@4
conio_x16_init::@4: scope:[conio_x16_init]  from conio_x16_init::@3
  [21] phi()
  [22] call screenlayer
  to:conio_x16_init::@5
conio_x16_init::@5: scope:[conio_x16_init]  from conio_x16_init::@4
  [23] phi()
  [24] call vera_layer_set_textcolor
  to:conio_x16_init::@6
conio_x16_init::@6: scope:[conio_x16_init]  from conio_x16_init::@5
  [25] phi()
  [26] call vera_layer_set_backcolor
  to:conio_x16_init::@7
conio_x16_init::@7: scope:[conio_x16_init]  from conio_x16_init::@6
  [27] phi()
  [28] call vera_layer_set_mapbase
  to:conio_x16_init::@8
conio_x16_init::@8: scope:[conio_x16_init]  from conio_x16_init::@7
  [29] phi()
  [30] call vera_layer_set_mapbase
  to:conio_x16_init::@9
conio_x16_init::@9: scope:[conio_x16_init]  from conio_x16_init::@8
  [31] if(conio_x16_init::line#0<conio_screen_height) goto conio_x16_init::@1
  to:conio_x16_init::@2
conio_x16_init::@2: scope:[conio_x16_init]  from conio_x16_init::@9
  [32] conio_x16_init::line#1 = conio_screen_height - 1
  to:conio_x16_init::@1
conio_x16_init::@1: scope:[conio_x16_init]  from conio_x16_init::@2 conio_x16_init::@9
  [33] conio_x16_init::line#3 = phi( conio_x16_init::@2/conio_x16_init::line#1, conio_x16_init::@9/conio_x16_init::line#0 )
  [34] gotoxy::y#1 = conio_x16_init::line#3
  [35] call gotoxy
  to:conio_x16_init::@return
conio_x16_init::@return: scope:[conio_x16_init]  from conio_x16_init::@1
  [36] return 
  to:@return

__stackcall void cputc(char c)
cputc: scope:[cputc]  from printf_str::@2
  [37] CONIO_SCREEN_BANK#12 = phi( )
  [37] CONIO_SCREEN_TEXT#12 = phi( )
  [38] cputc::c#0 = stackidx(char,cputc::OFFSET_STACK_C)
  [39] vera_layer_get_color::layer#0 = conio_screen_layer
  [40] call vera_layer_get_color
  [41] vera_layer_get_color::return#0 = vera_layer_get_color::return#3
  to:cputc::@7
cputc::@7: scope:[cputc]  from cputc
  [42] cputc::color#0 = vera_layer_get_color::return#0
  [43] cputc::$15 = conio_screen_layer << 1
  [44] cputc::conio_addr#0 = CONIO_SCREEN_TEXT#12 + conio_line_text[cputc::$15]
  [45] cputc::$2 = conio_cursor_x[conio_screen_layer] << 1
  [46] cputc::conio_addr#1 = cputc::conio_addr#0 + cputc::$2
  [47] if(cputc::c#0=='
') goto cputc::@1
  to:cputc::@2
cputc::@2: scope:[cputc]  from cputc::@7
  [48] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL
  [49] cputc::$4 = byte0  cputc::conio_addr#1
  [50] *VERA_ADDRX_L = cputc::$4
  [51] cputc::$5 = byte1  cputc::conio_addr#1
  [52] *VERA_ADDRX_M = cputc::$5
  [53] cputc::$6 = CONIO_SCREEN_BANK#12 | VERA_INC_1
  [54] *VERA_ADDRX_H = cputc::$6
  [55] *VERA_DATA0 = cputc::c#0
  [56] *VERA_DATA0 = cputc::color#0
  [57] conio_cursor_x[conio_screen_layer] = ++ conio_cursor_x[conio_screen_layer]
  [58] cputc::scroll_enable#0 = conio_scroll_enable[conio_screen_layer]
  [59] if(0!=cputc::scroll_enable#0) goto cputc::@5
  to:cputc::@3
cputc::@3: scope:[cputc]  from cputc::@2
  [60] cputc::$16 = (unsigned int)conio_cursor_x[conio_screen_layer]
  [61] if(cputc::$16!=conio_width) goto cputc::@return
  to:cputc::@4
cputc::@4: scope:[cputc]  from cputc::@3
  [62] phi()
  [63] call cputln
  to:cputc::@return
cputc::@return: scope:[cputc]  from cputc::@1 cputc::@3 cputc::@4 cputc::@5 cputc::@6
  [64] return 
  to:@return
cputc::@5: scope:[cputc]  from cputc::@2
  [65] if(conio_cursor_x[conio_screen_layer]!=conio_screen_width) goto cputc::@return
  to:cputc::@6
cputc::@6: scope:[cputc]  from cputc::@5
  [66] phi()
  [67] call cputln
  to:cputc::@return
cputc::@1: scope:[cputc]  from cputc::@7
  [68] phi()
  [69] call cputln
  to:cputc::@return

void main()
main: scope:[main]  from __start::@1
  [70] phi()
  [71] call memcpy_in_vram
  to:main::@12
main::@12: scope:[main]  from main
  [72] phi()
  [73] call vera_layer_mode_tile
  to:main::@13
main::@13: scope:[main]  from main::@12
  [74] phi()
  [75] call vera_layer_mode_bitmap
  to:main::@14
main::@14: scope:[main]  from main::@13
  [76] phi()
  [77] call screenlayer
  to:main::textcolor1
main::textcolor1: scope:[main]  from main::@14
  [78] vera_layer_set_textcolor::layer#1 = conio_screen_layer
  [79] call vera_layer_set_textcolor
  to:main::bgcolor1
main::bgcolor1: scope:[main]  from main::textcolor1
  [80] vera_layer_set_backcolor::layer#1 = conio_screen_layer
  [81] call vera_layer_set_backcolor
  to:main::@6
main::@6: scope:[main]  from main::bgcolor1
  [82] phi()
  [83] call clrscr
  to:main::@15
main::@15: scope:[main]  from main::@6
  [84] phi()
  [85] call gotoxy
  to:main::@16
main::@16: scope:[main]  from main::@15
  [86] phi()
  [87] call printf_str
  to:main::@17
main::@17: scope:[main]  from main::@16
  [88] phi()
  [89] call printf_str
  to:main::@18
main::@18: scope:[main]  from main::@17
  [90] phi()
  [91] call printf_str
  to:main::@19
main::@19: scope:[main]  from main::@18
  [92] phi()
  [93] call printf_str
  to:main::vera_layer_show1
main::vera_layer_show1: scope:[main]  from main::@19
  [94] *VERA_DC_VIDEO = *VERA_DC_VIDEO | *vera_layer_enable
  to:main::@7
main::@7: scope:[main]  from main::vera_layer_show1
  [95] phi()
  [96] call bitmap_init
  to:main::@20
main::@20: scope:[main]  from main::@7
  [97] phi()
  [98] call bitmap_clear
  to:main::@21
main::@21: scope:[main]  from main::@20
  [99] phi()
  [100] call gotoxy
  to:main::textcolor2
main::textcolor2: scope:[main]  from main::@21
  [101] vera_layer_set_textcolor::layer#2 = conio_screen_layer
  [102] call vera_layer_set_textcolor
  to:main::@8
main::@8: scope:[main]  from main::textcolor2
  [103] phi()
  [104] call printf_str
  to:main::@1
main::@1: scope:[main]  from main::@31 main::@8
  [105] rand_state#23 = phi( main::@8/1, main::@31/rand_state#14 )
  [106] call kbhit
  [107] kbhit::return#2 = kbhit::return#1
  to:main::@22
main::@22: scope:[main]  from main::@1
  [108] main::$30 = kbhit::return#2
  [109] if(0==main::$30) goto main::@2
  to:main::textcolor3
main::textcolor3: scope:[main]  from main::@22
  [110] vera_layer_set_textcolor::layer#3 = conio_screen_layer
  [111] call vera_layer_set_textcolor
  to:main::bgcolor2
main::bgcolor2: scope:[main]  from main::textcolor3
  [112] vera_layer_set_backcolor::layer#2 = conio_screen_layer
  [113] call vera_layer_set_backcolor
  to:main::@9
main::@9: scope:[main]  from main::bgcolor2
  [114] phi()
  [115] call clrscr
  to:main::@32
main::@32: scope:[main]  from main::@9
  [116] phi()
  [117] call gotoxy
  to:main::@33
main::@33: scope:[main]  from main::@32
  [118] phi()
  [119] call printf_str
  to:main::@34
main::@34: scope:[main]  from main::@33
  [120] phi()
  [121] call gotoxy
  to:main::textcolor4
main::textcolor4: scope:[main]  from main::@34
  [122] vera_layer_set_textcolor::layer#4 = conio_screen_layer
  [123] call vera_layer_set_textcolor
  to:main::@10
main::@10: scope:[main]  from main::textcolor4
  [124] phi()
  [125] call printf_str
  to:main::@3
main::@3: scope:[main]  from main::@10 main::@36 main::@37
  [126] main::color#2 = phi( main::@10/0, main::@37/main::color#1, main::@36/main::color#1 )
  [126] main::x#3 = phi( main::@10/0, main::@37/main::x#1, main::@36/0 )
  [127] call kbhit
  [128] kbhit::return#3 = kbhit::return#1
  to:main::@35
main::@35: scope:[main]  from main::@3
  [129] main::$43 = kbhit::return#3
  [130] if(0==main::$43) goto main::@4
  to:main::@5
main::@5: scope:[main]  from main::@35
  [131] phi()
  [132] call screenlayer
  to:main::textcolor5
main::textcolor5: scope:[main]  from main::@5
  [133] vera_layer_set_textcolor::layer#5 = conio_screen_layer
  [134] call vera_layer_set_textcolor
  to:main::bgcolor3
main::bgcolor3: scope:[main]  from main::textcolor5
  [135] vera_layer_set_backcolor::layer#3 = conio_screen_layer
  [136] call vera_layer_set_backcolor
  to:main::@11
main::@11: scope:[main]  from main::bgcolor3
  [137] phi()
  [138] call clrscr
  to:main::@return
main::@return: scope:[main]  from main::@11
  [139] return 
  to:@return
main::@4: scope:[main]  from main::@35
  [140] bitmap_line::x0#1 = main::x#3
  [141] bitmap_line::x1#1 = main::x#3
  [142] bitmap_line::c#1 = main::color#2
  [143] call bitmap_line
  to:main::@36
main::@36: scope:[main]  from main::@4
  [144] main::color#1 = ++ main::color#2
  [145] main::x#1 = ++ main::x#3
  [146] if(main::x#1<=$13f) goto main::@37
  to:main::@3
main::@37: scope:[main]  from main::@36
  [147] phi()
  to:main::@3
main::@2: scope:[main]  from main::@22
  [148] phi()
  [149] call rand
  [150] rand::return#2 = rand::return#0
  to:main::@23
main::@23: scope:[main]  from main::@2
  [151] modr16u::dividend#0 = rand::return#2
  [152] call modr16u
  [153] modr16u::return#2 = modr16u::return#0
  to:main::@24
main::@24: scope:[main]  from main::@23
  [154] bitmap_line::x0#0 = modr16u::return#2
  [155] call rand
  [156] rand::return#3 = rand::return#0
  to:main::@25
main::@25: scope:[main]  from main::@24
  [157] modr16u::dividend#1 = rand::return#3
  [158] call modr16u
  [159] modr16u::return#3 = modr16u::return#0
  to:main::@26
main::@26: scope:[main]  from main::@25
  [160] bitmap_line::x1#0 = modr16u::return#3
  [161] call rand
  [162] rand::return#10 = rand::return#0
  to:main::@27
main::@27: scope:[main]  from main::@26
  [163] modr16u::dividend#2 = rand::return#10
  [164] call modr16u
  [165] modr16u::return#4 = modr16u::return#0
  to:main::@28
main::@28: scope:[main]  from main::@27
  [166] bitmap_line::y0#0 = modr16u::return#4
  [167] call rand
  [168] rand::return#11 = rand::return#0
  to:main::@29
main::@29: scope:[main]  from main::@28
  [169] modr16u::dividend#3 = rand::return#11
  [170] call modr16u
  [171] modr16u::return#10 = modr16u::return#0
  to:main::@30
main::@30: scope:[main]  from main::@29
  [172] bitmap_line::y1#0 = modr16u::return#10
  [173] call rand
  [174] rand::return#12 = rand::return#0
  to:main::@31
main::@31: scope:[main]  from main::@30
  [175] main::$40 = rand::return#12
  [176] bitmap_line::c#0 = main::$40 & $ff
  [177] call bitmap_line
  to:main::@1

void vera_layer_mode_text(char layer , unsigned long mapbase_address , unsigned long tilebase_address , unsigned int mapwidth , unsigned int mapheight , char tilewidth , char tileheight , unsigned int color_mode)
vera_layer_mode_text: scope:[vera_layer_mode_text]  from conio_x16_init
  [178] phi()
  [179] call vera_layer_mode_tile
  to:vera_layer_mode_text::@1
vera_layer_mode_text::@1: scope:[vera_layer_mode_text]  from vera_layer_mode_text
  [180] phi()
  [181] call vera_layer_set_text_color_mode
  to:vera_layer_mode_text::@return
vera_layer_mode_text::@return: scope:[vera_layer_mode_text]  from vera_layer_mode_text::@1
  [182] return 
  to:@return

void screensize(char *x , char *y)
screensize: scope:[screensize]  from conio_x16_init::@3
  [183] screensize::hscale#0 = *VERA_DC_HSCALE >> 7
  [184] screensize::$1 = $28 << screensize::hscale#0
  [185] *screensize::x#0 = screensize::$1
  [186] screensize::vscale#0 = *VERA_DC_VSCALE >> 7
  [187] screensize::$3 = $1e << screensize::vscale#0
  [188] *screensize::y#0 = screensize::$3
  to:screensize::@return
screensize::@return: scope:[screensize]  from screensize
  [189] return 
  to:@return

void screenlayer(char layer)
screenlayer: scope:[screenlayer]  from conio_x16_init::@4 main::@14 main::@5
  [190] conio_screen_layer = 1
  [191] vera_layer_get_mapbase_bank::layer#0 = conio_screen_layer
  [192] call vera_layer_get_mapbase_bank
  [193] vera_layer_get_mapbase_bank::return#2 = vera_layer_get_mapbase_bank::return#0
  to:screenlayer::@3
screenlayer::@3: scope:[screenlayer]  from screenlayer
  [194] CONIO_SCREEN_BANK#15 = vera_layer_get_mapbase_bank::return#2
  [195] vera_layer_get_mapbase_offset::layer#0 = conio_screen_layer
  [196] call vera_layer_get_mapbase_offset
  [197] vera_layer_get_mapbase_offset::return#2 = vera_layer_get_mapbase_offset::return#0
  to:screenlayer::@4
screenlayer::@4: scope:[screenlayer]  from screenlayer::@3
  [198] CONIO_SCREEN_TEXT#17 = vera_layer_get_mapbase_offset::return#2
  [199] screenlayer::vera_layer_get_width1_layer#0 = conio_screen_layer
  to:screenlayer::vera_layer_get_width1
screenlayer::vera_layer_get_width1: scope:[screenlayer]  from screenlayer::@4
  [200] screenlayer::vera_layer_get_width1_$2 = screenlayer::vera_layer_get_width1_layer#0 << 1
  [201] screenlayer::vera_layer_get_width1_config#0 = vera_layer_config[screenlayer::vera_layer_get_width1_$2]
  [202] screenlayer::vera_layer_get_width1_$0 = *screenlayer::vera_layer_get_width1_config#0 & VERA_LAYER_WIDTH_MASK
  [203] screenlayer::vera_layer_get_width1_$1 = screenlayer::vera_layer_get_width1_$0 >> 4
  [204] screenlayer::vera_layer_get_width1_$3 = screenlayer::vera_layer_get_width1_$1 << 1
  [205] screenlayer::vera_layer_get_width1_return#0 = VERA_LAYER_WIDTH[screenlayer::vera_layer_get_width1_$3]
  to:screenlayer::vera_layer_get_width1_@return
screenlayer::vera_layer_get_width1_@return: scope:[screenlayer]  from screenlayer::vera_layer_get_width1
  [206] screenlayer::vera_layer_get_width1_return#1 = screenlayer::vera_layer_get_width1_return#0
  to:screenlayer::@1
screenlayer::@1: scope:[screenlayer]  from screenlayer::vera_layer_get_width1_@return
  [207] screenlayer::$2 = screenlayer::vera_layer_get_width1_return#1
  [208] conio_width = screenlayer::$2
  [209] vera_layer_get_rowshift::layer#0 = conio_screen_layer
  [210] call vera_layer_get_rowshift
  [211] vera_layer_get_rowshift::return#2 = vera_layer_get_rowshift::return#0
  to:screenlayer::@5
screenlayer::@5: scope:[screenlayer]  from screenlayer::@1
  [212] screenlayer::$3 = vera_layer_get_rowshift::return#2
  [213] conio_rowshift = screenlayer::$3
  [214] vera_layer_get_rowskip::layer#0 = conio_screen_layer
  [215] call vera_layer_get_rowskip
  [216] vera_layer_get_rowskip::return#2 = vera_layer_get_rowskip::return#0
  to:screenlayer::@6
screenlayer::@6: scope:[screenlayer]  from screenlayer::@5
  [217] screenlayer::$4 = vera_layer_get_rowskip::return#2
  [218] conio_rowskip = screenlayer::$4
  [219] screenlayer::vera_layer_get_height1_layer#0 = conio_screen_layer
  to:screenlayer::vera_layer_get_height1
screenlayer::vera_layer_get_height1: scope:[screenlayer]  from screenlayer::@6
  [220] screenlayer::vera_layer_get_height1_$2 = screenlayer::vera_layer_get_height1_layer#0 << 1
  [221] screenlayer::vera_layer_get_height1_config#0 = vera_layer_config[screenlayer::vera_layer_get_height1_$2]
  [222] screenlayer::vera_layer_get_height1_$0 = *screenlayer::vera_layer_get_height1_config#0 & VERA_LAYER_HEIGHT_MASK
  [223] screenlayer::vera_layer_get_height1_$1 = screenlayer::vera_layer_get_height1_$0 >> 6
  [224] screenlayer::vera_layer_get_height1_$3 = screenlayer::vera_layer_get_height1_$1 << 1
  [225] screenlayer::vera_layer_get_height1_return#0 = VERA_LAYER_HEIGHT[screenlayer::vera_layer_get_height1_$3]
  to:screenlayer::vera_layer_get_height1_@return
screenlayer::vera_layer_get_height1_@return: scope:[screenlayer]  from screenlayer::vera_layer_get_height1
  [226] screenlayer::vera_layer_get_height1_return#1 = screenlayer::vera_layer_get_height1_return#0
  to:screenlayer::@2
screenlayer::@2: scope:[screenlayer]  from screenlayer::vera_layer_get_height1_@return
  [227] screenlayer::$5 = screenlayer::vera_layer_get_height1_return#1
  [228] conio_height = screenlayer::$5
  to:screenlayer::@return
screenlayer::@return: scope:[screenlayer]  from screenlayer::@2
  [229] return 
  to:@return

char vera_layer_set_textcolor(char layer , char color)
vera_layer_set_textcolor: scope:[vera_layer_set_textcolor]  from conio_x16_init::@5 main::textcolor1 main::textcolor2 main::textcolor3 main::textcolor4 main::textcolor5
  [230] vera_layer_set_textcolor::color#6 = phi( conio_x16_init::@5/WHITE, main::textcolor1/WHITE, main::textcolor2/YELLOW, main::textcolor3/WHITE, main::textcolor4/YELLOW, main::textcolor5/WHITE )
  [230] vera_layer_set_textcolor::layer#6 = phi( conio_x16_init::@5/1, main::textcolor1/vera_layer_set_textcolor::layer#1, main::textcolor2/vera_layer_set_textcolor::layer#2, main::textcolor3/vera_layer_set_textcolor::layer#3, main::textcolor4/vera_layer_set_textcolor::layer#4, main::textcolor5/vera_layer_set_textcolor::layer#5 )
  [231] vera_layer_textcolor[vera_layer_set_textcolor::layer#6] = vera_layer_set_textcolor::color#6
  to:vera_layer_set_textcolor::@return
vera_layer_set_textcolor::@return: scope:[vera_layer_set_textcolor]  from vera_layer_set_textcolor
  [232] return 
  to:@return

char vera_layer_set_backcolor(char layer , char color)
vera_layer_set_backcolor: scope:[vera_layer_set_backcolor]  from conio_x16_init::@6 main::bgcolor1 main::bgcolor2 main::bgcolor3
  [233] vera_layer_set_backcolor::color#4 = phi( conio_x16_init::@6/BLUE, main::bgcolor1/BLACK, main::bgcolor2/BLACK, main::bgcolor3/BLUE )
  [233] vera_layer_set_backcolor::layer#4 = phi( conio_x16_init::@6/1, main::bgcolor1/vera_layer_set_backcolor::layer#1, main::bgcolor2/vera_layer_set_backcolor::layer#2, main::bgcolor3/vera_layer_set_backcolor::layer#3 )
  [234] vera_layer_backcolor[vera_layer_set_backcolor::layer#4] = vera_layer_set_backcolor::color#4
  to:vera_layer_set_backcolor::@return
vera_layer_set_backcolor::@return: scope:[vera_layer_set_backcolor]  from vera_layer_set_backcolor
  [235] return 
  to:@return

void vera_layer_set_mapbase(char layer , char mapbase)
vera_layer_set_mapbase: scope:[vera_layer_set_mapbase]  from conio_x16_init::@7 conio_x16_init::@8 vera_layer_mode_tile::@23
  [236] vera_layer_set_mapbase::mapbase#3 = phi( conio_x16_init::@7/$20, conio_x16_init::@8/0, vera_layer_mode_tile::@23/vera_layer_set_mapbase::mapbase#0 )
  [236] vera_layer_set_mapbase::layer#3 = phi( conio_x16_init::@7/0, conio_x16_init::@8/1, vera_layer_mode_tile::@23/vera_layer_set_mapbase::layer#0 )
  [237] vera_layer_set_mapbase::$0 = vera_layer_set_mapbase::layer#3 << 1
  [238] vera_layer_set_mapbase::addr#0 = vera_layer_mapbase[vera_layer_set_mapbase::$0]
  [239] *vera_layer_set_mapbase::addr#0 = vera_layer_set_mapbase::mapbase#3
  to:vera_layer_set_mapbase::@return
vera_layer_set_mapbase::@return: scope:[vera_layer_set_mapbase]  from vera_layer_set_mapbase
  [240] return 
  to:@return

void gotoxy(char x , char y)
gotoxy: scope:[gotoxy]  from conio_x16_init::@1 cscroll::@5 main::@15 main::@21 main::@32 main::@34
  [241] gotoxy::y#7 = phi( conio_x16_init::@1/gotoxy::y#1, cscroll::@5/gotoxy::y#2, main::@15/$19, main::@21/$1d, main::@32/$1a, main::@34/$1d )
  [242] if(gotoxy::y#7<=conio_screen_height) goto gotoxy::@4
  to:gotoxy::@1
gotoxy::@4: scope:[gotoxy]  from gotoxy
  [243] phi()
  to:gotoxy::@1
gotoxy::@1: scope:[gotoxy]  from gotoxy gotoxy::@4
  [244] gotoxy::y#10 = phi( gotoxy::@4/gotoxy::y#7, gotoxy/0 )
  [245] if(0<conio_screen_width) goto gotoxy::@2
  to:gotoxy::@3
gotoxy::@3: scope:[gotoxy]  from gotoxy::@1
  [246] phi()
  to:gotoxy::@2
gotoxy::@2: scope:[gotoxy]  from gotoxy::@1 gotoxy::@3
  [247] conio_cursor_x[conio_screen_layer] = 0
  [248] conio_cursor_y[conio_screen_layer] = gotoxy::y#10
  [249] gotoxy::$6 = (unsigned int)gotoxy::y#10
  [250] gotoxy::line_offset#0 = gotoxy::$6 << conio_rowshift
  [251] gotoxy::$5 = conio_screen_layer << 1
  [252] conio_line_text[gotoxy::$5] = gotoxy::line_offset#0
  to:gotoxy::@return
gotoxy::@return: scope:[gotoxy]  from gotoxy::@2
  [253] return 
  to:@return

char vera_layer_get_color(char layer)
vera_layer_get_color: scope:[vera_layer_get_color]  from clearline cputc
  [254] vera_layer_get_color::layer#2 = phi( clearline/vera_layer_get_color::layer#1, cputc/vera_layer_get_color::layer#0 )
  [255] vera_layer_get_color::$3 = vera_layer_get_color::layer#2 << 1
  [256] vera_layer_get_color::addr#0 = vera_layer_config[vera_layer_get_color::$3]
  [257] vera_layer_get_color::$0 = *vera_layer_get_color::addr#0 & VERA_LAYER_CONFIG_256C
  [258] if(0!=vera_layer_get_color::$0) goto vera_layer_get_color::@1
  to:vera_layer_get_color::@2
vera_layer_get_color::@2: scope:[vera_layer_get_color]  from vera_layer_get_color
  [259] vera_layer_get_color::$1 = vera_layer_backcolor[vera_layer_get_color::layer#2] << 4
  [260] vera_layer_get_color::return#2 = vera_layer_get_color::$1 | vera_layer_textcolor[vera_layer_get_color::layer#2]
  to:vera_layer_get_color::@return
vera_layer_get_color::@return: scope:[vera_layer_get_color]  from vera_layer_get_color::@1 vera_layer_get_color::@2
  [261] vera_layer_get_color::return#3 = phi( vera_layer_get_color::@1/vera_layer_get_color::return#1, vera_layer_get_color::@2/vera_layer_get_color::return#2 )
  [262] return 
  to:@return
vera_layer_get_color::@1: scope:[vera_layer_get_color]  from vera_layer_get_color
  [263] vera_layer_get_color::return#1 = vera_layer_textcolor[vera_layer_get_color::layer#2]
  to:vera_layer_get_color::@return

void cputln()
cputln: scope:[cputln]  from cputc::@1 cputc::@4 cputc::@6
  [264] cputln::$2 = conio_screen_layer << 1
  [265] cputln::temp#0 = conio_line_text[cputln::$2]
  [266] cputln::temp#1 = cputln::temp#0 + conio_rowskip
  [267] cputln::$3 = conio_screen_layer << 1
  [268] conio_line_text[cputln::$3] = cputln::temp#1
  [269] conio_cursor_x[conio_screen_layer] = 0
  [270] conio_cursor_y[conio_screen_layer] = ++ conio_cursor_y[conio_screen_layer]
  [271] call cscroll
  to:cputln::@return
cputln::@return: scope:[cputln]  from cputln
  [272] return 
  to:@return

void memcpy_in_vram(char dest_bank , void *dest , char dest_increment , char src_bank , void *src , char src_increment , unsigned int num)
memcpy_in_vram: scope:[memcpy_in_vram]  from insertup::@2 main
  [273] memcpy_in_vram::num#3 = phi( insertup::@2/memcpy_in_vram::num#0, main/$100*8 )
  [273] memcpy_in_vram::dest_bank#2 = phi( insertup::@2/0, main/1 )
  [273] memcpy_in_vram::dest#2 = phi( insertup::@2/memcpy_in_vram::dest#0, main/(void *)(char *) 61440 )
  [273] memcpy_in_vram::src#2 = phi( insertup::@2/memcpy_in_vram::src#3, main/(void *)(char *) 63488 )
  [274] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL
  [275] memcpy_in_vram::$0 = byte0  memcpy_in_vram::src#2
  [276] *VERA_ADDRX_L = memcpy_in_vram::$0
  [277] memcpy_in_vram::$1 = byte1  memcpy_in_vram::src#2
  [278] *VERA_ADDRX_M = memcpy_in_vram::$1
  [279] *VERA_ADDRX_H = VERA_INC_1
  [280] *VERA_CTRL = *VERA_CTRL | VERA_ADDRSEL
  [281] memcpy_in_vram::$3 = byte0  memcpy_in_vram::dest#2
  [282] *VERA_ADDRX_L = memcpy_in_vram::$3
  [283] memcpy_in_vram::$4 = byte1  memcpy_in_vram::dest#2
  [284] *VERA_ADDRX_M = memcpy_in_vram::$4
  [285] memcpy_in_vram::$5 = VERA_INC_1 | memcpy_in_vram::dest_bank#2
  [286] *VERA_ADDRX_H = memcpy_in_vram::$5
  to:memcpy_in_vram::@1
memcpy_in_vram::@1: scope:[memcpy_in_vram]  from memcpy_in_vram memcpy_in_vram::@2
  [287] memcpy_in_vram::i#2 = phi( memcpy_in_vram/0, memcpy_in_vram::@2/memcpy_in_vram::i#1 )
  [288] if(memcpy_in_vram::i#2<memcpy_in_vram::num#3) goto memcpy_in_vram::@2
  to:memcpy_in_vram::@return
memcpy_in_vram::@return: scope:[memcpy_in_vram]  from memcpy_in_vram::@1
  [289] return 
  to:@return
memcpy_in_vram::@2: scope:[memcpy_in_vram]  from memcpy_in_vram::@1
  [290] *VERA_DATA1 = *VERA_DATA0
  [291] memcpy_in_vram::i#1 = ++ memcpy_in_vram::i#2
  to:memcpy_in_vram::@1

void vera_layer_mode_tile(char layer , unsigned long mapbase_address , unsigned long tilebase_address , unsigned int mapwidth , unsigned int mapheight , char tilewidth , char tileheight , char color_depth)
vera_layer_mode_tile: scope:[vera_layer_mode_tile]  from main::@12 vera_layer_mode_text
  [292] vera_layer_mode_tile::tileheight#10 = phi( main::@12/8, vera_layer_mode_text/vera_layer_mode_text::tileheight#0 )
  [292] vera_layer_mode_tile::tilewidth#10 = phi( main::@12/8, vera_layer_mode_text/vera_layer_mode_text::tilewidth#0 )
  [292] vera_layer_mode_tile::tilebase_address#10 = phi( main::@12/$1f000, vera_layer_mode_text/vera_layer_mode_text::tilebase_address#0 )
  [292] vera_layer_mode_tile::mapbase_address#10 = phi( main::@12/$14000, vera_layer_mode_text/vera_layer_mode_text::mapbase_address#0 )
  [292] vera_layer_mode_tile::mapheight#10 = phi( main::@12/$40, vera_layer_mode_text/vera_layer_mode_text::mapheight#0 )
  [292] vera_layer_mode_tile::layer#10 = phi( main::@12/1, vera_layer_mode_text/vera_layer_mode_text::layer#0 )
  [292] vera_layer_mode_tile::mapwidth#10 = phi( main::@12/$80, vera_layer_mode_text/vera_layer_mode_text::mapwidth#0 )
  to:vera_layer_mode_tile::@1
vera_layer_mode_tile::@1: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile
  [293] if(vera_layer_mode_tile::mapwidth#10==$20) goto vera_layer_mode_tile::@5
  to:vera_layer_mode_tile::@2
vera_layer_mode_tile::@2: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@1
  [294] if(vera_layer_mode_tile::mapwidth#10==$40) goto vera_layer_mode_tile::@6
  to:vera_layer_mode_tile::@3
vera_layer_mode_tile::@3: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@2
  [295] if(vera_layer_mode_tile::mapwidth#10==$80) goto vera_layer_mode_tile::@7
  to:vera_layer_mode_tile::@4
vera_layer_mode_tile::@4: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@3
  [296] if(vera_layer_mode_tile::mapwidth#10!=$100) goto vera_layer_mode_tile::@9
  to:vera_layer_mode_tile::@8
vera_layer_mode_tile::@8: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@4
  [297] vera_layer_rowshift[vera_layer_mode_tile::layer#10] = 9
  [298] vera_layer_mode_tile::$14 = vera_layer_mode_tile::layer#10 << 1
  [299] vera_layer_rowskip[vera_layer_mode_tile::$14] = $200
  to:vera_layer_mode_tile::@9
vera_layer_mode_tile::@9: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@4 vera_layer_mode_tile::@5 vera_layer_mode_tile::@6 vera_layer_mode_tile::@7 vera_layer_mode_tile::@8
  [300] vera_layer_mode_tile::config#21 = phi( vera_layer_mode_tile::@4/VERA_LAYER_COLOR_DEPTH_1BPP, vera_layer_mode_tile::@5/VERA_LAYER_COLOR_DEPTH_1BPP, vera_layer_mode_tile::@6/VERA_LAYER_WIDTH_64, vera_layer_mode_tile::@7/VERA_LAYER_WIDTH_128, vera_layer_mode_tile::@8/VERA_LAYER_WIDTH_256 )
  [301] if(vera_layer_mode_tile::mapheight#10==$20) goto vera_layer_mode_tile::@16
  to:vera_layer_mode_tile::@10
vera_layer_mode_tile::@10: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@9
  [302] if(vera_layer_mode_tile::mapheight#10==$40) goto vera_layer_mode_tile::@13
  to:vera_layer_mode_tile::@11
vera_layer_mode_tile::@11: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@10
  [303] if(vera_layer_mode_tile::mapheight#10==$80) goto vera_layer_mode_tile::@14
  to:vera_layer_mode_tile::@12
vera_layer_mode_tile::@12: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@11
  [304] if(vera_layer_mode_tile::mapheight#10!=$100) goto vera_layer_mode_tile::@16
  to:vera_layer_mode_tile::@15
vera_layer_mode_tile::@15: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@12
  [305] vera_layer_mode_tile::config#12 = vera_layer_mode_tile::config#21 | VERA_LAYER_HEIGHT_256
  to:vera_layer_mode_tile::@16
vera_layer_mode_tile::@16: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@12 vera_layer_mode_tile::@13 vera_layer_mode_tile::@14 vera_layer_mode_tile::@15 vera_layer_mode_tile::@9
  [306] vera_layer_mode_tile::config#25 = phi( vera_layer_mode_tile::@12/vera_layer_mode_tile::config#21, vera_layer_mode_tile::@9/vera_layer_mode_tile::config#21, vera_layer_mode_tile::@13/vera_layer_mode_tile::config#10, vera_layer_mode_tile::@14/vera_layer_mode_tile::config#11, vera_layer_mode_tile::@15/vera_layer_mode_tile::config#12 )
  [307] vera_layer_set_config::layer#0 = vera_layer_mode_tile::layer#10
  [308] vera_layer_set_config::config#0 = vera_layer_mode_tile::config#25
  [309] call vera_layer_set_config
  to:vera_layer_mode_tile::@23
vera_layer_mode_tile::@23: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@16
  [310] vera_layer_mode_tile::$1 = word0  vera_layer_mode_tile::mapbase_address#10
  [311] vera_layer_mode_tile::$17 = vera_layer_mode_tile::layer#10 << 1
  [312] vera_mapbase_offset[vera_layer_mode_tile::$17] = vera_layer_mode_tile::$1
  [313] vera_layer_mode_tile::$2 = byte2  vera_layer_mode_tile::mapbase_address#10
  [314] vera_mapbase_bank[vera_layer_mode_tile::layer#10] = vera_layer_mode_tile::$2
  [315] vera_layer_mode_tile::$18 = vera_layer_mode_tile::layer#10 << 2
  [316] vera_mapbase_address[vera_layer_mode_tile::$18] = vera_layer_mode_tile::mapbase_address#10
  [317] vera_layer_mode_tile::mapbase_address#0 = vera_layer_mode_tile::mapbase_address#10 >> 1
  [318] vera_layer_mode_tile::mapbase#0 = byte1  vera_layer_mode_tile::mapbase_address#0
  [319] vera_layer_set_mapbase::layer#0 = vera_layer_mode_tile::layer#10
  [320] vera_layer_set_mapbase::mapbase#0 = vera_layer_mode_tile::mapbase#0
  [321] call vera_layer_set_mapbase
  to:vera_layer_mode_tile::@24
vera_layer_mode_tile::@24: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@23
  [322] vera_layer_mode_tile::$6 = word0  vera_layer_mode_tile::tilebase_address#10
  [323] vera_tilebase_offset[vera_layer_mode_tile::$17] = vera_layer_mode_tile::$6
  [324] vera_layer_mode_tile::$7 = byte2  vera_layer_mode_tile::tilebase_address#10
  [325] vera_tilebase_bank[vera_layer_mode_tile::layer#10] = vera_layer_mode_tile::$7
  [326] vera_tilebase_address[vera_layer_mode_tile::$18] = vera_layer_mode_tile::tilebase_address#10
  [327] vera_layer_mode_tile::tilebase_address#0 = vera_layer_mode_tile::tilebase_address#10 >> 1
  [328] vera_layer_mode_tile::tilebase#0 = byte1  vera_layer_mode_tile::tilebase_address#0
  [329] vera_layer_mode_tile::tilebase#1 = vera_layer_mode_tile::tilebase#0 & VERA_LAYER_TILEBASE_MASK
  [330] if(vera_layer_mode_tile::tilewidth#10==8) goto vera_layer_mode_tile::@19
  to:vera_layer_mode_tile::@17
vera_layer_mode_tile::@17: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@24
  [331] if(vera_layer_mode_tile::tilewidth#10!=$10) goto vera_layer_mode_tile::@19
  to:vera_layer_mode_tile::@18
vera_layer_mode_tile::@18: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@17
  [332] vera_layer_mode_tile::tilebase#3 = vera_layer_mode_tile::tilebase#1 | VERA_TILEBASE_WIDTH_16
  to:vera_layer_mode_tile::@19
vera_layer_mode_tile::@19: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@17 vera_layer_mode_tile::@18 vera_layer_mode_tile::@24
  [333] vera_layer_mode_tile::tilebase#12 = phi( vera_layer_mode_tile::@17/vera_layer_mode_tile::tilebase#1, vera_layer_mode_tile::@24/vera_layer_mode_tile::tilebase#1, vera_layer_mode_tile::@18/vera_layer_mode_tile::tilebase#3 )
  [334] if(vera_layer_mode_tile::tileheight#10==8) goto vera_layer_mode_tile::@22
  to:vera_layer_mode_tile::@20
vera_layer_mode_tile::@20: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@19
  [335] if(vera_layer_mode_tile::tileheight#10!=$10) goto vera_layer_mode_tile::@22
  to:vera_layer_mode_tile::@21
vera_layer_mode_tile::@21: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@20
  [336] vera_layer_mode_tile::tilebase#5 = vera_layer_mode_tile::tilebase#12 | VERA_TILEBASE_HEIGHT_16
  to:vera_layer_mode_tile::@22
vera_layer_mode_tile::@22: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@19 vera_layer_mode_tile::@20 vera_layer_mode_tile::@21
  [337] vera_layer_mode_tile::tilebase#10 = phi( vera_layer_mode_tile::@20/vera_layer_mode_tile::tilebase#12, vera_layer_mode_tile::@19/vera_layer_mode_tile::tilebase#12, vera_layer_mode_tile::@21/vera_layer_mode_tile::tilebase#5 )
  [338] vera_layer_set_tilebase::layer#0 = vera_layer_mode_tile::layer#10
  [339] vera_layer_set_tilebase::tilebase#0 = vera_layer_mode_tile::tilebase#10
  [340] call vera_layer_set_tilebase
  to:vera_layer_mode_tile::@return
vera_layer_mode_tile::@return: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@22
  [341] return 
  to:@return
vera_layer_mode_tile::@14: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@11
  [342] vera_layer_mode_tile::config#11 = vera_layer_mode_tile::config#21 | VERA_LAYER_HEIGHT_128
  to:vera_layer_mode_tile::@16
vera_layer_mode_tile::@13: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@10
  [343] vera_layer_mode_tile::config#10 = vera_layer_mode_tile::config#21 | VERA_LAYER_HEIGHT_64
  to:vera_layer_mode_tile::@16
vera_layer_mode_tile::@7: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@3
  [344] vera_layer_rowshift[vera_layer_mode_tile::layer#10] = 8
  [345] vera_layer_mode_tile::$13 = vera_layer_mode_tile::layer#10 << 1
  [346] vera_layer_rowskip[vera_layer_mode_tile::$13] = $100
  to:vera_layer_mode_tile::@9
vera_layer_mode_tile::@6: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@2
  [347] vera_layer_rowshift[vera_layer_mode_tile::layer#10] = 7
  [348] vera_layer_mode_tile::$12 = vera_layer_mode_tile::layer#10 << 1
  [349] vera_layer_rowskip[vera_layer_mode_tile::$12] = $80
  to:vera_layer_mode_tile::@9
vera_layer_mode_tile::@5: scope:[vera_layer_mode_tile]  from vera_layer_mode_tile::@1
  [350] vera_layer_rowshift[vera_layer_mode_tile::layer#10] = 6
  [351] vera_layer_mode_tile::$11 = vera_layer_mode_tile::layer#10 << 1
  [352] vera_layer_rowskip[vera_layer_mode_tile::$11] = $40
  to:vera_layer_mode_tile::@9

void vera_layer_mode_bitmap(char layer , unsigned long bitmap_address , unsigned int mapwidth , unsigned int color_depth)
vera_layer_mode_bitmap: scope:[vera_layer_mode_bitmap]  from main::@13
  [353] phi()
  to:vera_layer_mode_bitmap::@1
vera_layer_mode_bitmap::@1: scope:[vera_layer_mode_bitmap]  from vera_layer_mode_bitmap
  [354] *vera_tilebase_offset = 0
  [355] *vera_tilebase_bank = 0
  [356] *vera_tilebase_address = vera_layer_mode_bitmap::bitmap_address#1
  to:vera_layer_mode_bitmap::vera_display_set_scale_double1
vera_layer_mode_bitmap::vera_display_set_scale_double1: scope:[vera_layer_mode_bitmap]  from vera_layer_mode_bitmap::@1
  [357] *VERA_DC_HSCALE = $40
  [358] *VERA_DC_VSCALE = $40
  to:vera_layer_mode_bitmap::@2
vera_layer_mode_bitmap::@2: scope:[vera_layer_mode_bitmap]  from vera_layer_mode_bitmap::vera_display_set_scale_double1
  [359] phi()
  [360] call vera_layer_set_config
  to:vera_layer_mode_bitmap::@3
vera_layer_mode_bitmap::@3: scope:[vera_layer_mode_bitmap]  from vera_layer_mode_bitmap::@2
  [361] phi()
  [362] call vera_layer_set_tilebase
  to:vera_layer_mode_bitmap::@return
vera_layer_mode_bitmap::@return: scope:[vera_layer_mode_bitmap]  from vera_layer_mode_bitmap::@3
  [363] return 
  to:@return

void clrscr()
clrscr: scope:[clrscr]  from main::@11 main::@6 main::@9
  [364] clrscr::line_text#0 = (char *)CONIO_SCREEN_TEXT#17
  [365] vera_layer_get_backcolor::layer#0 = conio_screen_layer
  [366] call vera_layer_get_backcolor
  [367] vera_layer_get_backcolor::return#0 = vera_layer_get_backcolor::return#1
  to:clrscr::@7
clrscr::@7: scope:[clrscr]  from clrscr
  [368] clrscr::$0 = vera_layer_get_backcolor::return#0
  [369] clrscr::$1 = clrscr::$0 << 4
  [370] vera_layer_get_textcolor::layer#0 = conio_screen_layer
  [371] call vera_layer_get_textcolor
  [372] vera_layer_get_textcolor::return#0 = vera_layer_get_textcolor::return#1
  to:clrscr::@8
clrscr::@8: scope:[clrscr]  from clrscr::@7
  [373] clrscr::$2 = vera_layer_get_textcolor::return#0
  [374] clrscr::color#0 = clrscr::$1 | clrscr::$2
  to:clrscr::@1
clrscr::@1: scope:[clrscr]  from clrscr::@6 clrscr::@8
  [375] clrscr::line_text#2 = phi( clrscr::@6/clrscr::line_text#1, clrscr::@8/clrscr::line_text#0 )
  [375] clrscr::l#2 = phi( clrscr::@6/clrscr::l#1, clrscr::@8/0 )
  [376] if(clrscr::l#2<conio_height) goto clrscr::@2
  to:clrscr::@3
clrscr::@3: scope:[clrscr]  from clrscr::@1
  [377] conio_cursor_x[conio_screen_layer] = 0
  [378] conio_cursor_y[conio_screen_layer] = 0
  [379] clrscr::$9 = conio_screen_layer << 1
  [380] conio_line_text[clrscr::$9] = 0
  to:clrscr::@return
clrscr::@return: scope:[clrscr]  from clrscr::@3
  [381] return 
  to:@return
clrscr::@2: scope:[clrscr]  from clrscr::@1
  [382] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL
  [383] clrscr::$5 = byte0  clrscr::line_text#2
  [384] *VERA_ADDRX_L = clrscr::$5
  [385] clrscr::$6 = byte1  clrscr::line_text#2
  [386] *VERA_ADDRX_M = clrscr::$6
  [387] clrscr::$7 = CONIO_SCREEN_BANK#15 | VERA_INC_1
  [388] *VERA_ADDRX_H = clrscr::$7
  to:clrscr::@4
clrscr::@4: scope:[clrscr]  from clrscr::@2 clrscr::@5
  [389] clrscr::c#2 = phi( clrscr::@2/0, clrscr::@5/clrscr::c#1 )
  [390] if(clrscr::c#2<conio_width) goto clrscr::@5
  to:clrscr::@6
clrscr::@6: scope:[clrscr]  from clrscr::@4
  [391] clrscr::line_text#1 = clrscr::line_text#2 + conio_rowskip
  [392] clrscr::l#1 = ++ clrscr::l#2
  to:clrscr::@1
clrscr::@5: scope:[clrscr]  from clrscr::@4
  [393] *VERA_DATA0 = ' '
  [394] *VERA_DATA0 = clrscr::color#0
  [395] clrscr::c#1 = ++ clrscr::c#2
  to:clrscr::@4

void printf_str(void (*putc)(char) , const char *s)
printf_str: scope:[printf_str]  from main::@10 main::@16 main::@17 main::@18 main::@19 main::@33 main::@8
  [396] printf_str::s#9 = phi( main::@8/main::s4, main::@10/main::s4, main::@16/main::s, main::@17/main::s1, main::@18/main::s2, main::@19/main::s3, main::@33/main::s5 )
  to:printf_str::@1
printf_str::@1: scope:[printf_str]  from printf_str printf_str::@2
  [397] printf_str::s#8 = phi( printf_str/printf_str::s#9, printf_str::@2/printf_str::s#0 )
  [398] printf_str::c#1 = *printf_str::s#8
  [399] printf_str::s#0 = ++ printf_str::s#8
  [400] if(0!=printf_str::c#1) goto printf_str::@2
  to:printf_str::@return
printf_str::@return: scope:[printf_str]  from printf_str::@1
  [401] return 
  to:@return
printf_str::@2: scope:[printf_str]  from printf_str::@1
  [402] stackpush(char) = printf_str::c#1
  [403] callexecute cputc 
  sideeffect stackpullbytes(1)
  to:printf_str::@1

void bitmap_init(char layer , unsigned long address)
bitmap_init: scope:[bitmap_init]  from main::@7
  [405] __bitmap_address = bitmap_init::address#0
  [406] __bitmap_layer = bitmap_init::layer#0
  [407] bitmap_init::vera_layer_get_color_depth1_layer#0 = __bitmap_layer
  to:bitmap_init::vera_layer_get_color_depth1
bitmap_init::vera_layer_get_color_depth1: scope:[bitmap_init]  from bitmap_init
  [408] bitmap_init::vera_layer_get_color_depth1_$1 = bitmap_init::vera_layer_get_color_depth1_layer#0 << 1
  [409] bitmap_init::vera_layer_get_color_depth1_config#0 = vera_layer_config[bitmap_init::vera_layer_get_color_depth1_$1]
  [410] bitmap_init::vera_layer_get_color_depth1_$0 = *bitmap_init::vera_layer_get_color_depth1_config#0 & VERA_LAYER_COLOR_DEPTH_MASK
  [411] bitmap_init::vera_layer_get_color_depth1_return#0 = bitmap_init::vera_layer_get_color_depth1_$0
  to:bitmap_init::vera_layer_get_color_depth1_@return
bitmap_init::vera_layer_get_color_depth1_@return: scope:[bitmap_init]  from bitmap_init::vera_layer_get_color_depth1
  [412] bitmap_init::vera_layer_get_color_depth1_return#1 = bitmap_init::vera_layer_get_color_depth1_return#0
  to:bitmap_init::@16
bitmap_init::@16: scope:[bitmap_init]  from bitmap_init::vera_layer_get_color_depth1_@return
  [413] bitmap_init::$0 = bitmap_init::vera_layer_get_color_depth1_return#1
  [414] __bitmap_color_depth = bitmap_init::$0
  [415] call vera_display_get_hscale
  [416] vera_display_get_hscale::return#2 = vera_display_get_hscale::return#0
  to:bitmap_init::@17
bitmap_init::@17: scope:[bitmap_init]  from bitmap_init::@16
  [417] bitmap_init::$1 = vera_display_get_hscale::return#2
  [418] __bitmap_hscale = bitmap_init::$1
  [419] call vera_display_get_vscale
  [420] vera_display_get_vscale::return#2 = vera_display_get_vscale::return#0
  to:bitmap_init::@18
bitmap_init::@18: scope:[bitmap_init]  from bitmap_init::@17
  [421] bitmap_init::$2 = vera_display_get_vscale::return#2
  [422] __bitmap_vscale = bitmap_init::$2
  [423] bitmap_init::bitmask#0 = bitmasks[__bitmap_color_depth]
  [424] bitmap_init::bitshift#0 = bitshifts[__bitmap_color_depth]
  to:bitmap_init::@1
bitmap_init::@1: scope:[bitmap_init]  from bitmap_init::@18 bitmap_init::@7
  [425] bitmap_init::bitshift#10 = phi( bitmap_init::@18/bitmap_init::bitshift#0, bitmap_init::@7/bitmap_init::bitshift#14 )
  [425] bitmap_init::bitmask#10 = phi( bitmap_init::@18/bitmap_init::bitmask#0, bitmap_init::@7/bitmap_init::bitmask#16 )
  [425] bitmap_init::x#10 = phi( bitmap_init::@18/0, bitmap_init::@7/bitmap_init::x#1 )
  [426] if(__bitmap_color_depth!=0) goto bitmap_init::@2
  to:bitmap_init::@8
bitmap_init::@8: scope:[bitmap_init]  from bitmap_init::@1
  [427] bitmap_init::$7 = bitmap_init::x#10 >> 3
  [428] bitmap_init::$23 = bitmap_init::x#10 << 1
  [429] bitmap_init::$29 = __bitmap_plot_x + bitmap_init::$23
  [430] *bitmap_init::$29 = bitmap_init::$7
  [431] bitmap_init::$30 = __bitmap_plot_bitmask + bitmap_init::x#10
  [432] *bitmap_init::$30 = bitmap_init::bitmask#10
  [433] bitmap_init::$31 = __bitmap_plot_bitshift + bitmap_init::x#10
  [434] *bitmap_init::$31 = (char)bitmap_init::bitshift#10
  [435] bitmap_init::bitshift#1 = bitmap_init::bitshift#10 - 1
  [436] bitmap_init::bitmask#1 = bitmap_init::bitmask#10 >> 1
  to:bitmap_init::@2
bitmap_init::@2: scope:[bitmap_init]  from bitmap_init::@1 bitmap_init::@8
  [437] bitmap_init::bitshift#11 = phi( bitmap_init::@1/bitmap_init::bitshift#10, bitmap_init::@8/bitmap_init::bitshift#1 )
  [437] bitmap_init::bitmask#11 = phi( bitmap_init::@1/bitmap_init::bitmask#10, bitmap_init::@8/bitmap_init::bitmask#1 )
  [438] if(__bitmap_color_depth!=1) goto bitmap_init::@3
  to:bitmap_init::@9
bitmap_init::@9: scope:[bitmap_init]  from bitmap_init::@2
  [439] bitmap_init::$10 = bitmap_init::x#10 >> 2
  [440] bitmap_init::$24 = bitmap_init::x#10 << 1
  [441] bitmap_init::$32 = __bitmap_plot_x + bitmap_init::$24
  [442] *bitmap_init::$32 = bitmap_init::$10
  [443] bitmap_init::$33 = __bitmap_plot_bitmask + bitmap_init::x#10
  [444] *bitmap_init::$33 = bitmap_init::bitmask#11
  [445] bitmap_init::$34 = __bitmap_plot_bitshift + bitmap_init::x#10
  [446] *bitmap_init::$34 = (char)bitmap_init::bitshift#11
  [447] bitmap_init::bitshift#2 = bitmap_init::bitshift#11 - 2
  [448] bitmap_init::bitmask#2 = bitmap_init::bitmask#11 >> 2
  to:bitmap_init::@3
bitmap_init::@3: scope:[bitmap_init]  from bitmap_init::@2 bitmap_init::@9
  [449] bitmap_init::bitshift#12 = phi( bitmap_init::@2/bitmap_init::bitshift#11, bitmap_init::@9/bitmap_init::bitshift#2 )
  [449] bitmap_init::bitmask#12 = phi( bitmap_init::@2/bitmap_init::bitmask#11, bitmap_init::@9/bitmap_init::bitmask#2 )
  [450] if(__bitmap_color_depth!=2) goto bitmap_init::@4
  to:bitmap_init::@10
bitmap_init::@10: scope:[bitmap_init]  from bitmap_init::@3
  [451] bitmap_init::$13 = bitmap_init::x#10 >> 1
  [452] bitmap_init::$25 = bitmap_init::x#10 << 1
  [453] bitmap_init::$35 = __bitmap_plot_x + bitmap_init::$25
  [454] *bitmap_init::$35 = bitmap_init::$13
  [455] bitmap_init::$36 = __bitmap_plot_bitmask + bitmap_init::x#10
  [456] *bitmap_init::$36 = bitmap_init::bitmask#12
  [457] bitmap_init::$37 = __bitmap_plot_bitshift + bitmap_init::x#10
  [458] *bitmap_init::$37 = (char)bitmap_init::bitshift#12
  [459] bitmap_init::bitshift#3 = bitmap_init::bitshift#12 - 4
  [460] bitmap_init::bitmask#3 = bitmap_init::bitmask#12 >> 4
  to:bitmap_init::@4
bitmap_init::@4: scope:[bitmap_init]  from bitmap_init::@10 bitmap_init::@3
  [461] bitmap_init::bitmask#13 = phi( bitmap_init::@10/bitmap_init::bitmask#3, bitmap_init::@3/bitmap_init::bitmask#12 )
  [461] bitmap_init::bitshift#13 = phi( bitmap_init::@10/bitmap_init::bitshift#3, bitmap_init::@3/bitmap_init::bitshift#12 )
  [462] if(__bitmap_color_depth!=3) goto bitmap_init::@5
  to:bitmap_init::@11
bitmap_init::@11: scope:[bitmap_init]  from bitmap_init::@4
  [463] bitmap_init::$26 = bitmap_init::x#10 << 1
  [464] bitmap_init::$38 = __bitmap_plot_x + bitmap_init::$26
  [465] *bitmap_init::$38 = bitmap_init::x#10
  [466] bitmap_init::$39 = __bitmap_plot_bitmask + bitmap_init::x#10
  [467] *bitmap_init::$39 = bitmap_init::bitmask#13
  [468] bitmap_init::$40 = __bitmap_plot_bitshift + bitmap_init::x#10
  [469] *bitmap_init::$40 = (char)bitmap_init::bitshift#13
  to:bitmap_init::@5
bitmap_init::@5: scope:[bitmap_init]  from bitmap_init::@11 bitmap_init::@4
  [470] if(bitmap_init::bitshift#13>=0) goto bitmap_init::@6
  to:bitmap_init::@12
bitmap_init::@12: scope:[bitmap_init]  from bitmap_init::@5
  [471] bitmap_init::bitshift#4 = bitshifts[__bitmap_color_depth]
  to:bitmap_init::@6
bitmap_init::@6: scope:[bitmap_init]  from bitmap_init::@12 bitmap_init::@5
  [472] bitmap_init::bitshift#14 = phi( bitmap_init::@12/bitmap_init::bitshift#4, bitmap_init::@5/bitmap_init::bitshift#13 )
  [473] if(bitmap_init::bitmask#13!=0) goto bitmap_init::@7
  to:bitmap_init::@13
bitmap_init::@13: scope:[bitmap_init]  from bitmap_init::@6
  [474] bitmap_init::bitmask#4 = bitmasks[__bitmap_color_depth]
  to:bitmap_init::@7
bitmap_init::@7: scope:[bitmap_init]  from bitmap_init::@13 bitmap_init::@6
  [475] bitmap_init::bitmask#16 = phi( bitmap_init::@13/bitmap_init::bitmask#4, bitmap_init::@6/bitmap_init::bitmask#13 )
  [476] bitmap_init::x#1 = ++ bitmap_init::x#10
  [477] if(bitmap_init::x#1!=$280) goto bitmap_init::@1
  to:bitmap_init::@14
bitmap_init::@14: scope:[bitmap_init]  from bitmap_init::@7
  [478] bitmap_init::$3 = __bitmap_color_depth << 2
  [479] bitmap_init::$4 = bitmap_init::$3 + __bitmap_hscale
  [480] bitmap_init::$27 = bitmap_init::$4 << 1
  [481] bitmap_init::hdelta#0 = hdeltas[bitmap_init::$27]
  [482] bitmap_init::yoffs#0 = __bitmap_address
  to:bitmap_init::@15
bitmap_init::@15: scope:[bitmap_init]  from bitmap_init::@14 bitmap_init::@15
  [483] bitmap_init::yoffs#2 = phi( bitmap_init::@14/bitmap_init::yoffs#0, bitmap_init::@15/bitmap_init::yoffs#1 )
  [483] bitmap_init::y#2 = phi( bitmap_init::@14/0, bitmap_init::@15/bitmap_init::y#1 )
  [484] bitmap_init::$28 = bitmap_init::y#2 << 2
  [485] bitmap_init::$41 = __bitmap_plot_y + bitmap_init::$28
  [486] *bitmap_init::$41 = bitmap_init::yoffs#2
  [487] bitmap_init::yoffs#1 = bitmap_init::yoffs#2 + bitmap_init::hdelta#0
  [488] bitmap_init::y#1 = ++ bitmap_init::y#2
  [489] if(bitmap_init::y#1!=$1e0) goto bitmap_init::@15
  to:bitmap_init::@return
bitmap_init::@return: scope:[bitmap_init]  from bitmap_init::@15
  [490] return 
  to:@return

void bitmap_clear()
bitmap_clear: scope:[bitmap_clear]  from main::@20
  [491] bitmap_clear::$6 = __bitmap_vscale << 1
  [492] bitmap_clear::vdelta#0 = vdeltas[bitmap_clear::$6]
  [493] bitmap_clear::$0 = __bitmap_color_depth << 2
  [494] bitmap_clear::$1 = bitmap_clear::$0 + __bitmap_hscale
  [495] bitmap_clear::$7 = bitmap_clear::$1 << 1
  [496] bitmap_clear::hdelta#0 = hdeltas[bitmap_clear::$7]
  [497] mul16u::a#0 = bitmap_clear::hdelta#0
  [498] mul16u::b#0 = bitmap_clear::vdelta#0
  [499] call mul16u
  [500] mul16u::return#0 = mul16u::res#2
  to:bitmap_clear::@1
bitmap_clear::@1: scope:[bitmap_clear]  from bitmap_clear
  [501] bitmap_clear::count#0 = mul16u::return#0
  [502] bitmap_clear::vbank#0 = byte2  __bitmap_address
  [503] bitmap_clear::vdest#0 = word0  __bitmap_address
  [504] memset_vram::vbank#0 = bitmap_clear::vbank#0
  [505] memset_vram::vdest#0 = (void *)bitmap_clear::vdest#0
  [506] memset_vram::num#0 = bitmap_clear::count#0
  [507] call memset_vram
  to:bitmap_clear::@return
bitmap_clear::@return: scope:[bitmap_clear]  from bitmap_clear::@1
  [508] return 
  to:@return

char kbhit()
kbhit: scope:[kbhit]  from main::@1 main::@3
  [509] kbhit::ch = 0
  kickasm( uses kbhit::chptr uses kbhit::IN_DEV uses kbhit::GETIN) {{ jsr _kbhit
        bne L3

        jmp continue1

        .var via1 = $9f60                  //VIA#1
        .var d1pra = via1+1

    _kbhit:
        ldy     d1pra       // The count of keys pressed is stored in RAM bank 0.
        stz     d1pra       // Set d1pra to zero to access RAM bank 0.
        lda     $A00A       // Get number of characters from this address in the ROM of the CX16 (ROM 38).
        sty     d1pra       // Set d1pra to previous value.
        rts

    L3:
        ldy     IN_DEV          // Save current input device
        stz     IN_DEV          // Keyboard
        phy
        jsr     GETIN           // Read char, and return in .A
        ply
        sta     chptr           // Store the character read in ch
        sty     IN_DEV          // Restore input device
        ldx     #>$0000
        rts

    continue1:
        nop
      }}
  [511] kbhit::return#0 = kbhit::ch
  to:kbhit::@return
kbhit::@return: scope:[kbhit]  from kbhit
  [512] kbhit::return#1 = kbhit::return#0
  [513] return 
  to:@return

void bitmap_line(unsigned int x0 , unsigned int x1 , unsigned int y0 , unsigned int y1 , char c)
bitmap_line: scope:[bitmap_line]  from main::@31 main::@4
  [514] bitmap_line::c#10 = phi( main::@31/bitmap_line::c#0, main::@4/bitmap_line::c#1 )
  [514] bitmap_line::y1#10 = phi( main::@31/bitmap_line::y1#0, main::@4/$c7 )
  [514] bitmap_line::y0#10 = phi( main::@31/bitmap_line::y0#0, main::@4/0 )
  [514] bitmap_line::x1#10 = phi( main::@31/bitmap_line::x1#0, main::@4/bitmap_line::x1#1 )
  [514] bitmap_line::x0#10 = phi( main::@31/bitmap_line::x0#0, main::@4/bitmap_line::x0#1 )
  [515] if(bitmap_line::x0#10<bitmap_line::x1#10) goto bitmap_line::@1
  to:bitmap_line::@2
bitmap_line::@2: scope:[bitmap_line]  from bitmap_line
  [516] bitmap_line::xd#2 = bitmap_line::x0#10 - bitmap_line::x1#10
  [517] if(bitmap_line::y0#10<bitmap_line::y1#10) goto bitmap_line::@7
  to:bitmap_line::@3
bitmap_line::@3: scope:[bitmap_line]  from bitmap_line::@2
  [518] bitmap_line::yd#2 = bitmap_line::y0#10 - bitmap_line::y1#10
  [519] if(bitmap_line::yd#2<bitmap_line::xd#2) goto bitmap_line::@8
  to:bitmap_line::@4
bitmap_line::@4: scope:[bitmap_line]  from bitmap_line::@3
  [520] bitmap_line_ydxi::y#0 = bitmap_line::y1#10
  [521] bitmap_line_ydxi::x#0 = bitmap_line::x1#10
  [522] bitmap_line_ydxi::y1#0 = bitmap_line::y0#10
  [523] bitmap_line_ydxi::yd#0 = bitmap_line::yd#2
  [524] bitmap_line_ydxi::xd#0 = bitmap_line::xd#2
  [525] bitmap_line_ydxi::c#0 = bitmap_line::c#10
  [526] call bitmap_line_ydxi
  to:bitmap_line::@return
bitmap_line::@return: scope:[bitmap_line]  from bitmap_line::@10 bitmap_line::@12 bitmap_line::@13 bitmap_line::@14 bitmap_line::@4 bitmap_line::@6 bitmap_line::@8 bitmap_line::@9
  [527] return 
  to:@return
bitmap_line::@8: scope:[bitmap_line]  from bitmap_line::@3
  [528] bitmap_line_xdyi::x#0 = bitmap_line::x1#10
  [529] bitmap_line_xdyi::y#0 = bitmap_line::y1#10
  [530] bitmap_line_xdyi::x1#0 = bitmap_line::x0#10
  [531] bitmap_line_xdyi::xd#0 = bitmap_line::xd#2
  [532] bitmap_line_xdyi::yd#0 = bitmap_line::yd#2
  [533] bitmap_line_xdyi::c#0 = bitmap_line::c#10
  [534] call bitmap_line_xdyi
  to:bitmap_line::@return
bitmap_line::@7: scope:[bitmap_line]  from bitmap_line::@2
  [535] bitmap_line::yd#1 = bitmap_line::y1#10 - bitmap_line::y0#10
  [536] if(bitmap_line::yd#1<bitmap_line::xd#2) goto bitmap_line::@9
  to:bitmap_line::@10
bitmap_line::@10: scope:[bitmap_line]  from bitmap_line::@7
  [537] bitmap_line_ydxd::y#0 = bitmap_line::y0#10
  [538] bitmap_line_ydxd::x#0 = bitmap_line::x0#10
  [539] bitmap_line_ydxd::y1#0 = bitmap_line::y1#10
  [540] bitmap_line_ydxd::yd#0 = bitmap_line::yd#1
  [541] bitmap_line_ydxd::xd#0 = bitmap_line::xd#2
  [542] bitmap_line_ydxd::c#0 = bitmap_line::c#10
  [543] call bitmap_line_ydxd
  to:bitmap_line::@return
bitmap_line::@9: scope:[bitmap_line]  from bitmap_line::@7
  [544] bitmap_line_xdyd::x#0 = bitmap_line::x1#10
  [545] bitmap_line_xdyd::y#0 = bitmap_line::y1#10
  [546] bitmap_line_xdyd::x1#0 = bitmap_line::x0#10
  [547] bitmap_line_xdyd::xd#0 = bitmap_line::xd#2
  [548] bitmap_line_xdyd::yd#0 = bitmap_line::yd#1
  [549] bitmap_line_xdyd::c#0 = bitmap_line::c#10
  [550] call bitmap_line_xdyd
  to:bitmap_line::@return
bitmap_line::@1: scope:[bitmap_line]  from bitmap_line
  [551] bitmap_line::xd#1 = bitmap_line::x1#10 - bitmap_line::x0#10
  [552] if(bitmap_line::y0#10<bitmap_line::y1#10) goto bitmap_line::@11
  to:bitmap_line::@5
bitmap_line::@5: scope:[bitmap_line]  from bitmap_line::@1
  [553] bitmap_line::yd#10 = bitmap_line::y0#10 - bitmap_line::y1#10
  [554] if(bitmap_line::yd#10<bitmap_line::xd#1) goto bitmap_line::@12
  to:bitmap_line::@6
bitmap_line::@6: scope:[bitmap_line]  from bitmap_line::@5
  [555] bitmap_line_ydxd::y#1 = bitmap_line::y1#10
  [556] bitmap_line_ydxd::x#1 = bitmap_line::x1#10
  [557] bitmap_line_ydxd::y1#1 = bitmap_line::y0#10
  [558] bitmap_line_ydxd::yd#1 = bitmap_line::yd#10
  [559] bitmap_line_ydxd::xd#1 = bitmap_line::xd#1
  [560] bitmap_line_ydxd::c#1 = bitmap_line::c#10
  [561] call bitmap_line_ydxd
  to:bitmap_line::@return
bitmap_line::@12: scope:[bitmap_line]  from bitmap_line::@5
  [562] bitmap_line_xdyd::x#1 = bitmap_line::x0#10
  [563] bitmap_line_xdyd::y#1 = bitmap_line::y0#10
  [564] bitmap_line_xdyd::x1#1 = bitmap_line::x1#10
  [565] bitmap_line_xdyd::xd#1 = bitmap_line::xd#1
  [566] bitmap_line_xdyd::yd#1 = bitmap_line::yd#10
  [567] bitmap_line_xdyd::c#1 = bitmap_line::c#10
  [568] call bitmap_line_xdyd
  to:bitmap_line::@return
bitmap_line::@11: scope:[bitmap_line]  from bitmap_line::@1
  [569] bitmap_line::yd#11 = bitmap_line::y1#10 - bitmap_line::y0#10
  [570] if(bitmap_line::yd#11<bitmap_line::xd#1) goto bitmap_line::@13
  to:bitmap_line::@14
bitmap_line::@14: scope:[bitmap_line]  from bitmap_line::@11
  [571] bitmap_line_ydxi::y#1 = bitmap_line::y0#10
  [572] bitmap_line_ydxi::x#1 = bitmap_line::x0#10
  [573] bitmap_line_ydxi::y1#1 = bitmap_line::y1#10
  [574] bitmap_line_ydxi::yd#1 = bitmap_line::yd#11
  [575] bitmap_line_ydxi::xd#1 = bitmap_line::xd#1
  [576] bitmap_line_ydxi::c#1 = bitmap_line::c#10
  [577] call bitmap_line_ydxi
  to:bitmap_line::@return
bitmap_line::@13: scope:[bitmap_line]  from bitmap_line::@11
  [578] bitmap_line_xdyi::x#1 = bitmap_line::x0#10
  [579] bitmap_line_xdyi::y#1 = bitmap_line::y0#10
  [580] bitmap_line_xdyi::x1#1 = bitmap_line::x1#10
  [581] bitmap_line_xdyi::xd#1 = bitmap_line::xd#1
  [582] bitmap_line_xdyi::yd#1 = bitmap_line::yd#11
  [583] bitmap_line_xdyi::c#1 = bitmap_line::c#10
  [584] call bitmap_line_xdyi
  to:bitmap_line::@return

unsigned int rand()
rand: scope:[rand]  from main::@2 main::@24 main::@26 main::@28 main::@30
  [585] rand_state#13 = phi( main::@2/rand_state#23, main::@24/rand_state#14, main::@26/rand_state#14, main::@28/rand_state#14, main::@30/rand_state#14 )
  [586] rand::$0 = rand_state#13 << 7
  [587] rand_state#0 = rand_state#13 ^ rand::$0
  [588] rand::$1 = rand_state#0 >> 9
  [589] rand_state#1 = rand_state#0 ^ rand::$1
  [590] rand::$2 = rand_state#1 << 8
  [591] rand_state#14 = rand_state#1 ^ rand::$2
  [592] rand::return#0 = rand_state#14
  to:rand::@return
rand::@return: scope:[rand]  from rand
  [593] return 
  to:@return

unsigned int modr16u(unsigned int dividend , unsigned int divisor , unsigned int rem)
modr16u: scope:[modr16u]  from main::@23 main::@25 main::@27 main::@29
  [594] modr16u::divisor#4 = phi( main::@23/$140, main::@25/$140, main::@27/$c8, main::@29/$c8 )
  [594] modr16u::dividend#4 = phi( main::@23/modr16u::dividend#0, main::@25/modr16u::dividend#1, main::@27/modr16u::dividend#2, main::@29/modr16u::dividend#3 )
  [595] divr16u::dividend#1 = modr16u::dividend#4
  [596] divr16u::divisor#0 = modr16u::divisor#4
  [597] call divr16u
  to:modr16u::@1
modr16u::@1: scope:[modr16u]  from modr16u
  [598] modr16u::return#0 = rem16u#0
  to:modr16u::@return
modr16u::@return: scope:[modr16u]  from modr16u::@1
  [599] return 
  to:@return

void vera_layer_set_text_color_mode(char layer , char color_mode)
vera_layer_set_text_color_mode: scope:[vera_layer_set_text_color_mode]  from vera_layer_mode_text::@1
  [600] vera_layer_set_text_color_mode::addr#0 = *(vera_layer_config+vera_layer_mode_text::layer#0*SIZEOF_POINTER)
  [601] *vera_layer_set_text_color_mode::addr#0 = *vera_layer_set_text_color_mode::addr#0 & ~VERA_LAYER_CONFIG_256C
  [602] *vera_layer_set_text_color_mode::addr#0 = *vera_layer_set_text_color_mode::addr#0
  to:vera_layer_set_text_color_mode::@return
vera_layer_set_text_color_mode::@return: scope:[vera_layer_set_text_color_mode]  from vera_layer_set_text_color_mode
  [603] return 
  to:@return

char vera_layer_get_mapbase_bank(char layer)
vera_layer_get_mapbase_bank: scope:[vera_layer_get_mapbase_bank]  from screenlayer
  [604] vera_layer_get_mapbase_bank::return#0 = vera_mapbase_bank[vera_layer_get_mapbase_bank::layer#0]
  to:vera_layer_get_mapbase_bank::@return
vera_layer_get_mapbase_bank::@return: scope:[vera_layer_get_mapbase_bank]  from vera_layer_get_mapbase_bank
  [605] return 
  to:@return

unsigned int vera_layer_get_mapbase_offset(char layer)
vera_layer_get_mapbase_offset: scope:[vera_layer_get_mapbase_offset]  from screenlayer::@3
  [606] vera_layer_get_mapbase_offset::$0 = vera_layer_get_mapbase_offset::layer#0 << 1
  [607] vera_layer_get_mapbase_offset::return#0 = vera_mapbase_offset[vera_layer_get_mapbase_offset::$0]
  to:vera_layer_get_mapbase_offset::@return
vera_layer_get_mapbase_offset::@return: scope:[vera_layer_get_mapbase_offset]  from vera_layer_get_mapbase_offset
  [608] return 
  to:@return

char vera_layer_get_rowshift(char layer)
vera_layer_get_rowshift: scope:[vera_layer_get_rowshift]  from screenlayer::@1
  [609] vera_layer_get_rowshift::return#0 = vera_layer_rowshift[vera_layer_get_rowshift::layer#0]
  to:vera_layer_get_rowshift::@return
vera_layer_get_rowshift::@return: scope:[vera_layer_get_rowshift]  from vera_layer_get_rowshift
  [610] return 
  to:@return

unsigned int vera_layer_get_rowskip(char layer)
vera_layer_get_rowskip: scope:[vera_layer_get_rowskip]  from screenlayer::@5
  [611] vera_layer_get_rowskip::$0 = vera_layer_get_rowskip::layer#0 << 1
  [612] vera_layer_get_rowskip::return#0 = vera_layer_rowskip[vera_layer_get_rowskip::$0]
  to:vera_layer_get_rowskip::@return
vera_layer_get_rowskip::@return: scope:[vera_layer_get_rowskip]  from vera_layer_get_rowskip
  [613] return 
  to:@return

void cscroll()
cscroll: scope:[cscroll]  from cputln
  [614] if(conio_cursor_y[conio_screen_layer]<conio_screen_height) goto cscroll::@return
  to:cscroll::@1
cscroll::@1: scope:[cscroll]  from cscroll
  [615] if(0!=conio_scroll_enable[conio_screen_layer]) goto cscroll::@4
  to:cscroll::@2
cscroll::@2: scope:[cscroll]  from cscroll::@1
  [616] if(conio_cursor_y[conio_screen_layer]<conio_height) goto cscroll::@return
  to:cscroll::@3
cscroll::@3: scope:[cscroll]  from cscroll::@2
  [617] phi()
  to:cscroll::@return
cscroll::@return: scope:[cscroll]  from cscroll cscroll::@2 cscroll::@3 cscroll::@5
  [618] return 
  to:@return
cscroll::@4: scope:[cscroll]  from cscroll::@1
  [619] phi()
  [620] call insertup
  to:cscroll::@5
cscroll::@5: scope:[cscroll]  from cscroll::@4
  [621] gotoxy::y#2 = conio_screen_height - 1
  [622] call gotoxy
  to:cscroll::@return

void vera_layer_set_config(char layer , char config)
vera_layer_set_config: scope:[vera_layer_set_config]  from vera_layer_mode_bitmap::@2 vera_layer_mode_tile::@16
  [623] vera_layer_set_config::config#2 = phi( vera_layer_mode_bitmap::@2/vera_layer_mode_bitmap::config#11, vera_layer_mode_tile::@16/vera_layer_set_config::config#0 )
  [623] vera_layer_set_config::layer#2 = phi( vera_layer_mode_bitmap::@2/vera_layer_mode_bitmap::layer#0, vera_layer_mode_tile::@16/vera_layer_set_config::layer#0 )
  [624] vera_layer_set_config::$0 = vera_layer_set_config::layer#2 << 1
  [625] vera_layer_set_config::addr#0 = vera_layer_config[vera_layer_set_config::$0]
  [626] *vera_layer_set_config::addr#0 = vera_layer_set_config::config#2
  to:vera_layer_set_config::@return
vera_layer_set_config::@return: scope:[vera_layer_set_config]  from vera_layer_set_config
  [627] return 
  to:@return

void vera_layer_set_tilebase(char layer , char tilebase)
vera_layer_set_tilebase: scope:[vera_layer_set_tilebase]  from vera_layer_mode_bitmap::@3 vera_layer_mode_tile::@22
  [628] vera_layer_set_tilebase::tilebase#2 = phi( vera_layer_mode_bitmap::@3/vera_layer_mode_bitmap::tilebase#1, vera_layer_mode_tile::@22/vera_layer_set_tilebase::tilebase#0 )
  [628] vera_layer_set_tilebase::layer#2 = phi( vera_layer_mode_bitmap::@3/vera_layer_mode_bitmap::layer#0, vera_layer_mode_tile::@22/vera_layer_set_tilebase::layer#0 )
  [629] vera_layer_set_tilebase::$0 = vera_layer_set_tilebase::layer#2 << 1
  [630] vera_layer_set_tilebase::addr#0 = vera_layer_tilebase[vera_layer_set_tilebase::$0]
  [631] *vera_layer_set_tilebase::addr#0 = vera_layer_set_tilebase::tilebase#2
  to:vera_layer_set_tilebase::@return
vera_layer_set_tilebase::@return: scope:[vera_layer_set_tilebase]  from vera_layer_set_tilebase
  [632] return 
  to:@return

char vera_layer_get_backcolor(char layer)
vera_layer_get_backcolor: scope:[vera_layer_get_backcolor]  from clrscr
  [633] vera_layer_get_backcolor::return#1 = vera_layer_backcolor[vera_layer_get_backcolor::layer#0]
  to:vera_layer_get_backcolor::@return
vera_layer_get_backcolor::@return: scope:[vera_layer_get_backcolor]  from vera_layer_get_backcolor
  [634] return 
  to:@return

char vera_layer_get_textcolor(char layer)
vera_layer_get_textcolor: scope:[vera_layer_get_textcolor]  from clrscr::@7
  [635] vera_layer_get_textcolor::return#1 = vera_layer_textcolor[vera_layer_get_textcolor::layer#0]
  to:vera_layer_get_textcolor::@return
vera_layer_get_textcolor::@return: scope:[vera_layer_get_textcolor]  from vera_layer_get_textcolor
  [636] return 
  to:@return

char vera_display_get_hscale()
vera_display_get_hscale: scope:[vera_display_get_hscale]  from bitmap_init::@16
  [637] phi()
  to:vera_display_get_hscale::@1
vera_display_get_hscale::@1: scope:[vera_display_get_hscale]  from vera_display_get_hscale vera_display_get_hscale::@2
  [638] vera_display_get_hscale::s#2 = phi( vera_display_get_hscale/1, vera_display_get_hscale::@2/vera_display_get_hscale::s#1 )
  [639] if(*VERA_DC_HSCALE!=vera_display_get_hscale::hscale[vera_display_get_hscale::s#2]) goto vera_display_get_hscale::@2
  to:vera_display_get_hscale::@3
vera_display_get_hscale::@2: scope:[vera_display_get_hscale]  from vera_display_get_hscale::@1
  [640] vera_display_get_hscale::s#1 = ++ vera_display_get_hscale::s#2
  [641] if(vera_display_get_hscale::s#1!=4) goto vera_display_get_hscale::@1
  to:vera_display_get_hscale::@3
vera_display_get_hscale::@3: scope:[vera_display_get_hscale]  from vera_display_get_hscale::@1 vera_display_get_hscale::@2
  [642] vera_display_get_hscale::return#0 = phi( vera_display_get_hscale::@2/vera_display_get_hscale::scale#0, vera_display_get_hscale::@1/vera_display_get_hscale::s#2 )
  to:vera_display_get_hscale::@return
vera_display_get_hscale::@return: scope:[vera_display_get_hscale]  from vera_display_get_hscale::@3
  [643] return 
  to:@return

char vera_display_get_vscale()
vera_display_get_vscale: scope:[vera_display_get_vscale]  from bitmap_init::@17
  [644] phi()
  to:vera_display_get_vscale::@1
vera_display_get_vscale::@1: scope:[vera_display_get_vscale]  from vera_display_get_vscale vera_display_get_vscale::@2
  [645] vera_display_get_vscale::s#2 = phi( vera_display_get_vscale/1, vera_display_get_vscale::@2/vera_display_get_vscale::s#1 )
  [646] if(*VERA_DC_VSCALE!=vera_display_get_vscale::vscale[vera_display_get_vscale::s#2]) goto vera_display_get_vscale::@2
  to:vera_display_get_vscale::@3
vera_display_get_vscale::@2: scope:[vera_display_get_vscale]  from vera_display_get_vscale::@1
  [647] vera_display_get_vscale::s#1 = ++ vera_display_get_vscale::s#2
  [648] if(vera_display_get_vscale::s#1!=4) goto vera_display_get_vscale::@1
  to:vera_display_get_vscale::@3
vera_display_get_vscale::@3: scope:[vera_display_get_vscale]  from vera_display_get_vscale::@1 vera_display_get_vscale::@2
  [649] vera_display_get_vscale::return#0 = phi( vera_display_get_vscale::@2/vera_display_get_vscale::scale#0, vera_display_get_vscale::@1/vera_display_get_vscale::s#2 )
  to:vera_display_get_vscale::@return
vera_display_get_vscale::@return: scope:[vera_display_get_vscale]  from vera_display_get_vscale::@3
  [650] return 
  to:@return

unsigned long mul16u(unsigned int a , unsigned int b)
mul16u: scope:[mul16u]  from bitmap_clear
  [651] mul16u::mb#0 = (unsigned long)mul16u::b#0
  to:mul16u::@1
mul16u::@1: scope:[mul16u]  from mul16u mul16u::@3
  [652] mul16u::mb#2 = phi( mul16u/mul16u::mb#0, mul16u::@3/mul16u::mb#1 )
  [652] mul16u::res#2 = phi( mul16u/0, mul16u::@3/mul16u::res#6 )
  [652] mul16u::a#2 = phi( mul16u/mul16u::a#0, mul16u::@3/mul16u::a#1 )
  [653] if(mul16u::a#2!=0) goto mul16u::@2
  to:mul16u::@return
mul16u::@return: scope:[mul16u]  from mul16u::@1
  [654] return 
  to:@return
mul16u::@2: scope:[mul16u]  from mul16u::@1
  [655] mul16u::$1 = mul16u::a#2 & 1
  [656] if(mul16u::$1==0) goto mul16u::@3
  to:mul16u::@4
mul16u::@4: scope:[mul16u]  from mul16u::@2
  [657] mul16u::res#1 = mul16u::res#2 + mul16u::mb#2
  to:mul16u::@3
mul16u::@3: scope:[mul16u]  from mul16u::@2 mul16u::@4
  [658] mul16u::res#6 = phi( mul16u::@2/mul16u::res#2, mul16u::@4/mul16u::res#1 )
  [659] mul16u::a#1 = mul16u::a#2 >> 1
  [660] mul16u::mb#1 = mul16u::mb#2 << 1
  to:mul16u::@1

void memset_vram(char vbank , void *vdest , char data , unsigned long num)
memset_vram: scope:[memset_vram]  from bitmap_clear::@1
  [661] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL
  [662] memset_vram::$0 = byte0  memset_vram::vdest#0
  [663] *VERA_ADDRX_L = memset_vram::$0
  [664] memset_vram::$1 = byte1  memset_vram::vdest#0
  [665] *VERA_ADDRX_M = memset_vram::$1
  [666] memset_vram::$2 = VERA_INC_1 | memset_vram::vbank#0
  [667] *VERA_ADDRX_H = memset_vram::$2
  to:memset_vram::@1
memset_vram::@1: scope:[memset_vram]  from memset_vram memset_vram::@2
  [668] memset_vram::i#2 = phi( memset_vram/0, memset_vram::@2/memset_vram::i#1 )
  [669] if(memset_vram::i#2<memset_vram::num#0) goto memset_vram::@2
  to:memset_vram::@return
memset_vram::@return: scope:[memset_vram]  from memset_vram::@1
  [670] return 
  to:@return
memset_vram::@2: scope:[memset_vram]  from memset_vram::@1
  [671] *VERA_DATA0 = memset_vram::data#0
  [672] memset_vram::i#1 = ++ memset_vram::i#2
  to:memset_vram::@1

void bitmap_line_ydxi(unsigned int y , unsigned int x , unsigned int y1 , unsigned int yd , unsigned int xd , char c)
bitmap_line_ydxi: scope:[bitmap_line_ydxi]  from bitmap_line::@14 bitmap_line::@4
  [673] bitmap_line_ydxi::y1#6 = phi( bitmap_line::@14/bitmap_line_ydxi::y1#1, bitmap_line::@4/bitmap_line_ydxi::y1#0 )
  [673] bitmap_line_ydxi::yd#5 = phi( bitmap_line::@14/bitmap_line_ydxi::yd#1, bitmap_line::@4/bitmap_line_ydxi::yd#0 )
  [673] bitmap_line_ydxi::c#3 = phi( bitmap_line::@14/bitmap_line_ydxi::c#1, bitmap_line::@4/bitmap_line_ydxi::c#0 )
  [673] bitmap_line_ydxi::y#6 = phi( bitmap_line::@14/bitmap_line_ydxi::y#1, bitmap_line::@4/bitmap_line_ydxi::y#0 )
  [673] bitmap_line_ydxi::x#5 = phi( bitmap_line::@14/bitmap_line_ydxi::x#1, bitmap_line::@4/bitmap_line_ydxi::x#0 )
  [673] bitmap_line_ydxi::xd#2 = phi( bitmap_line::@14/bitmap_line_ydxi::xd#1, bitmap_line::@4/bitmap_line_ydxi::xd#0 )
  [674] bitmap_line_ydxi::e#0 = bitmap_line_ydxi::xd#2 >> 1
  to:bitmap_line_ydxi::@1
bitmap_line_ydxi::@1: scope:[bitmap_line_ydxi]  from bitmap_line_ydxi bitmap_line_ydxi::@2
  [675] bitmap_line_ydxi::e#3 = phi( bitmap_line_ydxi/bitmap_line_ydxi::e#0, bitmap_line_ydxi::@2/bitmap_line_ydxi::e#6 )
  [675] bitmap_line_ydxi::y#3 = phi( bitmap_line_ydxi/bitmap_line_ydxi::y#6, bitmap_line_ydxi::@2/bitmap_line_ydxi::y#2 )
  [675] bitmap_line_ydxi::x#3 = phi( bitmap_line_ydxi/bitmap_line_ydxi::x#5, bitmap_line_ydxi::@2/bitmap_line_ydxi::x#6 )
  [676] bitmap_plot::x#2 = bitmap_line_ydxi::x#3
  [677] bitmap_plot::y#2 = bitmap_line_ydxi::y#3
  [678] bitmap_plot::c#3 = bitmap_line_ydxi::c#3
  [679] call bitmap_plot
  to:bitmap_line_ydxi::@4
bitmap_line_ydxi::@4: scope:[bitmap_line_ydxi]  from bitmap_line_ydxi::@1
  [680] bitmap_line_ydxi::y#2 = ++ bitmap_line_ydxi::y#3
  [681] bitmap_line_ydxi::e#1 = bitmap_line_ydxi::e#3 + bitmap_line_ydxi::xd#2
  [682] if(bitmap_line_ydxi::yd#5>=bitmap_line_ydxi::e#1) goto bitmap_line_ydxi::@2
  to:bitmap_line_ydxi::@3
bitmap_line_ydxi::@3: scope:[bitmap_line_ydxi]  from bitmap_line_ydxi::@4
  [683] bitmap_line_ydxi::x#2 = ++ bitmap_line_ydxi::x#3
  [684] bitmap_line_ydxi::e#2 = bitmap_line_ydxi::e#1 - bitmap_line_ydxi::yd#5
  to:bitmap_line_ydxi::@2
bitmap_line_ydxi::@2: scope:[bitmap_line_ydxi]  from bitmap_line_ydxi::@3 bitmap_line_ydxi::@4
  [685] bitmap_line_ydxi::e#6 = phi( bitmap_line_ydxi::@3/bitmap_line_ydxi::e#2, bitmap_line_ydxi::@4/bitmap_line_ydxi::e#1 )
  [685] bitmap_line_ydxi::x#6 = phi( bitmap_line_ydxi::@3/bitmap_line_ydxi::x#2, bitmap_line_ydxi::@4/bitmap_line_ydxi::x#3 )
  [686] bitmap_line_ydxi::$6 = bitmap_line_ydxi::y1#6 + 1
  [687] if(bitmap_line_ydxi::y#2!=bitmap_line_ydxi::$6) goto bitmap_line_ydxi::@1
  to:bitmap_line_ydxi::@return
bitmap_line_ydxi::@return: scope:[bitmap_line_ydxi]  from bitmap_line_ydxi::@2
  [688] return 
  to:@return

void bitmap_line_xdyi(unsigned int x , unsigned int y , unsigned int x1 , unsigned int xd , unsigned int yd , char c)
bitmap_line_xdyi: scope:[bitmap_line_xdyi]  from bitmap_line::@13 bitmap_line::@8
  [689] bitmap_line_xdyi::x1#6 = phi( bitmap_line::@13/bitmap_line_xdyi::x1#1, bitmap_line::@8/bitmap_line_xdyi::x1#0 )
  [689] bitmap_line_xdyi::xd#5 = phi( bitmap_line::@13/bitmap_line_xdyi::xd#1, bitmap_line::@8/bitmap_line_xdyi::xd#0 )
  [689] bitmap_line_xdyi::c#3 = phi( bitmap_line::@13/bitmap_line_xdyi::c#1, bitmap_line::@8/bitmap_line_xdyi::c#0 )
  [689] bitmap_line_xdyi::y#5 = phi( bitmap_line::@13/bitmap_line_xdyi::y#1, bitmap_line::@8/bitmap_line_xdyi::y#0 )
  [689] bitmap_line_xdyi::x#6 = phi( bitmap_line::@13/bitmap_line_xdyi::x#1, bitmap_line::@8/bitmap_line_xdyi::x#0 )
  [689] bitmap_line_xdyi::yd#2 = phi( bitmap_line::@13/bitmap_line_xdyi::yd#1, bitmap_line::@8/bitmap_line_xdyi::yd#0 )
  [690] bitmap_line_xdyi::e#0 = bitmap_line_xdyi::yd#2 >> 1
  to:bitmap_line_xdyi::@1
bitmap_line_xdyi::@1: scope:[bitmap_line_xdyi]  from bitmap_line_xdyi bitmap_line_xdyi::@2
  [691] bitmap_line_xdyi::e#3 = phi( bitmap_line_xdyi/bitmap_line_xdyi::e#0, bitmap_line_xdyi::@2/bitmap_line_xdyi::e#6 )
  [691] bitmap_line_xdyi::y#3 = phi( bitmap_line_xdyi/bitmap_line_xdyi::y#5, bitmap_line_xdyi::@2/bitmap_line_xdyi::y#6 )
  [691] bitmap_line_xdyi::x#3 = phi( bitmap_line_xdyi/bitmap_line_xdyi::x#6, bitmap_line_xdyi::@2/bitmap_line_xdyi::x#2 )
  [692] bitmap_plot::x#0 = bitmap_line_xdyi::x#3
  [693] bitmap_plot::y#0 = bitmap_line_xdyi::y#3
  [694] bitmap_plot::c#1 = bitmap_line_xdyi::c#3
  [695] call bitmap_plot
  to:bitmap_line_xdyi::@4
bitmap_line_xdyi::@4: scope:[bitmap_line_xdyi]  from bitmap_line_xdyi::@1
  [696] bitmap_line_xdyi::x#2 = ++ bitmap_line_xdyi::x#3
  [697] bitmap_line_xdyi::e#1 = bitmap_line_xdyi::e#3 + bitmap_line_xdyi::yd#2
  [698] if(bitmap_line_xdyi::xd#5>=bitmap_line_xdyi::e#1) goto bitmap_line_xdyi::@2
  to:bitmap_line_xdyi::@3
bitmap_line_xdyi::@3: scope:[bitmap_line_xdyi]  from bitmap_line_xdyi::@4
  [699] bitmap_line_xdyi::y#2 = ++ bitmap_line_xdyi::y#3
  [700] bitmap_line_xdyi::e#2 = bitmap_line_xdyi::e#1 - bitmap_line_xdyi::xd#5
  to:bitmap_line_xdyi::@2
bitmap_line_xdyi::@2: scope:[bitmap_line_xdyi]  from bitmap_line_xdyi::@3 bitmap_line_xdyi::@4
  [701] bitmap_line_xdyi::e#6 = phi( bitmap_line_xdyi::@3/bitmap_line_xdyi::e#2, bitmap_line_xdyi::@4/bitmap_line_xdyi::e#1 )
  [701] bitmap_line_xdyi::y#6 = phi( bitmap_line_xdyi::@3/bitmap_line_xdyi::y#2, bitmap_line_xdyi::@4/bitmap_line_xdyi::y#3 )
  [702] bitmap_line_xdyi::$6 = bitmap_line_xdyi::x1#6 + 1
  [703] if(bitmap_line_xdyi::x#2!=bitmap_line_xdyi::$6) goto bitmap_line_xdyi::@1
  to:bitmap_line_xdyi::@return
bitmap_line_xdyi::@return: scope:[bitmap_line_xdyi]  from bitmap_line_xdyi::@2
  [704] return 
  to:@return

void bitmap_line_ydxd(unsigned int y , unsigned int x , unsigned int y1 , unsigned int yd , unsigned int xd , char c)
bitmap_line_ydxd: scope:[bitmap_line_ydxd]  from bitmap_line::@10 bitmap_line::@6
  [705] bitmap_line_ydxd::y1#6 = phi( bitmap_line::@10/bitmap_line_ydxd::y1#0, bitmap_line::@6/bitmap_line_ydxd::y1#1 )
  [705] bitmap_line_ydxd::yd#5 = phi( bitmap_line::@10/bitmap_line_ydxd::yd#0, bitmap_line::@6/bitmap_line_ydxd::yd#1 )
  [705] bitmap_line_ydxd::c#3 = phi( bitmap_line::@10/bitmap_line_ydxd::c#0, bitmap_line::@6/bitmap_line_ydxd::c#1 )
  [705] bitmap_line_ydxd::y#7 = phi( bitmap_line::@10/bitmap_line_ydxd::y#0, bitmap_line::@6/bitmap_line_ydxd::y#1 )
  [705] bitmap_line_ydxd::x#5 = phi( bitmap_line::@10/bitmap_line_ydxd::x#0, bitmap_line::@6/bitmap_line_ydxd::x#1 )
  [705] bitmap_line_ydxd::xd#2 = phi( bitmap_line::@10/bitmap_line_ydxd::xd#0, bitmap_line::@6/bitmap_line_ydxd::xd#1 )
  [706] bitmap_line_ydxd::e#0 = bitmap_line_ydxd::xd#2 >> 1
  to:bitmap_line_ydxd::@1
bitmap_line_ydxd::@1: scope:[bitmap_line_ydxd]  from bitmap_line_ydxd bitmap_line_ydxd::@2
  [707] bitmap_line_ydxd::e#3 = phi( bitmap_line_ydxd/bitmap_line_ydxd::e#0, bitmap_line_ydxd::@2/bitmap_line_ydxd::e#6 )
  [707] bitmap_line_ydxd::y#2 = phi( bitmap_line_ydxd/bitmap_line_ydxd::y#7, bitmap_line_ydxd::@2/bitmap_line_ydxd::y#3 )
  [707] bitmap_line_ydxd::x#3 = phi( bitmap_line_ydxd/bitmap_line_ydxd::x#5, bitmap_line_ydxd::@2/bitmap_line_ydxd::x#6 )
  [708] bitmap_plot::x#3 = bitmap_line_ydxd::x#3
  [709] bitmap_plot::y#3 = bitmap_line_ydxd::y#2
  [710] bitmap_plot::c#4 = bitmap_line_ydxd::c#3
  [711] call bitmap_plot
  to:bitmap_line_ydxd::@4
bitmap_line_ydxd::@4: scope:[bitmap_line_ydxd]  from bitmap_line_ydxd::@1
  [712] bitmap_line_ydxd::y#3 = ++ bitmap_line_ydxd::y#2
  [713] bitmap_line_ydxd::e#1 = bitmap_line_ydxd::e#3 + bitmap_line_ydxd::xd#2
  [714] if(bitmap_line_ydxd::yd#5>=bitmap_line_ydxd::e#1) goto bitmap_line_ydxd::@2
  to:bitmap_line_ydxd::@3
bitmap_line_ydxd::@3: scope:[bitmap_line_ydxd]  from bitmap_line_ydxd::@4
  [715] bitmap_line_ydxd::x#2 = -- bitmap_line_ydxd::x#3
  [716] bitmap_line_ydxd::e#2 = bitmap_line_ydxd::e#1 - bitmap_line_ydxd::yd#5
  to:bitmap_line_ydxd::@2
bitmap_line_ydxd::@2: scope:[bitmap_line_ydxd]  from bitmap_line_ydxd::@3 bitmap_line_ydxd::@4
  [717] bitmap_line_ydxd::e#6 = phi( bitmap_line_ydxd::@3/bitmap_line_ydxd::e#2, bitmap_line_ydxd::@4/bitmap_line_ydxd::e#1 )
  [717] bitmap_line_ydxd::x#6 = phi( bitmap_line_ydxd::@3/bitmap_line_ydxd::x#2, bitmap_line_ydxd::@4/bitmap_line_ydxd::x#3 )
  [718] bitmap_line_ydxd::$6 = bitmap_line_ydxd::y1#6 + 1
  [719] if(bitmap_line_ydxd::y#3!=bitmap_line_ydxd::$6) goto bitmap_line_ydxd::@1
  to:bitmap_line_ydxd::@return
bitmap_line_ydxd::@return: scope:[bitmap_line_ydxd]  from bitmap_line_ydxd::@2
  [720] return 
  to:@return

void bitmap_line_xdyd(unsigned int x , unsigned int y , unsigned int x1 , unsigned int xd , unsigned int yd , char c)
bitmap_line_xdyd: scope:[bitmap_line_xdyd]  from bitmap_line::@12 bitmap_line::@9
  [721] bitmap_line_xdyd::x1#6 = phi( bitmap_line::@12/bitmap_line_xdyd::x1#1, bitmap_line::@9/bitmap_line_xdyd::x1#0 )
  [721] bitmap_line_xdyd::xd#5 = phi( bitmap_line::@12/bitmap_line_xdyd::xd#1, bitmap_line::@9/bitmap_line_xdyd::xd#0 )
  [721] bitmap_line_xdyd::c#3 = phi( bitmap_line::@12/bitmap_line_xdyd::c#1, bitmap_line::@9/bitmap_line_xdyd::c#0 )
  [721] bitmap_line_xdyd::y#5 = phi( bitmap_line::@12/bitmap_line_xdyd::y#1, bitmap_line::@9/bitmap_line_xdyd::y#0 )
  [721] bitmap_line_xdyd::x#6 = phi( bitmap_line::@12/bitmap_line_xdyd::x#1, bitmap_line::@9/bitmap_line_xdyd::x#0 )
  [721] bitmap_line_xdyd::yd#2 = phi( bitmap_line::@12/bitmap_line_xdyd::yd#1, bitmap_line::@9/bitmap_line_xdyd::yd#0 )
  [722] bitmap_line_xdyd::e#0 = bitmap_line_xdyd::yd#2 >> 1
  to:bitmap_line_xdyd::@1
bitmap_line_xdyd::@1: scope:[bitmap_line_xdyd]  from bitmap_line_xdyd bitmap_line_xdyd::@2
  [723] bitmap_line_xdyd::e#3 = phi( bitmap_line_xdyd/bitmap_line_xdyd::e#0, bitmap_line_xdyd::@2/bitmap_line_xdyd::e#6 )
  [723] bitmap_line_xdyd::y#3 = phi( bitmap_line_xdyd/bitmap_line_xdyd::y#5, bitmap_line_xdyd::@2/bitmap_line_xdyd::y#6 )
  [723] bitmap_line_xdyd::x#3 = phi( bitmap_line_xdyd/bitmap_line_xdyd::x#6, bitmap_line_xdyd::@2/bitmap_line_xdyd::x#2 )
  [724] bitmap_plot::x#1 = bitmap_line_xdyd::x#3
  [725] bitmap_plot::y#1 = bitmap_line_xdyd::y#3
  [726] bitmap_plot::c#2 = bitmap_line_xdyd::c#3
  [727] call bitmap_plot
  to:bitmap_line_xdyd::@4
bitmap_line_xdyd::@4: scope:[bitmap_line_xdyd]  from bitmap_line_xdyd::@1
  [728] bitmap_line_xdyd::x#2 = ++ bitmap_line_xdyd::x#3
  [729] bitmap_line_xdyd::e#1 = bitmap_line_xdyd::e#3 + bitmap_line_xdyd::yd#2
  [730] if(bitmap_line_xdyd::xd#5>=bitmap_line_xdyd::e#1) goto bitmap_line_xdyd::@2
  to:bitmap_line_xdyd::@3
bitmap_line_xdyd::@3: scope:[bitmap_line_xdyd]  from bitmap_line_xdyd::@4
  [731] bitmap_line_xdyd::y#2 = -- bitmap_line_xdyd::y#3
  [732] bitmap_line_xdyd::e#2 = bitmap_line_xdyd::e#1 - bitmap_line_xdyd::xd#5
  to:bitmap_line_xdyd::@2
bitmap_line_xdyd::@2: scope:[bitmap_line_xdyd]  from bitmap_line_xdyd::@3 bitmap_line_xdyd::@4
  [733] bitmap_line_xdyd::e#6 = phi( bitmap_line_xdyd::@3/bitmap_line_xdyd::e#2, bitmap_line_xdyd::@4/bitmap_line_xdyd::e#1 )
  [733] bitmap_line_xdyd::y#6 = phi( bitmap_line_xdyd::@3/bitmap_line_xdyd::y#2, bitmap_line_xdyd::@4/bitmap_line_xdyd::y#3 )
  [734] bitmap_line_xdyd::$6 = bitmap_line_xdyd::x1#6 + 1
  [735] if(bitmap_line_xdyd::x#2!=bitmap_line_xdyd::$6) goto bitmap_line_xdyd::@1
  to:bitmap_line_xdyd::@return
bitmap_line_xdyd::@return: scope:[bitmap_line_xdyd]  from bitmap_line_xdyd::@2
  [736] return 
  to:@return

unsigned int divr16u(unsigned int dividend , unsigned int divisor , unsigned int rem)
divr16u: scope:[divr16u]  from modr16u
  [737] phi()
  to:divr16u::@1
divr16u::@1: scope:[divr16u]  from divr16u divr16u::@3
  [738] divr16u::i#2 = phi( divr16u/0, divr16u::@3/divr16u::i#1 )
  [738] divr16u::quotient#3 = phi( divr16u/0, divr16u::@3/divr16u::return#0 )
  [738] divr16u::dividend#2 = phi( divr16u/divr16u::dividend#1, divr16u::@3/divr16u::dividend#0 )
  [738] divr16u::rem#4 = phi( divr16u/0, divr16u::@3/divr16u::rem#10 )
  [739] divr16u::rem#0 = divr16u::rem#4 << 1
  [740] divr16u::$1 = byte1  divr16u::dividend#2
  [741] divr16u::$2 = divr16u::$1 & $80
  [742] if(divr16u::$2==0) goto divr16u::@2
  to:divr16u::@4
divr16u::@4: scope:[divr16u]  from divr16u::@1
  [743] divr16u::rem#1 = divr16u::rem#0 | 1
  to:divr16u::@2
divr16u::@2: scope:[divr16u]  from divr16u::@1 divr16u::@4
  [744] divr16u::rem#5 = phi( divr16u::@1/divr16u::rem#0, divr16u::@4/divr16u::rem#1 )
  [745] divr16u::dividend#0 = divr16u::dividend#2 << 1
  [746] divr16u::quotient#1 = divr16u::quotient#3 << 1
  [747] if(divr16u::rem#5<divr16u::divisor#0) goto divr16u::@3
  to:divr16u::@5
divr16u::@5: scope:[divr16u]  from divr16u::@2
  [748] divr16u::quotient#2 = ++ divr16u::quotient#1
  [749] divr16u::rem#2 = divr16u::rem#5 - divr16u::divisor#0
  to:divr16u::@3
divr16u::@3: scope:[divr16u]  from divr16u::@2 divr16u::@5
  [750] divr16u::return#0 = phi( divr16u::@2/divr16u::quotient#1, divr16u::@5/divr16u::quotient#2 )
  [750] divr16u::rem#10 = phi( divr16u::@2/divr16u::rem#5, divr16u::@5/divr16u::rem#2 )
  [751] divr16u::i#1 = ++ divr16u::i#2
  [752] if(divr16u::i#1!=$10) goto divr16u::@1
  to:divr16u::@6
divr16u::@6: scope:[divr16u]  from divr16u::@3
  [753] rem16u#0 = divr16u::rem#10
  to:divr16u::@return
divr16u::@return: scope:[divr16u]  from divr16u::@6
  [754] return 
  to:@return

void insertup()
insertup: scope:[insertup]  from cscroll::@4
  [755] insertup::cy#0 = conio_cursor_y[conio_screen_layer]
  [756] insertup::width#0 = conio_screen_width << 1
  to:insertup::@1
insertup::@1: scope:[insertup]  from insertup insertup::@4
  [757] insertup::i#2 = phi( insertup/1, insertup::@4/insertup::i#1 )
  [758] if(insertup::i#2<=insertup::cy#0) goto insertup::@2
  to:insertup::@3
insertup::@3: scope:[insertup]  from insertup::@1
  [759] phi()
  [760] call clearline
  to:insertup::@return
insertup::@return: scope:[insertup]  from insertup::@3
  [761] return 
  to:@return
insertup::@2: scope:[insertup]  from insertup::@1
  [762] insertup::$3 = insertup::i#2 - 1
  [763] insertup::line#0 = insertup::$3 << conio_rowshift
  [764] insertup::start#0 = CONIO_SCREEN_TEXT#12 + insertup::line#0
  [765] memcpy_in_vram::src#0 = insertup::start#0 + conio_rowskip
  [766] memcpy_in_vram::dest#0 = (void *)insertup::start#0
  [767] memcpy_in_vram::num#0 = insertup::width#0
  [768] memcpy_in_vram::src#3 = (void *)memcpy_in_vram::src#0
  [769] call memcpy_in_vram
  to:insertup::@4
insertup::@4: scope:[insertup]  from insertup::@2
  [770] insertup::i#1 = ++ insertup::i#2
  to:insertup::@1

void bitmap_plot(unsigned int x , unsigned int y , char c)
bitmap_plot: scope:[bitmap_plot]  from bitmap_line_xdyd::@1 bitmap_line_xdyi::@1 bitmap_line_ydxd::@1 bitmap_line_ydxi::@1
  [771] bitmap_plot::c#5 = phi( bitmap_line_xdyd::@1/bitmap_plot::c#2, bitmap_line_xdyi::@1/bitmap_plot::c#1, bitmap_line_ydxd::@1/bitmap_plot::c#4, bitmap_line_ydxi::@1/bitmap_plot::c#3 )
  [771] bitmap_plot::y#4 = phi( bitmap_line_xdyd::@1/bitmap_plot::y#1, bitmap_line_xdyi::@1/bitmap_plot::y#0, bitmap_line_ydxd::@1/bitmap_plot::y#3, bitmap_line_ydxi::@1/bitmap_plot::y#2 )
  [771] bitmap_plot::x#4 = phi( bitmap_line_xdyd::@1/bitmap_plot::x#1, bitmap_line_xdyi::@1/bitmap_plot::x#0, bitmap_line_ydxd::@1/bitmap_plot::x#3, bitmap_line_ydxi::@1/bitmap_plot::x#2 )
  [772] bitmap_plot::$9 = bitmap_plot::x#4 << 1
  [773] bitmap_plot::$12 = __bitmap_plot_x + bitmap_plot::$9
  [774] bitmap_plot::plot_x#0 = (unsigned long)*bitmap_plot::$12
  [775] bitmap_plot::$10 = bitmap_plot::y#4 << 2
  [776] bitmap_plot::$13 = __bitmap_plot_y + bitmap_plot::$10
  [777] bitmap_plot::plot_y#0 = *bitmap_plot::$13
  [778] bitmap_plot::vera_vram_address01_bankaddr#0 = bitmap_plot::plot_x#0 + bitmap_plot::plot_y#0
  [779] bitmap_plot::$14 = __bitmap_plot_bitshift + bitmap_plot::x#4
  [780] bitmap_plot::bitshift#0 = *bitmap_plot::$14
  [781] if(0!=bitmap_plot::bitshift#0) goto bitmap_plot::@1
  to:bitmap_plot::@2
bitmap_plot::@1: scope:[bitmap_plot]  from bitmap_plot
  [782] bitmap_plot::$3 = bitmap_plot::c#5 << bitmap_plot::bitshift#0
  to:bitmap_plot::@2
bitmap_plot::@2: scope:[bitmap_plot]  from bitmap_plot bitmap_plot::@1
  [783] bitmap_plot::c#0 = phi( bitmap_plot::@1/bitmap_plot::$3, bitmap_plot/bitmap_plot::c#5 )
  to:bitmap_plot::vera_vram_address01
bitmap_plot::vera_vram_address01: scope:[bitmap_plot]  from bitmap_plot::@2
  [784] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL
  [785] bitmap_plot::vera_vram_address01_$0 = byte0  bitmap_plot::vera_vram_address01_bankaddr#0
  [786] *VERA_ADDRX_L = bitmap_plot::vera_vram_address01_$0
  [787] bitmap_plot::vera_vram_address01_$1 = byte1  bitmap_plot::vera_vram_address01_bankaddr#0
  [788] *VERA_ADDRX_M = bitmap_plot::vera_vram_address01_$1
  [789] bitmap_plot::vera_vram_address01_$3 = byte2  bitmap_plot::vera_vram_address01_bankaddr#0
  [790] *VERA_ADDRX_H = bitmap_plot::vera_vram_address01_$3
  to:bitmap_plot::@3
bitmap_plot::@3: scope:[bitmap_plot]  from bitmap_plot::vera_vram_address01
  [791] bitmap_plot::$15 = __bitmap_plot_bitmask + bitmap_plot::x#4
  [792] bitmap_plot::$6 = ~ *bitmap_plot::$15
  [793] bitmap_plot::$7 = *VERA_DATA0 & bitmap_plot::$6
  [794] bitmap_plot::$8 = bitmap_plot::$7 | bitmap_plot::c#0
  [795] *VERA_DATA0 = bitmap_plot::$8
  to:bitmap_plot::@return
bitmap_plot::@return: scope:[bitmap_plot]  from bitmap_plot::@3
  [796] return 
  to:@return

void clearline()
clearline: scope:[clearline]  from insertup::@3
  [797] *VERA_CTRL = *VERA_CTRL & ~VERA_ADDRSEL
  [798] clearline::$5 = conio_screen_layer << 1
  [799] clearline::addr#0 = CONIO_SCREEN_TEXT#12 + conio_line_text[clearline::$5]
  [800] clearline::$1 = byte0  clearline::addr#0
  [801] *VERA_ADDRX_L = clearline::$1
  [802] clearline::$2 = byte1  clearline::addr#0
  [803] *VERA_ADDRX_M = clearline::$2
  [804] *VERA_ADDRX_H = VERA_INC_1
  [805] vera_layer_get_color::layer#1 = conio_screen_layer
  [806] call vera_layer_get_color
  [807] vera_layer_get_color::return#4 = vera_layer_get_color::return#3
  to:clearline::@4
clearline::@4: scope:[clearline]  from clearline
  [808] clearline::color#0 = vera_layer_get_color::return#4
  to:clearline::@1
clearline::@1: scope:[clearline]  from clearline::@2 clearline::@4
  [809] clearline::c#2 = phi( clearline::@2/clearline::c#1, clearline::@4/0 )
  [810] if(clearline::c#2<conio_screen_width) goto clearline::@2
  to:clearline::@3
clearline::@3: scope:[clearline]  from clearline::@1
  [811] conio_cursor_x[conio_screen_layer] = 0
  to:clearline::@return
clearline::@return: scope:[clearline]  from clearline::@3
  [812] return 
  to:@return
clearline::@2: scope:[clearline]  from clearline::@1
  [813] *VERA_DATA0 = ' '
  [814] *VERA_DATA0 = clearline::color#0
  [815] clearline::c#1 = ++ clearline::c#2
  to:clearline::@1
