home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
World of A1200
/
World_Of_A1200.iso
/
programs
/
develop
/
adev11
/
struct.inc
< prev
next >
Wrap
Text File
|
1995-02-27
|
2KB
|
99 lines
MACRO STRUCTURE structure name
{1} EQU 0
SOFFSET SET 0
ENDM
MACRO BOOL boolean (8 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+1
ENDM
MACRO BYTE byte (8 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+1
ENDM
MACRO UBYTE unsigned byte (8 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+1
ENDM
MACRO WORD word (16 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+2
ENDM
MACRO UWORD unsigned word (16 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+2
ENDM
MACRO LONG long (32 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+4
ENDM
MACRO ULONG unsigned long (32 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+4
ENDM
MACRO FLOAT C float (32 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+4
ENDM
MACRO LABEL Define a label without bumping the offset
{1} EQU SOFFSET
ENDM
MACRO STRUCT Define a sub-structure
{1} EQU SOFFSET
SOFFSET SET SOFFSET+{1}_SIZE
ENDM
MACRO BOOL_ARRAY boolean (8 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+1*{2}
ENDM
MACRO BYTE_ARRAY byte (8 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+1*{2}
ENDM
MACRO UBYTE_ARRAY unsigned byte (8 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+1*{2}
ENDM
MACRO WORD_ARRAY word (16 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+2*{2}
ENDM
MACRO UWORD_ARRAY unsigned word (16 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+2*{2}
ENDM
MACRO LONG_ARRAY long (32 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+4*{2}
ENDM
MACRO ULONG_ARRAY unsigned long (32 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+4*{2}
ENDM
MACRO FLOAT_ARRAY C float (32 bits)
{1} EQU SOFFSET
SOFFSET SET SOFFSET+4*{2}
ENDM
MACRO STRUCT_ARRAY Define a sub-structure
{1} EQU SOFFSET
SOFFSET SET SOFFSET+{1}_SIZE*{2}
ENDM