갓겜을 만든 희대의 천재.jpg
잘 모르지만 설명하면 이런 느낌이라는 군요
Hello World 어셈블리어 출력 코드임.
파이썬에서는 Print("Hello World")
adosseg .model small .stack 100h .data hello message db "Hello, world!", 0dh, 0ah, "$" .code main proc mov ax, @data mov ds, ax mov ah, 9 mov dx, offset hello message int 21h mov ax, 4C00h int 21h main endp end main
model small
.stack 100h
.data
hello_message db "Hello, world!", 0dh, 0ah, "$"
.code
main proc
mov ax, @data ; Load the data segment address into AX
mov ds, ax ; Initialize the data segment register
mov ah, 9 ; Function 9: Display a string
lea dx, hello_message ; Load the address of the message into DX
int 21h ; Call DOS interrupt
mov ax, 4C00h ; Terminate program with return code 0
int 21h ; Call DOS interrupt
main endp
end main
추천67 비추천 64