Possible bug in ZX81x2 ROM ?

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: Possible bug in ZX81x2 ROM ?

Post by gammaray »

Where do we send the money? (To help motivation...)
I'll check the whole listing tonight to see if there are any another esoteric ROM calls.

Regards;

Greg
Last edited by gammaray on Wed Oct 31, 2018 1:13 am, edited 1 time in total.
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
User avatar
zsolt
Posts: 214
Joined: Wed Apr 20, 2011 11:43 am
Location: Fót, Hungary

Re: Possible bug in ZX81x2 ROM ?

Post by zsolt »

Hi Siggi,
siggi wrote: Tue Oct 30, 2018 7:47 pm the C compiler z88dk also can use the ZX81 math routines in rom to do floating point calculations (depending on the linked math lib). As I understood the source files, it uses RST $28 to call the rom math routines. Does that still fit to your rom?
The only difference was the address of the TEST_5_SP routine - already fixed, see below. :D

(edited: 02.11.2018)
Last edited by zsolt on Fri Nov 02, 2018 8:44 pm, edited 1 time in total.
ZX81 (8K), ENTERPRISE 128, [ZX SPECTRUM (48K,+,+128K,+2,+2A), TS1000, TS1500, TS2068, Cambridge Z88, PRIMO A64 (red)]
User avatar
GCHarder
Posts: 427
Joined: Sat Dec 14, 2013 7:46 pm

Re: Possible bug in ZX81x2 ROM ?

Post by GCHarder »

Here's a list of the ROM calls used, the Siggi problem is caused by the STR$ function being moved.

;------- Rom and Ram Symbols -------
SLOW equ $0F2B
DISPLAY_5 equ $02B5
DISPLAY_3 equ $0292
LOOP_11 equ $0216
SCANNING equ $0F55
FP_TO_A equ $15CD
FIND_INT equ $0EA7
STACK_BC equ $1520
FP_TO_BC equ $158A
LOOK_VARS equ $111C
TEMP_PTR1 equ $004C
STACK_A equ $151D
N_MOD_M equ $1C37
STR_STR equ $1BD5 Moved to $1B8D?, Handle STR$
STK_FETCH equ $13F8
TOKEN_ADD equ $0975
REPORT_2 equ $0D4B
MOVE_FP equ $19F6 Moved to $19FD?, MOVE A FLOATING POINT NUMBER
SET_FAST equ $02E7
BREAK_1 equ $0F46
COPY_BRK equ $0880
SLOW_FAST equ $0207
REPORT_D2 equ $0888
DECODE equ $07BD
TEMP_PTR2 equ $004D
LAST equ $1DFD Changed?

Regards;

Greg
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Possible bug in ZX81x2 ROM ?

Post by siggi »

I think, the "calendar" program also fails due to "STR_STR ":
after "1987.p" is running (and showing the calendar of 1987), pressing "M" writes the name of the months on screen. But pressing "Y" (which should write the year "1987" to screen), the Zeddy crashes.

Siggi

http://www.pictureviewerpro.com/hosting ... lendar.zip
http://www.pictureviewerpro.com/hosting/zx81/fredn.htm
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
zsolt
Posts: 214
Joined: Wed Apr 20, 2011 11:43 am
Location: Fót, Hungary

Re: Possible bug in ZX81x2 ROM ?

Post by zsolt »

Hi,

The 'MODULUS', the 'TEST 5 SPACES', the 'COPY A FLOATING POINT NUMBER' and the 'STR$' routines have been moved back to their original location. :D

Enjoy,
Zsolt
Attachments
zx81x2aaa.zip
(84.26 KiB) Downloaded 270 times
ZX81 (8K), ENTERPRISE 128, [ZX SPECTRUM (48K,+,+128K,+2,+2A), TS1000, TS1500, TS2068, Cambridge Z88, PRIMO A64 (red)]
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: Possible bug in ZX81x2 ROM ?

Post by Moggy »

zsolt wrote: Fri Nov 02, 2018 8:38 pm Hi,

The 'MODULUS', the 'TEST 5 SPACES', the 'COPY A FLOATING POINT NUMBER' and the 'STR$' routines have been moved back to their original location. :D

Enjoy,
Zsolt
Slow down Zsolt I'm running out of EPROMS!! :lol:

Fantastic work sir.

Regards.

Moggy.
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Possible bug in ZX81x2 ROM ?

Post by siggi »

Hi ZSOLT
works perfectly on EO :mrgreen:
Also the calendar program works as expected.

But I found a slightly different behavior on ZxMore: when running HRDEMO30.P: the program does not crash. But while the blinking eye is moving from left top corner to right lower corner, the screen is inverted on EO, but white on ZxMore. Also in the end some inverted screens are not inverted.
Is the ZxMore-version not completely up-to-date?

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: Possible bug in ZX81x2 ROM ?

Post by siggi »

Moggy wrote: Fri Nov 02, 2018 8:58 pm Slow down Zsolt I'm running out of EPROMS!! :lol:
I am using EEPROMs (or flash in ZxMore). So I can update my Zeddies also in winter, when the sun is on holidays (and cannot be used to erase EPROMs) :mrgreen:

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
gammaray
Posts: 590
Joined: Sun Apr 17, 2016 2:44 am
Location: Texas

Re: Possible bug in ZX81x2 ROM ?

Post by gammaray »

By the time I am set up to make EPROMS, ZX81x2 will be a final revision!

I just recently reorganiZ'ed my Z'office full of half-started projects. Ya'll go to fast for me... :D
5-TS1000,UK ZX81<-Sheelagh, US ZX81, 2-TS1500/KDLX , 3-TS2040 printer, 2-TS2020 cassette decks, ZXPAND+AY, ZeddyNET, ZXBlast, UDG, ZX8CCB, AERCO, BUILDS/REPAIRS ZX Spectrum, ZX80 Minstrel, ZXMAX48 v1 v2, 2-TS-2068, ROM, 16kRAM
Moggy
Posts: 3231
Joined: Wed Jun 18, 2008 2:00 pm

Re: Possible bug in ZX81x2 ROM ?

Post by Moggy »

siggi wrote: Fri Nov 02, 2018 9:42 pm
Moggy wrote: Fri Nov 02, 2018 8:58 pm Slow down Zsolt I'm running out of EPROMS!! :lol:
I am using EEPROMs (or flash in ZxMore). So I can update my Zeddies also in winter, when the sun is on holidays (and cannot be used to erase EPROMs) :mrgreen:

Siggi
Ha Ha I hate you Siggi I hate you. :lol:

This is fun.
Post Reply