CSc
3210 Computer Organization and Programming
Instructor: Dr. Michael Weeks
Computer Science Department
web-page: https://hallertau.cs.gsu.edu/~mweeks
Syllabus
Homework and Exam Information
Class Material
-
two's complement, converting from binary to decimal, AND, OR, NOT from February 3
-
Example with priority, binary addition, finding magnitude of a negative binary number, arithmetic shifts
-
Hexadecimal to binary and back
-
We will be using RARS and VSCode/Venus, and they have slightly different
conventions when using ecalls.
Make sure that the registers are loaded correctly before the ecall.
See Table 2 of Robert Winkler's book for RARS,
and the link
for VSCode/Venus.
-
example program that finds 37 + 24 - 17 in RISC-V assembly
-
see RISC-V Reference Data from the book's publisher
-
Examples of AND, OR, NOT, XOR on binary values
-
variations on an example program that finds 37 + 24 - 17 in RISC-V assembly
-
Examples using a branch command
-
Example2 (from Feb 17) in VSCode and RARS
-
Example of a floating point conversion (chapter 3)
-
Ecalls with RARS and VSCode
-
Print int 24, char 10, string ABC, and exit in RARS
Print int 24, char 10, string ABC, and exit in VSCode/Venus, output
General Information