3
0
mirror of https://github.com/Qortal/AT.git synced 2025-02-11 09:45:52 +00:00
catbref a58b4d4bec New OpCode.compile() to simplify compilation, with checking!
OpCode.compile(...) takes varargs as necessary, and returns byte[].
It will complain if the number of args is incorrect, or if any arg
cannot be coerced into the correct form (byte/int/short/long).
It will also complain if you try to use a branch offset that is too
big to fit into byte.

Two-pass compilation support added with OpCode.calcOffset(ByteBuffer, Integer)
where Integer is null during the first pass, but also set to ByteBuffer.position()
during first pass, so proper value can be calculated during second pass.

MachineState.disassemble() changed into a public static method,
requiring far less effort to call.

Checking of branch target bounds now done by each OpCode as
doing it in OpCodeParam wasn't reliable as PC wasn't available.

Yet more visibility tightening.

Improved comments.

Yet more tests.
2020-04-09 18:16:14 +01:00
2018-08-26 15:11:59 +08:00
2016-02-15 00:34:00 +08:00

AT

Automated Transactions

Description
Automated Transactions
Readme 355 KiB
Languages
Java 100%