I have been messing arround with nems hello world and compiling and running things just fine... except when I add controller.c I get this error when making...
C:\ps2dev\puz>ee-ld -O0 startup.o puz.o pg.o -M -Ttext 8900000 -q -o out 1>puz.map
puz.o(.text+0x34): In function `wait_button':
/cygdrive/c/ps2dev/puz/controller.c:9: undefined reference to `secCtrlRead'
puz.o(.text+0x74):/cygdrive/c/ps2dev/puz/controller.c:14: undefined reference to
`secCtrlRead'
puz.o(.text+0xc4): In function `Read_Key':
/cygdrive/c/ps2dev/puz/controller.c:27: undefined reference to `secCtrlRead'
Well... the spelling was messed up cause I kept editing it trying to get it to work and when I changed it back I was rushing(didnt work when spelled correctly either)
but yes, startup.s was messed up. and it works now.