September 15th, 2006, 08:31 PM
M68HC12 GNU assembly
i am taking a class where we are programming m68hc12 microcontrollers i want to be able to write the code and compile it on my ibook instead of having to go to the lab and doing it there. i know you can write assembly in xcode but im stumped as to where to begin. ex: i have a code hw_7.asm but when i open it in xcode it won't let me compile it.
September 16th, 2006, 09:36 AM
Open a terminal, cd to the directory and use the 'gas' command to assemble
gas -o hw_7.bin hw_7.asm
that outputs to hw_7.bin, compiling hw_7.asm . The traditional extension for asm files is just .s however. You may need to link the file manually with the ld command
should be very helpful
September 17th, 2006, 12:49 AM
thanks for the help...i tried using the gas command and it tells me command not found i looked up help but no luck i am using bash terminal
September 17th, 2006, 06:54 AM
Ugh, that's not happy. You need xcode installed, but that _ought to_ install GCC, GAS etc.
I hope people in the mac forum can give you more help, i asked this be moved there.