GithubHelp home page GithubHelp logo

ph1-emulator's Introduction

Emulador-PH1

Trabalho de AOC 1, ministrada pelo Prof. Me. Marcos Jose Brusso, pela UPF

Nome: Alessandro A. Sangalli
Matrícula: 158095
Nome: William S. Nepomuceno
Matrícula: 178344

  • Compilação e Execução

  • Para rodar o programa é necessário ter o NODE.js instalado e entrar na raiz e executar os comandos:

    • npm install
    • tsc
    • node ./dist/src/app.js
  • Entrada

  • Ao iniciar o programa será necessário informar o nome do arquivo, que deve ser em formato .txt, cada linha do arquivo contem o endereço de memória PH1 e seu valor ambos devem estar em Hexadecimal separados por um espaço em branco

    • Exemplo de entrada (arquivo "entrada01.txt")

    • 00 10
      01 81
      02 30
      03 82
      04 20
      05 80
      06 F0
      80 00
      81 05
      82 02

  • Saída

  • A saída do programa deve conter o seguinte formato:

    Input file: entrada01.txt

    LDR 81 ; AC <- MEM[81]
    ADD 82 ; AC <- AC + MEM[82]
    STR 80 ; MEM[80] <- AC
    HLT

    4 instructions executed

    Registers:
    AC 07
    PC 07

    Memory:
    80 07


ph1-emulator's People

Contributors

alessandrosangalli avatar williamsimionatto avatar

Stargazers

 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.