Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions _quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ website:
text: Unsigned Representations
- href: content/number_rep/signed.qmd
text: Signed Representations
- section: RISC-V
href: content/RISC-V/index.qmd
contents:
- href: content/RISC-V/instruction_formats.qmd
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make sure you add a href to content/RISC-V/index.qmd here:

CleanShot 2025-11-20 at 15 55 32@2x

text: RISC-V Instruction Formats

format:
html:
Expand Down
33 changes: 33 additions & 0 deletions content/RISC-V/index.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: "RISC-V"
subtitle: "UC Berkeley, CS 61C"
---

### What is RISC-V
RISC-V is an assembly language composed of simple instructions that each perform a single task
such as addition of two numbers or storing data to memory. Below is a comparison between RISCV code and its equivalent C code:


::: {layout-ncol=2}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Landrew layout nit: add tailwindcss


<div>
**C**
```c
int x = 5;
y[0] = x;
y[1] = x * x;
```
</div>

<div>
**RISC-V**
```mips
addi s0, x0, 5
sw s0, 0(s1)
mul t0, s0, s0
sw t0, 4(s1)
```
</div>


Man this side by side took took too long
Loading