Modify old soft to run on XP



Hello,

I have an old console soft who run on 16 bits, with serial access...
But on XP, don't work

Here a piece of IO code :

;(**********************************************)
;(* *)
;(* envoi d'un caractere sur la ligne *)
;(* caractere dans CL *)
;(**********************************************)
send PROC FAR
PUSH BP
PUSH DS
push ax
push dx

mov dx,ad_pcom
add dx,5
l1: in al,dx
test al,20h
jz l1
sub dx,5
mov al,cl
out dx,al

pop dx
pop ax
POP DS
POP BP
RET
SEND ENDP
page


I don't know where to start to modify it ?

thank for your idea

.



Relevant Pages

  • ascii to st0
    ... push IDC_ARROW ... cmp eax, 0 ... mov ebp, esp ... cmp dword @Message, WM_CLOSE ...
    (alt.lang.asm)
  • Re: Macro2D
    ... mov, eax ... cmp eax, -1 ... push STD_INPUT_HANDLE ...
    (alt.lang.asm)
  • One RosAsm Pre-parser
    ... cmp eax 0 | ja L0<< ... mov ecx, D ...
    (alt.lang.asm)
  • a problem in n5.dll in windows 95
    ... eax srandMl ... mov ebp, esp ... push dword @lpm ... mov esi, @adw ...
    (alt.lang.asm)
  • Re: Interesting Web Site on Open Source Development
    ... mov D§esp 0DEADBEEF call Code04013A0 ... call Code0401100 push eax lea eax D§esp+014 push Data0402124 ... push eax call 'USER32.wsprintfA' add esp 0C push 030 lea ecx D§esp+014 push ecx ...
    (alt.lang.asm)