Skip to content

Instantly share code, notes, and snippets.

@Blqtent
Last active February 18, 2022 03:39
Show Gist options
  • Save Blqtent/4c7bfe60306e77ad319a69f8f4766f81 to your computer and use it in GitHub Desktop.
Save Blqtent/4c7bfe60306e77ad319a69f8f4766f81 to your computer and use it in GitHub Desktop.
function void draw(int location) {
var int memAddress;
let memAddress = 16384+location;
// column 0
do Memory.poke(memAddress, -1);
do Memory.poke(memAddress +32, 1);
do Memory.poke(memAddress +64, 1);
do Memory.poke(memAddress +96, 1);
do Memory.poke(memAddress +128, 1);
do Memory.poke(memAddress +160, 1);
do Memory.poke(memAddress +192, 1);
do Memory.poke(memAddress +224, 1);
do Memory.poke(memAddress +256, 1);
do Memory.poke(memAddress +288, 1);
do Memory.poke(memAddress +320, 1);
do Memory.poke(memAddress +352, 1);
do Memory.poke(memAddress +384, 1);
do Memory.poke(memAddress +416, 1);
do Memory.poke(memAddress +448, 1);
do Memory.poke(memAddress +480, -32767);
do Memory.poke(memAddress +512, 16385);
do Memory.poke(memAddress +544, 8193);
do Memory.poke(memAddress +576, 4097);
do Memory.poke(memAddress +608, 2049);
do Memory.poke(memAddress +640, -2047);
do Memory.poke(memAddress +672, 2049);
do Memory.poke(memAddress +704, 2049);
do Memory.poke(memAddress +736, 2049);
do Memory.poke(memAddress +768, -6143);
do Memory.poke(memAddress +800, -22527);
do Memory.poke(memAddress +832, -6143);
do Memory.poke(memAddress +864, -22527);
do Memory.poke(memAddress +896, -6143);
do Memory.poke(memAddress +928, 2049);
do Memory.poke(memAddress +960, 2049);
do Memory.poke(memAddress +992, -1);
// column 1
do Memory.poke(memAddress +1, -1);
do Memory.poke(memAddress +257, 448);
do Memory.poke(memAddress +289, 544);
do Memory.poke(memAddress +321, 1040);
do Memory.poke(memAddress +353, 2056);
do Memory.poke(memAddress +385, 4100);
do Memory.poke(memAddress +417, 8194);
do Memory.poke(memAddress +449, 16385);
do Memory.poke(memAddress +481, ~32767);
do Memory.poke(memAddress +641, -1);
do Memory.poke(memAddress +769, -8189);
do Memory.poke(memAddress +801, -24574);
do Memory.poke(memAddress +833, -7197);
do Memory.poke(memAddress +865, -24030);
do Memory.poke(memAddress +897, -7645);
do Memory.poke(memAddress +929, 608);
do Memory.poke(memAddress +961, 544);
do Memory.poke(memAddress +993, -1);
// column 2
do Memory.poke(memAddress +2, -1);
do Memory.poke(memAddress +34, ~32767);
do Memory.poke(memAddress +66, ~32767);
do Memory.poke(memAddress +98, ~32767);
do Memory.poke(memAddress +130, ~32767);
do Memory.poke(memAddress +162, ~32767);
do Memory.poke(memAddress +194, ~32767);
do Memory.poke(memAddress +226, ~32767);
do Memory.poke(memAddress +258, ~32767);
do Memory.poke(memAddress +290, ~32767);
do Memory.poke(memAddress +322, ~32767);
do Memory.poke(memAddress +354, ~32767);
do Memory.poke(memAddress +386, ~32767);
do Memory.poke(memAddress +418, ~32767);
do Memory.poke(memAddress +450, ~32767);
do Memory.poke(memAddress +482, ~32767);
do Memory.poke(memAddress +514, -32767);
do Memory.poke(memAddress +546, -32766);
do Memory.poke(memAddress +578, -32764);
do Memory.poke(memAddress +610, -32760);
do Memory.poke(memAddress +642, -32753);
do Memory.poke(memAddress +674, -32760);
do Memory.poke(memAddress +706, -32760);
do Memory.poke(memAddress +738, -32760);
do Memory.poke(memAddress +770, -32757);
do Memory.poke(memAddress +802, -32758);
do Memory.poke(memAddress +834, -32757);
do Memory.poke(memAddress +866, -32758);
do Memory.poke(memAddress +898, -32757);
do Memory.poke(memAddress +930, -32760);
do Memory.poke(memAddress +962, -32760);
do Memory.poke(memAddress +994, -1);
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment