Class: Haxor::Consts

Inherits:
Object
  • Object
show all
Defined in:
lib/haxor/consts.rb

Constant Summary collapse

MAJOR =
0
MINOR =
3
PATCH =
0
GEM_VERSION =
"#{MAJOR}.#{MINOR}.#{PATCH}"
VERSION =
(MAJOR << 16) | (MINOR << 8) | PATCH
ROOT_PATH =
__dir__ + '/../..'
WORD_SIZE =

64bit

8
WORD_UNPACK =
'q<'
RESERVED_MEM =

1024 for CPU, 1024 for IVT

2048
IVT_ADDR =
1024
OPCODE_CMD_MASK =

OpCode

0x0000_0000_0000_00ff
OPCODE_FLG_MASK =

<< 8

0xffff_ffff_ffff_ff00
OPCODE_FLG_OFFSET =
8
OPERAND_FLAGS =

8 bits of flag - 1st operand 8 bits of flag - 2nd operand

8
OPERAND_DEREFERENCE =

how many bits per operand

(1 << 0)
FR_ZERO =

Flags Registry Flags

1 << 0
FR_SIGN =

a-b == 0

1 << 1