Created
April 29, 2024 19:38
-
-
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)
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}" | |
webbrowser.open(url) | |
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
#!/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