Created
December 9, 2023 12:16
-
-
Save MahraibFatima/05e77cf0e43f6aa568900c7f1c8e054a to your computer and use it in GitHub Desktop.
print "Hello World!" in Assembly language
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
org 100h | |
.model small | |
.stack 100h | |
.data | |
bval db 'Hello, World!$' | |
.code | |
main proc | |
mov dx, offset bval ; Load the address of bval into DX | |
mov ah, 9 | |
int 21h ; DOS print string function | |
mov ah, 4Ch ; Exit program function | |
int 21h ; DOS terminate program function | |
main endp | |
end main |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment