【发布时间】:2021-09-11 05:11:20
【问题描述】:
所以我有这个餐厅订单系统的代码
mov ah,09h ;
lea dx,getValueMsg ; Display get value massege
int 21h ;
mov ah,01h ;
int 21h ; User input the value
sub al,30h ;
mov countChicken,al ;
cmp countChicken,1 ;
jb errorGetChickenValue ;
; Checking chicken chop value
cmp countChicken,8 ;
ja errorGetChickenValue ;
我了解到我可以使用var db 0 来存储鸡肉值,但如果我没记错的话,它只能存储一个数字。
我需要存储一个两位数的值,例如 19。我该怎么做?
【问题讨论】:
标签: assembly input digits emu8086