Page 2 of 3

Re: Anyone know useful ZX80 ROM tricks?

Posted: Fri Mar 31, 2017 3:43 pm
by PokeMon
Shaun_B wrote: Fri Mar 31, 2017 1:06 pm I signed up to the German forums, I hope that I get approved.
Just simply ask your questions in english and we know better what you want and you don't have to translate the answers.
Translation can be horrible sometimes. Whoever read a translated chinese manual or description, knows what I mean. :lol:
As we speak German does not mean we don't understand english or want avoid english stuff on that forum. ;)

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 1:19 pm
by Shaun_B
Here is a listing that will allow you to handle floating point numbers between 0.00 and 327.67 on the original ROM-sporting machines:

Code: Select all

10 INPUT M
20 LET M=ABS(M)
30 LET S$="."
40 PRINT M/100;S$;
50 LET R$=STR$(M)
60 IF M<10 THEN PRINT "0";
70 IF M>99 THEN LET R$=TL$(R$)
80 IF M>999 THEN LET R$=TL$(R$)
90 IF M>9999 THEN LET R$=TL$(R$)
100 PRINT R$

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 1:31 pm
by PokeMon
This can be done shorter, I think:

Code: Select all

10 INPUT M
20 LET M=ABS(M)
30 LET F=M/100
40 LET R=M-F*100
50 PRINT F;".";
60 IF R<10 THEN PRINT "0";
70 PRINT R

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 5:24 pm
by Shaun_B
Good tip.

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 5:54 pm
by dr beep
It makes me search the ROM and thinking of hires on 1K ZX80.....

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 6:54 pm
by Shaun_B
Is high resolution even possible on a ZX80?

Regards,

Shaun.

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 6:55 pm
by PokeMon
Yes, depends on screen resolution and memory. The hardware is the same (except missing NMI generator).

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 7:02 pm
by dr beep
Therefore a different start is needed, checking ROM now....

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 7:04 pm
by Shaun_B
Dr Beep, please share your findings :)

Regards,

Shaun.

Re: Anyone know useful ZX80 ROM tricks?

Posted: Tue Apr 04, 2017 7:34 pm
by dr beep
How do I load a game in EightyOne in ZX80 mode?
I only get a full black screen with a game I found.

Edit: got something....