Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

assembly

Name: Anonymous 2009-04-26 11:09

I want to learn how to program in assembly. I have no idea where to start, I've looked on the Internet for guides on how to start programming assembly, but all of them are for Linux and Windows, I haven't found one that applies to Mac.

Name: Anonymous 2009-04-26 11:15

8/10, not revealed until the very end.

Name: Anonymous 2009-04-26 11:31

Name: Anonymous 2009-04-26 12:16

Name: Anonymous 2009-04-26 12:28

Name: Anonymous 2009-04-26 12:41

>>5
>on.nimp.org/

back to /b/ with you.

Name: Anonymous 2009-04-26 12:55

>>6.match("/^>[^ ].*$/");
1 match found at position 0

Name: Anonymous 2009-04-26 14:55

>>5
Back to /b/, please.

Name: Anonymous 2009-04-26 16:46

>>6,8
Back to /pr/

Name: Anonymous 2009-04-26 18:34

>>1
install lunix then you daft faggot

Name: Anonymous 2009-04-26 19:22

$ cat > jews.asm
bits 32              ; set our target environment
cpu p4

extern _puts         ; import a symbol
global _main         ; export a symbol

section .rodata      ; put this in a read-only page
blah:
    db "JEWS",0      ; some arbitrary bytes

section .text        ; put this in a code page
_main:               ; symbol for C-style function entry point
    enter 8,0        ; allocate a stack frame, must be 16-byte aligned
    mov [esp], dword blah  ; put our string pointer at top of stack
    call _puts       ; call a C function
    xor eax,eax      ; put 0 in return register
    leave            ; pop the stack frame
    ret              ; return
$ nasm -f macho jews.asm && cc -o jews jews.o && ./jews
JEWS


See also:
http://www.intel.com/products/processor/manuals/
http://developer.apple.com/documentation/DeveloperTools/Conceptual/LowLevelABI/130-IA-32_Function_Calling_Conventions/IA32.html
http://www.nasm.us/doc/

Name: Anonymous 2009-04-26 19:45

>>7
It looks like a cute face. ^_^

Name: Anonymous 2009-08-17 0:50

Lain.

Don't change these.
Name: Email:
Entire Thread Thread List