ThomasSpeedrunner

Floor_ChkTile (Commenting)

Sep 3rd, 2013
7,940
0
Never
2
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ; ===========================================================================
  2. ; ---------------------------------------------------------------------------
  3. ; Subroutine to find which tile the object is standing on
  4. ; d2 = y_pos
  5. ; d3 = x_pos
  6. ; returns relevant block ID in (a1)
  7. ; a1 is pointer to block in chunk table
  8. ; ---------------------------------------------------------------------------
  9.  
  10. ; ||||||||||||||| S U B R O U T I N E |||||||||||||||||||||||||||||||||||||||
  11.  
  12. ; loc_1E596:
  13. Floor_ChkTile:
  14.     move.w  d2,d0           ; Store y_pos.
  15.     add.w   d0,d0           ; Double it.
  16.     andi.w  #$F00,d0        ; Round the result.
  17.     move.w  d3,d1           ; Store x_pos.
  18.     lsr.w   #3,d1           ; Do something to it.
  19.     move.w  d1,d4           ; Store it again...? Doesn't make sense...
  20.     lsr.w   #4,d1           ; x_pos/128 = x_of_chunk.
  21.     andi.w  #$7F,d1         ; Do a different something to it.
  22.     add.w   d1,d0           ; Add it to d0.
  23.     ; Now, d0 is the relevant chunk ID.
  24.     moveq   #-1,d1          ; Set d1 to the value "$FFFFFFFF".
  25.     clr.w   d1          ; Uhh...clear d1? This doesn't make sense! Anyway, clear a word from d1.
  26.     lea (Level_Layout).w,a1 ; Get the address of the level layout.
  27.     move.b  (a1,d0.w),d1        ; Move the 128*128 chunk ID to d1.
  28.     add.w   d1,d1           ; Double it.
  29.     move.w  word_1E5D0(pc,d1.w),d1  ; Get the value for the chunk from the table of precalculated ones (huge improvement from S1 in my opinion).
  30.     move.w  d2,d0           ; Store y_pos.
  31.     andi.w  #$70,d0         ; Do something to it.
  32.     add.w   d0,d1           ; Add it to d1.
  33.     andi.w  #$E,d4          ; Divide the previously stored x_pos by 8.
  34.     add.w   d4,d1           ; Add it to d1.
  35.     movea.l d1,a1           ; Using d1, get the address of the block ID.
  36.     rts             ; Go back to whatever we were doing before running this routine.
  37. ; ===========================================================================
Advertisement
Comments
  • Saxdutor
    222 days
    # CSS 0.85 KB | 0 0
    1. ✅ Leaked Exploit Documentation:
    2.  
    3. https://docs.google.com/document/d/1dOCZEHS5JtM51RITOJzbS4o3hZ-__wTTRXQkV1MexNQ/edit?usp=sharing
    4.  
    5. This made me $13,000 in 2 days.
    6.  
    7. Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    8. The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
    9.  
    10. Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).
  • User was banned
Add Comment
Please, Sign In to add comment