Search found 42 matches

by Mochilote
Sat Feb 18, 2012 1:18 pm
Forum: Amstrad
Topic: Unexpected and different results between compiler versions...
Replies: 24
Views: 38226

I have used snapshot 20120208 to compile it, but i get unstable results:

-The program freezes when calling GetTime
-If I delete calls to GetTime, however, the display is corrupted...
by Mochilote
Sat Feb 11, 2012 12:44 pm
Forum: Amstrad
Topic: Unexpected and different results between compiler versions...
Replies: 24
Views: 38226

My suspicions are confirmed: The following code, compiled in the three versions of z88dk give us the same result: #include <stdio.h> //////////////////////////////////////////////////////////////////////// unsigned char char1,char2,char3,char4; unsigned int GetTime() { unsigned int nTime = 0; #asm C...
by Mochilote
Fri Feb 10, 2012 2:35 pm
Forum: Amstrad
Topic: Unexpected and different results between compiler versions...
Replies: 24
Views: 38226

Are you sure the timer is active 'all the time' ? Couldn't it just depend on the way the interrputs are managed ? As I said in the first message "I think that this counter does not increase with interrupts disabled", so I guess that interrupts are disabled several times more than 3ms and ...
by Mochilote
Thu Feb 09, 2012 11:15 pm
Forum: Amstrad
Topic: Unexpected and different results between compiler versions...
Replies: 24
Views: 38226

Results: z88dk v1.8 : Every second the printf shows about 2600 loops (works as expected) z88dk v1.9 : Every 7 seconds shows about 19000 loops z88dk v20111101 : Every 3 seconds shows about 8400 loops Hi again, i finally managed to compile it on SDCC 3.1.0 and it works perfectly, every second the pri...
by Mochilote
Sun Feb 05, 2012 3:28 pm
Forum: Amstrad
Topic: Unexpected and different results between compiler versions...
Replies: 24
Views: 38226

Unexpected and different results between compiler versions...

Doing some tests I found these strange differences between multiple versions of the compiler, the same code shows different results in execution. I have tested with versions v1.8 (official), v1.9 (official), Nightly build v20111101. The code is basically a infinite loop that measures time (and loops...
by Mochilote
Thu Jul 23, 2009 1:13 pm
Forum: Project Activity
Topic: Nightly builds available
Replies: 4
Views: 10259

dom wrote:Sorted, thank you - double header stuff does not make those browsers happy unfortunately.
Now it works perfectly on both web browsers, thanks.
by Mochilote
Thu Jul 23, 2009 11:20 am
Forum: Project Activity
Topic: Nightly builds available
Replies: 4
Views: 10259

Sorry, but it seems that the html code of http://nightly.z88dk.org is wrong, it doesn't works (it shows a blank page) on Opera 9.64 and IE 8.

If i open the html source code shows some links and text.

Cheers.
by Mochilote
Tue Jul 14, 2009 5:02 pm
Forum: Bug reports
Topic: Problem with 0x with z80asm in v1.9
Replies: 6
Views: 9146

Wow. Thank you, that really is a stinker of a VS bug. I don't suppose you have any other settings that work around other issues that might pop up do you? Not really :D, its the first time i see this kind of bug in VS, but i have seen similar bugs often in some gcc versions and other third party com...
by Mochilote
Mon Jul 13, 2009 9:38 pm
Forum: Bug reports
Topic: Problem with 0x with z80asm in v1.9
Replies: 6
Views: 9146

Hmmm, thanks, but I'm not sure that's it. The problem seems to be the for loop at prsline.c:307 which doesn't seem to run when compiled as Release. I'm a bit tired ATM (and it's only Monday!) so I can't see anything obviously wrong - any more ideas? Hi again, i have take a look at the code and fina...
by Mochilote
Mon Jul 13, 2009 7:05 am
Forum: Bug reports
Topic: Problem with 0x with z80asm in v1.9
Replies: 6
Views: 9146

Hmmm, the debug build works which was what was released last time by the looks of things (mind you last time I used VS2005 express, this time it's a VS2005pro). I've just pulled the win32 release and have uploaded a new version with debug binaries. This 'debug' binaries compile the above code witho...
by Mochilote
Mon Jul 13, 2009 5:35 am
Forum: Windows
Topic: v1.9 win32 binaries don't run on some windows
Replies: 16
Views: 30373

Now it works on any machine :D It's not problem with Release or Debug, you must change in project settings->General->Use of MFC From "Use Standard Windows Libraries" to "Use MFC in a Static Library" in both realease and debug settings in project, they are independent and you must...
by Mochilote
Sun Jul 12, 2009 7:55 pm
Forum: Bug reports
Topic: Problem with 0x with z80asm in v1.9
Replies: 6
Views: 9146

Problem with 0x with z80asm in v1.9

In version v1.8 this code compile without problems ld bc,0xFAFA Now, with v1.9, z80asm gives: Syntax error in expression This code is generated througth a .c with a define #define MY_DEFINE 0xFAFA and used in the same .c: #asm ld bc,MY_DEFINE ... #endasm The .opt generated in v.18 and v1.9 is the sa...
by Mochilote
Sun Jul 12, 2009 7:36 pm
Forum: Windows
Topic: v1.9 win32 binaries don't run on some windows
Replies: 16
Views: 30373

v1.9 win32 binaries don't run on some windows

Same problem than i discovered on v1.7 :/

http://www.z88dk.org/forum/viewtopic.php?id=10

So, maibe some people may have problems with v1.9 sourceforge binaries.
by Mochilote
Thu Mar 12, 2009 1:40 pm
Forum: Misc
Topic: New versions or snapshots?
Replies: 3
Views: 7413

New versions or snapshots?

when you think that will be released a new version or snapshot?

The roadmap its a bit obsolete now :D

It's just curious, the current version works fine.

Cheers
by Mochilote
Fri Feb 13, 2009 9:30 am
Forum: Misc
Topic: Search in the forums doesn't work
Replies: 2
Views: 6367

It works again :-)
by Mochilote
Fri Apr 18, 2008 4:35 pm
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23394

"-make-app" is new to me.. is it really necessary ? What if you just omit that flag ? I not use it, i only say that: -create-app Inserts amsoft header, so the binary can execute with run"binary -make-app need to use memory/load/call to run. I tried it in the past because i don't unde...
by Mochilote
Fri Apr 18, 2008 5:32 am
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23394

Run"Binary is equal to memory LoadAdress - 1 load "binary", LoadAdress call EntryAdress As you can see in this other post that its not totally true. Finally i have tested -create-app and -make-App: -create-app Inserts amsoft header, so the binary can execute with run"binary -mak...
by Mochilote
Fri Apr 18, 2008 5:29 am
Forum: Amstrad
Topic: "fcntl" libraries for the Amstrad CPC
Replies: 5
Views: 14503

Don't know if it's related, as I said in a previous post I tried to load a file directly with some in-line ASM and I received the system message "Press play on tape". Looks like z88dk sets the system into a special mode at startup. It's not a problem in z88dk its a problem/feature in CPC ...
by Mochilote
Wed Apr 16, 2008 8:35 am
Forum: Amstrad
Topic: "fcntl" libraries for the Amstrad CPC
Replies: 5
Views: 14503

stefano wrote:Does anybody have stuff for disk interfaces ?
-Loading a file
-Saving a file
-Firmware for Cas/Disc

I hope this can help,

Cheers.
by Mochilote
Wed Apr 16, 2008 8:30 am
Forum: Amstrad
Topic: Binary packaging on the CPCs
Replies: 12
Views: 23394

stefano wrote:Do we need to update the documentation (see below) ?
I'm at work so i not sure at all, but:

If you use -make-app instead -create-app, you could execute the binary directly, without the need of "memory, load, call", you can execute it using run"binary

Cheers.
by Mochilote
Wed Apr 02, 2008 10:23 am
Forum: Misc
Topic: New CrocoLib project started (based on top of z88dk), need advices !
Replies: 15
Views: 22855

I just commited new CrocoLib version following your advices : https://crocolib.svn.sourceforge.net/svnroot/crocolib/trunk Thanks all. :) Well done, now it seems like a real library ;) Some of the .c files just contains asm code, ?do you plan to convert it to .asm files?. So we could differentiate b...
by Mochilote
Tue Apr 01, 2008 2:17 pm
Forum: Misc
Topic: New CrocoLib project started (based on top of z88dk), need advices !
Replies: 15
Views: 22855

There is another similar project, take a look at this:

http://www.amstrad.es/programacion/cpcrslib_eng.htm

Cheers.
by Mochilote
Tue Mar 25, 2008 9:51 pm
Forum: Issues with 1.8
Topic: printf problems & hangs on Amstrad CPC
Replies: 10
Views: 25047

stefano wrote:It is correct.
The function you're looking for is fgetc_cons.
Ok, thanks.
by Mochilote
Tue Mar 25, 2008 7:55 pm
Forum: Issues with 1.8
Topic: printf problems & hangs on Amstrad CPC
Replies: 10
Views: 25047

Found the problem. ... The required files to patch a bin 'distro' are: http://z88dk.cvs.sourceforge.net/*checkout*/z88dk/z88dk/lib/cpc_crt0.asm http://z88dk.cvs.sourceforge.net/*checkout*/z88dk/z88dk/lib/clibs/cpc_clib.lib http://z88dk.cvs.sourceforge.net/*checkout*/z88dk/z88dk/lib/clibs/cpcansi_cl...