Code Monkey home page Code Monkey logo

funproject1's Introduction

FunProject1

Author: John San Diego COS 331 operating system Project 1 - PBrain12 Interpreter Version 1.00 - 09/29/2016

To compile: gcc Interpreter.c -o Interpreter.out

Brief: The Interpreter for PBrain12 Operating system. The Interpreter consists of the following variables IR = Instruction Register - 6 element character array which hold the instructions P0-P3 = pointer registers R0-R3 = program registers PC = program counter PSW[2] = program status word - character that can be either T or F memory = is the character 2d array where process and IR is stored

There are 9 helper functions which supports all of the operand functions -ParseOp1 - returns IR[2] and IR[3] -ParseOp2 - returns IR[4] and IR[5] -ParseOp1Reg - returns IR[3] -ParseOp2Reg - returns IR[5] -ParseOP1andOP2Imm - returns IR[2-5] -PrintIR - returns Instruction registers -FetchData - returns whats in a specific memory location -printMEM - returns all in memory -setMEM - converts Accumulator to character and store it in index specified in
memory.

There are 35 Operand functions start from OP0 - OP35

Bug: Currently, I haven't found any bugs using the Fibonacci, if and else, and the for loop.

funproject1's People

Contributors

johnsandiego avatar

Watchers

James Cloos 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.