Skip to content

Instantly share code, notes, and snippets.

@betelgeuse-7
Created April 29, 2024 19:38
Show Gist options
  • Save betelgeuse-7/99765d9231088192d2ed2bb6ea42badb to your computer and use it in GitHub Desktop.
Save betelgeuse-7/99765d9231088192d2ed2bb6ea42badb to your computer and use it in GitHub Desktop.
Scripts to look up a particular x86 instruction in your browser (felixcloutier.com)
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}"
webbrowser.open(url)
#!/bin/bash
if [ "$#" -ne 1 ]; then
echo "Usage: $0 <instruction>"
exit 1
fi
instr="$1"
url="https://www.felixcloutier.com/x86/$instr"
xdg-open "$url"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment