Problem with INT21h/AH=06h in WinXP (Developers)
It seems that WinXP sets differently the ZF flag in case when INT 21h/06h is called for second time to get the code for extended key.
mov bh,0
mov ax,0600h
mov dl,0ffh
int 21h
jz @nochar {RBIL says that if the char is not ready, then AL=0 and ZF=1}
cmp al,0
jnz @nochar
int 21h
inc bh
@nochar:
mov ah,bh
mov dos_ascii,ax
The new executable is here.
But still it is not perfect. Under WinXP does not work correctly the key combinations like CTRL+arrow. But under DOS and under Win98 it works fine.
---
DOS-u-akbar!
Complete thread:
- Problem with INT21h/AH=06h in WinXP - Laaca, 11.06.2023, 08:53
- Problem with INT21h/AH=06h in WinXP - alexfru, 11.06.2023, 18:05
- Problem with INT21h/AH=06h in WinXP - Laaca, 11.06.2023, 21:40
- Problem with INT21h/AH=06h in WinXP - RayeR, 13.06.2023, 02:53
- Problem with INT21h/AH=06h in WinXP - Laaca, 13.06.2023, 11:40
- Problem with INT21h/AH=06h in WinXP - RayeR, 13.06.2023, 13:30
- Problem with INT21h/AH=06h in WinXP - Laaca, 13.06.2023, 11:40
- Problem with INT21h/AH=06h in WinXP - RayeR, 13.06.2023, 02:53
- Problem with INT21h/AH=06h in WinXP - Laaca, 11.06.2023, 21:40
- Problem with INT21h/AH=06h in WinXP - alexfru, 11.06.2023, 18:05