SHARE
TWEET

Untitled

a guest Nov 18th, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // Return true if we skip
  2. DoWeRestrict:
  3.  
  4.     lda $=LevelCode
  5.    
  6.     // 2c  is mudhole
  7.     cmp #0x002c
  8.     bne $+DoWeRestrict_skip_2c
  9.         // Transfer y to A to compare
  10.         tya
  11.  
  12.         // 6a2e is kannon
  13.         cmp #0x6a2e
  14.         bne $+DoWeRestrict_skip_2c_6a2e
  15.             // We have a match!
  16.             sec
  17.             rtl
  18.     DoWeRestrict_skip_2c_6a2e:
  19.  
  20.         // 9e42 is flitter
  21.         cmp #0x9e42
  22.         bne $+DoWeRestrict_skip_2c_9e42
  23.             // We have a match!
  24.             sec
  25.             rtl
  26.     DoWeRestrict_skip_2c_9e42:
  27.  
  28.         clc
  29.         rtl
  30.        
  31. DoWeRestrict_skip_2c:
  32.  
  33.     // 02 is rambi rumble
  34.     cmp #2
  35.     bne $+DoWeRestrict_skip_2
  36.         // Transfer y to A to compare
  37.         tya
  38.  
  39.         // 7ca8 is bee
  40.         cmp #0x7ca8
  41.         bne $+DoWeRestrict_skip_2_7ca8
  42.             // We have a match!
  43.             sec
  44.             rtl
  45.     DoWeRestrict_skip_2_7ca8:
  46.            
  47.         // 7cae is bee
  48.         cmp #0x7cae
  49.         bne $+DoWeRestrict_skip_2_7cae
  50.             // We have a match!
  51.             sec
  52.             rtl
  53.     DoWeRestrict_skip_2_7cae:
  54.  
  55.         // 7cce is bee
  56.         cmp #0x7cce
  57.         bne $+DoWeRestrict_skip_2_7cce
  58.             // We have a match!
  59.             sec
  60.             rtl
  61.     DoWeRestrict_skip_2_7cce:
  62.  
  63.         // 7e0a is bee
  64.         cmp #0x7e0a
  65.         bne $+DoWeRestrict_skip_2_7e0a
  66.             // We have a match!
  67.             sec
  68.             rtl
  69.     DoWeRestrict_skip_2_7e0a:
  70.    
  71.         clc
  72.         rtl
  73.        
  74.    
  75. DoWeRestrict_skip_2:
  76.  
  77.     // 28 is b bayou
  78.     cmp #0x0028
  79.     bne $+DoWeRestrict_skip_28
  80.         // Transfer y to A to compare
  81.         tya
  82.  
  83.         // c656 is kloak
  84.         cmp #0xc656
  85.         bne $+DoWeRestrict_skip_28_c656
  86.             // We have a match!
  87.             sec
  88.             rtl
  89.     DoWeRestrict_skip_28_c656:
  90.  
  91.         clc
  92.         rtl
  93.  
  94. DoWeRestrict_skip_28:  
  95.  
  96.     // 29 is krockhead
  97.     cmp #0x0029
  98.     bne $+DoWeRestrict_skip_29
  99.         // Transfer y to A to compare
  100.         tya
  101.  
  102.         // 9da0 is flitter
  103.         cmp #0x9da0
  104.         bne $+DoWeRestrict_skip_29_9da0
  105.             // We have a match!
  106.             sec
  107.             rtl
  108.     DoWeRestrict_skip_29_9da0:
  109.  
  110.         // 9f28 is flitter
  111.         cmp #0x9f28
  112.         bne $+DoWeRestrict_skip_29_9f28
  113.             // We have a match!
  114.             sec
  115.             rtl
  116.     DoWeRestrict_skip_29_9f28:
  117.  
  118.         // 9f36 is flitter
  119.         cmp #0x9f36
  120.         bne $+DoWeRestrict_skip_29_9f36
  121.             // We have a match!
  122.             sec
  123.             rtl
  124.     DoWeRestrict_skip_29_9f36:
  125.  
  126.         // 9e70 is flitter
  127.         cmp #0x9e70
  128.         bne $+DoWeRestrict_skip_29_9e70
  129.             // We have a match!
  130.             sec
  131.             rtl
  132.     DoWeRestrict_skip_29_9e70:
  133.  
  134.         clc
  135.         rtl
  136.  
  137. DoWeRestrict_skip_29:
  138.  
  139.     // 5 is rattle b
  140.     cmp #0x0005
  141.     bne $+DoWeRestrict_skip_5
  142.         // Transfer y to A to compare
  143.         tya
  144.  
  145.         // 69e8 is kannon
  146.         cmp #0x69e8
  147.         bne $+DoWeRestrict_skip_5_69e8
  148.             // We have a match!
  149.             sec
  150.             rtl
  151.     DoWeRestrict_skip_5_69e8:
  152.  
  153.         clc
  154.         rtl
  155.  
  156. DoWeRestrict_skip_5:
  157.  
  158.     // a is slime climb
  159.     cmp #0x000a
  160.     bne $+DoWeRestrict_skip_a
  161.         // Transfer y to A to compare
  162.         tya
  163.  
  164.         // 9ed4 is flitter
  165.         cmp #0x9ed4
  166.         bne $+DoWeRestrict_skip_a_9ed4
  167.             // We have a match!
  168.             sec
  169.             rtl
  170.     DoWeRestrict_skip_a_9ed4:
  171.  
  172.         clc
  173.         rtl
  174.  
  175. DoWeRestrict_skip_a:
  176.  
  177.     // 2d is bramble blast
  178.     cmp #0x002d
  179.     bne $+DoWeRestrict_skip_2d
  180.         // Transfer y to A to compare
  181.         tya
  182.  
  183.         // 9da0 is flitter
  184.         cmp #0x9da0
  185.         bne $+DoWeRestrict_skip_2d_9da0
  186.             // We have a match!
  187.             sec
  188.             rtl
  189.     DoWeRestrict_skip_2d_9da0:
  190.  
  191.         clc
  192.         rtl
  193.  
  194. DoWeRestrict_skip_2d:
  195.  
  196.     // e is target terror
  197.     cmp #0x000e
  198.     bne $+DoWeRestrict_skip_e
  199.         // Transfer y to A to compare
  200.         tya
  201.  
  202.         // 9da0 is flitter
  203.         cmp #0x9da0
  204.         bne $+DoWeRestrict_skip_e_9da0
  205.             // We have a match!
  206.             sec
  207.             rtl
  208.     DoWeRestrict_skip_e_9da0:
  209.  
  210.         clc
  211.         rtl
  212.  
  213. DoWeRestrict_skip_e:
  214.  
  215.     // 17 is web woods
  216.     cmp #0x0017
  217.     bne $+DoWeRestrict_skip_17
  218.         // Transfer y to A to compare
  219.         tya
  220.  
  221.         // 66fa is kannon
  222.         cmp #0x66fa
  223.         bne $+DoWeRestrict_skip_17_66fa
  224.             // We have a match!
  225.             sec
  226.             rtl
  227.     DoWeRestrict_skip_17_66fa:
  228.  
  229.         clc
  230.         rtl
  231.  
  232. DoWeRestrict_skip_17:
  233.  
  234.     // 6e is toxic tower
  235.     cmp #0x006e
  236.     bne $+DoWeRestrict_skip_6e
  237.         // Skip whole level
  238.         sec
  239.         rtl
  240. DoWeRestrict_skip_6e:
  241.  
  242.     // 16 is fiery furnace
  243.     cmp #0x0016
  244.     bne $+DoWeRestrict_skip_16
  245.         // Transfer y to A to compare
  246.         tya
  247.  
  248.         // 9da0 is flitter
  249.         cmp #0x9da0
  250.         bne $+DoWeRestrict_skip_16_9da0
  251.             // We have a match!
  252.             sec
  253.             rtl
  254.     DoWeRestrict_skip_16_9da0:
  255.  
  256.         clc
  257.         rtl
  258.  
  259. DoWeRestrict_skip_16:
  260.  
  261.     // 16 is fiery furnace
  262.     cmp #0x009a
  263.     bne $+DoWeRestrict_skip_9a
  264.         // Transfer y to A to compare
  265.         tya
  266.  
  267.         // 8a5e is red bee
  268.         cmp #0x8a5e
  269.         bne $+DoWeRestrict_skip_9a_8a5e
  270.             // We have a match!
  271.             sec
  272.             rtl
  273.     DoWeRestrict_skip_9a_8a5e:
  274.  
  275.         // 8a26 is red bee
  276.         cmp #0x8a26
  277.         bne $+DoWeRestrict_skip_9a_8a26
  278.             // We have a match!
  279.             sec
  280.             rtl
  281.     DoWeRestrict_skip_9a_8a26:
  282.  
  283.         clc
  284.         rtl
  285.  
  286. DoWeRestrict_skip_9a:
  287.  
  288.     // 80 is klobber karnage
  289.     cmp #0x0080
  290.     bne $+DoWeRestrict_skip_80
  291.         // Transfer y to A to compare
  292.         tya
  293.  
  294.         // 8788 is bee
  295.         cmp #0x8788
  296.         bne $+DoWeRestrict_skip_80_8788
  297.             // We have a match!
  298.             sec
  299.             rtl
  300.     DoWeRestrict_skip_80_8788:
  301.  
  302.         // 879e is bee
  303.         cmp #0x879e
  304.         bne $+DoWeRestrict_skip_80_879e
  305.             // We have a match!
  306.             sec
  307.             rtl
  308.     DoWeRestrict_skip_80_879e:
  309.  
  310.         // 87b4 is bee
  311.         cmp #0x87b4
  312.         bne $+DoWeRestrict_skip_80_87b4
  313.             // We have a match!
  314.             sec
  315.             rtl
  316.     DoWeRestrict_skip_80_87b4:
  317.  
  318.         // 87ca is bee
  319.         cmp #0x87ca
  320.         bne $+DoWeRestrict_skip_80_87ca
  321.             // We have a match!
  322.             sec
  323.             rtl
  324.     DoWeRestrict_skip_80_87ca:
  325.  
  326.  
  327.         clc
  328.         rtl
  329.  
  330. DoWeRestrict_skip_80:
  331.  
  332.     // 9c is animal antics rattly
  333.     cmp #0x009c
  334.     bne $+DoWeRestrict_skip_9c
  335.         // Skip whole level
  336.         sec
  337.         rtl
  338. DoWeRestrict_skip_9c:
  339.  
  340.    
  341.     clc
  342.     rtl
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top