Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Return true if we skip
- DoWeRestrict:
- lda $=LevelCode
- // 2c is mudhole
- cmp #0x002c
- bne $+DoWeRestrict_skip_2c
- // Transfer y to A to compare
- tya
- // 6a2e is kannon
- cmp #0x6a2e
- bne $+DoWeRestrict_skip_2c_6a2e
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_2c_6a2e:
- // 9e42 is flitter
- cmp #0x9e42
- bne $+DoWeRestrict_skip_2c_9e42
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_2c_9e42:
- clc
- rtl
- DoWeRestrict_skip_2c:
- // 02 is rambi rumble
- cmp #2
- bne $+DoWeRestrict_skip_2
- // Transfer y to A to compare
- tya
- // 7ca8 is bee
- cmp #0x7ca8
- bne $+DoWeRestrict_skip_2_7ca8
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_2_7ca8:
- // 7cae is bee
- cmp #0x7cae
- bne $+DoWeRestrict_skip_2_7cae
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_2_7cae:
- // 7cce is bee
- cmp #0x7cce
- bne $+DoWeRestrict_skip_2_7cce
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_2_7cce:
- // 7e0a is bee
- cmp #0x7e0a
- bne $+DoWeRestrict_skip_2_7e0a
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_2_7e0a:
- clc
- rtl
- DoWeRestrict_skip_2:
- // 28 is b bayou
- cmp #0x0028
- bne $+DoWeRestrict_skip_28
- // Transfer y to A to compare
- tya
- // c656 is kloak
- cmp #0xc656
- bne $+DoWeRestrict_skip_28_c656
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_28_c656:
- clc
- rtl
- DoWeRestrict_skip_28:
- // 29 is krockhead
- cmp #0x0029
- bne $+DoWeRestrict_skip_29
- // Transfer y to A to compare
- tya
- // 9da0 is flitter
- cmp #0x9da0
- bne $+DoWeRestrict_skip_29_9da0
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_29_9da0:
- // 9f28 is flitter
- cmp #0x9f28
- bne $+DoWeRestrict_skip_29_9f28
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_29_9f28:
- // 9f36 is flitter
- cmp #0x9f36
- bne $+DoWeRestrict_skip_29_9f36
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_29_9f36:
- // 9e70 is flitter
- cmp #0x9e70
- bne $+DoWeRestrict_skip_29_9e70
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_29_9e70:
- clc
- rtl
- DoWeRestrict_skip_29:
- // 5 is rattle b
- cmp #0x0005
- bne $+DoWeRestrict_skip_5
- // Transfer y to A to compare
- tya
- // 69e8 is kannon
- cmp #0x69e8
- bne $+DoWeRestrict_skip_5_69e8
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_5_69e8:
- clc
- rtl
- DoWeRestrict_skip_5:
- // a is slime climb
- cmp #0x000a
- bne $+DoWeRestrict_skip_a
- // Transfer y to A to compare
- tya
- // 9ed4 is flitter
- cmp #0x9ed4
- bne $+DoWeRestrict_skip_a_9ed4
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_a_9ed4:
- clc
- rtl
- DoWeRestrict_skip_a:
- // 2d is bramble blast
- cmp #0x002d
- bne $+DoWeRestrict_skip_2d
- // Transfer y to A to compare
- tya
- // 9da0 is flitter
- cmp #0x9da0
- bne $+DoWeRestrict_skip_2d_9da0
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_2d_9da0:
- clc
- rtl
- DoWeRestrict_skip_2d:
- // e is target terror
- cmp #0x000e
- bne $+DoWeRestrict_skip_e
- // Transfer y to A to compare
- tya
- // 9da0 is flitter
- cmp #0x9da0
- bne $+DoWeRestrict_skip_e_9da0
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_e_9da0:
- clc
- rtl
- DoWeRestrict_skip_e:
- // 17 is web woods
- cmp #0x0017
- bne $+DoWeRestrict_skip_17
- // Transfer y to A to compare
- tya
- // 66fa is kannon
- cmp #0x66fa
- bne $+DoWeRestrict_skip_17_66fa
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_17_66fa:
- clc
- rtl
- DoWeRestrict_skip_17:
- // 6e is toxic tower
- cmp #0x006e
- bne $+DoWeRestrict_skip_6e
- // Skip whole level
- sec
- rtl
- DoWeRestrict_skip_6e:
- // 16 is fiery furnace
- cmp #0x0016
- bne $+DoWeRestrict_skip_16
- // Transfer y to A to compare
- tya
- // 9da0 is flitter
- cmp #0x9da0
- bne $+DoWeRestrict_skip_16_9da0
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_16_9da0:
- clc
- rtl
- DoWeRestrict_skip_16:
- // 16 is fiery furnace
- cmp #0x009a
- bne $+DoWeRestrict_skip_9a
- // Transfer y to A to compare
- tya
- // 8a5e is red bee
- cmp #0x8a5e
- bne $+DoWeRestrict_skip_9a_8a5e
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_9a_8a5e:
- // 8a26 is red bee
- cmp #0x8a26
- bne $+DoWeRestrict_skip_9a_8a26
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_9a_8a26:
- clc
- rtl
- DoWeRestrict_skip_9a:
- // 80 is klobber karnage
- cmp #0x0080
- bne $+DoWeRestrict_skip_80
- // Transfer y to A to compare
- tya
- // 8788 is bee
- cmp #0x8788
- bne $+DoWeRestrict_skip_80_8788
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_80_8788:
- // 879e is bee
- cmp #0x879e
- bne $+DoWeRestrict_skip_80_879e
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_80_879e:
- // 87b4 is bee
- cmp #0x87b4
- bne $+DoWeRestrict_skip_80_87b4
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_80_87b4:
- // 87ca is bee
- cmp #0x87ca
- bne $+DoWeRestrict_skip_80_87ca
- // We have a match!
- sec
- rtl
- DoWeRestrict_skip_80_87ca:
- clc
- rtl
- DoWeRestrict_skip_80:
- // 9c is animal antics rattly
- cmp #0x009c
- bne $+DoWeRestrict_skip_9c
- // Skip whole level
- sec
- rtl
- DoWeRestrict_skip_9c:
- clc
- rtl
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement