Re: C# programmer wants to learn assembly?? plz help
- From: Frank Kotler <fbkotler@xxxxxxxxxxx>
- Date: Thu, 28 Dec 2006 17:11:25 GMT
Frank Kotler wrote:
***! Can't even blame Google groups... I just pushed the wrong button. As I was saying...
Here's a console "hello world" using Nasm and Alink - get 'em at http://www.sf.net/projects/nasm and http://www.sf.net/projects/alink This will need modifications to work with Masm/msLink!!!
; nasm -f obj hwcons.asm
; alink -oPE -subsys console hwcons.obj
extern WriteFile
import WriteFile kernel32.dll
extern ExitProcess
import ExitProcess kernel32.dll
section _TEXT use32 class=CODE
...start
push dword 0
push dword num_chars
push dword MSGLEN
push dword msg
push dword -11
call [WriteFile]
push dword 0
call [ExitProcess]
section _DATA use32 class=DATA
num_chars dd 0
msg db 'Hello, Console.', 13, 10
MSGLEN equ $ - msg
I was going to attempt to modify this for Masm, but... I'd make to many errors, and can't test it (Windows not booting, at the moment). As you can see, it isn't too difficult...
Here are a couple links that might help:
http://win32assembly.online.fr/tutorials.html
http://www.asmcommunity.net/board/index.php
http://www.masm32.com/board/index.php
***. I can't even find the "good" links (some of these boards are "at war" with one another). Frightening, how quick a Google search for "Windows assembly" comes up with buffer overflow links!!!
C'mon, you Masm guys, give Gideon a hand with this!
Best,
Frank
.
- Follow-Ups:
- Re: C# programmer wants to learn assembly?? plz help
- From: Rod Pemberton
- Re: C# programmer wants to learn assembly?? plz help
- References:
- C# programmer wants to learn assembly?? plz help
- From: giddy
- Re: C# programmer wants to learn assembly?? plz help
- From: Frank Kotler
- C# programmer wants to learn assembly?? plz help
- Prev by Date: Re: disassembly of COM vs EXE
- Next by Date: Re: ///Re: RDTSC
- Previous by thread: Re: C# programmer wants to learn assembly?? plz help
- Next by thread: Re: C# programmer wants to learn assembly?? plz help
- Index(es):