Google
 
   
Login
Username:

Password:


Lost Password?

Register now!
Search
Main Menu
top books
Polls
What do you think about php-deluxe.net?
Excellent!
Cool
Hmm..not bad
What the hell is this?
encyclopedia
recommendation
compare webbrowser
Freenet DSL
Who's Online
8 user(s) are online (8 user(s) are browsing encyclopedia)

Members: 0
Guests: 8

more...
browser tip
Unix Befehle
manual of unix befehle
recommendation!
Sponsored
partner

CMD file (CP/M)

In CP/M-86, CMD is the filename extension used by executable programs. It corresponds to COM file in CP/M and EXE in MS-DOS.

=Binary format=

A CMD file has a 128-byte header, followed by 1-8 groups of code or data. Each group can be up to 1 megabyte in size. In later versions of the format, CMD files can also contain relocation information and Resident System Extension.

The start of the header lists the groups present in the file, and their types. Each type can be used at most once; they are: #Code #Data #Extra #Stack #User 1 #User 2 #User 3 #User 4 #Shared Code (Code and Shared Code cannot be present in the same file).

The first 256 bytes of the data group must be zero; they will be populated by CP/M-86 with the zero page (CP/M) (comparable to the Program Segment Prefix in MS-DOS). If there is no data group, then the first 256 bytes of the code group will be used instead.