Close

Converting Grant's Hex files to C arrays

A project log for 3-Chip Z80 Design

Combining a Z80 retro design with a modern PSoC CPU.

land-boardscomland-boards.com 10/10/2019 at 02:080 Comments

Convert basic hex file to C array:

srecord\srec_cat basic.hex -intel -o basic.c -C-Array

 Convert rom hex file to C array:

srecord\srec_cat rom.hex -intel -o rom.c -C-Array

The memory map on Grant's site: 

MEMORY MAPS

INITIAL BOOT

0000-3FFF ROM
   Within the ROM...
      0x0000 Boot monitor
      0x2000 Microsoft BASIC interpreter
4000-FFFF RAM

Once CP/M is loaded

0000-FFFF RAM

0100 Transient program area (applications)
D000 CP/M System
E600 BIOS

 So the boot code needs to be loaded into SRAM starting at 0 and the BASIC code needs to be loaded into SRAM starting at 0x2000.

Discussions