Vote count:
0
If I'm looking at an assembly programs .lst file (the listing file), how can I determine the size of both the .data segment and the .code segment?
Would this be determined by the last offset in the segment? For example, here's a listing:
00000000 .data
00000000 00000019 iX dword 25,-2,-3
FFFFFFFE
FFFFFFFD
0000000C 0011 FFFB sY word 17,-5,2 dup (17,-4)
00000002 [
0011 FFFC
]
00000018 00000003 [ bVal byte 3 dup(-1,23) ,35
FF 17
] 23
0000001F 00000015 iNum dword 21,-43
FFFFFFD5
00000027 41 42 43 34 35 bName byte "ABC456",29,'DEF'
36 1D 44 45 46
00000000 .code
00000000 _start:
00000000 B8 00000000 mov eax,0
00000005 A1 00000002 R mov eax, iX[2]
0000000A 03 05 0000001F R ADD eax, iNum
00000010 03 05 00000027 R ADD eax, dword ptr bName
00000016 FF 35 0000001F R PUSH iNum
0000001C FF 35 00000027 R PUSH dword ptr bName
00000022 66| 5B POP BX
00000024 5E POP ESI
Would the size of the data segment be 27h and the size of the code segment be 24h?
asked 26 secs ago
Determine the size of the data and code segment in hex x86 assembly
Aucun commentaire:
Enregistrer un commentaire