assembly help
Posted: Sun May 07, 2006 9:55 am
the compiler keeps returning these errors wheni try to compile my functions.s
file with my main c file
functions.s:
ive defined my function in the c source as "extern void notarealfnc(void);" but the compiler throws out these errors, the only command it likes is a nop:
thnx in advance
file with my main c file
functions.s:
Code: Select all
#include "r5900_regs.h"
.set noreorder
.text
.global notarealfnc
.ent notarealfnc
notarealfnc:
lw v0, 0x00(t0)
addiu v0, v0 4
sw v0, _addr
jr ra
nop
.end notarealfnc
Code: Select all
$ make
ee-as -G0 functions.s -o functions.o
functions.s: Assembler messages:
functions.s:0: Warning: end of file not at end of a line; newline inserted
functions.s:10: Error: illegal operands `lw v0,0x00(t0)'
functions.s:11: Error: illegal operands `addiu v0,v0 4'
functions.s:12: Error: illegal operands `sw v0,_addr'
functions.s:13: Error: illegal operands `jr ra'
make: *** [functions.o] Error 1