Search found 96 matches

by dullahan
Fri Jun 02, 2017 9:22 pm
Forum: NESdev
Topic: Debugging a label in CA65
Replies: 2
Views: 1307

Re: Debugging a label in CA65

Thanks for your reply Tepples. :D I stepped through the code again and found the root cause--the level loader was inc'ing Y one too many times due to an old field I had removed from the level format.
by dullahan
Fri Jun 02, 2017 4:22 pm
Forum: NESdev
Topic: Debugging a label in CA65
Replies: 2
Views: 1307

Debugging a label in CA65

I have hit a wall in debugging an issue. I hope typing up the issue and/or getting in front of other sets of eyes may help me move forward. Suggestions for what is going on here or what I might try next are welcome! First, here is a snippet of a file which contains an encoded level: .pushseg .segmen...
by dullahan
Wed May 17, 2017 8:04 am
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

Great music. Hit some weirdness using the competition version: on the segment where you have to dash under to get a Dcoin (Mines-1), often the dash would only last four tiles and I'd plummet to my doom, going in or out. Oddly doesn't replicate on Mednafen. (Was initially on PowerPak.) Consider rese...
by dullahan
Thu Mar 30, 2017 7:24 am
Forum: 2016 NESdev Competition
Topic: Action 53 volume 3
Replies: 272
Views: 138949

Re: Action 53 volume 3

Edit: with Karate Kick, sometimes I start with an orange background, and if I press Start before the screen has time to load it's title screen no baddies come. Edit 2: Nebs & Debs has the vblank overflow and random deaths talked about in it's thread . I'm guessing this build has a stale version, th...
by dullahan
Fri Mar 03, 2017 6:05 pm
Forum: NESdev
Topic: Mapping screen coordinates to nametable addresses
Replies: 7
Views: 2122

Re: Mapping screen coordinates to nametable addresses

What is this "add" opcode you're using? Unless it's an alias/macro for CLC + ADC , the fact that the code works for some coordinates but not others could be because the shifts sometimes put ones into the carry, resulting in wrong values after the additions. ORA is still a better option than adding ...
by dullahan
Wed Mar 01, 2017 3:22 pm
Forum: NESdev
Topic: Mapping screen coordinates to nametable addresses
Replies: 7
Views: 2122

Re: Mapping screen coordinates to nametable addresses

Thanks for the reply. Yeah, for some reason the results are a little more correct without the extra ASL. However, either way the gap remains. The first screenshot has the correct number of ASLs and the second with one less. The goal is for the top left of each of the first three crystals to have an ...
by dullahan
Wed Mar 01, 2017 2:27 pm
Forum: NESdev
Topic: Mapping screen coordinates to nametable addresses
Replies: 7
Views: 2122

Re: Mapping screen coordinates to nametable addresses

Thanks Dwedit. Your response has helped me get closer to a solution. It seems that there is a bug in my implementation where when given the screen pixel coords (10, 145) I calculate the address as 0x2221 when it should be 0x2201. However, calculating the name-table address for (10, 161) and (10, 113...
by dullahan
Tue Feb 28, 2017 5:45 pm
Forum: NESdev
Topic: Mapping screen coordinates to nametable addresses
Replies: 7
Views: 2122

Mapping screen coordinates to nametable addresses

I am having difficulty mapping screen coordinates to nametable addresses (only the currently visible one). I have read http://forums.nesdev.com/viewtopic.php?f=10&t=14788 which is going the other way, but I am missing something apparently. Here is what I am currently trying. Ideas or psuedo-code are...
by dullahan
Tue Feb 21, 2017 8:27 pm
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

Thanks to everyone for playing. Excited about Nebs n' Debs performance in the 2016 competition. Look for more updates in this thread.
by dullahan
Wed Feb 15, 2017 9:33 am
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

Updated original post with a new build which should fix issues with level 2 and 3. As some of you guessed there was too much work being done during VBLANK. I unrolled the loop that copies over the tile buffer and that saves me ~500-600 cycles.
by dullahan
Wed Feb 15, 2017 9:31 am
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

I liked the game, but I hit the things others have also mentioned - the hero dying in midair with enemies nowhere in sight, walking into bricks, and slight jitter when moving. You asked for more info about that, it happened on the point in the attached picture, in the first level. I jumped up and d...
by dullahan
Sun Feb 05, 2017 10:15 am
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

Re: weird attr, scrolling jitters, and (for me on powerpak) tile corruption. These sound like the usual symptoms of writing outside of VBlank. Yeah, I will be interested to finally get that fixed! may be my favourite submission this year. I love the Capcom feeling all around. Congrats! Thanks! I've...
by dullahan
Fri Feb 03, 2017 10:24 pm
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

Figured out the Debs dying suddenly bug and uploaded a new build in the original post. Now I just need to crack the nut that is the weird attr behavior and y scrolling jitters on levels 2 and 3!
by dullahan
Fri Feb 03, 2017 3:44 pm
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

Just updated the original post with a new build that includes the following bug fixes: * Debs can no longer dash into and climb walls. * Debs can no longer dash past the screen boundary and into the unknown. I haven't been able to trigger the Debs mysteriously-dying-on-the-first-level bug recently w...
by dullahan
Fri Feb 03, 2017 3:39 pm
Forum: 2016 NESdev Competition
Topic: Progress Thread - Nebs & Debs Prequel
Replies: 79
Views: 64494

Re: Progress Thread - Nebs & Debs Prequel

I discovered that the screen going gray when paused happens if i simply start fceux (again, 2.2.2). Selecting the old PPU fixes it for the duration of the session, and switching back doesn't retrig the problem. I'm half assuming the game is tickling a bug specific to that version of fceux? I also f...