
W/95, VC 5.0 - Direct Port I/O
Hello,
I looking for sites or code examples for using inline assembly. I have
a custom adapter which we've been using in DOS world applications for
some time. The adapter has port I/O functions and no IRQ functions. I
want to rewrite the small sections of assembly code to work under Win/95
with the VC++ 5.0 envirnment.
I haven't kept up with the MS VC implementation, Unix is my playground,
so please forgive my ignorance. VC++5.0 has already pointed out that I
need to get a better understanding of the memory model differances
between a DOS and Win/95 application. May things I used when I wrote
this, long long ago in computer terms, don't apply to this environment,
so help and guidance is appreciated.
Given the specifices of this device four ports which fall outside of
the normal I/O mapping, I want to do direct port I/O. This may not be
standard, but the adapter isn't exactly standard. The routines today
accept a port address and command string which is then passed to the
adapter using inline assembly, written in C/C++7.0. I know that I could
write a VxD to handle the adapter, however, given its single threaded
operation a VxD doesn't make sense to me, maybe some can point out the
error in my thinking.
Examples would be a great help.
Thank you for your time
dim