0 notes &
ASM on Intel MacBook with Mac OS X
Sample Code
GLOBAL start
SEGMENT .text
start:
mov ax, 5
mov bx, ax
mov [a], ebx
SEGMENT .data
a DW 0
t2 DW 0
Sample Compile and Ececution
$ nasm -f macho hello.asm $ ld -o hello -arch i386 hello.o $ ./hello
Links