Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Assembler ¶
type Assembler struct {
// contains filtered or unexported fields
}
Assembler converts assembly listings back to COB bytecode.
type Disassembler ¶
type Disassembler struct {
// contains filtered or unexported fields
}
Disassembler creates a bytecode view for a single script.
func NewDisassembler ¶
func NewDisassembler(instructions []scripting.Instruction, name string, codeOffset uint32) *Disassembler
NewDisassembler creates a new disassembly view.
func (*Disassembler) Render ¶
func (dv *Disassembler) Render(format Format) string
Render produces disassembly output using the given format.
type WebDisassemblyData ¶
type WebDisassemblyData struct {
Header WebDisassemblyHeader `json:"header"`
Scripts []WebDisassemblyScript `json:"scripts"`
}
WebDisassemblyData represents the complete disassembly for web visualization
type WebDisassemblyHeader ¶
type WebDisassemblyHeader struct {
Version uint32 `json:"version"`
ScriptCount uint32 `json:"scriptCount"`
PieceCount uint32 `json:"pieceCount"`
CodeLength int `json:"codeLength"`
PieceNames []string `json:"pieceNames"`
StaticVars []string `json:"staticVars"`
StaticCount uint32 `json:"staticCount"`
}
WebDisassemblyHeader contains file-level metadata
type WebDisassemblyScript ¶
type WebDisassemblyScript struct {
Index int `json:"index"`
Name string `json:"name"`
Offset uint32 `json:"offset"`
Instructions []WebInstruction `json:"instructions"`
Jumps []WebJump `json:"jumps"`
}
WebDisassemblyScript represents a single script for web visualization
type WebInstruction ¶
type WebInstruction struct {
Index int `json:"index"`
Offset uint32 `json:"offset"`
Opcode string `json:"opcode"`
OpcodeHex string `json:"opcodeHex"`
Operand int32 `json:"operand"`
OperandHex string `json:"operandHex"`
Description string `json:"description"`
}
WebInstruction represents a single instruction for web display
type WebJump ¶
type WebJump struct {
FromIndex int `json:"fromIndex"`
FromOffset uint32 `json:"fromOffset"`
ToIndex int `json:"toIndex"`
ToOffset uint32 `json:"toOffset"`
IsBackward bool `json:"isBackward"`
Type string `json:"type"` // "JUMP" or "JUMP_IF_FALSE"
}
WebJump represents a jump instruction for visualization
Click to show internal directories.
Click to hide internal directories.