HW 8 Embedded a Soft-Core

Calvin Reese

cjreese@fortlewis.edu

4/12/2022

Introduction

In this lab, we experimented with an processor and programming with assembly

Materials and Methods

The tutorial to these examples are found:

Here

Results

Code for All Tasks:

Section 3: Mimic Switches

Section 4: The Square Problem

Section 5: Add With 13

Section 6: Mask

Section 7: Shift

Section 8: 5 or 6

Section 9: Subroutine - Test

Section 10: Subroutine - Compare

Section 11: Count Switches

The code works by applying a mask over the swiches so it can check just the first bit for a 1, then it will shift the bit sequence of the switchs to the right to check the next bit till it has added up all the high swiches.

Discussion

Fortunatly I have had some experiance with x8086 assembly language, so I had an idea of how to go about this. All in all a fun hw.