
void main()
main: scope:[main]  from
  [0] phi()
  to:main::SEI1
main::SEI1: scope:[main]  from main
  asm { sei  }
  to:main::@11
main::@11: scope:[main]  from main::SEI1
  [2] phi()
  [3] call memoryRemap
  to:main::@12
main::@12: scope:[main]  from main::@11
  [4] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLB) = *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLB) | $40
  [5] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLC) = *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLC) | $40
  [6] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_KEY) = $47
  [7] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_KEY) = $53
  [8] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_SIDBDRWD_LO) = 0
  [9] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_SIDBDRWD_HI) = 0
  [10] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_TBDRPOS_LO) = 0
  [11] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_TBDRPOS_HI) = 0
  [12] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_BBDRPOS_LO) = 0
  [13] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_BBDRPOS_HI) = 2
  [14] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLC) = *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLC) | 1
  [15] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLB) = *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CONTROLB) & $7f
  [16] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CHARSTEP_LO) = $5a
  [17] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CHARSTEP_HI) = 0
  [18] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_TEXTXPOS_LO) = $28
  [19] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_TEXTXPOS_HI) = 0
  [20] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CHRCOUNT) = $2d
  [21] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_SCRNPTR_LOLO) = 0
  [22] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_SCRNPTR_LOHI) = byte1 SCREEN
  [23] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_SCRNPTR_HILO) = 0
  [24] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_SCRNPTR_HIHI) = 0
  [25] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CHARPTR_LOLO) = 0
  [26] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CHARPTR_LOHI) = byte1 CHARSET
  [27] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_CHARPTR_HILO) = 0
  [28] call memset_dma
  to:main::@13
main::@13: scope:[main]  from main::@12
  [29] phi()
  [30] call memset_dma256
  to:main::@14
main::@14: scope:[main]  from main::@13
  [31] phi()
  [32] call memset_dma
  to:main::@1
main::@1: scope:[main]  from main::@14 main::@5
  [33] main::erow#5 = phi( main::@14/SCREEN, main::@5/main::erow#1 )
  [33] main::r#2 = phi( main::@14/0, main::@5/main::r#1 )
  [34] if(main::r#2<$19) goto main::@2
  to:main::@6
main::@6: scope:[main]  from main::@1 main::@9
  [35] main::logo_dest#5 = phi( main::@9/main::logo_dest#1, main::@1/CHARSET )
  [35] main::logo_src#5 = phi( main::@9/main::logo_src#1, main::@1/LOGO )
  [35] main::col#2 = phi( main::@9/main::col#1, main::@1/0 )
  [36] if(main::col#2<$2d) goto main::@7
  to:main::@10
main::@10: scope:[main]  from main::@10 main::@6
  [37] *((char *)VICIV+OFFSET_STRUCT_MEGA65_VICIV_BG_COLOR) = *((char *)VICII+OFFSET_STRUCT_MOS6569_VICII_RASTER)
  to:main::@10
main::@7: scope:[main]  from main::@6 main::@8
  [38] main::y#2 = phi( main::@8/main::y#1, main::@6/0 )
  [39] if(main::y#2<$19*8) goto main::@8
  to:main::@9
main::@9: scope:[main]  from main::@7
  [40] main::logo_dest#1 = main::logo_dest#5 + (unsigned int)$20*8
  [41] main::logo_src#1 = main::logo_src#5 + $19*8
  [42] main::col#1 = ++ main::col#2
  to:main::@6
main::@8: scope:[main]  from main::@7
  [43] main::logo_dest#5[main::y#2] = main::logo_src#5[main::y#2]
  [44] main::y#1 = ++ main::y#2
  to:main::@7
main::@2: scope:[main]  from main::@1
  [45] main::c#0 = (unsigned int)main::r#2
  to:main::@3
main::@3: scope:[main]  from main::@2 main::@4
  [46] main::c#2 = phi( main::@2/main::c#0, main::@4/main::c#1 )
  [46] main::i#2 = phi( main::@2/0, main::@4/main::i#1 )
  [47] if(main::i#2<$2d) goto main::@4
  to:main::@5
main::@5: scope:[main]  from main::@3
  [48] main::erow#1 = main::erow#5 + $2d*SIZEOF_UNSIGNED_INT
  [49] main::r#1 = ++ main::r#2
  to:main::@1
main::@4: scope:[main]  from main::@3
  [50] main::$10 = main::i#2 << 1
  [51] main::erow#5[main::$10] = main::c#2
  [52] main::c#1 = main::c#2 + $20
  [53] main::i#1 = ++ main::i#2
  to:main::@3

void memoryRemap(char remapBlocks , unsigned int lowerPageOffset , unsigned int upperPageOffset)
memoryRemap: scope:[memoryRemap]  from main::@11
  [54] memoryRemap::aVal = 0
  [55] memoryRemap::xVal = 0
  [56] memoryRemap::yVal = 0
  [57] memoryRemap::zVal = 0
  asm { ldaaVal ldxxVal ldyyVal ldzzVal map eom  }
  to:memoryRemap::@return
memoryRemap::@return: scope:[memoryRemap]  from memoryRemap
  [59] return 
  to:@return

void memset_dma(void *dest , char fill , unsigned int num)
memset_dma: scope:[memset_dma]  from main::@12 main::@14
  [60] memset_dma::dest#2 = phi( main::@12/(void *)SCREEN, main::@14/(void *)CHARSET )
  [60] memset_dma::fill#2 = phi( main::@12/0, main::@14/$55 )
  [60] memset_dma::num#2 = phi( main::@12/(unsigned int)$2d*$19*2, main::@14/(unsigned int)$2d*$20*8 )
  [61] memset_dma::dmaMode#0 = *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_EN018B)
  [62] *((unsigned int *)&memset_dma_command+OFFSET_STRUCT_DMA_LIST_F018B_COUNT) = memset_dma::num#2
  [63] *((char **)&memset_dma_command+OFFSET_STRUCT_DMA_LIST_F018B_SRC) = (char *)memset_dma::fill#2
  [64] *((char **)&memset_dma_command+OFFSET_STRUCT_DMA_LIST_F018B_DEST) = (char *)memset_dma::dest#2
  [65] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_EN018B) = 1
  [66] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_ADDRMB) = 0
  [67] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_ADDRBANK) = 0
  [68] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_ADDRMSB) = byte1 &memset_dma_command
  [69] *((char *)DMA) = byte0 &memset_dma_command
  [70] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_EN018B) = memset_dma::dmaMode#0
  to:memset_dma::@return
memset_dma::@return: scope:[memset_dma]  from memset_dma
  [71] return 
  to:@return

void memset_dma256(char dest_mb , char dest_bank , void *dest , char fill , unsigned int num)
memset_dma256: scope:[memset_dma256]  from main::@13
  [72] memset_dma256::dmaMode#0 = *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_EN018B)
  [73] *(memset_dma_command256+1) = memset_dma256::dest_mb#0
  [74] *((unsigned int *)memset_dma256::f018b#0+OFFSET_STRUCT_DMA_LIST_F018B_COUNT) = memset_dma256::num#0
  [75] *((char *)memset_dma256::f018b#0+OFFSET_STRUCT_DMA_LIST_F018B_DEST_BANK) = memset_dma256::dest_bank#0
  [76] *((char **)memset_dma256::f018b#0+OFFSET_STRUCT_DMA_LIST_F018B_DEST) = (char *)memset_dma256::dest#0
  [77] *((char **)memset_dma256::f018b#0+OFFSET_STRUCT_DMA_LIST_F018B_SRC) = (char *)WHITE
  [78] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_EN018B) = 1
  [79] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_ADDRMB) = 0
  [80] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_ADDRBANK) = 0
  [81] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_ADDRMSB) = byte1 memset_dma_command256
  [82] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_ETRIG) = byte0 memset_dma_command256
  [83] *((char *)DMA+OFFSET_STRUCT_F018_DMAGIC_EN018B) = memset_dma256::dmaMode#0
  to:memset_dma256::@return
memset_dma256::@return: scope:[memset_dma256]  from memset_dma256
  [84] return 
  to:@return
