Skip to content

Commit

Permalink
fixing markup
Browse files Browse the repository at this point in the history
  • Loading branch information
addamichal committed Jun 2, 2023
1 parent 3c32b57 commit 8ec53ca
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# H1 8-bit CPU Emulator
# 8-bit CPU Emulator
Emulator for [Ben Eater's 8-bit computer](https://www.youtube.com/playlist?list=PLowKtXNTBypGqImE405J2565dvjafglHU)
written in Typescript.

See it live [here](https://addamichal.github.io/8-bit-cpu-emulator/)

# H2 Supported instructions
## Supported instructions
NOP (0000) + value: No Operation is performed.
LDA (0001) + value: Loads number from RAM using value as Memory address to A Register.
ADD (0010) + value: Loads number from RAM using value as Memory address to B Register. Stores the sum of A and B Register to A Register.
Expand All @@ -17,19 +17,19 @@ JZ 1000 Similar to jump instruction, but gets performed only if the Zero flag is
OUT 1110 Copies A Register to Out Register, shows result in the 7 segment display
HLT 1111 Halts the clock, stops the execution

# H2 Flags register
## Flags register
Zero Flag: Gets set if ADD or SUB instructions result in value zero
Carry Flag: Gets set if ADD or SUB instruction overflow (the result value is bigger than 8 bit)

# H2 Clock Module
## Clock Module
PLS (Pulse clock) button: Toggles the clock from 1 to 0.
NXT (Next instruction) button: Executes single instruction
Range (Clock speed) control: Sets the clock speed
OSC / MAN (Oscilate / Manual) button: Toggles between Oscilate clock mode (Automatic) and manual clock mode (PLS and NXT button needs to be used)
RST (Reset) button: Resets the simulation

# H2 Bootstrapper
## Bootstrapper
Can be used to set the RAM of the simulations. Supported instructions are converted into their binary representation and copied to RAM. Unknown / misformated instructions are converted as NOP instructions.

# H2 Credits
## Credits
[Source code for fibonacci program](https://theshamblog.com/programs-and-more-commands-for-the-ben-eater-8-bit-breadboard-computer/)

0 comments on commit 8ec53ca

Please sign in to comment.