Disassembled code of HiSoft C compiler version 1.3 for ZX Spectrum
HiSoft C is c compiler available for ZX Spectrum and Amstrac CPC. The compiler uses old K&R notation so you can use ansi2kr converter for conversion of your ANSI C source code into K&R version. Then you can use c2tap utility for conversion of your source to tap file format.
An interesting fact is HiSoft C was written in BDS C of Leor Zolman and then disassembled and optimized manually.
There are various libraries for HiSoft C. For example:
- Original HiSoft C manual for ZX Spectrum in PDF
- Original HiSoft C manual for Amstrad CPC in PDF
- Article ZX Magazín - HiSoft C 1.1 in PDF
- Article Historické kompilátory jazyka C na vlastní kůži (2)
- z80asm
- skoolkit 6.4
- ZX spectrum emulator, ZEsarUX recommended
z80asm cc.asm -o cc-tmp.bin ; bin2tap.py -o 25200 cc-tmp.bin cc.tap
z80dasm -a -t -l -g 25200 -b blocks.txt code.bin > code.asm
z80asm code.asm -o code-tmp.bin ; bin2tap.py -o 25200 code-tmp.bin cc.tap
To start editor press capshift 1 and ENTER (or EDIT)
- p [m,n,s]put into cassette
- g [,,s]get from cassette
- c enterback to compiler
- #include [file name]compile program
- symbolshift irun program
- #errorto sacrifice error messages and yield more memory
- b entergo to basic
- RANDOMIZE USR 25200back to compiler
- i [m,n]insert text
- l [m,n]list
- k nset number of lines listed on screen
- w [m,n]write text to printer
- d [m,n]delete lines
- m [m,n]move line
- n [m,n]renumber line
- e nedit line
- vview defaults
- SS F{
- SS G}
- SS IEOF
- SS Q<=
- SS W<>
- SS E>=
