An Intel x86 assembler, generates opCodes from assembly. SUPPORTS ONLY A LIMITED INSTRUCTION SET
Feel free to contribute!
Import the Assembler
class and call
new Assembler().getMachineCode(instructions: Instruction[])
interface Instruction {
label?: string;
operation: string;
ptrType?: PtrType;
operand1?: string;
operand2?: string;
}
type PtrType = 'byte' | 'word' | 'dword';