Security and the halt instruction
Mostly unfinished work today. Firstly, I changed the halt instruction. It now halts the instructions until an interrupt is handled. If interrupts are disabled, the halted state will automatically be set to false after 10 million cycles (around 3.75 seconds) by the watchdog.
I also added a priviliged mode, but I only actually made a few instructions priviliged and no registers and such yet. For this all I added instructions 241 and 30. 241 allows a user to switch security modes (only if the program is executing within ROM, so no user programs can do this). 30 allows you to change the interval of the timer interrupt.
That’s it for today, I probably will be back tomorrow.
As for the screenshot, that’s just the output when I was testing the watchdog system.
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.