c128 fast execution

Discussion about other targets
Post Reply
oflor
Member
Posts: 19
Joined: Fri Nov 09, 2018 9:43 pm

c128 fast execution

Post by oflor »

Hi:

In c128 native mode, I modify the loader program to execute the z88dk program in FAST mode.

In the VICE emulator it work as spected. But on a real C128 all hangs and nothing is executed.

Anyone know why it occurs?

Thanks to All and
Best Regards
Fabrizio
Member
Posts: 115
Joined: Tue Jul 11, 2017 9:28 pm

Re: c128 fast execution

Post by Fabrizio »

Yes, I have the same experience. I think it worked even in Z64K.
In order to gain a bit of time I also disable the Vic-IIe.
By the way, Vice is not very accurate. Z64K provides better C128 (and VDC) emulation.

I see that the C128 programs take some time to start. I wonder what the loader is doing. Is it copying the whole binary in a different location?
stefano
Well known member
Posts: 2137
Joined: Mon Jul 16, 2007 7:39 pm

Re: c128 fast execution

Post by stefano »

No. the loader simply switches to the new CPU and jumps.
There could be something in the data allocation setup, though. Nothing which I'd expect to differ between the different targets, though.. perhaps the Z80 on the c128 runs VERY slowly.
Fabrizio
Member
Posts: 115
Joined: Tue Jul 11, 2017 9:28 pm

Re: c128 fast execution

Post by Fabrizio »

@stefano, the problem is that binaries compiled with Z88DK for the C128 take 1000 times or more more time to start (i.e. seconds for large binaries). It seems to depend on the size of the binary.
oflor
Member
Posts: 19
Joined: Fri Nov 09, 2018 9:43 pm

Re: c128 fast execution

Post by oflor »

I see that the loader program upload from disk the program before execute it.

Thats will take time on large program because of the disk uploading procedure.

I don't see on z88dk in native c128 mode, as is on other compilers, that have a bootstrap basic program. This is made with a auxiliar program with name _ldr.
Post Reply