mirror of
https://github.com/AYIDouble/x86-Assembly-Reverse-Engineering.git
synced 2026-06-20 16:45:30 +08:00
➕ Add Assembler Code
This commit is contained in:
parent
df7db2f904
commit
9dd514459d
1 changed files with 24 additions and 0 deletions
24
Assembler Intel Code/hello_world.asm
Normal file
24
Assembler Intel Code/hello_world.asm
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
; hello_world.asm intel
|
||||
|
||||
.model small
|
||||
|
||||
.stack 100h
|
||||
|
||||
.data
|
||||
msg db "Hello World!",'$'
|
||||
|
||||
.code
|
||||
main proc
|
||||
mov ax,@data
|
||||
mov ds, ax
|
||||
|
||||
; hello-world is there
|
||||
mov dx,offset msg
|
||||
mov ah,09
|
||||
int 21h
|
||||
|
||||
mov ax,4c00h
|
||||
int 21h
|
||||
|
||||
main endp
|
||||
end main
|
||||
Loading…
Reference in a new issue