changeset 304:a46e191a980e

dsample-fw-disasm: Tx up/down functions located and analysed
author Mychaela Falconia <falcon@freecalypso.org>
date Sun, 06 Oct 2019 01:29:35 +0000
parents 3baaefa1e229
children da3e752cbed5
files dsample-fw-disasm
diffstat 1 files changed, 353 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dsample-fw-disasm	Sun Oct 06 00:36:11 2019 +0000
+++ b/dsample-fw-disasm	Sun Oct 06 01:29:35 2019 +0000
@@ -4927,6 +4927,359 @@
   812dac:	b001		add	sp, #4
   812dae:	4770		bx	lr
 
+$l1dmacro_tx_up:
+  812df0:	49f7		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812df2:	6808		ldr	r0, [r1, #0]
+  812df4:	1c82		add	r2, r0, #2
+  812df6:	600a		str	r2, [r1, #0]
+  812df8:	49cd		ldr	r1, =0x3309	; via 0x813130
+  812dfa:	8001		strh	r1, [r0, #0]
+  812dfc:	2014		mov	r0, #20	; 0x14
+  812dfe:	4957		ldr	r1, =0x83c0a1	; via 0x812f5c
+  812e00:	7809		ldrb	r1, [r1, #0]
+  812e02:	4348		mul	r0, r1
+  812e04:	4956		ldr	r1, =0x83c048	; via 0x812f60
+  812e06:	5a09		ldrh	r1, [r1, r0]
+  812e08:	20ab		mov	r0, #171	; 0xab
+  812e0a:	00c0		lsl	r0, r0, #3
+  812e0c:	4308		orr	r0, r1
+  812e0e:	49c9		ldr	r1, =0x83c09c	; via 0x813134
+  812e10:	6008		str	r0, [r1, #0]
+  812e12:	48ef		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812e14:	6801		ldr	r1, [r0, #0]
+  812e16:	1c8a		add	r2, r1, #2
+  812e18:	6002		str	r2, [r0, #0]
+  812e1a:	48c7		ldr	r0, =0x8004	; via 0x813138
+  812e1c:	4ac5		ldr	r2, =0x83c09c	; via 0x813134
+  812e1e:	6812		ldr	r2, [r2, #0]
+  812e20:	0a12		lsr	r2, r2, #8
+  812e22:	0612		lsl	r2, r2, #24
+  812e24:	0e12		lsr	r2, r2, #24
+  812e26:	0152		lsl	r2, r2, #5
+  812e28:	4310		orr	r0, r2
+  812e2a:	8008		strh	r0, [r1, #0]
+  812e2c:	48e8		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812e2e:	6801		ldr	r1, [r0, #0]
+  812e30:	1c8a		add	r2, r1, #2
+  812e32:	6002		str	r2, [r0, #0]
+  812e34:	48ef		ldr	r0, =0x8003	; via 0x8131f4
+  812e36:	4abf		ldr	r2, =0x83c09c	; via 0x813134
+  812e38:	6812		ldr	r2, [r2, #0]
+  812e3a:	0612		lsl	r2, r2, #24
+  812e3c:	0e12		lsr	r2, r2, #24
+  812e3e:	0152		lsl	r2, r2, #5
+  812e40:	4310		orr	r0, r2
+  812e42:	8008		strh	r0, [r1, #0]
+  812e44:	48e2		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812e46:	6801		ldr	r1, [r0, #0]
+  812e48:	1c8a		add	r2, r1, #2
+  812e4a:	6002		str	r2, [r0, #0]
+  812e4c:	484f		ldr	r0, =0x89e0	; via 0x812f8c
+  812e4e:	8008		strh	r0, [r1, #0]
+  812e50:	49df		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812e52:	6808		ldr	r0, [r1, #0]
+  812e54:	1c82		add	r2, r0, #2
+  812e56:	600a		str	r2, [r1, #0]
+  812e58:	49f2		ldr	r1, =0x8041	; via 0x813224
+  812e5a:	8001		strh	r1, [r0, #0]
+  812e5c:	48dc		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812e5e:	6801		ldr	r1, [r0, #0]
+  812e60:	1c8a		add	r2, r1, #2
+  812e62:	6002		str	r2, [r0, #0]
+  812e64:	48fa		ldr	r0, =0x333a	; via 0x813250
+  812e66:	8008		strh	r0, [r1, #0]
+  812e68:	49b2		ldr	r1, =0x83c09c	; via 0x813134
+  812e6a:	48ed		ldr	r0, =0x140753	; via 0x813220
+  812e6c:	6008		str	r0, [r1, #0]
+  812e6e:	48d8		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812e70:	6801		ldr	r1, [r0, #0]
+  812e72:	1c8a		add	r2, r1, #2
+  812e74:	6002		str	r2, [r0, #0]
+  812e76:	48b0		ldr	r0, =0x8004	; via 0x813138
+  812e78:	4aae		ldr	r2, =0x83c09c	; via 0x813134
+  812e7a:	6812		ldr	r2, [r2, #0]
+  812e7c:	0c12		lsr	r2, r2, #16
+  812e7e:	0612		lsl	r2, r2, #24
+  812e80:	0e12		lsr	r2, r2, #24
+  812e82:	0152		lsl	r2, r2, #5
+  812e84:	4310		orr	r0, r2
+  812e86:	8008		strh	r0, [r1, #0]
+  812e88:	49d1		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812e8a:	6808		ldr	r0, [r1, #0]
+  812e8c:	1c82		add	r2, r0, #2
+  812e8e:	600a		str	r2, [r1, #0]
+  812e90:	49d8		ldr	r1, =0x8003	; via 0x8131f4
+  812e92:	4aa8		ldr	r2, =0x83c09c	; via 0x813134
+  812e94:	6812		ldr	r2, [r2, #0]
+  812e96:	0a12		lsr	r2, r2, #8
+  812e98:	0612		lsl	r2, r2, #24
+  812e9a:	0e12		lsr	r2, r2, #24
+  812e9c:	0152		lsl	r2, r2, #5
+  812e9e:	4311		orr	r1, r2
+  812ea0:	8001		strh	r1, [r0, #0]
+  812ea2:	48cb		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812ea4:	6801		ldr	r1, [r0, #0]
+  812ea6:	1c8a		add	r2, r1, #2
+  812ea8:	6002		str	r2, [r0, #0]
+  812eaa:	48f4		ldr	r0, =0x8002	; via 0x81327c
+  812eac:	4aa1		ldr	r2, =0x83c09c	; via 0x813134
+  812eae:	6812		ldr	r2, [r2, #0]
+  812eb0:	0612		lsl	r2, r2, #24
+  812eb2:	0e12		lsr	r2, r2, #24
+  812eb4:	0152		lsl	r2, r2, #5
+  812eb6:	4310		orr	r0, r2
+  812eb8:	8008		strh	r0, [r1, #0]
+  812eba:	49c5		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812ebc:	6808		ldr	r0, [r1, #0]
+  812ebe:	1c82		add	r2, r0, #2
+  812ec0:	600a		str	r2, [r1, #0]
+  812ec2:	49f4		ldr	r1, =0x8ae0	; via 0x813294
+  812ec4:	8001		strh	r1, [r0, #0]
+  812ec6:	49c2		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812ec8:	6808		ldr	r0, [r1, #0]
+  812eca:	1c82		add	r2, r0, #2
+  812ecc:	600a		str	r2, [r1, #0]
+  812ece:	49d5		ldr	r1, =0x8041	; via 0x813224
+  812ed0:	8001		strh	r1, [r0, #0]
+  812ed2:	49bf		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812ed4:	6808		ldr	r0, [r1, #0]
+  812ed6:	1c82		add	r2, r0, #2
+  812ed8:	600a		str	r2, [r1, #0]
+  812eda:	49f4		ldr	r1, =0x3384	; via 0x8132ac
+  812edc:	8001		strh	r1, [r0, #0]
+  812ede:	49bc		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812ee0:	6808		ldr	r0, [r1, #0]
+  812ee2:	1c82		add	r2, r0, #2
+  812ee4:	600a		str	r2, [r1, #0]
+  812ee6:	49f2		ldr	r1, =0x9404	; via 0x8132b0
+  812ee8:	8001		strh	r1, [r0, #0]
+  812eea:	49b9		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812eec:	6808		ldr	r0, [r1, #0]
+  812eee:	1c82		add	r2, r0, #2
+  812ef0:	600a		str	r2, [r1, #0]
+  812ef2:	4950		ldr	r1, =0x80c0	; via 0x813034
+  812ef4:	8001		strh	r1, [r0, #0]
+  812ef6:	49b6		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812ef8:	6808		ldr	r0, [r1, #0]
+  812efa:	1c82		add	r2, r0, #2
+  812efc:	600a		str	r2, [r1, #0]
+  812efe:	49c9		ldr	r1, =0x8041	; via 0x813224
+  812f00:	8001		strh	r1, [r0, #0]
+  812f02:	49b3		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812f04:	6808		ldr	r0, [r1, #0]
+  812f06:	1c82		add	r2, r0, #2
+  812f08:	600a		str	r2, [r1, #0]
+  812f0a:	49f3		ldr	r1, =0x2010	; via 0x8132d8
+  812f0c:	8001		strh	r1, [r0, #0]
+  812f0e:	48b0		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812f10:	6801		ldr	r1, [r0, #0]
+  812f12:	1c8a		add	r2, r1, #2
+  812f14:	6002		str	r2, [r0, #0]
+  812f16:	2014		mov	r0, #20	; 0x14
+  812f18:	4a10		ldr	r2, =0x83c0a1	; via 0x812f5c
+  812f1a:	7812		ldrb	r2, [r2, #0]
+  812f1c:	4350		mul	r0, r2
+  812f1e:	4aef		ldr	r2, =0x83c04c	; via 0x8132dc
+  812f20:	5c12		ldrb	r2, [r2, r0]
+  812f22:	2001		mov	r0, #1
+  812f24:	4310		orr	r0, r2
+  812f26:	0142		lsl	r2, r0, #5
+  812f28:	4852		ldr	r0, =0x8006	; via 0x813074
+  812f2a:	4310		orr	r0, r2
+  812f2c:	8008		strh	r0, [r1, #0]
+  812f2e:	48a8		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812f30:	6801		ldr	r1, [r0, #0]
+  812f32:	1c8a		add	r2, r1, #2
+  812f34:	6002		str	r2, [r0, #0]
+  812f36:	48f6		ldr	r0, =0x2018	; via 0x813310
+  812f38:	8008		strh	r0, [r1, #0]
+  812f3a:	48a5		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812f3c:	6802		ldr	r2, [r0, #0]
+  812f3e:	1c91		add	r1, r2, #2
+  812f40:	6001		str	r1, [r0, #0]
+  812f42:	2014		mov	r0, #20	; 0x14
+  812f44:	49f3		ldr	r1, =0x83c0a1	; via 0x813314
+  812f46:	7809		ldrb	r1, [r1, #0]
+  812f48:	4348		mul	r0, r1
+  812f4a:	49e4		ldr	r1, =0x83c04c	; via 0x8132dc
+  812f4c:	5c09		ldrb	r1, [r1, r0]
+  812f4e:	2021		mov	r0, #33	; 0x21
+  812f50:	4308		orr	r0, r1
+  812f52:	0140		lsl	r0, r0, #5
+  812f54:	4947		ldr	r1, =0x8006	; via 0x813074
+  812f56:	4301		orr	r1, r0
+  812f58:	8011		strh	r1, [r2, #0]
+  812f5a:	4770		bx	lr
+
+$l1dmacro_tx_down:
+  812f90:	b500		push	{lr}
+  812f92:	b082		sub	sp, #8
+  812f94:	466b		mov	r3, sp
+  812f96:	715a		strb	r2, [r3, #5]
+  812f98:	466a		mov	r2, sp
+  812f9a:	7111		strb	r1, [r2, #4]
+  812f9c:	9000		str	r0, [sp, #0]
+  812f9e:	4668		mov	r0, sp
+  812fa0:	7940		ldrb	r0, [r0, #5]
+  812fa2:	2803		cmp	r0, #3
+  812fa4:	d103		bne	0x812fae
+  812fa6:	9800		ldr	r0, [sp, #0]
+  812fa8:	382c		sub	r0, #44	; 0x2c
+  812faa:	f000 fdbb	bl	0x813b24	; $l1dmacro_adc_read_tx
+  812fae:	4888		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812fb0:	6802		ldr	r2, [r0, #0]
+  812fb2:	1c91		add	r1, r2, #2
+  812fb4:	6001		str	r1, [r0, #0]
+  812fb6:	2001		mov	r0, #1
+  812fb8:	0340		lsl	r0, r0, #13
+  812fba:	9900		ldr	r1, [sp, #0]
+  812fbc:	3904		sub	r1, #4
+  812fbe:	4308		orr	r0, r1
+  812fc0:	8010		strh	r0, [r2, #0]
+  812fc2:	4983		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812fc4:	6808		ldr	r0, [r1, #0]
+  812fc6:	1c82		add	r2, r0, #2
+  812fc8:	600a		str	r2, [r1, #0]
+  812fca:	49f8		ldr	r1, =0x9004	; via 0x8133ac
+  812fcc:	8001		strh	r1, [r0, #0]
+  812fce:	4980		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812fd0:	6808		ldr	r0, [r1, #0]
+  812fd2:	1c82		add	r2, r0, #2
+  812fd4:	600a		str	r2, [r1, #0]
+  812fd6:	4917		ldr	r1, =0x80c0	; via 0x813034
+  812fd8:	8001		strh	r1, [r0, #0]
+  812fda:	497d		ldr	r1, =0x83c0a4	; via 0x8131d0
+  812fdc:	6808		ldr	r0, [r1, #0]
+  812fde:	1c82		add	r2, r0, #2
+  812fe0:	600a		str	r2, [r1, #0]
+  812fe2:	4990		ldr	r1, =0x8041	; via 0x813224
+  812fe4:	8001		strh	r1, [r0, #0]
+  812fe6:	487a		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812fe8:	6802		ldr	r2, [r0, #0]
+  812fea:	1c91		add	r1, r2, #2
+  812fec:	6001		str	r1, [r0, #0]
+  812fee:	2001		mov	r0, #1
+  812ff0:	0341		lsl	r1, r0, #13
+  812ff2:	9800		ldr	r0, [sp, #0]
+  812ff4:	300d		add	r0, #13	; 0xd
+  812ff6:	4301		orr	r1, r0
+  812ff8:	8011		strh	r1, [r2, #0]
+  812ffa:	4875		ldr	r0, =0x83c0a4	; via 0x8131d0
+  812ffc:	6801		ldr	r1, [r0, #0]
+  812ffe:	1c8a		add	r2, r1, #2
+  813000:	6002		str	r2, [r0, #0]
+  813002:	2014		mov	r0, #20	; 0x14
+  813004:	4ac3		ldr	r2, =0x83c0a1	; via 0x813314
+  813006:	7812		ldrb	r2, [r2, #0]
+  813008:	4350		mul	r0, r2
+  81300a:	4ae7		ldr	r2, =0x83c04d	; via 0x8133a8
+  81300c:	5c12		ldrb	r2, [r2, r0]
+  81300e:	2021		mov	r0, #33	; 0x21
+  813010:	4310		orr	r0, r2
+  813012:	0142		lsl	r2, r0, #5
+  813014:	4817		ldr	r0, =0x8006	; via 0x813074
+  813016:	4310		orr	r0, r2
+  813018:	8008		strh	r0, [r1, #0]
+  81301a:	486d		ldr	r0, =0x83c0a4	; via 0x8131d0
+  81301c:	6802		ldr	r2, [r0, #0]
+  81301e:	1c91		add	r1, r2, #2
+  813020:	6001		str	r1, [r0, #0]
+  813022:	2001		mov	r0, #1
+  813024:	0341		lsl	r1, r0, #13
+  813026:	9800		ldr	r0, [sp, #0]
+  813028:	3016		add	r0, #22	; 0x16
+  81302a:	4301		orr	r1, r0
+  81302c:	8011		strh	r1, [r2, #0]
+  81302e:	4868		ldr	r0, =0x83c0a4	; via 0x8131d0
+  813030:	6802		ldr	r2, [r0, #0]
+  813032:	e001		b	0x813038
+
+  813034:	000080c0
+
+  813038:	1c91		add	r1, r2, #2
+  81303a:	6001		str	r1, [r0, #0]
+  81303c:	2014		mov	r0, #20	; 0x14
+  81303e:	49b5		ldr	r1, =0x83c0a1	; via 0x813314
+  813040:	7809		ldrb	r1, [r1, #0]
+  813042:	4348		mul	r0, r1
+  813044:	49d8		ldr	r1, =0x83c04d	; via 0x8133a8
+  813046:	5c09		ldrb	r1, [r1, r0]
+  813048:	2001		mov	r0, #1
+  81304a:	4308		orr	r0, r1
+  81304c:	0141		lsl	r1, r0, #5
+  81304e:	4809		ldr	r0, =0x8006	; via 0x813074
+  813050:	4308		orr	r0, r1
+  813052:	8010		strh	r0, [r2, #0]
+  813054:	495e		ldr	r1, =0x83c0a4	; via 0x8131d0
+  813056:	6808		ldr	r0, [r1, #0]
+  813058:	1c82		add	r2, r0, #2
+  81305a:	600a		str	r2, [r1, #0]
+  81305c:	49d7		ldr	r1, =0x8304	; via 0x8133bc
+  81305e:	8001		strh	r1, [r0, #0]
+  813060:	495b		ldr	r1, =0x83c0a4	; via 0x8131d0
+  813062:	6808		ldr	r0, [r1, #0]
+  813064:	1c82		add	r2, r0, #2
+  813066:	600a		str	r2, [r1, #0]
+  813068:	49d1		ldr	r1, =0x88e0	; via 0x8133b0
+  81306a:	8001		strh	r1, [r0, #0]
+  81306c:	4958		ldr	r1, =0x83c0a4	; via 0x8131d0
+  81306e:	6808		ldr	r0, [r1, #0]
+  813070:	e002		b	0x813078
+  813072:	46c0		nop			(mov r8, r8)
+
+  813074:	00008006
+
+  813078:	1c82		add	r2, r0, #2
+  81307a:	600a		str	r2, [r1, #0]
+  81307c:	4969		ldr	r1, =0x8041	; via 0x813224
+  81307e:	8001		strh	r1, [r0, #0]
+  813080:	4853		ldr	r0, =0x83c0a4	; via 0x8131d0
+  813082:	6802		ldr	r2, [r0, #0]
+  813084:	1c91		add	r1, r2, #2
+  813086:	6001		str	r1, [r0, #0]
+  813088:	2001		mov	r0, #1
+  81308a:	0341		lsl	r1, r0, #13
+  81308c:	9800		ldr	r0, [sp, #0]
+  81308e:	301d		add	r0, #29	; 0x1d
+  813090:	4301		orr	r1, r0
+  813092:	8011		strh	r1, [r2, #0]
+  813094:	494e		ldr	r1, =0x83c0a4	; via 0x8131d0
+  813096:	6808		ldr	r0, [r1, #0]
+  813098:	1c82		add	r2, r0, #2
+  81309a:	600a		str	r2, [r1, #0]
+  81309c:	4923		ldr	r1, =0x8004	; via 0x81312c
+  81309e:	8001		strh	r1, [r0, #0]
+  8130a0:	494b		ldr	r1, =0x83c0a4	; via 0x8131d0
+  8130a2:	6808		ldr	r0, [r1, #0]
+  8130a4:	1c82		add	r2, r0, #2
+  8130a6:	600a		str	r2, [r1, #0]
+  8130a8:	49c2		ldr	r1, =0x80c0	; via 0x8133b4
+  8130aa:	8001		strh	r1, [r0, #0]
+  8130ac:	4948		ldr	r1, =0x83c0a4	; via 0x8131d0
+  8130ae:	6808		ldr	r0, [r1, #0]
+  8130b0:	1c82		add	r2, r0, #2
+  8130b2:	600a		str	r2, [r1, #0]
+  8130b4:	495b		ldr	r1, =0x8041	; via 0x813224
+  8130b6:	8001		strh	r1, [r0, #0]
+  8130b8:	4845		ldr	r0, =0x83c0a4	; via 0x8131d0
+  8130ba:	6802		ldr	r2, [r0, #0]
+  8130bc:	1c91		add	r1, r2, #2
+  8130be:	6001		str	r1, [r0, #0]
+  8130c0:	2014		mov	r0, #20	; 0x14
+  8130c2:	4994		ldr	r1, =0x83c0a1	; via 0x813314
+  8130c4:	7809		ldrb	r1, [r1, #0]
+  8130c6:	4348		mul	r0, r1
+  8130c8:	49b7		ldr	r1, =0x83c04d	; via 0x8133a8
+  8130ca:	5c08		ldrb	r0, [r1, r0]
+  8130cc:	2109		mov	r1, #9
+  8130ce:	4301		orr	r1, r0
+  8130d0:	0148		lsl	r0, r1, #5
+  8130d2:	49b9		ldr	r1, =0x8006	; via 0x8133b8
+  8130d4:	4301		orr	r1, r0
+  8130d6:	8011		strh	r1, [r2, #0]
+  8130d8:	b002		add	sp, #8
+  8130da:	bd00		pop	{pc}
+
 $l1dmacro_rx_nb:
   8130e0:	b500		push	{lr}
   8130e2:	b081		sub	sp, #4