显示无效消息 TASM

问题描述

您好,我们不知道如何在下部空白处显示 l、n 和 q。我们不熟悉这些语言。

我们还想将数量与产品编号进行比较,如果它低于零,则会出现错误/无效消息。我们不知道如何将其合并到我们的代码中。

这是我们的代码:

.code
org 100h
start:jmp main
 
        a db" ษอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออป$"
        b db" บ                         Pasta House                       บ$"
        c db" บ        ษอออออป     ษอออออป     ษอออออป     ษอออออป        บ$"
        d db" บ        บ  9  บ     บ  9  บ     บ  9  บ     บ  9  บ        บ$"
        e db" บ        ศอออออผ     ศอออออผ     ศอออออผ     ศอออออผ        บ$"
        f db" บ    [c]carbonara   [f]farro  [t]fetuccini [l]lasagnia      บ$"
        g db" ฬอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออน$"
        h db" บ                                                           บ$"
        i db" บ       what? [_]       qty? [_]      Buy again:y/n[_]      บ$"
        j db" ศอออออออออออออออออออออออออออออออออออออออออออออออออออออออออออผ$"
k db" Invalid transaction...        $"
l db" zero! $"
m db" Invalid command (press 'q' to exit) $"
n db"Sorry! Product unavailable..           $"
o db"                                         $"
p db"   Answer should be 'y','Y' or 'n','N'   $"
q db"Sorry! We're Closed.$"


w db ?
x db ?
y db ?
z db ?

string proc near
        mov ah,9
        int 21h
        ret
        string endp


down proc near
        mov ah,2
        mov dl,10
        int 21h
        mov dl,13
        int 21h
        ret
        down endp

cursor proc near
        mov ah,2
        mov bh,0
        int 10h
        ret
        cursor endp

input proc near
        mov ah,1
        int 21h
        ret
        input endp

output proc near
        mov ah,2
        int 21h
        ret
        output endp

main proc near
        mov w,39h
        mov x,39h
        mov y,39h
        mov z,39h

        mov ax,3
        int 10h

        lea dx,a
        call string
        call down

        lea dx,b
        call string
        call down

        lea dx,c
        call string
        call down

        lea dx,d
        call string
        call down

        lea dx,e
        call string
        call down

        lea dx,f
        call string
        call down

        lea dx,g
        call string
        call down

        lea dx,h
        call string
        call down

        lea dx,i
        call string
        call down

        lea dx,j
        call string
        
        mov dh,9
        mov dl,16
        call cursor

        call input

        cmp al,'c'
        je cho
 ;       cmp al,'f'
 ;       je fet
 ;       cmp al,'t'
 ;       je three
 ;       cmp al,'l'
 ;       je lol
        jne exit
cho:    mov dl,31
        mov dh,9
        call cursor
        call input
        sub w,al
        add w,30h

        mov dl,13
        mov dh,3
        call cursor

        mov dl,w
        call output

        mov dl,53
        mov dh,9
        call cursor

        call input

exit:   int 20h
        main endp
        end start

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...