Banner
Views: 729,795,695
Time:
13 users online: Aguni_, ahthedark, betalogic, Falconpunch, Final Theory, Giftshaven, JackoTheCartoon, KennyJ, o Khastvrokg, o Nameless, o Scrydan, o tcdw, Yoshin - Guests: 25 - Bots: 172Users: 38,413 (2,127 active)
Latest: tomtaocheese73
Tip: Read the F.A.Q. before/after registering.Not logged in.
Modified code
00a2af rep #$20      ;>16-bit A
00a2b1 stz $1888 ;>Default Y displacement to 0
00a2b4 lda $1887 ;\If quake timer 0, skip displacement
00a2b7 beq $a2d3 ;/
00a2b9 dec $1887 ;>Decrement timer
00a2bc and #$0003 ;>MOD by 4
00a2bf asl a ;\Index to 16-bit table
00a2c0 tay ;/
00a2c1 lda $a1ce,y ;>Displacement (at bank $00)
00a2c4 bit $0bf4 ;\Check if displacement would require tiles to be loaded at the top and bottom of screen
00a2c7 bvc $a2cb ;/to prevent glitched tiles from appearing.
00a2c9 dec ;\Move layer down 2 pixels as a failsafe to prevent garbled tiles
00a2ca dec ;/
00a2cb sta $1888 ;>Store Y displacement
00a2ce clc ;\Move layer 1 Y position
00a2cf adc $1c ;|
00a2d1 sta $1c ;/
00a2d3 sep #$20 ;>8-bit A

The purpose of this site is not to distribute copyrighted material, but to honor one of our favourite games.

Copyright © 2005 - 2019 - SMW Central
Legal Information - Privacy Policy - Link To Us


Total queries: 22

Menu

Follow Us On

  • Facebook
  • Twitter
  • YouTube

Affiliates

  • Talkhaus
  • SMBX Community
  • GTx0
  • Super Luigi Bros
  • ROMhacking.net
  • MFGG
  • Gaming Reinvented