Answer the question
In order to leave comments, you need to log in
Why does the code not work, what are the nuances of fasm?
include 'win32a.inc'
.code
main:
mov ah,9
mov dx, offset Message
int 21h
int 20h
Message db 'Hello, world!'
.end main
Answer the question
In order to leave comments, you need to log in
Why do you need to include 'win32a.inc' and .code if you write under DOS. There are no WinAPI and no code and data sections. But org 100h at the beginning would not hurt. Although fasm can compile for different systems, the code design is always different; Wikipedia has examples for each of the systems.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question