Happy_Dude #1 Posted February 28, 2004 O.k I'm hoping this is a simple little DASM problem and not a great big NES problem I need to include a binary file in a new bank. The source code I have isn't any help because it's written in NESASM It has to go at $0000 but the rom starts at $bff0. So how do I do this ? Do I need to use RORG ? If so how ? This is how it's done in NESASM .bank2 org $0000 .incbin "test.chr" any help Quote Share this post Link to post Share on other sites
EricBall #2 Posted March 1, 2004 Although it should be possible to accomplish what you want to do with DASM, you will probably be better off using the same 6502 assembler that other NES homebrewers use. The .bank etc commands are used by the assembler to handle the NES mapper (bankswitching) and iNES file format. Quote Share this post Link to post Share on other sites
Wrathchild #3 Posted March 1, 2004 Also have a look at CC65, its assembler and linker have been used to make NES images. nes101.zip Quote Share this post Link to post Share on other sites
Paul Slocum #4 Posted March 1, 2004 org $0000 rorg $bff0 There is an include binary directive, can't remember the syntax. Read the manual. -paul Quote Share this post Link to post Share on other sites
Happy_Dude #5 Posted March 2, 2004 I figured it out I just have to put the CHR at org $10000 just after the vectors. Nothing tricky at all. Heres why I couldn't figure it out. The macro I was using to setup the PPU was broken so the screen never got turned on ;This is broken :( MAC SetPPUCtrl ldx #>{1} ;High byte of address sta PPUCtrl0 ldx #<{1} ;Low byte of address sta PPUCtrl1 ENDM For some reason this Macro breaks the code whereas SetPPUAddr works fine and its essentialy the same thing Quote Share this post Link to post Share on other sites
Happy_Dude #6 Posted March 7, 2004 It only took me a week to figure out I'm loading X and storing A And I want to code a game? Could take a few years at that rate Quote Share this post Link to post Share on other sites