实验21_存储器读写.asm
来自「存储器读写实验原理与程序:将字符A-Z循环写入扩展的6116RAM中」· 汇编 代码 · 共 47 行
ASM
47 行
;***************************
;固定段地址0d000, 微动开关选中6000H,即6116片选6000选中
;***************************
data segment
message db 'please enter a key to show the contents!',0dh,0ah,'$'
data ends
code segment
assume cs:code,ds:data,es:data
start:
mov ax,data
mov ds,ax
mov ax,0d000h
mov es,ax
mov bx,06000h
mov cx,100h
mov dx,40h
rep1:
inc dl
mov es:[bx],dl
inc bx
cmp dl,5ah
jnz ss1
mov dl,40h
ss1:
loop rep1
mov dx,offset message
mov ah,09
int 21h
mov ah,01h
int 21h
mov ax,0d000h
mov es,ax
mov bx,06000h
mov cx,0100h
rep2:
mov dl,es:[bx]
mov ah,02h
int 21h
inc bx
loop rep2
mov ax,4c00h
int 21h
code ends
end start
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?