|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
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.
thanxs daniel |
|
#2
|
||||
|
||||
|
Open a terminal, cd to the directory and use the 'gas' command to assemble
eg. 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 man ld man gas should be very helpful
__________________
~James [Not currently seeking freelance work] Like philosophy or interested in spirituality? Philosophorum. Game Dev Experts Forums Foresight Linux - Because your desktop should be cool! Linux FAQ FedoraFAQ UbuntuGuide |
|
#3
|
|||
|
|||
|
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
|
|
#4
|
||||
|
||||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > Other Programming Languages > M68HC12 GNU assembly |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|