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

📄 常用的宏定义.asm

📁 汇编子程序 大学课程设计需求者的最爱
💻 ASM
字号:
****保存dos断点

 
	push ds
	sub ax,ax
	push ax


****寄存器进栈

pushseg macro 
	push ax
	push bx
	push cx
	push dx
	push si
	push di
endm

****寄存器出栈

popseg macro 
	pop di
	pop si
	pop dx
	pop cx
	pop bx
	pop ax
endm

****DOS中断21H

dos21 macro nh
	mov ah,nh
	int 21h
endm

****接收字符串

getchar macro inbuf,length                   
        lea dx,inbuf
	mov ah,0ah
	int 21h
	mov cx,length
	mov bh,0
	mov bl,inbuf+1
	sub cx,bx
getchar1:
	mov [bx+inbuf+2],20h
	inc bx
	loop getchar1
getchar endm
;宇光制作

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -