CesiumFrog
Programmer
Hey,
I'm trying to write my own "operating system" (just a learning exercise) in assembly. So far I have a bootstrap which prints a message, loads the next sector at 60:0 h, then jumps there. Then my "kernel" prints a message and hangs, for want of something better to do. Thanks to everyone here for all the tips I've gleamed from this forum.
My next problem is hooking an interrupt. It hasn't worked yet. I'd like to use an arbitrary int to store various functions (the way DOS uses int 21), and also intend to hook the timer interrupt. Could someone give an example piece of code, doing either of these? (without using DOS functions)
Finally, where might you recommend I place my stack? Ralf Brown's Memory.lst seems to be of no help.
Thankyou. [sig][/sig]
I'm trying to write my own "operating system" (just a learning exercise) in assembly. So far I have a bootstrap which prints a message, loads the next sector at 60:0 h, then jumps there. Then my "kernel" prints a message and hangs, for want of something better to do. Thanks to everyone here for all the tips I've gleamed from this forum.
My next problem is hooking an interrupt. It hasn't worked yet. I'd like to use an arbitrary int to store various functions (the way DOS uses int 21), and also intend to hook the timer interrupt. Could someone give an example piece of code, doing either of these? (without using DOS functions)
Finally, where might you recommend I place my stack? Ralf Brown's Memory.lst seems to be of no help.
Thankyou. [sig][/sig]