Re: [ASM] OUT on XP



"Rémy" wrote:

I have an old ms-dos software running on DOS and XP, but on XP the serial
com don't work...

I have a piece of code who i think can't run on XP (sorry for my bad
english) :

<code>
vide_port proc far
PUSH BP
PUSH DS
push ax
push dx

mov dx,ad_pcom
IN AL,DX
IN AL,DX

pop dx
pop ax
POP DS
POP BP
RET
vide_port endp
</code>

what do you think about it ? how can I modify it (i don't know very well
asm)...

XP doesn't allow you to directly access hardware. Google for "userport.exe"
which allows you to enable user access to a selectable IO range.
.



Relevant Pages

  • Re: [ASM] OUT on XP
    ... I have an old ms-dos software running on DOS and XP, but on XP the serial com don't work... ... PUSH BP ... this code reads two bytes from some port - we don't see what "ad_pcom" is - without first determining that there's "valid" data available... ...
    (alt.lang.asm)
  • Re: [ASM] OUT on XP
    ... I have an old ms-dos software running on DOS and XP, ... Because XP don't let you get a direct acces of the serial ports, only DOS ... PUSH BP ...
    (alt.lang.asm)
  • [ASM] OUT on XP
    ... I have an old ms-dos software running on DOS and XP, ... PUSH BP ...
    (alt.lang.asm)
  • DOS Master Environment, Trace PSP or Int 2E
    ... master or global environment block in DOS. ... Every attempt to modify this block results in DOS ... mov bx,es ...
    (alt.lang.asm)