Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Pascal Borland > Re: How to dete...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 8 of 15 Topic 1089 of 1114
Post > Topic >>

Re: How to determine contents of data segment?

by Jim Leonard <MobyGamer@[EMAIL PROTECTED] > Mar 3, 2008 at 12:10 PM

On Feb 29, 2:42 pm, Klaus Jorgensen <k...@[EMAIL PROTECTED]
> wrote:
> > ...except what goes in the DATA segment.
>
> Then what exactly is the symbols at segment $007F below?
>
> --------------------------------------------------
>  Start  Stop   Length Name               Class
>
>  00000H 00044H 00045H PROGRAM            CODE
>  00050H 007E4H 00795H System             CODE
>  007F0H 00A8FH 002A0H DATA               DATA
>  00A90H 04A8FH 04000H STACK              STACK
>  04A90H 04A90H 00000H HEAP               HEAP
>
>   Address         Publics by Value
>
>  0000:000D       @[EMAIL PROTECTED]
>  007F:0002       OvrCodeList
>  007F:0004       OvrHeapSize
>  007F:0006       OvrDebugPtr
>  007F:000A       OvrHea****g

Yes, I see this now.  Having a linear address in the top part and an
intel seg:ofs in the bottom was confusing.

Still, I wish it were broken down more than that.  Here is my
actual .map:

 Start  Stop   Length Name               Class

....snip...

 01810H 020FFH 008F0H DATA               DATA

Okay, so there's the DATA.  What's in it?

  Address         Publics by Value

....snip...

 0181:0308       PreventSnow
 0181:0322       OvrCodeList
 0181:0324       OvrHeapSize
 0181:0326       OvrDebugPtr
 0181:032A       OvrHea****g
 0181:032C       OvrHeapPtr
 0181:032E       OvrHeapEnd
 0181:0330       OvrLoadList
 0181:0332       OvrDosHandle
 0181:0334       OvrEmsHandle
 0181:0336       Hea****g
 0181:033A       HeapPtr
 0181:033E       HeapEnd
 0181:0342       FreeList
 0181:0346       FreeZero
 0181:034A       HeapError
 0181:034E       ExitProc
 0181:0352       ExitCode
 0181:0354       ErrorAddr
 0181:0358       PrefixSeg
 0181:035A       StackLimit
 0181:035C       InOutRes
 0181:035E       RandSeed
 0181:0362       SelectorInc
 0181:0364       Seg0040
 0181:0366       SegA000
 0181:0368       SegB000
 0181:036A       SegB800
 0181:036C       Test8086
 0181:036D       Test8087
 0181:036E       FileMode
 0181:0372       X
 0181:0373       Y
 0181:0374       calx
 0181:0376       caly
 0181:0378       foo
 0181:0478       mykeyb
 0181:047C       kbd
 0181:04FC       old9
 0181:0500       tfMaxScrX
 0181:0501       tfMaxScrY
 0181:0502       tfScrSizeInWords
 0181:0694       Int1D_mode_table
 0181:06A2       Input
 0181:07A2       Output
 0181:08A2       SaveInt00
 0181:08A6       SaveInt02
 0181:08AA       SaveInt1B
 0181:08AE       SaveInt21
 0181:08B2       SaveInt23
 0181:08B6       SaveInt24
 0181:08BA       SaveInt34
 0181:08BE       SaveInt35
 0181:08C2       SaveInt36
 0181:08C6       SaveInt37
 0181:08CA       SaveInt38
 0181:08CE       SaveInt39
 0181:08D2       SaveInt3A
 0181:08D6       SaveInt3B
 0181:08DA       SaveInt3C
 0181:08DE       SaveInt3D
 0181:08E2       SaveInt3E
 0181:08E6       SaveInt3F
 0181:08EA       SaveInt75

I can't see from all this where 2288 bytes ($8f0 listed above) is
coming from.  Looking at the map, I am seeing these sizes (in bytes,
after the last column; for unknowns, I'll assume a pointer which is 4
bytes:)

 0181:0308       PreventSnow 1 (defined as const PreventSnow:byte=1)
 0181:0322       OvrCodeList 4
 0181:0324       OvrHeapSize 4
 0181:0326       OvrDebugPtr 4
 0181:032A       OvrHea****g 4
 0181:032C       OvrHeapPtr 4
 0181:032E       OvrHeapEnd 4
 0181:0330       OvrLoadList 4
 0181:0332       OvrDosHandle 4
 0181:0334       OvrEmsHandle 4
 0181:0336       Hea****g 4
 0181:033A       HeapPtr 4
 0181:033E       HeapEnd 4
 0181:0342       FreeList 4
 0181:0346       FreeZero 4
 0181:034A       HeapError 4
 0181:034E       ExitProc 4
 0181:0352       ExitCode 4
 0181:0354       ErrorAddr 4
 0181:0358       PrefixSeg 4
 0181:035A       StackLimit 4
 0181:035C       InOutRes 4
 0181:035E       RandSeed 4
 0181:0362       SelectorInc 4
 0181:0364       Seg0040 4
 0181:0366       SegA000 4
 0181:0368       SegB000 4
 0181:036A       SegB800 4
 0181:036C       Test8086 4
 0181:036D       Test8087 4
 0181:036E       FileMode 1
 0181:0372       X 1
 0181:0373       Y 1
 0181:0374       calx 1
 0181:0376       caly 1
 0181:0378       foo 4
 0181:0478       mykeyb 4
 0181:047C       kbd 4
 0181:04FC       old9 4
 0181:0500       tfMaxScrX 1
 0181:0501       tfMaxScrY 1
 0181:0502       tfScrSizeInWords 2
 0181:0694       Int1D_mode_table 4
 0181:06A2       Input 4
 0181:07A2       Output 4
 0181:08A2       SaveInt00 4
 0181:08A6       SaveInt02 4
 0181:08AA       SaveInt1B 4
 0181:08AE       SaveInt21 4
 0181:08B2       SaveInt23 4
 0181:08B6       SaveInt24 4
 0181:08BA       SaveInt34 4
 0181:08BE       SaveInt35 4
 0181:08C2       SaveInt36 4
 0181:08C6       SaveInt37 4
 0181:08CA       SaveInt38 4
 0181:08CE       SaveInt39 4
 0181:08D2       SaveInt3A 4
 0181:08D6       SaveInt3B 4
 0181:08DA       SaveInt3C 4
 0181:08DE       SaveInt3D 4
 0181:08E2       SaveInt3E 4
 0181:08E6       SaveInt3F 4
 0181:08EA       SaveInt75 4

When I add all of those up, I get ~240 bytes.  So where are the other
~1800?
 




 15 Posts in Topic:
How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-02-26 16:55:52 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-02-26 21:26:27 
Re: How to determine contents of data segment?
Marco van de Voort <ma  2008-02-27 07:37:45 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-02-27 13:12:46 
Re: How to determine contents of data segment?
Robert Riebisch <Rober  2008-02-27 21:59:34 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-02-29 09:33:14 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-02-29 21:42:09 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-03 12:10:43 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-03 12:59:08 
Re: How to determine contents of data segment?
Robert Riebisch <Rober  2008-03-03 22:15:17 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-03 17:16:12 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-03-04 08:05:18 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-04 07:30:04 
Re: How to determine contents of data segment?
Jim Leonard <MobyGamer  2008-03-05 07:12:53 
Re: How to determine contents of data segment?
Klaus Jorgensen <kj@[E  2008-03-05 18:05:23 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sun Jul 6 2:56:04 CDT 2008.