我在看我的笔记,我来到这里,
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因任何打印机错误或其他原因退出打印尝试之前,?
发布于 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次。
在其中存储超时值
mov ax, 0x40
mov ds, ax
mov ax, 10
mov byte ptr [0x78], axhttps://stackoverflow.com/questions/70446427
复制相似问题