小编Lid*_*tai的帖子

组装中的 Pong 项目 8086

我的乒乓项目有问题。我尝试当球击中红色球棒时,它会随机弹回另一侧,但由于某种原因它无法识别红色。我在 int = 10h 中使用 AH = 0Dh。检查的部分在 hitcheck 过程中。

这是代码。与我的问题相关。

hitcheck    PROC
;------batt and com check-------
MOV BH, 2H
MOV DX, ballx
MOV CX, bally
SUB CX, 2
MOV AH, 0Dh      
INT 10H

CMP AL, 1
JE hitmovement
CMP AL, 3
JE comhitmovement

MOV BH, 2H
MOV DX, ballx
MOV CX, bally
ADD CX, 2
MOV AH, 0Dh            
INT 10H

CMP AL, 1
JE hitmovement
CMP AL, 3
JE comhitmovement

MOV BH, 2H
MOV DX, ballx
MOV CX, bally …
Run Code Online (Sandbox Code Playgroud)

assembly pong x86-16

2
推荐指数
1
解决办法
5551
查看次数

标签 统计

assembly ×1

pong ×1

x86-16 ×1