Top Level Namespace

Defined in:

Constant Summary

DISPLAY_SCALE = {% if flag?(:graphics_test) %} 1 {% else %} 4 {% end %}
FILE_PATH = "src/cryboy/opcodes.cr"
OPCODE_JSON_URL = "https://raw.githubusercontent.com/izik1/gbops/master/dmgops.json"
POST_BOOT_VRAM = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 0, 240, 0, 252, 0, 252, 0, 252, 0, 252, 0, 243, 0, 243, 0, 60, 0, 60, 0, 60, 0, 60, 0, 60, 0, 60, 0, 60, 0, 60, 0, 240, 0, 240, 0, 240, 0, 240, 0, 0, 0, 0, 0, 243, 0, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 207, 0, 207, 0, 0, 0, 0, 0, 15, 0, 15, 0, 63, 0, 63, 0, 15, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 0, 192, 0, 15, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 240, 0, 240, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 243, 0, 243, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 192, 0, 192, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 3, 0, 255, 0, 255, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 192, 0, 195, 0, 195, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 252, 0, 252, 0, 243, 0, 243, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 60, 0, 60, 0, 252, 0, 252, 0, 252, 0, 252, 0, 60, 0, 60, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 195, 0, 195, 0, 195, 0, 195, 0, 195, 0, 195, 0, 207, 0, 207, 0, 207, 0, 207, 0, 207, 0, 207, 0, 207, 0, 207, 0, 60, 0, 60, 0, 63, 0, 63, 0, 60, 0, 60, 0, 15, 0, 15, 0, 60, 0, 60, 0, 252, 0, 252, 0, 0, 0, 0, 0, 252, 0, 252, 0, 252, 0, 252, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 240, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 243, 0, 240, 0, 240, 0, 195, 0, 195, 0, 195, 0, 195, 0, 195, 0, 195, 0, 255, 0, 255, 0, 207, 0, 207, 0, 207, 0, 207, 0, 207, 0, 207, 0, 195, 0, 195, 0, 15, 0, 15, 0, 15, 0, 15, 0, 15, 0, 15, 0, 252, 0, 252, 0, 60, 0, 66, 0, 185, 0, 165, 0, 185, 0, 165, 0, 66, 0, 60, 0]

Method Summary

Macro Summary

Method Detail

def array_to_uint16(array : Array(Bool | Int)) : UInt16 #

[View source]
def array_to_uint8(array : Array(Bool | Int)) : UInt8 #

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

[View source]
def nanosleep(nanoseconds : Number) #

[View source]
def nanosleep(time_span : Time::Span) #

[View source]
def repeat(hz : Int, in_fiber : Bool, &block) #

[View source]
def repeat(hz : Int, &block) #

[View source]

Macro Detail

macro log(value, newline = true) #

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

[View source]