Getting the raw state of the keyboard with CauseWay? (Developers)
> If anyone here has some comments on the code, please share.
The STI opcode isn't really necessary, since interrupts should already be disabled when the routine is called.
Readinf/Writing port 0x61 is most likely a requirement for PC/XT machines only, to send an "acknowledge" (ACK) to the keyboard controller that the request has been handled. On AT and newer machines, reading port 0x60 is sufficient for this.
Writing 0x20 to port 0x20 sends ACK to the PIC.
---
MS-DOS forever!
Complete thread:
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 18.10.2019, 00:57 (Developers)
![Open in board view [Board]](img/board_d.gif)
![Open in mix view [Mix]](img/mix_d.gif)
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 18.10.2019, 01:26
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 18.10.2019, 19:35
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 21.10.2019, 12:48
- Getting the raw state of the keyboard with CauseWay? - Japheth, 21.10.2019, 14:58
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 23.10.2019, 01:16
- Getting the raw state of the keyboard with CauseWay? - Japheth, 21.10.2019, 14:58
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 21.10.2019, 12:48
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 18.10.2019, 19:35
- Getting the raw state of the keyboard with CauseWay? - myrkraverk, 18.10.2019, 01:26
Mix view