This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INCLUDE "hardware.inc" | |
SECTION "HRAM", HRAM | |
wait_for_vblank: | |
ds 1 | |
SECTION "VBLANK", ROM0[INT_HANDLER_VBLANK] | |
push af | |
xor a | |
ldh [wait_for_vblank], a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <avr/power.h> | |
#include <avr/sleep.h> | |
#define CLOCK_PIN SCL | |
#define OUTPUT_PIN MISO | |
#define BUTTON_PIN SDA | |
#define POT_PIN A0 | |
#define TIMEOUT 4800 | |
#define IS_STARTUP (counter == 255) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Generated by vwfbuild | |
section "vwfChrData",ROM0,align[3] ; log2(glyph height) = 3 | |
vwfChrData:: | |
db 0, 0, 0, 0, 0, 0, 0, 0, 0,128,128,128,128, 0,128, 0 | |
db 0,160,160, 0, 0, 0, 0, 0, 0, 80,248, 80,248, 80, 0, 0 | |
db 0, 32,112,160, 96, 80,224, 64, 0,232,176,208, 44, 52, 92, 0 | |
db 0, 32, 80, 96,152,144,104, 0, 0,128,128, 0, 0, 0, 0, 0 | |
db 0, 64,128,128,128,128,128, 64, 0,128, 64, 64, 64, 64, 64,128 | |
db 0, 32,168,112,168, 32, 0, 0, 0, 0, 32, 32,248, 32, 32, 0 | |
db 0, 0, 0, 0, 0, 0,128,128, 0, 0, 0, 0,240, 0, 0, 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ÿ ÿ 0 ` ` ` ` 0 * > * > 0 > 0 ` @ > c o { c > ? > > ` ` ? c > 6 f ` ~ c > > ` ~ c c > > c > c c > > c c ? > 0 > ~ > | ~ | > c c c c ~ c ~ c c ~ > c ` ` c > | f c c f | ~ ` | ` ` ` | ` ` ` > ` g c c > c c c c c ? ? c > f l x l f c ` ` ` ` ` c w k c c c s { o g c > c c c c > ~ c c c ~ ` > c c c f ; ~ c c c ~ c > ` > ~ ÿ c c c c c > c c c 6 c c k w c c 6 6 c à f < 0 ü æ ã ã æ ü æ ã < v ã ã ã ã ~ à ü æ ã ã ã ã þ > > |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MACRO dn ;; (note, instr, effect) | |
db (\1 | ((\2 & %00010000) << 3)) | |
db (((\2 << 4) & $FF) | (\3 >> 8)) | |
db LOW(\3) | |
ENDM | |
DEF C_3 EQU 0 | |
DEF C#3 EQU 1 | |
DEF D_3 EQU 2 | |
DEF D#3 EQU 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INCLUDE "hardware.inc" | |
SECTION "HRAM", HRAM | |
wait_for_vblank: | |
ds 1 | |
SECTION "VBLANK", ROM0[INT_HANDLER_VBLANK] | |
push af | |
xor a | |
ldh [wait_for_vblank], a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PropExtension extends Closure { | |
final map = [:] | |
PropExtension() { | |
super(null) | |
} | |
def methodMissing(String name, args) { | |
map[name] = args[0] | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if defined(MASTERSYSTEM) | |
#define COL_DEPTH_BITS 2 | |
#else | |
#define COL_DEPTH_BITS 4 | |
#endif | |
#define COL_PER_PALETTE 16 | |
#define R_MASK ((1<<COL_DEPTH_BITS)-1) | |
#define G_MASK (R_MASK << COL_DEPTH_BITS) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void Main() | |
{ | |
GetItems(MathOperation.Average).Dump(); | |
GetItems(MathOperation.Max).Dump(); | |
GetItems(MathOperation.Min).Dump(); | |
} | |
IEnumerable<Item> GetItems(MathOperation mathOperation) | |
{ | |
Expression<Func<IGrouping<long, Album>, decimal>> operation = mathOperation switch |
NewerOlder