sama-c
یک شنبه 12 خرداد 1392, 14:53 عصر
; multi-segment executable file template.
data segment
; add your data here!
string1 dw "aa$"
ends
stack segment
dw 128 dup(0)
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
mov ah,00h
int 16h
; add your code here
cld
lea di,string1
mov cx,1
rep stosw
lea DX,string1
mov ah,09h
int 21h
; wait for any key....
mov ax, 4c00h ; exit to operating system.
int 21h
ends
end start ; set entry point and stop the assembler.
data segment
; add your data here!
string1 dw "aa$"
ends
stack segment
dw 128 dup(0)
ends
code segment
start:
; set segment registers:
mov ax, data
mov ds, ax
mov es, ax
mov ah,00h
int 16h
; add your code here
cld
lea di,string1
mov cx,1
rep stosw
lea DX,string1
mov ah,09h
int 21h
; wait for any key....
mov ax, 4c00h ; exit to operating system.
int 21h
ends
end start ; set entry point and stop the assembler.