Skip to content

Instantly share code, notes, and snippets.

@pitust
pitust / README.md
Created July 21, 2022 13:42
glitchs LOL

glitchs LOL

This is an outer bounds TAS made in tasIDE. To load it into tasIDE, click here. To play it, click here.

Note: this text was automatically generated by tasIDE

@pitust
pitust / README.md
Created July 21, 2022 12:56
Outer Bounds in 42:880 TAS

Outer Bounds in 42:880 TAS

This is an outer bounds TAS made in tasIDE. To load it into tasIDE, click here. To play it, click here.

Note: this text was automatically generated by tasIDE

// it's a simple mark-and-sweep algorithm
// binary layout:
// text, data and bss must be after `loadbase`, then comes the .heap section, then `stacksize` which must come after .heap
#define heapsize 0x10000
#define loadbase 0x200000
#define stacksize 0x4000

The exchange protocol

Constants

  1. ns mask is 0xffff_0000_0000
  2. magic is 0x4e96_0000_0000
  3. mask is 0x0000_ff00_0000
  4. data mask is 0x0000_00ff_ffff
  5. class mask is 0x0000_f000_0000
  6. kClassDefault is 0x0000_0000_0000
  7. kClassSupply is 0x0000_1000_0000
  8. kClassDemand is 0x0000_2000_0000
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install gcc g++ make gdb wget -y
wget https://go.microsoft.com/fwlink/?LinkID=760868 -Ovscode.deb
sudo dpkg -i vscode.deb
rm vscode.deb
code --install-extension PKief.material-icon-theme
code --install-extension ms-vscode.cpptools
code --install-extension Yukai.map-replace-js