Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Assembly Programming on Mac

Tags:

macos

assembly

I am on a Mac with Snow Leopard (10.6.3). I hear that the assembly language I work with has to be valid with the chipset that you use. I am completely new to this I have a basic background in C and Objective-C programming and an almost strong background in PHP. I have always wanted to see what assembly is all about.

The tutorial I'll be looking at is by VTC [link].

What I want to know is: are the tutorials that I'm about to do compatible with the assembly version on the Mac that I have?

I am completely new to this language although I do recall studying some of it way, way back in the day. I do have Xcode and what I'm wondering is what kind of document would I open in Xcode to work with assembly and does the Mac have a built in hex editor (when it comes time to needing it)?

like image 611
michael Avatar asked Apr 16 '10 22:04

michael


2 Answers

The assembly language you use is not dependent on your OS but rather your CPU's instruction set. Judging by your Mac version, I'd say you are using an Intel processor - so you would want to learn x86 or amd64 assembly.

like image 123
Nathan Osman Avatar answered Sep 28 '22 05:09

Nathan Osman


A good way to pick up assembly is to get yourself an embedded device to play with.

TI has some nice, inexpensive devkits to play with. I've poked around with the Chronos kit ($50) which has digital watch with a programmable MSP430 microcontroller with a wireless link to your computer. It's pretty sweet.

Update: I forgot to mention the Arduino. It's a pretty nifty open platform with tons of interesting peripherals and projects online.

like image 45
daotoad Avatar answered Sep 28 '22 05:09

daotoad