Jump to content
IGNORED

Nes Template - Dasm help.


Happy_Dude

Recommended Posts

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 :)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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 :lol:

;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 :?

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...