Search found 290 matches

by Controllerhead
Thu Jun 17, 2021 12:42 pm
Forum: NESdev
Topic: How do some games change vertical scroll at IRQ?
Replies: 4
Views: 325

Re: How do some games change vertical scroll at IRQ?

The trick is, and what took me a while to understand admittedly, is you have to load the top left of the nametable address into PPU_ADDR ($2006). It's not just a matter of setting the coordinates with PPU_SCROLL ($2005) as one might assume.
by Controllerhead
Thu Jun 10, 2021 12:11 am
Forum: NESdev
Topic: Problem with palette discoloration when PPU is turned off during rendering.
Replies: 15
Views: 1962

Re: Problem with palette discoloration when PPU is turned off during rendering.

Quietust wrote:
Wed Jun 09, 2021 8:26 pm
The only thing I can think of is that the I/O controller might be able to enter an invalid state and cause corruption, similar to how Sprite RAM can get corrupted when changing the address at the wrong time.
That was also occurring so that would make sense. I have an NES-08 revision.
by Controllerhead
Wed Jun 09, 2021 2:32 am
Forum: NESdev
Topic: Problem with palette discoloration when PPU is turned off during rendering.
Replies: 15
Views: 1962

Re: Problem with palette discoloration when PPU is turned off during rendering.

It does sound like it's a previously-unknown I've actually run across a similar issue, not sure if it's the same, but, when i was cutting off the bottom 16 scanlines with background and sprites off, bits of the palette would sometimes drop and change color slightly and intermittently. They always s...
by Controllerhead
Tue Jun 08, 2021 1:49 am
Forum: NES Graphics
Topic: 3D graphics: Linear Algebra in neslib.h
Replies: 12
Views: 1737

Re: 3D graphics: Linear Algebra in neslib.h

marius4560 wrote:
Tue Jun 08, 2021 1:36 am
Yes but its the same proccessor, figured I might learn something from it :)
I'm sure you absolutely can! Keep in mind though that retro console / computer code is very tied to the hardware it runs on; unlike modern code which is much more platform agnostic.
by Controllerhead
Mon Jun 07, 2021 12:48 am
Forum: NES Graphics
Topic: 3D graphics: Linear Algebra in neslib.h
Replies: 12
Views: 1737

Re: 3D graphics: Linear Algebra in neslib.h

I see the code for Elite is published on the web, with notes and comments. I think its written in assembly though, but it will probably teach me a thing or two. I've only seen the BBC Micro version published; the NES code would probably be very different. It's also PAL only as there is more time in...
by Controllerhead
Tue Jun 01, 2021 9:59 pm
Forum: NES Music
Topic: FamiStudio 3.0.0 released!
Replies: 2
Views: 563

Re: FamiStudio 3.0.0 released!

The note dragging and multi select improvements are huge, especially for someone used to FL studio. I'm excited. Congrats on release!
by Controllerhead
Tue Jun 01, 2021 1:57 am
Forum: Newbie Help Center
Topic: Creating a data structure.
Replies: 33
Views: 2527

Re: Creating a data structure.

calima wrote:
Tue Jun 01, 2021 1:33 am
Just a note, -march=native means the binary will fail on any cpu lower than yours.
Ah. Right. I guess that is a silly idea for distributing something.
by Controllerhead
Mon May 31, 2021 5:04 pm
Forum: Newbie Help Center
Topic: Creating a text box
Replies: 31
Views: 2492

Re: Creating a text box

What does it mean to "unroll" a loop exactly? TL; DR you write a ton of instructions in a row to do what a loop would accomplish. It's faster because it eliminates the iterator and the branch check to repeat the code. Here is a simple example: LDA numberBufferTimer BEQ ++ LDA #>nameTable0+2 STA PPU...
by Controllerhead
Mon May 31, 2021 3:16 pm
Forum: Newbie Help Center
Topic: Creating a text box
Replies: 31
Views: 2492

Re: Creating a text box

Sometimes the "VRAM Address" and "Nametable Address" in Mesen's debug tool get desynced which results in either garbage getting drawn to the screen or nothing getting drawn at all. Most likely that's the frame starting to draw and you throwing off the address. If you zip up and post your project i'...
by Controllerhead
Mon May 31, 2021 3:01 pm
Forum: Newbie Help Center
Topic: Creating a text box
Replies: 31
Views: 2492

Re: Creating a text box

puppydrum64 wrote:
Mon May 31, 2021 1:34 pm
Or just do more math outside of vblank.
Generally you want to precalculate / buffer things on the previous frame so you can write quick code to spit them out to the screen in vBlank. Not always of course, but usually.
by Controllerhead
Mon May 31, 2021 2:24 pm
Forum: Newbie Help Center
Topic: Creating a data structure.
Replies: 33
Views: 2527

Re: Creating a data structure.

Nope sorry, still the "msys-2.0.dll" was not found error. I kind of figured that would be the case :? The exe is also much larger than the original one at 103 kB instead of 29 kB. Did you really add that much or is there something else wrong with the build? I don't know why the file size is so much...
by Controllerhead
Mon May 31, 2021 2:01 pm
Forum: NESdev
Topic: What are ROM Nametables useful for?
Replies: 15
Views: 5446

Re: What are ROM Nametables useful for?

kuja killer wrote:
Mon May 31, 2021 1:34 pm
N64 Ocarina of Time graphic
That 2BPP video looks awesome! Neat trick. I think that's actually from Super Smash Bros =p
by Controllerhead
Mon May 31, 2021 1:45 pm
Forum: Newbie Help Center
Topic: Creating a data structure.
Replies: 33
Views: 2527

Re: Creating a data structure.

-static-libgcc -static-libstdc++ Ok, i have these options now, but i'm not sure if i believe them: I have been down a rabbit hole of -Bstatic and Wl and trying to statically link everything manually, but, i cant get MinGW64 to cooperate so i'm not sure if this is truly static or not. Let me know if...
by Controllerhead
Mon May 31, 2021 10:45 am
Forum: Newbie Help Center
Topic: Creating a data structure.
Replies: 33
Views: 2527

Re: Creating a data structure.

it seems you built it as dynamic instead of static so some DLLs are now required. Oops! Sorry, i do not know C well at all. :oops: I built this with -static -O3 and -march=native. Let me know if it works: asm6f_210531_1.zip PS- Are there other command line options i should be using? EDIT: added -ma...
by Controllerhead
Sun May 30, 2021 3:40 pm
Forum: Newbie Help Center
Topic: Creating a data structure.
Replies: 33
Views: 2527

Re: Creating a data structure.

I think local labels are fine in asm6 except that you can't mix them with nameless labels (+ and - labels) for some reason. Well now you can :mrgreen: https://github.com/NESblast/asm6f Seems like my one liner works after torturing it a fair amount. I submitted a pull request to your repo. Here's a ...