mentioning the FLAGS resets

Arthur Paulino 2018-01-05 20:38:37 -03:00
parent a81927344c
commit 01dfa4c3ef

5
CPU.md

@ -1,11 +1,12 @@
## Execution cycle
The code inside the `.text` segment is executed entirely at the beginning of each tick. Each millisecond of execution costs 1 kJ of energy. The execution time is rounded down to the nearest integer meaning that the first 999μs are 'free'. The execution will halt when there is not enough energy available (but the first 999μs are always executed) or when execution time exceeds 20ms*.
The code inside the `.text` segment is executed entirely at the beginning of each tick. Each millisecond of execution costs 1 kJ of energy. The execution time is rounded down to the nearest integer meaning that the first 999μs are 'free'. The execution will halt when there is not enough energy available (but the first 999μs are always executed) or when execution time exceeds 20ms*.
After each tick, all [FLAGS](https://github.com/simon987/Much-Assembly-Required/wiki/CPU#the-flags-register) are reset.
*_about 960,000 instructions in game server (2.4 GHz, single core)_
_See also_: [Battery Hardware](https://github.com/simon987/Much-Assembly-Required/wiki/Hardware:-Battery)
## CPU Architecture
Work in progress