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



                              1 ;MIT License
                              2 
                              3 ;Copyright (c) 2021 Fedora Adventures Pixeltronics
                              4 
                              5 ;Permission is hereby granted, free of charge, to any person obtaining a copy
                              6 ;of this software and associated documentation files (the "Software"), to deal
                              7 ;in the Software without restriction, including without limitation the rights
                              8 ;to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
                              9 ;copies of the Software, and to permit persons to whom the Software is
                             10 ;furnished to do so, subject to the following conditions:
                             11 
                             12 ;The above copyright notice and this permission notice shall be included in all
                             13 ;copies or substantial portions of the Software.
                             14 
                             15 ;THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
                             16 ;IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
                             17 ;FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
                             18 ;AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
                             19 ;LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
                             20 ;OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
                             21 ;SOFTWARE.
                             22 ;;archivo de cabecera para hacer include de las funciones
                             23 ;;
                             24 .globl _fedora_sprites_00
                             25 .globl _fedora_sprites_01
                             26 
                     0011    27 entity_size = 17
                     001E    28 max_entities = 30
                             29 ;;Constantes para definir en que byte está cada dato
                             30 ;; Nuestros datos de cada entidad son:
                             31 ;; Com
                     0000    32 e_cmps = 0
                     0001    33 e_cmps_physics = 1
                     0002    34 e_h = 2
                     0003    35 e_w = 3
                     0004    36 e_vx = 4
                     0005    37 e_vy = 5
                     0006    38 e_altura_salto = 6
                     0007    39 e_maxy = 7
                             40 ;e_color = 10
                     0008    41 e_ptr_sprite = 8 ;; esto usa 2 bytes
                     000A    42 e_prev_ptr = 10  ;; puntero 2 bytes
                     000C    43 e_movimiento1 = 12
                     000D    44 e_movimiento2 = 13
                     000E    45 e_movimiento3 = 14
                     000F    46 e_x = 15
                     0010    47 e_y = 16
                             48 
                     0080    49 e_cmps_alive = 0x80
                     0040    50 e_cmps_render = 0x40
                     0020    51 e_cmps_player = 0x20
                     0010    52 e_cmps_door = 0x10
                     0008    53 e_cmps_treasure = 0x08
                     0004    54 e_cmps_platform = 0x04
                             55 
ASxxxx Assembler V02.00 + NoICE + SDCC mods  (Zilog Z80 / Hitachi HD64180), page 2.
Hexadecimal [16-Bits]



                     0080    56 e_cmps_phy_left = 0x80
                     0040    57 e_cmps_phy_right = 0x40
                     0020    58 e_cmps_phy_jumping = 0x20
                     0010    59 e_cmps_phy_falling = 0x10
                             60 
                             61 
                             62 
                             63 ;;FUNCIONES PUBLICAS
                             64 .globl getEntityInArray
                             65 .globl getNumEntities
                             66 .globl create_entity
                             67 .globl man_entity_put_player_in_ix
                             68 .globl man_entity_put_platforms_in_iy
                             69 .globl man_entity_put_treasure_in_iy
                             70 .globl man_entity_put_door_in_iy
                             71 .globl man_entity_reset
                             72 .globl man_entity_init
                             73 .globl man_map_init
                             74 .globl create_entity_1
                             75 .globl create_entity_2
                             76 ;;CONSTANTES
                             77 .globl entity_size
                             78 .globl max_entities
                             79 .globl e_cmps
                             80 .globl e_cmps_physics
                             81 .globl e_h
                             82 .globl e_w
                             83 .globl e_x
                             84 .globl e_y
                             85 .globl e_vx
                             86 .globl e_vy
                             87 .globl e_altura_salto
                             88 .globl e_maxy
                             89 ;.globl e_color
                             90 .globl e_ptr_sprite
                             91 .globl e_cmps_alive
                             92 .globl e_cmps_render
                             93 .globl e_cmps_phy_left
                             94 .globl e_cmps_phy_right
                             95 .globl e_cmps_phy_jumping
                             96 .globl e_cmps_phy_falling
                             97 .globl e_movimiento1
                             98 .globl e_movimiento2
                             99 .globl e_movimiento3
                            100 
