
.include "cpctelera.h.s"
.include "cpct_functions.h.s"
.include "man/game.h.s"
.include "man/menu.h.s"
.include "sys/render.h.s"
.include "assets/assets.h.s"


.module main

.area _DATA

.area _CODE








_main::

   call cpct_disableFirmware_asm

   call man_menu_init
   call man_menu_play
  
   call man_game_init


loop:

   call man_game_update

   call cpct_waitVSYNC_asm
   call man_game_render
   jr loop
