Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Combuster wrote:I also said you were bad at copy-pasting.
No, I'm simply not very good in english
What do you mean in 'count the instructions'?
I don't know what Combuster meant (I can only guess) but just look at your code more attentively. For example, in `intInit' you perform 5 operations on PIC1 and only 4 on PIC2.
Btw, I think that bumping the thread (when no-one answers you) is not a good idea.
Take a look at the sequence of function calls used to reset the PIC. Notice how most of them are paired? (Two calls, differing only by the base port). Now look at the last call... what Combuster meant was that the final call didn't have a corresponding call to the second PIC.
HOWEVER - Looking at that call, you're DISABLING every external IRQ (by masking them off), it even says so in the comment (and that call technically doesn't need a matching one to the secondary PIC, because by masking Line 2, you mask off the entire secondary PIC).