News:

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

Correct Me If I'm Worng

Started by Trans_am77, October 30, 2005, 04:47:24 AM

Previous topic - Next topic

Trans_am77

I guess I'm not as up to speed as I should be.

.386                                            (<-- Shouldn't Edit that Stuff)
.model flat, stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib



.data  (<-- Where My Information Goes)

.data? (<-- When My Program Exits)

.code (<-- Invoke ect..)

I think thats what all the stuff does. If I'm wrong could someone point me in the correct direction?

Thanks



comrade

.data = where your set/initialized information goes (e.g. szApplicationName db "myProgram", 0)
.data? = where your unset/uninitialized variables goes (e.g. szBigBuffer db 1024 dup (?))

also, use code tags when you post snippets of code here

hutch--

I moved this to the Campus as it is a MASM rather than RadAsm question.


.486                                    ; minimum processor model
.model flat, stdcall                    ; memory model and default calling convention
option casemap:none                     ; case sensitive as required by Windows API names.

include \masm32\include\windows.inc     ; always first
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib
includelib \masm32\lib\kernel32.lib

.data       ; initialised data
  mystring db "This is my string",0

.data?      ; uninitialised data
  mybuffer db 128 dup (?)

start:      ; your code entry point

.code (<-- Invoke ect..)

end start   ; tell the assembler where the file finishes

Download site for MASM32      New MASM Forum
https://masm32.com          https://masm32.com/board/index.php