Happy_Dude Posted February 28, 2004 Share 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 Link to comment Share on other sites More sharing options...
EricBall Posted March 1, 2004 Share 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 Link to comment Share on other sites More sharing options...
Wrathchild Posted March 1, 2004 Share Posted March 1, 2004 Also have a look at CC65, its assembler and linker have been used to make NES images. nes101.zip Quote Link to comment Share on other sites More sharing options...
Paul Slocum Posted March 1, 2004 Share Posted March 1, 2004 org $0000 rorg $bff0 There is an include binary directive, can't remember the syntax. Read the manual. -paul Quote Link to comment Share on other sites More sharing options...
Happy_Dude Posted March 2, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Happy_Dude Posted March 7, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.