Code Monkey home page Code Monkey logo

gpr_sim's Introduction

GPR_SIM

Created by Ian Thomas with help of Lanxin Ma, September 2016. Group 1 Computer Architecture

GPR simulator that allows for checking for palindromes. 32 Registers

COMPILE & RUN: gcc gpr_sim.c -w -o GPR_SIM ./GPR_SIM palindrome.s

USAGE: .data section -> .text section Delcare data as so: .data .asciiz "String 0" .asciiz "String 1" .label label_name instruction_offset_in_hex .space string_name num_bytes

.text LI $0, 15 SYSCALL 9 END

SYSCALLS: Move address into $0 Add number next to SYSCALL Functions: 0 - Read string 1 - Print String 9 - Exit

FINAL NOTES: If file cannot be found when passing in source, try using the path instead. Haven't had this problem but it is a possibility.

Instructions are case sensitive. All instructions must be made with CAPS. Look at palindrome.s for complete details.

gpr_sim's People

Contributors

junetojuly avatar

Watchers

 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.