Advertisement
VladislavSavvateev

Pallet Shit Swapper

Sep 10th, 2015
270
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. PalCycle_VSScreen:
  2.         subq.b  #1,($FFFFFFF0).w
  3.         beq.s   First_Red
  4.         rts
  5.  
  6. First_Red:
  7.         move.b  #3,($FFFFFFF0).w
  8.         lea     ($FFFFFB06).w,a0
  9.         cmpi.w  #$004E,0(a0)
  10.         bne     First_Purple
  11.         move.w  #$0E0C,0(a0)
  12.         jmp     Second_Red
  13.        
  14. First_Purple:
  15.         cmpi.w  #$0E0C,0(a0)
  16.         bne     First_Blue
  17.         move.w  #$0E60,0(a0)
  18.         jmp     Second_Red
  19.        
  20. First_Blue:
  21.         cmpi.w  #$0E60,0(a0)
  22.         bne     First_LBlue
  23.         move.w  #$0CE0,0(a0)
  24.         jmp     Second_Red
  25.        
  26. First_LBlue:
  27.         cmpi.w  #$0CE0,0(a0)
  28.         bne     First_Yellow
  29.         move.w  #$00EC,0(a0)
  30.         jmp     Second_Red
  31.        
  32. First_Yellow:
  33.         cmpi.w  #$00EC,0(a0)
  34.         bne     First_Orange
  35.         move.w  #$00AE,0(a0)
  36.         jmp     Second_Red
  37.        
  38. First_Orange:
  39.         cmpi.w  #$00AE,0(a0)
  40.         bne     First_Red
  41.         move.w  #$004E,0(a0)
  42.         jmp     Second_Red
  43. ; ---------------------------------------------------------------------------
  44.        
  45. Second_Red:
  46.         cmpi.w  #$004E,6(a0)
  47.         bne     Second_Purple
  48.         move.w  #$0E0C,6(a0)
  49.         jmp     Third_Red
  50.        
  51. Second_Purple:
  52.         cmpi.w  #$0E0C,6(a0)
  53.         bne     Second_Blue
  54.         move.w  #$0E60,6(a0)
  55.         jmp     Third_Red
  56.        
  57. Second_Blue:
  58.         cmpi.w  #$0E60,6(a0)
  59.         bne     Second_LBlue
  60.         move.w  #$0CE0,6(a0)
  61.         jmp     Third_Red
  62.        
  63. Second_LBlue:
  64.         cmpi.w  #$0CE0,6(a0)
  65.         bne     Second_Yellow
  66.         move.w  #$00EC,6(a0)
  67.         jmp     Third_Red
  68.        
  69. Second_Yellow:
  70.         cmpi.w  #$00EC,6(a0)
  71.         bne     Second_Orange
  72.         move.w  #$00AE,6(a0)
  73.         jmp     Third_Red
  74.        
  75. Second_Orange:
  76.         cmpi.w  #$00AE,6(a0)
  77.         bne     Second_Red
  78.         move.w  #$004E,6(a0)
  79.         jmp     Third_Red
  80. ; ---------------------------------------------------------------------------
  81.  
  82. Third_Red:
  83.         cmpi.w  #$004E,8(a0)
  84.         bne     Third_Purple
  85.         move.w  #$0E0C,8(a0)
  86.         jmp     Fourth_Red
  87.        
  88. Third_Purple:
  89.         cmpi.w  #$0E0C,8(a0)
  90.         bne     Third_Blue
  91.         move.w  #$0E60,8(a0)
  92.         jmp     Fourth_Red
  93.        
  94. Third_Blue:
  95.         cmpi.w  #$0E60,8(a0)
  96.         bne     Third_LBlue
  97.         move.w  #$0CE0,8(a0)
  98.         jmp     Fourth_Red
  99.        
  100. Third_LBlue:
  101.         cmpi.w  #$0CE0,8(a0)
  102.         bne     Third_Yellow
  103.         move.w  #$00EC,8(a0)
  104.         jmp     Fourth_Red
  105.        
  106. Third_Yellow:
  107.         cmpi.w  #$00EC,8(a0)
  108.         bne     Third_Orange
  109.         move.w  #$00AE,8(a0)
  110.         jmp     Fourth_Red
  111.        
  112. Third_Orange:
  113.         cmpi.w  #$00AE,8(a0)
  114.         bne     Third_Red
  115.         move.w  #$004E,8(a0)
  116.         jmp     Fourth_Red
  117. ; ---------------------------------------------------------------------------
  118.  
  119. Fourth_Red:
  120.         cmpi.w  #$004E,4(a0)
  121.         bne     Fourth_Purple
  122.         move.w  #$0E0C,4(a0)
  123.         jmp     Fiveth_Red
  124.        
  125. Fourth_Purple:
  126.         cmpi.w  #$0E0C,4(a0)
  127.         bne     Fourth_Blue
  128.         move.w  #$0E60,4(a0)
  129.         jmp     Fiveth_Red
  130.        
  131. Fourth_Blue:
  132.         cmpi.w  #$0E60,4(a0)
  133.         bne     Fourth_LBlue
  134.         move.w  #$0CE0,4(a0)
  135.         jmp     Fiveth_Red
  136.        
  137. Fourth_LBlue:
  138.         cmpi.w  #$0CE0,4(a0)
  139.         bne     Fourth_Yellow
  140.         move.w  #$00EC,4(a0)
  141.         jmp     Fiveth_Red
  142.        
  143. Fourth_Yellow:
  144.         cmpi.w  #$00EC,4(a0)
  145.         bne     Fourth_Orange
  146.         move.w  #$00AE,4(a0)
  147.         jmp     Fiveth_Red
  148.        
  149. Fourth_Orange:
  150.         cmpi.w  #$00AE,4(a0)
  151.         bne     Fourth_Red
  152.         move.w  #$004E,4(a0)
  153.         jmp     Fiveth_Red
  154. ; ---------------------------------------------------------------------------
  155.  
  156. Fiveth_Red:
  157.         cmpi.w  #$004E,$A(a0)
  158.         bne     Fiveth_Purple
  159.         move.w  #$0E0C,$A(a0)
  160.         jmp     Sixth_Red
  161.        
  162. Fiveth_Purple:
  163.         cmpi.w  #$0E0C,$A(a0)
  164.         bne     Fiveth_Blue
  165.         move.w  #$0E60,$A(a0)
  166.         jmp     Sixth_Red
  167.        
  168. Fiveth_Blue:
  169.         cmpi.w  #$0E60,$A(a0)
  170.         bne     Fiveth_LBlue
  171.         move.w  #$0CE0,$A(a0)
  172.         jmp     Sixth_Red
  173.        
  174. Fiveth_LBlue:
  175.         cmpi.w  #$0CE0,$A(a0)
  176.         bne     Fiveth_Yellow
  177.         move.w  #$00EC,$A(a0)
  178.         jmp     Sixth_Red
  179.        
  180. Fiveth_Yellow:
  181.         cmpi.w  #$00EC,$A(a0)
  182.         bne     Fiveth_Orange
  183.         move.w  #$00AE,$A(a0)
  184.         jmp     Sixth_Red
  185.        
  186. Fiveth_Orange:
  187.         cmpi.w  #$00AE,$A(a0)
  188.         bne     Fiveth_Red
  189.         move.w  #$004E,$A(a0)
  190.         jmp     Sixth_Red
  191. ; ---------------------------------------------------------------------------
  192. Sixth_Red:
  193.         cmpi.w  #$004E,2(a0)
  194.         bne     Sixth_Purple
  195.         move.w  #$0E0C,2(a0)
  196.         rts
  197.        
  198. Sixth_Purple:
  199.         cmpi.w  #$0E0C,2(a0)
  200.         bne     Sixth_Blue
  201.         move.w  #$0E60,2(a0)
  202.         rts
  203.        
  204. Sixth_Blue:
  205.         cmpi.w  #$0E60,2(a0)
  206.         bne     Sixth_LBlue
  207.         move.w  #$0CE0,2(a0)
  208.         rts
  209.        
  210. Sixth_LBlue:
  211.         cmpi.w  #$0CE0,2(a0)
  212.         bne     Sixth_Yellow
  213.         move.w  #$00EC,2(a0)
  214.         rts
  215.        
  216. Sixth_Yellow:
  217.         cmpi.w  #$00EC,2(a0)
  218.         bne     Sixth_Orange
  219.         move.w  #$00AE,2(a0)
  220.         rts
  221.        
  222. Sixth_Orange:
  223.         cmpi.w  #$00AE,2(a0)
  224.         bne     Sixth_Red
  225.         move.w  #$004E,2(a0)
  226.         rts
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement