Giter Site home page Giter Site logo

forsenonlhaimaisentito / chip8 Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 29 KB

Emulatore ed assembler/disassembler CHIP-8 completi scritti in C (con commenti in italiano)

License: GNU General Public License v3.0

Makefile 0.71% M4 0.68% C 80.13% Yacc 12.75% Lex 5.72%

chip8's Introduction

Emulatore ed assembler/disassembler in C

Con commenti in italiano

Compilazione

git clone https://github.com/forsenonlhaimaisentito/chip8.git
cd chip8
autoreconf -i
./configure && make

Utilizzo

Il progetto comprende due programmi: c8emu e c8as, rispettivamente emulatore ed assembler/disassembler.

c8emu

L'utilizzo è piuttosto semplice:

./c8emu NOME_FILE COLORE SFONDO

i colori primo piano e sfondo sono opzionali e vanno specificati in esadecimale, come la notazione HTML, esempio:

./c8emu ../PONG 00FF00 000000

esegue il programma ../PONG e disegna verde su nero.

c8as

Prende uno o due argomenti, nel caso di un argomento, effettua una traduzione da codice macchina a mnemonico; se invece ha due argomenti, traduce il file del primo in codice macchina e scrive il risultato nel secondo, ad esempio se voglio compilare il file sorgente.txt in programma, farò:

./c8as sorgente.txt programma

mentre per vedere il sorgente di un programma programma:

./c8as programma

Sintassi assembler

La sintassi dell'assembler ricorda quelle di molti altri, ha funzionalità come label, db e resb, mentre riconosce le seguenti istruzioni:

  • CLS
  • RET
  • JP
  • CALL
  • SKIPE
  • SKIPNE
  • LD
  • ADD
  • SUB
  • RSB
  • OR
  • AND
  • XOR
  • SHR
  • SHL
  • RAND
  • DRAW
  • SKIPDW
  • SKIPUP
  • IN
  • SPRITE
  • BCD
  • STOR
  • LOAD
  • DB
  • RESB

Sezione da completare.

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.