z88dk

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
User avatar
stefano
Posts: 568
Joined: Tue Dec 11, 2012 9:24 am
Contact:

z88dk

Post by stefano »

I thought to inform those who are interested in the z88dk project that this could be a good moment to refresh their snapshot.
The development version of the kit is at the moment in a fair condition.
nollkolltroll
Posts: 325
Joined: Sat Sep 27, 2014 8:02 pm
Location: Stockholm, Sweden

Re: z88dk

Post by nollkolltroll »

I'd really like to test coding in C for the Z80, but so far I've resisted. Must encourage myself better.
/Adam
User avatar
stefano
Posts: 568
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: z88dk

Post by stefano »

nollkolltroll
Posts: 325
Joined: Sat Sep 27, 2014 8:02 pm
Location: Stockholm, Sweden

Re: z88dk

Post by nollkolltroll »

I just downloaded the binaries, now it's only a matter of getting going...
/Adam
User avatar
stefano
Posts: 568
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: z88dk

Post by stefano »

Quick start:
http://www.z88dk.org/wiki/doku.php?id=platform:zx80
http://www.z88dk.org/wiki/doku.php?id=platform:zx81

Look also in the 'examples' folder, most of the programs can be run on a zx81.
And you can get a bit more here:
http://www.z88dk.org/wiki/doku.php?id=examples:snippets
olofsen
Posts: 189
Joined: Wed Jan 08, 2014 12:29 pm

Re: z88dk

Post by olofsen »

Thank you Stefano! I couldn't resist trying the example with:

Code: Select all

zcc +zx81 -startup=2 -create-app -DCHROMA81 dstar.c
Is it correct to add something like the following to get back to normal?

Code: Select all

#ifdef CHROMA81
	#asm
	ld bc,7FEFh
	ld a,0
	out (c),a
	#endasm
#endif
#asm
	ld	a,$1e
	ld	i,a
#endasm
User avatar
stefano
Posts: 568
Joined: Tue Dec 11, 2012 9:24 am
Contact:

Re: z88dk

Post by stefano »

Well, it depends on what you want to get.
Restoring the ROM font at startup is done in that way.
Post Reply