News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Need Help I/O

Started by JHER VON ARBANEL, November 11, 2005, 11:21:35 PM

Previous topic - Next topic

JHER VON ARBANEL

  hi, can anybody give me an idea of to build an I/O device controler in assemb..  just idea an posible functions, that i can apply,, any help would helpful thanx,,..
   I repeat just ideas, or information about them..... or in other case midi functions plz.. all my tries were wrong,, ..
   One more i have probles when i place pictures on my window in my msg_paint the get erased when i minimisize or maximize what i can i do to preserve those graphics.

Tedd

Quote from: JHER VON ARBANEL on November 11, 2005, 11:21:35 PM
hi, can anybody give me an idea of to build an I/O device controler in assemb.. just idea an posible functions, that i can apply,, any help would helpful thanx,,..
I repeat just ideas, or information about them..... or in other case midi functions plz.. all my tries were wrong,, ..
Device driver for what? Each device is different. And device drivers are not simple programs, they need access at the kernel level. I would not try this as a beginner.
There are already functions for midi - see "windows multi-media" (winmm)


Quote
One more i have probles when i place pictures on my window in my msg_paint the get erased when i minimisize or maximize what i can i do to preserve those graphics.
You need to draw the graphics EVERY time you receive the WM_PAINT message. Not just when you create the window :wink
No snowflake in an avalanche feels responsible.

JHER VON ARBANEL

sorry but am not a beginner, and its a program that i need for the univer..they ask me to make an I/o manager ... its the first time one of my teachers give me a work like that ... but does any boby has an idea where to begin...  or it would be better to program in 16 bits assembly ,, couse the interruptions work directly over hardware... .. like int16 .. for the keybooar or int 10 for screen ... i need help just an idea where to begin....
   if i program in 16 bit mode ... shold i made disable the interruption flag... and make a timer to ask the imputs.... or it would be better to use int 3ch   for time.. or define which inmput should i ask first..
  in masm32 how can i control those I an O  ... helppppppppppppppppppppppppppppppppp :bdg 

MichaelW

I'm not sure exactly what you mean by "I/O manager". For a device controller some possibilities that could be done as 16-bit code and should run OK under Windows 2000/XP would be a low-level diskette controller (that duplicates what the system BIOS does), or a low-level video controller (that duplicates some service provided by the VGA BIOS). A diskette controller that could handle DMF might be interesting.

eschew obfuscation

sluggy

Quote from: JHER VON ARBANEL on November 14, 2005, 06:48:29 PM
sorry but am not a beginner, and its a program that i need for the univer..they ask me to make an I/o manager ...
They must have told you more than that, that is a lousy spec. You should go and get more details, then once you have the details come back and ask the questions.

P1

Check out:  http://www.madwizard.org/ under Downloads, look for AsmIO.

This will give the Asm basics of working with ports.  I believe your working with some PC interface to a controller ( like Robotics )?

Or is it a device Manager for Windows ?

Regards,  P1  :8)

JHER VON ARBANEL

 sorry for my english...
  i have to control keyboard,, mouse, audio,,, and other devices....,, giving them some priority.. but thanks for ur post  :bdg

BogdanOntanu

THIS very much looks like an "imaginary homework" from and imaginary humman...

For example: control "other device" --> I asume they do mean the Nuclear Warrheads
Do you have the exact specifications?

Having problems with understanding WM_PAINT and how to "preserve graphics in GDI device Contexts"
does not exactly qualify you as a non beginner.

Please attempt to clarify your questions and only shoot one at a time and acording to your knowledge level...
this way you will learn faster... I am assuming you want to do that :)

Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro