Hi,
I designed application with Delphi for serial interface. my serial port address is $3F8. when i write number to this address, i can not read my number and 129 appeared. for reading, i write 0 to DLAB.
What you wrote goes to an output register. What you read from the very same address is an input register. They are not the same. Hardware doesn't work like RAM; you can't always get what you want.