⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 实验21_存储器读写.asm

📁 存储器读写实验原理与程序:将字符A-Z循环写入扩展的6116RAM中
💻 ASM
字号:
;***************************
;固定段地址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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -