hello,reyalp.
I get the asm code from camera's firmware.But get compile err.How to correct it?
Like this code in the firmware.
I copy it into one asm().
sub_FFC00FC4 ; CODE XREF: sub_FFC00000+208p
ROM:FFC00FC4
ROM:FFC00FC4 var_78 = -0x78
ROM:FFC00FC4 var_74 = -0x74
ROM:FFC00FC4 var_70 = -0x70
ROM:FFC00FC4 var_6C = -0x6C
ROM:FFC00FC4 var_60 = -0x60
ROM:FFC00FC4 var_5C = -0x5C
ROM:FFC00FC4 var_58 = -0x58
ROM:FFC00FC4 var_54 = -0x54
ROM:FFC00FC4 var_50 = -0x50
ROM:FFC00FC4 var_4C = -0x4C
ROM:FFC00FC4 var_48 = -0x48
ROM:FFC00FC4 var_44 = -0x44
ROM:FFC00FC4 var_1C = -0x1C
ROM:FFC00FC4 var_18 = -0x18
ROM:FFC00FC4 var_14 = -0x14
ROM:FFC00FC4 var_10 = -0x10
ROM:FFC00FC4 var_4 = -4
ROM:FFC00FC4
ROM:FFC00FC4 STR LR, [SP,#unk_FFFFFFFC]!
ROM:FFC00FC8 SUB SP, SP, #0x74
ROM:FFC00FCC MOV R0, SP
ROM:FFC00FD0 MOV R1, #0x74
ROM:FFC00FD4 BL sub_FFE6C5B0
ROM:FFC00FD8 MOV R0, #0x53000
ROM:FFC00FDC STR R0, [SP,#0x78+var_74]
ROM:FFC00FE0 LDR R0, =0x12ED1C
ROM:FFC00FE4 LDR R2, =0x2F9C00
ROM:FFC00FE8 LDR R1, =0x2F24A8
ROM:FFC00FEC STR R0, [SP,#0x78+var_70]
ROM:FFC00FF0 SUB R0, R1, R0
ROM:FFC00FF4 ADD R3, SP, #0x78+var_6C
ROM:FFC00FF8 STR R2, [SP,#0x78+var_78]
ROM:FFC00FFC STMIA R3, {R0-R2}
ROM:FFC01000 MOV R0, #0x22
ROM:FFC01004 STR R0, [SP,#0x78+var_60]
ROM:FFC01008 MOV R0, #0x68
ROM:FFC0100C STR R0, [SP,#0x78+var_5C]
ROM:FFC01010 LDR R0, =0x19B
ROM:FFC01014 LDR R1, =sub_FFC04D38
ROM:FFC01018 STR R0, [SP,#0x78+var_58]
ROM:FFC0101C MOV R0, #0x96
ROM:FFC01020 STR R0, [SP,#0x78+var_54]
ROM:FFC01024 MOV R0, #0x78
ROM:FFC01028 STR R0, [SP,#0x78+var_50]
ROM:FFC0102C MOV R0, #0x64
ROM:FFC01030 STR R0, [SP,#0x78+var_4C]
ROM:FFC01034 MOV R0, #0
ROM:FFC01038 STR R0, [SP,#0x78+var_48]
ROM:FFC0103C STR R0, [SP,#0x78+var_44]
ROM:FFC01040 MOV R0, #0x10
ROM:FFC01044 STR R0, [SP,#0x78+var_1C]
ROM:FFC01048 MOV R0, #0x800
ROM:FFC0104C STR R0, [SP,#0x78+var_18]
ROM:FFC01050 MOV R0, #0xA0
ROM:FFC01054 STR R0, [SP,#0x78+var_14]
ROM:FFC01058 MOV R0, #0x280
ROM:FFC0105C STR R0, [SP,#0x78+var_10]
ROM:FFC01060 MOV R0, SP
ROM:FFC01064 MOV R2, #0
ROM:FFC01068 BL sub_FFC02D68
ROM:FFC0106C ADD SP, SP, #0x74
ROM:FFC01070 LDR PC, [SP+4+var_4],#4
compile err like "C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\cc44UrWs.s:237: Error: ']' expected -- `ldr P
C,[SP+4+var_4],#4'"