如何使用MOV AH,0 INT 16H立即获得多个键?
我在8086的汇编中进行了2个玩家游戏,并且遇到了一个问题,如果我按&保持两个播放器移动按钮只有一个会移动,另一个将停止。 我正在使用mov ah,0bh int 21h进行检查是否有关键,如果它检测到击键,它将使用MOV AH,0 INT 16H,然后继续检查播放器密钥字符(另一个播放器箭头的WS)
I was making a 2 players game in assembly 8086 and I encountered a problem in which if I press & hold both of the players movement buttons only one would move and the other will stop.
I am using mov ah, 0bh int 21h for checking if there a keystroke after that if it detected a keystroke it will use mov ah, 0 int 16h and proceed to check the player key character (WS for one player arrows for the other)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论