13.07.2015 Views

apple-pascal-1.3-manual

apple-pascal-1.3-manual

apple-pascal-1.3-manual

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Memory FormatsIntegers are stored in adjacent bytes, with the least significant byte at thelowest memory address. This is also the byte located by any pointer to theinteger. A 16-bit integer therefore looks like this:0Integer Type7 07Low ByteHigh BytePointerLowMemory~--------;;.,,.. HighMemoryReal numbers occupy 4 bytes of memory, with the least significant byte atthe lowest address. The 23 lowest bits express the number's fraction, thenext 8 bits its exponent, and the highest bit its sign. Pointers locate thelowest byte:07 0Real Type7 07 07FractionExponentLowMemoryPointerSignHighMemoryIII-326Appendix 3C: Memory Allocations for Data Types

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!