Thread: 68k details
View Single Post
Old 08 November 2018, 22:04   #734
Bruce Abbott
Registered User
 
Bruce Abbott's Avatar
 
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,549
Quote:
Originally Posted by roondar View Post
I'm not so sure about that, CP/M-68K seems to have extra features in the executable format to allow for sections, etc.
CP/M-68K executable files appear to have a 12 byte header specifying the size of the code, data, and bss sections. That's much smaller than the minimum of 36 bytes in an Amiga executable. Also the sections are contiguous, so a buffer can be created in bss and referenced pc relative, saving a few more bytes. BDOS calls are made via Trap#2, similar to x86.

So despite having a small header CP/M-68k is a fairly close match to MSDOS, and therefore perhaps a fair comparison?

However CP/M-86 would not be, because...

CP/M-86 executables (.CMD)
Quote:
The CP/M-86 .CMD file begins with a 128-byte header record:
Bruce Abbott is offline  
 
Page generated in 0.04360 seconds with 11 queries