Giter VIP home page Giter VIP logo

nesasm's People

Contributors

bunder2015 avatar camsaul avatar

Stargazers

 avatar

Watchers

 avatar

nesasm's Issues

additional ines v1 directives

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

ines v2 support

i haven't come across any roms that use v2 to compare to, other than relying on the spec

gcc8 strcat byte overlap

    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] 

add "bss2" for cart SRAM

should only be allowed on mappers that support SRAM (battery backed or not)

typically mapped at $6000-7FFF

vs/pc10 support

vs and pc10 are set in bit 7, might need more code to support the different features like the extra 8k on the pc10

improve bss with ppu support

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

add constants for registers

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

gcc7+ fallthrough warnings

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=]

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.