lol its in c
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

13 lines
221 B

#ifndef GBSDK_BANKING_H
#define GBSDK_BANKING_H
#include <stdint.h>
extern __sfr current_bank;
inline void switch_bank(bank_nr) {
current_bank = bank_nr;
*((uint8_t*)0x2000) = bank_nr;
}
#endif//LIB_BANKING_H