PEEKing memory locations with z88dk (for ZX80 randomiser)

Any discussions related to the creation of new hardware or software for the ZX80 or ZX81
zx81ultra
Posts: 31
Joined: Thu Feb 13, 2020 4:19 am
Location: Bolivia

Re: PEEKing memory locations with z88dk (for ZX80 randomiser)

Post by zx81ultra »

Hello, I was looking for a way to seed the srand() function on the ZX81 with z88dk and found this thread.

Any advice ?

Thank you !
Camilo Eid - ZX81
SM7I
Posts: 10
Joined: Fri Dec 06, 2019 11:13 am

Re: PEEKing memory locations with z88dk (for ZX80 randomiser)

Post by SM7I »

You can use the EXTERN statement in ASM to load a variable from ASM that will be accessed from C.
Post Reply