kosmas12 / chip8assembler Goto Github PK
View Code? Open in Web Editor NEWA FOSS assembler for the CHIP-8
License: GNU General Public License v2.0
A FOSS assembler for the CHIP-8
License: GNU General Public License v2.0
Running Chip8Assembler on a file that contains empty lines(OR A NEWLINE AT THE END OF FILE)
[teufelchen@Squishy ~/Programming/Chip8Assembler (git)-[master] % ./Chip8Assembler example.chip8
Welcome to Chip8Assembler!
Assembly code file: example.chip8
Succesfully opened example.chip8
Invalid instruction on line 5!
Succesfully wrote machine code to example.c.ch8. Assembly complete!
Additionally even though an error was encountered, it still writes a binary file and claims it was successful.
Currently, in case of any errors, the assembler only returns an error message saying there's an invalid instruction on the currently assembled line. It should be able to tell what the problem is exactly, like wrong instruction, missing commas etc.
Checklist:
Hi ๐โโ๏ธ
you are stating "Syntax" but you provide the Mnemonic instead. Its just a minor thing but I personally would change it.
See Mnemonics on Wikipedia.
The readme does not tell how to compile & run the software.
An example program and how to assemble it would also be great.
./Chip8Assembler example.chip8
Welcome to Chip8Assembler!
Assembly code file: example.chip8
Succesfully opened example.chip8
Succesfully wrote machine code to example.c.ch8. Assembly complete!
I was naming my input file example.chip8
(not sure what the intended naming is, the readme does not suggest one).
I expected an output file like rom.bin
or similar. Not a weird example.c.ch8
.
Compiling this short sample program
CLSC
LDRB 0 0
ADDB 0 1
JUMP 0
Generates this binary:
hexdump example.c.ch8
0000000 00 e0
0000002
The expected result was:
00 e0 00 60 01 70 00 10
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.