1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-05 00:05:44 +00:00
millfork/include/c64_hardware.mfk

41 lines
627 B
Plaintext
Raw Normal View History

2017-12-06 23:23:30 +00:00
import c64_vic
import c64_sid
import c64_cia
import cpu6510
array c64_color_ram [1000] @$D800
macro void c64_ram_only() {
2017-12-06 23:23:30 +00:00
cpu6510_ddr = 7
cpu6510_port = 0
}
macro void c64_ram_io() {
2017-12-06 23:23:30 +00:00
cpu6510_ddr = 7
cpu6510_port = 5
}
macro void c64_ram_io_kernal() {
2017-12-06 23:23:30 +00:00
cpu6510_ddr = 7
cpu6510_port = 6
}
macro void c64_ram_io_basic() {
2017-12-06 23:23:30 +00:00
cpu6510_ddr = 7
cpu6510_port = 7
}
macro void c64_ram_charset() {
2017-12-06 23:23:30 +00:00
cpu6510_ddr = 7
cpu6510_port = 1
}
macro void c64_ram_charset_kernal() {
2017-12-06 23:23:30 +00:00
cpu6510_ddr = 7
cpu6510_port = 2
}
macro void c64_ram_charset_basic() {
2017-12-06 23:23:30 +00:00
cpu6510_ddr = 7
cpu6510_port = 3
}