Advertisement
Erik557

Untitled

Nov 27th, 2015
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. db $42
  2. JMP MarioBelow : JMP Ret : JMP Ret
  3. JMP SpriteV : JMP SpriteH : JMP MarioCape : JMP Ret
  4. JMP Ret : JMP Ret : JMP Ret
  5.  
  6. MarioBelow:
  7.     %coin_check()
  8.     LDA $19
  9.     BNE .break
  10.     PHY
  11.     LDA #$01
  12.     LDY #$00
  13.     LDX #$00
  14.     %spawn_bounce_sprite()
  15.     PLY
  16.     RTL
  17. MarioCape:
  18.     %coin_check()
  19. .break
  20.     %shatter_block()
  21.     %kill_sprite()
  22.     %give_points()
  23.     RTL
  24.    
  25. SpriteV:
  26.     %coin_check()
  27.     LDA.w $1686,x
  28.     AND.b #%00000100
  29.     BNE Ret
  30.     LDA.w $14C8,x
  31.     CMP.b #$09
  32.     BCC Ret
  33.     CMP.b #$0B
  34.     BCS Ret
  35.     LDA.b $0F
  36.     CMP.b #$02
  37.     BEQ Ret
  38. SprMain:
  39.     REP #$20
  40.     LDA.b $0A
  41.     STA.b $9A
  42.     LDA.b $0C
  43.     STA.b $98
  44.     LDA.b $0F
  45.     PHA
  46.     SEP #$20
  47.     LDA.b $03
  48.     PHA
  49.     %shatter_block()
  50.     PLA
  51.     STA.b $03
  52.     PLA
  53.     STA.b $0F
  54.     PLA
  55.     STA.b $10
  56.     %kill_sprite()
  57.     %give_points()
  58. Ret:
  59.     RTL
  60.  
  61. SpriteH:   
  62.     %coin_check()
  63.     LDA.w $14C8,x
  64.     CMP.b #$0A
  65.     BEQ SprMain
  66.     RTL
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement