10 ; ShowDots v1.1 (c) 2026 Jan Borchers, licensed under CC BY 4.0.
20 ; https://hci.ac/showdots
30 ;
40 ; Written in Next BASIC for the Sinclair ZX Spectrum Next.
50 ;
60 ; This is ShowDots.bas, the Next BASIC part of ShowDots. It loads the machine
70 ; code ShowDots.bin into memory at address 40000, notes which directory you
80 ; are in, moves to the one you want scanned, and calls the machine code to
90 ; start the scan.
100 ;
110 ; You can edit root$ below to start the verification on a different drive,
120 ; or in a subdirectory like C:/home/ to save time - but always make it an
130 ; ABSOLUTE path, always end it with a "/", and always use UPPERCASE drive
140 ; letters!
150 ;
160 CLEAR 39999              :; Reserve 40000+ for mach. code; clears variables
170 ;
180 ;==========================================================================
190 LET root$ = "C:/"        :; EDIT THIS AS NEEDED (but see comment above!)
200 ;==========================================================================
210 ;
220 RUN AT 3                 :; Set maximum CPU speed (28 MHz)
230 LOAD "ShowDots.bin" CODE 40000:; Read the machine code in at 40000
240 RANDOMIZE USR 40003      :; Remember the directory we are starting from
250 CD root$                 :; Move to the directory ShowDots should scan
260 RANDOMIZE USR 40000      :; Run it; it returns us to where we started
