20 lines
592 B
TypeScript
20 lines
592 B
TypeScript
export declare enum OpcodeMemoryAccess {
|
|
write = "write",
|
|
read = "read",
|
|
full = "full"
|
|
}
|
|
export declare class Opcode {
|
|
readonly value: number;
|
|
readonly mnemonic: string;
|
|
readonly delta: number;
|
|
readonly alpha: number;
|
|
readonly doc: string;
|
|
constructor(mnemonic: string, value: number, delta: number, alpha: number, doc?: string);
|
|
isJump(): boolean;
|
|
isValidJumpDest(): boolean;
|
|
isPush(): number;
|
|
isMemoryAccess(readOrWrite?: boolean): OpcodeMemoryAccess;
|
|
isStatic(): boolean;
|
|
static from(valueOrMnemonic: number | string): Opcode;
|
|
}
|