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
| ; Initializing | |
| DEF SP_INIT EQU $cfff ; Initial location of Stack Pointer | |
| ; Screen constants | |
| DEF SCREEN_HEIGHT EQU 144 ; Visible Pixels before VBlank ($90) | |
| DEF SCREEN_WIDTH EQU 160 ; Visible Pixels before HBlank ($A0) | |
| DEF LCDC_ON EQU $80 ; Turn LCDC on | |
| DEF LCDC_STANDARD EQU $d3 ; LCDC, BG, Sprites on, Window Tile Map starts at $9c00, | |
| ; BG & Window Tile Data starts at $8000, | |
| ; BG Tile Map Display starts at $9800, |
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
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <TargetFramework>netstandard2.0</TargetFramework> | |
| <PackageID>MyBuildTool</PackageID> | |
| <IncludeBuildOutput>false</IncludeBuildOutput> | |
| <NoWarn>$(NoWarn);NU1702;MSB3270;NU5128</NoWarn> | |
| <ProduceReferenceAssembly>true</ProduceReferenceAssembly> | |
| </PropertyGroup> |
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
| db $00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$2E,$FF,$00,$76,$89,$DB,$AD,$BD,$EB,$EB,$FF,$FF,$FF,$FF,$FF,$00,$10,$00,$38,$38,$7C,$44,$FE,$00,$7C,$00,$FF,$00,$FF,$00,$FF,$00,$11,$00,$BB,$38,$FF,$44,$FF,$00,$FF,$00,$FF,$00,$FF,$00,$FF,$00,$10,$00,$B8,$38,$FC,$44,$FE,$00,$FC,$00,$FF,$00,$FF,$00,$FF,$00,$11,$00,$BB,$BA,$FF,$45,$FF,$BA,$FF,$45,$FF,$BA,$FF,$45,$FF,$55,$FF,$BA,$FF,$45,$FF,$BA,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$FF,$3F,$3F,$40,$40,$80,$80,$80,$80,$80,$80,$80,$80,$40,$40,$3F,$3F,$FF,$FF,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$00,$FF,$FF,$FC,$FC,$02,$02,$01,$01,$01,$01,$01,$01,$01,$01,$02,$02,$FC,$FC |
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 |
NewerOlder