<div dir="ltr">I believe the problem is actually somewhere else. Interrupt vector table
 (or whatever it's called) only dumps registers and switches msim to 
interactive mode. I am not completely sure whether it is meant to be 
part of the assignment or not (more likely just a forgotten part of 
exception handling implementation) but you have to change those 
instructions to make it actually jump to the handler when an interrupt 
is raised.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">po 2. 12. 2019 v 22:44 odesílatel Vojtech Horky <<a href="mailto:horky@d3s.mff.cuni.cz">horky@d3s.mff.cuni.cz</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hello.<br>
<br>
Dne 02. 12. 19 v 22:38 Josef Starychfojtu napsal(a):<br>
> Hi,<br>
> <br>
> I am trying to make the interruption just work (jump to handle exception <br>
> code after some cycles). According to documentation, when Compare <br>
> register and Count register equal, it causes interrupt. I used the <br>
> time_interrupt_after function to set Compare = Count + X and then <br>
> watched their values in while loop, but nothing happens, even tho Count <br>
> was greater than Compare after a while. I have just a simple debug print <br>
> in handle_exception_general function and it is not triggered. I <br>
> call time_interrupt_after and interrupts_restore(true) (tried even <br>
> without it) in main function of a thread. Any suggestions on what am I <br>
> doing wrong?<br>
<br>
Your explanation is correct, it only misses one extra point. Timer <br>
interrupt is not triggered when interrupts are disabled. I would thus <br>
suggest checking that.<br>
<br>
- VH<br>
<br>
> <br>
> Thanks !<br>
> <br>
> Josef Starychfojtu<br>
> <br>
> _______________________________________________<br>
> NSWI004 mailing list<br>
> <a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
> <a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
> <br>
_______________________________________________<br>
NSWI004 mailing list<br>
<a href="mailto:NSWI004@d3s.mff.cuni.cz" target="_blank">NSWI004@d3s.mff.cuni.cz</a><br>
<a href="https://d3s.mff.cuni.cz/mailman/listinfo/nswi004" rel="noreferrer" target="_blank">https://d3s.mff.cuni.cz/mailman/listinfo/nswi004</a><br>
</blockquote></div>