Discussion Locked

use assembly (In-Out Command) in NT 4.0

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I wrote a program in delphi and used This
code
asm
mov al,DATABIT
mov dx,Lock_Port_Number
out dx,al {Error Line}
end;
but I get this error '... "Privileged Instruction"...' .

How can I wirte In/Out Assembly Command In NT and Delphi?

3 replies

by pvp

Ordinarily NT does not let you at the hardware like that.

For example, Diskeeper will defragment directories, but only on the next start up.

Convert (to NTFS) will only happen on start up as well

by estebandelatorre

Under NT there is a layer between you (program) and the hardware. You can't write directly to the hardware as you 've done in previous win versions.
In order to do do something like this, I recommend to test an .OCX which talks to the layer insteadof the harware (It will be a reduced set of instrutions)

This discussion is closed to new replies.