Hello World in Microsoft Macro Assembler

Published on 23 April 2020 (Updated: 23 April 2020)

Welcome to the Hello World in Microsoft Macro Assembler page! Here, you'll find the source code for this program as well as a description of how the program works.

Current Solution

PAGE 60,132
;
.8086
XSEG SEGMENT
 ASSUME CS:XSEG

START: PUSH DS
 PUSH DI
 PUSH CS
 POP DS
 PUSH AX
 PUSH DX
 MOV AX,0003H
 MOV AH,09H
 LEA DX,STR   ; Address of string relative to start of code
 ADD DX,100H  ; *****
 INT 21H      ; Print string

EXIT: POP DX
 POP AX
 POP DI
 POP DS
 RET
 
STR: DB 'Hello world!',0DH,0AH,'$'
 DB 103 DUP(0)

XSEG ENDS
 END

Hello World in Microsoft Macro Assembler was written by:

If you see anything you'd like to change or update, please consider contributing.

How to Implement the Solution

No 'How to Implement the Solution' section available. Please consider contributing.

How to Run the Solution

No 'How to Run the Solution' section available. Please consider contributing.