我需要帮助打印3位数字,如果数字增加大于100则程序停止,有人知道怎么做吗?我只能打印像10,11,78这样的数字。
points_count proc
PUSHF
PUSH AX
PUSH BX
PUSH CX
PUSH DX
cmp gamemode,0
je end_points
inc points
count_points:
mov ax,points
mov bl,10
div bl
add al,30h
add ah, 30h
mov STR12_2[0],al
mov STR12_2[1],ah
mov STR12_2[2],'$'
GOTO_XY 40,5
show STR12_2
goto_xy POSy,POSx
end_points:
POPF
POP DX
POP CX
POP BX
POP AX
RET
points_count ENDP