Safiire
dfb4410497
Updated the demo, realized anonymous scopes don't work right :(
2015-03-05 17:21:51 -08:00
Safiire
8f2500dd60
I made it so starting a named scope serves the dual purpose of creating a symbolic reference to the current PC
2015-03-05 16:53:55 -08:00
Safiire
4edbff55a5
Added scope directive
2015-03-05 13:45:19 -08:00
Safiire
2c938f7312
This is s a big rewrite including: A scoped symbol table, segment and
...
bank management, Use of promises to resolve symbols that are used before
they are defined. A base class for all instructions and assembler
directives. Hopefully my scoped symbols can be used to create C like
data structures in the zero page, ie sprite.x New code to prodce the
final ROM. Basically everything was rewritten.
2015-03-05 12:33:56 -08:00
Safiire
4235742c7d
Creating a symbol table that has scope
2015-03-04 04:20:18 -08:00
Safiire
8f01494fbb
Trying to re-organize my classes, and add a base class for objects which can emit_bytes to the ROM
2015-02-24 17:37:00 -08:00
Safiire
3dc1c22aae
Separated the frontend commandline stuff from the actual assembler
2015-02-24 16:43:50 -08:00
Safiire
4bc880eb37
Trying to make the demo asm a bit nicer, before moving onto treetop parser
2015-02-23 23:46:53 -08:00
Safiire
337688b456
Made error messages a bit better, error on mapper other than 0, fixed scrolling in demo
2015-02-23 00:24:57 -08:00
Safiire
8752d7afac
A kind of better ROM assembly...
2015-02-22 22:49:30 -08:00
Safiire
eaa80000b2
Can use lower case instruction names and hex now
2015-02-22 18:49:24 -08:00
Safiire
d10709e0b0
Some updates but assemblying programs with multiple banks, or more prog and char sections is messed up
2015-02-22 17:39:35 -08:00
Safiire
a52ead091e
this branch sucks
2015-02-22 06:33:36 -08:00
Safiire
404934479f
Intermediate commit
2015-02-22 05:59:03 -08:00
Safiire
427b676502
Ported NES101 tutor to this assembler, fixed the PROG and CHR positioning in the ROM, added more directives .ascii etc.
2015-02-18 18:36:22 -08:00
Safiire
07ae7812ed
Accidentally had the opcode for TXA be NOP, don't know how that happened. I ported background.asm from NESASM format to my format, it is veeeery similar so not much needed changing, and the resulting ROM worked fine :)
2015-02-18 03:56:39 -08:00
Safiire
ac46228b9f
I have added many directives, such as .org, ines header, .dw, .bytes, and made it produce proper Roms launch into the entry point at 0xC000 from the reset vector. I basically rewrote the Assembler class, this could still use some cleaning up though, more unit tests, and to compile some code with CHR segments
2015-02-18 03:05:18 -08:00
Safiire
69e3d2fb0c
Initial Commit
2015-02-17 19:05:37 -08:00