I have some basic questions (much time not using ASM), maybe someone can help me:
- If I don't define struct, I have to access by offset?. i.e.
player db 0 ; x db 0 ; y db .... ; more data
So to access player.y it is done by
(player+1)
- Using something like this topic
http://www.msx.org/forum/msx-talk/development/sjasm-042-and-structs
map 0xc000
; other variables
dxmap #1
xmap #2
yship #1
xship #2
aniframe #1
anispeed #1
ram_sat #128
; struct declared
struct enemy_data
y db 0
x dw 0
status db 0
ends
; actual enemy data - at least in my idea ;-)
enemies: #enemy_data*24
end_of_enemies #0
endmap
Is there a way to access the enemies array by index?, something like
enemies[4].status
Thanks.
Login or register to post comments

I am curious