NAME

SIRTX::VM::Disassembler - module for assembling SIRTX VM code

VERSION

version v0.09

SYNOPSIS

use SIRTX::VM::Disassembler;

my SIRTX::VM::Disssembler $asm = SIRTX::VM::Disassembler->new(in => $infile, out => $outfile);

$asm->run;

(experimental since v0.09)

This is a disassembler for vmv0 code. It tries to reverse the assembling step by e.g. SIRTX::VM::Assembler. It's main use is to debug programs as well as translators (SIRTX::VM::Assembler and compilers).

This package inherits from Data::Identifier::Interface::Userdata.

METHODS

new

my SIRTX::VM::Disassembler $disasm = SIRTX::VM::Disassembler->new(in => $infile, out => $outfile);

(experimental since v0.09)

Creates a new disassembler object. This object can be used to convert byte code back into code.

The following options are supported:

in

(required)

The input data as a filename or handle. If a handle the handle must allow seeking. Also attributes on the handle might be changed. It is best to avoid reusing the handle with other code.

out

(required)

The output to write the result to. The same aspects as for in apply.

run

$disasm->run;

(experimental since v0.09)

Performs the translation back from binary form to text form.

AUTHOR

Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>

COPYRIGHT AND LICENSE

This software is Copyright (c) 2024-2025 by Löwenfelsen UG (haftungsbeschränkt) <support@loewenfelsen.net>.

This is free software, licensed under:

The Artistic License 2.0 (GPL Compatible)