Dimensioning Arrays

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
Post Reply
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Dimensioning Arrays

Post by MrVertigo »

If you create and populate arrays using Basic on the ZX81:

1) Is that data accessible to a program written in machine code for the ZX81

2) If it is, does it run slower than data entered in machine code?
Spinnetti
Posts: 254
Joined: Sat Sep 12, 2020 11:29 pm

Re: Dimensioning Arrays

Post by Spinnetti »

Not sure, but why not just do it in ML? Mixing the two seems harder to me than just doing whatever you want in ML.
Zeddy: ZX80, ZX81/ZXpand, TS1000/ZXpand, TS1500/Zxpand+,Printer
Speccy: 48k, +, +2, +3, TS2068, "Bare Metal" Pi, Next KS2, IF1/Microdrives/Vdrive/Light Gun/VGA-Joy
QL: Minerva/QL-VGA/Custom PSU
C5: 24v, LiFE battery, Disc brakes
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: Dimensioning Arrays

Post by MrVertigo »

What is ML?
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Dimensioning Arrays

Post by dr beep »

MrVertigo wrote: Tue May 09, 2023 6:13 pmWhat is ML?
machine language = machinecode
dr beep
Posts: 2076
Joined: Thu Jun 16, 2011 8:35 am
Location: Boxmeer

Re: Dimensioning Arrays

Post by dr beep »

MrVertigo wrote: Tue May 09, 2023 4:15 pm If you create and populate arrays using Basic on the ZX81:

1) Is that data accessible to a program written in machine code for the ZX81

2) If it is, does it run slower than data entered in machine code?
1) yes, read sysvar for variables and search that area forthe defined array
2) yes, problably. first you need to find where varaibkes are stored, then you need to check where in that section the array is.
Machinecode will directly acces the label which is part of the code.
MrVertigo
Posts: 106
Joined: Fri May 27, 2022 9:06 pm

Re: Dimensioning Arrays

Post by MrVertigo »

Thank you!
User avatar
XavSnap
Posts: 1941
Joined: Sat May 10, 2008 4:23 pm
Location: 'Zx81 France' Fb group.

Re: Dimensioning Arrays

Post by XavSnap »

Xavier ...on the Facebook groupe : "Zx81 France"(fr)
Post Reply