Raw output option

Discussion about other targets
Post Reply
alank2
Member
Posts: 116
Joined: Wed Mar 01, 2017 7:24 pm

Raw output option

Post by alank2 »

I'm working on a Z80 SBC and need to generate some code that is raw - intended to be loaded right at address 0x0000 and there is no BIOS or services of any type available. What options would do generate this?
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

The +z80 target in the newlib is intended for generating standalone code for sbc machines:
https://www.z88dk.org/wiki/doku.php?id= ... t_embedded

Setting up im2 mode is now done differently (and better) but is not yet documented:
https://github.com/z88dk/z88dk/issues/573
alvin
Well known member
Posts: 1872
Joined: Mon Jul 16, 2007 7:39 pm

Post by alvin »

Adding a text terminal to stdin, stdout, stderr for a standalone system is being talked about in NexesOne's post:
https://www.z88dk.org/forum/viewtopic.php?id=10223

An example is forming in the newlib z88dk examples directory to add stdin and stdout and I should be putting in stdin later today:
https://github.com/z88dk/z88dk/tree/mas ... /z80/stdio
alank2
Member
Posts: 116
Joined: Wed Mar 01, 2017 7:24 pm

Post by alank2 »

Thank you alvin - I'll give this a try!
Post Reply