Search found 3844 matches

by Memblers
Sat Oct 31, 2020 2:54 pm
Forum: NES Graphics
Topic: Why is Mario's shirt brown?
Replies: 9
Views: 3527

Re: Why is Mario's shirt brown?

I found a video of somebody recording off of a SMB arcade machine, and although he does have a brown shirt, it's a much darker shade of brown than what I typically see in emulators. https://www.youtube.com/watch?v=mKk2TkKRAC0 Other than the different PPU, I think Nintendo's VS and PC10 cabinets nor...
by Memblers
Wed Oct 07, 2020 12:06 am
Forum: NES Music
Topic: Is $4011's default value $00 at start up?
Replies: 7
Views: 1228

Re: Is $4011's default value $00 at start up?

Oddly, SMB does something like that, too. It ramps it up to $30 when you're playing, then ramps it down to $00 when you die. But why, it's a mystery.
by Memblers
Tue Oct 06, 2020 6:30 pm
Forum: NES Music
Topic: FamiStudio NES Sound Engine (famiStudio) 2.2 in C
Replies: 12
Views: 2577

Re: FamiStudio NES Sound Engine (famiStudio) 2.2 in C

For a debugger you might try NESICIDE. 8bitworkshop might work for that, too (it's a little tricky to link with it, there's info on the forum about it though). Looking at the source, I'm not sure where the NMI gets enabled. It is calling the audio update from NMI, which is correct. There's potential...
by Memblers
Sat Oct 03, 2020 8:43 pm
Forum: NES Music
Topic: FamiStudio NES Sound Engine (famiStudio) 2.2 in C
Replies: 12
Views: 2577

Re: FamiStudio NES Sound Engine (famiStudio) 2.2 in C

The lines with the range error all have (indirect),y addressing mode. I think this means the variable is not being used as a zeropage address. Other lines accessing that variable aren't a problem because they can use absolute mode. The (indirect),y lines that it didn't complain about are inside an I...
by Memblers
Wed Sep 30, 2020 9:22 pm
Forum: Reproduction
Topic: Using non CMOS eproms on NES Carts
Replies: 11
Views: 2458

Re: Using non CMOS eproms on NES Carts

That should be NROM-128, then. Check pins 27 and 1, does the board connect them both to 5V (it should)?
by Memblers
Wed Sep 30, 2020 3:28 pm
Forum: NES Music
Topic: FamiStudio NES Sound Engine (famiStudio) 2.2 in C
Replies: 12
Views: 2577

Re: FamiStudio NES Sound Engine (famiStudio) 2.2 in C

The linker uses "memory areas" and "segments". You put your code/data into segments, and the linker uses the config file you supply it with to output your stuff into the memory areas. My guess about the error is because "RAM" is the name of a memory area, and not a segment. We'd need to see the .cfg...
by Memblers
Sun Sep 27, 2020 9:46 pm
Forum: NESdev
Topic: KickC Optimizing C-Compiler now supports NES
Replies: 34
Views: 15142

Re: KickC Optimizing C-Compiler now supports NES

Hi Memblers, The last code you post can be compile. But it is not work. It only show line on the screen, but no balls. Is it work on your side ? Thanks. I haven't tried to assemble and run it yet, only compile. I'm surprised it does compile, the first one I posted gave the missing asm fragment erro...
by Memblers
Sun Sep 27, 2020 2:29 am
Forum: NESdev
Topic: KickC Optimizing C-Compiler now supports NES
Replies: 34
Views: 15142

Re: KickC Optimizing C-Compiler now supports NES

I modified your C-file slightly to init the NES and add the NMI/RESET/IRQ vectors. Now I can compile and run the file, but ofc. I get a black screen since there is no rendering code. Thanks! I was surprised this modified file doesn't cause any error in 0.8.3, but the asm file created is missing mos...
by Memblers
Sat Sep 26, 2020 2:38 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 172
Views: 51331

Re: VBCC Optimizing C-compiler now supports NES

Now I've added this line into the linker config, and trying to use it my code as such: nesram (NOLOAD): {*(nesram)} >ram #pragma section nesram uint8_t RAM_BASE[0x400]; #pragma section default But it always ends up in the bss section, so I must be doing something wrong. I found the problem. RAM_BAS...
by Memblers
Fri Sep 25, 2020 1:17 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 172
Views: 51331

Re: VBCC Optimizing C-compiler now supports NES

I did a short test with your code and it seemed to work for me. Can you provide a full example? I've attached it in a private message. If you do this within one asm-statement, it should be safe. Something like: Thanks! -- I converted a small (600 line) asm app from ca65 to vasm, that went well. enu...
by Memblers
Mon Sep 21, 2020 12:47 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 172
Views: 51331

Re: VBCC Optimizing C-compiler now supports NES

Reviewing the thread, I found some inline assembly examples are here already, thanks. viewtopic.php?f=2&t=20226&start=105#p254104
by Memblers
Sun Sep 20, 2020 10:19 pm
Forum: General Stuff
Topic: FamiNES Archive [v3.4]
Replies: 2
Views: 1798

Re: FamiNES Archive [v3.4]

I can confirm that these were my ROMs:
Capcom OST's [I+][Unknown][b.1] - [Memblers][2000]
Capcom OST's [I+][Unknown][Single Screen] - [Memblers][2001]
by Memblers
Sun Sep 20, 2020 5:11 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 172
Views: 51331

Re: VBCC Optimizing C-compiler now supports NES

There is one limitation I've found with the assembler, that it won't accept "align 256". With the oldstyle syntax module, the argument of align is the number of bits to clear. You probably want "align 8". Good, that makes sense now. 256 bits would have been quite an alignment size, haha. #pragma se...
by Memblers
Fri Sep 18, 2020 10:55 am
Forum: NESdev
Topic: VBCC Optimizing C-compiler now supports NES
Replies: 172
Views: 51331

Re: VBCC Optimizing C-compiler now supports NES

I've had the uncanny experience of "getting beaten" by this compiler. I have a function that is simple but running very often, so I tried rewriting the main part of it in asm. It turned out slower than the C version, by more than just the JSR/RTS penalty from calling the asm subroutine. The asm rout...
by Memblers
Thu Sep 17, 2020 2:05 am
Forum: General Stuff
Topic: Famicomstation questions.
Replies: 3
Views: 2576

Re: Famicomstation questions.

The only manuals I've seen look like one they'd leave in the hotel room for the user, there probably is a service manual somewhere though, I don't know if it's been found. I'd imagine the circuit would be pretty similar to the NES schematic though, with the extra stuff bolted on. https://problemkapu...