diff --git a/lab0/lab0-numbers.pdf b/lab0/lab0-numbers.pdf new file mode 100644 index 0000000..10c3f55 Binary files /dev/null and b/lab0/lab0-numbers.pdf differ diff --git a/lab0/lab0.md b/lab0/lab0.md new file mode 100644 index 0000000..a1e5509 --- /dev/null +++ b/lab0/lab0.md @@ -0,0 +1,53 @@ +# Getting prepared + +*Deadline:* Friday, 1/20/2023. + +We will keep the submission open until Wed, 2/1/2023, for students who enroll +into the course late. + +Check + +*If you work on a lab computer or UConn AnyWare Desktop, save your files to +cloud storage like OneDrive. Otherwise, you may lose your files.* + +## Learning Objectives + +* Run a RISC-V programs in RARS. + +* Submit code in Gradescope. + +* Conversion of non-negative numbers to a different radix. + +* Take a quiz in HuskyCT. + +## Description + +### Task 1 + +Follow the instructions on [this page](https://github.com/zhijieshi/cse3666/blob/master/misc/rars.md) +to install RARS and run RISC-V programs in RARS. + +Copy code in `01-hello.s` to a new file `lab0.s`. Modify the `msg` string so +the program prints the following. There is no space after the ending dot. + + Hello, welcome to CSE 3666. Spring is coming. + +Submit `lab0.s` in Gradescope. There is a link in HuskyCT. + +### Task 2 + +Study the slides in `lab0-numbers.pdf` to learn/review converson of numbers of +different radices. + +* Binary to decimal. +* Decimal to binary. +* Hexadecimal to decimal. +* Decimal to hexadecimal. + +Practice on [this page](https://zhijieshi.github.io/cse3666/binarynumbers/). +For now, you can click the Config button and uncheck "Bits are signed". + +## Deliverables + +Submit `lab0.s` in Gradescope and complete quiz lab0 in HuskyCT. +