Search found 7838 matches

by rainwarrior
Sun Sep 27, 2020 1:28 pm
Forum: NESemdev
Topic: Bad nametable and memory access in Iceclimber
Replies: 1
Views: 57

Re: Bad nametable and memory access in Iceclimber

The stuff from that reddit post doesn't look like code, it looks like data accidentally disassembled as code.

The problem isn't probably to do with mirroring, but maybe to do with vertical wrapping? I'm not sure what to suggest. You seem to be slipping by 1 byte every 7 rows?
by rainwarrior
Sun Sep 27, 2020 11:20 am
Forum: Newbie Help Center
Topic: CC65 how to optimize 16 bit variable assignment?
Replies: 6
Views: 110

Re: CC65 how to optimize 16 bit variable assignment?

It should be able to optimize for an array of 256 bytes of less. Or, maybe the problem is that it is an array of ints. In theory it could optimize for arrays that are small enough, but it does not. In cc65 you can only get absolute indexed access with an array of 8-bit type and an 8-bit index type ...
by rainwarrior
Wed Sep 23, 2020 4:02 pm
Forum: NES Music
Topic: turning nsf file to bin for .incbin
Replies: 4
Views: 140

Re: turning nsf file to bin for .incbin

NSF format doesn't really conform to any real NES mapper. There is a relatively new real mapper that was built around the NSF format, and there have been several releases using it. I built the EZNSF and ZENSF projects specifically to facilitate making NES cartridge albums out of NSFs. Regarding OPs...
by rainwarrior
Tue Sep 22, 2020 4:09 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 18
Views: 535

Re: CA65 Bit-shift During Compilation Isn't Working Properly

It should not matter what file the macro is included from, the state of .I16/.I8 should be taken from the context of the code where the macro is used, not where it was originally included/defined. (The same macro can have different register sizes in different places, if desired.) That doesn't alway...
by rainwarrior
Tue Sep 22, 2020 2:59 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 18
Views: 535

Re: CA65 Bit-shift During Compilation Isn't Working Properly

Yes, when I say the assembler I mean the code generated by ca65, which is controlled by .I16 etc. When I say CPU I mean the current state of the flags as it's running, controlled by the code itself. It should not matter what file the macro is included from, the state of .I16/.I8 should be taken from...
by rainwarrior
Mon Sep 21, 2020 9:23 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 18
Views: 535

Re: CA65 Bit-shift During Compilation Isn't Working Properly

This is what shows up in the debugger, that's an 8 bit instruction correct? $00/810F A2 10 LDX #$10 A:00FF X:00FF Y:0000 P:eNvMXdizC $00/8111 00 A9 BRK #$A9 A:00FF X:0010 Y:0000 P:envMXdizC The assembler seems to have been in 16-bit mode, but the debugger (CPU?) is in 8-bit mode. How to interpret t...
by rainwarrior
Mon Sep 21, 2020 1:31 pm
Forum: SNESdev
Topic: CA65 Bit-shift During Compilation Isn't Working Properly
Replies: 18
Views: 535

Re: CA65 Bit-shift During Compilation Isn't Working Properly

Pretty sure you're missing some #s. LDA num = load .A from address num; while LDA #num = load immediate value into .A. Which also means you could greatly simplify it by avoiding using X altogether, since dma_channel is known at compile time you can just add it to the register address directly: pha ...
by rainwarrior
Thu Sep 17, 2020 3:15 pm
Forum: NES Music
Topic: VRC7/YM2413/OPLL Custom Patches
Replies: 18
Views: 596

Re: VRC7/YM2413/OPLL Custom Patches

Ben Boldt wrote:
Thu Sep 17, 2020 5:59 am
As far as I knew from Wikipedia, only these Yamaha keyboards used the YM2413
I thought there were some Casio ones as well using OPLL, but I don't remember details, possibly was mistaken.
by rainwarrior
Thu Sep 17, 2020 3:12 pm
Forum: NES Music
Topic: VRC7/YM2413/OPLL Custom Patches
Replies: 18
Views: 596

Re: VRC7/YM2413/OPLL Custom Patches

I'm assuming the parameters don't/can't changed while the note plays (I'm not well-versed in the Yamaha stuff), one could store the channel's current register settings when a note-on is triggered. You can modify the parameters while a note is in flight, though I think actual use of this is pretty r...
by rainwarrior
Wed Sep 16, 2020 11:36 pm
Forum: NES Music
Topic: VRC7/YM2413/OPLL Custom Patches
Replies: 18
Views: 596

Re: VRC7/YM2413/OPLL Custom Patches

Kind of a side-question, some time ago I put names of the instruments into our VRC7 audio wiki page, based on a forum post from plgDavid. However, I see some different names in Famitracker. Do we know if any of these names came from a real source or have people probably just created names for them ...
by rainwarrior
Sun Sep 13, 2020 4:04 pm
Forum: NES Music
Topic: VRC7/YM2413/OPLL Custom Patches
Replies: 18
Views: 596

Re: VRC7/YM2413/OPLL Custom Patches

Maybe a different approach: How about an NES test ROM that lets you tweak the settings -- has anyone created anything like that? CopyNES has a "VRC7 tuner" utility that will let you play with the custom VRC7 patch with a live Lagrange Point cart in your NES, which is what was used to work on the by...
by rainwarrior
Sat Sep 12, 2020 4:32 pm
Forum: Newbie Help Center
Topic: CC65 interop with assembly
Replies: 3
Views: 545

Re: CC65 interop with assembly

Probably the information is redundant to the stuff on that wiki page, but here's where the relevant stuff is documented:
https://cc65.github.io/doc/cc65-intern.html
by rainwarrior
Mon Sep 07, 2020 4:58 pm
Forum: Newbie Help Center
Topic: Correlating note with game frames on famitracker
Replies: 7
Views: 983

Re: Correlating note with game frames on famitracker

The default speed of 6 results in 4 rows per beat Sorry, I should have said that differently. The default tempo of 150 BPM and speed 6 gives you 4 rows per beat. That's just the built-in meaning of these in Famitracker. If you leave speed at 6, any tempo you give is the BPM of 4 rows at a time. If ...
by rainwarrior
Fri Sep 04, 2020 2:45 pm
Forum: phpBB Issues
Topic: The [code] tag should not have its height limited
Replies: 9
Views: 1248

Re: The [code] tag should not have its height limited

I completely agree. In a previous thread where this was discussed I left a snippet of CSS override you can use with the Stylus plugin to remove the limit:
viewtopic.php?p=245873#p245873
by rainwarrior
Fri Sep 04, 2020 2:18 pm
Forum: Newbie Help Center
Topic: Correlating note with game frames on famitracker
Replies: 7
Views: 983

Re: Correlating note with game frames on famitracker

Hello all! given a note(row?) and BPM of a song on famitracker how would I go to calculate in which frame that note will play(NTSC or PAL would do)? scenario: I'm trying to do a rhythm game. thanks! If the "tempo" is 150 BPM, the "speed" is how many frames per row of the pattern. The default speed ...