Programming Questions: DOS/Windows External Devices

  • Thread starter Thread starter FulhamFan3
  • Start date Start date
  • Tags Tags
    Programming
AI Thread Summary
In programming, accessing external devices like printers or modems involves communication between an application program and a device driver. The driver is specialized software that facilitates direct communication with hardware components. This process typically involves reading and writing to specific addresses associated with various chips within the computer, rather than standard memory addresses. Different chips handle different types of communication, such as serial, parallel, or USB. By interacting with these addresses, data is transferred between the processor and the hardware, enabling functionality with devices like printers and modems.
FulhamFan3
Messages
134
Reaction score
0
I'm taking my first programming class and I have some questions. How does your program access external devices like a printer or modem? I know in linux everything has a corresponding file but I have no idea how it works in dos/windows.
 
Computer science news on Phys.org
In general, your application program communicates with a driver, which is a piece of software that knows how to talk directly to the hardware. The driver generally communicates with hardware by reading and writing to various addresses. These addresses are not associated with memory, but instead with some of the various chips inside the computer. Some of the chips do serial communication; others do parallel, others do USB, and so on. When you read and write to those addresses, you are moving data between the processor and those chips, which then communicate with the printer or modem.

- Warren
 
Thread 'ChatGPT Examples, Good and Bad'
I've been experimenting with ChatGPT. Some results are good, some very very bad. I think examples can help expose the properties of this AI. Maybe you can post some of your favorite examples and tell us what they reveal about the properties of this AI. (I had problems with copy/paste of text and formatting, so I'm posting my examples as screen shots. That is a promising start. :smile: But then I provided values V=1, R1=1, R2=2, R3=3 and asked for the value of I. At first, it said...
Sorry if 'Profile Badge' is not the correct term. I have an MS 365 subscription and I've noticed on my Word documents the small circle with my initials in it is sometimes different in colour document to document (it's the circle at the top right of the doc, that, when you hover over it it tells you you're signed in; if you click on it you get a bit more info). Last night I had four docs with a red circle, one with blue. When I closed the blue and opened it again it was red. Today I have 3...
Back
Top