Points of Required Attention™
Please chime in on a proposed restructuring of the ROM hacking sections.
Views: 88,489,832
Main | FAQ | Uploader | IRC chat | Radio | Memberlist | Active users | Latest posts | Calendar | Stats | Online users | Search 04-26-24 09:49 PM
Guest: Register | Login

0 users currently in ROM Hacking | 2 guests

Main - ROM Hacking - Scanline or Interrupts? New thread | New reply


RetroRain
Posted on 03-15-12 06:46 PM Link | Quote | ID: 150477


Fuzz Ball
Level: 66

Posts: 582/994
EXP: 2438280
Next: 23571

Since: 09-30-07

Last post: 1935 days
Last view: 958 days
I posted this in the General SMB3 Hacking Thread, but incase it gets overlooked, I made a new thread.

How are the graphics for the status bar able to be shown if they are not loaded in the Pattern Tables? Does it have to do with the scanline or interrupts?



Thanks.

____________________
My YouTube Channel

infidelity
Posted on 03-15-12 07:37 PM (rev. 2 of 03-15-12 09:08 PM) Link | Quote | ID: 150479


Fuzz Ball
Level: 66

Posts: 206/968
EXP: 2368140
Next: 93711

Since: 05-24-07

Last post: 959 days
Last view: 815 days
I think its scanline. Kuja showed me an irq trick years back, that enables you to load up any pattern table for whatever irq is going on.

EDIT - Stealing wifi with my laptop.

Here's an example from my Ultra 2 storyline about X.

The white text is whats not in the actual PPU, but is being loaded somewhere else by an irq. It is being stored into 80-FF in my BG PPU.


Code
LDA $2002
LDA #$00
LDY #$03
STY $2006
STA $2006
LDA $FF
ORA #$01
STA $2000
LDA #$00
STA $2005
STA $2005
LDA #$xx ;which pattern table to load from (00,01=$0000-$0FFF)(02-05=$1000-$1FFF)
STA $8000
LDA #$xx ;address to load gfx from 'for my game' (00=$80010, 02=$80810, 04=$81010)
STA $8001
JMP $xxxx ;this jumps to the following code...

STA $E000
PLA
TAY
PLA
TAX
PLA
PLP
RTI

never-obsolete
Posted on 03-16-12 06:40 AM Link | Quote | ID: 150493


Rat
Level: 24

Posts: 83/96
EXP: 74498
Next: 3627

Since: 02-22-07
From: Phoenix, AZ

Last post: 2596 days
Last view: 2596 days
It's a little of both...you set an interrupt to fire at a particular scanline. In the interrupt handler, you write to the ppu and/or mapper to create whatever effect you are going for. Usually there is some timed code involved so that graphic/palette changes will happen during hblank and not muck up the display (assuming rendering is enabled).

Main - ROM Hacking - Scanline or Interrupts? New thread | New reply

Acmlmboard 2.1+4δ (2023-01-15)
© 2005-2023 Acmlm, blackhole89, Xkeeper et al.

Page rendered in 0.019 seconds. (339KB of memory used)
MySQL - queries: 47, rows: 69/70, time: 0.016 seconds.