It is currently Thu Jan 17, 2019 9:51 am

All times are UTC - 7 hours



Search found 327 matches
Search these results:

Author Message

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Sat Aug 05, 2017 1:48 pm 

Replies: 47
Views: 6659


Ha. That's funny. I didn't realize NOP was actually an instruction. I just thought it was an abbreviation for a family of potential operations that acted as null. This is where having studied computer science probably would've paid off! haha And...whoa! After counting cycles (and understanding how t...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Sat Aug 05, 2017 12:21 pm 

Replies: 47
Views: 6659


Thanks for posting that - I think, due to the fact that other things will be going on (and I'm perfectly ok with a single black line...even two wouldn't be so horrible, since it bottoms out with a black line for separation as it is) separating the menu from the action, the looser i could be with the...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Sat Aug 05, 2017 11:48 am 

Replies: 47
Views: 6659


Cool. For single cycle increments, just load dummy values into the accumulator or something? Never really done cycle counting like this, not sure what opcodes = how many cycles, etc. Best practice? Is there a source with this so I could evaluate how many cycles each part of this is taking? I'd imagi...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Sat Aug 05, 2017 11:06 am 

Replies: 47
Views: 6659


Yeah, I figured I'm was cramming too much in there. I had a feeling that was one of the problems... So then the solution would (or could) be something like... ;;;;;; HBLANK WAIT 1 LDX #$08 ;; i know this value will have to be played with to get it right WaitScanLine: DEX BNE WaitScanLine ;;;;;;TURN ...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Sat Aug 05, 2017 9:49 am 

Replies: 47
Views: 6659


Ok - now I'm not *that far* away from implementing this. I'm circling the drain and generally am able to substitute values for the bottom half to get different palettes from the menu bar. I'm having trouble (presumably) with getting the hblank timing right, and still having slight issues getting the...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Sat Aug 05, 2017 5:13 am 

Replies: 47
Views: 6659


So...I've gone back to a much earlier (read: simple) version of the code. After a lot of trial and error, I found that putting in some flags to make sure that the nametable AND zero sprite are drawn prior to checking for the hit got me past the *freezing* in that version. It's possible that a sprite...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 3:24 pm 

Replies: 47
Views: 6659


Yeah, I looked at that for a lot of reference. Everything seems fine, except for the sprite 0 hit. If I take the sprite zero hit out, i can change the palettes no problem. But as soon as i do the sprite 0 hit stuff, I crash and get all sorts of funky things happening with scroll. Hm.

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 3:05 pm 

Replies: 47
Views: 6659


Sorry - that was a misplaced note to myself. Yes, rendering is on for the eval. Essentially, I load the palettes (all) then turn back on rendering, do the checks for sprite 0 hit, turn rendering back off, and then load the *other* palette* once the hit fires. I have tried zeroing out $2005 afterward...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 12:24 pm 

Replies: 47
Views: 6659


I'm making a bit of progress...right now, in just trying to successfully read a hit without glitching or locking up. I can visibly see where I'm getting a split (right now, ugly horizontal line that flickers...i'm sure that's a timing issue) but unfortunately, the bigger problem is that: a) I get a ...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 10:56 am 

Replies: 47
Views: 6659


Actually, I did know that, but I was absently not thinking about the fact that only my MainGame state was drawing sprite 0...forgot to check the game state before doing this call. Oops! Thanks for the tip. Now let's see if I can get it working :-)

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 10:24 am 

Replies: 47
Views: 6659


So, I'm getting hung up right out of the gate. In my NMI, rendering is off. This code just causes the game to hang indefinitely: WaitNotSprite0: LDA $2002 AND #%01000000 BNE WaitNotSprite0 WaitSprite0: LDA $2002 #%01000000 BEQ WaitSprite0 LDX #$10 ;; arbitrary - variable WaitScanline: DEX BNE WaitSc...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 7:58 am 

Replies: 47
Views: 6659


Awesome guys...good info!

Yeah, tepples, my thought was last pixel of former scanline.

Any suggestion as to generally *where* to place this in relation to other code in order to minimize potential for gremlin chaos? haha

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 7:47 am 

Replies: 47
Views: 6659


Thanks - yeah, that's getting into stuff I haven't really pushed into yet. Hm.... Alright, i could draw this sprite at, say, 240...then i'd have 16 pixels...5.3 cpu cycles...2-3 NOP instructions... And then at that point, do the steps mentioned...but no need to wait until the next hblank in step 3, ...

 Forum: Newbie Help Center   Topic: Hblank - Palette swap mid frame, etc....

Posted: Fri Aug 04, 2017 7:11 am 

Replies: 47
Views: 6659


So...why not? May or may not implement this, but now I want to play with it. Generally, I've been preserving a subpalette for the menu area. I got the thought about possibly trying to swap the palette after the menu draw, since that area is always static, to maximize colors in gameplay area. Game ha...

 Forum: Newbie Help Center   Topic: Transforming a BPL/BMI to BCS/BCC, comparing to "0"

Posted: Sun Jul 30, 2017 3:11 pm 

Replies: 3
Views: 951


Sure, or that. Same concept, more easily stated. I was just wondering if there was some other neat trick I might not be thinking about.
Sort by:  
Page 6 of 22 [ Search found 327 matches ]


All times are UTC - 7 hours


Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group