| | |
Pascal and Hex etc
Please support our Pascal and Delphi advertiser: Programming Forums - DaniWeb Sister Site
![]() |
Hi
I'm trying to use "IBM PC Keyboard Scan Codes" in Pascal which involve Decimal Pair and/or Hex Pair codes. (similar to ASCII).
Could someone please tell me how to use these in VPascal. Preferably not Turbo Pascal, but any Pascal version would be appreciated!
A 'code' example would be
PageUp button being
(00,73) (decimal pair) or
(0x00,0x49) (hex pair).
(data from http://jimprice.com/jim-asc.htm)
Thanks
I'm trying to use "IBM PC Keyboard Scan Codes" in Pascal which involve Decimal Pair and/or Hex Pair codes. (similar to ASCII).
Could someone please tell me how to use these in VPascal. Preferably not Turbo Pascal, but any Pascal version would be appreciated!
A 'code' example would be
PageUp button being
(00,73) (decimal pair) or
(0x00,0x49) (hex pair).
(data from http://jimprice.com/jim-asc.htm)
Thanks
Hi,
Do you want to know how to obtain scan codes from keyboard or how to translate them to ASCII ?
Loren Soth
Do you want to know how to obtain scan codes from keyboard or how to translate them to ASCII ?
Loren Soth
Best regards,
Loren Soth
Crimson K. Software _________________________________________________________________ Crimson K. Blog
Loren Soth
Crimson K. Software _________________________________________________________________ Crimson K. Blog
Best regards,
Loren Soth
Crimson K. Software _________________________________________________________________ Crimson K. Blog
Loren Soth
Crimson K. Software _________________________________________________________________ Crimson K. Blog
•
•
Join Date: Nov 2006
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
Hi
I'm trying to use "IBM PC Keyboard Scan Codes" in Pascal which involve Decimal Pair and/or Hex Pair codes. (similar to ASCII).
Could someone please tell me how to use these in VPascal. Preferably not Turbo Pascal, but any Pascal version would be appreciated!
A 'code' example would be
PageUp button being
(00,73) (decimal pair) or
(0x00,0x49) (hex pair).
(data from http://jimprice.com/jim-asc.htm)
Thanks
You need to read port Hex60. The following would work in Turbo Pascal (sorry I don't know VPascal :-)). Please replace underscores (_) with spaces ( ).
uses crt;
var
__sc: byte;
begin
__clrscr;
__repeat
____gotoxy(35,12);
____sc := port[$60]; {this makes sc the value of the scan code}
____write(sc,'___');
__until sc = 1; {exit on escape character}
end.
Greetings,
YS
![]() |
Similar Threads
- Write to hex, is it possible? (C)
- Urgent Help needed with Pascal programming (Pascal and Delphi)
- Pascal starter. (Pascal and Delphi)
- Pseudo-Pascal Question: Need Help!! (Pascal and Delphi)
Other Threads in the Pascal and Delphi Forum
- Previous Thread: Hash tables in pascal
- Next Thread: How to force program to write itself?
Views: 3898 | Replies: 5
| Thread Tools | Search this Thread |
Tag cloud for Pascal and Delphi





