z88dk forums

z80 Development Kit

You are not logged in.

#26 2007-07-23 14:54:20

dom
Administrator
Registered: 2007-07-15
Posts: 738
Website

Re: [Z88dk-users] Problems with printf

On Sat, 21 Jul 2007, Dom Morris wrote:

I'm happy doing the interposer, there's quite a few places where it's
used: fcntl/cpc, cpcmath, graphics/cpc, stdio/cpc, stdio/ansi/cpc so it
may take a while to fix them all. It looks like ix is unused by the
firmware routines so I'll use that to hold the machine address.

Anyway, the interposer is done for all the CPC bits, since interrupts are
disabled in the CPC crt0 what we've got should just work, though it's not
nice to shut out the interrupt.

Can someone do the honours and confirm that things are working?

d.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Offline

 

#27 2007-07-24 23:12:42

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

Re: [Z88dk-users] Problems with printf

Anyway, the interposer is done for all the CPC bits, since interrupts are > disabled in the CPC crt0 what we've got should just work, though it's not > nice to shut out the interrupt.> > Can someone do the honours and confirm that things are working?

I gave it a quick go and it's not working.  Instead of a crash it now just hangs.  Unfortunately the Amstrad emulators I've tried don't have debuggers so it's a lot more difficult to trace through the code exactly.

One other thing:  I am using a version of cpc.lst that has got rid of all the 8080 versions of subroutines.  Maybe that's it?  I'll see if I can add in the interrupt stuff tonight.

Alvin

_________________________________________________________________
Connect to the next generation of MSN Messenger
http://imagine-msn.com/messenger/launch … ailtagline

Offline

 

#28 2007-07-25 20:57:22

dom
Administrator
Registered: 2007-07-15
Posts: 738
Website

Re: [Z88dk-users] Problems with printf

On Tue, 24 Jul 2007, alvin albrecht wrote:

I gave it a quick go and it's not working.  Instead of a crash it now
just hangs.  Unfortunately the Amstrad emulators I've tried don't have
debuggers so it's a lot more difficult to trace through the code
exactly.

Odd, it's pretty much the same code as the interposer I used for the
spectrum, I didn't think I did anything stupid.

One other thing:  I am using a version of cpc.lst that has got rid of
all the 8080 versions of subroutines.  Maybe that's it?  I'll see if I
can add in the interrupt stuff tonight.

Well, interrupts are disabled normally so I'm guessing Stefano knew there
were problems with the firmware. Actually another thing that puzzles me is
the massive stack offset at the start - over 6k...

d.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/

Offline

 

#29 2007-09-15 20:36:02

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

Re: [Z88dk-users] Problems with printf

Wow.. that much work !
Dom, I'm sorry making you run after all those bugs..   I remember that I was at a very early stage with that port; the stack space was for the graphics "fill" routine only tongue  I was stuck interfacing the graphics routines with the BIOS calls, and at that time I found no CPC buds to do debugging, then that ZX81 fact happened and the port stayed parking until now.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson