flat assembler
Message board for the users of flat assembler.
Index
> OS Construction > Mouse Activated, IRQ 12 triggered, Keyboard no longer works. |
Author |
|
newport 18 Apr 2016, 21:51
***PLEASE SEE MY LATEST POST with attachment v.30
I'm trying to verify that IRQ 12 is working by performing a cpu reset whenever the mouse generates the required int. However, nothing I have tried will trigger irq12. Enclosed is a zip file of my code for examination. My keyboard irq works just fine.. thanks
Last edited by newport on 11 Dec 2016, 21:58; edited 4 times in total |
|||||||||||
18 Apr 2016, 21:51 |
|
newport 02 May 2016, 02:03
well here it is 2 weeks later and I still ain't figured it out... guess nobody else has a clue either.. lol
|
|||
02 May 2016, 02:03 |
|
zhak 02 May 2016, 09:30
Could it be simply that your USB mouse doesn't generate IRQ12?
|
|||
02 May 2016, 09:30 |
|
BAiC 02 May 2016, 17:04
to activate the mouse you need some specific initialization code beyond the Keyboard Controller. I looked through your code but couldn't find that code anywhere. its fairly complex as you need to wait for the Keyboard Controller to respond to about 3 commands (in a specific order). the mouse won't do anything until you send it the signal to activate.
on a lighter note; are you using a PS/2 keyboard with a USB mouse? it might have USB support disabled in the BIOS. - Stefan _________________ byte me. |
|||
02 May 2016, 17:04 |
|
newport 11 Dec 2016, 21:56
Ok, after taking several months off, cause trying to get the mouse working had me ready to jump off a cliff, i've come back to it. I've included the mouse code to activate in the syscom.asm file in the new attachment, but now, it automatically triggers IRQ12 upon activation and gets stuck. The keyboard will no longer work. I just don't understand what's happening.. can someone please help me to understand where I'm going wrong? I can't continue to build on my OS without the mouse. To go where I'm going with it, the mouse is essential to its development. Thanks.
|
|||||||||||
11 Dec 2016, 21:56 |
|
revolution 12 Dec 2016, 01:09
When you say "stuck", does that mean it can't release the IRQ and continually goes back to IRQ12, or that it keeps looping within the IRQ12 handler and never gets to the IRET?
|
|||
12 Dec 2016, 01:09 |
|
newport 12 Dec 2016, 02:00
i believe it's not getting to the IRET. it's like it triggers irq12, displays message and freezes..
|
|||
12 Dec 2016, 02:00 |
|
revolution 12 Dec 2016, 02:13
newport wrote: i believe it's not getting to the IRET. it's like it triggers irq12, displays message and freezes.. |
|||
12 Dec 2016, 02:13 |
|
newport 12 Dec 2016, 02:25
ok. it just prints character after character.. it wont issue the IRET. I'm certain.
|
|||
12 Dec 2016, 02:25 |
|
newport 12 Dec 2016, 02:25
it won't even jump to another location outside the IRET
|
|||
12 Dec 2016, 02:25 |
|
newport 12 Dec 2016, 02:30
when enabling the mouse, this code here triggers the IRQ12.
Code: mov al, 0xF4 ; Activate Mouse in Stream Mode out 0x60, al ; write ps/2 controller output port (activate mouse) ..and the IRET doesn't get fired to send it back to the kernel loop where you can type on the keyboard. If I omit this part of the mouse activation, of course, IRQ12 never happens and the system(OS) works as intended. |
|||
12 Dec 2016, 02:30 |
|
revolution 12 Dec 2016, 02:36
newport wrote: ok. it just prints character after character.. it wont issue the IRET. I'm certain. |
|||
12 Dec 2016, 02:36 |
|
newport 12 Dec 2016, 02:47
that I don't have a clue.. even if I omit all the code in the IRQ - so that it is just a blank call, it still gets stuck..
|
|||
12 Dec 2016, 02:47 |
|
revolution 12 Dec 2016, 03:04
newport wrote: that I don't have a clue.. even if I omit all the code in the IRQ - so that it is just a blank call, it still gets stuck.. |
|||
12 Dec 2016, 03:04 |
|
newport 12 Dec 2016, 03:18
ok.. thanks. I will give it a shot.
|
|||
12 Dec 2016, 03:18 |
|
BAiC 13 Dec 2016, 01:02
the last file you published (I'm the 1 downloader apparently) has a severe error in file 'syscom.asm'. line 27 embeds a character string in the code. I just started looking at it.
Stefan |
|||
13 Dec 2016, 01:02 |
|
newport 14 Dec 2016, 05:51
ok.. i deleted lines 27 and 28. I wasn't sure about those either. I'm still trying to understand what I'm coding. Anyways, something strange happened, or at least to me it's strange. If I add my keyboard routine to IRQ12, both the mouse and keyboard work as expected. However, if I omit the keyboard routine from either IRQ1 or IRQ12, it gets hung, nothing happens.
|
|||
14 Dec 2016, 05:51 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.