• x84 Assembly, i want to get started
    9 replies, posted
Hey guys, do you program in assembly? I do, alittle, i use DEBUG.EXE as the assembler, as i dont know of any assembler that is good.. I like the freedom it gives you, especially polymorphic code and stuff. Due to the limits of DEBUG.EXE, i havent done anything big.. And i really want to start programming a game or a operating system(Dont suggest another language) or something.. But what i really want is some kind of virtual machine and assembler thing, because i dont want to ruin my computer.. So it should be easy to install, not some wiremod crap and should feature a virtual machine.. Like emu8086 but free..
How about [url=http://www.nasm.us/]Netwide Assembler[/url] and [url=http://bochs.sourceforge.net/]Bochs[/url]?
Ill check em out, thanks!
You could also use GAS (the GNU Assembler, part of GCC). I like it because it allows me to use the C preprocessor to define macros and such (and share headers with C source files) and because it supports multiple architectures (unlike NASM, which is x86 only). I use GAS and AVR-GCC for programming AVR microcontrollers.
[QUOTE=ROBO_DONUT;23782125]You could also use GAS (the GNU Assembler, part of GCC). I like it because it allows me to use the C preprocessor to define macros and such (and share headers with C source files) and because it supports multiple architectures (unlike NASM, which is x86 only). I use GAS and AVR-GCC for programming AVR microcontrollers.[/QUOTE] Yeah, well, you could just run CPP on the files if you need it so that's kinda invalid :P Other than that, yeah, GAS is kinda nice. But IIRC it didn't use / support Intel syntax by default..?
[QUOTE=esalaka;23782671]Yeah, well, you could just run CPP on the files if you need it so that's kinda invalid :P Other than that, yeah, GAS is kinda nice. But IIRC it didn't use / support Intel syntax by default..?[/QUOTE] AT&T syntax is default on x86 for historical/backwards-compatibility reasons, but you can use Intel syntax by invoking as with the flag "-msyntax=intel".
MASM32 isn't bad either
If you want to create your own OS, you should check [URL="http://wiki.osdev.org/Main_Page"]this[/URL] site out. It's a [I]very[/I] valuable and helpful source of information. But be warned, it is also very difficult. And yeah, go with [URL="http://www.nasm.us/"]NASM[/URL] and [URL="http://bochs.sourceforge.net/"]Bochs[/URL] like esa said. A little C knowledge is never bad either, as it's a lot easier to code an OS if you do some of the not-so-super-mega low level stuff in C. But read up on the stuff on that site, and [B]read carefully[/B]. Otherwise you won't get anywhere.
Take a look at Hydrogen OS, fully written in Assembly; in Hydrogen Assembler which is self assembling.
Sorry, you need to Log In to post a reply to this thread.