How to ask my OS to "DO NOTHING"
Posted: Sun Jun 20, 2004 6:23 am
i got one question more.
let say i already wrote my small OS
after the BIOS read my 512 bytes file at 7c00h
i want it to DO NOTHING. just stop that
if i write
loopagain:
jmp loopagain
it will use 100% CPU Usage....
any idea just make the computer to stay there and don't move after it print my welcome message "Welcome to Hello World! Operating System" any without using any CPU resource (coz it does nothing after printed out the welcome text).
any INTERRUPT that will just make the CPU HALTED or IDLE(DO NOTHING).
any idea to know the CPU state, eg if it is IDLE?, BUSY?, WAITING? or whatsoever?
let say i already wrote my small OS
after the BIOS read my 512 bytes file at 7c00h
i want it to DO NOTHING. just stop that
if i write
loopagain:
jmp loopagain
it will use 100% CPU Usage....
any idea just make the computer to stay there and don't move after it print my welcome message "Welcome to Hello World! Operating System" any without using any CPU resource (coz it does nothing after printed out the welcome text).
any INTERRUPT that will just make the CPU HALTED or IDLE(DO NOTHING).
any idea to know the CPU state, eg if it is IDLE?, BUSY?, WAITING? or whatsoever?