timer(IRQ 0)
-
hanoi
Re:timer(IRQ 0)
es = 0x1000
bx = 0x0000
real mode to physical address:
segment * 0x10 + offset
bx = 0x0000
real mode to physical address:
segment * 0x10 + offset
-
hanoi
Re:timer(IRQ 0)
Could you please help me?
It's really annoying not to be able to write more when some stupid things do not work.
thanks
It's really annoying not to be able to write more when some stupid things do not work.
thanks
-
jrfritz
Re:timer(IRQ 0)
Try making a 2nd stage loader and make a IRQ0 stub in a NASM 2nd stage loader...
C still adds stuff even in your asm(...) function....right?
C still adds stuff even in your asm(...) function....right?
-
hanoi
Re:timer(IRQ 0)
I've tested it with an external asm file.
This didn't work.
afaik gcc doesn't add something to asm functions added with asm()
This didn't work.
afaik gcc doesn't add something to asm functions added with asm()
-
Slasher
Re:timer(IRQ 0)
hi,
your frquency is too high!!!
its suppose to be 0x1234DD = 1193181 NOT 1193182 = 1234de!
your frquency is too high!!!
its suppose to be 0x1234DD = 1193181 NOT 1193182 = 1234de!
-
Slasher
Re:timer(IRQ 0)
then its 2 things
either the pic reprogramming is not correct
or the set timer frequency function is not correct
paste the code (put them all in a file and attach it) that involves the pic reprogramming,set timer and idt setup codes. thats how we can help
either the pic reprogramming is not correct
or the set timer frequency function is not correct
paste the code (put them all in a file and attach it) that involves the pic reprogramming,set timer and idt setup codes. thats how we can help
-
hanoi
Re:timer(IRQ 0)
:DDDDD
It works now.
I am _really_ stupid.
I thought i had to send 0 to port 0x20 to allow interrupts from all IRQs.
It was 0x21 :/
sorry that i have wasted a thread.
thanks for supprt/help.
It works now.
I am _really_ stupid.
I thought i had to send 0 to port 0x20 to allow interrupts from all IRQs.
It was 0x21 :/
sorry that i have wasted a thread.
thanks for supprt/help.