gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/examples/gb/hram/hram_data.c
1 #include <gbdk/platform.h>
2
3
4 // Declaring a variable as SFR means:
5 //
6 // It will be allocated in the High RAM (_HRAM area) address space
7 // of the Game Boy sm83 CPU (0xFF80 - 0xFFFE). This address space
8 // is eight bit addressable using the "ldh" opcodes, which allow
9 // for more efficient read and write access.
10 //
11 // The variable will be treated as 8 bit unsigned.
12
13 SFR my_hram_variable;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.