Stuff for AW2 TC Hack
-Modified to include AW2 Balance Hack Damage Formula)
08042E74
	ldrb r1, r1 0x1E
	ldrb r2, r2 0x0

08042E74 - Loads Attack damage
0804310C - Load the damage number (attack)

- Upkeep Cost Income-(Income Fraction*Unit Count*Base Income)/(50)
08025B68
6810	ldr r0, r2, 0x0 //Original Code
B401	push r0		//My code start
4801	ldre r0, [087000D1]
B401	push r0
BD00	pop pc //does a jump and preserves r0
xyxy
087000D1

08700D0
BC01	pop r0 		//restore r0 for jump
B4F0	push r4,5,6,7	
B40F	push r0,1,2,3
BCF0	pop r4,5,6,7		//relocates all the data in r0-r3 to r4-r7 and saves the initial r4-r7
363A	add r6, 0x3A
7830	ldrb r0, r6, 0x0	//Loads current units built amount
3601	add r6, 0x1
7831	ldrb r1, r6, 0x0	//Loads current units lost amount
1A40	sub r0, r0, r1	//Generates total units
4A0B	ldre r2, [+0x??] (03004080)
8812	ldrh r2, r2, 0x0	//loads current day
2A01	cmp r2, 0x1
D100	bne +0x4
2000	mov r0, 0x0		//Compares if it is Day 1 - no upkeep on Day 1 if it is
3E3B	sub r6, 0x3B
0929	lsr r1, r5, 0x4	//Income Fraction of 0.0625
2205	mov r2, 0x5
4351	mul r1, r1, r2		//Income Fraction of 0.3125
4348	mul r0, r0, r1	//creates numerator for calculation
2132	mov r1, 0x32		//creates denominator (50 unit max)
DF06	swi 06			//divide r0 by r1
1A2D	sub r5, r5, r0	//Subtract the upkeep from the cost
B4F0	push r4,5,6,7
BC0F	pop r0,1,2,3
BCF0	pop r4,5,6,7		//restore all the registers
1840	add r0, r0, r1	//original code
6010	str r0, r2, 0x0
4903	ldre r1, [+0xe] (000F423F)
4288	cmp r0, r1
D900	bls +0x4
6011	str r1, r2, 0x0
4770	bx lr
03004080
0000F43F

CO Specific Buildlists
Start 0802D680 (16 Bytes for Jump)
B401	push r0
4801	ldre r0 (08700121)
B401	push r0
BD00	pop pc
08700121
----
BC01	pop r0
464E				//Original Code
4645
B4E0
0600
0E00
4681
2600
2700
B401	push r0			//My Code
4806	ldre r0 (030033EC)
7800	ldrb r0, r0, 0x0
213C	mov r1, 0x3C
4348	mul r0, r0, r1		//creates loadpoint for CO
49??	ldre r1, (020232A1)	//Address for current player's CO
1841	add r1, r1, r0
7808	ldrb r0, r1, 0x0		//Loads Current Player's CO
2104	mov r1, 0x4
4348	mul r0, r0, r1		//Creates length for loading CO pointer
49??	ldre r1 (08619240)		//Load base address for CO specific Buildlist
1841	add r1, r1, r0		//create address
48??	ldre r0, (0802D691)
B401	push r0
BD00	pop pc				//restore location to routine
----0802D691
BC01	pop r0				//restore all to original state
//Jump to 0802d692 and Finish code with modified address

Now for part 2. :/
Start 0802D728 -> E
B401	push r0
4801	ldre r0 (08700161)
B401	push r0
BD00	pop pc
08700161

BC01		//Pop on landing
0089
4441
700D
---	//This opcode needs to be jumped to first. :/
1C78
0600
0E07
(490A) (Make sure the address is in R1)
0000	nop				//My Code
480E	ldre r0 (03003FCD)	//Load the 'Fog of War Toggle' (Now if Tech Trees)
7800	ldrb r0, r0, 0x0
2800	cmp r0, 0x0
D1??	bne
49??	ldre r1 (08619240)
314C	add r1, 0x4C
E0??	b ->
4806	ldre r0 (030033EC)
7800	ldrb r0, r0, 0x0
213C	mov r1, 0x3C
4348	mul r0, r0, r1		//creates loadpoint for CO
49??	ldre r1, (020232A1)	//Address for current player's CO
1841	add r1, r1, r0
7808	ldrb r0, r1, 0x0		//Loads Current Player's CO
2104	mov r1, 0x4
4348	mul r0, r0, r1		//Creates length for loading CO pointer
49??	ldre r1 (08619240)		//Load base address for CO specific Buildlist
1841	add r1, r1, r0		//create address
6808 (ldr r0, r1, 0x0) <-
1838
7800
0600
1600
B401	push r0
48??	ldre r0, (0802D73F)
B401	push r0
BD00	pop pc				//restore location to routine

---
Jump back to 0802D73E
BC01	pop r0
4550			//Normal code from here

HQ Building Routine (Players Only)
No code needed -> Modify
080242EE 2A0A -> 2A08 (allows HQ building), 6 allows city building

Part 2 - Toggle Between Building from Bases, Ports and Airports
	Change pointer 0802D638 - Pointer to the HQ's Build Hash (Default pointer = 0802D654 = Base)
		--new pointer 087001C0
087001C0
2437	mov r4, 0x37
4901	ldre r1, 	
468F	mov pc, r1 (0802D65E)
0802D65E

Water nearby code
(This needs to be redone - if no water = 0x17, if water = 0x37)

	push r0, r2			//Code Starts Here
	ldre r2 (03003FCE)	//Spot pinched for toggle, written to 0 at the end of each turn
	ldrb r0, r2 0x0
	add r0, 0x1
	strb r0, r2, 0x0	
	cmp r0, 0x1			//1 equals base, 2 = Airport, 2 = Port
	bne
----Base
	add r1, 0x6
	b (end)
----Base
	cmp r0, 0x2
	bne
----Airport
	add r1, 0x2
	b (end)
----Airport
	mov r0, 0x1
	strb r0, r2, 0x0		//Resets the counter once you've got a port
	ldre r2, [03003140]	//Loads cursor position pointer
	push r3-7	
	ldre r4 [201E450]	//loads map XY Size
	ldrh r4, r5, 0x0		//Loads X Size
	ldrh r4, r6, 0x2		//Loads Y Size
	ldre r7, (0201FF82)	//Loads Tile Map
	ldrb r3, r2, 0x1		//Load Y Coordinate
	ldrb r2, r2, 0x0		//Load X Coordinate
	mul r4, r3, r5		//Generates The amount of tiles from the Y
	add r4, r4, r2		//Adds X to amount of tiles to get exact tile.
----Checks Start Here
	cmp r2, 0x0			//Compares if X = 0
	beq				//Skips the load from X -1 if X = 0
	sub r4, 0x1			//Creates TID
	ldrb r0, r7, [r4]		//Loads TSA from X-1
	add r4, 0x1
	cmp r0, 0x7			//Is it sea?
	bne B				//Skips if not Sea
----A
	add r1, 0x3			//Turns HQ into Port
	b END
----B
	cmp r2, [r5]			//Skips the load from X+1 if X=X Width
	beq D
	add r4, 0x1			//Creates TID
	ldbr r0, r7, [r4]		//loads TSA
	sub r4, 0x1
	cmp r0, 0x7
	bne D				//Skips to next check if not sea
----C
	add r1, 0x3			//Turns HQ into Port
	b END
----D
	cmp r3, 0x0			//Compares if Y coordinate = 0
	beq F				//Skips if at Top Row
	sub r4, r4, r6		//Subtracts to get the Row above the HQ
	ldrb r0, r7, [r4]		//loads TSA
	add r4, r4, r6		//Restores TID
	cmp r0, 0x7
	bne F				//Skips if not Sea
----E
	add r1, 0x3			//Turns into Port
	b END
----F
	cmp r3, r6			//Compares if Y coordinate = Y limit
	beq H				//Skips if at Top Row
	add r4, r4, r6		//Subtracts to get the Row above the HQ
	ldrb r0, r7, [r4]		//loads TSA
	sub r4, r4, r6		//Restores TID
	cmp r0, 0x7
	bne H				//Skips if not Sea
----G
	add r1, 0x3			//Turns it into a port
	b END
----H
	add r1, 0x6			//If it can't be a port, turn it into a base.
----END
	pop r3-r7			//restores registers
----(end)
	pop r0, r2			//Restores registers to initial state, with modified HQ.
	
	push r0, r2
	ldre r2, (03003FD0)	//Second Spot, You built at the HQ
	mov r0, 0x14			//+20% for the privilege!
	strh r0, r2, 0x0
	pop r0, r2
	b <-				//Skip the price restoring
----Jump Back
	push r0, r2
	ldre r2, (03003FD0)
	mov r0, 0x0	
	strh r0, r2, 0x0		//You're not building from the HQ, it's free (ish)
	pop r0, r2
----<-
	push r0
	ldre r0, (???)
	push r0
	pop PC

----???
	pop r0

Build Subs Dived Hack
	--new pointer 086FFF01
Start at 08025BE2

B401	push r0
2087	mov r0, 0x87
0500	lsl r0, r0 0x14
38FF	sub r0, 0xFF	
B401	push r0
BD00	pop pc

---

BC01	pop r0
1C03
0609
0E0C
2500
2C18	cmp r4 0x18 //Are we building a Sub?
D100	bne +0x1
2520	mov r5, 0x20
701C	strb r4, [r3]
705D	strb r5, [r3, 0x1]
4901	ldre r1, 0x1 [08025BED]
B402	push r1
BD00	pop pc
0000
08025BEF

Change: 08025C2E
71DD	strb r5, [r3, 0x7]
721D	strb r5, [r3, 0x8]
2000	mov r0, 0x0

2000	mov r0, 0x0
2500	mov r5, 0x0
8118	strh r0, [r3, 0x8]

Change to implement the CO D2D Skill things

-See if the routines work properly with attack and defence

Applicator to damage formula

08024D2C - Current
1836	add r6, r6, r0
444E	add r6, r9
210C	mov r1, 0xC
5E68	ldsh r0, [r5, r1]
4370	mul, r0, r6
2164	mov r1, #0x64
F065FEB8 (divide bl, 0x0808AAAC)
strh	r0, [r5 0xC]
strh	r0, [r5 0x14]

Updater on Day Start

	⁃	Only "dived" subs take damage.
08024B7C - Already checked whether unit has "dived" flag set.
B401	push r0
2087	mov r0, 0x87
0500	lsl r0, r0 0x14
38CF	sub r0, 0xCF	
B401	push r0
BD00	pop pc
0000
0000
0000
0000
2319

---Jumps to 086FFF30
781B	ldrb r3, [r3, #0x0]
BC01	pop r0  //restores r0
2B18	cmp r3, 0x18 //Is it a submarine
D104	bne #1
2319	mov r3, 0x19
E002	b #86fff42
	Five NOPs
---#1 Here
4807	ldr r0, #0x08499598	//Original code here
6800
0121
1b09
0089
1809
7f48
7f89
7812
9700
b408	push r3
4b02	ldr r3, #0x08024b91
b408	push r3
bd00	pop pc
0x08499598
91 4b
02 08
----#0x08024b91
BC08	pop r3

Free Music choice for COPs hack.

08044BA0 (8 Free opcodes)
---Jumps to #0x08 62 00 00
B403	push r0, r1
2086	mov r0, 0x86
0500	lsl r0, r0 0x14
2102	mov r1, 0x2
0409	lsl r1, r1, 0x10
1840	add r0, r0, r1
3001	add r0, 0x1	
4687	mov pc, r0

---#0x08 62 00 00
bc03	pop r0, r1
b402	push r1
4902	ldr r1, #0xAddress of CO Power musics
0040	lsl r0, r0, 0x1
1841	add r1, r0
8808	ldrh r0, [r1, #0x0]
bc02	pop r1
4770	bx r14
(Pointer)

---Change to existing opcodes
#0x08043DFA
46c0	nop
46c0	nop
E007	b #0x08043E10
	8x nop

---Completely disable SCOPs
08044390 1C0D - Mov r5, r1
-Change this to Mov r5, 0xn to force either COP or SCOP  (250n)
--Changed to mov r5, 0x1 (Force COP)

0802C85A - Change to nop to make SCOP unavailable on the menu

Un-Dive units that are not subs, stun units which have been hit with Dread Hammer (bit 0x40 set).

Jump Code #0x0802540E (9 Opcodes)
b401	push r0
4801	ldre r0
b401	push r0
bd00	pop r0
0000
0802540F
0000
-----

Undive Subs Code and Apply Dread Hammer Stun Code
Operational Code #0x87001E0
bc01	Pop r0
b403	push r0, r1 // Initialisation code
7820	ldrb r0, r4 //The undive subs code
2818	cmp r0, 0x18 //is it a sub
d003	beq #
7860	ldrb r0, [r4, 0x1]
21df	mov r1, 0xDF
4008	and r0, r1
7060	strb r0 [r4, 0x1]
----beq jumps here //This is the old stun code. 9 Opcodes
7860	ldrb r0, [r4, 0x1]
2140	mov r1, 0x40
4008	and r0, r1
1181	asr, r1, r0, 0x6 //If bit 0x40 is set, r1 = 1. Else, r1 = 0
7860	ldrb r0, [r4, 0x1]
4308	orr r0, r1	//Applies unit in wait to current status
21BF	mov r1, 0xBF
4008	and r0, r1	//Deapplies the 0x40 bit
7060	strb r0, [r4, 0x1]
----//Restores Registers
bc03	pop r0, r1
----original Code
7861
2020
4008
2800
d000
2505
4802 (0x030033EC)
8800
4902	ldre r1 [0x082541F]
b402	push r1
bd00	pop pc
030033EC
082541F

Change: 08058948
to NOP

---Replacement Stun code (087001F2) 9 OPCODES
79A0	ldrb r0, [r4, #0x6]
11C1	asr r1, r0, 0x7
7860	ldrb r0, [r4, 0x1]
4308	orr r0, r1
7060	strb r0, [r4, 0x1]
79A0	ldrb r0, [r4, 0x6]
0640	lsl r0, r0, 0x19
0E40	lsr r0, r0, 0x19
71A0	strb r0, [r4, 0x6]

Fixing Bug for fuel usage.

08025404
79A5	ldrb r5, [r4, 0x6]
3506	add r5, 0x6
71A5	strb r5, [r4, 0x6]
2500	mov r5, 0x0
46C0	nop

New Charge System
08041CA8
46c0	nop (was mul r4, r5)

08041C58
46c0 nop (was mul r6, r5)

08041CA4
46c0 nop (was mul r4, r5)

08041CAC
2101	mov r1, 0x1 (was mov r1, 0x2)

080441A4
2864 cmp r0, 0x0 - HP based system - stop increasing after the 0th use.
nop

080441A8
2164	mov r1, 0x64 - Charge rate = 100.

08044138
46c0	nop 	(was str r0, [r1, 0x20]) //Defender gains no charge

08041CB8 nop? (was bl 80440e0) <- This causes only the defender to charge
08041CCA nop nop <- Causes only attacker to charge

Change star capacity
080441D0 to 001E (30 "G")

Incremental Powerup - Part 1, Makes the scaling
Claim 08700250

8 Opcodes

08700250

Original: 08043052 - 08043060
4906	ldr r1 = #0x8499598
680a	ldr r2, [r1]
0101	lsl
1a09	sub
0089	lsl
1889	add
7f48	ldrb r0
7f89	ldrb r1

Don't need to preserve r1, may need to preserve r14 (lr)

	//08043052
4901	ldr r1 = #08700251
b402	push r1
bd00	pop pc
08700251

	//08700250
491A
680a
0101
1a09
0089
1889
b40f	push r0-r3	//Two parts, first, if a CO Power is active, skip to the end.
7f88	ldrb r0, [r1, 0x1E]
2800	cmp r0, 0x0
d002	beq #part 2
2064	mov r0, 0x64
4683	mov r11, r0 //During CO Powers, always maximum effect for abilities.
e018	b #end
 
	#Part 2
7f48	ldrb r0, [r1, 0x1d] //Need CO ID to get Bar length
4a14	ldr r2 = #0xCO Bar base address (Nell's Super Stars, 085d3de0)
4b17	ldr r3 = #0x104	//Co Data Length (104)
4358	mul r0, r3
1882	add r2, r0, r2
6812	ldr r2, r2, 0x0 //Max Stars loaded into r2
4b13	ldr r3, 080441D0 //Loads star capacity
6a08	ldr r0, [r1, 0x20]	//Loads current CO Power Charge
681B	ldr r3 [r3]
	b #Here (08700290)

	push r0-r2		//Accounts for cost increases
	ldr r0, [r1, 0x25]	//loads CO Power uses into r0
	cmp r0, 0xn		//What's the max uses?
	ble			//Jump if less
	mov r0, 0xa		//A = maximum uses before increases are fixed
	mul r0, 0xx		//Multiplies Uses by increase %age (0-20%)
	mov r1, 0x64
	add r0, r0, r1
	swi $06
	mov r3, r0
	pop r0-r2

	#Here (08700290)
2164	mov r1, 0x64	//Multiplies the current charge by 100
4348	mul r0, r1
435a	mul r2, r3
1c11	mov r1, r2		//Sets up for division, current charge x100 in Numerator, max charge in denominator
df06	swi $06
4683	mov r11, r0		//Saves %charge in R11

	#end
bc0f	pop r0-r3
b40f	push r0-r3	
4658	mov r0, r11
4a0b	ldr r2 #0x30013B0
1c13	mov r3, r2
3320	add r3, 0x20
42a2	cmp r2, r4
d002	beq #a
42a3	cmp r3, r4
d000	beq #a
E000	b #end2

	#a here
76A0	strb r0, [r4, 0x1A]
	#end2 here
e00e	#0x87002d4 BC0F	pop r0-r3 b #VetSave

4804	ldr r0 = #0804305F
b401	push r0
bd00	pop pc	//Back to your regularly scheduled gaming
08499598 //Base Pointer
085d3de0 //Nell's SCOP stars
080441D0 //Star capacity
0804305F // Return Address
00000104	//Co Data Length
030013B0	//Active unit IDs

#vetsave //Jumps here to save veteran status of unit to temporary store. Now saves CO ID in 1B instead, as can load vetstatus straight from the Unit Data.
	#087002d4
bc0f	pop {r0-r3}
b40f	push {r0-r3}
4a06	ldr r2 = #0x30013B0
1c13	mov r3, r2
3320	add r3, 0x20
42a2	cmp r2, r4
d002	beq
42a3	cmp r3, r4
d000	beq
e003	b
	#Beq here
6820	ldr r0, [r4]		//New:	7F48	ldrb r0, [r1, 0x1D] (087002E8)
7840	ldrb r0, [r0, 0x1]			46C0	nop
1180	asr r0, r0, 0x6			46C0	nop
76e0	strb r0, [r4, 0x1B]			
	#B here
BC0f	pop {r0-r3}
E7E0	b #087002b6
0x30013B0

Can use +1A/B of the 030013B0/D0 Unit targeting addresses
+1A = %Charge (Integer Value)
+1B = CO ID

Part 2 - Bonus Shaving for Attack, Veterancy Bonuses - Stored in Status (Unit 0x1)'s top two bits.

New damage formula (Attack Scaling, Transport boosts, large unit coefficient, Veterancy)

	Jump from 0804308C //base attack bonus in r0, base damage in r4, active unit in r8, r1 is expendable
	Jump Code
4901	ldr r1 [0x086FFE48]
B402	push r1
BD00	pop pc
	086FFE60
	12x 0000 (nop)

	Original Code (18 OPCODES FOR JUMP)

3064	add r0, #0x64
2C00	cmp r4, 0x0
DD0A	ble #80430A8
4360	mul r0, r4
2164	mov r1, 0x64
F047
FD09	bl #808AAAC (F047FD09)
2800	cmp r0, 0x0
D105	bne 80430AA
2001	mov r0, 0x1
E003	b 80430aa	
0000	lsl r0, r0, 0x0
5ABC	ldrh r4, [r7, r2]
085D	lsr r5, r3, 0x1
	//Note: A8 is here
2000	mov r0, 0x0
	//Note: AA is here
BC70	pop r4-r6
BC02	pop r1
4708	bx r1

	Modifications Needed: 13 Opcodes
	mov r1, r8
	push r1
	push r0
	mov r0, 0xB0
	and r1, r0
	cmp r1, 0x0
	mov r1, r8
	bne #1
	add r1, r1, 0x20
	b #2
	#1
	sub r1, r1, 0x20
	mov r8, r1

	55 Opcodes, 2 Pointers (120 Bytes)
	pop r0
7e89	ldrb r1, [r1, 0x1A]
4348	mul r0, r1		//multiplies by charge%
2164	mov r1, 0x64
B408	push r3
DF06	swi $0x6		//scaling
BC08	pop r3			//restore r3
B401	push r0			//store base firepower in stack
4641	mov r1, r8
6809	ldr r1, [r1, 0x0]	//Load veterancy
7849	ldrb r1, [r1, 0x1]
0989	lsr r1, r1, 0x6
481A	ldre r0 (List)		//Veterancy bonuses for each level, 0x8619590
1840	add r0, r0, r1
7801	ldrb r1, [r0, 0x0]	//load veterancy bonus
BC01	pop r0
1840	add r0, r0, r1
B401	push r0			//Stores scaled firepower bonus + veterancy in stack
4648	mov r1, r8
7EC9	ldrb r1, [r1, 0x1B]	//Loads current CO
4817	ldre r0	*##*		//Table of CO values for boosting due to transport - specific value 086195A0
1840	add r0, r0, r1
7801	ldrb r1, [r0, 0x0]
4640	mov r0, r8
6800	ldr r0, [r0, 0x0]
7840	ldrb r0, [r0, 0x1]
B402	push {r1}
2110	mov r1, 0x10
4008	and r0, r1
BC02	pop {r1}
0900	lsr r0, r0, 0x4
4341	mul r1, r0, r1		//Activates transport boost
BC01	pop r0
1840	add r0, r0, r1		//Final multiplier boost
	//Faction specific firepower boosts
B401	push r0
4640	mov r0, r8
7EC0	ldrb r0, [r0, 0x1B]	//Load CO ID
4810	ldr r1, ****		//Pointer to CO factions boosts
0080	lsl r0, r0, 0x2
6809	ldr r1, [r1, r0]	//Load pointer to army specific boosts
1841	add r1, r0, r1
4640	mov r0, r8
6800	ldr r0, [r0, 0x0]
7800	ldrb r0, [r0, 0x0]	//loads unit ID
5C08	ldrb r0, [r1, r0]	//Loads firepower boost%
1904	add r4, r0, r4		//adds firepower boost
bc01	pop r0			//restores firepower boosts to r0
	//original IS code beyond here. Our work is done, except for large unit scaling!
	Original Code

3064	add r0, #0x64
2C00	cmp r4, 0x0
DD0A	ble #80430A8
4360	mul r0, r4
2164	mov r1, 0x64
F047
FD09	bl #808AAAC (F047FD09)	//Subbed with Swi #0x6
2800	cmp r0, 0x0
D105	bne 80430AA
2001	mov r0, 0x1
E003	b 80430aa	
0000	lsl r0, r0, 0x0
5ABC	ldrh r4, [r7, r2]
085D	lsr r5, r3, 0x1
	//Note: A8 is here
2000	mov r0, 0x0
	//Note: AA is here
	pop r4
	mov r8, r4
BC70	pop r4-r6
BC02	pop r1
4708	bx r1

	Addresses:
	ff ff
	08619590	//Base Veterancy Bonuses Atk
	086195A0	//Transport Boost
	086195C0	//Pointer to faction specific boosts for each CO

			//Specific Location for firepower boosts for each faction
	08619610	Faction 1
	      30
	      50

	//Large Unit Scaling Code
	Formula: HP + (100 - HP)*10/25
	Attacking unit in r4
	Start at #0x0824DEE 7 Opcodes for jump
B401	push r0
4801	ldre r0 080700310
b401	push r0
BD00	pop pc
FFFF
08700310
2500
210E
	
	//Jump to 0x8700310
bc01	pop r0
0648	lsl r0, r1, 0x19
0e40	lsr r0, r0, 0x19
6821	ldr r1, [r4, 0x0]
7809	ldrb r1, [r1, 0x0]	//Loads UID
b40d	push r0, r2, r3
4a09	ldre r2, 08619670	//Loads Pointer to table of "Large Units"
1852	add r2, r2, r1
7812	ldrb r2, [r2, 0x0]
2164	mov r1, 0x64
0000
1a08	sub r0, r1, r0		//Creates the 100 - HP
4350	mul r0, r0, r2		//table has scaling factor of 0xA for large units, 0x0 for normal units
2119	mov r1, 0x19		//Divisor of 25
df06	swi $0x6
1c01	mov r1, r0
bc0d	pop r0, r2, r3
1840	add r0, r0, r1
	//IS Original Code 
3801	sub r0, 0x1
210a	mov r1, 0xa
DF06	swi 6		//fo65fe59 bl 808AAAC	(swi $06)
1c45	add r5, r0, r1
4802	ldr r0, 08700070
b401	push r0
bd00	pop pc
FFFF
08619670	//Pointer to location of Large Units
08700070

New damage formula (Divide by Terrain Defence, Divide by Inherent Defence) (This is the actual damage formula...not the display formula)
	08024D0E
1809 -> 0001	lsl r0, r1, 0x0 (Creates Terrain defence at +0x6 and inherent defence at +0xe)

	080249FE
2810 -> 2800 (Allows Air units to get Terrain Bonuses...only to be taken away later! Nyahaha!)

Jump Code for routine.
Damage Formula: 08024E34
4801	ldre r0, 0x?? [08700370]
b401	push r0
bd00	pop pc
0000
087000370 //Address to jump to

	//r6 = Defender
	//r4 = Attacker

	//Inherent Defence
7bb1	ldrb r1, [r6, 0xe]
2064	mov r0, 0x64
1a09	sub r1, r1, r0		//removes base 100 defence
7eb0	ldrb r0, [r6, 0x1A] //loads charge%
4348	mul r0, r0, r1
2164	mov r1, 0x64
b408	push r3
df06	swi $0x6	//Fractionalises by charge%
bc08	pop r3
2164	mov r1, 0x64	//adds back in base 100 defence
1841	add r1, r0, r1
b402	push r1
	//Terrain Defence Bonus
6831	ldr r1, r6, 0x0	 //Load defending unit's pointer
7809	ldrb r1, [r1, 0x0] //loads unit ID
	//Code to check whether unit is flying type woo.
4814	ldre r0, [pointer] //Table of unit's flying status 1 = land, 0 = flying 08619690
1840	add r0, r0, r1
7800	ldrb r0, [r0, 0x0]

79b1	ldrb r1, [r6, 0x6]
4348	mul r1, r0 //modifies terrain bonus to = 0 for flyers
6830	ldr r0, [r6, 0x0]

7800	ldrb r0, [r1, 0x4] //Load unit's HP
0640	lsl r0, r0, 0x19
0e40	lsr r0, r0, 0x19 //cuts off fuel bits
3801	sub r0, 0x1	//Prepares HP for correct division
b40a	push r1, r3	//Saves current terrain status
210a	mov r1, 0xA
DF06	swi $0x6
3001	add r0, 0x1 //Display HP in r0 now
bc0a 	pop r1, r3
4348	mul r0, r1 //Multiplies terrain defence by HP
210a	mov r1, 0xa//Multiplies by HP and divides by 10. Terrain defence total in R0
b408	push r3
df06	swi 6
bc08	pop r3
bc02	pop r1			//Pops inherent defence into r1
1801	add r0, r1, r0		//Adds terrain and inherent.
b401	push r0			//saves total in the stack

	//Defence Veterancy Bonus
6831	ldr r1, [r6, 0x0]
7849	ldrb r1, [r1, 0x1]
0989	lsr r1, r1, 0x6	//Loads veterancy into r1
480a	ldre r0, //Veterancy Defence values 08619594
1840	add r0, r0, r1
7801	ldrb r1, [r0]
bc01	pop r0
1841	add r1, r0, r1	//Adds veterancy defence bonus
	//the big divide
8aa0	ldrh r0, [r4, 0x14]
2764	mov r7, 0x64
4378	mul r0, r7
1c39	mov r1, r7
df06	swi $06
	//returns finalised value. Phew
8270	strh r0,  [r6, 0x12] //Stores the value in it's rightful spot.
	//original IS Routine from here!
6831	
7909
0649
0e49
1a09
8131
bcf0
bc01
4700
//Pointers
08619690
08619594

Disp. Damage Formula: 08024E04 (change 08700070 to 08700400)
The almost (but not quite) identical code for the display formula that really should be done in a subroutine.
	//Inherent Defence
7bb1	ldrb r1, [r6, 0xe]
2064	mov r0, 0x64
1a09	sub r1, r1, r0		//removes base 100 defence
7eb0	ldrb r0, [r6, 0x1A] //loads charge%
4348	mul r0, r0, r1
2164	mov r1, 0x64
b408	push r3
df06	swi $0x6	//Fractionalises by charge%
bc08	pop r3
2164	mov r1, 0x64	//adds back in base 100 defence
1841	add r1, r0, r1
b402	push r1
	//Terrain Defence Bonus
6831	ldr r1, r6, 0x0	 //Load defending unit's pointer
7809	ldrb r1, [r1, 0x0] //loads unit ID
	//Code to check whether unit is flying type woo.
4816	ldre r0, [pointer] //Table of unit's flying status 1 = land, 0 = flying 08619690
1840	add r0, r0, r1
7800	ldrb r0, [r0, 0x0]
79b1	ldrb r1, [r6, 0x6]
4348	mul r1, r0 //modifies terrain bonus to = 0 for flyers
6830	ldr r0, [r6, 0x0]
7800	ldrb r0, [r1, 0x4] //Load unit's HP
0640	lsl r0, r0, 0x19
0e40	lsr r0, r0, 0x19 //cuts off fuel bits
3801	sub r0, 0x1	//Prepares HP for correct division
b40a	push r1, r3	//Saves current terrain status
210a	mov r1, 0xA
DF06	swi $0x6
3001	add r0, 0x1 //Display HP in r0 now
bc0a 	pop r1, r3
4348	mul r0, r1 //Multiplies terrain defence by HP
210a	mov r1, 0xa//Multiplies by HP and divides by 10. Terrain defence total in R0
b408	push r3
df06	swi 6
bc08	pop r3
bc02	pop r1			//Pops inherent defence into r1
1801	add r0, r1, r0		//Adds terrain and inherent.
b401	push r0			//saves total in the stack
	//Defence Veterancy Bonus
6831	ldr r1, [r6, 0x0]
7849	ldrb r1, [r1, 0x1]
0989	lsr r1, r1, 0x6	//Loads veterancy into r1
480a	ldre r0, //Veterancy Defence values 08619594
1840	add r0, r0, r1
7801	ldrb r1, [r0]
bc01	pop r0
1841	add r1, r0, r1	//Adds veterancy defence bonus
	//the big divide
8aa0	ldrh r0, [r4, 0x14]
2764	mov r7, 0x64
4378	mul r0, r7
1c39	mov r1, r7
df06	swi $06
	//returns finalised value. Phew
82E0	strh r0,  [r4, 0x16] //Stores the value in it's rightful spot.
	//original IS Routine from here!
4801	ldre r2 [08024e16]
b402	push r2
bd00	pop pc
08024E16
0000
0000
0000
0000
//Pointers
08619690
08619594

0802B4AE - Loads number for display damage
8AD2 ldrh r2, [r2, 0x16]

Apply Veterancy on Kill routine
0804018C
	push r4, r14
	mov r4, r0
	ldr r0, 0x849fb44
	mov r1, 0x3

0804018C //Use R1 for jump
4904	ldr r1, 08700490
b402	push r1
bd00	pop pc
	mov r1, 0x3
	(original routine)

080401a0
	08700490

08700490
b40d	push r0, r2, r3
1c28	mov r0, r5
2140	mov r1, 0x40	//Compares if the last byte is B0 or D0
4001	and r1, r0
2900	cmp r1, 0x0
d101	bne
3020	add r0, 0x20 //Creates address for other unit
e000	b
3820	sub r0, 0x20 //creates the address for other unit
6800	ldr r0, [r0]
7841	ldrb r1, [r0,0x1]
098a	lsr r2, r1, 0x6
3201	add r2, 0x1
2a03	cmp r2, 0x3
dd00	ble
2203	mov r2, 0x3	//Prevents veterancy from reaching higher than 3
0192	lsl r2, r2, 0x6
223f	mov r3, 0x3f	//Bitmask
4019	and r1, r3
4311	orr r1, r2
7041	strb r1, [r0, 0x1]
bc0d	pop r0, r2, r3
b510	push r4, r14
1c04	mov r4, r0
0000	nop
4801	ldr r0 = 0849fb44
4902	ldr r1 = 08040192 //return point
b402	push r2
bd00	pop r0
	0849FB44
	08040192

Temp change to display Vet Status in Info Window (HP)
0802ae3e
7861	ldrb r1, [r4, 0x1]
xxxx
xxxx
xxxx
E00D	b

0802AE64
098A	lsr r2, r1, 0x6

Change to load CO Stats on a per unit basis.

4 almost identical subroutines with nested subroutines

08043120	Defence
B5F0
4F10	ldr r7, #baseaddress
4C10
2308	mov r3, 0x8
4353
264E	mov r6, 0x4E	//Length to have stats for one of each unit + 2 CO Powers
4346	mul r6, r0
199E	add r6, r3, r6
010D
186D
00AD
231A	mov r3, 0x1A 	//Length of block for each power state
0184
1824
00A4
4343	mul r3, r0
480A
199E	add r6, r3, r6
19F7	add r7, r7, r7
1C10
F000F8CA
0080
1940
1900
4906
1840
6801
4805
7A00
2800
D109
2000
E012
08710000	//Base Pointer
085D3FC0
03003FC0
7E30
2800
0000	nop

Base Pointer 08619750	

Joining Units Fix

Jump from 08042B65
Original code
BC18	pop r3, r4
4698	mov r8, r3
46A1	mov r9, r4
BCF0	pop {r4-r7}
BC01	pop r0
4700	bx r0

Jump to 087004E0
Jump Code
4c01	ldr r4 = 087004E0
b410	push r4
bd00	pop pc
087004E0

785c	ldrb r4, [r3, 0x1]
09a6	lsr r6, r4, 0x6
2e03	cmp r6, 0x3
d008	beq #
787d	ldrb r5, [r7, 0x1]
09ad	lsr r5, r5, 0x6
42ae	cmp r6, r5
dc04	bgt #	//If the joinee has more vet than the joiner, don't jump
01ad	lsl r5, r5, 0x6
263F	mov r6, 0x3f
4034	and r4, r6
432c	orr r4, r5
705c	strb r4, [r3, 0x1]
	#
bc18
4698
46a1
bcf0
bc01
4700

Repaired Units get 80% Costs
Use the Get final cost subroutine. R0 and R3 contains the cost, routines use the R0 output - modify the R3 output and modify the output for the repair routine.

Also modify R0's cost to scale with unit numbers. Unit ID is in R5

Start 0x08042CC0
4901	ldr r1, 0x08700520
b402	push r1
bd00	pop pc
0000
08700520

Replaced Code:
	add r0, 0x64
	mul r0, r6
	mov r1, 0x64
	bl 808aaac (swi 6)
	pop r4-r6
	pop r1
	bx r1

080700520
3064	add r0, 0x64
4370	mul r0, r6
2164	mov r1, 0x64
df06	swi 6
b401	push r0
2164	mov r1, 0x64
4348	mul r0, r1
3119	add r1, 0x19
df06	swi 6
1c03	mov r3, r0	//80% Price for repairs is in r3
bc01	pop r0
		
b41e	push r1-r4	//Start scaling based on unit count and whatnot
4917	ldr r1 = 0x030033EC //Loads current player turn
7809	ldrb r1, [r1]
b402	push r1			//saves a copy for later
22c0	mov r2, 0xc0
0092	lsl r2, r2, 0x2
434A	mul r2, r1
4915	ldr r1 = 02022390 //Base unit address
1889	add r1, r1, r2
2400	mov r4, 0x0
2300	mov r3, 0x0
2200	mov r2, 0x0		//Now we've set up the loop

	Loop Tiem
	@
780a	ldrb r2, [r1]		//Loads Unit into r2
42aa	cmp r2, r5		//Compares the unit with the one being priced
d100	bne b #1
3401	add r4, 0x1		//Increments the counter for units matching the type
3301	add r3, 0x1		//increments the units compared
310c	add r1, 0xc		//moves to next unit
2b34	cmp r3, 0x34		
dbf7	blt @			//Jumps after all 50 units have been compared
4910	ldr r1,	= 085d5abc	//loads base unit offset in r1
225c	mov r2, 0x5c
436a	mul r2, r5
1889	add r1, r2
7b0b	ldrb r3, [r1, 0xC]	//Loads vision stat which is being appropriated as efficiency
bc02	pop r1			//Pops Current player turn into r1.
223c	mov r2, 0x3C
4351	mul r1, r2
4a0d	ldr r2	= 02023284	//Loads base current player data address
1889	add r1, r1, r2
7f8a	ldrb r2, [r1, 0x1E]
7f49	ldrb r1, [r1, 0x1D]
b418	push r3, r4
2320	mov r3, 0x20		//Length of array
435a	mul r2, r3
005B	lsl r3, r3, 0x1
434b	mul r2, r3
490a	ldr r1	= 0861c5B0	//Address of base increase majiggys for each CO
18c9	add r1, r1, r3
1889	add r1, r1, r2
5d49	ldrb r1, [r1, r5]	//Loads the address for that particular unit.
bc18	pop r3, r4
	
	Okay, set up is complete. CO Specified efficiency in r1, Unit base efficiency in r3, total counts of unit in r4.
4359	mul r1, r3
4361	mul r1, r4
1840	add r0, r0, r1		//Updated prices in r0, with scaling.
bc1e	pop r1-r4
bc70	pop r4-r6
bc02	pop r1
4708	bx r1
030033EC
02022390
085d5abc
02023284
0861c5B0

Subroutine now outputs increased prices in r0, flat price in r3

Repairing is always base cost:
08029B1E
0418	lsl r0, r3 0x10

Joining is always base cost:
08042A48
4359	mul r1, r3

4710
5500

08042EDC
Original Code:

Capture Ability is scaled by charge.
Start from 08042EEA

Original Code:
4a07	ldr r2 = 085d3dd0
0119	lsl r1, r3, 0x4
18c9	add r1, r1, r3
01a0	lsl r0, r4, 0x6
1900	add r0, r0, r4
1840	add r0, r0, r1
0080	lsl r0, r0, 0x2
1880	add r0, r0, r2
304E	add r0, 0x4e
2100	mov r1, 0x0
5e40	lsdh r0, [r0, r1]
3063	add r0, 0x64
	b 8042F0E

Custom code :o

4a01	ldr r2 = 0870005C0
b404	push r2
bd00	pop pc
	0870005C0

0870005C0
4a14	ldr r2 = 085d3dd0
0119	lsl r1, r3, 0x4
18c9	add r1, r1, r3
01a0	lsl r0, r4, 0x6
1900	add r0, r0, r4
1840	add r0, r0, r1
0080	lsl r0, r0, 0x2
1880	add r0, r0, r2
	add r0, r0, r7
2100	mov r1, 0x0
5e40	lsdh r0, [r0, r1]
	nop
b41e	push r1-r4
490F	ldr r1, 030033ec
7809	ldrb r1, [r1]
223c	mov r2, 0x3c
4351	mul r1, r2
4a0e	ldr r2, 02023284
1889	add r1, r1, r2
7f8a	ldrb r2, [r1, 0x1e] //Loads CO Power Status
6a0b	ldr r3, [r1, 0x20] //Loads COP Charge
7f49	ldrb r1, [r1, 0x1d]	//loads CO ID
2a00	cmp r2, 0x0
d10B	bne ->		//Avoids doing all the calculating if COP is set, just do at 100%.
4a0b	ldr 085d3de0
2482	mov r4, 0x82
0064	lsl r4, r4, 0x1
434c	mul r4, r1
1912	add r2, r2, r4
6812	ldr r2, [r2]
4c09	ldr r4 = 080441d0	//Loads star costs
7824	ldrb r4, [r4]
4362	mul r2, r4
4358	mul r0, r3
1c11	mov r1, r2
df06	swi 6
bc1e	pop {r1-r4}
3064	add r0, 0x64
4c04	ldr r4 = 08042F0E
b410	push r4
bd00	pop pc
085d3dd0
030033ec
02023284
085d3de0
080441d0
08042F0E

RE-ATTEMPT At new charge system.
08041CBE
2101	mov r1, 0x1 (Instead of Mov r1, 0x2 - divisor for the attacker.)

08041ca8
2501	mov r5, 0x1

08041cb4
2600	mov r6, 0x0	//Nullifies any charge that would be gained from the defender harming the attacker.

08041cbc
2000	mov r0, 0x0

08041cc6
2400	mov r4, 0x0	//Nullifies the charge in any of the registers for the defender.

08041CA4
46c0	nop		//Nullifies the cash multiplier effect.

080441d0
14			//Star Capacity of 20 HP

080441a6
46c0	nop	//Nops the cost increasing code. Cost is always 100%
2164	mov r1, 0x64	//Moves the cost to be 100% at all times.

Luck Total is scaled by charge
Start from 08042E2C

Original Code:
4a07	ldr r2 = 085d3dd0
0119	lsl r1, r3, 0x4
18c9	add r1, r1, r3
01a0	lsl r0, r4, 0x6
1900	add r0, r0, r4
1840	add r0, r0, r1
0080	lsl r0, r0, 0x2
1880	add r0, r0, r2
304E	add r0, 0x4e
2100	mov r1, 0x0
5e40	lsdh r0, [r0, r1]
3063	add r0, 0x64
	b 8042F0E

Custom code :o

4a01	ldr r2 = 0870005C0
b404	push r2
bd00	pop pc
	087000640

0870005C0
4a14	ldr r2 = 085d3dd0
0119	lsl r1, r3, 0x4
18c9	add r1, r1, r3
01a0	lsl r0, r4, 0x6
1900	add r0, r0, r4
1840	add r0, r0, r1
0080	lsl r0, r0, 0x2
1880	add r0, r0, r2
19c0	add r0, r0, r7
2100	mov r1, 0x0
5e40	lsdh r0, [r0, r1]
	nop
b41e	push r1-r4
490F	ldr r1, 030033ec
7809	ldrb r1, [r1]
223c	mov r2, 0x3c
4351	mul r1, r2
4a0e	ldr r2, 02023284
1889	add r1, r1, r2
7f8a	ldrb r2, [r1, 0x1e] //Loads CO Power Status
6a0b	ldr r3, [r1, 0x20] //Loads COP Charge
7f49	ldrb r1, [r1, 0x1d]	//loads CO ID
2a00	cmp r2, 0x0
d10B	bne ->		//Avoids doing all the calculating if COP is set, just do at 100%.
4a0b	ldr 085d3de0
2482	mov r4, 0x82
0064	lsl r4, r4, 0x1
434c	mul r4, r1
1912	add r2, r2, r4
6812	ldr r2, [r2]
4c09	ldr r4 = 080441d0	//Loads star costs
7824	ldrb r4, [r4]
4362	mul r2, r4
4358	mul r0, r3
1c11	mov r1, r2
df06	swi 6
bc1e	pop {r1-r4}
4770	bx lr
4c04	ldr r4 = 08042F0E
b410	push r4
bd00	pop pc
085d3dd0
030033ec
02023284
085d3de0
080441d0
08042F0E

Subroutine creation!
Jump:
	
467a	mov r2, pc
b404	push r2		//Saves PC in the stack
b480	push r7		//Saves the contents of r7
27nn	mov r7, 0xn	//saves the variable in r7 +Luck = 46, -Luck = 48, Cap = 4E, Counter = 4a, cost 4c
4a01	ldr r2 = 08700640
b404	push r2
bd00	pop pc
	08700640
30nn	add r0, 0xn	//Adds needed adding	(08042f00)

	//Need to save Program counter, link register

b500	push lr
f7ff
ffbd	bl 087005c0	//Branches to the subroutine
bc10	pop r4
46a6	mov lr, r4	//Restores the link register
bc80	pop r7		//restores R7
bc10	pop r4		//holds program counter
3411	add r4, 0x11	//Adds difference between jump point and the PC
4720	bx r4

change add r0, 0x4n to add r0, r0, r7
change add r0, 0x64 to bx lr

Transport Pointer Stuff
080422A8
->
	08025F76
		-08025F8A (Loads the transport pointer)
		-Appears to check whether there is a transport pointer at all (Eg, can it load units at all) then checks if that unit that is attempted to be loaded is allowed.
		-Then checks the capacity of the transport (Can it carry 2? Can it carry 1?)

	This entire function can be copypasta'd with few minor additions to create the new function.
	Jump code:
4b01	ldr r3 = 08700670
b408	push r3
bd00	pop pc
	08700670

	landing code:
1c03	mov r3, r0
0609	lsl r1, r1, 0x18
0e0c	lsr r4, r1, 0x18
490a	ldr r1 = 085d5abc
781a	ldrb r2, [r3]
205C	mov r0, 0x5c
4350	mul r0, r2
3114	add r1, 0x14
1840	add r0, r0, r1 //Custom code in here.

b404	push r2
4905	ldr r1, 030033ec
7809	ldrb r1, [r1]
223c	mov r2, 0x3c
4351	mul r1, r2
4a0e	ldr r2, 02023284
1889	add r1, r1, r2
7f49	ldrb r1, [r1, 0x1d]	//loads CO ID
0089	lsl r1, r1, 0x3
6800	ldr r0, [r0]
1840	add r0, r0, r1
bc04	pop r2
4904	ldr r1 = 08025f88 //return address
b402	push r1
bd00	pop pc
	085d5abc
	030033ec
	02023284
	08025f88

0804230A
	-Checks whether loading is allowed on this terrain
	0804230A
4a01	ldr r2 = 087006C0
b404	push r2
bd00	pop pc
	087006c0

Landing Code
7832	ldrb r2, [r6]
205c	mov r0, 0x5c
4350	mul r0, r2
3114	add r1, 0x14
1840	add r0, r0, r1
490F	ldr r1, 030033ec
7809	ldrb r1, [r1]
223c	mov r2, 0x3c
4351	mul r1, r2
4a0e	ldr r2, 02023284
1889	add r1, r1, r2
7f49	ldrb r1, [r1, 0x1d]	//loads CO ID
0089	lsl r1, r1, 0x3
6800	ldr r0, [r0]
1840	add r0, r0, r1
bc04	pop r2
4904	ldr r1 = 08025f88 //return address
b402	push r1
bd00	pop pc
030033ec
02023284
08042314

	080421D6
783c	ldrb r4, [r7]
205C	mov r0, 0x5c
4360	mul r0, r4
3314	add r3, 0x14
18c0	add r0, r0, r3
6804	//ldr r4, [r0]

	//Return address in R4
	//New transport pointer in r0
	//Return address of 080421e0

	080421D6
4801	ldr r0 = 08700710
b401	push r0
bd00	pop pc
	08700710

	08700710
783c	ldrb r4, [r7]
205C	mov r0, 0x5c
4360	mul r0, r4
3314	add r3, 0x14
18c0	add r0, r0, r3
6804	//ldr r4, [r0]
b406	Push {r1, r2}
4907	ldr r1, 030033ec
7809	ldrb r1, [r1]
223c	mov r2, 0x3c
4351	mul r1, r2
4a06	ldr r2, 02023284
1889	add r1, r1, r2
7f49	ldrb r1, [r1, 0x1d]	//loads CO ID
0089	lsl r1, r1, 0x3
6800	ldr r0, [r0]
1840	add r0, r0, r1
bc06	pop {r1,r2}
4c03	ldr r4 = 080421e0 //return address
b410	push r4
bd00	pop pc
0000
030033ec
02023284
080421E0

	08042242
	-Appears to check if unloading is allowed. Can use exact same code as 08421D6 Jump to 08700760
4801	ldr r0 = 08700760
b401	push r0
bd00	pop pc
	08700760

	08700760
783c	ldrb r4, [r7]
205C	mov r0, 0x5c
4360	mul r0, r4
3314	add r3, 0x14
18c0	add r0, r0, r3
6804	//ldr r4, [r0]
b406	push {r1, r2}
4907	ldr r1, 030033ec
7809	ldrb r1, [r1]
223c	mov r2, 0x3c
4351	mul r1, r2
4a06	ldr r2, 02023284
1889	add r1, r1, r2
7f49	ldrb r1, [r1, 0x1d]	//loads CO ID
0089	lsl r1, r1, 0x3
6800	ldr r0, [r0]
1840	add r0, r0, r1
bc06	pop {r1,r2}
4c03	ldr r1 = 080421e0 //return address
b410	push r1
bd00	pop pc
0000
030033ec
02023284
0804224C

	0802709E
	-Compares on end turn for FoW/Transport info hiding - Just checks whether there is a pointer or not.
	-Don't need to change this
	
	0861CA40 //Nullpointer
	0861CAA0 //APC
	0861CB00 //T-Copter
	0861CB60 //Lander
	0861CBB0 //Cruiser

Transports displaying hidden units always
0802709E
2800 cmp r0, 0x0
D008 beq 270b4
2001 mov r0, 0x1
E007 b 270b6

Fix:
6800 ldr r0 [r0]
2800 cmp r0, 0x0
D007 beq 270b4
2001 mov r0, 0x1
E006 b 270b6

Fixed Map Editor Code (No more disappearing units)
086FFF00

086FFF08 
E00A B
2500
E000

086FFF20 
4D02 ldr r5
882D ldrh r5, [r5]
2d00 cmp r5, 0x0
d000 beq
E7F1 b
E7EE b
03004080

08000EB0 2300 mov r3, 0x0 (was mov r3, 0x1) - Sets map editor to day 0 instead of day 1 by default.

First read of date after units have been placed is 087000E6

Error at 08700114 - Max funds capped at 992063 instead of 999999 (Woo Typos)

Can jump to 08700230 and back? Yes!

Modify:
08021550
8002 strh r2, [r0] to 6005 str r5, [r0]

087000E4
E0A4 b 08700230
46C0 nop

08700230
b401
8850
2800
d104
8810
2800
d101
2001
8010
bc01
8812
2a01
e74e

08000EB8
7003
061B

08000ED8
6003

Units can move and shoot:
Players Only!
Change 0802cAC6
ldr r0, [r0, 0x8] to ldr r0, [r0, 0x11]
-Range display bit now controls whether the unit can move and fire.

0802E3A2 //Checks if a unit is a ranged unit then applies
2E00	cmp r6, 0x0
d001	beq
469a	mov r10, r3
e00a	b 0802e3c0
4682	mov r10, r0
2800	cmp r0, 0x0

Will need a new system for mobile indirects longer range. 080203204 and subroutine 0801F4B4 will need looking at.

08025EC4
-New wait system for transported units.

08025ECC - nop //All units are unset from wait even in transports.

087007B0 - Set units in transports to wait, unless transport can launch.

0861CC30 - base pointer of pointers

B40F
7860
2110
4008
2800
D032
203C
4A0C
8812
490C
4350
1841
7F48
0080
490B
23C0
009B
4353
1859
4A08
1882
6812
7820
5C10
79E2
E00D

STUFF AT 087007F0
030033EC
02023284
0861CC40
02022384
2A00
D005
230C
435A
188A
7853
4303
7053

7A22
2a00
D005
230C
435A
188A
7853
4303
7053
BC0F
B402
BD00

08700218
	E2CA B - Hijacks a previous routine I made and jumps to the new one.

08700850 //Routine for powerbar drip filling.

Old code overwritten for jump:
80267b4
	ldr r1 = 03004084
	ldr r5 = 8090a74
	ldr r6, [r5]
	ldrh r2, [r6]
	lsl r0, r2, 0x5
	strh r0, [r1]

jumpback 080267c0

08700850 B40F     push    {r0-r3}                                      ;22
08700852 481F     ldr     r0,=#0x30033EC                               ;9
08700854 7801     ldrb    r1,[r0]                                      ;4
08700856 203C     mov     r0,#0x3C                                     ;2
08700858 4348     mul     r0,r1                                        ;6
0870085A 491E     ldr     r1,=#0x2023284                               ;9
0870085C 1840     add     r0,r0,r1                                     ;2
0870085E 7F41     ldrb    r1,[r0,#0x1D]                                ;4
08700860 4A1D     ldr     r2,=#0x85D3DE0                               ;9
08700862 2382     mov     r3,#0x82                                     ;2
08700864 005B     lsl     r3,r3,#0x1                                   ;2
08700866 434B     mul     r3,r1                                        ;3
08700868 18D2     add     r2,r2,r3                                     ;2
0870086A 6811     ldr     r1,[r2]                                      ;4
0870086C 4A1B     ldr     r2,=#0x80441D0                               ;9
0870086E 6812     ldr     r2,[r2]                                      ;4
08700870 4351     mul     r1,r2                                        ;6
08700872 6A02     ldr     r2,[r0,#0x20]                                ;4
08700874 3205     add     r2,#0x5                                      ;2
08700876 428A     cmp     r2,r1                                        ;2
08700878 DA01     bge     #0x870087E                                   ;8
0870087A 6202     str     r2,[r0,#0x20]                                ;5
0870087C E000     b       #0x8700880                                   ;8
0870087E 6201     str     r1,[r0,#0x20]                                ;5
08700880 BC0F     pop     {r0-r3}                                      ;7
08700882 4904     ldr     r1,=#0x3004084                               ;9
08700884 4D04     ldr     r5,=#0x8090A74                               ;9
08700886 682E     ldr     r6,[r5]                                      ;4
08700888 8832     ldrh    r2,[r6]                                      ;4
0870088A 0150     lsl     r0,r2,#0x5                                   ;2
0870088C 8008     strh    r0,[r1]                                      ;5
0870088E 4903     ldr     r1,=#0x80267C0                               ;9
08700890 B402     push    {r1}                                         ;10
08700892 BD00     pop     {r15}                                        ;15
	The rest are just pointers.

08700894 4084     lsl     r4,r0                                        ;3
08700896 0300     lsl     r0,r0,#0xC                                   ;2
08700898 0A74     lsr     r4,r6,#0x9                                   ;2
0870089A 0809     lsr     r1,r1,#0x20                                  ;2
0870089C 67C0     str     r0,[r0,#0x7C]                                ;5
0870089E 0802     lsr     r2,r0,#0x20                                  ;2

Subs Dived lose movement blah
Old:
08042D40
add r4, r4, r0
mov r0, r4
pop r4-r6
pop r1
bx r1

New:
@08042D40
4901	ldr r1 = 08700900
b402	push r1
bd00	pop pc
0000
08700900

@08700900
08700900 1824     add     r4,r4,r0                                     ;2
08700902 1C20     mov     r0,r4                                        ;2
08700904 BC70     pop     {r4-r6}                                      ;6
08700906 7831     ldrb    r1,[r6]                                      ;4
08700908 2918     cmp     r1,#0x18                                     ;2
0870090A D108     bne     #0x870091E                                   ;8
0870090C 7871     ldrb    r1,[r6,#0x1]                                 ;4
0870090E 0689     lsl     r1,r1,#0x1A                                  ;2
08700910 0FC9     lsr     r1,r1,#0x1F                                  ;2
08700912 2900     cmp     r1,#0x0                                      ;2
08700914 D003     beq     #0x870091E                                   ;8
08700916 3802     sub     r0,#0x2                                      ;2
08700918 2800     cmp     r0,#0x0                                      ;2
0870091A DA00     bge     #0x870091E                                   ;8
0870091C 2000     mov     r0,#0x0                                      ;2
0870091E BC02     pop     {r1}                                         ;9

Disabling Weather-specific pointers
0801F8CA - ldrb r3, [r3] to mov r3, 0x0 (2300)
080388C2 - ldrb r4, r4 to mov r4, 0x0 (2400)
08038E46 - ldrb r4, r4 to mov r4, 0x0
08038778 - mov r3, 0x0 (2300)
080244AC - mov r0, 0x0
080467B2 - mov r3, 0x0
0804683A - mov r3, 0x0
08046c1c - mov r3, 0x0

EMP Silos
0802617C -	79A1 	ldrb r1, [r4, 0x6]
		2080	mov r0, 0x80
		4301	orr r1, r0
		46C0	nop
		46C0	nop
		46C0	nop
		71A1	strb r1, [r4, 0x6]

Updated Code - Takes into account vision bonuses on Cost increases:
08700576 E1DB     b       #0x8700930                                   ;8

08700930 B40F     push    {r0-r3}                                      ;22
08700932 480A     ldr     r0,=#0x8700941                               ;9
08700934 B401     push    {r0}                                         ;10
08700936 B410     push    {r4}                                         ;10
08700938 1C08     mov     r0,r1                                        ;2
0870093A 1C11     mov     r1,r2                                        ;2
0870093C 4A06     ldr     r2,=#0x80432AB                               ;9
0870093E 4710     bx      r2                                           ;8
08700940 9903     ldr     r1,[sp,#0xC]                                 ;4
08700942 2900     cmp     r1,#0x0                                      ;2
08700944 D001     beq     #0x870094A                                   ;8
08700946 1841     add     r1,r0,r1                                     ;2
08700948 9103     str     r1,[sp,#0xC]                                 ;5
0870094A BC0F     pop     {r0-r3}                                      ;7
0870094C B418     push    {r3,r4}                                      ;6
0870094E E613     b       #0x8700578                                   ;8
08700950 FFFFFFFF ????                                                 ;10
08700952 FFFFFFFF ????                                                 ;10
08700954 FFFFFFFF ????                                                 ;10
08700956 FFFF32AB ????                                                 ;10
08700958 32AB     add     r2,#0xAB                                     ;2
0870095A 0804     lsr     r4,r0,#0x20                                  ;2
0870095C 0941     lsr     r1,r0,#0x5                                   ;2
0870095E 0870     lsr     r0,r6,#0x1                                   ;2

Dread Hammer Code - Stuns any unit hit by meteor
080448AC E00E     b       #0x80448CC                                   ;8

080448CE 79A1     ldrb    r1,[r4,#0x6]                                 ;6
080448D0 2080     mov     r0,#0x80                                     ;2
080448D2 4301     orr     r1,r0                                        ;2
080448D4 46C0     nop                                                  ;2
080448D6 46C0     nop                                                  ;2
080448D8 46C0     nop                                                  ;2
080448DA 46C0     nop                                                  ;2
080448DC 71A1     strb    r1,[r4,#0x6]                                 ;7

Dread Hammer/Other Stun Consistency Check - Removes stuns that didn't activate on that turn
08025EBA 6838     ldr     r0,[r7]                                      ;9
08025EBC 1901     add     r1,r0,r4                                     ;2
08025EBE 4801     ldr     r0,=#0x8700981                               ;9
08025EC0 4700     bx      r0                                           ;8
08025EC2 FFFF0981 ????                                                 ;10
08025EC4 0981     lsr     r1,r0,#0x6                                   ;2
08025EC6 0870     lsr     r0,r6,#0x1                                   ;2

0870097C 6838     ldr     r0,[r7]                                      ;9
0870097E 1901     add     r1,r0,r4                                     ;2
08700980 7808     ldrb    r0,[r1]                                      ;6
08700982 2800     cmp     r0,#0x0                                      ;2
08700984 D007     beq     #0x8700996                                   ;8
08700986 784A     ldrb    r2,[r1,#0x1]                                 ;6
08700988 1C28     mov     r0,r5                                        ;2
0870098A 4010     and     r0,r2                                        ;2
0870098C 2800     cmp     r0,#0x0                                      ;2
0870098E 0000     lsl     r0,r0,#0x0                                   ;2
08700990 20FE     mov     r0,#0xFE                                     ;2
08700992 4010     and     r0,r2                                        ;2
08700994 7048     strb    r0,[r1,#0x1]                                 ;7
08700996 7988     ldrb    r0,[r1,#0x6]                                 ;6
08700998 227F     mov     r2,#0x7F                                     ;2
0870099A 4010     and     r0,r2                                        ;2
0870099C 7188     strb    r0,[r1,#0x6]                                 ;7
0870099E 340C     add     r4,#0xC                                      ;2
087009A0 3301     add     r3,#0x1                                      ;2
087009A2 8830     ldrh    r0,[r6]                                      ;4
087009A4 3033     add     r0,#0x33                                     ;2
087009A6 4283     cmp     r3,r0                                        ;2
087009A8 DBE8     blt     #0x870097C                                   ;8
087009AA BCF0     pop     {r4-r7}                                      ;21
087009AC BC01     pop     {r0}                                         ;9
087009AE 4700     bx      r0                                           ;8

Dread Hammer Allow Stun Units to be Supplied
0802A040 2008     mov     r0, #0x8

Forged Steel COP
Fix for self heal in hack
08044E84 1C38     mov     r0, r7

Upgrades units and only animates on tanks
08044E94 D02B     beq     #0x8044EEE                                   ;8
08044E96 7821     ldrb    r1,[r4]                                      ;4
08044E98 2905     cmp     r1,#0x5                                      ;2
08044E9A D102     bne     #0x8044EA2                                   ;8
08044E9C 2103     mov     r1,#0x3                                      ;2
08044E9E 7021     strb    r1,[r4]                                      ;5
08044EA0 E01C     b       #0x8044EDC                                   ;8
08044EA2 2903     cmp     r1,#0x3                                      ;2
08044EA4 D102     bne     #0x8044EAC                                   ;8
08044EA6 2108     mov     r1,#0x8                                      ;2
08044EA8 7021     strb    r1,[r4]                                      ;5
08044EAA E017     b       #0x8044EDC                                   ;8
08044EAC E01F     b       #0x8044EEE                                   ;8

Alters Black Wave to only "Heal" units.
08044D06 2401     mov     r4,#0x1                                      ;2
08044D08 9401     str     r4,[sp,#0x4]                                 ;5
08044D0A 3C02     sub     r4,#0x2                                      ;2
08044D0C 9402     str     r4,[sp,#0x8]                                 ;5
08044D0E 2400     mov     r4,#0x0                                      ;2
08044D10 9400     str     r4,[sp]                                      ;5
08044D12 9403     str     r4,[sp,#0xC]                                 ;5
08044D14 9004     str     r0,[sp,#0x10]                                ;5

Insurrection (Winter Fury Mod)
08044FFC 7965     ldrb    r5,[r4,#0x5]                                 ;4
08044FFE 2607     mov     r6,#0x7                                      ;2
08045000 402E     and     r6,r5                                        ;2
08045002 42AE     cmp     r6,r5                                        ;2
08045004 D02B     beq     #0x804505E                                   ;8
08045006 7166     strb    r6,[r4,#0x5]                                 ;5
08045008 E014     b       #0x8045034                                   ;8

08044C52 2401     mov     r4,#0x1                                      ;2
08044C54 9400     str     r4,[sp]                                      ;5
08044C56 2500     mov     r5,#0x0                                      ;2
08044C58 9501     str     r5,[sp,#0x4]                                 ;5
08044C5A 3C02     sub     r4,#0x2                                      ;2
08044C5C 9402     str     r4,[sp,#0x8]                                 ;5
08044C5E 9503     str     r5,[sp,#0xC]                                 ;5
08044C60 9004     str     r0,[sp,#0x10]                                ;5

Fait Accompli CO effect
084A00B0 Pointer 087009C1

087009C0 7841     ldrb    r1,[r0,#0x1]                                 ;4
087009C2 2208     mov     r2,#0x8                                      ;2
087009C4 400A     and     r2,r1                                        ;2
087009C6 2A00     cmp     r2,#0x0                                      ;2
087009C8 D004     beq     #0x87009D4                                   ;8
087009CA 22FE     mov     r2,#0xFE                                     ;2
087009CC 400A     and     r2,r1                                        ;2
087009CE 7042     strb    r2,[r0,#0x1]                                 ;5
087009D0 2001     mov     r0,#0x1                                      ;2
087009D2 4770     bx      r14                                          ;8
087009D4 2210     mov     r2,#0x10                                     ;2
087009D6 400A     and     r2,r1                                        ;2
087009D8 2A00     cmp     r2,#0x0                                      ;2
087009DA D001     beq     #0x87009E0                                   ;8
087009DC 2001     mov     r0,#0x1                                      ;2
087009DE 4770     bx      r14                                          ;8
087009E0 2000     mov     r0,#0x0                                      ;2
087009E2 4770     bx      r14                                          ;8

Phoenix CO Effect
080444EC B510     push    {r4,r14}                                     ;14
080444EE 2102     mov     r1,#0x2                                      ;2
080444F0 2200     mov     r2,#0x0                                      ;2
080444F2 F7E5FB01 bl      #0x8029AF8                                   ;10
080444F6 1C20     mov     r0,r4                                        ;2
080444F8 E00F     b       #0x804451A                                   ;8

Earthshaker CO Effect
Nulls Terrain Defence
08043336 2000     mov     r0, #0x0                                     ;2

Display Formula
08700446 E2D3     b       #0x087009F0

Damage Formula
087003B6 E333     b       #0x08700A20

Terrain Code (Damage and display)
087009F0 B407     push    {r0-r2}                                      ;18
087009F2 4816     ldr     r0,=#0x20232DD                               ;9
087009F4 2200     mov     r2,#0x0                                      ;2
087009F6 7801     ldrb    r1,[r0]                                      ;4
087009F8 290C     cmp     r1,#0xC                                      ;2
087009FA D105     bne     #0x8700A08                                   ;8
087009FC 7841     ldrb    r1,[r0,#0x1]                                 ;4
087009FE 2901     cmp     r1,#0x1                                      ;2
08700A00 D102     bne     #0x8700A08                                   ;8
08700A02 BC07     pop     {r0-r2}                                      ;17
08700A04 1A08     sub     r0,r1,r0                                     ;2
08700A06 E51F     b       #0x8700448                                   ;8
08700A08 2A03     cmp     r2,#0x3                                      ;2
08700A0A DA02     bge     #0x8700A12                                   ;8
08700A0C 303C     add     r0,#0x3C                                     ;2
08700A0E 3201     add     r2,#0x1                                      ;2
08700A10 E7F1     b       #0x87009F6                                   ;8
08700A12 BC07     pop     {r0-r2}                                      ;17
08700A14 1840     add     r0,r0,r1                                     ;2
08700A16 E517     b       #0x8700448                                   ;8
08700A18 FFFFFFFF ????                                                 ;10
08700A1A FFFFFFFF ????                                                 ;10
08700A1C FFFFFFFF ????                                                 ;10
08700A1E FFFFB407 ????                                                 ;10
08700A20 B407     push    {r0-r2}                                      ;18
08700A22 480A     ldr     r0,=#0x20232DD                               ;9
08700A24 2200     mov     r2,#0x0                                      ;2
08700A26 7801     ldrb    r1,[r0]                                      ;4
08700A28 290C     cmp     r1,#0xC                                      ;2
08700A2A D105     bne     #0x8700A38                                   ;8
08700A2C 7841     ldrb    r1,[r0,#0x1]                                 ;4
08700A2E 2901     cmp     r1,#0x1                                      ;2
08700A30 D102     bne     #0x8700A38                                   ;8
08700A32 BC07     pop     {r0-r2}                                      ;17
08700A34 1A08     sub     r0,r1,r0                                     ;2
08700A36 E4BF     b       #0x87003B8                                   ;8
08700A38 2A03     cmp     r2,#0x3                                      ;2
08700A3A DA02     bge     #0x8700A42                                   ;8
08700A3C 303C     add     r0,#0x3C                                     ;2
08700A3E 3201     add     r2,#0x1                                      ;2
08700A40 E7F1     b       #0x8700A26                                   ;8
08700A42 BC07     pop     {r0-r2}                                      ;17
08700A44 1840     add     r0,r0,r1                                     ;2
08700A46 E4B7     b       #0x87003B8                                   ;8
08700A48 FFFFFFFF ????                                                 ;10
08700A4A FFFF32DD ????                                                 ;10
08700A4C 32DD     add     r2,#0xDD                                     ;2
08700A4E 0202     lsl     r2,r0,#0x8                                   ;2

Damage Formula Bugfix for Phantom defence boosts
08700414 1c01     mov r1, r0 (was add r1, r0, r1)
08700384

Eclipse
085d456c 08700A61

08700A60 B40F     push    {r0-r3}                                      ;8
08700A62 480E     ldr     r0,=#0x30033EC                               ;9
08700A64 7800     ldrb    r0,[r0]                                      ;4
08700A66 21C0     mov     r1,#0xC0                                     ;2
08700A68 0089     lsl     r1,r1,#0x2                                   ;2
08700A6A 4348     mul     r0,r1                                        ;3
08700A6C 490A     ldr     r1,=#0x2022390                               ;9
08700A6E 1840     add     r0,r0,r1                                     ;2
08700A70 2100     mov     r1,#0x0                                      ;2
08700A72 7802     ldrb    r2,[r0]                                      ;4
08700A74 2A00     cmp     r2,#0x0                                      ;2
08700A76 D003     beq     #0x8700A80                                   ;8
08700A78 7842     ldrb    r2,[r0,#0x1]                                 ;4
08700A7A 2320     mov     r3,#0x20                                     ;2
08700A7C 4313     orr     r3,r2                                        ;2
08700A7E 7043     strb    r3,[r0,#0x1]                                 ;5
08700A80 2932     cmp     r1,#0x32                                     ;2
08700A82 DA02     bge     #0x8700A8A                                   ;8
08700A84 300C     add     r0,#0xC                                      ;2
08700A86 3101     add     r1,#0x1                                      ;2
08700A88 E7F3     b       #0x8700A72                                   ;8
08700A8A BC0F     pop     {r0-r3}                                      ;21
08700A8C 4901     ldr     r1,=#0x80447ED                               ;9
08700A8E 4708     bx      r1                                           ;8
08700A90 FFFFFFFF ????                                                 ;10
08700A92 FFFF47ED ????                                                 ;10
08700A94 47ED     blx (ARMv5) r13 ???,r13                              ;8
08700A96 0804     lsr     r4,r0,#0x20                                  ;2
08700A98 2390     mov     r3,#0x90                                     ;2
08700A9A 0202     lsl     r2,r0,#0x8                                   ;2
08700A9C 33EC     add     r3,#0xEC                                     ;2
08700A9E 0300     lsl     r0,r0,#0xC                                   ;2

Maria's Resupply

085D43EA 0300     Minimum divisor at 100% charge.

Code
0802A070 B401     push    {r0}                                         ;10
0802A072 4801     ldr     r0,=#0x8700AC1                               ;9
0802A074 4700     bx      r0                                           ;8
0802A076 0000     lsl     r0,r0,#0x0                                   ;2
0802A078 0AC1     lsr     r1,r0,#0xB                                   ;2
0802A07A 0870     lsr     r0,r6,#0x1                                   ;2

08700AC0 BC01     pop     {r0}                                         ;4
08700AC2 4288     cmp     r0,r1                                        ;2
08700AC4 D02D     beq     #0x8700B22                                   ;8
08700AC6 B41F     push    {r0-r4}                                      ;26
08700AC8 481F     ldr     r0,=#0x2023284                               ;9
08700ACA 4920     ldr     r1,=#0x30033EC                               ;9
08700ACC 7809     ldrb    r1,[r1]                                      ;4
08700ACE 223C     mov     r2,#0x3C                                     ;2
08700AD0 4351     mul     r1,r2                                        ;3
08700AD2 1840     add     r0,r0,r1                                     ;2
08700AD4 7F41     ldrb    r1,[r0,#0x1D]                                ;7
08700AD6 2906     cmp     r1,#0x6                                      ;2
08700AD8 D120     bne     #0x8700B1C                                   ;8
08700ADA 4A1D     ldr     r2,=#0x85D3DD0                               ;9
08700ADC 4B1D     ldr     r3,=#0x104                                   ;9
08700ADE 434B     mul     r3,r1                                        ;6
08700AE0 18D2     add     r2,r2,r3                                     ;2
08700AE2 7894     ldrb    r4,[r2,#0x2]                                 ;4
08700AE4 2310     mov     r3,#0x10                                     ;2
08700AE6 58D2     ldr     r2,[r2,r3]                                   ;9
08700AE8 4B1B     ldr     r3,=#0x80441D0                               ;9
08700AEA 6A01     ldr     r1,[r0,#0x20]                                ;9
08700AEC 681B     ldr     r3,[r3]                                      ;9
08700AEE 435A     mul     r2,r3                                        ;4
08700AF0 2364     mov     r3,#0x64                                     ;2
08700AF2 4359     mul     r1,r3                                        ;3
08700AF4 1C08     mov     r0,r1                                        ;2
08700AF6 1C11     mov     r1,r2                                        ;2
08700AF8 DF06     swi     #0x6    ;Div                                 ;8
08700AFA 210A     mov     r1,#0xA                                      ;2
08700AFC DF06     swi     #0x6    ;Div                                 ;8
08700AFE 0040     lsl     r0,r0,#0x1                                   ;2
08700B00 2114     mov     r1,#0x14                                     ;2
08700B02 1A08     sub     r0,r1,r0                                     ;2
08700B04 0880     lsr     r0,r0,#0x2                                   ;2
08700B06 1900     add     r0,r0,r4                                     ;2
08700B08 1C01     mov     r1,r0                                        ;2
08700B0A 4814     ldr     r0,=#0x3004080                               ;9
08700B0C 6800     ldr     r0,[r0]                                      ;9
08700B0E DF06     swi     #0x6    ;Div                                 ;8
08700B10 2900     cmp     r1,#0x0                                      ;2
08700B12 D000     beq     #0x8700B16                                   ;8
08700B14 E002     b       #0x8700B1C                                   ;8
08700B16 BC1F     pop     {r0-r4}                                      ;25
08700B18 4911     ldr     r1,=#0x802A095                               ;9
08700B1A 4708     bx      r1                                           ;8
08700B1C BC1F     pop     {r0-r4}                                      ;8
08700B1E 4811     ldr     r0,=#0x802A1B5                               ;9
08700B20 4700     bx      r0                                           ;8
08700B22 4911     ldr     r1,=#0x85D5ABC                               ;9
08700B24 7822     ldrb    r2,[r4]                                      ;6
08700B26 205C     mov     r0,#0x5C                                     ;2
08700B28 4350     mul     r0,r2                                        ;6
08700B2A 3154     add     r1,#0x54                                     ;2
08700B2C 1840     add     r0,r0,r1                                     ;2
08700B2E 211F     mov     r1,#0x1F                                     ;2
08700B30 4029     and     r1,r5                                        ;2
08700B32 6800     ldr     r0,[r0]                                      ;9
08700B34 1840     add     r0,r0,r1                                     ;2
08700B36 7800     ldrb    r0,[r0]                                      ;7
08700B38 0600     lsl     r0,r0,#0x18                                  ;2
08700B3A 1600     asr     r0,r0,#0x18                                  ;2
08700B3C 2800     cmp     r0,#0x0                                      ;2
08700B3E D0EE     beq     #0x8700B1E                                   ;8
08700B40 E7EA     b       #0x8700B18                                   ;8
08700B42 FFFFFFFF ????                                                 ;10
08700B44 FFFFFFFF ????                                                 ;10
08700B46 FFFF3284 ????                                                 ;10
08700B48 3284     add     r2,#0x84                                     ;2
08700B4A 0202     lsl     r2,r0,#0x8                                   ;2
08700B4C 33EC     add     r3,#0xEC                                     ;2
08700B4E 0300     lsl     r0,r0,#0xC                                   ;2
08700B50 3DD0     sub     r5,#0xD0                                     ;2
08700B52 085D     lsr     r5,r3,#0x1                                   ;2
08700B54 0104     lsl     r4,r0,#0x4                                   ;2
08700B56 0000     lsl     r0,r0,#0x0                                   ;2
08700B58 41D0     ror     r0,r2                                        ;3
08700B5A 0804     lsr     r4,r0,#0x20                                  ;2
08700B5C 4080     lsl     r0,r0                                        ;3
08700B5E 0300     lsl     r0,r0,#0xC                                   ;2
08700B60 A095     add     r0,=#0x8700DB8                               ;2
08700B62 0802     lsr     r2,r0,#0x20                                  ;2
08700B64 A1B5     add     r1,=#0x8700E3C                               ;2
08700B66 0802     lsr     r2,r0,#0x20                                  ;2
08700B68 5ABC     ldrh    r4,[r7,r2]                                   ;4
08700B6A 085D     lsr     r5,r3,#0x1                                   ;2

Fix to prevent resupply from healing as well
0802A120 4900     ldr     r1,=#0x8700BB1                               ;9
0802A122 4708     bx      r1                                           ;8
0802A124 0BB1     lsr     r1,r6,#0xE                                   ;2
0802A126 0870     lsr     r0,r6,#0x1                                   ;2
0802A128 2100     mov     r1,#0x0                                      ;2
0802A12A E002     b       #0x802A132                                   ;8
0802A12C 46C0     nop                                                  ;2
0802A12E 46C0     nop                                                  ;2
0802A130 2102     mov     r1,#0x2                                      ;2

08700B12 D02D     beq     #0x8700B70                                   ;8

08700B70 4802     ldr     r0,=#0x30033F0                               ;9
08700B72 2180     mov     r1,#0x80                                     ;2
08700B74 7001     strb    r1,[r0]                                      ;5
08700B76 7041     strb    r1,[r0,#0x1]                                 ;5
08700B78 E7CD     b       #0x8700B16                                   ;8
08700B7A FFFF33F0 ????                                                 ;10
08700B7C 33EE     add     r3,#0xF0                                     ;2
08700B7E 0300     lsl     r0,r0,#0xC                                   ;2

08700BB0 182D     add     r5,r5,r0                                     ;2
08700BB2 4651     mov     r1,r10                                       ;2
08700BB4 7808     ldrb    r0,[r1]                                      ;4
08700BB6 2201     mov     r2,#0x1                                      ;2
08700BB8 1A12     sub     r2,r2,r0                                     ;2
08700BBA 0612     lsl     r2,r2,#0x18                                  ;2
08700BBC 0E12     lsr     r2,r2,#0x18                                  ;2
08700BBE 1C20     mov     r0,r4                                        ;2
08700BC0 B405     push    {r0,r2}                                      ;6
08700BC2 480A     ldr     r0,=#0x30033EE                               ;9
08700BC4 8801     ldrh    r1,[r0]                                      ;4
08700BC6 2200     mov     r2,#0x0                                      ;2
08700BC8 8002     strh    r2,[r0]                                      ;5
08700BCA BC05     pop     {r0,r2}                                      ;5
08700BCC 2900     cmp     r1,#0x0                                      ;2
08700BCE D001     beq     #0x8700BD4                                   ;8
08700BD0 4904     ldr     r1,=#0x802A129                               ;9
08700BD2 4708     bx      r1                                           ;8
08700BD4 4904     ldr     r1,=#0x802A131                               ;9
08700BD6 4708     bx      r1                                           ;8
08700BD8 FFFFFFFF ????                                                 ;10
08700BDA FFFFFFFF ????                                                 ;10
08700BDC FFFFFFFF ????                                                 ;10
08700BDE FFFFFFFF ????                                                 ;10
08700BE0 FFFFFFFF ????                                                 ;10
08700BE2 FFFFA129 ????                                                 ;10
08700BE4 A129     add     r1,=#0x8700C8C                               ;2
08700BE6 0802     lsr     r2,r0,#0x20                                  ;2
08700BE8 A131     add     r1,=#0x8700CB0                               ;2
08700BEA 0802     lsr     r2,r0,#0x20                                  ;2
08700BEC 33EE     add     r3,#0xF0                                     ;2
08700BEE 0300     lsl     r0,r0,#0xC                                   ;2

08026770 6020     str     r0, [r4]                                     ;5

Display New Vet/Disabled Icons - Update every 20 frames:
Mod Code

08700C00 B500     push    {r14}                                        ;10
08700C02 1C03     mov     r3,r0                                        ;2
08700C04 0412     lsl     r2,r2,#0x10                                  ;2
08700C06 4010     and     r0,r2                                        ;2
08700C08 2800     cmp     r0,#0x0                                      ;2
08700C0A D004     beq     #0x8700C16                                   ;8
08700C0C 0C52     lsr     r2,r2,#0x11                                  ;2
08700C0E 1C18     mov     r0,r3                                        ;2
08700C10 F000F810 bl      #0x8700C34                                   ;10
08700C14 E003     b       #0x8700C1E                                   ;8
08700C16 0C92     lsr     r2,r2,#0x12                                  ;2
08700C18 1C18     mov     r0,r3                                        ;2
08700C1A F000F809 bl      #0x8700C30                                   ;10
08700C1E BC01     pop     {r0}                                         ;9
08700C20 4700     bx      r0                                           ;8
08700C22 FFFFFFFF ????                                                 ;10
08700C24 FFFFFFFF ????                                                 ;10
08700C26 FFFFFFFF ????                                                 ;10
08700C28 FFFFFFFF ????                                                 ;10
08700C2A FFFFFFFF ????                                                 ;10
08700C2C FFFFFFFF ????                                                 ;10
08700C2E FFFFDF0C ????                                                 ;10
08700C30 DF0C     swi     #0xC    ;CpuFastSet                          ;8
08700C32 4770     bx      r14                                          ;8
08700C34 DF0B     swi     #0xB    ;CpuSet                              ;8
08700C36 4770     bx      r14                                          ;8
08700C38 FFFFFFFF ????                                                 ;10
08700C3A FFFFFFFF ????                                                 ;10
08700C3C FFFFFFFF ????                                                 ;10
08700C3E FFFF6829 ????                                                 ;10
08700C40 6829     ldr     r1,[r5]                                      ;9
08700C42 0709     lsl     r1,r1,#0x1C                                  ;2
08700C44 0F89     lsr     r1,r1,#0x1E                                  ;2
08700C46 0389     lsl     r1,r1,#0xE                                   ;2
08700C48 482D     ldr     r0,=#0x60067E0                               ;9
08700C4A 1809     add     r1,r1,r0                                     ;2
08700C4C 1C20     mov     r0,r4                                        ;2
08700C4E 2220     mov     r2,#0x20                                     ;2
08700C50 F7FFFFD6 bl      #0x8700C00                                   ;10
08700C54 E004     b       #0x8700C60                                   ;8
08700C56 BC30     pop     {r4,r5}                                      ;13
08700C58 BC01     pop     {r0}                                         ;9
08700C5A 4700     bx      r0                                           ;8
08700C5C FFFFFFFF ????                                                 ;10
08700C5E FFFF4827 ????                                                 ;10
08700C60 4827     ldr     r0,=#0x60067E0                               ;9
08700C62 2180     mov     r1,#0x80                                     ;2
08700C64 0209     lsl     r1,r1,#0x8                                   ;2
08700C66 3120     add     r1,#0x20                                     ;2
08700C68 1809     add     r1,r1,r0                                     ;2
08700C6A 4829     ldr     r0,=#0x861D200                               ;9
08700C6C 22E0     mov     r2,#0xE0                                     ;2
08700C6E 32E0     add     r2,#0xE0                                     ;2
08700C70 F7FFFFC6 bl      #0x8700C00                                   ;10
08700C74 E7EF     b       #0x8700C56                                   ;8
08700C76 FFFFFFFF ????                                                 ;10
08700C78 FFFFFFFF ????                                                 ;10
08700C7A FFFFFFFF ????                                                 ;10
08700C7C FFFFFFFF ????                                                 ;10
08700C7E FFFF6821 ????                                                 ;10
08700C80 6821     ldr     r1,[r4]                                      ;9
08700C82 0709     lsl     r1,r1,#0x1C                                  ;2
08700C84 0F89     lsr     r1,r1,#0x1E                                  ;2
08700C86 0389     lsl     r1,r1,#0xE                                   ;2
08700C88 481D     ldr     r0,=#0x60067E0                               ;9
08700C8A 1809     add     r1,r1,r0                                     ;2
08700C8C 1C28     mov     r0,r5                                        ;2
08700C8E 2220     mov     r2,#0x20                                     ;2
08700C90 F7FFFFB6 bl      #0x8700C00                                   ;10
08700C94 E004     b       #0x8700CA0                                   ;8
08700C96 BC30     pop     {r4,r5}                                      ;13
08700C98 BC01     pop     {r0}                                         ;9
08700C9A 4700     bx      r0                                           ;8
08700C9C FFFFFFFF ????                                                 ;10
08700C9E FFFF4817 ????                                                 ;10
08700CA0 4817     ldr     r0,=#0x60067E0                               ;9
08700CA2 2180     mov     r1,#0x80                                     ;2
08700CA4 0209     lsl     r1,r1,#0x8                                   ;2
08700CA6 3120     add     r1,#0x20                                     ;2
08700CA8 1809     add     r1,r1,r0                                     ;2
08700CAA 481B     ldr     r0,=#0x861D600                               ;9
08700CAC 22E0     mov     r2,#0xE0                                     ;2
08700CAE 32E0     add     r2,#0xE0                                     ;2
08700CB0 F7FFFFA6 bl      #0x8700C00                                   ;10
08700CB4 E7EF     b       #0x8700C96                                   ;8
08700CB6 FFFFFFFF ????                                                 ;10
08700CB8 FFFFFFFF ????                                                 ;10
08700CBA FFFFFFFF ????                                                 ;10
08700CBC FFFFFFFF ????                                                 ;10
08700CBE FFFF4810 ????                                                 ;10
08700CC0 4810     ldr     r0,=#0x81251B0                               ;9
08700CC2 4912     ldr     r1,=#0x30030B4                               ;9
08700CC4 6809     ldr     r1,[r1]                                      ;4
08700CC6 0709     lsl     r1,r1,#0x1C                                  ;2
08700CC8 0F89     lsr     r1,r1,#0x1E                                  ;2
08700CCA 0389     lsl     r1,r1,#0xE                                   ;2
08700CCC 4A0C     ldr     r2,=#0x60067E0                               ;9
08700CCE 1889     add     r1,r1,r2                                     ;2
08700CD0 2220     mov     r2,#0x20                                     ;2
08700CD2 F7FFFF95 bl      #0x8700C00                                   ;10
08700CD6 E003     b       #0x8700CE0                                   ;8
08700CD8 BC30     pop     {r4,r5}                                      ;13
08700CDA BC01     pop     {r0}                                         ;9
08700CDC 4700     bx      r0                                           ;8
08700CDE FFFF4807 ????                                                 ;10
08700CE0 4807     ldr     r0,=#0x60067E0                               ;9
08700CE2 2180     mov     r1,#0x80                                     ;2
08700CE4 0209     lsl     r1,r1,#0x8                                   ;2
08700CE6 3120     add     r1,#0x20                                     ;2
08700CE8 1809     add     r1,r1,r0                                     ;2
08700CEA 480A     ldr     r0,=#0x861D400                               ;9
08700CEC 22E0     mov     r2,#0xE0                                     ;2
08700CEE 32E0     add     r2,#0xE0                                     ;2
08700CF0 F7FFFF86 bl      #0x8700C00                                   ;10
08700CF4 E7F0     b       #0x8700CD8                                   ;8
08700CF6 FFFFFFFF ????                                                 ;10
08700CF8 FFFFFFFF ????                                                 ;10
08700CFA FFFFFFFF ????                                                 ;10
08700CFC FFFFFFFF ????                                                 ;10
08700CFE FFFF67E0 ????                                                 ;10
08700D00 67E0     str     r0,[r4,#0x7C]                                ;10
08700D02 0600     lsl     r0,r0,#0x18                                  ;2
08700D04 51B0     str     r0,[r6,r6]                                   ;6
08700D06 0812     lsr     r2,r2,#0x20                                  ;2
08700D08 0EC4     lsr     r4,r0,#0x1B                                  ;2
08700D0A 0809     lsr     r1,r1,#0x20                                  ;2
08700D0C 30B4     add     r0,#0xB4                                     ;2
08700D0E 0300     lsl     r0,r0,#0xC                                   ;2
08700D10 0861D200
08700D14 0861D400
08700D18 0861D600

0803678C B530     push    {r4,r5,r14}                                  ;18
0803678E 4806     ldr     r0,=#0x3004008                               ;9
08036790 6800     ldr     r0,[r0]                                      ;4
08036792 2132     mov     r1,#0x32                                     ;2
08036794 F055FB42 bl      #0x808BE1C                                   ;10
08036798 1C01     mov     r1,r0                                        ;2
0803679A 2814     cmp     r0,#0x14                                     ;2
0803679C D032     beq     #0x8036804                                   ;8
0803679E 2814     cmp     r0,#0x14                                     ;2
080367A0 D804     bhi     #0x80367AC                                   ;8
080367A2 2800     cmp     r0,#0x0                                      ;2
080367A4 D005     beq     #0x80367B2                                   ;8
080367A6 E05F     b       #0x8036868                                   ;8
080367A8 4008     and     r0,r1                                        ;2
080367AA 0300     lsl     r0,r0,#0xC                                   ;2
080367AC 2928     cmp     r1,#0x28                                     ;2
080367AE D03B     beq     #0x8036828                                   ;8
080367B0 E05A     b       #0x8036868                                   ;8
080367B2 4C0F     ldr     r4,=#0x81251B0                               ;9
080367B4 4D0F     ldr     r5,=#0x30030B4                               ;9
080367B6 6829     ldr     r1,[r5]                                      ;9
080367B8 0709     lsl     r1,r1,#0x1C                                  ;2
080367BA 0F89     lsr     r1,r1,#0x1E                                  ;2
080367BC 0389     lsl     r1,r1,#0xE                                   ;2
080367BE 480E     ldr     r0,=#0x60067A0                               ;9
080367C0 1809     add     r1,r1,r0                                     ;2
080367C2 1C20     mov     r0,r4                                        ;2
080367C4 2220     mov     r2,#0x20                                     ;2
080367C6 F7DBFA4F bl      #0x8011C68                                   ;10
080367CA 3420     add     r4,#0x20                                     ;2
080367CC 6829     ldr     r1,[r5]                                      ;9
080367CE 0709     lsl     r1,r1,#0x1C                                  ;2
080367D0 0F89     lsr     r1,r1,#0x1E                                  ;2
080367D2 0389     lsl     r1,r1,#0xE                                   ;2
080367D4 4A09     ldr     r2,=#0x60067C0                               ;9
080367D6 1889     add     r1,r1,r2                                     ;2
080367D8 1C20     mov     r0,r4                                        ;2
080367DA 2220     mov     r2,#0x20                                     ;2
080367DC F7DBFA44 bl      #0x8011C68                                   ;10
080367E0 4900     ldr     r1,=#0x8700C41                               ;9
080367E2 4708     bx      r1                                           ;8
080367E4 0C41     lsr     r1,r0,#0x11                                  ;2
080367E6 0870     lsr     r0,r6,#0x1                                   ;2
080367E8 0000     lsl     r0,r0,#0x0                                   ;2
080367EA 0000     lsl     r0,r0,#0x0                                   ;2
080367EC 0000     lsl     r0,r0,#0x0                                   ;2
080367EE E011     b       #0x8036814                                   ;8
080367F0 51B0     str     r0,[r6,r6]                                   ;6
080367F2 0812     lsr     r2,r2,#0x20                                  ;2
080367F4 30B4     add     r0,#0xB4                                     ;2
080367F6 0300     lsl     r0,r0,#0xC                                   ;2
080367F8 67A0     str     r0,[r4,#0x78]                                ;10
080367FA 0600     lsl     r0,r0,#0x18                                  ;2
080367FC 67C0     str     r0,[r0,#0x7C]                                ;5
080367FE 0600     lsl     r0,r0,#0x18                                  ;2
08036800 67E0     str     r0,[r4,#0x7C]                                ;10
08036802 0600     lsl     r0,r0,#0x18                                  ;2
08036804 4800     ldr     r0,=#0x8700CC1                               ;9
08036806 4700     bx      r0                                           ;8
08036808 0CC1     lsr     r1,r0,#0x13                                  ;2
0803680A 0870     lsr     r0,r6,#0x1                                   ;2
0803680C 0F89     lsr     r1,r1,#0x1E                                  ;2
0803680E 0389     lsl     r1,r1,#0xE                                   ;2
08036810 4A04     ldr     r2,=#0x60067E0                               ;9
08036812 1889     add     r1,r1,r2                                     ;2
08036814 2220     mov     r2,#0x20                                     ;2
08036816 F7DBFA27 bl      #0x8011C68                                   ;10
0803681A E025     b       #0x8036868                                   ;8
0803681C 51B0     str     r0,[r6,r6]                                   ;6
0803681E 0812     lsr     r2,r2,#0x20                                  ;2
08036820 30B4     add     r0,#0xB4                                     ;2
08036822 0300     lsl     r0,r0,#0xC                                   ;2
08036824 67E0     str     r0,[r4,#0x7C]                                ;10
08036826 0600     lsl     r0,r0,#0x18                                  ;2
08036828 4D11     ldr     r5,=#0x8090EC4                               ;9
0803682A 4C12     ldr     r4,=#0x30030B4                               ;9
0803682C 6821     ldr     r1,[r4]                                      ;9
0803682E 0709     lsl     r1,r1,#0x1C                                  ;2
08036830 0F89     lsr     r1,r1,#0x1E                                  ;2
08036832 0389     lsl     r1,r1,#0xE                                   ;2
08036834 4810     ldr     r0,=#0x60067A0                               ;9
08036836 1809     add     r1,r1,r0                                     ;2
08036838 1C28     mov     r0,r5                                        ;2
0803683A 2220     mov     r2,#0x20                                     ;2
0803683C F7DBFA14 bl      #0x8011C68                                   ;10
08036840 6821     ldr     r1,[r4]                                      ;9
08036842 0709     lsl     r1,r1,#0x1C                                  ;2
08036844 0F89     lsr     r1,r1,#0x1E                                  ;2
08036846 0389     lsl     r1,r1,#0xE                                   ;2
08036848 4A0C     ldr     r2,=#0x60067C0                               ;9
0803684A 1889     add     r1,r1,r2                                     ;2
0803684C 1C28     mov     r0,r5                                        ;2
0803684E 2220     mov     r2,#0x20                                     ;2
08036850 F7DBFA0A bl      #0x8011C68                                   ;10
08036854 4900     ldr     r1,=#0x8700C81                               ;9
08036856 4708     bx      r1                                           ;8
08036858 0C81     lsr     r1,r0,#0x12                                  ;2
0803685A 0870     lsr     r0,r6,#0x1                                   ;2
0803685C 4808     ldr     r0,=#0x60067E0                               ;9
0803685E 1809     add     r1,r1,r0                                     ;2
08036860 1C28     mov     r0,r5                                        ;2
08036862 2220     mov     r2,#0x20                                     ;2
08036864 F7DBFA00 bl      #0x8011C68                                   ;10
08036868 BC30     pop     {r4,r5}                                      ;13
0803686A BC01     pop     {r0}                                         ;9
0803686C 4700     bx      r0                                           ;8

Graphics Loader
5340 - Pal 5, Blank
5341 - Pal 5, Stun Icon
5342 - Pal 5, Rank I
5343 - Pal 5, Rank II
5343 - Pal 5, Rank V
5344 - Pal 5, Rank I (Blink)
5345 - Pal 5, Rank II (Blink)
5346 - Pal 5, Rank V (Blink)

08022760 4800     ldr     r0,=#0x8700D31                               ;9
08022762 4700     bx      r0                                           ;8
08022764 0D31     lsr     r1,r6,#0x14                                  ;2
08022766 0870     lsr     r0,r6,#0x1                                   ;2

08700D30 4653     mov     r3,r10                                       ;2
08700D32 6818     ldr     r0,[r3]                                      ;4
08700D34 6802     ldr     r2,[r0]                                      ;4
08700D36 0AA9     lsr     r1,r5,#0xA                                   ;2
08700D38 464C     mov     r4,r9                                        ;2
08700D3A 0BE0     lsr     r0,r4,#0xF                                   ;2
08700D3C 1880     add     r0,r0,r2                                     ;2
08700D3E 1809     add     r1,r1,r0                                     ;2
08700D40 22D8     mov     r2,#0xD8                                     ;2
08700D42 0092     lsl     r2,r2,#0x2                                   ;2
08700D44 1C10     mov     r0,r2                                        ;2
08700D46 8048     strh    r0,[r1,#0x2]                                 ;7
08700D48 4653     mov     r3,r10                                       ;2
08700D4A 6818     ldr     r0,[r3]                                      ;4
08700D4C 6802     ldr     r2,[r0]                                      ;4
08700D4E 0AA9     lsr     r1,r5,#0xA                                   ;2
08700D50 464C     mov     r4,r9                                        ;2
08700D52 0BE0     lsr     r0,r4,#0xF                                   ;2
08700D54 1880     add     r0,r0,r2                                     ;2
08700D56 1809     add     r1,r1,r0                                     ;2
08700D58 1C0A     mov     r2,r1                                        ;2
08700D5A 3242     add     r2,#0x42                                     ;2
08700D5C 23D8     mov     r3,#0xD8                                     ;2
08700D5E 009B     lsl     r3,r3,#0x2                                   ;2
08700D60 1C18     mov     r0,r3                                        ;2
08700D62 8010     strh    r0,[r2]                                      ;7
08700D64 3140     add     r1,#0x40                                     ;2
08700D66 8008     strh    r0,[r1]                                      ;7
08700D68 E00A     b       #0x8700D80                                   ;8
08700D6A BC38     pop     {r3-r5}                                      ;17
08700D6C 4698     mov     r8,r3                                        ;2
08700D6E 46A1     mov     r9,r4                                        ;2
08700D70 46AA     mov     r10,r5                                       ;2
08700D72 BCF0     pop     {r4-r7}                                      ;21
08700D74 BC01     pop     {r0}                                         ;9
08700D76 4700     bx      r0                                           ;8

08700D80 4644     mov     r4,r8                                        ;2
08700D82 7825     ldrb    r5,[r4]                                      ;4
08700D84 2800     cmp     r0,#0x0                                      ;2
08700D86 D022     beq     #0x8700DCE                                   ;8
08700D88 79A5     ldrb    r5,[r4,#0x6]                                 ;4
08700D8A 09ED     lsr     r5,r5,#0x7                                   ;2
08700D8C 2D00     cmp     r5,#0x0                                      ;2
08700D8E D011     beq     #0x8700DB4                                   ;8
08700D90 4D12     ldr     r5,=#0x30033EC                               ;9
08700D92 782D     ldrb    r5,[r5]                                      ;4
08700D94 4E12     ldr     r6,=#0x2022390                               ;9
08700D96 4F13     ldr     r7,=#0x300                                   ;9
08700D98 437D     mul     r5,r7                                        ;3
08700D9A 19AD     add     r5,r5,r6                                     ;2
08700D9C 42AC     cmp     r4,r5                                        ;2
08700D9E DD07     ble     #0x8700DB0                                   ;8
08700DA0 4F10     ldr     r7,=#0x300                                   ;9
08700DA2 19ED     add     r5,r5,r7                                     ;2
08700DA4 3D01     sub     r5,#0x1                                      ;2
08700DA6 42AC     cmp     r4,r5                                        ;2
08700DA8 DA02     bge     #0x8700DB0                                   ;8
08700DAA E003     b       #0x8700DB4                                   ;8
08700DAC 0000     lsl     r0,r0,#0x0                                   ;2
08700DAE 0000     lsl     r0,r0,#0x0                                   ;2
08700DB0 4D0D     ldr     r5,=#0x5341                                  ;9
08700DB2 800D     strh    r5,[r1]                                      ;7
08700DB4 7865     ldrb    r5,[r4,#0x1]                                 ;6
08700DB6 09AD     lsr     r5,r5,#0x6                                   ;2
08700DB8 2D00     cmp     r5,#0x0                                      ;2
08700DBA D008     beq     #0x8700DCE                                   ;8
08700DBC 7926     ldrb    r6,[r4,#0x4]                                 ;6
08700DBE 0676     lsl     r6,r6,#0x19                                  ;2
08700DC0 0E76     lsr     r6,r6,#0x19                                  ;2
08700DC2 2E5B     cmp     r6,#0x5B                                     ;2
08700DC4 DA00     bge     #0x8700DC8                                   ;8
08700DC6 3503     add     r5,#0x3                                      ;2
08700DC8 4E07     ldr     r6,=#0x5341                                  ;9
08700DCA 19AE     add     r6,r5,r6                                     ;2
08700DCC 8016     strh    r6,[r2]                                      ;7
08700DCE E7CC     b       #0x8700D6A                                   ;8
08700DD0 FFFFFFFF ????                                                 ;10
08700DD2 FFFFFFFF ????                                                 ;10
08700DD4 FFFFFFFF ????                                                 ;10
08700DD6 FFFFFFFF ????                                                 ;10
08700DD8 FFFFFFFF ????                                                 ;10
08700DDA FFFF33EC ????                                                 ;10
08700DDC 33EC     add     r3,#0xEC                                     ;2
08700DDE 0300     lsl     r0,r0,#0xC                                   ;2
08700DE0 2390     mov     r3,#0x90                                     ;2
08700DE2 0202     lsl     r2,r0,#0x8                                   ;2
08700DE4 0300     lsl     r0,r0,#0xC                                   ;2
08700DE6 0000     lsl     r0,r0,#0x0                                   ;2
08700DE8 A341     strh    r1,[r0,r5]                                   ;5
08700DEA 0000     lsl     r0,r0,#0x0                                   ;2

08022776 4B01     ldr     r3,=#0x8700D47                               ;9
08022778 4718     bx      r3                                           ;8
0802277A 0000     lsl     r0,r0,#0x0                                   ;2
0802277C 0D47     lsr     r7,r0,#0x15                                  ;2
0802277E 0870     lsr     r0,r6,#0x1                                   ;2

Restore HP Info Window
0802AE3E 7921     ldrb    r1,[r4,#0x4]                                 ;4
0802AE40 207F     mov     r0,#0x7F                                     ;2
0802AE42 4008     and     r0,r1                                        ;2
0802AE44 2800     cmp     r0,#0x0                                      ;2
0802AE46 D00D     beq     #0x802AE64                                   ;8

Bugfixes
08499600 0
08044E84 19C0

Bugfixes
0806C9D2 2064     mov     r0, 0x64 ; sets the timer to a positive value.
08700DE8 41D30000 ; Correct Palette for Vet icons
08700DC2 2E5B     cmp     r6,#0x5B     ;Still blinks if at exactly 9.0 HP.

084995E0 0x01 to 0x00
08035EC2 D105 (Allows Unit slot 1 to have custom sound)

Gunboats can capture
08041534 280D     cmp     r0, #0xD
08041536 D009     beq     #0x804154C
08041538 3801     sub     r0, #0x1

Per CO COP Background Tiles
0807FEFC 4817     ldr     r0,=#0x8700E01                               ;9
0807FEFE 4700     bx      r0                                           ;8

0807FF5C 087000E01

08700E00 B406     push    {r1,r2}                                      ;6
08700E02 480D     ldr     r0,=#0x30033EC                               ;9
08700E04 6800     ldr     r0,[r0]                                      ;4
08700E06 213C     mov     r1,#0x3C                                     ;2
08700E08 3801     sub     r0,#0x1                                      ;2
08700E0A 4341     mul     r1,r0                                        ;3
08700E0C 480B     ldr     r0,=#0x20232DD                               ;9
08700E0E 1840     add     r0,r0,r1                                     ;2
08700E10 7800     ldrb    r0,[r0]                                      ;4
08700E12 0080     lsl     r0,r0,#0x2                                   ;2
08700E14 4907     ldr     r1,=#0x8700E40                               ;9
08700E16 1840     add     r0,r0,r1                                     ;2
08700E18 6800     ldr     r0,[r0]                                      ;4
08700E1A BC06     pop     {r1,r2}                                      ;5
08700E1C 4903     ldr     r1,=#0x3002B6C                               ;9
08700E1E 4A04     ldr     r2,=#0x807FF01                               ;9
08700E20 4710     bx      r2                                           ;8
08700E22 FFFFFFFF ????                                                 ;10
08700E24 FFFFFFFF ????                                                 ;10
08700E26 FFFFFFFF ????                                                 ;10
08700E28 FFFFFFFF ????                                                 ;10
08700E2A FFFF2B6C ????                                                 ;10
08700E2C 2B6C     cmp     r3,#0x6C                                     ;2
08700E2E 0300     lsl     r0,r0,#0xC                                   ;2
08700E30 FF010807 ????                                                 ;10
08700E32 0807     lsr     r7,r0,#0x20                                  ;2
08700E34 0E40     lsr     r0,r0,#0x19                                  ;2
08700E36 0870     lsr     r0,r6,#0x1                                   ;2
08700E38 33EC     add     r3,#0xEC                                     ;2
08700E3A 0300     lsl     r0,r0,#0xC                                   ;2
08700E3C 32DD     add     r2,#0xDD                                     ;2
08700E3E 0202     lsl     r2,r0,#0x8                                   ;2
08700E40 29A4     cmp     r1,#0xA4                                     ;2
08700E42 080A     lsr     r2,r1,#0x20                                  ;2
08700E44 29A4     cmp     r1,#0xA4                                     ;2
08700E46 080A     lsr     r2,r1,#0x20                                  ;2

Per CO COP Palettes
0807FF26 4813     ldr     r0,=#0x8700EA1                               ;9
0807FF28 4700     bx      r0                                           ;8

0807FF74 087000EA0

08700EA0 B406     push    {r1,r2}                                      ;6
08700EA2 480D     ldr     r0,=#0x30033EC                               ;9
08700EA4 6800     ldr     r0,[r0]                                      ;4
08700EA6 213C     mov     r1,#0x3C                                     ;2
08700EA8 3801     sub     r0,#0x1                                      ;2
08700EAA 4341     mul     r1,r0                                        ;3
08700EAC 480B     ldr     r0,=#0x20232DD                               ;9
08700EAE 1840     add     r0,r0,r1                                     ;2
08700EB0 7800     ldrb    r0,[r0]                                      ;4
08700EB2 0080     lsl     r0,r0,#0x2                                   ;2
08700EB4 4907     ldr     r1,=#0x8700EE0                               ;9
08700EB6 1840     add     r0,r0,r1                                     ;2
08700EB8 6800     ldr     r0,[r0]                                      ;4
08700EBA BC06     pop     {r1,r2}                                      ;5
08700EBC 4903     ldr     r1,=#0x80                                    ;9
08700EBE 4A04     ldr     r2,=#0x807FF2B                               ;9
08700EC0 4710     bx      r2                                           ;8
08700EC2 FFFFFFFF ????                                                 ;10
08700EC4 FFFFFFFF ????                                                 ;10
08700EC6 FFFFFFFF ????                                                 ;10
08700EC8 FFFFFFFF ????                                                 ;10
08700ECA FFFF0080 ????                                                 ;10
08700ECC 0080     lsl     r0,r0,#0x2                                   ;2
08700ECE 0000     lsl     r0,r0,#0x0                                   ;2
08700ED0 FF2B0807 ????                                                 ;10
08700ED2 0807     lsr     r7,r0,#0x20                                  ;2
08700ED4 0EE0     lsr     r0,r4,#0x1B                                  ;2
08700ED6 0870     lsr     r0,r6,#0x1                                   ;2
08700ED8 33EC     add     r3,#0xEC                                     ;2
08700EDA 0300     lsl     r0,r0,#0xC                                   ;2
08700EDC 32DD     add     r2,#0xDD                                     ;2
08700EDE 0202     lsl     r2,r0,#0x8                                   ;2
08700EE0 36C8     add     r6,#0xC8                                     ;2
08700EE2 080A     lsr     r2,r1,#0x20                                  ;2
08700EE4 4500     cmp_??? r0,r0                                        ;2
08700EE6 080E     lsr     r6,r1,#0x20                                  ;2

Per CO COP Scrolling Direction
0807FFDA 4904     ldr     r0,=#0x8700F41                               ;9
0807FFDC 4708     bx      r1                                           ;8

0807FFEC 08700F41

08080052 4905     ldr     r1,=#0x8701001                               ;9
08080054 4708     bx      r1                                           ;8

08080068 08701001

08701000 F7FFFF9E bl      #0x8700F40                                   ;10
08701004 BC10     pop     {r4}                                         ;9
08701006 BC01     pop     {r0}                                         ;9
08701008 4700     bx      r0                                           ;8

08700F40 B40C     push    {r2,r3}                                      ;14
08700F42 4911     ldr     r1,=#0x20232DD                               ;9
08700F44 480F     ldr     r0,=#0x30033EC                               ;9
08700F46 8800     ldrh    r0,[r0]                                      ;4
08700F48 3801     sub     r0,#0x1                                      ;2
08700F4A 223C     mov     r2,#0x3C                                     ;2
08700F4C 4350     mul     r0,r2                                        ;4
08700F4E 1842     add     r2,r0,r1                                     ;2
08700F50 7812     ldrb    r2,[r2]                                      ;4
08700F52 4910     ldr     r1,=#0x8700FA0                               ;9
08700F54 0092     lsl     r2,r2,#0x2                                   ;2
08700F56 188A     add     r2,r1,r2                                     ;2
08700F58 490C     ldr     r1,=#0x3001FF8                               ;9
08700F5A 7810     ldrb    r0,[r2]                                      ;4
08700F5C 2800     cmp     r0,#0x0                                      ;2
08700F5E 7853     ldrb    r3,[r2,#0x1]                                 ;4
08700F60 8808     ldrh    r0,[r1]                                      ;7
08700F62 D101     bne     #0x8700F68                                   ;8
08700F64 18C0     add     r0,r0,r3                                     ;2
08700F66 E000     b       #0x8700F6A                                   ;8
08700F68 1AC0     sub     r0,r0,r3                                     ;2
08700F6A 8008     strh    r0,[r1]                                      ;8
08700F6C 4908     ldr     r1,=#0x3001418                               ;9
08700F6E 7890     ldrb    r0,[r2,#0x2]                                 ;4
08700F70 2800     cmp     r0,#0x0                                      ;2
08700F72 78D3     ldrb    r3,[r2,#0x3]                                 ;4
08700F74 8808     ldrh    r0,[r1]                                      ;7
08700F76 D101     bne     #0x8700F7C                                   ;8
08700F78 18C0     add     r0,r0,r3                                     ;2
08700F7A E000     b       #0x8700F7E                                   ;8
08700F7C 1AC0     sub     r0,r0,r3                                     ;2
08700F7E 8008     strh    r0,[r1]                                      ;8
08700F80 BC0C     pop     {r2,r3}                                      ;13
08700F82 4770     bx      r14                                          ;8
08700F84 33EC     add     r3,#0xEC                                     ;2
08700F86 0300     lsl     r0,r0,#0xC                                   ;2
08700F88 32DD     add     r2,#0xDD                                     ;2
08700F8A 0202     lsl     r2,r0,#0x8                                   ;2
08700F8C 1FF8     sub     r0,r7,7                                      ;2
08700F8E 0300     lsl     r0,r0,#0xC                                   ;2
08700F90 1418     asr     r0,r3,#0x10                                  ;2
08700F92 0300     lsl     r0,r0,#0xC                                   ;2
08700F94 0FA0     lsr     r0,r4,#0x1E                                  ;2
08700F96 0870     lsr     r0,r6,#0x1                                   ;2

Code for AI following CO Specific Transports AND to stop it reading random BIOS locations arbitrarily.

0805FC78 4C00     ldr     r4,=#0x8701021                               ;9
0805FC7A 4720     bx      r4                                           ;8
0805FC7C 1021     asr     r1,r4,#0x20                                  ;2
0805FC7E 0870     lsr     r0,r6,#0x1                                   ;2

08701020 781C     ldrb    r4,[r3]                                      ;6
08701022 205C     mov     r0,#0x5C                                     ;2
08701024 4360     mul     r0,r4                                        ;3
08701026 4450     add     r0,r10                                       ;2
08701028 6805     ldr     r5,[r0]                                      ;4
0870102A 480C     ldr     r0,=#0x30040D8                               ;9
0870102C 9000     str     r0,[sp]                                      ;5
0870102E 480A     ldr     r0,=#0x30033EC                               ;9
08701030 7800     ldrb    r0,[r0]                                      ;4
08701032 213C     mov     r1,#0x3C                                     ;2
08701034 4348     mul     r0,r1                                        ;3
08701036 1A40     sub     r0,r0,r1                                     ;2
08701038 4906     ldr     r1,=#0x20232C0                               ;9
0870103A 1840     add     r0,r0,r1                                     ;2
0870103C 7F41     ldrb    r1,[r0,#0x1D]                                ;4
0870103E 0089     lsl     r1,r1,#0x2                                   ;2
08701040 194D     add     r5,r1,r5                                     ;2
08701042 682D     ldr     r5,[r5]                                      ;9
08701044 2D00     cmp     r5,#0x0                                      ;2
08701046 D001     beq     #0x870104C                                   ;8
08701048 4801     ldr     r0,=#0x805FC89                               ;9
0870104A E000     b       #0x870104E                                   ;8
0870104C 4804     ldr     r0,=#0x805FD31                               ;9
0870104E 4700     bx      r0                                           ;8
08701050 FC890805 ????                                                 ;10
08701052 0805     lsr     r5,r0,#0x20                                  ;2
08701054 32C0     add     r2,#0xC0                                     ;2
08701056 0202     lsl     r2,r0,#0x8                                   ;2
08701058 33EC     add     r3,#0xEC                                     ;2
0870105A 0300     lsl     r0,r0,#0xC                                   ;2
0870105C 40D8     lsr     r0,r3                                        ;3
0870105E 0300     lsl     r0,r0,#0xC                                   ;2
08701060 FD310805 ????                                                 ;10
08701062 0805     lsr     r5,r0,#0x20                                  ;2

Code Preventing Design Maps Jukebox outside of Design Maps:

0861DB30 E0A6     b       #0x861DC80                                   ;8

0861DC80 B407     push    {r0-r2}                                      ;18
0861DC82 4802     ldr     r0,=#0x3003FC1                               ;9
0861DC84 7800     ldrb    r0,[r0]                                      ;4
0861DC86 2805     cmp     r0,#0x5                                      ;2
0861DC88 D1BA     bne     #0x861DC00                                   ;8
0861DC8A E752     b       #0x861DB32                                   ;8
0861DC8C 3FC1     sub     r7,#0xC1                                     ;2
0861DC8E 0300     lsl     r0,r0,#0xC                                   ;2

Random CO
080269BA 7800     ldrb    r0,[r0]                                      ;4
080269BC B402     push    {r1}                                         ;5
080269BE 4901     ldr     r1,=#0x87010A1                               ;9
080269C0 4708     bx      r1                                           ;8
080269C2 0000     lsl     r0,r0,#0x0                                   ;2
080269C4 10A1     asr     r1,r4,#0x2                                   ;2
080269C6 0870     lsr     r0,r6,#0x1                                   ;2
080269C8 7008     strb    r0,[r1]                  

08043CDC 2D13     cmp     r5, #0x13                                    ;2 //Increases maximum CO Number

084A078F 0x13     //Random CO Currently uses normal OS Trooper ID

08701090 4900     ldr     r1,=#0x80129E1                               ;9
08701092 4708     bx      r1                                           ;8
08701094 29E1     cmp     r1,#0xE1                                     ;2
08701096 0801     lsr     r1,r0,#0x20                                  ;2
08701098 FFFFFFFF ????                                                 ;10
0870109A FFFFFFFF ????                                                 ;10
0870109C FFFFFFFF ????                                                 ;10
0870109E FFFFBC02 ????                                                 ;10
087010A0 BC02     pop     {r1}                                         ;4
087010A2 2812     cmp     r0,#0x12                                     ;2
087010A4 DD13     ble     #0x87010CE                                   ;8
087010A6 B41E     push    {r1-r4}                                      ;22
087010A8 F7FFFFF2 bl      #0x8701090                                   ;10
087010AC 2113     mov     r1,#0x13                                     ;2
087010AE DF06     swi     #0x6    ;Div                                 ;8
087010B0 1C08     mov     r0,r1                                        ;2
087010B2 490E     ldr     r1,=#0x202805A                               ;9
087010B4 780B     ldrb    r3,[r1]                                      ;4
087010B6 784A     ldrb    r2,[r1,#0x1]                                 ;4
087010B8 0212     lsl     r2,r2,#0x8                                   ;2
087010BA 189B     add     r3,r3,r2                                     ;2
087010BC 788A     ldrb    r2,[r1,#0x2]                                 ;4
087010BE 0412     lsl     r2,r2,#0x10                                  ;2
087010C0 189B     add     r3,r3,r2                                     ;2
087010C2 2201     mov     r2,#0x1                                      ;2
087010C4 4082     lsl     r2,r0                                        ;3
087010C6 401A     and     r2,r3                                        ;2
087010C8 2A00     cmp     r2,#0x0                                      ;2
087010CA D0ED     beq     #0x87010A8                                   ;8
087010CC BC1E     pop     {r1-r4}                                      ;21
087010CE 7748     strb    r0,[r1,#0x1D]                                ;5
087010D0 6829     ldr     r1,[r5]                                      ;9
087010D2 1851     add     r1,r2,r1                                     ;2
087010D4 1998     add     r0,r3,r6                                     ;2
087010D6 7800     ldrb    r0,[r0]                                      ;4
087010D8 312A     add     r1,#0x2A                                     ;2
087010DA 7008     strb    r0,[r1]                                      ;5
087010DC 4802     ldr     r0,=#0x80269CB                               ;9
087010DE 4700     bx      r0                                           ;8
087010E0 FFFFFFFF ????                                                 ;10
087010E2 FFFFFFFF ????                                                 ;10
087010E4 FFFFFFFF ????                                                 ;10
087010E6 FFFF69CB ????                                                 ;10
087010E8 69CB     ldr     r3,[r1,#0x1C]                                ;4
087010EA 0802     lsr     r2,r0,#0x20                                  ;2
087010EC 805A     strh    r2,[r3,#0x2]                                 ;5
087010EE 0202     lsl     r2,r0,#0x8 

A whole bunch of crap to display defence bars etc on stats screen.

08085708 B5F0     push    {r4-r7,r14}                                  ;26
0808570A 4657     mov     r7,r10                                       ;2
0808570C 464E     mov     r6,r9                                        ;2
0808570E 4645     mov     r5,r8                                        ;2
08085710 B4E0     push    {r5-r7}                                      ;18
08085712 B082     add     sp,-#0x8                                     ;2
08085714 4689     mov     r9,r1                                        ;2
08085716 2000     mov     r0,#0x0                                      ;2
08085718 4680     mov     r8,r0                                        ;2
0808571A 4648     mov     r0,r9                                        ;2
0808571C F7A0FD64 bl      #0x80261E8                                   ;10
08085720 0600     lsl     r0,r0,#0x18                                  ;2
08085722 2800     cmp     r0,#0x0                                      ;2
08085724 46C0     nop                                                  ;8
08085726 4901     ldr     r1,=#0x8616B22                               ;9
08085728 E003     b       #0x8085732                                   ;8
0808572A 0000     lsl     r0,r0,#0x0                                   ;2
0808572C 6B22     ldr     r2,[r4,#0x30]                                ;4
0808572E 0861     lsr     r1,r4,#0x1                                   ;2
08085730 4936     ldr     r1,=#0x8616B4A                               ;9
08085732 4642     mov     r2,r8                                        ;2
08085734 0050     lsl     r0,r2,#0x1                                   ;2
08085736 1840     add     r0,r0,r1                                     ;2
08085738 8806     ldrh    r6,[r0]                                      ;7
0808573A 2E00     cmp     r6,#0x0                                      ;2
0808573C D100     bne     #0x8085740                                   ;8
0808573E E095     b       #0x808586C                                   ;8
08085740 4640     mov     r0,r8                                        ;2
08085742 2105     mov     r1,#0x5                                      ;2
08085744 F005F9B4 bl      #0x808AAB0                                   ;10
08085748 212A     mov     r1,#0x2A                                     ;2
0808574A 468A     mov     r10,r1                                       ;2
0808574C 4652     mov     r2,r10                                       ;2
0808574E 4350     mul     r0,r2                                        ;6
08085750 300A     add     r0,#0xA                                      ;2
08085752 B409     push    {r0,r3}                                      ;14
08085754 4640     mov     r0,r8                                        ;2
08085756 2105     mov     r1,#0x5                                      ;2
08085758 DF06     swi     #0x6    ;Div                                 ;8
0808575A 1C02     mov     r2,r0                                        ;2
0808575C 0051     lsl     r1,r2,#0x1                                   ;2
0808575E 1889     add     r1,r1,r2                                     ;2
08085760 00CF     lsl     r7,r1,#0x3                                   ;2
08085762 1C3D     mov     r5,r7                                        ;2
08085764 3528     add     r5,#0x28                                     ;2
08085766 0029     lsl     r1,r5,#0x0                                   ;2
08085768 BC09     pop     {r0,r3}                                      ;5
0808576A 9600     str     r6,[sp]                                      ;5
0808576C 2202     mov     r2,#0x2                                      ;2
0808576E 9201     str     r2,[sp,#0x4]                                 ;5
08085770 2200     mov     r2,#0x0                                      ;2
08085772 464B     mov     r3,r9                                        ;2
08085774 F000F914 bl      #0x80859A0                                   ;10
08085778 1C30     mov     r0,r6                                        ;2
0808577A F7BDFDB1 bl      #0x80432E0                                   ;10
0808577E 2807     cmp     r0,#0x7                                      ;2
08085780 D012     beq     #0x80857A8                                   ;8
08085782 4648     mov     r0,r9                                        ;2
08085784 1C31     mov     r1,r6                                        ;2
08085786 F7FFFE43 bl      #0x8085410                                   ;10
0808578A 1C04     mov     r4,r0                                        ;2
0808578C 4640     mov     r0,r8                                        ;2
0808578E 2105     mov     r1,#0x5                                      ;2
08085790 F005F98E bl      #0x808AAB0                                   ;10
08085794 4651     mov     r1,r10                                       ;2
08085796 4341     mul     r1,r0                                        ;4
08085798 311A     add     r1,#0x1A                                     ;2
0808579A 2201     mov     r2,#0x1                                      ;2
0808579C 9200     str     r2,[sp]                                      ;5
0808579E 1C20     mov     r0,r4                                        ;2
080857A0 1C2A     mov     r2,r5                                        ;2
080857A2 2300     mov     r3,#0x0                                      ;2
080857A4 F799FDD2 bl      #0x801F34C                                   ;10
080857A8 4D19     ldr     r5,=#0x8499598                               ;9
080857AA 6829     ldr     r1,[r5]                                      ;4
080857AC 464A     mov     r2,r9                                        ;2
080857AE 0110     lsl     r0,r2,#0x4                                   ;2
080857B0 1A80     sub     r0,r0,r2                                     ;2
080857B2 0084     lsl     r4,r0,#0x2                                   ;2
080857B4 1861     add     r1,r4,r1                                     ;2
080857B6 7F48     ldrb    r0,[r1,#0x1D]                                ;4
080857B8 7F89     ldrb    r1,[r1,#0x1E]                                ;4
080857BA 1C32     mov     r2,r6                                        ;2
080857BC F7BDFD20 bl      #0x8043200                                   ;10
080857C0 2800     cmp     r0,#0x0                                      ;2
080857C2 D027     beq     #0x8085814                                   ;8
080857C4 4640     mov     r0,r8                                        ;2
080857C6 2105     mov     r1,#0x5                                      ;2
080857C8 F005F972 bl      #0x808AAB0                                   ;10
080857CC 4651     mov     r1,r10                                       ;2
080857CE 4341     mul     r1,r0                                        ;4
080857D0 311B     add     r1,#0x1B                                     ;2
080857D2 1C3D     mov     r5,r7                                        ;2
080857D4 3530     add     r5,#0x30                                     ;2
080857D6 2001     mov     r0,#0x1                                      ;2
080857D8 9000     str     r0,[sp]                                      ;5
080857DA 2094     mov     r0,#0x94                                     ;2
080857DC 1C2A     mov     r2,r5                                        ;2
080857DE 2300     mov     r3,#0x0                                      ;2
080857E0 F799FDB4 bl      #0x801F34C                                   ;10
080857E4 4648     mov     r0,r9                                        ;2
080857E6 1C31     mov     r1,r6                                        ;2
080857E8 F7FFFF5A bl      #0x80856A0                                   ;10
080857EC 1C04     mov     r4,r0                                        ;2
080857EE 4640     mov     r0,r8                                        ;2
080857F0 2105     mov     r1,#0x5                                      ;2
080857F2 F005F95D bl      #0x808AAB0                                   ;10
080857F6 4651     mov     r1,r10                                       ;2
080857F8 4341     mul     r1,r0                                        ;4
080857FA 3123     add     r1,#0x23                                     ;2
080857FC 2201     mov     r2,#0x1                                      ;2
080857FE 9200     str     r2,[sp]                                      ;5
08085800 1C20     mov     r0,r4                                        ;2
08085802 1C2A     mov     r2,r5                                        ;2
08085804 2300     mov     r3,#0x0                                      ;2
08085806 F799FDA1 bl      #0x801F34C                                   ;10
0808580A E02F     b       #0x808586C                                   ;8
0808580C 6B4A     ldr     r2,[r1,#0x34]                                ;4
0808580E 0861     lsr     r1,r4,#0x1                                   ;2
08085810 9598     str     r5,[sp,#0x260]                               ;5
08085812 0849     lsr     r1,r1,#0x1                                   ;2
08085814 6829     ldr     r1,[r5]                                      ;4
08085816 1861     add     r1,r4,r1                                     ;2
08085818 7F48     ldrb    r0,[r1,#0x1D]                                ;4
0808581A 7F89     ldrb    r1,[r1,#0x1E]                                ;4
0808581C 1C32     mov     r2,r6                                        ;2
0808581E F7BDFCB7 bl      #0x8043190                                   ;10
08085822 2800     cmp     r0,#0x0                                      ;2
08085824 D022     beq     #0x808586C                                   ;8
08085826 4640     mov     r0,r8                                        ;2
08085828 2105     mov     r1,#0x5                                      ;2
0808582A F005F941 bl      #0x808AAB0                                   ;10
0808582E 4651     mov     r1,r10                                       ;2
08085830 4341     mul     r1,r0                                        ;4
08085832 311B     add     r1,#0x1B                                     ;2
08085834 1C3D     mov     r5,r7                                        ;2
08085836 3530     add     r5,#0x30                                     ;2
08085838 2001     mov     r0,#0x1                                      ;2
0808583A 9000     str     r0,[sp]                                      ;5
0808583C 2093     mov     r0,#0x93                                     ;2
0808583E 1C2A     mov     r2,r5                                        ;2
08085840 2300     mov     r3,#0x0                                      ;2
08085842 F799FD83 bl      #0x801F34C                                   ;10
08085846 4648     mov     r0,r9                                        ;2
08085848 1C31     mov     r1,r6                                        ;2
0808584A F7FFFEF5 bl      #0x8085638                                   ;10
0808584E 1C04     mov     r4,r0                                        ;2
08085850 4640     mov     r0,r8                                        ;2
08085852 2105     mov     r1,#0x5                                      ;2
08085854 F005F92C bl      #0x808AAB0                                   ;10
08085858 4651     mov     r1,r10                                       ;2
0808585A 4341     mul     r1,r0                                        ;4
0808585C 3123     add     r1,#0x23                                     ;2
0808585E 2201     mov     r2,#0x1                                      ;2
08085860 9200     str     r2,[sp]                                      ;5
08085862 1C20     mov     r0,r4                                        ;2
08085864 1C2A     mov     r2,r5                                        ;2
08085866 2300     mov     r3,#0x0                                      ;2
08085868 F799FD70 bl      #0x801F34C                                   ;10
0808586C 2001     mov     r0,#0x1                                      ;2
0808586E 4480     add     r8,r0                                        ;2
08085870 4641     mov     r1,r8                                        ;2
08085872 2918     cmp     r1,#0x18                                     ;2
08085874 DC00     bgt     #0x8085878                                   ;8
08085876 E750     b       #0x808571A                                   ;8
08085878 B002     add     sp,#0x8                                      ;2
0808587A BC38     pop     {r3-r5}                                      ;17
0808587C 4698     mov     r8,r3                                        ;2
0808587E 46A1     mov     r9,r4                                        ;2
08085880 46AA     mov     r10,r5                                       ;2
08085882 BCF0     pop     {r4-r7}                                      ;21
08085884 BC01     pop     {r0}                                         ;9
08085886 4700     bx      r0                                           ;8

0x08616B22
0200 0100 0000 1500 0C00
0D00 1600 0900 1800 1700
1300 1200 1000 1100 1400
0E00 0700 0500 0300 0800
0A00 0B00 0400 0F00 0600

08085410 - Routine that determines what icon to display for a given firepower value.
9B - -10%
9C - -20%
9D - -30%
9E - Normal Firepower
9F - +10%
A0 - +15%
A1 - +20%
A2 - +30%
A3 - +40%
A4 - +50%
A5 - +60%
A6 - +70%
A7 - +75%

For Hack:

9E - Normal Firepower
9F - +10%
A1 - +20%
A2 - +30%
A3 - +40%
A4 - +50%
A5 - +60%
A6 - +70%
9B - +80%
9C - +90%
9D - +100%
A0 - +15%
A7 - +75%

New Gatherer for offence
08085410 B500     push    {r14}                                        ;10
08085412 1C0A     mov     r2,r1                                        ;2
08085414 491A     ldr     r1,=#0x8499598                               ;9
08085416 680B     ldr     r3,[r1]                                      ;9
08085418 0101     lsl     r1,r0,#0x4                                   ;2
0808541A 1A09     sub     r1,r1,r0                                     ;2
0808541C 0089     lsl     r1,r1,#0x2                                   ;2
0808541E 18C9     add     r1,r1,r3                                     ;2
08085420 7F48     ldrb    r0,[r1,#0x1D]                                ;7
08085422 7F89     ldrb    r1,[r1,#0x1E]                                ;7
08085424 F7BDFE44 bl      #0x80430B0                                   ;10
08085428 2864     cmp     r0,#0x64                                     ;2
0808542A DB01     blt     #0x8085430                                   ;8
0808542C 209D     mov     r0,#0x9D                                     ;2
0808542E E024     b       #0x808547A                                   ;8
08085430 285A     cmp     r0,#0x5A                                     ;2
08085432 DB01     blt     #0x8085438                                   ;8
08085434 209C     mov     r0,#0x9C                                     ;2
08085436 E020     b       #0x808547A                                   ;8
08085438 2850     cmp     r0,#0x50                                     ;2
0808543A DB01     blt     #0x8085440                                   ;8
0808543C 209B     mov     r0,#0x9B                                     ;2
0808543E E01C     b       #0x808547A                                   ;8
08085440 2846     cmp     r0,#0x46                                     ;2
08085442 DB01     blt     #0x8085448                                   ;8
08085444 20A6     mov     r0,#0xA6                                     ;2
08085446 E018     b       #0x808547A                                   ;8
08085448 283C     cmp     r0,#0x3C                                     ;2
0808544A DB01     blt     #0x8085450                                   ;8
0808544C 20A5     mov     r0,#0xA5                                     ;2
0808544E E014     b       #0x808547A                                   ;8
08085450 2832     cmp     r0,#0x32                                     ;2
08085452 DB01     blt     #0x8085458                                   ;8
08085454 20A4     mov     r0,#0xA4                                     ;2
08085456 E010     b       #0x808547A                                   ;8
08085458 2828     cmp     r0,#0x28                                     ;2
0808545A DB01     blt     #0x8085460                                   ;8
0808545C 20A3     mov     r0,#0xA3                                     ;2
0808545E E00C     b       #0x808547A                                   ;8
08085460 281E     cmp     r0,#0x1E                                     ;2
08085462 DB01     blt     #0x8085468                                   ;8
08085464 20A2     mov     r0,#0xA2                                     ;2
08085466 E008     b       #0x808547A                                   ;8
08085468 2814     cmp     r0,#0x14                                     ;2
0808546A DB01     blt     #0x8085470                                   ;8
0808546C 20A1     mov     r0,#0xA1                                     ;2
0808546E E004     b       #0x808547A                                   ;8
08085470 280A     cmp     r0,#0xA                                      ;2
08085472 DB01     blt     #0x8085478                                   ;8
08085474 209F     mov     r0,#0x9F                                     ;2
08085476 E000     b       #0x808547A                                   ;8
08085478 209E     mov     r0,#0x9E                                     ;2
0808547A BC02     pop     {r1}                                         ;9
0808547C 4708     bx      r1                                           ;8
0808547E 0000     lsl     r0,r0,#0x0                                   ;2
08085480 9598     str     r5,[sp,#0x260]                               ;5
08085482 0849     lsr     r1,r1,#0x1                                   ;2

08085410 00 B5 0A 1C 1A 49 0B 68 01 01 09 1A 89 00 C9 18  .....I.h........ 
08085420 48 7F 89 7F BD F7 44 FE 64 28 01 DB 9D 20 24 E0  H...D.d(... $. 
08085430 5A 28 01 DB 9C 20 20 E0 50 28 01 DB 9B 20 1C E0  Z(...  .P(... .. 
08085440 46 28 01 DB A6 20 18 E0 3C 28 01 DB A5 20 14 E0  F(... ..<(... .. 
08085450 32 28 01 DB A4 20 10 E0 28 28 01 DB A3 20 0C E0  2(... ..((... .. 
08085460 1E 28 01 DB A2 20 08 E0 14 28 01 DB A1 20 04 E0  .(... ...(... .. 
08085470 0A 28 01 DB 9F 20 00 E0 9E 20 02 BC 08 47 00 00  .(... ... ...G.. 
08085480 98 95 49 08 04 E0 FF FF FF FF FF FF FF FF FF FF  ..I............. 

Freed Space: 08085484 - 08085636
080857A8 ldr r5, 8499598

080857E0 - E4 NOP

08085842 - 46 NOP

080857E0 4648     mov     r0,r9                                        ;2
080857E2 1C31     mov     r1,r6                                        ;2
080857E4 F7FFFF5C bl      #0x80856A0                                   ;10
080857E8 46C0     nop
080857EA 3803     sub r0, 0x3

080857A8 E672     b 08085490

08085490 4648     mov     r0,r9                                        ;2
08085492 1C31     mov     r1,r6                                        ;2
08085494 F000F814 bl      #0x80854C0                                   ;10
08085498 1C04     mov     r4,r0                                        ;2
0808549A 4640     mov     r0,r8                                        ;2
0808549C 2105     mov     r1,#0x5                                      ;2
0808549E F005FB07 bl      #0x808AAB0                                   ;10
080854A2 4651     mov     r1,r10                                       ;2
080854A4 4341     mul     r1,r0                                        ;3
080854A6 311A     add     r1,#0x1A                                     ;2
080854A8 2201     mov     r2,#0x1                                      ;2
080854AA 9200     str     r2,[sp]                                      ;5
080854AC 1C20     mov     r0,r4                                        ;2
080854AE 1C2A     mov     r2,r5                                        ;2
080854B0 3204     add     r2,#0x4                                      ;2
080854B2 2300     mov     r3,#0x0                                      ;2
080854B4 F799FF4A bl      #0x801F34C                                   ;10
080854B8 4D00     ldr     r5,=#0x8499598                               ;9
080854BA E176     b       #0x80857AA                                   ;8
080854BC 9598     str     r5,[sp,#0x260]                               ;5
080854BE 0849     lsr     r1,r1,#0x1                                   ;2
080854C0 B500     push    {r14}                                        ;5
080854C2 1C0A     mov     r2,r1                                        ;2
080854C4 4905     ldr     r1,=#0x8499598                               ;9
080854C6 680B     ldr     r3,[r1]                                      ;4
080854C8 0101     lsl     r1,r0,#0x4                                   ;2
080854CA 1A09     sub     r1,r1,r0                                     ;2
080854CC 0089     lsl     r1,r1,#0x2                                   ;2
080854CE 18C9     add     r1,r1,r3                                     ;2
080854D0 7F48     ldrb    r0,[r1,#0x1D]                                ;4
080854D2 7F89     ldrb    r1,[r1,#0x1E]                                ;4
080854D4 F7BDFE24 bl      #0x8043120                                   ;10
080854D8 E7A6     b       #0x8085428                                   ;8
080854DA 0000     lsl     r0,r0,#0x0                                   ;2
080854DC 9598     str     r5,[sp,#0x260]                               ;5
080854DE 0849     lsr     r1,r1,#0x1                                   ;2

08085490 48 46 31 1C 00 F0 14 F8 04 1C 40 46 05 21 05 F0  HF1.......@F.!.. 
080854A0 07 FB 51 46 41 43 1A 31 01 22 00 92 20 1C 2A 1C  ..QFAC.1.".. .*. 
080854B0 04 32 00 23 99 F7 4A FF 00 4D 76 E1 98 95 49 08  .2.#..J..Mv...I. 
080854C0 00 B5 0A 1C 05 49 0B 68 01 01 09 1A 89 00 C9 18  .....I.h........ 
080854D0 48 7F 89 7F BD F7 24 FE A6 E7 00 00 98 95 49 08  H...$.......I. 

Custom Tilesets code.
Tileset changes with what the current weather ID is.

080233BE 4846     ldr     r0,=#0x8701161                               ;9
080233C0 4700     bx      r0                                           ;8

080234D8 Pointer

08035030 4805     ldr     r0,=#0x87011A1                               ;9
08035032 4700     bx      r0                                           ;8
080324D8 - Pointer

08021D66 4901     ldr     r1,=#0x8701101                               ;9
08021D68 4708     bx      r1                                           ;8
08021D6A 0000     lsl     r0,r0,#0x0                                   ;2
08021D6C 0001     lsl     r1,r0,#0x0                                   ;2
08021D6E 0870     lsr     r0,r6,#0x1                                   ;2

08021DA2 4901     ldr     r1,=#0x8701131                               ;9
08021DA4 4708     bx      r1                                           ;8
08021DA6 0000     lsl     r0,r0,#0x0                                   ;2
08021DA8 0031     lsl     r1,r6,#0x0                                   ;2
08021DAA 0870     lsr     r0,r6,#0x1  

08701100 4905     ldr     r1,=#0x3033FEC                               ;9
08701102 7809     ldrb    r1,[r1]                                      ;4
08701104 4B05     ldr     r3,=#0x8701120                               ;9
08701106 0089     lsl     r1,r1,#0x2                                   ;2
08701108 18C9     add     r1,r1,r3                                     ;2
0870110A 6809     ldr     r1,[r1]                                      ;4
0870110C 0303     lsl     r3,r0,#0xC                                   ;2
0870110E 185B     add     r3,r3,r1                                     ;2
08701110 4900     ldr     r1,=#0x8021D71                               ;9
08701112 4708     bx      r1                                           ;8
08701114 1D71     add     r1,r6,5                                      ;2
08701116 0802     lsr     r2,r0,#0x20                                  ;2
08701118 3FEC     sub     r7,#0xEC                                     ;2
0870111A 0303     lsl     r3,r0,#0xC                                   ;2
0870111C 0020     lsl     r0,r4,#0x0                                   ;2
0870111E 0870     lsr     r0,r6,#0x1                                   ;2
08701120 FFFFFFFF ????                                                 ;10
08701122 FFFF1FC4 ????                                                 ;10
08701124 1FC4     sub     r4,r0,7                                      ;2
08701126 080C     lsr     r4,r1,#0x20                                  ;2
08701128 1FC4     sub     r4,r0,7                                      ;2
0870112A 080C     lsr     r4,r1,#0x20                                  ;2
0870112C FFFFFFFF ????                                                 ;10
0870112E FFFF4905 ????                                                 ;10
08701130 4905     ldr     r1,=#0x3033FEC                               ;9
08701132 7809     ldrb    r1,[r1]                                      ;4
08701134 4B05     ldr     r3,=#0x8701150                               ;9
08701136 0089     lsl     r1,r1,#0x2                                   ;2
08701138 18C9     add     r1,r1,r3                                     ;2
0870113A 6809     ldr     r1,[r1]                                      ;4
0870113C 0043     lsl     r3,r0,#0x1                                   ;2
0870113E 181B     add     r3,r3,r0                                     ;2
08701140 4800     ldr     r0,=#0x8021DAD                               ;9
08701142 4700     bx      r0                                           ;8
08701144 1DAD     add     r5,r5,6                                      ;2
08701146 0802     lsr     r2,r0,#0x20                                  ;2
08701148 3FEC     sub     r7,#0xEC                                     ;2
0870114A 0303     lsl     r3,r0,#0xC                                   ;2
0870114C 0050     lsl     r0,r2,#0x1                                   ;2
0870114E 0870     lsr     r0,r6,#0x1                                   ;2
08701150 FFFFFFFF ????                                                 ;10
08701152 FFFF9FC4 ????                                                 ;10
08701154 9FC4     ldr     r7,[sp,#0x310]                               ;4
08701156 080C     lsr     r4,r1,#0x20                                  ;2
08701158 9FC4     ldr     r7,[sp,#0x310]                               ;4
0870115A 080C     lsr     r4,r1,#0x20                                  ;2
0870115C FFFFFFFF ????                                                 ;10
0870115E FFFF4905 ????                                                 ;10
08701160 4905     ldr     r1,=#0x3033FEC                               ;9
08701162 7809     ldrb    r1,[r1]                                      ;4
08701164 4805     ldr     r0,=#0x8701190                               ;9
08701166 0089     lsl     r1,r1,#0x2                                   ;2
08701168 1840     add     r0,r0,r1                                     ;2
0870116A 6800     ldr     r0,[r0]                                      ;4
0870116C F000F808 bl      #0x8701180                                   ;10
08701170 4900     ldr     r1,=#0x80233C7                               ;9
08701172 4708     bx      r1                                           ;8
08701174 33C7     add     r3,#0xC7                                     ;2
08701176 0802     lsr     r2,r0,#0x20                                  ;2
08701178 3FEC     sub     r7,#0xEC                                     ;2
0870117A 0303     lsl     r3,r0,#0xC                                   ;2
0870117C 0090     lsl     r0,r2,#0x2                                   ;2
0870117E 0870     lsr     r0,r6,#0x1                                   ;2
08701180 4B01     ldr     r3,=#0x8011CAD                               ;9
08701182 4902     ldr     r1,=#0x6008000                               ;9
08701184 4718     bx      r3                                           ;8
08701186 0000     lsl     r0,r0,#0x0                                   ;2
08701188 1CAD     add     r5,r5,2                                      ;2
0870118A 0801     lsr     r1,r0,#0x20                                  ;2
0870118C 8000     strh    r0,[r0]                                      ;5
0870118E 0600     lsl     r0,r0,#0x18                                  ;2
08701190 D1EC     bne     #0x870006C                                   ;8
08701192 080B     lsr     r3,r1,#0x20                                  ;2
08701194 D1EC     bne     #0x8700070                                   ;8
08701196 080B     lsr     r3,r1,#0x20                                  ;2
08701198 D1EC     bne     #0x8700074                                   ;8
0870119A 080B     lsr     r3,r1,#0x20                                  ;2
0870119C D1EC     bne     #0x8700078                                   ;8
0870119E 080B     lsr     r3,r1,#0x20                                  ;2
087011A0 4803     ldr     r0,=#0x87011C0                               ;9
087011A2 00A4     lsl     r4,r4,#0x2                                   ;2
087011A4 1824     add     r4,r4,r0                                     ;2
087011A6 6820     ldr     r0,[r4]                                      ;4
087011A8 2280     mov     r2,#0x80                                     ;2
087011AA 0052     lsl     r2,r2,#0x1                                   ;2
087011AC 4901     ldr     r1,=#0x803503D                               ;9
087011AE 4708     bx      r1                                           ;8
087011B0 00C0     lsl     r0,r0,#0x3                                   ;2
087011B2 0870     lsr     r0,r6,#0x1                                   ;2
087011B4 503D     str     r5,[r7,r0]                                   ;5
087011B6 0803     lsr     r3,r0,#0x20                                  ;2
087011B8 FFFFFFFF ????                                                 ;10
087011BA FFFFFFFF ????                                                 ;10
087011BC FFFFFFFF ????                                                 ;10
087011BE FFFFF8C4 ????                                                 ;10
087011C0 F8C4080B ????                                                 ;10
087011C2 080B     lsr     r3,r1,#0x20                                  ;2
087011C4 FAC4080B ????                                                 ;10
087011C6 080B     lsr     r3,r1,#0x20                                  ;2
087011C8 F9C4080B ????                                                 ;10
087011CA 080B     lsr     r3,r1,#0x20                                  ;2

Name IDs for Weapons:
M-Gun 2258
Cannon 2259
Missiles 2260
Bazooka 2261
Rockets 2262
Bombs 2263
Torps 2264
Vulcan 2265
None 2266
Depth Charge 2267

Bike
6049EC - 6049E5 Infantry
6049F4 - 6049EE - Hvytank
6049FC - 6049F7 - Md Tank
604A04 - 604A00 - Tank
604A0C - 604A05 - Railcannon
604A14 - 604A12 - APC
604A18 - 604A16 - Artillery
604A30 - 604A31 - Missiles
604A3C - 604A3A - Fighter
604A44 - 604A42 - Bomber
604A4C - 604A49 - S-Copter
604A54 - 604A52 - T-Copter
604A74 - 604A73 - Sub
604A78 - 604A77 - A-Tank
604A80 - 604A7F - Destroyer

0862460 - Start of Effectiveness charts

06 0000 0101 0201 07

062 24 60 - Effectiveness panels

08 62 30 00 - FW Animation for Tileset.

v60

08701200 - New Design Maps Load/Save Stuff
08701200 - Menu Tables for Save Menu (11 Slots potentially)
08701400 - Menu Tables for Load Menu

Bugfix - Large Units and display damage

Display Damage
08024E16 - mov r1, 0x16 2116
08024E22 - strh r0, [r4, 0x16] 82E0
08024E2E - strh r0, [r4, 0x16] 82E0

Large Unit code for actual damage formula

08024E76 4901     ldr     r1,=#0x8700071                               ;9
08024E78 4708     bx      r1                                           ;8
08024E7A 0000     lsl     r0,r0,#0x0                                   ;2
08024E7C 0071     lsl     r1,r6,#0x1                                   ;2
08024E7E 0870     lsr     r0,r6,#0x1                                   ;2

08700070 B401     push    {r0}                                         ;5
08700072 6829     ldr     r1,[r5]                                      ;4
08700074 7809     ldrb    r1,[r1]                                      ;4
08700076 4A0D     ldr     r2,=#0x8619670                               ;9
08700078 1852     add     r2,r2,r1                                     ;2
0870007A 7812     ldrb    r2,[r2]                                      ;4
0870007C 2164     mov     r1,#0x64                                     ;2
0870007E 46C0     nop                                                  ;2
08700080 1A08     sub     r0,r1,r0                                     ;2
08700082 4350     mul     r0,r2                                        ;3
08700084 2119     mov     r1,#0x19                                     ;2
08700086 DF06     swi     #0x6    ;Div                                 ;8
08700088 BC02     pop     {r1}                                         ;4
0870008A 1840     add     r0,r0,r1                                     ;2
0870008C 3801     sub     r0,#0x1                                      ;2
0870008E 210A     mov     r1,#0xA                                      ;2
08700090 DF06     swi     #0x6    ;Div                                 ;8
08700092 220C     mov     r2,#0xC                                      ;2
08700094 5EA9     ldsh    r1,[r5,r2]                                   ;4
08700096 3001     add     r0,#0x1                                      ;2
08700098 4348     mul     r0,r1                                        ;3
0870009A 4901     ldr     r1,=#0x8024E8B                               ;9
0870009C 4708     bx      r1                                           ;8
0870009E FFFF4E8B ????                                                 ;10
087000A0 4E8B     ldr     r6,=#0x30013B0                               ;9
087000A2 0802     lsr     r2,r0,#0x20                                  ;2
087000A4 FFFFFFFF ????                                                 ;10
087000A6 FFFFFFFF ????                                                 ;10
087000A8 FFFFFFFF ????                                                 ;10
087000AA FFFF9670 ????                                                 ;10
087000AC 9670     str     r6,[sp,#0x1C0]                               ;5
087000AE 0861     lsr     r1,r4,#0x1                                   ;2

push r14
mov r0, x
bl 08005474
pop r1
bx r1

Misc Maps Code
0800548E E00A     b       #0x80054A6                                   ;8

080054A6 4804     ldr     r0,=#0x200B0B0                               ;9
080054A8 6802     ldr     r2,[r0]                                      ;4
080054AA 8811     ldrh    r1,[r2]                                      ;4
080054AC 2080     mov     r0,#0x80                                     ;2
080054AE 0080     lsl     r0,r0,#0x2                                   ;2
080054B0 40A0     lsl     r0,r4                                        ;3
080054B2 1C04     mov     r4,r0                                        ;2
080054B4 4308     orr     r0,r1                                        ;2
080054B6 E038     b       #0x800552A                                   ;8

Replacement 0x4 Code for Load Maps
08701600 B500     push    {r14}                                        ;10
08701602 2004     mov     r0,#0x4                                      ;2
08701604 F000F80C bl      #0x8701620                                   ;10
08701608 BC02     pop     {r1}                                         ;9
0870160A 4708     bx      r1                                           ;8
0870160C B500     push    {r14}                                        ;5
0870160E 2005     mov     r0,#0x5                                      ;2
08701610 F000F806 bl      #0x8701620                                   ;10
08701614 BC02     pop     {r1}                                         ;9
08701616 4708     bx      r1                                           ;8
08701618 FFFFFFFF ????                                                 ;10
0870161A FFFFFFFF ????                                                 ;10
0870161C FFFFFFFF ????                                                 ;10
0870161E FFFF4900 ????                                                 ;10
08701620 4900     ldr     r1,=#0x8005475                               ;9
08701622 4708     bx      r1                                           ;8
08701624 5475     strb    r5,[r6,r1]                                   ;5
08701626 0800     lsr     r0,r0,#0x20                                  ;2

Replacement 0x14 Code for Load Maps
08701630 B510     push    {r4,r14}                                     ;6
08701632 0612     lsl     r2,r2,#0x18                                  ;2
08701634 0E12     lsr     r2,r2,#0x18                                  ;2
08701636 4C0C     ldr     r4,=#0x200B0B0                               ;9
08701638 6820     ldr     r0,[r4]                                      ;4
0870163A 8801     ldrh    r1,[r0]                                      ;7
0870163C 2080     mov     r0,#0x80                                     ;2
0870163E 0180     lsl     r0,r0,#0x6                                   ;2
08701640 4008     and     r0,r1                                        ;2
08701642 2800     cmp     r0,#0x0                                      ;2
08701644 D00B     beq     #0x870165E                                   ;2
08701646 2A02     cmp     r2,#0x2                                      ;2
08701648 D00B     beq     #0x8701662                                   ;8
0870164A F000F831 bl      #0x87016B0                                   ;10
0870164E 6821     ldr     r1,[r4]                                      ;4
08701650 2000     mov     r0,#0x0                                      ;2
08701652 7408     strb    r0,[r1,#0x10]                                ;5
08701654 F000F834 bl      #0x87016C0                                   ;10
08701658 6821     ldr     r1,[r4]                                      ;4
0870165A 2007     mov     r0,#0x7                                      ;2
0870165C 8048     strh    r0,[r1,#0x2]                                 ;5
0870165E BC10     pop     {r4}                                         ;4
08701660 BC01     pop     {r0}                                         ;4
08701662 4700     bx      r0                                           ;8
08701664 FFFFFFFF ????                                                 ;10
08701666 FFFFB0B0 ????                                                 ;10
08701668 B0B0     add     sp,-#0xC0                                    ;2
0870166A 0200     lsl     r0,r0,#0x8                                   ;2
0870166C FFFFFFFF ????                                                 ;10
0870166E FFFFB510 ????                                                 ;10
08701670 B510     push    {r4,r14}                                     ;14
08701672 0612     lsl     r2,r2,#0x18                                  ;2
08701674 0E12     lsr     r2,r2,#0x18                                  ;2
08701676 4C0C     ldr     r4,=#0x200B0B0                               ;9
08701678 6820     ldr     r0,[r4]                                      ;4
0870167A 8801     ldrh    r1,[r0]                                      ;7
0870167C 2080     mov     r0,#0x80                                     ;2
0870167E 01C0     lsl     r0,r0,#0x7                                   ;2
08701680 4008     and     r0,r1                                        ;2
08701682 2800     cmp     r0,#0x0                                      ;2
08701684 D00B     beq     #0x870169E                                   ;2
08701686 2A02     cmp     r2,#0x2                                      ;2
08701688 D00B     beq     #0x87016A2                                   ;8
0870168A F000F811 bl      #0x87016B0                                   ;10
0870168E 6821     ldr     r1,[r4]                                      ;4
08701690 2000     mov     r0,#0x0                                      ;2
08701692 7408     strb    r0,[r1,#0x10]                                ;5
08701694 F000F814 bl      #0x87016C0                                   ;10
08701698 6821     ldr     r1,[r4]                                      ;4
0870169A 2007     mov     r0,#0x7                                      ;2
0870169C 8048     strh    r0,[r1,#0x2]                                 ;5
0870169E BC10     pop     {r4}                                         ;4
087016A0 BC01     pop     {r0}                                         ;4
087016A2 4700     bx      r0                                           ;8
087016A4 FFFFFFFF ????                                                 ;10
087016A6 FFFFB0B0 ????                                                 ;10
087016A8 B0B0     add     sp,-#0xC0                                    ;2
087016AA 0200     lsl     r0,r0,#0x8                                   ;2
087016AC FFFFFFFF ????                                                 ;10
087016AE FFFF4800 ????                                                 ;10
087016B0 4800     ldr     r0,=#0x801A169                               ;9
087016B2 4700     bx      r0                                           ;8
087016B4 A169     add     r1,=#0x870185C                               ;2
087016B6 0801     lsr     r1,r0,#0x20                                  ;2
087016B8 FFFFFFFF ????                                                 ;10
087016BA FFFFFFFF ????                                                 ;10
087016BC FFFFFFFF ????                                                 ;10
087016BE FFFFB570 ????                                                 ;10
087016C0 B570     push    {r4-r6,r14}                                  ;22
087016C2 1C06     mov     r6,r0                                        ;2
087016C4 4801     ldr     r0,=#0x80152F1                               ;9
087016C6 4700     bx      r0                                           ;8
087016C8 0000     lsl     r0,r0,#0x0                                   ;2
087016CA 0000     lsl     r0,r0,#0x0                                   ;2
087016CC 52F1     strh    r1,[r6,r3]                                   ;13
087016CE 0801     lsr     r1,r0,#0x20                                  ;2

Replacement 0xC code
087016E0 B510     push    {r4,r14}                                     ;6
087016E2 B082     add     sp,-#0x8                                     ;2
087016E4 4901     ldr     r1,=#0x200B204                               ;9
087016E6 2004     mov     r0,#0x4                                      ;2
087016E8 E00A     b       #0x8701700                                   ;8
087016EA FFFFB204 ????                                                 ;10
087016EC B204     ????                                                 ;8
087016EE 0200     lsl     r0,r0,#0x8                                   ;2
087016F0 B510     push    {r4,r14}                                     ;14
087016F2 B082     add     sp,-#0x8                                     ;2
087016F4 4901     ldr     r1,=#0x200B204                               ;9
087016F6 2004     mov     r0,#0x4                                      ;2
087016F8 E002     b       #0x8701700                                   ;8
087016FA FFFFB204 ????                                                 ;10
087016FC B204     ????                                                 ;8
087016FE 0200     lsl     r0,r0,#0x8                                   ;2
08701700 4B00     ldr     r3,=#0x80056B9                               ;9
08701702 4718     bx      r3                                           ;8
08701704 56B9     ldsb    r1,[r7,r2]                                   ;4
08701706 0800     lsr     r0,r0,#0x20                                  ;2

Now for Save Maps
0x4 Code, 0x14 Code. Same 0xC code as Load Maps.
08701710 B500     push    {r14}                                        ;5
08701712 2004     mov     r0,#0x4                                      ;2
08701714 F000F80C bl      #0x8701730                                   ;10
08701718 BC02     pop     {r1}                                         ;9
0870171A 4708     bx      r1                                           ;8
0870171C FFFFFFFF ????                                                 ;10
0870171E FFFFB500 ????                                                 ;10
08701720 B500     push    {r14}                                        ;5
08701722 2005     mov     r0,#0x5                                      ;2
08701724 F000F804 bl      #0x8701730                                   ;10
08701728 BC02     pop     {r1}                                         ;9
0870172A 4708     bx      r1                                           ;8
0870172C FFFFFFFF ????                                                 ;10
0870172E FFFF4900 ????                                                 ;10
08701730 4900     ldr     r1,=#0x8005475                               ;9
08701732 4708     bx      r1                                           ;8
08701734 5475     strb    r5,[r6,r1]                                   ;5
08701736 0800     lsr     r0,r0,#0x20                                  ;2
08701738 FFFFFFFF ????                                                 ;10
0870173A FFFFFFFF ????                                                 ;10
0870173C FFFFFFFF ????                                                 ;10
0870173E FFFFB530 ????                                                 ;10
08701740 B530     push    {r4,r5,r14}                                  ;7
08701742 4C16     ldr     r4,=#0x200B0B0                               ;9
08701744 6821     ldr     r1,[r4]                                      ;4
08701746 880A     ldrh    r2,[r1]                                      ;4
08701748 4815     ldr     r0,=#0xFEFF                                  ;9
0870174A 4010     and     r0,r2                                        ;2
0870174C 2500     mov     r5,#0x0                                      ;2
0870174E 8008     strh    r0,[r1]                                      ;5
08701750 2004     mov     r0,#0x4                                      ;2
08701752 7408     strb    r0,[r1,#0x10]                                ;5
08701754 6820     ldr     r0,[r4]                                      ;4
08701756 7C00     ldrb    r0,[r0,#0x10]                                ;4
08701758 4912     ldr     r1,=#0x200B204                               ;9
0870175A F000F8D1 bl      #0x8701900                                   ;10
0870175E 0600     lsl     r0,r0,#0x18                                  ;2
08701760 0E00     lsr     r0,r0,#0x18                                  ;2
08701762 2801     cmp     r0,#0x1                                      ;2
08701764 D02C     beq     #0x87017C0                                   ;8
08701766 6820     ldr     r0,[r4]                                      ;4
08701768 309C     add     r0,#0x9C                                     ;2
0870176A F000F8D1 bl      #0x8701910                                   ;10
0870176E 0600     lsl     r0,r0,#0x18                                  ;2
08701770 2800     cmp     r0,#0x0                                      ;2
08701772 D11F     bne     #0x87017B4                                   ;8
08701774 6820     ldr     r0,[r4]                                      ;4
08701776 309C     add     r0,#0x9C                                     ;2
08701778 490B     ldr     r1,=#0x8610A38                               ;9
0870177A 4A0C     ldr     r2,=#0x27FC                                  ;9
0870177C 1889     add     r1,r1,r2                                     ;2
0870177E 6809     ldr     r1,[r1]                                      ;4
08701780 F000F8CE bl      #0x8701920                                   ;10
08701784 6822     ldr     r2,[r4]                                      ;4
08701786 8810     ldrh    r0,[r2]                                      ;4
08701788 2380     mov     r3,#0x80                                     ;2
0870178A 005B     lsl     r3,r3,#0x1                                   ;2
0870178C 1C19     mov     r1,r3                                        ;2
0870178E 4308     orr     r0,r1                                        ;2
08701790 8010     strh    r0,[r2]                                      ;5
08701792 4807     ldr     r0,=#0x8488164                               ;9
08701794 F000F8CC bl      #0x8701930                                   ;10
08701798 E035     b       #0x8701806                                   ;8
0870179A 0000     lsl     r0,r0,#0x0                                   ;2
0870179C B0B0     add     sp,-#0xC0                                    ;2
0870179E 0200     lsl     r0,r0,#0x8                                   ;2
087017A0 FEFF0000 ????                                                 ;10
087017A2 0000     lsl     r0,r0,#0x0                                   ;2
087017A4 B204     ????                                                 ;8
087017A6 0200     lsl     r0,r0,#0x8                                   ;2
087017A8 0A38     lsr     r0,r7,#0x8                                   ;2
087017AA 0861     lsr     r1,r4,#0x1                                   ;2
087017AC 27FC     mov     r7,#0xFC                                     ;2
087017AE 0000     lsl     r0,r0,#0x0                                   ;2
087017B0 8164     strh    r4,[r4,#0xA]                                 ;5
087017B2 0848     lsr     r0,r1,#0x1                                   ;2
087017B4 4801     ldr     r0,=#0x84882E4                               ;9
087017B6 F000F8BB bl      #0x8701930                                   ;10
087017BA E024     b       #0x8701806                                   ;8
087017BC 82E4     strh    r4,[r4,#0x16]                                ;5
087017BE 0848     lsr     r0,r1,#0x1                                   ;2
087017C0 6820     ldr     r0,[r4]                                      ;4
087017C2 309C     add     r0,#0x9C                                     ;2
087017C4 F000F8A4 bl      #0x8701910                                   ;10
087017C8 0600     lsl     r0,r0,#0x18                                  ;2
087017CA 2800     cmp     r0,#0x0                                      ;2
087017CC D118     bne     #0x8701800                                   ;8
087017CE 6820     ldr     r0,[r4]                                      ;4
087017D0 309C     add     r0,#0x9C                                     ;2
087017D2 4908     ldr     r1,=#0x8610A38                               ;9
087017D4 4A08     ldr     r2,=#0x27FC                                  ;9
087017D6 1889     add     r1,r1,r2                                     ;2
087017D8 6809     ldr     r1,[r1]                                      ;4
087017DA F000F8A1 bl      #0x8701920                                   ;10
087017DE 6822     ldr     r2,[r4]                                      ;4
087017E0 8810     ldrh    r0,[r2]                                      ;4
087017E2 2380     mov     r3,#0x80                                     ;2
087017E4 019B     lsl     r3,r3,#0x6                                   ;2
087017E6 1C19     mov     r1,r3                                        ;2
087017E8 4308     orr     r0,r1                                        ;2
087017EA 8010     strh    r0,[r2]                                      ;5
087017EC 4803     ldr     r0,=#0x8488224                               ;9
087017EE F000F89F bl      #0x8701930                                   ;10
087017F2 E008     b       #0x8701806                                   ;8
087017F4 0A38     lsr     r0,r7,#0x8                                   ;2
087017F6 0861     lsr     r1,r4,#0x1                                   ;2
087017F8 27FC     mov     r7,#0xFC                                     ;2
087017FA 0000     lsl     r0,r0,#0x0                                   ;2
087017FC 8224     strh    r4,[r4,#0x10]                                ;5
087017FE 0848     lsr     r0,r1,#0x1                                   ;2
08701800 4802     ldr     r0,=#0x8488394                               ;9
08701802 F000F895 bl      #0x8701930                                   ;10
08701806 BC30     pop     {r4,r5}                                      ;13
08701808 BC01     pop     {r0}                                         ;9
0870180A 4700     bx      r0                                           ;8
0870180C 8394     strh    r4,[r2,#0x1C]                                ;5
0870180E 0848     lsr     r0,r1,#0x1                                   ;2
08701810 FFFFFFFF ????                                                 ;10
08701812 FFFFFFFF ????                                                 ;10
08701814 FFFFFFFF ????                                                 ;10
08701816 FFFFFFFF ????                                                 ;10
08701818 FFFFFFFF ????                                                 ;10
0870181A FFFFFFFF ????                                                 ;10
0870181C FFFFFFFF ????                                                 ;10
0870181E FFFFB530 ????                                                 ;10
08701820 B530     push    {r4,r5,r14}                                  ;7
08701822 4C16     ldr     r4,=#0x200B0B0                               ;9
08701824 6821     ldr     r1,[r4]                                      ;4
08701826 880A     ldrh    r2,[r1]                                      ;4
08701828 4815     ldr     r0,=#0xFEFF                                  ;9
0870182A 4010     and     r0,r2                                        ;2
0870182C 2500     mov     r5,#0x0                                      ;2
0870182E 8008     strh    r0,[r1]                                      ;5
08701830 2005     mov     r0,#0x5                                      ;2
08701832 7408     strb    r0,[r1,#0x10]                                ;5
08701834 6820     ldr     r0,[r4]                                      ;4
08701836 7C00     ldrb    r0,[r0,#0x10]                                ;4
08701838 4912     ldr     r1,=#0x200B204                               ;9
0870183A F000F861 bl      #0x8701900                                   ;10
0870183E 0600     lsl     r0,r0,#0x18                                  ;2
08701840 0E00     lsr     r0,r0,#0x18                                  ;2
08701842 2801     cmp     r0,#0x1                                      ;2
08701844 D02C     beq     #0x87018A0                                   ;8
08701846 6820     ldr     r0,[r4]                                      ;4
08701848 309C     add     r0,#0x9C                                     ;2
0870184A F000F861 bl      #0x8701910                                   ;10
0870184E 0600     lsl     r0,r0,#0x18                                  ;2
08701850 2800     cmp     r0,#0x0                                      ;2
08701852 D11F     bne     #0x8701894                                   ;8
08701854 6820     ldr     r0,[r4]                                      ;4
08701856 309C     add     r0,#0x9C                                     ;2
08701858 490B     ldr     r1,=#0x8610A38                               ;9
0870185A 4A0C     ldr     r2,=#0x27FC                                  ;9
0870185C 1889     add     r1,r1,r2                                     ;2
0870185E 6809     ldr     r1,[r1]                                      ;4
08701860 F000F85E bl      #0x8701920                                   ;10
08701864 6822     ldr     r2,[r4]                                      ;4
08701866 8810     ldrh    r0,[r2]                                      ;4
08701868 2380     mov     r3,#0x80                                     ;2
0870186A 005B     lsl     r3,r3,#0x1                                   ;2
0870186C 1C19     mov     r1,r3                                        ;2
0870186E 4308     orr     r0,r1                                        ;2
08701870 8010     strh    r0,[r2]                                      ;5
08701872 4807     ldr     r0,=#0x8488164                               ;9
08701874 F000F85C bl      #0x8701930                                   ;10
08701878 E035     b       #0x87018E6                                   ;8
0870187A 0000     lsl     r0,r0,#0x0                                   ;2
0870187C B0B0     add     sp,-#0xC0                                    ;2
0870187E 0200     lsl     r0,r0,#0x8                                   ;2
08701880 FEFF0000 ????                                                 ;10
08701882 0000     lsl     r0,r0,#0x0                                   ;2
08701884 B204     ????                                                 ;8
08701886 0200     lsl     r0,r0,#0x8                                   ;2
08701888 0A38     lsr     r0,r7,#0x8                                   ;2
0870188A 0861     lsr     r1,r4,#0x1                                   ;2
0870188C 27FC     mov     r7,#0xFC                                     ;2
0870188E 0000     lsl     r0,r0,#0x0                                   ;2
08701890 8164     strh    r4,[r4,#0xA]                                 ;5
08701892 0848     lsr     r0,r1,#0x1                                   ;2
08701894 4801     ldr     r0,=#0x84882E4                               ;9
08701896 F000F84B bl      #0x8701930                                   ;10
0870189A E024     b       #0x87018E6                                   ;8
0870189C 82E4     strh    r4,[r4,#0x16]                                ;5
0870189E 0848     lsr     r0,r1,#0x1                                   ;2
087018A0 6820     ldr     r0,[r4]                                      ;4
087018A2 309C     add     r0,#0x9C                                     ;2
087018A4 F000F834 bl      #0x8701910                                   ;10
087018A8 0600     lsl     r0,r0,#0x18                                  ;2
087018AA 2800     cmp     r0,#0x0                                      ;2
087018AC D118     bne     #0x87018E0                                   ;8
087018AE 6820     ldr     r0,[r4]                                      ;4
087018B0 309C     add     r0,#0x9C                                     ;2
087018B2 4908     ldr     r1,=#0x8610A38                               ;9
087018B4 4A08     ldr     r2,=#0x27FC                                  ;9
087018B6 1889     add     r1,r1,r2                                     ;2
087018B8 6809     ldr     r1,[r1]                                      ;4
087018BA F000F831 bl      #0x8701920                                   ;10
087018BE 6822     ldr     r2,[r4]                                      ;4
087018C0 8810     ldrh    r0,[r2]                                      ;4
087018C2 2380     mov     r3,#0x80                                     ;2
087018C4 005B     lsl     r3,r3,#0x1                                   ;2
087018C6 1C19     mov     r1,r3                                        ;2
087018C8 4308     orr     r0,r1                                        ;2
087018CA 8010     strh    r0,[r2]                                      ;5
087018CC 4803     ldr     r0,=#0x8488224                               ;9
087018CE F000F82F bl      #0x8701930                                   ;10
087018D2 E008     b       #0x87018E6                                   ;8
087018D4 0A38     lsr     r0,r7,#0x8                                   ;2
087018D6 0861     lsr     r1,r4,#0x1                                   ;2
087018D8 27FC     mov     r7,#0xFC                                     ;2
087018DA 0000     lsl     r0,r0,#0x0                                   ;2
087018DC 8224     strh    r4,[r4,#0x10]                                ;5
087018DE 0848     lsr     r0,r1,#0x1                                   ;2
087018E0 4802     ldr     r0,=#0x8488394                               ;9
087018E2 F000F825 bl      #0x8701930                                   ;10
087018E6 BC30     pop     {r4,r5}                                      ;13
087018E8 BC01     pop     {r0}                                         ;9
087018EA 4700     bx      r0                                           ;8
087018EC 8394     strh    r4,[r2,#0x1C]                                ;5
087018EE 0848     lsr     r0,r1,#0x1                                   ;2
087018F0 FFFFFFFF ????                                                 ;10
087018F2 FFFFFFFF ????                                                 ;10
087018F4 FFFFFFFF ????                                                 ;10
087018F6 FFFFFFFF ????                                                 ;10
087018F8 FFFFFFFF ????                                                 ;10
087018FA FFFFFFFF ????                                                 ;10
087018FC FFFFFFFF ????                                                 ;10
087018FE FFFF4B00 ????                                                 ;10
08701900 4B00     ldr     r3,=#0x803CCB9                               ;9
08701902 4718     bx      r3                                           ;8
08701904 CCB9     ldmia   r4!,{r0,r3-r5,r7}                            ;8
08701906 0803     lsr     r3,r0,#0x20                                  ;2
08701908 FFFFFFFF ????                                                 ;10
0870190A FFFFFFFF ????                                                 ;10
0870190C FFFFFFFF ????                                                 ;10
0870190E FFFF4900 ????                                                 ;10
08701910 4900     ldr     r1,=#0x80051ED                               ;9
08701912 4708     bx      r1                                           ;8
08701914 51ED     str     r5,[r5,r7]                                   ;5
08701916 0800     lsr     r0,r0,#0x20                                  ;2
08701918 FFFFFFFF ????                                                 ;10
0870191A FFFFFFFF ????                                                 ;10
0870191C FFFFFFFF ????                                                 ;10
0870191E FFFF4B00 ????                                                 ;10
08701920 4B00     ldr     r3,=#0x8004E39                               ;9
08701922 4718     bx      r3                                           ;8
08701924 4E39     ldr     r6,=#0xFFFFFFFF                              ;9
08701926 0800     lsr     r0,r0,#0x20                                  ;2
08701928 FFFFFFFF ????                                                 ;10
0870192A FFFFFFFF ????                                                 ;10
0870192C FFFFFFFF ????                                                 ;10
0870192E FFFF4900 ????                                                 ;10
08701930 4900     ldr     r1,=#0x80193B1                               ;9
08701932 4708     bx      r1                                           ;8
08701934 93B1     str     r3,[sp,#0x2C4]                               ;5
08701936 0801     lsr     r1,r0,#0x20                                  ;2

V61 - Tileset menu options
0803C012 E00F	 b #0x803C034

0803C26C 0000    nop
0803C270 E008    b #0x803C284
0803C286 E006	 b #0x803C296
0803C29A 1C18    mov r0, r3

08016E0C0 - ID orders
CC00 - Clear
CA00 - Snow
CD00 - Rain
C900 - Random (FW)

CO Specific Deployed Units - V62
0801973C 4800     ldr     r0,=#0x87019F1                               ;9
0801973E 4700     bx      r0                                           ;8
08019740 19F1     add     r1,r6,r7                                     ;2
08019742 0870     lsr     r0,r6,#0x1                                   ;2
08019744 0000     lsl     r0,r0,#0x0                                   ;2

08025C5A BC80     pop {r7}                                             ;9

087019F0 2AC0     cmp     r2,#0xC0                                     ;2
087019F2 DC05     bge     #0x8701A00                                   ;8
087019F4 7828     ldrb    r0,[r5]                                      ;7
087019F6 7869     ldrb    r1,[r5,#0x1]                                 ;7
087019F8 78AA     ldrb    r2,[r5,#0x2]                                 ;7
087019FA F000F851 bl      #0x8701AA0                                   ;10
087019FE E057     b       #0x8701AB0                                   ;8
08701A00 4812     ldr     r0,=#0x2022F90                               ;9
08701A02 4284     cmp     r4,r0                                        ;2
08701A04 DC0D     bge     #0x8701A22                                   ;8
08701A06 21C0     mov     r1,#0xC0                                     ;2
08701A08 0089     lsl     r1,r1,#0x2                                   ;2
08701A0A 1A40     sub     r0,r0,r1                                     ;2
08701A0C 4284     cmp     r4,r0                                        ;2
08701A0E DC06     bge     #0x8701A1E                                   ;8
08701A10 1A40     sub     r0,r0,r1                                     ;2
08701A12 4284     cmp     r4,r0                                        ;2
08701A14 DC01     bge     #0x8701A1A                                   ;8
08701A16 2000     mov     r0,#0x0                                      ;2
08701A18 E004     b       #0x8701A24                                   ;8
08701A1A 2001     mov     r0,#0x1                                      ;2
08701A1C E002     b       #0x8701A24                                   ;8
08701A1E 2002     mov     r0,#0x2                                      ;2
08701A20 E000     b       #0x8701A24                                   ;8
08701A22 2003     mov     r0,#0x3                                      ;2
08701A24 213C     mov     r1,#0x3C                                     ;2
08701A26 4348     mul     r0,r1                                        ;6
08701A28 4907     ldr     r1,=#0x20232DD                               ;9
08701A2A 1809     add     r1,r1,r0                                     ;2
08701A2C 7808     ldrb    r0,[r1]                                      ;4
08701A2E 30C0     add     r0,#0xC0                                     ;2
08701A30 4290     cmp     r0,r2                                        ;2
08701A32 D101     bne     #0x8701A38                                   ;8
08701A34 350C     add     r5,#0xC                                      ;2
08701A36 E7DD     b       #0x87019F4                                   ;8
08701A38 350C     add     r5,#0xC                                      ;2
08701A3A 4A01     ldr     r2,=#0x80197E1                               ;9
08701A3C 4710     bx      r2                                           ;8
08701A3E FFFF97E1 ????                                                 ;10
08701A40 97E1     str     r7,[sp,#0x384]                               ;5
08701A42 0801     lsr     r1,r0,#0x20                                  ;2
08701A44 FFFFFFFF ????                                                 ;10
08701A46 FFFF32DD ????                                                 ;10
08701A48 32DD     add     r2,#0xDD                                     ;2
08701A4A 0202     lsl     r2,r0,#0x8                                   ;2
08701A4C 2F90     cmp     r7,#0x90                                     ;2
08701A4E 0202     lsl     r2,r0,#0x8                                   ;2

08701AA0 B480     push    {r7}                                         ;5
08701AA2 4F01     ldr     r7,=#0x8025C5B                               ;9
08701AA4 4738     bx      r7                                           ;8
08701AA6 0000     lsl     r0,r0,#0x0                                   ;2
08701AA8 5C5B     ldrb    r3,[r3,r1]                                   ;7
08701AAA 0802     lsr     r2,r0,#0x20                                  ;2
08701AAC FFFFFFFF ????                                                 ;10
08701AAE FFFF4C00 ????                                                 ;10
08701AB0 4C00     ldr     r4,=#0x8019747                               ;9
08701AB2 4720     bx      r4                                           ;8
08701AB4 9747     str     r7,[sp,#0x11C]                               ;5
08701AB6 0801     lsr     r1,r0,#0x20                                  ;2

V65
Updated Maria's Resupply Logic

08700AFE 2805     cmp     r0,#0x5                                      ;2 //Percentage Charge that weaker effect activates on
08700B00 DB0C     blt     #0x8700B1C                                   ;8
08700B02 280A     cmp     r0,#0xA                                      ;2 //If Full Charge, Always activate daily
08700B04 DA34     bge     #0x8700B70                                   ;8
08700B06 2003     mov     r0,#0x3                                      ;2 //Divisor for which days activate weaker effect

V66
Updated graphics and palettes for stationary units to DoR versions
Updated Name list for units to full list (Graphics at 0x08620A00)
Updated pointers for name list for units: (0802A850 from 0849A354 to 08620A00)
Updated Name ID list for Units at 084888...
Updated table to allow all unit placement in Design Maps (08007998 Updated to 08622600)
Updated Design Maps Unit Placement lists:
0800648C: cmp r0, 0x18
08006494: sub r0, 0x19
08006282: cmp r5, 0x18
08006286: sub r5, 0x19
080062FA: add r5, 0x19
0800658A: add r0, 0x19