Re: Ask the Mormon
Posted: Fri Oct 07, 2011 4:08 am
So...I have a Computer Science question of sorts.
Next semester, I get to take a lab science about Electronics, Calculus II, Object-Oriented Programming, and a few other courses. I have the option to take a Databases course, or an Operating Systems course. The Databases course is offered all year, but the Operating Systems course is Spring-Only. Normally, I'd go with OS simply because it makes more sense. However, I'm balancing it with a Lab Science, Calculus II, and OOP. Plus, I'm currently in Computer Organization (Which deals with Assembly, structure, and architecture), and am struggling through it. Our current assignment has me stumped, and I fear that taking OS (Which supposedly has elements of Comp Org in it) alongside those courses could be committing academic suicide.
Any thoughts?
Further, my Comp Org assignment deals with input handling, and using the Interrupter. My teacher failed to explain it very well, so I'm completely clueless on how to proceed. The general gist of the assignment is to write a library in Assembly to handle keyboard input. The library has to consist of four functions, which open the keyboard for use, check if input is available, get the character (Don't do anything with it, just pass it), and close the keyboard. Input is stored in an array of size 15, which means the function to determine if input is available returns false if the buffer is full. The issue for me is that I have no idea how to even begin, especially since our teacher was super vague about the Interrupt Service Routine, and whether we were supposed to use the default he provides or make our own. Any general tips and/or thoughts on using the Interrupter in this manner, and designing the library? I feel like I am capable of programming this, just that I have no clue on where to even begin.
Sorry for the long-winded posts.
Next semester, I get to take a lab science about Electronics, Calculus II, Object-Oriented Programming, and a few other courses. I have the option to take a Databases course, or an Operating Systems course. The Databases course is offered all year, but the Operating Systems course is Spring-Only. Normally, I'd go with OS simply because it makes more sense. However, I'm balancing it with a Lab Science, Calculus II, and OOP. Plus, I'm currently in Computer Organization (Which deals with Assembly, structure, and architecture), and am struggling through it. Our current assignment has me stumped, and I fear that taking OS (Which supposedly has elements of Comp Org in it) alongside those courses could be committing academic suicide.
Any thoughts?
Further, my Comp Org assignment deals with input handling, and using the Interrupter. My teacher failed to explain it very well, so I'm completely clueless on how to proceed. The general gist of the assignment is to write a library in Assembly to handle keyboard input. The library has to consist of four functions, which open the keyboard for use, check if input is available, get the character (Don't do anything with it, just pass it), and close the keyboard. Input is stored in an array of size 15, which means the function to determine if input is available returns false if the buffer is full. The issue for me is that I have no idea how to even begin, especially since our teacher was super vague about the Interrupt Service Routine, and whether we were supposed to use the default he provides or make our own. Any general tips and/or thoughts on using the Interrupter in this manner, and designing the library? I feel like I am capable of programming this, just that I have no clue on where to even begin.
Sorry for the long-winded posts.
