1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-24 15:29:23 +00:00
millfork/include/x16_hardware.mfk
2020-05-01 15:19:25 +02:00

19 lines
300 B
Plaintext

#if VERA_VERSION < 9
import x16/vera_7_or_8
#elseif VERA_VERSION == 9
import x16/vera_9
#else
#error Unsupported VERA_VERSION
#endif
inline asm void set_ram_bank(byte register(a) bank) {
! STA $9F61
? RTS
}
inline asm void set_rom_bank(byte register(a) bank) {
! STA $9F60
? RTS
}