/* * homeSweetHome v1.0 * * Copyright (C) 2014 Excale * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2, as * published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. */ LDR R1, =0x1021E20C LDRH R0, [R1, #0x2] LDR R2, =0xE586 CMP R0, R2 SUBEQ R0, R1, #0x8 LDR R2, =0xE1A0 CMP R0, R2 LDREQ R0, =0x1021DA74 LDR R2, =0xE3A0 CMP R0, R2 LDREQ R0, =0x1021E730 LDR R2, =0x1AFF CMP R0, R2 SUBEQ R0, R1, #0x208 ADD R1, R1, #0x67000 LDR R2, =0xE350 CMP R0, R2 ADDEQ R0, R1, #0x230 MOV R2, #0xCA00 CMP R0, R2 SUBEQ R0, R1, #0x740 ADD R1, R1, #0x4 LDR R2, =0xE59F CMP R0, R2 ADDEQ R0, R1, #0x860 LDR R2, =0xE283 CMP R0, R2 SUBEQ R0, R1, #0xE0 MOV R1, #0 STR R1, [R0] BX LR