首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >在LPT中设置超时字节

在LPT中设置超时字节
EN

Stack Overflow用户
提问于 2021-12-22 08:54:37
回答 1查看 75关注 0票数 2

我在看我的笔记,我来到这里,

代码语言:javascript
复制
Accessing the Parallel Port Through BIOS Functions
----------------------------
| TIMEOUT BYTE              |
| ------------------------- |
| 0040:0078    | LPT1       |
| 0040:0079    | LPT2       |
| 0040:007A    | LPT3       |
----------------------------

The BIOS service once invoked will try to perform the requested operation on the printer
repeated for a certain time period. In case if the operation is rendered unsuccessful due to
any reason BIOS will not quit trying and will try again and again until the number of tries
specified in the timeout bytes shown above runs out

这里写的是在一定时期内,但从来没有提到多少次或多少次尝试。

这里78表示LPT1,79表示LPT2等等.

超时字节中指定的尝试数,我认为是40

40是否意味着它将重试40次?10次?在BIOS因任何打印机错误或其他原因退出打印尝试之前,

EN

回答 1

Stack Overflow用户

发布于 2021-12-22 18:13:38

你可以在兰德尔海德的“汇编语言艺术”一书中找到信息:https://www.plantation-productions.com/Webster/www.artofasm.com/DOS/ch21/CH21-2.html

或者这里作者:https://www.randallhyde.com/AssemblyLanguage/www.artofasm.com/DOS/pdf/ch21.pdf

如果存在确认信号,则访问I/O端口的超时时间为65536次。

在其中存储超时值

代码语言:javascript
复制
mov ax, 0x40
mov ds, ax
mov ax, 10
mov byte ptr [0x78], ax
票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/70446427

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档