Giter Club home page Giter Club logo

ece281_ce4's Introduction

ECE281_CE4

####Lab For part a, I just needed to check the box to allow changes to RAM. Then I gave the needed locations labels that I used when storing the values. Afterwards, it was simply a matter of loading the correct values and then storing them in the RAM locations.

For part b, I gave a label to the first RAM location and loaded it. To multiply by two, I added the same number from the location. To subtract by four, I added C, which is the hex equivalent of the binary value for negative four. This effectively subtracted four from the current value. When the starting value is set at one or zero, since the value multiplied by two is less than four, the result comes out at the other end of the hex values.

For part c, I input from port 3. I then output the value to port 0 and subracted one. To subtract one, I added F based on the same reasoning for part b. Afterwards, I output the value to port 1, subracted by one again, and output the third value to port 2. At the end of the program, I jumped back to a loop that was set at the first output so that the program would continue to decrease the output values. Initially, I was subtracting a third time, which caused the program to jump values rather than go down by one each loop. Ryan Redhead pointed out that I needed to add by one at the end to return to the value just below the first output.

For all parts, I matched the target end address.

#Functionality

  • Simple Memory Manipulation (part a)
  • Mathematics (part b)
  • Loops (part c)

ece281_ce4's People

Contributors

mbergstedt avatar

Watchers

James Cloos avatar  avatar

ece281_ce4's Issues

CE4 Grade

Program A: Check

  • Comments?

Program B: Check

  • Comments?

Program C: Check

  • Comments?

README: Check

  • Why not put your screenshots in your README?

Bonus +3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.