MCPcopy Create free account
hub / github.com/chibash/stone / decodeRegister

Method decodeRegister

src/chap13/Opcode.java:32–32  ·  view source on GitHub ↗
(byte operand)

Source from the content-addressed store, hash-verified

30 return (byte)-(reg + 1);
31 }
32 public static int decodeRegister(byte operand) { return -1 - operand; }
33 public static byte encodeOffset(int offset) {
34 if (offset > Byte.MAX_VALUE)
35 throw new StoneException("too big byte offset");

Callers 5

mainLoopMethod · 0.80
moveValueMethod · 0.80
moveHeapValueMethod · 0.80
callFunctionMethod · 0.80
computeNumberMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected