Skip to content

Commit

Permalink
🐛 FIX: Fix Table of Content (#7)
Browse files Browse the repository at this point in the history
* 💩 WIP: Test branch permissions

Signed-off-by: Luca Dillenburg <luca.assumpcao.dillenburg@gmail.com>

* 📝 DOCS: Fix Table of Contents

Signed-off-by: Luca Dillenburg <luca.assumpcao.dillenburg@gmail.com>

* 📝 DOCS: Improve machine code explanation

Signed-off-by: Luca Dillenburg <luca.assumpcao.dillenburg@gmail.com>

* 🔥 REMOVE: Remove test file

Signed-off-by: Luca Dillenburg <luca.assumpcao.dillenburg@gmail.com>
  • Loading branch information
LucaDillenburg authored Sep 21, 2020
1 parent d595c5e commit a1bd99d
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,13 @@

<br/>

<!-- omit in toc -->
# 🔖 Table of Contents
### 1. [💻 How does a computer work behind the curtains?](#-how-does-a-computer-work-behind-the-curtains)
### 2. [🔢 Machine Code](#-machine-code)
### 3. [▶️ Run](#️-run)
### 4. [📄 Contributing Guidelines](#-contributing-guidelines)
### 3. [🔀 Code Flow and Tips](#-code-flow)
### 4. [👨🏻‍💻 Machine Code Example](#-machine-code-example)
### 5. [▶️ Run](#️-run)
### 6. [📄 Contributing Guidelines](#-contributing-guidelines)

<br/>

Expand Down Expand Up @@ -73,7 +74,7 @@ For an actual computer to work, you also need input devices such as keyboard and

# 🔢 Machine Code

A machine code command takes 16 bits in which first 4 bits represent the instruction and the following 12 bits are the parameter. For example, in the command ```0x1202```, the instruction is ```0x1``` and the parameter is ```0x202```.
Let's take a close look at the instructions available. A machine code command takes 16 bits in which first 4 bits represent the instruction and the following 12 bits are the parameter. For example, in the command ```0x1202```, the instruction is ```0x1``` and the parameter is ```0x202```.

## Instructions Table
Let's look at all of the instructions at our disposal.
Expand Down Expand Up @@ -107,7 +108,7 @@ Machine Code | Short Instruction Description | Long Instruction Description | Sh

<br/>

# 🔀 Code Flow
# 🔀 Code Flow and Tips
This section will help you think more in an assembly way.

Because Open-Machine's Circuit only has very simple commands and very few registers, the way to think about your assembly code has to be very different.
Expand Down Expand Up @@ -167,7 +168,7 @@ One way of doing it would be:
<br/>
# Machine Code Example
# 👨🏻‍💻 Machine Code Example
The following assembly code gets two numbers from input and outputs the sum of them. If the sum is greater than zero it will output zero.
*ps: Remember to change the input before starting the clock simulation, because the ```input``` instruction doesn't wait for anything to happen to get the input data.*
Expand Down

0 comments on commit a1bd99d

Please sign in to comment.