assume cs:code,ds:data
;**段
code segment
start:
mov ax,data
mov ds,ax
mov ax,0b864h;第n行首址(b8000h+0a0h*(n-1))/10h
mov es,ax
;初始化
mov bx,0
mov cx,3
;外迴圈3次
again2:
mov di,cx;利用cx取屬性
mov ah,16[di-1];屬性
push cx
;內迴圈
mov cx,16
mov si,0
mov di,0
again1:
mov al,ds:[si]
mov es:38h[bx][di],ax
inc si
inc di
inc di
loop again1
add bx,160
pop cx
loop again2
mov ax,4c00h
int 21h
code ends
;資料段
data segment
db 'welcome to masm!'
db 02h,24h,71h ;定義三種顏色屬性data ends
end start
王爽 組合語言 實驗10 1
assume cs code,ds data data segment db welcome to masm 0 data ends code segment start mov dh,8 行號 mov dl,3 列號 mov cl,2 顏色 mov ax,data mov ds,ax mov si...
王爽 組合語言 實驗7
assume cs codesg,ds data ss stack data segment db 1975 1976 1977 1978 1979 1980 1981 1982 db 1983 1984 1985 1986 1987 1988 1989 1990 db 1991 1992 1993...
王爽 組合語言 實驗9
assume cs code data segment db welcome to masm db 00000010b,00100100b,01110001b data ends code segment start mov ax,data mov ds,ax mov si,07c0h 臨時,可調整...