Editing
File Formats
(section)
From F256 Foenix
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== PGZ (more details) == (More Complete Explanation ) - To be Re-Edited to form only one clear explanation of what the PGZ file format does. (This is the explanation coming from wiki.c256foenix.com) PGZ is a multi-segment file format that can load data into multiple areas in memory. The format is derived from binary format used by Western Design Center's C compiler. * The first byte of the PGZ format is the ASCII code for "Z". This serves as the file type signature. <span style="color:red">* Big "Z" = 24bits Addresse Pointers and Sizes. Small "z" = 32bits Addresse Pointers and Sizes.</span> * Next comes any number of segments, each following right after the previous segment with no separator. Each segment has the following format: ** Three bytes of address, in little endian format. This is the starting address for writing the data of the segment. ** Three bytes indicating the size of the segment, in little endian format. ** The bytes of data in the segment (same number of bytes as specified in the size). * If final segment has a size of $000000 and no data bytes, then address specifies the starting address of the executable. {| class="wikitable" ! Segment !! Offset !! Count !! Example !! Purpose |- | N/A || 0 || 1 || "Z" || Signature |- |rowspan="3"| 1 || 1 || 3 || $010000 || Address of segment #1 |- | 4 || 3 || $000009 || Size of segment #1 |- | 7 || ... || ... || Data of Segment #1 |- |rowspan="3"| 2 || 16 || 3 || $020000 || Address of segment #2 |- | 19 || 3 || $000008 || Size of segment #2 |- | 22 || ... || ... || Data of Segment #2 |- |rowspan="2"| 3 || 30 || 3 || $010000 || Starting address |- | 33 || 3 || $000000 || 0 to indicate start address |}
Summary:
Please note that all contributions to F256 Foenix are considered to be released under the Creative Commons Zero (Public Domain) (see
F256 Foenix:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Page actions
Page
Discussion
Read
Edit
Edit source
History
Page actions
Page
Discussion
More
Tools
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Search
Tools
What links here
Related changes
Special pages
Page information