hi I have been looking around for a good file io tutorial and I cant find any. It is simple enough to me the process, mov dx,043h mov al,54 out dx,al etc. but i have no idea which ports go to where or how to write to a hard disk or floppy drive etc. how do i find out which ports map to where?
maf5693
25
Newbie Poster
Recommended Answers
Jump to PostYou're using 80x86 assembly language, and I'm assuming you're using a PC as a target platform.
Under DOS the ports are accessible, under Win32, pretty much not, unless Win98 or earlier.
Web Search PC bios, DOS interrupts, etc.
I wouldn't just be throwing values and random ports. …
Jump to PostYou could install Windows and go through the device manager and view the Input Output port mappings. Device manufacturers know how they've mapped their ports and so do their drivers.
You can also get the IRQ's.
Or use old hardware, and review the original PC Bios as well …
All 6 Replies
wildgoose
420
Practically a Posting Shark
maf5693
25
Newbie Poster
wildgoose
420
Practically a Posting Shark
maf5693
25
Newbie Poster
wildgoose
420
Practically a Posting Shark
maf5693
25
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.