Giter Site home page Giter Site logo

comparchproject1's Introduction

Computer Architecture ECE251 Project 1

Purpose / Goal

For project #1, you will ask the user to input 2 strings and concatenate the two. Both strings will have at most 12 ASCII characters. You will ask the user to enter the first string after which they will hit enter. If the number of characters exceeds the 12-character limit, you will print an error and exit the program with a 7 return code. If the number of characters is less than or equal to 12 characters, you will ask them to enter another string. If the second string exceeds the character limit, your program should print an error message and exit with an 8 return code. If both strings meet the requirements, you will then output the concatenated string to stdout and return an error code that consists of the total number of characters in the concatenated string.

Installation Method 1 (Recommended)

  1. Download the bash script using curl:
curl https://raw.githubusercontent.com/jakekali/compArchProject1/main/runme --output runme
  1. Change the permissions on the bash script file - runme
chmod +x runme
  1. Run the runme bash file:
./runme

Installation Method 2

  1. Download the assembly file from GitHub using curl:
curl https://raw.githubusercontent.com/jakekali/compArchProject1/main/jag.s --output jag.s
  1. Download the Makefile from GitHub using curl:
curl https://raw.githubusercontent.com/jakekali/compArchProject1/main/Makefile --output Makefile
  1. Run the Makefile in the directory downloaded: (it might throw an error, but it can ignored, the file still generates)
make
  1. Run the exectutable generated:
./jag.out

Design Document

The Design Document can be found here

comparchproject1's People

Contributors

jakekali avatar gary-kim avatar alizameller avatar

Watchers

James Cloos avatar  avatar  avatar

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.