those of you who are regulars around these parts will haave noticed that i'm attempting to get adoom to compile in gcc. i've gotten all the c files to compile with only a handfull of warnings (apart from it warning-ing when i compare pointer == NULL because NULL is an int!) but now i've turned to the assembly specific files, i've got phxass as gas doesnt like them one bit. and incidentally i'm using the 3.9 libs/headers (though still devving on a 3.1 system) ... however i'm stuck now because it demands a "funcdef" macro, someone on the comp.sys.amiga.programmer newsgroup suggested the following
amiga_draw.s first few lines of code:
lvocnt set LIB_USERDEF
MACRO FUNCDEF
_LVO\1 EQU lvocnt
lvocnt SET lvocnt-LIB_VECTSIZE
ENDM
INCLUDE "exec/types.i"
INCLUDE "exec/exec_lib.i"
...
phxass output:
Pass1
lvocnt SET LIB_USERDEF
23 Unknown directive
in line 18 (= line 18 of amiga_draw.s)
In line 1 of macro FUNCDEF
_LVO\1 equ lvocnt
23 Unknown directive
in line 214 (= line 12 of include:exec/exec_lib.i)
In line 2 of macro FUNCDEF
lvocnt set lvocnt-LIB_VECTSIZE
23 Unknown directive
in line 215 (= line 12 of include:exec/exec_lib.i)
In line 1 of macro FUNCDEF
_LVO\1 equ lvocnt
23 Unknown directive
in line 217 (= line 13 of include:exec/exec_lib.i)
In line 2 of macro FUNCDEF
lvocnt set lvocnt-LIB_VECTSIZE
23 Unknown directive
in line 218 (= line 13 of include:exec/exec_lib.i)
... etc.
now i know bugger all about assembly. but it seems totally utterly stupid that i'd have to write my own when the rest of the libs, headers and autodocs are bundled together. so anyone know how to make it work?
notes:
1. there is not a funcdef.i include file in the ndk
2. there's an example funcdef macro in a provided header (libraries.i) but that doesnt work either
3. i really do know nothing about asm and just want the bastards to compile/link
edit: 4: the formatting here is out but i believe that the commands are correctly tabbed apart