Created
February 28, 2021 08:22
-
-
Save jonrandy/24e43ebac2f56c0b59d26f67832d1dd2 to your computer and use it in GitHub Desktop.
Speccy Memory Y-coordinates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Speccy memory addresses for y-coords on screen (first byte) | |
let list = [], third, midblock, fine, i; | |
for (i=0;i<192;i++) { | |
third = i&192 ; | |
midblock = (i&56)>>3 ; | |
fine = (i&7)<<3 ; | |
list.push(midblock+third+fine) | |
} | |
document.body.innerHTML += list.join(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment