Skip to content

Instantly share code, notes, and snippets.

@tom-seddon
Created September 6, 2020 21:44
Show Gist options
  • Save tom-seddon/15f366ea1e75bf5b4e008b28e526e584 to your computer and use it in GitHub Desktop.
Save tom-seddon/15f366ea1e75bf5b4e008b28e526e584 to your computer and use it in GitHub Desktop.
Improved Video NuLA detection code
10REM>DETECTNULA
20MODE7
30VDU23,0,8,&30,0;0;0;
40*FX9
50*FX10
60*FX151,32,16
70*FX19
80E%=FNTM
90REM 34=&22,68=&44
100*FX151,34,68
110*FX19
120G%=FNTM
130NULA%=E%/G%>0.75
140MODE7
150IFNULA%:PRINT"NuLA detected":ELSE:PRINT"NuLA not detected"
160END
170DEFFNTM:LOCALI%,T%:TIME=0:FORI%=1TO5:*FX19
180NEXT:T%=TIME:=T%
190
@tom-seddon
Copy link
Author

Works over the Tube, unlike the code in BeebNICCC...

@simondotm
Copy link

Sweet! Thanks Tom!

@dave-f
Copy link

dave-f commented Feb 16, 2021

Cheers Tom!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment