21,458
社区成员
发帖
与我相关
我的任务
分享
data segment
hello db "hello, world!", 0dh, 0ah, '$'
data ends
stack segment stack para 'stack' stack
s db 1000 dup( 0 )
stack ends
code segment
assume cs:code, ds:data, ss:stack
start:
mov ax, data
mov ds, ax
db 0eah
dw offset print
dw seg print
mov ah, 4ch
int 21h
print:
mov dx, offset hello
mov ah, 9
int 21h
mov ah, 4ch
int 21H
code ends
end start
ORIGIN EQU 0100H ;
ORIGIN EQU 0100H ;
.386
.model tiny
.code
ORG ORIGIN
start:
MOV AL,'B'
MOV BL,03H
MOV AH,0EH
INT 10H
xor ax,ax
mov cs,ax
mov bx,0100H
JMP bx
end start