#6944 - Darkain - Wed Jun 04, 2003 10:34 pm
ok, im trying to compile crt0.s, but having no luck at ALL. this is just the first few errors, it goes on for a long time. i went and looked at the file trying to find the problem...
the problem is this:
inside "asm-macros.h" there are some #defines... these #defines dont cause a problem themselves until trying to be used. the asembler is trying to take them in as commands instead of macros.
any ideas on how to fix this?
i read somewhere that the .S in the filename has to be caps in order for it to correctly process macros, but no luck. this didnt fix the problem.
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS
the problem is this:
inside "asm-macros.h" there are some #defines... these #defines dont cause a problem themselves until trying to be used. the asembler is trying to take them in as commands instead of macros.
any ideas on how to fix this?
i read somewhere that the .S in the filename has to be caps in order for it to correctly process macros, but no luck. this didnt fix the problem.
Code: |
crt0.S: Assembler messages:
crt0.S:48: Error: bad instruction `function(_start)' crt0.S:49: Error: bad expression -- `b .Lreal_start//[00]Entry Point' crt0.S:50: Error: bad instruction `end(_start)' crt0.S:52: Error: bad instruction `static_object(__crt0_rom_header)' crt0.S:54: Warning: rest of line ignored; first ignored character is `/' crt0.S:54: Error: can't open nintendo-logo.S for reading crt0.S:54: nintendo-logo.S: No error crt0.S:56: Error: bad expression crt0.S:56: Warning: division by zero crt0.S:56: Warning: rest of line ignored; first ignored character is `[' crt0.S:58: Warning: rest of line ignored; first ignored character is `G' crt0.S:59: Warning: rest of line ignored; first ignored character is `G' crt0.S:60: Warning: rest of line ignored; first ignored character is `M' crt0.S:61: Error: bad expression crt0.S:61: Warning: division by zero crt0.S:61: Warning: rest of line ignored; first ignored character is `[' crt0.S:62: Error: bad expression crt0.S:62: Warning: division by zero crt0.S:62: Warning: rest of line ignored; first ignored character is `[' crt0.S:63: Error: bad expression crt0.S:63: Warning: division by zero crt0.S:63: Warning: rest of line ignored; first ignored character is `[' crt0.S:64: Error: bad expression crt0.S:64: Warning: division by zero crt0.S:64: Warning: rest of line ignored; first ignored character is `[' crt0.S:65: Error: bad expression crt0.S:65: Warning: division by zero crt0.S:65: Warning: rest of line ignored; first ignored character is `[' crt0.S:66: Error: bad expression crt0.S:66: Warning: rest of line ignored; first ignored character is `[' crt0.S:67: Error: bad expression crt0.S:67: Warning: division by zero crt0.S:67: Warning: rest of line ignored; first ignored character is `[' crt0.S:68: Error: bad instruction `end(__crt0_rom_header)' crt0.S:72: Warning: rest of line ignored; first ignored character is `/' crt0.S:73: Error: bad instruction `function(_start)' crt0.S:74: Error: bad instruction `end(_start)' |
_________________
-=- Darkain Dragoon -=-
http://www.darkain.com
DarkStar for Nintendo DS