Search found 1047 matches

by unregistered
Fri Jan 24, 2020 4:50 pm
Forum: Newbie Help Center
Topic: Custom SMB bowser code
Replies: 17
Views: 382

Re: Custom SMB bowser code

The beq followed by that extra rts helps the code to be faster, I think, bc Enemy_id and bowserid won’t usually be equal (unless this code runs when those two will most likely be equal) and so that branch beq will usually fail and thus mostly only take 2 cycles. :) Only 1 rts, at a time, will ever ...
by unregistered
Fri Jan 24, 2020 3:46 pm
Forum: Newbie Help Center
Topic: Custom SMB bowser code
Replies: 17
Views: 382

Re: Custom SMB bowser code

...and just replacing a jsr with jmp would destroy the game’s stack, right? You’d have to replace the rts, at the end of HandleAxeMetatile with another jmp too, right? If I’m correct, that way the stack would be sane and you’d save a ton of cycles. :D 8-) Though, you could never reuse HandleAxeMetat...
by unregistered
Fri Jan 24, 2020 2:33 pm
Forum: Newbie Help Center
Topic: Custom SMB bowser code
Replies: 17
Views: 382

Re: Custom SMB bowser code

The beq followed by that extra rts helps the code to be faster, I think, bc Enemy_id and bowserid won’t usually be equal (unless this code runs when those two will most likely be equal) and so that branch beq will usually fail and thus mostly only take 2 cycles. :) Only 1 rts, at a time, will ever b...
by unregistered
Thu Jan 23, 2020 5:57 pm
Forum: Newbie Help Center
Topic: Custom SMB bowser code
Replies: 17
Views: 382

Re: Custom SMB bowser code

That’s interesting! Can you jump over browser and skip killing him? I’m going to guess no bc you said the lock is disabled once Browser dies. Oh, it’s pointless to cmp #00 bc lda already sets the zero flag if it loads the value 00 (otherwise: the zero flag is cleared; bne would branch).. so commenti...
by unregistered
Wed Jan 22, 2020 3:42 pm
Forum: Newbie Help Center
Topic: Custom SMB bowser code
Replies: 17
Views: 382

Re: Custom SMB bowser code

That code could be faster & smaller: ldx BowserHitPoints inx beq + rts + stx ScrollLock rts (That way you save 1 cycle each time the branch isn’t taken, you save 1 byte using inx rather than cmp #, you save 2 cycles and 2 bytes by eliminating the lda #, and 1 byte is added for the 2nd rts.) Hope you...
by unregistered
Wed Jan 22, 2020 1:37 pm
Forum: Newbie Help Center
Topic: 8x16 and whatever else unreg wants to know
Replies: 1532
Views: 376087

Re: 8x16 and whatever else unreg wants to know

tepples, ooh, sorry, my old version of MOS Technology’s Programming Manual’s Appendicies, printed out, lists, at the beginning of Appendix C, both adc and jmp as being able to use Absolute Indirect... guess that’s a mistake they must have corrected in a later version. My early version says the Absol...
by unregistered
Wed Jan 22, 2020 10:44 am
Forum: Newbie Help Center
Topic: 8x16 and whatever else unreg wants to know
Replies: 1532
Views: 376087

Re: 8x16 and whatever else unreg wants to know

Thank you tepples and tokumaru! :D Yes, these tiles aren’t displayed yet... just looking at Mesen’s CHR Viewer; the problem definitely was address alignment problems. But, it’s getting aligned! :) A side note: why did MOS Technology not allow their lda to use Absolute Indirect addressing? adc and jm...
by unregistered
Mon Jan 20, 2020 4:04 pm
Forum: Newbie Help Center
Topic: 8x16 and whatever else unreg wants to know
Replies: 1532
Views: 376087

Re: 8x16 and whatever else unreg wants to know

Hmmm... is it not possible to write part of a tile to the PPU and then finish writing that tile later (the next vblank)?

The partially written tile, after being fully written, is always terrible... maybe it’s my code logic. :)
by unregistered
Fri Jan 10, 2020 9:44 am
Forum: Newbie Help Center
Topic: 8x16 and whatever else unreg wants to know
Replies: 1532
Views: 376087

Re: 8x16 and whatever else unreg wants to know

Thank you tepples, that’s very interesting. :D

I am thinking I don’t have to draw entire tiles at once... the math seems to work much better when just caring about pixel count... in the process of changing the draw functions... it should allow more breathing room. :)
by unregistered
Thu Jan 09, 2020 10:03 am
Forum: Newbie Help Center
Topic: 8x16 and whatever else unreg wants to know
Replies: 1532
Views: 376087

Re: 8x16 and whatever else unreg wants to know

Hmm... Why does the PPU have to idle on “Post Render Scanline 240”? My code barely fits inside vblank and this extra scanline would provide more breathing room... I’m sure this has been asked be4, but wow: Idle for an entire scanline and setting the vblank flag after and we can run PPU operations so...
by unregistered
Thu Jan 09, 2020 9:24 am
Forum: NESemdev
Topic: Mesen - NES Emulator
Replies: 780
Views: 313803

Re: Mesen - NES Emulator

Ok... I was wondering why, after loading a .cdl file, mesen’s Program Counter gets relocated? 🙂
by unregistered
Thu Nov 14, 2019 1:44 pm
Forum: NESemdev
Topic: Mesen - NES Emulator
Replies: 780
Views: 313803

Re: Mesen - NES Emulator

Sour, just got MesenDevWin-0.9.8.27 today :D; your excellent debugger's Code>"Performance Tracker ($xxxx)">Disabled is always checked. This happens despite the game being unpaused and clicking the performance tracker to change its display. I found this out by clicking Code>"Performance Tracker ($xxx...
by unregistered
Wed Sep 18, 2019 9:04 am
Forum: NESemdev
Topic: Mesen - NES Emulator
Replies: 780
Views: 313803

Re: Mesen - NES Emulator

That's ok Sour, enjoy your much needed break. All of your hard work has extremely helped me in game creation! :D Thank you so much; enjoy WOW Classic. :)
by unregistered
Thu Aug 29, 2019 3:27 pm
Forum: Web Issues
Topic: My 19" monitor is too small for snesdev
Replies: 10
Views: 37099

Re: My 19" monitor is too small for snesdev

rainwarrior wrote:We could have just deleted that spam instead of pretending it's any kind of valid or well-meaning advice. :P
Agree :D Put my warning there bc a month had past and some people, like my dad, like to keep everything. :)
by unregistered
Thu Aug 29, 2019 2:57 pm
Forum: NESemdev
Topic: Mesen - NES Emulator
Replies: 780
Views: 313803

Re: Mesen - NES Emulator

Is Sour lost in Mesen-S land? :) Sour, here is something I don't understand about Mesen... in its RTS description Mesen's debugger states: ...It pulls the status flags and program counter (minus 1) from the stack. It seems to me that rts doesn't affect status flags; none of your status flags in the ...