bunder2015 / nesasm Goto Github PK
View Code? Open in Web Editor NEWThis project forked from camsaul/nesasm
nesasm - Assembler for NES 6502 assembly
This project forked from camsaul/nesasm
nesasm - Assembler for NES 6502 assembly
the present list of ines directives is limited to prg/chr rom size, mapper, and mirroring.
would be nice to add prg ram size, battery bit, pc10/vs flags, pal region flags, bus conflict flag
i haven't come across any roms that use v2 to compare to, other than relying on the spec
inlined from ‘macro_getargs’ at macro.c:312:7:
/usr/include/bits/string_fortified.h:128:10: warning: ‘__builtin_strcat’ accessing between 2 and 1 bytes at offsets [0, 6400] and [0, 6400] overlaps 1 byte at offset [1, 6401] [-Wrestrict]
should only be allowed on mappers that support SRAM (battery backed or not)
typically mapped at $6000-7FFF
vs and pc10 are set in bit 7, might need more code to support the different features like the extra 8k on the pc10
bss directive starts at $0200, overlapping the typical ppu oam dma area, necessitating a gigantic table for each oam slot
.bss
SPR1Y:
.ds 1
SPR1TILE:
.ds 1
SPR1ATTR:
.ds 1
SPR1X:
.ds 1
... times 64
it may be useful to hard code constants into nesasm to avoid includes
eg
PPUCTRL .equ $2000
PPUMASK .equ $2001
PPUSTATUS .equ $2002
OAMADDR .equ $2003
OAMDATA .equ $2004
PPUSCROLL .equ $2005
PPUADDR .equ $2006
PPUDATA .equ $2007
SQ1VOL .equ $4000
SQ1SWEEP .equ $4001
SQ1LOW .equ $4002
SQ1HIGH .equ $4003
SQ2VOL .equ $4004
SQ2SWEEP .equ $4005
SQ2LOW .equ $4006
SQ2HIGH .equ $4007
TRILINEAR .equ $4008
; $4009 is unused
TRILOW .equ $400A
TRIHIGH .equ $400B
NOISEVOL .equ $400C
; $400D is unused
NOISELOW .equ $400E
NOISEHIGH .equ $400F
DMCFREQ .equ $4010
DMCRAW .equ $4011
DMCSTART .equ $4012
DMCLENGTH .equ $4013
OAMDMA .equ $4014
SNDCHAN .equ $4015
JOY1 .equ $4016 ; Read only
STROBE .equ $4016 ; Write only
JOY2 .equ $4017 ; Read only
APUFRAME .equ $4017 ; Write only
Built on gcc 8 after last round of modifications
expr.c:252:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
expr.c:300:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
code.c:571:43: warning: this statement may fall through [-Wimplicit-fallthrough=]
code.c:625:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
code.c:627:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
code.c:630:8: warning: this statement may fall through [-Wimplicit-fallthrough=]
code.c:635:9: warning: this statement may fall through [-Wimplicit-fallthrough=]
code.c:638:10: warning: this statement may fall through [-Wimplicit-fallthrough=]
macro.c:176:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
macro.c:231:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
macro.c:397:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
func.c:36:5: warning: this statement may fall through [-Wimplicit-fallthrough=]
func.c:155:7: warning: this statement may fall through [-Wimplicit-fallthrough=]
pcx.c:445:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
pcx.c:556:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
pcx.c:558:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
pcx.c:560:14: warning: this statement may fall through [-Wimplicit-fallthrough=]
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.