assume cs:code, ds:data;
;定義數據段
data segment
tab db "Hello World!",$;
data ends
code segment
start:
mov ax,data
mov ds,ax
lea dx,tab
mov ah,09H
int 21H
mov ah,4CH
int 21H
code ends
end start
assume cs:code, ds:data;
;定義數據段
data segment
tab db "Hello World!",$;
data ends
code segment
start:
mov ax,data
mov ds,ax
lea dx,tab
mov ah,09H
int 21H
mov ah,4CH
int 21H
code ends
end start
舉例:BL=00101000B CODE SEGMENT ASSUME CS:CODE START: MOV BL,00101000B MOV DL,BL TEST DL,28H J