Resources
-
bookLecture slides
- Week 2 - Chapter 2
- Week 3 - Logic Design (Appendix B)
- Week 4 - Sequantial Logic (Appendix B)
- Week 5 - Chapter 3 - Arithmetic for Computers
- Week 6-7 - Chapter 4 - The Processor (4.1 - 4.4)
- Week 9 - Chapter 4 - The Processor (4.5)
- Week 10 - Chapter 5 - Memory (5.1-5.3)
- Week 11 - Chapter 5 - Memory (5.4)
- Week 12 - Chapter 5 - Memory (5.6-5.7)
- Week 13 - Chapter 6 - Parallel Processors (6.1-6.6)
- Week 14 - Review and exam
-
call_madeMIPS system calls
Service System call Code Arguments Result print integer 1 $a0 = value (none) print float 2 $f12 = float value (none) print double 3 $f12 = double value (none) print string 4 $a0 = address of string (none) read integer 5 (none) $v0 = value read read float 6 (none) $f0 = value read read double 7 (none) $f0 = value read read string 8 $a0 = address where string to be stored
$a1 = number of characters to read + 1(none) memory allocation 9 $a0 = number of bytes of storage desired $v0 = address of block exit (end of program) 10 (none) (none) print character 11 $a0 = integer (none) read character 12 (none) char in $v0 For example, to print "the answer = 5", use the commands:
.data str: .asciiz "the answer = " .text li $v0, 4 # $system call code for print_str la $a0, str # $address of string to print syscall # print the string li $v0, 1 # $system call code for print_int li $a0, 5 # $integer to print syscall # print it
-
tocMIPS quick reference
-
tocDigital Logic Circuits Simulator - CircuitVerse