News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Stupid Question

Started by PinoyProgramador, October 28, 2005, 05:38:03 PM

Previous topic - Next topic

PinoyProgramador

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:

raymond

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
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com

PinoyProgramador

So i can do Hello World in console with 32 bit just like in C?

PBrennick

The GeneSys Project is available from:
The Repository or My crappy website

drhowarddrfine

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. 

PinoyProgramador

Tnks for the help guys   :U

hutch--

 :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
Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php

raymond

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
When you assume something, you risk being wrong half the time
http://www.ray.masmcode.com