Search found 487 matches

by Jarhmander
Tue Jun 12, 2018 9:47 pm
Forum: NES Music
Topic: Lately Tuned - short looped DPCM sample tuning experiment
Replies: 1
Views: 4914

Re: Lately Tuned - short looped DPCM sample tuning experimen

Heheheh, that's nice. Looped samples are tough indeed. A long time ago, I wrote a interactive (cli) tool to convert WAV files to DMC. It had a high quality resampler (and optional dither?), and it was possible to adjust the gain and pitch (octave, scale, cents) prior to conversion, and then the conv...
by Jarhmander
Sat Aug 26, 2017 2:53 pm
Forum: NES Music
Topic: Mindboggingly simple way to control legato (ftm inside)
Replies: 19
Views: 7727

Re: Mindboggingly simple way to control legato (ftm inside)

I'm aware I'm bumping a 1 month old thread. Apologies. Something I really like in PPMCK (that tool that nobody uses anymore apparently) is the @q command, which allows you to cut a note early by a desired amount of frames. For example, @q1 would cut all notes played by the current track one frame e...
by Jarhmander
Wed Aug 02, 2017 10:47 am
Forum: NESdev
Topic: Why does this RAM initialization code work?
Replies: 17
Views: 3368

Re: Why does this RAM initialization code work?

Why such a complicated RAM-clearing routine? Adapted from the wiki: ldx #0 txa $0 @clrmem_top: sta $000, x sta $100, x ; Reserving $200 for OAM display list, sta $200, x if you want sta $300, x sta $400, x sta $500, x sta $600, x sta $700, x inx bne @clrmem_top His version is not very complicated, ...
by Jarhmander
Mon Apr 10, 2017 6:21 pm
Forum: SNESdev
Topic: vspcplay 1.3 on Xubuntu 16.04 raised SIGABRT
Replies: 4
Views: 2298

Re: vspcplay 1.3 on Xubuntu 16.04 raised SIGABRT

<rant> See, this is specifically what I hate about C. Nothing ever return allocated memory for you; you must allocate memory first, try to fit the string with snprintf ; then adjust if it didn't fit by looking at the return value, then recall snprintf . Using any kind of fixed buffer is a really bad...
by Jarhmander
Thu Mar 30, 2017 7:57 pm
Forum: Newbie Help Center
Topic: Out of date tools?
Replies: 46
Views: 8053

Re: Out of date tools?

Oh, yes that's what it supposed to do when everything's fine. No comment and errorlevel 0. I think most compilers are silent when there's no error (or other requested output). It goes further than this: most (if not all?) UNIX tools are silent on success, except when being told to be verbose, if th...
by Jarhmander
Tue Mar 28, 2017 6:42 pm
Forum: NESdev
Topic: Why NES have too ugly arch?
Replies: 80
Views: 12355

Re: Why NES have too ugly arch?

What tokumaru said is that by having an identity table, you can emulate certain instructions like doing arithmetic or bitwise operations with the index registers; it's in this thread.
by Jarhmander
Mon Mar 27, 2017 7:08 pm
Forum: NESdev
Topic: Family Basic Editor for Windows and sample basic games
Replies: 26
Views: 10006

Re: Family Basic Editor for Windows and sample basic games

Pokun wrote:... (and why these sites exists in the first place) ...
Why? It's an easy vector of malware, ransomware, targeted toward gullible Trump-voters and the other kinds of idiots. You want money, a botnet or a bitcoin mining network? Well you can have all of that!
by Jarhmander
Wed Mar 22, 2017 5:14 pm
Forum: NESemdev
Topic: Games which use background hiding foreground sprite trick?
Replies: 8
Views: 3109

Re: Games which use background hiding foreground sprite tric

Myask wrote:Mmm…Zelda 1 does *not*; Link going "down" into a dungeon/cave entry is done through sprite-overload, iirc.
Yes, and this is already documented on our wiki.
by Jarhmander
Sun Feb 26, 2017 8:11 am
Forum: NESdev
Topic: Does DMC playback affect CPU
Replies: 10
Views: 2454

Re: Does DMC playback affect CPU

DMC DMA can definitely affect the timing of cycle-counted code, because it "steals" cycles from the CPU. You'll either have to use timer or scanline IRQs, or not use DMC at all.
by Jarhmander
Sun Feb 19, 2017 8:21 am
Forum: NESdev
Topic: Are famiclones illegal?
Replies: 49
Views: 15684

Re: Are famiclones illegal?

Did Ricoh take advantage of the fact that mask protections did not exist prior to 1984 to effectively steal the 6502? I would say yes. The only protected part was the decimal mode, which was covered by a patent; they disabled it by cutting some conductors in the die, effectively sidestepping any le...
by Jarhmander
Mon Jan 30, 2017 5:50 am
Forum: General Stuff
Topic: C programming question
Replies: 10
Views: 2336

Re: C programming question

With C++ you are not even required to put something into the braces if you want to zero-initialize an array:

Code: Select all

uint8_t buf[256] = {};
by Jarhmander
Sun Jan 29, 2017 11:04 am
Forum: NESemdev
Topic: Geme Genie, memory access?
Replies: 9
Views: 2601

Re: Geme Genie, memory access?

The best way to understand the Game Genie is to be the Game Genie. Suppose you sit between between the cartridge connector and the game pak. In that place, you can see the clock, address lines, data lines, R/W etc. but how can you tell the CPU is fetching an instruction, an operand or a target memor...
by Jarhmander
Wed Jan 25, 2017 1:55 am
Forum: General Stuff
Topic: The popular opinion on Genesis vs SNES sound
Replies: 54
Views: 10194

Re: The popular opinion on Genesis vs SNES sound

This is only true for filter 0. Filter 1 does store difference of samples, and filter 2 and 3 something even more complex. http://problemkaputt.de/fullsnes.htm#snesapudspbrrsamples I'm not seeing any mention of filter modes 1, 2 and 3 treating the samples as anything more than direct 4bit value + s...
by Jarhmander
Wed Jan 25, 2017 12:33 am
Forum: General Stuff
Topic: The popular opinion on Genesis vs SNES sound
Replies: 54
Views: 10194

Re: The popular opinion on Genesis vs SNES sound

With IMA-ADPCM, the amplitude of the deltas varies continuously with the signal, meaning it adapts itself during encoding/decoding. You can look how it works, but basically the delta "gain" grows when deltas are at the extreme values (nibbles 7 or F) or near them, but slowly decreases when it's not....
by Jarhmander
Wed Jan 18, 2017 7:16 pm
Forum: NESdev
Topic: Variadic macro in ca65 possible?
Replies: 15
Views: 3470

Re: Variadic macro in ca65 possible?

Movax12 has a technique that involve putting your arguments insides curly braces, and parsing that to extract your arguments (the curly braces around the parameters make exactly one argument for the macro). But, I have a feeling this is not what you're after.