📄 72.asm
字号:
;7_2.asm
宏定义:
wages macro rate,hour
push ax
push bx
push cx
mov al,rate
mov cl,hour
mul cl
mov bx,ax
mov ax,hour
mov cl,10
div cl
mov cl,3
mul cl
add ax,bx
mov wag,ax
pop cx
pop bx
pop ax
endm
宏调用:
wages r1,42
宏展开:
1 push ax
1 push bx
1 push cx
1 mov al,r1
1 mov cl,42
1 mul cl
1 mov bx,ax
1 mov ax,42
1 mov cl,10
1 div cl
1 mov cl,3
1 mul cl
1 add ax,bx
1 mov wag,ax
1 pop cx
1 pop bx
1 pop ax
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -