Skip to content

Commit d92b55c

Browse files
tofergreggCS107E BOT
authored andcommitted
released intro lecture
commit dd86a6824e586686cab220fe9bf859a8d674f4ef Author: Chris Gregg <[email protected]> Date: Mon Jan 6 06:19:42 2025 -0800 released intro lecture
1 parent fa357af commit d92b55c

File tree

4 files changed

+36
-1
lines changed

4 files changed

+36
-1
lines changed

_data/unreleased.csv

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ permalink,title,released
2929
"/lectures/Framebuffer/","Graphics and the framebuffer",false
3030
"/lectures/Interrupts1/","Interrupts",false
3131
"/lectures/Interrupts2/","Interrupts, cont'd",false
32-
"/lectures/Intro/","Introduction and welcome",false
3332
"/lectures/Keyboard/","Keyboards and the PS/2 Protocol",false
3433
"/lectures/Linking/","Modules, Libraries, and Linking",false
3534
"/lectures/Memory/","Memory Management",false

lectures/Intro/README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
released: true
3+
permalink: /lectures/Intro/
4+
title: Introduction and welcome
5+
readings: |
6+
Readings:
7+
+ For background, review our guides on [electricity](/guides/electricity/), [binary/hexadecimal numbers](/guides/numbers/), and the [unix command line](/guides/unix).
8+
+ Bookmark this collection of [unix video tutorials](https://web.stanford.edu/class/archive/cs/cs107/cs107.1186/unixref/) that were prepared for CS107 students. These videos cover basic concepts, common utilities, development tools, and productivity features.
9+
+ An [interactive tour of Mango Pi board](https://mangopi.org/_media/mq-pro-v12-ibom.html)
10+
+ The [Ripes RISC-V simulator](https://ripes.me/)
11+
+ A "for fun" diversion: Steven Wolfram's blog post [Untangling the Tale of Ada Lovelace](http://blog.stephenwolfram.com/2015/12/untangling-the-tale-of-ada-lovelace) traces the work of Charles Babbage and Lady Ada Lovelace to develop the concept of a general-purpose computer.
12+
13+
---

lectures/Intro/code/README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# RISC-V instructions
2+
3+
Try pasting these instructions into the [Ripes visualizer](https://ripes.me/)
4+
5+
```
6+
# li pseudoinstruction, look at executable code to see actual instructions
7+
li a0,5
8+
li a1,6
9+
10+
# rtype: 2 sources both regs
11+
add a2,a1,a0
12+
sub a2,a1,a0
13+
and a2,a1,a0
14+
or a2,a1,a0
15+
xor a2,a1,a0
16+
17+
# itype: 1 source reg, 1 source 12-bit immediate (constant)
18+
19+
addi a2,a2,45
20+
addi a2,a2,-1 # no subi
21+
andi a2,a2,0xf
22+
ori a2,a2,0xf
23+
```

lectures/Intro/slides.pdf

19.6 MB
Binary file not shown.

0 commit comments

Comments
 (0)