Reading a

Hello ,

I would like to know how I could write a c program to read (some particular data) opcode alone from the list(.lst) file generated.
The generated list (.lst) file looks like the one below. I would like to extract only the data that is [b]bolded[/b].

Looking for your help.

t.senthil

AA MACRO ASSEMBLER RALGEBRA 30/01/06 15:09:38 PAGE 1


MACRO ASSEMBLER AA V2.40b
OBJECT MODULE PLACED IN algebra.OBJ
ASSEMBLER INVOKED BY: C:KeilARMARMBINAA.exe algebra.a BROWSE DEBUG EP

LOC OBJ LINE SOURCE

40000000 1 AREA PROGRAM,CODE, AT 0x40000000
40000000 2 ENTRY
3
4
40000000 [b] E3AF0000 [/b] 5 LDR r0,=numbers
40000004 [b] E4901004 [/b] 6 ldr r1,[r0],#4
40000008 [b] E4902004 [/b] 7 ldr r2,[r0],#4
4000000C [b] E4903004 [/b] 8 ldr r3,[r0],#4
40000010 [b] E4904004 [/b] 9 ldr r4,[r0],#4
40000014 [b] E0020291 [/b] 10 mul r2,r1,r2
40000018 [b] E0833004 [/b] 11 add r3,r3,r4
4000001C [b] E0834002 [/b] 12 add r4,r3,r2
40000020 [b] E5804004 [/b] 13 str r4,[r0,#4]
14
15
00000000 16 AREA DATAMEM ,DATA,READWRITE
17
00000000 00000005 18 numbers :DD 0x5,0x6,0x7,0x8
00000004 00000006
00000008 00000007
0000000C 00000008
19
20 End

AA MACRO ASSEMBLER RALGEBRA 30/01/06 15:09:38 PAGE 2

SYMBOL TABLE LISTING
------ ----- -------


N A M E T Y P E V A L U E ATTRIBUTES

DATAMEM . . . . . . . . . D SEG 0010H REL=UNIT, ALN=BYTE
ENTRY . . . . . . . . . . C ADDR 40000000H R SEG=PROGRAM
PROGRAM . . . . . . . . . C SEG 40000024H REL=ABS, ALN=BYTE
numbers . . . . . . . . . D ADDR 0000H R SEG=DATAMEM


ASSEMBLY COMPLETE. 0 WARNING(S), 0 ERROR(S).

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories