Top Level Namespace
Defined in:
Constant Summary
-
CONFIG_FILE =
CONFIG_FILE_PATH / CONFIG_FILE_NAME
-
CONFIG_FILE_NAME =
"crab.yml"
-
CONFIG_FILE_PATH =
Path["~/.config/crab/"].expand(home: true)
-
FILE_PATH =
"src/crab/gb/opcodes.cr"
-
OPCODE_JSON_URL =
"https://raw.githubusercontent.com/izik1/gbops/master/dmgops.json"
Method Summary
- count_set_bits(n : Int) : Int
- first_set_bit(n : Int) : Int
-
help_marker(desc : String) : Nil
Display a little (?) mark which shows a tooltip when hovered.
- hex_str(n : UInt8 | UInt16 | UInt32 | UInt64, prefix = true) : String
- last_set_bit(n : Int) : Int
Macro Summary
- bit?(value, bit)
- bits(value, range)
- clear_bit(value, bit)
- count_bits(value)
- log(value, newline = true)
- set_bit(value, bit)
- set_bit(value, bit, set)
- trace(value, newline = true)
Method Detail
def help_marker(desc : String) : Nil
#
Display a little (?) mark which shows a tooltip when hovered. Translated from the demo code.