mirror of
https://github.com/KarolS/millfork.git
synced 2024-12-23 23:30:22 +00:00
19 lines
300 B
Plaintext
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
|
|
}
|