Search found 2190 matches

by stefano
Wed May 21, 2008 7:29 pm
Forum: Amstrad
Topic: BAR command calls
Replies: 0
Views: 6537

BAR command calls

I'm setting up a skeleton for calling the extra ROM functions, such as the disk related one. I have an half-working rename function which hangs, but does its job if I make it run quickly just after a hand written disk command.. something like cat ... and then quickly: call &6000 Why does it happ...
by stefano
Fri May 16, 2008 7:23 am
Forum: z88dk-developers
Topic: [z88dk-dev] variable argument functions
Replies: 2
Views: 4455

Even without knowing what that ct expression means, am I correct in assuming that A*2 is the positive displacement that must be added to SP to point at the LSB of the fmt parameter on the stack? Srangely I'm worink on such functions too (to implement RSX/BAR commands on CPC) .. I think you're right...
by stefano
Tue May 13, 2008 3:59 pm
Forum: Misc
Topic: Is "rename" a reserver word ?
Replies: 1
Views: 5126

Found the problem myself, it is my fault: I doubled the declaration for rename, I'll fix ASAP.
The result is weird, though.
by stefano
Tue May 13, 2008 11:39 am
Forum: Misc
Topic: Is "rename" a reserver word ?
Replies: 1
Views: 5126

Is "rename" a reserver word ?

I'm trying to test the "rename" function, but I have odd results: ;* * * * * Small-C/Plus z88dk * * * * * ; Version: 20070909.1 ; ; Reconstructed for the z80 Module Assembler ; ; Module compile time: Tue May 13 07:49:51 2008 MODULE test.c INCLUDE "#z80_crt0.hdr" ._main ld hl,i_1+...
by stefano
Mon May 12, 2008 2:26 pm
Forum: Amstrad
Topic: cpccpm.lib
Replies: 0
Views: 6447

cpccpm.lib

All, I've set up an experimental variant of the CPC target library to be linked with the CP/M specific stuff. It roughly worked, as you can see here: http://www.z88dk.org/wiki/doku.php/examples:snippets:coswave Changes are in the CVS tree, at the moment (please note the latest cpc_crt0.asm is no lon...
by stefano
Tue May 06, 2008 3:29 pm
Forum: Texas Instruments Calculators
Topic: Optimizer corrupts prog.
Replies: 21
Views: 51797

I think so.
If you find the size unacceptable we can work on it, but first.. can you run the code ?
by stefano
Mon May 05, 2008 6:04 pm
Forum: Misc
Topic: What is wrong with HALT instruction ?!
Replies: 13
Views: 18221

To make it easy you could just overwrite your copy of the {z88dk}/lib/cpc_crt0.asm file with this one:
http://z88dk.cvs.sourceforge.net/*check ... c_crt0.asm
by stefano
Mon May 05, 2008 2:18 pm
Forum: Misc
Topic: What is wrong with HALT instruction ?!
Replies: 13
Views: 18221

All, I just updated the CVS with various fixes for the CPC platform.
Hopefully it solves the HALT issue too.
by stefano
Sat May 03, 2008 4:49 pm
Forum: Misc
Topic: What is wrong with HALT instruction ?!
Replies: 13
Views: 18221

Updating what I said just above, this new trick permits to avoid to preserve AF' too, and the generic math functions work fine, too as well as the 6128 specific ones; I had problem with the 464 version, but it could be because of the emulator I'm using (WinCPC) which has a weird platform configurator.
by stefano
Sat May 03, 2008 12:48 pm
Forum: Misc
Topic: What is wrong with HALT instruction ?!
Replies: 13
Views: 18221

I'm amazed it is possible to detect whether the interrupt is enabled or not ! If it works we solved the sound related part of the discussion (it will be useful for custom load/save routines too). The main CPC related problem still isn't solved, anyway. But hopefully it shouldn't be so difficult (we ...
by stefano
Wed Apr 30, 2008 3:14 pm
Forum: Misc
Topic: What is wrong with HALT instruction ?!
Replies: 13
Views: 18221

Here's a first feedback on my own experiences enabling/disabling the interrupt. I first disabled all the interrupts, and run the "chessboard" demo. It crashed after about 1 second. Then I tried to fix the firmware interposer with a couple of DI/EI, and the demo went on with no errors. So I...
by stefano
Tue Apr 29, 2008 8:17 pm
Forum: Amstrad
Topic: Updated the monochrome sprite lib
Replies: 0
Views: 6849

Updated the monochrome sprite lib

Just found the way to display monochrome sprites in mode1 with direct memory access.. There's still space for speed inprovements but it is basically nicely optimized, now you can play Death Star setting the sprite size to 16 ! And you can run the xlib demo without needing to wait ages ! Now I'll try...
by stefano
Tue Apr 29, 2008 7:38 am
Forum: Misc
Topic: New server ideas
Replies: 1
Views: 5887

Dom, I found a good place for a machine we'd want to attach on the net and perhaps even a hardware (or a virtual linux space) for free here in Turin. I think we'd be able to leave you full access to it. Which is the CPU/Disk power you need ? The power consumption is a minor problem. What about a two...
by stefano
Mon Apr 28, 2008 12:52 pm
Forum: Misc
Topic: What is wrong with HALT instruction ?!
Replies: 13
Views: 18221

I'm not sure it is so easy to keep interrupts enabled; one of the latest stability fixes I put in was an added di at the end of the firmware interposer: it happened that sometimes the interrupts were enabled back by the ROM routines and the CPC crashed. I agree it is quick'n'dirty but it did the job...
by stefano
Thu Apr 24, 2008 4:42 pm
Forum: Misc
Topic: How to specify a binary number in source code ?
Replies: 3
Views: 6849

What about mixed C and ASM ?

<code>
#include "stdio.h"

extern char mydata[];

#asm
._mydata
defb @10000111
defb @10001000
defb 0 ; String termination
#endasm

main()
{
printf("%s",mydata);

}
</code>
by stefano
Sat Apr 19, 2008 1:26 pm
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23577

Thank you, Dom. I slightly adjusted that page.
by stefano
Fri Apr 18, 2008 7:35 pm
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23577

I suspect it is only Z88 related, that platform supports a special "application" format.
Leaving it without options will make a raw binary anyway.
Please have another look at the CPC wiki page and let me know..
by stefano
Fri Apr 18, 2008 10:11 am
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23577

"-make-app" is new to me.. is it really necessary ?
What if you just omit that flag ?
by stefano
Thu Apr 17, 2008 10:35 am
Forum: Amstrad
Topic: "fcntl" libraries for the Amstrad CPC
Replies: 5
Views: 14681

So the existing fcntl library should be able to work on the disk interface too ?
by stefano
Thu Apr 17, 2008 6:53 am
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23577

Ok, I slightly changed some text in that page (I suppose the question about the 600 bytes was due to a typing error, cpc664 in place of cpc464).

Could you please help explaining in detail the..
run"binary

Trick ?
by stefano
Wed Apr 16, 2008 5:27 pm
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23577

Hmm.. could you be able to rewrite that page ?
It's a (quick) mix of deifferent docs, at the moment.. I can try to clean the gross, but I'm unsure on many informations.
As far as I recall the 600 bytes was the difference between the standard z88dk float lib and the target specific one.
by stefano
Wed Apr 16, 2008 7:13 am
Forum: Amstrad
Topic: "fcntl" libraries for the Amstrad CPC
Replies: 5
Views: 14681

"fcntl" libraries for the Amstrad CPC

The z88dk library structure is open to multiple fcntl interfaces.

The actual CPC one is for the tape support:
http://www.z88dk.org/wiki/doku.php/plat ... cpc_target

Does anybody have stuff for disk interfaces ?
by stefano
Wed Apr 16, 2008 7:08 am
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23577

Binary packaging on the CPCs

Should the appmake features need fixes or improvements ?

Do we need to update the documentation (see below) ?

http://www.z88dk.org/wiki/doku.php/platform:amstradcpc
by stefano
Wed Apr 16, 2008 7:02 am
Forum: Misc
Topic: Binary data at the end of application
Replies: 15
Views: 17904

We are always interested in help, you know ;) I've just created a new forum subject in the "Targets" group for the Amstrad targets to concentrate the informations and the ideas which can help to solve the open issues. If I remember well a vary basic core for the Amstrad CPC machines, was i...
by stefano
Fri Apr 11, 2008 8:42 am
Forum: Other targets
Topic: TRS-80
Replies: 25
Views: 30284

TRS-80

Hi everybody, I thought to put an official post for this somewhere in the forum. I'm proud to announce that z88dk is now able to compile programs for the TRS-80 ! Simple sound and graphics support is available, so libraries are complete enough to make the "Death Star" game run with bells a...