Hi,
My situation is like this:
Memory Map
ROM (write disabled) 0x0000 0x7FFF
RAM 0x8000 0xFFFF
with stack pointer set at 0xFFFE (stack grows backwards).
There is an Intel Hex Loader in a monitor program that I want to use and the monitor is written to ROM. If I want to target the start of RAM in the Intel hex file with the compiled zcc program, can I use the tecnnique described in this older thread:
viewtopic.php?t=10551
Andrew.
Appmake and intel hex
Re: Appmake and intel hex
Take a look here: https://github.com/z88dk/z88dk/wiki/Classic--Homebrew
There’s an example of your use case and info on how to generate an ihex file in one command.
There’s an example of your use case and info on how to generate an ihex file in one command.
Re: Appmake and intel hex
Thanks Dom, I will check.
Andrew
Andrew
Re: Appmake and intel hex (Resolved)
Thanks, Dom. It works great :-)
Andrew
Code: Select all
C:\Users\Freya\Downloads\z88dk-win32-2.3\z88dk>zcc +z80 -clib=8085 world.c monitor.c -pragma-define:CRT_ORG_CODE=0x8000 -pragma-define:REGISTER_SP=0xFFFE -m -create-app -Cz --ihex
C:\Users\Freya\Downloads\z88dk-win32-2.3\z88dk>dir a*.*
Volume in drive C has no label.
Volume Serial Number is 46A5-DC20
Directory of C:\Users\Freya\Downloads\z88dk-win32-2.3\z88dk
2025-02-11 06:40 PM 2,047 a.bin
2025-02-11 06:40 PM 5,644 a.ihx
2025-02-11 06:40 PM 66,525 a.map
2025-02-11 06:40 PM 2,048 a.rom
2024-10-08 05:39 AM 1,293 acehearts.c
2024-10-06 01:25 AM 4,594 adventure.c
2024-10-08 09:08 AM 834 asciitestpattern.c
2024-10-08 10:32 AM 1,123 asciitestpattern2.c
2025-02-11 06:40 PM 1 a_DATA.bin
9 File(s) 84,109 bytes
0 Dir(s) 61,983,383,552 bytes free