Giter Site home page Giter Site logo

cs219-sp23-project1pt3-aj-03-14-2023's Introduction

Project 1, part 3: Machine Language Simulator

Author: AJ Di Diana

Program

The chosen language is c++ for this project; it includes the makefile to create the executable "machineLangSim" along with the main.cpp for the main driver code, and the Programming-Project-3.txt for the use of reading ARM UAL code instructions. This program will perform a series of bitwise operations depending on the operation listed before the selected 2 hexadecimals (or integers for shifting) and it will print them to the terminal as well as the hexadecimal result after said bitwise operation. This program also outputs NZCV flags after each operation. In the menu there is also an option to print out the file contents to the terminal or to exit the program.

TLDR: Performs an assortment of bitwise operations, shows set flags, shows results in registers, able to print out file contents, able to give the user an option to exit program.

File List

  1. main.cpp -> The main driver code, the motherboard of this coding project.
  2. makefile -> The makefile that compiles all the files into one executable (in this case: machineLangSim).
    • This will be used to create objects like the main.o object as well, an object containing all of the main driver code in one little neat package.
  3. Programming-Project-3.txt -> A sample containing the desired operation and the hexadecimals to perform said operation.
  4. README.md -> The file you are currently reading -- it contains all of the information you need to know about how the program operates (roughly).

Components

  1. The machine language simulator uses an interactable menu to perform bitwise operations with hexadecimals.
  2. Reads in assembly instructions and performs them accordingly and store them into their assigned registry.
  3. Able to store hexadecimals in "registers" and display them (0-7).
  4. Displays whether or not NZCV flags are set.
  5. Has the hexadecimals and operations in question read from an external .txt file.

Execution

PLEASE UNZIP THE ZIP FILE AND REMEMBER WHERE IT IS IN YOUR COMPUTER Type "cd {location}" to where the folder named "AJ_Di-Diana_proj3" within computer directory To nagivate to the folder holding this project, make sure to type "cd AJ_Di-Diana_proj3" - Use the "ls" command to look for the directories you need to help navigate further. To run the file, type "make" then "./machineLangSim" in the command line. If the executable "machineLangSim" and "main.o" object are already present, skip to typing in "./machineLangSim"

cs219-sp23-project1pt3-aj-03-14-2023's People

Contributors

di-diana-aj-1103 avatar

Watchers

 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.