NASM - The Netwide Assembler
Welcome,
Guest
. Please
login
or
register
.
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
News:
Home
Help
Search
Calendar
Login
Register
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
IO ports
« previous
next »
Print
Pages: [
1
]
Author
Topic: IO ports (Read 17315 times)
nobody
Guest
IO ports
«
on:
February 27, 2005, 09:33:50 PM »
When I try to compile a file where I read in from port 0x3f5, NASM tells me that unsigned byte value exceeds bounds.
Logged
Frank Kotler
NASM Developer
Hero Member
Posts: 2667
Country:
Re: IO ports
«
Reply #1 on:
February 28, 2005, 05:20:38 AM »
Well... 0x3F5 won't fit in a signed byte... or an unsigned byte, either. The value read may or may not fit in a signed byte. Question is, why does Nasm *think* it should fit in a signed byte? Can we see the code?
Best,
Frank
Logged
nobody
Guest
Re: IO ports
«
Reply #2 on:
May 05, 2005, 03:20:38 AM »
The instruction you want just don't exist. Try this instead:
mov dx, 0x3f5
in al, dx
Logged
Print
Pages: [
1
]
« previous
next »
NASM - The Netwide Assembler
»
NASM Forum
»
Programming with NASM
»
IO ports