DWED first alpha (Announce)
> FreeDos+VBox has enhanced keyboard support and it does not work. I am
> forgot about my code for enhanced keyboard and did not understand whats
> happens (different scancodes). Now - its disabled.
I am wrong - scancodes is the same, but ascii-code can be different (for example - left arrow) for AX=0/INT16 and AX=10/INT16
> 2. Now, i check sequence Ctrl+Shift+Arrows - they will work with enhanced
> keyboard, only.
I add this combination, but can't check it: Ctrl+Up should produce 8D scancode, but i does not see any response from AX=0/INT16 or AX=10/INT16 when press Ctrl+Up (or Shift+Ctrl+Up). May be for 122-keyboard (AX=20/INT16) bios return this codes - i have no hardware to check it, now. Dwed, also, query AX=20/INT16, if available.
PS: dwed works fine on AMD 8086, need more optimization for highlighting, but it is useable (without highlight - is good). Many people use cpu NEC V?0 (and thinks this is XT-grade) - for they it will be enough fast.
PPS: Here is small programm - to check scancodes with different functions AX=0/INT16, AX=10/INT16, AX=20/INT16
var
is_ext_kbd : boolean;
is_122_kbd : boolean;
function hexb(b : byte):string;
const a:string[16] = '0123456789ABCDEF';
begin
hexb := a[((b shr 4) and $0f) + 1] + a[(b and $0f) + 1];
end;
function hexw(w : word):string;
begin
hexw := hexb(hi(w)) + hexb(lo(w));
end;
procedure check_kbd;assembler;
asm
mov ah,9
int $16
push ax
and al, $20
mov is_ext_kbd, al
pop ax
and al, $40
mov is_122_kbd, al
end;
function get_122_key:word;assembler;
asm
mov ah, $20
int $16
end;
function get_ext_key:word;assembler;
asm
mov ah, $10
int $16
end;
function get_key:word;assembler;
asm
xor ah, ah
int $16
end;
procedure print(msg : string; w : word);
begin
if w = $011b then halt(0);
writeln(msg, ' ', hexw(w));
end;
var key : word;
begin
check_kbd;
writeln('Extended keyboard : ', is_ext_kbd);
writeln('122-key keyboard : ', is_122_kbd);
while true do begin
writeln('--------------------');
print('old', get_key);
if is_ext_kbd then print('Ext', get_ext_key);
if is_122_kbd then print('122', get_122_key);
end
end.
---
Make DOS great again!
Make Russia small again!
Complete thread:
- DWED first alpha - DosWorld, 10.11.2020, 04:40 (Announce)
- DWED first alpha - Laaca, 10.11.2020, 11:50
- DWED first alpha - DosWorld, 10.11.2020, 16:03
- DWED first alpha - tom, 24.09.2022, 19:24
- DWED first alpha - rr, 10.11.2020, 11:53
- DWED first alpha - DosWorld, 10.11.2020, 15:18
- DWED first alpha - Laaca, 10.11.2020, 22:27
- DWED first alpha - Rugxulo, 10.11.2020, 22:34
- DWED first alpha - rr, 12.11.2020, 23:16
- DWED first alpha - DosWorld, 13.11.2020, 03:58
- DWED first alpha - RayeR, 13.11.2020, 18:12
- DWED first alpha - rr, 14.11.2020, 19:42
- DWED first alpha - DosWorld, 15.11.2020, 04:11
- DWED first alpha - rr, 15.11.2020, 19:20
- DWED first alpha - DosWorld, 15.11.2020, 04:11
- DWED first alpha - DosWorld, 13.11.2020, 03:58
- DWED first alpha - rr, 14.11.2020, 21:10
- DWED first alpha - DosWorld, 14.11.2020, 22:42
- DWED first alpha - rr, 15.11.2020, 19:41
- DWED first alpha - DosWorld, 15.11.2020, 20:17
- DWED first alpha - Laaca, 15.11.2020, 21:05
- DWED first alpha - DosWorld, 15.11.2020, 22:33
- DWED first alpha - Laaca, 16.11.2020, 18:37
- DWED first alpha - DosWorld, 16.11.2020, 19:44
- DWED first alpha - Laaca, 17.11.2020, 08:51
- DWED first alpha - DosWorld, 16.11.2020, 19:44
- DWED first alpha - rr, 16.11.2020, 23:02
- DWED first alpha - Laaca, 16.11.2020, 18:37
- DWED first alpha - DosWorld, 15.11.2020, 22:33
- DWED first alpha - rr, 16.11.2020, 23:04
- DWED first alpha - DosWorld, 17.11.2020, 15:28
- DWED first alpha - rr, 17.11.2020, 23:16
- DWED first alpha - DosWorld, 18.11.2020, 10:18
- DWED first alpha - rr, 18.11.2020, 21:44
- DWED first alpha - DosWorld, 19.11.2020, 01:42
- DWED first alpha - DosWorld, 27.11.2020, 13:08
- DWED first alpha - tom, 27.11.2020, 17:05
- DWED first alpha - DosWorld, 28.11.2020, 07:48
- DWED first alpha - ecm, 28.11.2020, 09:09
- DWED first alpha - bretjohn, 28.11.2020, 20:24
- DWED first alpha - DosWorld, 28.11.2020, 07:48
- DWED first alpha - tom, 27.11.2020, 17:05
- DWED first alpha - DosWorld, 27.11.2020, 13:08
- DWED first alpha - DosWorld, 19.11.2020, 01:42
- DWED first alpha - rr, 18.11.2020, 21:44
- DWED first alpha - DosWorld, 18.11.2020, 10:18
- DWED first alpha - rr, 17.11.2020, 23:16
- DWED first alpha - DosWorld, 17.11.2020, 15:28
- DWED first alpha - Laaca, 15.11.2020, 21:05
- DWED first alpha - DosWorld, 15.11.2020, 20:17
- DWED first alpha - rr, 15.11.2020, 19:41
- DWED first alpha - DosWorld, 14.11.2020, 22:42
- DWED first alpha - Laaca, 10.11.2020, 22:27
- DWED first alpha - DosWorld, 10.11.2020, 15:18
- DWED first alpha - Rugxulo, 10.11.2020, 21:22
- DWED first alpha - DosWorld, 10.11.2020, 22:18
- DWED first alpha - Rugxulo, 10.11.2020, 22:31
- DWED first alpha - DosWorld, 10.11.2020, 22:18
- DWED first alpha - glennmcc, 10.11.2020, 22:27
- DWED first alpha - DosWorld, 11.11.2020, 12:36
- DWED first alpha - RayeR, 12.11.2020, 00:27
- DWED first alpha - DosWorld, 12.11.2020, 02:36
- DWED first alpha - rr, 12.11.2020, 14:46
- DWED first alpha - tom, 24.09.2022, 19:37
- DWED first alpha - DosWorld, 12.11.2020, 02:36
- DWED first alpha - DosWorld, 14.11.2020, 02:41
- DWED first alpha - DosWorld, 16.11.2020, 04:23
- DWED first alpha - DosWorld, 16.11.2020, 17:16
- DWED first alpha - rr, 16.11.2020, 23:08
- DWED first alpha - rr, 06.12.2020, 17:25
- DWED first alpha - DosWorld, 07.12.2020, 03:46
- DWED first alpha - rr, 08.12.2020, 23:17
- DWED first alpha - DosWorld, 12.12.2020, 12:57
- DWED first alpha - rr, 12.12.2020, 20:37
- DWED first alpha - DosWorld, 13.12.2020, 02:15
- DWED first alpha - rr, 12.12.2020, 20:37
- DWED first alpha - DosWorld, 12.12.2020, 12:57
- DWED first alpha - rr, 08.12.2020, 23:17
- DWED first alpha - DosWorld, 07.12.2020, 03:46
- DWED first alpha - rr, 06.12.2020, 17:25
- DWED first alpha - DosWorld, 16.11.2020, 04:23
- DWED first alpha - RayeR, 12.11.2020, 00:27
- DWED first alpha - DosWorld, 12.01.2022, 03:13
- DWED first alpha - DosWorld, 14.01.2022, 00:40
- DWED first alpha - DosWorld, 17.01.2022, 17:17
- DWED first alpha - DosWorld, 23.09.2022, 13:56
- DWED first alpha - DosWorld, 01.10.2022, 01:33
- DWED first alpha - Zyzzle, 02.10.2022, 04:11
- DWED first alpha - DosWorld, 02.10.2022, 20:26
- DWED first alpha - Zyzzle, 02.10.2022, 04:11
- DWED first alpha - DosWorld, 01.10.2022, 01:33
- DWED first alpha - DosWorld, 23.09.2022, 13:56
- DWED first alpha - DosWorld, 05.04.2024, 12:19
- DWED first alpha - boeckmann, 05.04.2024, 13:01
- DWED first alpha - DosWorld, 05.04.2024, 13:05
- DWED first alpha - boeckmann, 05.04.2024, 13:01
- DWED first alpha - Laaca, 10.11.2020, 11:50