RTC 和周期性中断
谁能告诉我如何让 RTC 产生周期性中断?这是我尝试过的。
mov al, 0Bh
out 70h, al
in al, 71h
or al, 10000000b
push ax
mov al, 0Bh
out 70h, al
pop ax
out 71h, al
mov al, 0Ah
out 70h, al
in al, 71h
or al, 00001111b
push ax
mov al, 0Ah
out 70h, al
pop ax
out 71h, al
mov al, 0Bh
out 70h, al
in al, 71h
or al, 01000000b
push ax
mov al, 0Bh
out 70h, al
pop ax
out 71h, al
mov al, 0Bh
out 70h, al
in al, 71h
and al, 01111111b
push ax
mov al, 0Bh
out 70h, al
pop ax
out 71h, al
我做错了什么?事实上,在我看来,阻止 RTC 并不是必要的,但这是我最不可能尝试的事情。
Could anyone tell me how to make RTC generate periodic interrupts? Here's what I tried.
mov al, 0Bh
out 70h, al
in al, 71h
or al, 10000000b
push ax
mov al, 0Bh
out 70h, al
pop ax
out 71h, al
mov al, 0Ah
out 70h, al
in al, 71h
or al, 00001111b
push ax
mov al, 0Ah
out 70h, al
pop ax
out 71h, al
mov al, 0Bh
out 70h, al
in al, 71h
or al, 01000000b
push ax
mov al, 0Bh
out 70h, al
pop ax
out 71h, al
mov al, 0Bh
out 70h, al
in al, 71h
and al, 01111111b
push ax
mov al, 0Bh
out 70h, al
pop ax
out 71h, al
What I'm doing wrong? It actually seems to me that it's not nesesarry to block RTC, but this was the last thing i could've tried.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Borland/Turbo Pascal 中有一些旧代码,这些代码曾经在真实硬件上运行,并且仍然可以在 DosBox 中运行,看看它是否有帮助:
它打印(在 DosBox 中):
I have some old code in Borland/Turbo Pascal that used to work on real hardware and still works in DosBox, see if it helps:
It prints (in DosBox):