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

Macro Summary

Method Detail

def count_set_bits(n : Int) : Int #

[View source]
def first_set_bit(n : Int) : Int #

[View source]
def help_marker(desc : String) : Nil #

Display a little (?) mark which shows a tooltip when hovered. Translated from the demo code.


[View source]
def hex_str(n : UInt8 | UInt16 | UInt32 | UInt64, prefix = true) : String #

[View source]
def last_set_bit(n : Int) : Int #

[View source]

Macro Detail

macro bit?(value, bit) #

[View source]
macro bits(value, range) #

[View source]
macro clear_bit(value, bit) #

[View source]
macro count_bits(value) #

[View source]
macro log(value, newline = true) #

[View source]
macro set_bit(value, bit) #

[View source]
macro set_bit(value, bit, set) #

[View source]
macro trace(value, newline = true) #

[View source]