![]() |
|
MASM Console Problems - Beginner |
Cody Harris
Member #4,406
March 2004
![]() |
Well, I'm trying to get my feet wet with Assembly. I currently have this:
But I'd like to cut it back to only the bare essentials (C doesn't need all the Win32 stuff to make a basic console app). Most tutorials that say they work, well just havn't on my computer. Help! --------------------------------- |
ReyBrujo
Moderator
January 2001
![]() |
Don't use MASM, go for NASM or TASM. -- |
Cody Harris
Member #4,406
March 2004
![]() |
I can't find any tutorials for NASM that actually seem to work. I'd love it if you showed me one. --------------------------------- |
Steve Terry
Member #1,989
March 2002
![]() |
I second NASM, but don't know of or have time to search for tutrials... sorry. ___________________________________ |
A J
Member #3,025
December 2002
![]() |
i wonder why you would want to learn ASM at all ? ___________________________ |
ReyBrujo
Moderator
January 2001
![]() |
Ah, positive AJ's comment of the day :-P -- |
Cody Harris
Member #4,406
March 2004
![]() |
I've tried using Dr. Carters IO stuff, but I get this: Quote:
nasmw -f win32 -d COFF_TYPE nasmtest.s && nasmw -f win32 -d COFF_TYPE asm_io.
Generates: Quote:
c:\mingw\bin\ld.exe: warning: cannot find entry symbol _mainCRTStartup; defaulting to 00401000
--------------------------------- |
HoHo
Member #4,534
April 2004
![]() |
What about HLA? It even has a free downloadable book that I printed out, all of the ~1.8k pages of it __________ |
Cody Harris
Member #4,406
March 2004
![]() |
I'd like to actually learn some basic assembly logic in win32, and then try my hand at making a tiny TUI OS type thing. --------------------------------- |
ReyBrujo
Moderator
January 2001
![]() |
Try this: Instead of _asm_main use _main, and instead of ld use gcc. -- |
HoHo
Member #4,534
April 2004
![]() |
I think HLA is quite good for you then. You can have access to basic things like console or even winapi with relative ease and still program all other things in asm. If you really want you can probably do these simple things in pure asm too. __________ |
Cody Harris
Member #4,406
March 2004
![]() |
No Good: Quote:
$ nasmw -f win32 -d COFF_TYPE nasmtest.s && nasmw -f win32 -d COFF_TYPE asm_io. I'd really like to learn ASM first, then maybe move to HLA later. --------------------------------- |
ReyBrujo
Moderator
January 2001
![]() |
Hmm... I am not sure what asm_io.asm is doing. Try adding -mconsole, -Wl,subsystem,console I think. -- |
Cody Harris
Member #4,406
March 2004
![]() |
I'm dumb (really). I thought it was outputting to .o files, when it was really .obj files. SOrry for the hastle Actually, I'd like to even further isolate it from C, go to pure ASM string calls. Anybody know how to do this? --------------------------------- |
|