It includes:
A custom ISA (RISC/MIPS-inspired) Registers, Stack, Flags Instruction encoding/decoding ALU operations, branching, CALL/RET A simple assembler
I also wrote two detailed blog posts explaining the whole process step-by-step:
Part 1 - Understanding how a CPU works: https://bloder.io/cpu-from-scratch-part-1
Part 2 - Using Kotlin to create a CPU emulator: https://bloder.io/cpu-from-scratch-part-2
And here’s the full source code: https://github.com/bloderxd/kotlin-cpu
Cheers
bloder•1h ago
It includes:
A custom ISA (RISC/MIPS-inspired) Registers, Stack, Flags Instruction encoding/decoding ALU operations, branching, CALL/RET A simple assembler
I also wrote two detailed blog posts explaining the whole process step-by-step:
Part 1 - Understanding how a CPU works: https://bloder.io/cpu-from-scratch-part-1
Part 2 - Using Kotlin to create a CPU emulator: https://bloder.io/cpu-from-scratch-part-2
And here’s the full source code: https://github.com/bloderxd/kotlin-cpu
Cheers