Advertisement
Crystal_

setup 1

Jun 2nd, 2015
409
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. ;;; COIN CASE SETUP 1
  2. ; coin case setup that writes 4 bytes based on box chars at $dd55 + 4*[$dd54]
  3.  
  4. ; Quagsire @ Protein
  5. ; - Sleep Talk
  6.  
  7. ; To get 9x TM03 and 16x TM12 you'll need to do some cloning.
  8. ; To get two stacks of the same item (i.e. Antidote and X Accuracy),
  9. ;   you'd just deposit the item 99 times for the first stack
  10. ;   and when you have deposited all the items,
  11. ;   you withdraw said item until you have the amount you need.
  12.  
  13.     XXXX ---------- XX XX ------- I1 = ANY | Q1 = ANY
  14.     XXXX ---------- XX XX ------- I2 = ANY | Q2 = ANY
  15.  
  16.     ld hl, $dd54 -- 21 54 DD ---- I3 = X Accuracy | Q3 = 84 | I4 = TM29 (Psychic)
  17.     ld bc, XXXX --- 01 XX XX ---- Q4 = 01 | I5 = ANY | Q5 = ANY
  18.     dec c --------- 0D ---------- I6 = Parlyz Heal
  19.     ld e, (hl) ---- 5E ---------- Q6 = 94
  20.     ld d, $01 ----- 16 01 ------- I7 = Fire Stone | Q7 = 01
  21.     dec d --------- 15 ---------- I8 = Max Elixer
  22.     ld bc, XXXX --- 01 XX XX ---- Q8 = 01 | I9 = ANY | Q9 = ANY
  23.     inc (hl) ------ 34 ---------- I10 = X Speed
  24.     inc hl -------- 23 ---------- Q10 = 35
  25.     push de ------- D5 ---------- I11 = TM22 (SolarBeam)
  26.     ld bc, XXXX --- 01 XX XX ---- Q11 = 01 | I12 = ANY | Q12 = ANY 
  27.     pop bc -------- C1 ---------- I13 = TM03 (Curse)
  28.     add hl, bc ---- 09 ---------- Q13 = 09
  29.     add hl, bc ---- 09 ---------- I14 = Antidote
  30.     add hl, bc ---- 09 ---------- Q14 = 09
  31.     add hl, bc ---- 09 ---------- I15 = Antidote
  32.     ld e, l ------- 5D ---------- Q15 = 93
  33.     dec b --------- 05 ---------- I16 = PokeBall
  34.     ld d, h ------- 54 ---------- Q16 = 84
  35.    
  36.     ld hl, $d907 -- 21 07 D9 ---- I17 = X Accuracy | Q17 = 07 | I18 = TM26 (Earthquake)
  37.     ld bc, XXXX --- 01 XX XX ---- Q18 = 01 | I19 = ANY | Q19 = ANY
  38.    
  39.     ldi a, (hl) --- 2A ---------- I20 = Super Repel
  40.     inc bc -------- 03 ---------- Q20 = 03
  41.     push hl ------- E5 ---------- I21 = TM37 (Sandstorm)
  42.     ld bc, XXXX --- 01 XX XX ---- Q21 = 01 | I22 = ANY | Q22 = ANY
  43.     ld l, (hl) ---- 6E ---------- I23 = Pearl
  44.     ld bc, XXXX --- 01 XX XX ---- Q23 = 01 | I24 = ANY | Q24 = ANY
  45.     add a, l ------ 85 ---------- I25 = Basement Key
  46.     ld bc, XXXX --- 01 XX XX ---- Q25 = 01 | I26 = ANY | Q26 = ANY 
  47.     ld (de), a ---- 12 ---------- I27 = Potion
  48.     scf ----------- 37 ---------- Q27 = 55
  49.     pop hl -------- E1 ---------- I28 = TM33 (Ice Punch)
  50.     inc bc -------- 03 ---------- Q28 = 03 
  51.     inc de -------- 13 ---------- I29 = Escape Rope
  52.     inc hl -------- 23 ---------- Q29 = 35
  53.     ld c, (hl) ---- 4E ---------- I30 = PrzCureBerry
  54.     inc b --------- 04 ---------- Q30 = 04
  55.     ld a, c ------- 79 ---------- I31 = EnergyPowder
  56.     ld bc, XXXX --- 01 XX XX ---- Q31 = 01 | I32 = ANY | Q32 = ANY
  57.     inc b --------- 04 ---------- I33 = Great Ball
  58.     ld b, $14 ----- 06 14 ------- Q33 = 06 | I34 = Repel
  59.     ccf ----------- 3F ---------- Q34 = 63
  60.     rl b ---------- CB 10 ------- I35 = TM12 (Sweet Scent) | Q35 = 16
  61.     rra ----------- 1F ---------- I36 = Calcium
  62.     inc c --------- 0C ---------- Q36 = 12
  63.     cp b ---------- B8 ---------- I37 = Lovely Mail
  64.     inc bc -------- 03 ---------- Q37 = 03
  65.     ld bc, $XXXX -- 01 XX XX ---- I38 = 01 | Q38 = ANY | I39 = ANY
  66.     jr nz, $db ---- 20 D7 ------- Q39 = 32 | I40 = TM24 (DragonBreath)
  67.    
  68.     ld bc, $XXXX -- 01 XX XX ---- Q40 = 01 | I41 = ANY | Q41 = ANY
  69.     inc l --------- 2C ---------- I42 = Dire Hit
  70.     ld l,F5 ------- 2E F5 ------- Q42 = 46 | I43 = HM03 (Surf)
  71.     ld bc, $0134 -- 01 34 01 ---- Q43 = 01 | I44 = X Speed | Q44 = 01
  72.     ld h, $12 ----- 26 12 ------- I45 = Full Heal | Q45 = 18
  73.     sbc a, (hl) --- 9E ---------- I46 = Flower Mail
  74.     inc sp -------- 33 ---------- Q46 = 51
  75.     push bc ------- C5 ---------- I47 = TM06 (Toxic)
  76.     ld bc, $XXXX -- 01 XX XX ---- Q47 = 01 | I48 = ANY | Q48 = ANY
  77.     jp hl --------- E9 ---------- I49 = TM41 (ThunderPunch) | Q49 = ANY
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement