1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-01 21:04:51 +00:00
millfork/include/x16_hardware.mfk

19 lines
300 B
Plaintext
Raw Normal View History

#if VERA_VERSION < 9
import x16/vera_7_or_8
#elseif VERA_VERSION == 9
import x16/vera_9
2019-09-16 20:55:08 +00:00
#else
#error Unsupported VERA_VERSION
#endif
inline asm void set_ram_bank(byte register(a) bank) {
2019-09-16 20:55:08 +00:00
! STA $9F61
? RTS
}
inline asm void set_rom_bank(byte register(a) bank) {
2019-09-16 20:55:08 +00:00
! STA $9F60
? RTS
}