Updated CPU (markdown)

Simon Fortier 2017-11-15 15:47:42 -05:00
parent f912e57a90
commit 28bdd4d190

10
CPU.md

@ -1,3 +1,11 @@
## 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 100ms*.
*_about 4,800,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 ## CPU Architecture
Work in progress Work in progress
@ -5,7 +13,7 @@ Work in progress
## Random-access memory ## Random-access memory
Work in progress From a storage point of view, the cpu memory spaces are organized as identical arrays of 16-bit words. The cpu has access to its full address space: 65,6536 (0x10000) words of memory (total 128KB). By default, the stack base is at address 0xFFFF and grows towards lower addresses.
## General purpose registers ## General purpose registers