Actually, recently I completed my first block ever. It just so happens that it was a configurable, invisible block. pieguy1372 provided me with the original code, and then I completed it. Here's the code:
(originally posted at board2)
In case anyone wants it, this is the code that makes a given block act like one of the invisible ? blocks:
PHA ;PusH Accumulator
LDA $007D ;Mario's Y speed
CMP #$80 ;Y speed to check for
BMI NoExec ;Branch if MInus
;the next two lines are where you can set what block it get's
;it's behavior from
LDY #$01 ;act like block high byte
LDA #$26 ;act like block low byte (01+26=0126)
PLA ;PulL Accumulator
RTS ;Return To Sunroutine
Once again thanks to pieguy1372 for the initial code.
Also, thanks to Sukasa for his ass-kick tutorial.
Edit: Forgot to add all settings are -1 except below which is 0.
If you want the completed block, PM me because I'm too lazy+busy to post a link right this second.
-------------------- Krakenskin Leather Works, my Etsy store.
LordVanya, my art page.
FundamentalEssence, my game development page.