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
// There is no support for ',' which reads a byte from stdin | |
interpreter := Object clone | |
List last := method(self at((self size) - 1)) | |
interpreter eval := method(prog, | |
ds := List clone preallocateToSize(30000) setSize(30000) map(0) | |
dp := 0 | |
is := list() |
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
import sys | |
import webbrowser | |
if __name__ == "__main__": | |
if len(sys.argv) != 2: | |
print("Usage: python3 x86.py <instruction>") | |
sys.exit(1) | |
instr = sys.argv[1] | |
url = f"https://www.felixcloutier.com/x86/{instr}" |
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
#include <stdio.h> | |
int main() { | |
long rax, rbx, rcx, rdx, rdi, rsi, rsp, rbp; | |
asm ( | |
"movq %%rax, %0\n" | |
"movq %%rbx, %1\n" | |
"movq %%rcx, %2\n" | |
"movq %%rdx, %3\n" |
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
// FILE=file.ext CHUNKS=4 go run split.go | |
// CHUNKS is optional (default is 4). | |
package main | |
import ( | |
"fmt" | |
"os" | |
"strconv" | |
"sync" | |
) |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"syscall" | |
) | |
/* | |
#include <fcntl.h> |