;;-----------------------------LICENSE NOTICE------------------------------------
;;  This file is part of Viking Hangover
;;  Copyright (C) 2021 Ahmed Begga / Érika Moreno / Adriana Morejón (@ComputosGame)
;;
;;  This program is free software: you can redistribute it and/or modify
;;  it under the terms of the GNU Lesser General Public License as published by
;;  the Free Software Foundation, either version 3 of the License, or
;;  (at your option) any later version.
;;
;;  This program is distributed in the hope that it will be useful,
;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
;;  GNU Lesser General Public License for more details.
;;
;;  You should have received a copy of the GNU Lesser General Public License
;;  along with this program.  If not, see <http://www.gnu.org/licenses/>.
;;-------------------------------------------------------------------------------
.include "cpctelera.h.s"
.include "man/game.h.s"
.include "man/menu.h.s"
.include "songGame.h.s"
.area _DATA
.area _CODE
_main::

   call cpct_disableFirmware_asm
_reset::
   call cpct_cleanScreen_asm

   ld de, #_cancion2
   call cpct_akp_musicInit_asm

   call man_menu_init
   call man_menu_run

   call cpct_akp_stop_asm

   ld de, #_cancion2
   call cpct_akp_musicInit_asm

   call man_game_init
   call man_game_play