rjwilldohisbest
Technical User
Hi All.
I just downloaded the masm32 assembler and have written in an example Hello World prog. I'm using the Qeditor and when I complete the code and select bulid all from the menu tab, I get a fatal error A1000 and a directory that doesn't exist under C:My.asm The target directory is C:/My Documents/assembly/ C:\My.asm directory isn't found through the find files and folders options. Here is what I have:
Listing 1: first.asm
; A simple hello world program.
include \masm32\include\windows.inc ; always first
include \masm32\include\user32.inc ; system include
include \masm32\include\kernel32.inc ; file next
.model small
.stack
.data
Message db "Hello World!!$" ; Message to be displayed.
.code
mov dx, OFFSET Message ; offset of Message is in dx
mov ax, SEG Message ; segment of Message is in ax
mov ds, ax ; ds:dx points to string
mov ah, 9 ; function 9 - displays string
int 21h ; calls the dos service
mov ax, 4c00h ; return to dos DOS
END start ; end here
The assembler cannot locate the asm file?
Do I need to write in autoexec.bat for the save path?
Any advice would be great. Thanks for your time.
RJ
I just downloaded the masm32 assembler and have written in an example Hello World prog. I'm using the Qeditor and when I complete the code and select bulid all from the menu tab, I get a fatal error A1000 and a directory that doesn't exist under C:My.asm The target directory is C:/My Documents/assembly/ C:\My.asm directory isn't found through the find files and folders options. Here is what I have:
Listing 1: first.asm
; A simple hello world program.
include \masm32\include\windows.inc ; always first
include \masm32\include\user32.inc ; system include
include \masm32\include\kernel32.inc ; file next
.model small
.stack
.data
Message db "Hello World!!$" ; Message to be displayed.
.code
mov dx, OFFSET Message ; offset of Message is in dx
mov ax, SEG Message ; segment of Message is in ax
mov ds, ax ; ds:dx points to string
mov ah, 9 ; function 9 - displays string
int 21h ; calls the dos service
mov ax, 4c00h ; return to dos DOS
END start ; end here
The assembler cannot locate the asm file?
Do I need to write in autoexec.bat for the save path?
Any advice would be great. Thanks for your time.
RJ