# Development ## How-Tos * [[amiga:amigaos:xpk|XPK]] meta-compression library * [[amiga:amigaos:input_handling|Input Handling]] ### Define data structures in assembler This is a macro defined in [`exec/types.i`](https://d0.se/include/exec/types.i) that allows you to build offsets to things: http://eab.abime.net/showpost.php?p=1278588&postcount=2 ```asm STRUCTURE MyStruct,0 ; Create a MyStruct constant with the value 0 LONG SuperCat ; SuperCat EQU 0 LONG SuperDog ; SuperDog EQU 4 WORD Bird ; Bird EQU 8 APTR OtherThing ; OtherThing EQU 10 ``` Here's the list of all of the STRUCTURE, BITDEF, and ENUM macros, so I can stop opening `types.i` all the time: ```asm STRUCTURE , ; => EQU FPTR/APTR/BPTR