开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育

Re: using SDCC and stdio to Z80MC w/ CP/M 2.2....


 

Dave,
?
Started using C back late '79 using Ron Cains SmallC and soon after BDS C
natively on Z80 system. Also have HighTec-C and Nevada C.? Never
thought to use SDCC.? However all of the compilers have STDIO which
for CP/M is a ship that calls BDOS and BIOS for IO.? the BIOS provides
both raw and cooked interfaces and BDOS has resources that with some
translation gives standard C calls for disk IO.
?
If your not using CP/M then you have to create your own filesystem
and IO system.? Likely more work than desired.? My solution for
standalone systems was to put CP/M and needed utilities in
Eprom and tread that in the bios as a read only disk (Romdisk).
?
Malloc is maybe internal for the compiler as most all CP/M systems are
flat memory space typically 32 to? 60 kbytes and single threaded.
?
Including the Kaypros I have 17 systems running CP/M.? I've been doing
that since 1977.?
?
FYI the best book on using C and building CP/M software is
Andy Johnson-Laird, The programmers CP/M Handbook.??
?
?
Allison

Join [email protected] to automatically receive all group messages.