prog7_5.asm
来自「汇编语言-王爽 源代码 加 卜艳萍版源代码」· 汇编 代码 · 共 35 行
ASM
35 行
stack segment stack
dw 256 dup(?)
stack ends
data segment
str db 'Type "M" for 80*25 monochrome',0dh,0ah
db 'Type "H" for 640*200 b&w',0dh,0ah,'$'
data ends
code segment
assume cs:code,ds:data
start:mov ax,data
mov ds,ax
mov dx,offset str
mov ah,9
int 21h
mov ah,1
int 21h
cmp al,'M'
je m80
cmp al,'H'
je h640
jmp start
m80:mov al,2
mov ah,0
int 10h
jmp over
h640:mov al,6
mov ah,0
int 10h
over: mov ah,4ch
int 21h
code ends
end start
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?