Advertisement
Guest User

Untitled

a guest
Dec 9th, 2019
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. tiles:
  2. db $AC,$AE
  3. prop:
  4. db $6E,$00
  5. print "MAIN ",pc
  6. PHB : PHK : PLB
  7. JSR MainCode
  8. PLB
  9. print "INIT ",pc
  10. RTL
  11. MainCode:
  12. JSR Graphics
  13. LDA #$00
  14. %SubOffScreen()
  15. JSL $01A7DC
  16. BCC Return
  17. STZ $14C8,x
  18. STZ $00 : STZ $01
  19. LDA #$1B : STA $02
  20. LDA #$01
  21. %SpawnSmoke()
  22. Return:
  23. RTS
  24. Graphics:
  25. %GetDrawInfo()
  26. REP #$20
  27. LDA $00
  28. STA $0300|!Base2,y
  29. SEP #$20
  30. LDA !1602,x
  31. TAX
  32. LDA tiles,x
  33. STA $0302|!Base2,y
  34. LDX $15E9|!Base2
  35. LDA !157C,x
  36. TAX
  37. LDA #$02
  38. ORA $24
  39. ORA prop,x
  40. STA $0303|!Base2,y
  41. LDX $15E9|!Base2
  42. TDC
  43. LDY #$02
  44. JSL $01B7B3|!BankB
  45. RTS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement