range_diassamble

Diassamble a slice of binary data

string[ushort]
range_diassamble
(
in ushort[] data
,
bool comment = false
,
bool tab = false
,
ushort offset = 0
)
in { assert (data.length > 0, "Can't disassamble empty data"); }

Parameters

data
Type: ushort[]

Slice of DCPU-16 binary data

comment
Type: bool

Add comments to assembly code with the addre and hex machine code

tab
Type: bool

auto tab

offset
Type: ushort

add a offset to addresses of each instruction Returns a asociative array where the key is a pair of addreses that contains the instruction in machine code

Meta