Search found 23 matches

by tonma
Fri Mar 31, 2017 6:40 am
Forum: Newbie Help Center
Topic: cc65 and RODATA
Replies: 15
Views: 5922

Re: cc65 and RODATA

The vectors share space with the last fixed bank, so subtract that from PRG's size... PRG: start = $E000, size = $1ffa, file = %O ,fill = yes, define = yes; # Hardware Vectors at end of the ROM VECTORS: start = $fffa, size = $6, file = %O, fill = yes; Thanks, it's working. I'll try with more PRG an...
by tonma
Fri Mar 31, 2017 6:12 am
Forum: Newbie Help Center
Topic: cc65 and RODATA
Replies: 15
Views: 5922

Re: cc65 and RODATA

1. PRG ROM and CHR ROM sizes usually need to be powers of two. MMC3's behavior is unspecified with ROM sizes that are not powers of 2. 2. If you're planning to use 32K of PRG ROM, why are you using MMC3? For the timer? 3. MMC3's startup code needs to be in $E000-$FFFF so that it can map everything ...
by tonma
Fri Mar 31, 2017 5:51 am
Forum: Newbie Help Center
Topic: cc65 and RODATA
Replies: 15
Views: 5922

Re: cc65 and RODATA

I guess you are testing separating the PRG into different banks. PRG3: start = $E000, size = $1fff Why is this not starting at $c000. And size = $2000. All the sizes should be $2000 And the placement of banks is out of order. If PRG is the last bank...it should be listed after PRG3. Edit, and I don...
by tonma
Fri Mar 31, 2017 3:12 am
Forum: Newbie Help Center
Topic: cc65 and RODATA
Replies: 15
Views: 5922

Re: cc65 and RODATA

I did tests with a simple hello world. With a prg of 16kb it works. If I add a second, the screen is all gray and I have nothing in the ppu, as if the chr bank was not loaded! But I didn't change chr address. Left works, right doesn't work. https://i58.servimg.com/u/f58/18/89/68/64/nes00410.png I ad...
by tonma
Fri Mar 31, 2017 1:06 am
Forum: Newbie Help Center
Topic: cc65 and RODATA
Replies: 15
Views: 5922

cc65 and RODATA

Hi, I use the mapper mmc3 but I think its work the same with another. I would like to store integer tables to draw my room in RODATA. So I use const unsigned char array but they are added to the PRG. I thought that constants are placed in ROM. I will have 100 arrays for my rooms, so it will not fit ...
by tonma
Fri Mar 31, 2017 12:44 am
Forum: Newbie Help Center
Topic: Spreite 8x8 to 8x16
Replies: 6
Views: 2555

Re: Spreite 8x8 to 8x16

No problem.

I use yy-chr and I can actually modify the bank of sprites in 8x16 but if you change the background bank after, it also changes the order of the tiles for the background in 8x16.
So I prefer to use the normal mode for bank sprites.
by tonma
Wed Mar 29, 2017 8:51 am
Forum: Newbie Help Center
Topic: Spreite 8x8 to 8x16
Replies: 6
Views: 2555

Re: Spreite 8x8 to 8x16

Thanks you all. It was because of the value of $2000. I checked with the debugger as you ask me and the value was the same as the older. I change the value when my screen is off at start. But I had also placed it in my NMI function in asm. Remove from it and it's working. I could not remember the ch...
by tonma
Wed Mar 29, 2017 8:03 am
Forum: Newbie Help Center
Topic: Spreite 8x8 to 8x16
Replies: 6
Views: 2555

Spreite 8x8 to 8x16

hi, I'm a beginner on Nes and using cc65. I can display sprites, background, move sprites, palettes, attributes ... and even change bank for graphics / chr. I read the articles on nesdev wiki but I have a worry when I want to display sprites in 8x16. My code works in 8x8 and with metatiles. I change...