Compound data type: Difference between revisions

Content added Content deleted
m (→‎{{header|6502 Assembly}}: fixed typo and general formatting)
Line 48: Line 48:
NESASM3 syntax:
NESASM3 syntax:
<lang 6502asm>MAX_POINT_OBJECTS = 64 ; define a constant
<lang 6502asm>MAX_POINT_OBJECTS = 64 ; define a constant

.rsset $0400 ; reserve memory storage starting at address $0400
.rsset $0400 ; reserve memory storage starting at address $0400
point_x .rs MAX_POINT_OBJECTS ; reserve 64 bytes for x-coordinates
point_x .rs MAX_POINT_OBJECTS ; reserve 64 bytes for x-coordinates
Line 54: Line 55:
VASM syntax:
VASM syntax:
<lang 6502asm>MAX_POINT_OBJECTS equ 64
<lang 6502asm>MAX_POINT_OBJECTS equ 64

point_ram equ $0400
point_ram equ $0400
point_x equ point_ram
point_x equ point_ram
point_y .rs point_ram+MAX_POINT_OBJECTS</lang>
point_y equ point_ram+MAX_POINT_OBJECTS</lang>


=={{header|ActionScript}}==
=={{header|ActionScript}}==