ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 1.
Hexadecimal [16-Bits]



                              1 ;;-----------------------------LICENSE NOTICE------------------------------------
                              2 ;;  This file is part of Cosmic Gatlin: An Amstrad CPC Game 
                              3 ;;  Authors: 
                              4 ;;      Javier Botella Martínez (@javierbotella)
                              5 ;;      Francesc Martinez Torregrosa (@mellamofrancesc)
                              6 ;;
                              7 ;;  This program is free software: you can redistribute it and/or modify
                              8 ;;  it under the terms of the GNU Lesser General Public License as published by
                              9 ;;  the Free Software Foundation, either version 3 of the License, or
                             10 ;;  (at your option) any later version.
                             11 ;;
                             12 ;;  This program is distributed in the hope that it will be useful,
                             13 ;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
                             14 ;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                             15 ;;  GNU Lesser General Public License for more details.
                             16 ;;
                             17 ;;  You should have received a copy of the GNU Lesser General Public License
                             18 ;;  along with this program.  If not, see <http://www.gnu.org/licenses/>.
                             19 ;;------------------------------------------------------------------------------
                             20 
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 2.
Hexadecimal [16-Bits]



                             21 .include "generator.h.s"
                              1 ;;-----------------------------LICENSE NOTICE------------------------------------
                              2 ;;  This file is part of Cosmic Gatlin: An Amstrad CPC Game 
                              3 ;;  Authors: 
                              4 ;;      Javier Botella Martínez (@javierbotella)
                              5 ;;      Francesc Martinez Torregrosa (@mellamofrancesc)
                              6 ;;
                              7 ;;  This program is free software: you can redistribute it and/or modify
                              8 ;;  it under the terms of the GNU Lesser General Public License as published by
                              9 ;;  the Free Software Foundation, either version 3 of the License, or
                             10 ;;  (at your option) any later version.
                             11 ;;
                             12 ;;  This program is distributed in the hope that it will be useful,
                             13 ;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
                             14 ;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                             15 ;;  GNU Lesser General Public License for more details.
                             16 ;;
                             17 ;;  You should have received a copy of the GNU Lesser General Public License
                             18 ;;  along with this program.  If not, see <http://www.gnu.org/licenses/>.
                             19 ;;------------------------------------------------------------------------------
                             20 
                             21 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             22 ;;  CONSTANTS
                             23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             24 
                     0019    25 InitMaxTime2Generate=25
                     0014    26 MinTime2Generate=20
                             27 
                     000A    28 InitMinNumberEnemies=10
                     0032    29 MaxNumberEnemies=50
                             30 
                     0001    31 SubTime2Generate=1
                     0005    32 AddNumberEnemies=5
                             33 
                     0014    34 SpeedUp1=20
                     0028    35 SpeedUp2=40
                             36 
                             37 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             38 ;;  PUBLIC FUNCTIONS
                             39 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             40 
                             41 .globl sysGeneratorInit
                             42 .globl sysGeneratorInitGame
                             43 .globl sysGeneratorInitGameOver
                             44 .globl sysGeneratorInitGameOver2
                             45 .globl sysGeneratorInitMenu2
                             46 .globl sysGeneratorInitMenu
                             47 .globl sysGeneratorInitMenuCredit
                             48 .globl sysGeneratorMenuErase
                             49 .globl sysGeneratorMenuSpace
                             50 .globl sysGeneratorMenuInsertCoin
                             51 .globl sysGeneratorUpdate
                             52 .globl sysGeneratorBulletCreator
                             53 .globl sysGeneratorPU
                             54 .globl sysGeneratorExp1
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 3.
Hexadecimal [16-Bits]



                             55 .globl sysGeneratorExp2
                             56 .globl sysGeneratorExp3
                             57 .globl sysGeneratorExp4
                             58 .globl sysGeneratorStar
                             59 
                             60 .globl sysGeneratorSetEnemy1
                             61 .globl sysGeneratorSetEnemy2
                             62 .globl sysGeneratorSetEnemy3
                             63 .globl sysGeneratorSetEnemy3Full
                             64 .globl sysGeneratorSetBoolEnemy3Full
                             65 
                             66 .globl _spr_idle
                             67 .globl _spr_idle2
                             68 .globl _spr_down1
                             69 .globl _spr_down2
                             70 .globl _spr_up1
                             71 .globl _spr_up2
                             72 
                             73 .globl _spr_jetpack1
                             74 .globl _spr_jetpack2
                             75 .globl _spr_jetpack3
                             76 
                             77 .globl _spr_robo
                             78 .globl _spr_robo2
                             79 .globl _spr_robo3
                             80 
                             81 .globl _spr_octo
                             82 .globl _spr_octo2
                             83 
                             84 .globl _spr_drone
                             85 .globl _spr_drone2
                             86 
                             87 .globl _spr_newdrone1
                             88 .globl _spr_newdrone2
                             89 .globl _spr_newdrone3
                             90 
                             91 .globl _spr_knight1
                             92 .globl _spr_knight2
                             93 .globl _spr_knight3
                             94 
                             95 .globl _spr_newrobot1
                             96 .globl _spr_newrobot2
                             97 .globl _spr_newrobot3
                             98 .globl _spr_newrobot4
                             99 
                            100 .globl _spr_ffirehs
                            101 .globl _spr_ffirehs2
                            102 
                            103 .globl _spr_doblescore1
                            104 .globl _spr_doblescore2
                            105 
                            106 .globl _spr_powerup1
                            107 .globl _spr_powerup2
                            108 .globl _spr_powerup3
                            109 .globl _spr_powerup4
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 4.
Hexadecimal [16-Bits]



                            110 .globl _spr_powerup5
                            111 .globl _spr_powerup6
                            112 .globl _spr_powerup7
                            113 .globl _spr_powerup8
                            114 
                            115 .globl _spr_floor1
                            116 .globl _spr_floor2
                            117 .globl _spr_floor3
                            118 
                            119 .globl _spr_floor11
                            120 .globl _spr_floor22
                            121 .globl _spr_floor33
                            122 
                            123 .globl _spr_rainbow
                            124 .globl _spr_wobniar
                            125 
                            126 .globl _spr_hud_0
                            127 .globl _spr_hud_1
                            128 .globl _spr_hud_2
                            129 .globl _spr_hud_3
                            130 
                            131 .globl _spr_stars0
                            132 .globl _spr_stars1
                            133 .globl _spr_stars2
                            134 .globl _spr_stars3
                            135 
                            136 .globl _spr_explosion10
                            137 .globl _spr_explosion11
                            138 .globl _spr_explosion12
                            139 .globl _spr_explosion13
                            140 .globl _spr_explosion14
                            141 
                            142 .globl _spr_explosion20
                            143 .globl _spr_explosion21
                            144 .globl _spr_explosion22
                            145 .globl _spr_explosion23
                            146 .globl _spr_explosion24
                            147 
                            148 .globl _spr_explosion30
                            149 .globl _spr_explosion31
                            150 .globl _spr_explosion32
                            151 .globl _spr_explosion33
                            152 .globl _spr_explosion34
                            153 
                            154 .globl _spr_explosion40
                            155 .globl _spr_explosion41
                            156 .globl _spr_explosion42
                            157 .globl _spr_explosion43
                            158 .globl _spr_explosion44
                            159 
                            160 .globl _spr_marcoleft
                            161 .globl _spr_marcoright 
                            162 .globl _spr_marcobot_0
                            163 .globl _spr_marcotop_0
                            164 .globl _spr_marcobot_1
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 5.
Hexadecimal [16-Bits]



                            165 .globl _spr_marcotop_1
                            166 
                            167 .globl _spr_cosmic1
                            168 .globl _spr_gatlin
                            169 .globl _spr_hashtag
                            170 .globl _spr_highscore
                            171 .globl _spr_francesc
                            172 .globl _spr_javier
                            173 .globl _spr_insert
                            174 .globl _spr_credit0
                            175 .globl _spr_credit1
                            176 
                            177 .globl _spr_continue
                            178 .globl _spr_gameover
                            179 .globl _spr_space
                            180 .globl _spr_star
                            181 .globl _spr_star2
                            182 .globl _spr_star3
                            183 
                            184 
                            185 
                            186 .globl initStars
                            187 .globl initEnemy1
                            188 .globl initEnemy2
                            189 .globl initEnemy3
                            190 .globl initEnemy4
                            191 .globl initEnemy5
                            192 .globl initEnemy6
                            193 .globl initEnemy7
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 6.
Hexadecimal [16-Bits]



                             22 .include "animations.h.s"
                              1 ;;-----------------------------LICENSE NOTICE------------------------------------
                              2 ;;  This file is part of Cosmic Gatlin: An Amstrad CPC Game 
                              3 ;;  Authors: 
                              4 ;;      Javier Botella Martínez (@javierbotella)
                              5 ;;      Francesc Martinez Torregrosa (@mellamofrancesc)
                              6 ;;
                              7 ;;  This program is free software: you can redistribute it and/or modify
                              8 ;;  it under the terms of the GNU Lesser General Public License as published by
                              9 ;;  the Free Software Foundation, either version 3 of the License, or
                             10 ;;  (at your option) any later version.
                             11 ;;
                             12 ;;  This program is distributed in the hope that it will be useful,
                             13 ;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
                             14 ;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                             15 ;;  GNU Lesser General Public License for more details.
                             16 ;;
                             17 ;;  You should have received a copy of the GNU Lesser General Public License
                             18 ;;  along with this program.  If not, see <http://www.gnu.org/licenses/>.
                             19 ;;------------------------------------------------------------------------------
                             20 
                             21 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             22 ;;  CONSTANTS
                             23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             24 
                     0003    25 AnimSize=3
                             26 
                     0002    27 SpeedFloor1=2
                     0002    28 SpeedFloor11=2
                     0003    29 SpeedExp=3
                             30 
                             31 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             32 ;;  PUBLIC FUNCTIONS
                             33 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             34 
                             35 .globl sysAnimationsUpdate
                             36 .globl animationPlayer
                             37 .globl animationPlayerDown
                             38 .globl animationPlayerUp
                             39 .globl animationPlayerJetpack
                             40 .globl animationEnemy1
                             41 .globl animationEnemy2
                             42 .globl animationEnemy3
                             43 .globl animationEnemy4
                             44 .globl animationEnemy5_1
                             45 .globl animationEnemy5_2
                             46 .globl animationEnemy6_1
                             47 .globl animationEnemy6_2
                             48 .globl animationEnemy7
                             49 .globl animationPUScore
                             50 .globl animationPUBullet
                             51 .globl animationFloor1
                             52 .globl animationFloor11
                             53 .globl animationExplosion1
                             54 .globl animationExplosion2
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 7.
Hexadecimal [16-Bits]



                             55 .globl animationExplosion3
                             56 .globl animationExplosion4
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 8.
Hexadecimal [16-Bits]



                             23 .include "../man/entity.h.s"
                              1 ;;-----------------------------LICENSE NOTICE------------------------------------
                              2 ;;  This file is part of Cosmic Gatlin: An Amstrad CPC Game 
                              3 ;;  Authors: 
                              4 ;;      Javier Botella Martínez (@javierbotella)
                              5 ;;      Francesc Martinez Torregrosa (@mellamofrancesc)
                              6 ;;
                              7 ;;  This program is free software: you can redistribute it and/or modify
                              8 ;;  it under the terms of the GNU Lesser General Public License as published by
                              9 ;;  the Free Software Foundation, either version 3 of the License, or
                             10 ;;  (at your option) any later version.
                             11 ;;
                             12 ;;  This program is distributed in the hope that it will be useful,
                             13 ;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
                             14 ;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                             15 ;;  GNU Lesser General Public License for more details.
                             16 ;;
                             17 ;;  You should have received a copy of the GNU Lesser General Public License
                             18 ;;  along with this program.  If not, see <http://www.gnu.org/licenses/>.
                             19 ;;------------------------------------------------------------------------------
                             20 
                             21 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             22 ;;  CONSTANTS
                             23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             24 
                             25     ;; ENTITY INFO
                     001C    26 EntitySize=28 
                     0028    27 EntityArraySize=40
                     0460    28 EntityArrayBytesSize=EntitySize*EntityArraySize
                             29 
                     0028    30 Fila1=40
                     0050    31 Fila2=Fila1+40
                     0078    32 Fila3=Fila2+40
                             33 
                     000D    34 Offset=12+1
                             35 
                     001B    36 EFila1=Fila1-Offset
                     0043    37 EFila2=Fila2-Offset
                     006B    38 EFila3=Fila3-Offset
                             39 
                             40     ;; INDEX FOR IX/IY
                     0000    41 indType=0
                     0001    42 indX=1
                     0002    43 indY=2
                     0003    44 indVx=3
                     0004    45 indVy=4
                     0005    46 indWidth=5
                     0006    47 indHeight=6
                     0007    48 indAI2=7
                     0008    49 indAI1=8
                     0009    50 indColision2=9
                     000A    51 indColision1=10
                     000B    52 indPhysics2=11
                     000C    53 indPhysics1=12
                     000D    54 indSprite2=13
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 9.
Hexadecimal [16-Bits]



                     000E    55 indSprite1=14
                     000F    56 indPrevPos2=15
                     0010    57 indPrevPos1=16
                     0011    58 indScore=17
                     0012    59 indSubType=18
                     0013    60 indAnim2=19
                     0014    61 indAnim1=20
                     0015    62 indAnimCounter=21
                     0016    63 indAnimActual=22
                     0017    64 indActualPos2=23
                     0018    65 indActualPos1=24
                     0019    66 indAICounter=25
                     001A    67 indDelWitdh=26
                     001B    68 indDelHeight=27
                             69 
                             70     ;; ENTITY TYPES
                     0000    71 ETypeInvalid=0x00
                     0001    72 ETypeRenderable=0x01
                     0002    73 ETypeMovable=0x02
                     0004    74 ETypeInput=0x04
                     0008    75 ETypeAI=0x08
                     0010    76 ETypeColisionable=0x10
                     0020    77 ETypeColider=0x20
                     0040    78 ETypeAnimated=0x40
                     0080    79 ETypeDead=0x80
                     007F    80 ETypeDefault=0x7f
                             81 
                     0001    82 AITypeEnemy=0x01
                     0002    83 AITypePU=0x02
                     0004    84 AITypeBullet=0x04
                     0008    85 AITypeInmortal=0x08
                             86 
                     0010    87 RenderTypeStatic=0x10
                             88 
                             89 
                             90 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             91 ;;  PUBLIC FUNCTIONS
                             92 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             93 
                             94 .globl manEntityInit
                             95 .globl manEntityCreate
                             96 .globl manEntityDestroy
                             97 .globl manEntityMarkToDestroy
                             98 .globl manEntityDestroyDead
                             99 .globl manEntityForAll
                            100 .globl manEntityForAllMatching
                            101 .globl getFreeSpace
                            102 .globl getNextFreeEntity
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 10.
Hexadecimal [16-Bits]



                             24 .include "../man/game.h.s"
                              1 ;;-----------------------------LICENSE NOTICE------------------------------------
                              2 ;;  This file is part of Cosmic Gatlin: An Amstrad CPC Game 
                              3 ;;  Authors: 
                              4 ;;      Javier Botella Martínez (@javierbotella)
                              5 ;;      Francesc Martinez Torregrosa (@mellamofrancesc)
                              6 ;;
                              7 ;;  This program is free software: you can redistribute it and/or modify
                              8 ;;  it under the terms of the GNU Lesser General Public License as published by
                              9 ;;  the Free Software Foundation, either version 3 of the License, or
                             10 ;;  (at your option) any later version.
                             11 ;;
                             12 ;;  This program is distributed in the hope that it will be useful,
                             13 ;;  but WITHOUT ANY WARRANTY; without even the implied warranty of
                             14 ;;  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                             15 ;;  GNU Lesser General Public License for more details.
                             16 ;;
                             17 ;;  You should have received a copy of the GNU Lesser General Public License
                             18 ;;  along with this program.  If not, see <http://www.gnu.org/licenses/>.
                             19 ;;------------------------------------------------------------------------------
                             20 
                             21 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             22 ;;  CONSTANTS
                             23 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             24 
                     003C    25 MaxPlayerInvulnerability=60
                     0002    26 MaxPlayerInvSubTime=2
                             27 
                     000F    28 SingleBulletTime=15
                     0005    29 MultiBulletTime=5
                     0028    30 PUTime=40
                             31 
                             32 
                             33 
                             34 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             35 ;;  PUBLIC FUNCTIONS
                             36 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                             37 
                             38 .globl manGameInit
                             39 .globl manGamePlay
                             40 .globl manGameBulletCreator
                             41 .globl manGamePlayerColision
                             42 .globl manGamePUBulletColision
                             43 .globl manGamePUScoreColision
                             44 
                             45 .globl manGameScore
                             46 .globl manGameSubScore
                             47 .globl manGameGetHighscore
                             48 
                             49 .globl waitHalt
                             50 
                             51 
                             52 
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 11.
Hexadecimal [16-Bits]



                             25 
                             26 
   81E8                      27 animationPlayer:
   81E8 05                   28     .db #5                  ;;actual=0
   81E9 6E 64                29     .dw #_spr_idle
   81EB 05                   30     .db #5                  ;;actual=3
   81EC 2E 64                31     .dw #_spr_idle2
   81EE 00                   32     .db #0
   81EF E8 81                33     .dw #animationPlayer
                             34 
   81F1                      35 animationPlayerJetpack:
   81F1 05                   36     .db #5                  ;;actual=0
   81F2 EE 62                37     .dw #_spr_jetpack1
   81F4 05                   38     .db #5                  ;;actual=3
   81F5 AE 62                39     .dw #_spr_jetpack2
   81F7 05                   40     .db #5                  ;;actual=6
   81F8 6E 62                41     .dw #_spr_jetpack3
   81FA 00                   42     .db #0
   81FB E8 81                43     .dw #animationPlayer
                             44 
   81FD                      45 animationPlayerDown:
   81FD 0A                   46     .db #10                  ;;actual=3
   81FE AE 63                47     .dw #_spr_down2
   8200 00                   48     .db #0
   8201 FD 81                49     .dw #animationPlayerDown
                             50 
   8203                      51 animationPlayerUp:
   8203 0A                   52     .db #10                  ;;actual=3
   8204 2E 63                53     .dw #_spr_up2
   8206 00                   54     .db #0
   8207 03 82                55     .dw #animationPlayerUp
                             56 
   8209                      57 animationEnemy1:
   8209 05                   58     .db #5                  ;;actual=0
   820A 0E 62                59     .dw #_spr_drone
   820C 05                   60     .db #5                  ;;actual=3
   820D AE 61                61     .dw #_spr_drone2
   820F 00                   62     .db #0
   8210 09 82                63     .dw #animationEnemy1
                             64 
   8212                      65 animationEnemy2:
   8212 05                   66     .db #5                 
   8213 5E 61                67     .dw #_spr_octo
   8215 05                   68     .db #5                 
   8216 0E 61                69     .dw #_spr_octo2
   8218 00                   70     .db #0
   8219 12 82                71     .dw #animationEnemy2
                             72 
   821B                      73 animationEnemy3:
   821B 05                   74     .db #5               
   821C AE 60                75     .dw #_spr_robo
   821E 05                   76     .db #5                  
   821F 4E 60                77     .dw #_spr_robo2
   8221 05                   78     .db #5                 
   8222 EE 5F                79     .dw #_spr_robo3
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 12.
Hexadecimal [16-Bits]



   8224 00                   80     .db #0
   8225 1B 82                81     .dw #animationEnemy3
                             82 
   8227                      83 animationEnemy4:
   8227 05                   84     .db #5               
   8228 1E 08                85     .dw #_spr_newdrone1
   822A 05                   86     .db #5                  
   822B BE 07                87     .dw #_spr_newdrone2
   822D 05                   88     .db #5                 
   822E 5E 07                89     .dw #_spr_newdrone3
   8230 00                   90     .db #0
   8231 27 82                91     .dw #animationEnemy4
                             92 
   8233                      93 animationEnemy5_1:
   8233 05                   94     .db #5                  
   8234 9E 06                95     .dw #_spr_knight2
   8236 05                   96     .db #5                 
   8237 3E 06                97     .dw #_spr_knight3
   8239 00                   98     .db #0
   823A 33 82                99     .dw #animationEnemy5_1
                            100 
   823C                     101 animationEnemy5_2:
   823C 32                  102     .db #50               
   823D FE 06               103     .dw #_spr_knight1
   823F 00                  104     .db #0
   8240 3C 82               105     .dw #animationEnemy5_2
                            106 
   8242                     107 animationEnemy6_1:
   8242 05                  108     .db #5               
   8243 DE 05               109     .dw #_spr_newrobot1
   8245 05                  110     .db #5                  
   8246 7E 05               111     .dw #_spr_newrobot2
   8248 05                  112     .db #5                 
   8249 1E 05               113     .dw #_spr_newrobot3
   824B 00                  114     .db #0
   824C 42 82               115     .dw #animationEnemy6_1
                            116 
   824E                     117 animationEnemy6_2:
   824E 32                  118     .db #50  
   824F BE 04               119     .dw #_spr_newrobot4
   8251 00                  120     .db #0
   8252 4E 82               121     .dw #animationEnemy6_2
                            122 
   8254                     123 animationEnemy7:
   8254 05                  124     .db #5  
   8255 5E 04               125     .dw #_spr_ffirehs
   8257 05                  126     .db #5  
   8258 FE 03               127     .dw #_spr_ffirehs2
   825A 00                  128     .db #0
   825B 54 82               129     .dw #animationEnemy7
                            130 
   825D                     131 animationPUScore:
   825D 05                  132     .db #5                 
   825E B2 5F               133     .dw #_spr_doblescore1
   8260 05                  134     .db #5                 
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 13.
Hexadecimal [16-Bits]



   8261 76 5F               135     .dw #_spr_doblescore2
   8263 00                  136     .db #0
   8264 5D 82               137     .dw #animationPUScore
                            138 
   8266                     139 animationPUBullet:
   8266 05                  140     .db #5                 
   8267 3A 5F               141     .dw #_spr_powerup1
   8269 05                  142     .db #5                 
   826A FE 5E               143     .dw #_spr_powerup2
   826C 05                  144     .db #5                 
   826D C2 5E               145     .dw #_spr_powerup3
   826F 05                  146     .db #5                 
   8270 86 5E               147     .dw #_spr_powerup4
   8272 05                  148     .db #5                 
   8273 4A 5E               149     .dw #_spr_powerup5
   8275 05                  150     .db #5                 
   8276 0E 5E               151     .dw #_spr_powerup6
   8278 05                  152     .db #5                 
   8279 D2 5D               153     .dw #_spr_powerup7
   827B 05                  154     .db #5                 
   827C 96 5D               155     .dw #_spr_powerup8
   827E 00                  156     .db #0
   827F 66 82               157     .dw #animationPUBullet
                            158 
   8281                     159 animationFloor1:
   8281 02                  160     .db #SpeedFloor1              
   8282 2E 4A               161     .dw #_spr_floor1
   8284 02                  162     .db #SpeedFloor1                  
   8285 76 48               163     .dw #_spr_floor2
   8287 02                  164     .db #SpeedFloor1                 
   8288 BE 46               165     .dw #_spr_floor3
   828A 00                  166     .db #0
   828B 81 82               167     .dw #animationFloor1
                            168 
   828D                     169 animationFloor11:
   828D 02                  170     .db #SpeedFloor11               
   828E 06 45               171     .dw #_spr_floor11
   8290 02                  172     .db #SpeedFloor11                  
   8291 4E 43               173     .dw #_spr_floor22
   8293 02                  174     .db #SpeedFloor11                 
   8294 96 41               175     .dw #_spr_floor33
   8296 00                  176     .db #0
   8297 8D 82               177     .dw #animationFloor11
                            178 
   8299                     179 animationExplosion1:
   8299 03                  180     .db #SpeedExp                  
   829A 96 2F               181     .dw #_spr_explosion11
   829C 03                  182     .db #SpeedExp          
   829D 56 2F               183     .dw #_spr_explosion12
   829F 03                  184     .db #SpeedExp          
   82A0 16 2F               185     .dw #_spr_explosion13
   82A2 03                  186     .db #SpeedExp          
   82A3 D6 2E               187     .dw #_spr_explosion14
                            188 
   82A5                     189 animationExplosion2:
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 14.
Hexadecimal [16-Bits]



   82A5 03                  190     .db #SpeedExp                  
   82A6 56 2E               191     .dw #_spr_explosion21
   82A8 03                  192     .db #SpeedExp          
   82A9 16 2E               193     .dw #_spr_explosion22
   82AB 03                  194     .db #SpeedExp          
   82AC D6 2D               195     .dw #_spr_explosion23
   82AE 03                  196     .db #SpeedExp          
   82AF 96 2D               197     .dw #_spr_explosion24
                            198 
   82B1                     199 animationExplosion3:
   82B1 03                  200     .db #SpeedExp                  
   82B2 16 2D               201     .dw #_spr_explosion31
   82B4 03                  202     .db #SpeedExp          
   82B5 D6 2C               203     .dw #_spr_explosion32
   82B7 03                  204     .db #SpeedExp          
   82B8 96 2C               205     .dw #_spr_explosion33
   82BA 03                  206     .db #SpeedExp          
   82BB 56 2C               207     .dw #_spr_explosion34
                            208 
   82BD                     209 animationExplosion4:
   82BD 03                  210     .db #SpeedExp                  
   82BE 36 2C               211     .dw #_spr_explosion41
   82C0 03                  212     .db #SpeedExp          
   82C1 26 2C               213     .dw #_spr_explosion42
   82C3 03                  214     .db #SpeedExp          
   82C4 16 2C               215     .dw #_spr_explosion43
   82C6 03                  216     .db #SpeedExp          
   82C7 06 2C               217     .dw #_spr_explosion44
                            218 
                            219 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                            220 ;;      sysAnimationsUpdateOne
                            221 ;; Requisitos:
                            222 ;;      ix -> Posicion inicial de memoria de la entidad colisionable
                            223 ;; Return:
                            224 ;;    -
                            225 ;; Descripcion:
                            226 ;;    Comprueba si dos entidades han colisionado o no
                            227 ;;
   82C9                     228 sysAnimationsUpdateOne:
                            229 
   82C9 DD 35 15      [23]  230     dec indAnimCounter(ix)
                            231     
   82CC C0            [11]  232     ret nz 
                            233 
   82CD DD 7E 16      [19]  234     ld a, indAnimActual(ix)
   82D0 06 03         [ 7]  235     ld b, #AnimSize
   82D2 80            [ 4]  236     add a, b
   82D3 DD 77 16      [19]  237     ld indAnimActual(ix), a
                            238 
   82D6                     239 loadAnim:
                            240 
   82D6 DD 66 14      [19]  241     ld h, indAnim1(ix)
   82D9 DD 6E 13      [19]  242     ld l, indAnim2(ix)
   82DC 06 00         [ 7]  243     ld b, #0
   82DE DD 4E 16      [19]  244     ld c, indAnimActual(ix)
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 15.
Hexadecimal [16-Bits]



                            245 
   82E1 09            [11]  246     add hl, bc      ;; hl=nextSprite
                            247 
   82E2 7E            [ 7]  248     ld a, (hl)
   82E3 B7            [ 4]  249     or a
                            250     
   82E4 CA F5 82      [10]  251     jp z, resetAnim
                            252 
   82E7 DD 77 15      [19]  253     ld indAnimCounter(ix), a
                            254 
   82EA 23            [ 6]  255     inc hl
   82EB 7E            [ 7]  256     ld a, (hl)
   82EC DD 77 0D      [19]  257     ld indSprite2(ix), a
   82EF 23            [ 6]  258     inc hl
   82F0 7E            [ 7]  259     ld a, (hl)
   82F1 DD 77 0E      [19]  260     ld indSprite1(ix), a
                            261 
   82F4 C9            [10]  262     ret
                            263 
   82F5                     264 resetAnim:
                            265 
   82F5 DD 36 16 00   [19]  266     ld indAnimActual(ix), #0
   82F9 C3 D6 82      [10]  267     jp loadAnim
                            268 
                            269 
                            270 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
                            271 ;; sysAnimationsUpdate
                            272 ;; Requisitos:
                            273 ;;    -
                            274 ;; Return:
                            275 ;;    -
                            276 ;; Descripcion:
                            277 ;;    Inversion de control para la colision de todas las entidades.
                            278 ;;
   82FC                     279 sysAnimationsUpdate::
                            280 
   82FC 21 C9 82      [10]  281     ld hl, #sysAnimationsUpdateOne
   82FF 3E 40         [ 7]  282     ld a, #ETypeAnimated
   8301 CD 2F 71      [17]  283     call manEntityForAll
                            284 
   8304 C9            [10]  285 ret
