
void main()
main: scope:[main]  from
  [0] phi()
  [1] call keyboard_init
  to:main::@1
main::@1: scope:[main]  from main main::@1 main::@3 main::@4
  [2] if(*RASTER!=$ff) goto main::@1
  to:main::@2
main::@2: scope:[main]  from main::@1
  [3] phi()
  [4] call keyboard_key_pressed
  [5] keyboard_key_pressed::return#2 = keyboard_key_pressed::return#0
  to:main::@5
main::@5: scope:[main]  from main::@2
  [6] main::$2 = keyboard_key_pressed::return#2
  [7] if(main::$2!=0) goto main::@4
  to:main::@3
main::@3: scope:[main]  from main::@5
  [8] *BG_COLOR = BLUE
  to:main::@1
main::@4: scope:[main]  from main::@5
  [9] *BG_COLOR = GREEN
  to:main::@1

void keyboard_init()
keyboard_init: scope:[keyboard_init]  from main
  [10] *((char *)CIA1+OFFSET_STRUCT_MOS6526_CIA_PORT_A_DDR) = $ff
  [11] *((char *)CIA1+OFFSET_STRUCT_MOS6526_CIA_PORT_B_DDR) = 0
  to:keyboard_init::@return
keyboard_init::@return: scope:[keyboard_init]  from keyboard_init
  [12] return 
  to:@return

char keyboard_key_pressed(char key)
keyboard_key_pressed: scope:[keyboard_key_pressed]  from main::@2
  [13] phi()
  [14] call keyboard_matrix_read
  [15] keyboard_matrix_read::return#2 = keyboard_matrix_read::return#0
  to:keyboard_key_pressed::@1
keyboard_key_pressed::@1: scope:[keyboard_key_pressed]  from keyboard_key_pressed
  [16] keyboard_key_pressed::$2 = keyboard_matrix_read::return#2
  [17] keyboard_key_pressed::return#0 = keyboard_key_pressed::$2 & *(keyboard_matrix_col_bitmask+keyboard_key_pressed::colidx#0)
  to:keyboard_key_pressed::@return
keyboard_key_pressed::@return: scope:[keyboard_key_pressed]  from keyboard_key_pressed::@1
  [18] return 
  to:@return

char keyboard_matrix_read(char rowid)
keyboard_matrix_read: scope:[keyboard_matrix_read]  from keyboard_key_pressed
  [19] *((char *)CIA1) = *(keyboard_matrix_row_bitmask+keyboard_key_pressed::rowidx#0)
  [20] keyboard_matrix_read::return#0 = ~ *((char *)CIA1+OFFSET_STRUCT_MOS6526_CIA_PORT_B)
  to:keyboard_matrix_read::@return
keyboard_matrix_read::@return: scope:[keyboard_matrix_read]  from keyboard_matrix_read
  [21] return 
  to:@return
