Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Problem with INT21h/AH=06h in WinXP (Developers)

posted by Laaca Homepage, Czech republic, 11.06.2023, 21:40

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:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 185 users online (0 registered, 185 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum