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" | |
| INCLUDE "hardware_compat.inc" | |
| SECTION "HRAM", HRAM | |
| wait_for_vblank: | |
| ds 1 | |
| SECTION "VBLANK", ROM0[INT_HANDLER_VBLANK] | |
| push af | |
| xor 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
| if !def(DEFS_INC) | |
| def DEFS_INC equ 1 | |
| INCLUDE "hardware.inc" | |
| def SCREEN_ADDRESS_START equ $9C00 | |
| def SCREEN_ADDRESS_END equ (SCREEN_ADDRESS_START + $400) | |
| def LCDC_BG_START equ LCDC_BG_9C00 | |
| endc ; DEFS_INC |
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
| 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
| ; 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
| <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
| /* | |
| * The MIT License (MIT) | |
| * | |
| * Copyright (c) 2023 Selvin | |
| * | |
| */ | |
| #include "ch32v20x.h" //include your board | |
| #include "tusb.h" | |
| #include <stdbool.h> |
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 |
NewerOlder