z88dk forums

z80 Development Kit

You are not logged in.

#1 2012-02-21 08:18:34

siggi
Well known member
Registered: 2007-07-26
Posts: 159

C-Interrupt routine for ZX81

Unfortunately the IM2 features of Z88DK cannot be used with a ZX81. But it would be nice, if it were possible to hook a C function into the display routine, so that is called 25 or 50 times/sec during SLOW mode (of course outside the time critical section of the display routine).

I ported a IRC chat program from Spectranet zo ZeddyNet. The Speccy version uses IM2 to read and buffer keyboard entries. My workaround on the Zeddy works, but using INTs would be much better smile

BTW: Could you perhaps add information into WIKI, which libraries are (not) reentrant and (not) romable?

Siggi

EDI: Upps, I mixed NMI with IM2 ...

Last edited by siggi (2012-02-21 10:03:46)


My ZX81 web-server, compiled with Z88DK V1.7:
http://zx81-siggi.endoftheinternet.org/index.html smile
Online since 2007 ...

Offline

 

#2 2012-04-17 04:55:42

alvin
Administrator
Registered: 2007-07-16
Posts: 338

Re: C-Interrupt routine for ZX81

i have a large rewrite coming that will include an opportunity to reorganize the startup code for all targets, which would include addressing these sorts of problems.

Offline

 

#3 2012-04-17 10:19:27

stefano
Administrator
Registered: 2007-07-16
Posts: 696

Re: C-Interrupt routine for ZX81

Ok then, I will stop any adaption of the CRT0s and of the main libs Makefile.   wink
Something could still happen in the 'math' folder, if all goes as expected..

Offline

 

#4 2012-04-17 18:55:08

alvin
Administrator
Registered: 2007-07-16
Posts: 338

Re: C-Interrupt routine for ZX81

There is no need to stop stef smile

The test target(s) will exist in parallel for a while yet.  The main thing will be a rewrite of stdio and an update to more conformance with c99.  The immediate goal is to get networking integrated and to have a model that supports many attached devices through a device driver abstraction attached to the end of a file stream.

Existing library code will only be added incrementally as things are checked for romability, opportunities for improvement, etc, so the test targets will be missing things initially.  z88dk has grown a lot over the years through add-ons, so I think this is the right time to take a fresh look at how the whole should fit together.

Offline

 

#5 2012-04-17 18:59:46

stefano
Administrator
Registered: 2007-07-16
Posts: 696

Re: C-Interrupt routine for ZX81

Agreed, hope I'll have the energy to help big_smile

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson