Okay i wanna learn assembly. I have programmed in several High Level languages and asm is too far diffrent from them.
As a first step of learning asm im planning to create a dos App thats adds 2 digit. Now ive seen codes of it and i know its easy.
But what confused me is when i came to see in this forum about 16 bit DOS. Can i do a dos base APP in 32 bit mode too?? Whats the best to use here 16 or 32??
And whats the main difference between 16 bit mode programming in ASM with 32 bit mode?? Im a complete noob to this i have no idea what so ever. Pls reply on me pls :dance:
In a nut shell, 16-bit DOS is old technology, while 32-bit flat model assembly is the current technology.
Don't bother learning the old technology; you will most probably never have a need for it. The new technology is a lot simpler to learn.
Raymond
So i can do Hello World in console with 32 bit just like in C?
Certainly.
P
QuoteSo i can do Hello World in console with 32 bit just like in C?
Remember, everything eventually boils down to assembly but not every thing comes from C.
Tnks for the help guys :U
:bg
32 bit code is cleaner, simpler and far better supported. Try this as simple code.
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
include \masm32\include\masm32rt.inc
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
comment * -----------------------------------------------------
Build this template with
"CONSOLE ASSEMBLE AND LINK"
----------------------------------------------------- *
.code
start:
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
call main
exit
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
main proc
cls
print "Hello World",13,10
ret
main endp
; «««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««««
end start
Quoteare the commands different in 32 bit mode?
All depends on what you mean by "commands".
If it's mnemonics (or opcodes), there are a few more in 32-bit which were not available for the 16-bit registers. All the old mnemonics for the 8- and 16-bit registers are also available for the 32-bit registers and should not be considered as "different".
Raymond