Skip to content

Instantly share code, notes, and snippets.

@MahraibFatima
Created December 9, 2023 12:16
Show Gist options
  • Save MahraibFatima/05e77cf0e43f6aa568900c7f1c8e054a to your computer and use it in GitHub Desktop.
Save MahraibFatima/05e77cf0e43f6aa568900c7f1c8e054a to your computer and use it in GitHub Desktop.
print "Hello World!" in Assembly language
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