GBA Pin | Purpose | My Cable Colour | Voltage |
---|---|---|---|
1 | Vcc | ||
2 | SO / MISO | Brown | 3.31 V |
3 | SI / MOSI | Blue | 3.31 V |
This file contains 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 <iostream> | |
class Character | |
{ | |
public: | |
Character(int maxHP) : m_maxHP(maxHP), m_currentHP(maxHP) {}; | |
void Update() | |
{ | |
if (m_isPoisoned) |
This file contains 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
#ifndef COPYRAT90_ENUM_AS_FLAGS_HPP | |
#define COPYRAT90_ENUM_AS_FLAGS_HPP | |
#include <type_traits> | |
#define ENUM_AS_FLAGS(Enum) \ | |
static_assert(std::is_enum<Enum>::value, "Template argument for Enum is not an enum."); \ | |
\ | |
constexpr bool operator!(Enum a) { \ | |
using Int = typename std::underlying_type<Enum>::type; \ |
- Install C/C++ extension for VSCode
- Copy the snippet below, and paste it as
<yourProjectRoot>/.vscode/c_cpp_properties.json
- Change the line
"<yourPathToButano>/butano/include",
to your location of Butano- For example, if you installed Butano to the
C:/butano
, it should be"C:/butano/butano/include",
- For example, if you installed Butano to the
Note that GB Addr-Reg values are for the GB (not GBA), so the specifics may be different on the GBA.
GBA Addr | GB Addr-Reg | old | Belogic | Tonc | Function (Belogic) |
---|---|---|---|---|---|
0x04000060 | FF10-NR10 | SG10 | [SOUND1CNT_L](https://gbadev.net/gbad |