Advertisement
W4mp3

SpriteTool Thingy

Dec 1st, 2012
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.50 KB | None | 0 0
  1.  
  2. GoFlag = $60
  3. DestX = $0F3A ;\16 - Bit!!!
  4. DestY = $0F3C ;/
  5.  
  6. dcb "INIT"
  7. RTL
  8.  
  9. dcb "MAIN"
  10. ;LDA $18
  11. ;AND #$80
  12. ;BNE NoContact
  13.  
  14. LDA #$01
  15. STA GoFlag
  16. LDA $00E4,y ;\
  17. STA DestX+1 ;|
  18. LDA $00D8,y ;|
  19. STA DestY+1 ;|Sets Target coordinates
  20. LDA $14E0,y ;|
  21. STA DestX ;|
  22. LDA $14D4,y ;|
  23. STA DestY ;/
  24.  
  25. LDA #$06 ;\SFX
  26. STA $1DFC ;/
  27.  
  28. JSL $01A7DC ; Check for Mario/sprite contact ..
  29. BCC NoContact ; Return if there isn't.
  30.  
  31. LDA #$28
  32. STA $1DFC
  33. STZ !GoFlag
  34.  
  35. NoContact:
  36. LDA DestY+1
  37. CMP $97
  38. BCC Dontjump
  39. LDA DestY
  40. CMP $96
  41. BCC Dontjump
  42. LDA $72
  43. BNE Dontjump
  44. LDA #$AA
  45. STA $7D
  46.  
  47. Dontjump:
  48. LDA DestX+1
  49. CMP $95
  50. BCC MoveRight
  51. LDA DestX
  52. CMP $94
  53. BCC MoveRight
  54. LDA #-37
  55. STA $7B
  56. BRA JumpyGraphics
  57. MoveRight:
  58. LDA DestX+1
  59. CMP $95
  60. BCS JumpyGraphics
  61. LDA DestX
  62. CMP $94
  63. BCS JumpyGraphics
  64. LDA #37
  65. STA $7B
  66. JumpyGraphics:
  67. JSR Graphics ; This routine controls graphics.
  68. RTL ; After the graphics routine is over, return.
  69.  
  70. temp.log:
  71.  
  72. 65816 Tricks Assembler Version 1.11 (C)opyright 1994 1000 Miles [Tricks]
  73. Internet: [email protected], IRC: minus
  74.  
  75. Memory available: 2147483647
  76. Starting address defined as $92BD6D
  77.  
  78. Pass 1
  79. Error in 55.1/46: Unknown error #1
  80.  
  81. Pass 2
  82. Error in 55.1/46: Unknown error #1
  83.  
  84. Pass 3
  85. Error in 55.1/46: Unknown error #1
  86.  
  87. Source code assembled.
  88.  
  89. Although the source code was assembled, the program may not run
  90. properly due to errors detected during the assembling process.
  91.  
  92. [$92BD6D-$92BE80]
  93. Lines=182
  94. Statements=158
  95. Symbols=15
  96. Errors=1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement