-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
89 additions
and
93 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,38 @@ | ||
{ | ||
"asm": { | ||
"operators": [ | ||
"+", "-", "/", "*", "(", ")", "[", "]", "\"", "'", ",", ".", | ||
"%", "=", "==", "<", ">", "!", "!=", "<=", ">=", "+=", "-=", | ||
"*=", "/=", "&", "&&", "|", "||", "^", "~" | ||
], | ||
"arithmetics": [ | ||
"ADD", "SUB", "INC", "DEC", "MUL", "IMUL", "DIV", "IDIV", | ||
"AND", "OR", "XOR", "NOT", "SHL", "SHR" | ||
], | ||
"criticals": ["RET", "PROC", "ENDP", "END", "INCLUDE", "SECTION"], | ||
"instructions": [ | ||
"MOV", "MOVS", "MOVSX", "MOVZX", "CMP", "PUSH", "POP", | ||
"PUSHAD", "POPAD", "LEA", "NOP", "HLT", "INT", "LEAVE", "CLC", | ||
"STC", "CLD", "STD", "CLI", "STI", "CMPXCHG", "XCHG", "BSWAP", | ||
"NOP", "PUSHF", "POPF", "REP", "REPE", "REPZ", "REPNE", "REPNZ", | ||
"CMC", "CWDE", "CDQ", "WAIT", "CBW", "CWD", "INTO", "IRET", "OFFSET", | ||
"PTR", "FLD", "FSTP", "SYSCALL", "USES", "COMMENT", "EQU", "GLOBAL" | ||
], | ||
"datatypes": [ | ||
"BYTE", "WORD", "DWORD", "QWORD", "DB", "DW", "DD", | ||
"DQ", "REAL", "RESB", "RESW", "RESD", "RESQ" | ||
], | ||
"jumps": [ | ||
"JMP", "JE", "JNE", "JG", "JGE", "JL", "JLE", "JZ", "JNZ", | ||
"JS", "JNS", "JC", "JNC", "JB", "JA", "CALL", "INVOKE" | ||
], | ||
"registers": [ | ||
"AL", "BL", "CL", "DL", "AH", "BH", "CH", "DH", "AX", "BX", "CX", "DX", | ||
"EAX", "EBX", "ECX", "EDX", "RAX", "RBX", "RCX", "RDX", "DI", "SI", "EDI", | ||
"ESI", "EBP", "ESP", "RBP", "RSP", "RDI", "RSI", "R8", "R9", "R10", "R11", | ||
"R12", "R13", "R14", "R15", "R8B", "R8W", "R8D", "R9B", "R9W", "R9D", | ||
"R10B", "R10W", "R10D", "R11B", "R11W", "R11D", "R12B", "R12W", "R12D", | ||
"R13B", "R13W", "R13D", "R14B", "R14W", "R14D", "R15B", "R15W", "R15D" | ||
] | ||
} | ||
"asm": { | ||
"operators": [ | ||
"+", "-", "/", "*", "(", ")", "[", "]", "\"", "'", ",", ".", | ||
"%", "=", "==", "<", ">", "!", "!=", "<=", ">=", "+=", "-=", | ||
"*=", "/=", "&", "&&", "|", "||", "^", "~" | ||
], | ||
"arithmetics": [ | ||
"ADD", "SUB", "INC", "DEC", "MUL", "IMUL", "DIV", "IDIV", | ||
"AND", "OR", "XOR", "NOT", "SHL", "SHR" | ||
], | ||
"criticals": ["RET", "PROC", "ENDP", "END", "INCLUDE", "SECTION"], | ||
"instructions": [ | ||
"MOV", "MOVS", "MOVSX", "MOVZX", "CMP", "PUSH", "POP", | ||
"PUSHAD", "POPAD", "LEA", "NOP", "HLT", "INT", "LEAVE", "CLC", | ||
"STC", "CLD", "STD", "CLI", "STI", "CMPXCHG", "XCHG", "BSWAP", | ||
"NOP", "PUSHF", "POPF", "REP", "REPE", "REPZ", "REPNE", "REPNZ", | ||
"CMC", "CWDE", "CDQ", "WAIT", "CBW", "CWD", "INTO", "IRET", "OFFSET", | ||
"PTR", "FLD", "FSTP", "SYSCALL", "USES", "COMMENT", "EQU", "GLOBAL" | ||
], | ||
"datatypes": [ | ||
"BYTE", "WORD", "DWORD", "QWORD", "DB", "DW", "DD", | ||
"DQ", "REAL", "RESB", "RESW", "RESD", "RESQ" | ||
], | ||
"jumps": [ | ||
"JMP", "JE", "JNE", "JG", "JGE", "JL", "JLE", "JZ", "JNZ", | ||
"JS", "JNS", "JC", "JNC", "JB", "JA", "CALL", "INVOKE" | ||
], | ||
"registers": [ | ||
"AL", "BL", "CL", "DL", "AH", "BH", "CH", "DH", "AX", "BX", "CX", "DX", | ||
"EAX", "EBX", "ECX", "EDX", "RAX", "RBX", "RCX", "RDX", "DI", "SI", "EDI", | ||
"ESI", "EBP", "ESP", "RBP", "RSP", "RDI", "RSI", "R8", "R9", "R10", "R11", | ||
"R12", "R13", "R14", "R15", "R8B", "R8W", "R8D", "R9B", "R9W", "R9D", | ||
"R10B", "R10W", "R10D", "R11B", "R11W", "R11D", "R12B", "R12W", "R12D", | ||
"R13B", "R13W", "R13D", "R14B", "R14W", "R14D", "R15B", "R15W", "R15D" | ||
] | ||
} | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,57 +1,53 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<link | ||
rel="shortcut icon" | ||
href="https://i.imgur.com/mKqNMmd.png" | ||
type="image/x-icon" | ||
/> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="description" | ||
content="This is an Assembly code highlighter where you can paste your code and generate copyable highlighted code for assembly language. It supports almost all the popular assemblers (NASM, MASM, etc.)." | ||
/> | ||
<meta | ||
name="keywords" | ||
content="syntax highlighter, assembly, masm, nasm, code, assembly highlighter, online, free" | ||
/> | ||
<meta name="author" content="najmiter" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Chitter - A syntax highlighter for assembly</title> | ||
<link rel="stylesheet" href="style.css" /> | ||
<script src="main.js" defer></script> | ||
</head> | ||
<head> | ||
<link | ||
rel="shortcut icon" | ||
href="https://i.imgur.com/mKqNMmd.png" | ||
type="image/x-icon" | ||
/> | ||
<meta charset="UTF-8" /> | ||
<meta | ||
name="description" | ||
content="This is an Assembly code highlighter where you can paste your code and generate copyable highlighted code for assembly language. It supports almost all the popular assemblers (NASM, MASM, etc.)." | ||
/> | ||
<meta | ||
name="keywords" | ||
content="syntax highlighter, assembly, masm, nasm, code, assembly highlighter, online, free" | ||
/> | ||
<meta name="author" content="najmiter" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>Chitter - A syntax highlighter for assembly</title> | ||
<link rel="stylesheet" href="style.css" /> | ||
<script src="main.js" defer></script> | ||
</head> | ||
|
||
<body> | ||
<main> | ||
<header id="top"> | ||
<button id="btn-highlight">Koochi Koochi</button> | ||
<select id="tab-size"> | ||
<option value="">Tab size</option> | ||
<option value="2">2</option> | ||
<option value="3">3</option> | ||
<option value="4">4</option> | ||
<option value="5">5</option> | ||
<option value="6">6</option> | ||
</select> | ||
</header> | ||
<body> | ||
<main> | ||
<header id="top"> | ||
<button id="btn-highlight">Koochi Koochi</button> | ||
<select id="tab-size"> | ||
<option value="">Tab size</option> | ||
<option value="2">2</option> | ||
<option value="3">3</option> | ||
<option value="4">4</option> | ||
<option value="5">5</option> | ||
<option value="6">6</option> | ||
</select> | ||
</header> | ||
|
||
<div id="two-sections"> | ||
<div id="input" class="texts"> | ||
<textarea | ||
spellcheck="false" | ||
placeholder="Type or paste your assembly code..." | ||
id="input-text" | ||
></textarea> | ||
</div> | ||
<div id="output" class="texts"> | ||
<div | ||
spellcheck="false" | ||
contenteditable="true" | ||
id="output-text" | ||
></div> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
<div id="two-sections"> | ||
<div id="input" class="texts"> | ||
<textarea | ||
spellcheck="false" | ||
placeholder="Type or paste your assembly code..." | ||
id="input-text" | ||
></textarea> | ||
</div> | ||
<div id="output" class="texts"> | ||
<div spellcheck="false" contenteditable="true" id="output-text"></div> | ||
</div> | ||
</div> | ||
</main> | ||
</body> | ||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"tab_size": 4, | ||
"non sense": -1 | ||
"tab_size": 4, | ||
"non sense": -1 | ||
} |
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