如何使用MOV AH,0 INT 16H立即获得多个键?

发布于 2025-02-02 20:31:52 字数 162 浏览 1 评论 0原文

我在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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文