1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-11-03 18:04:46 +00:00
millfork/include/c64_hardware.mfk
Karol Stasiak 0ca1be0c00 Tons of things:
– changed `inline` to `macro`
– added support for parameters for macros written in Millfork
– added `inline`, `noinline`, `register` hints
– added <<<< operator
– pointer dereference expressions are now supported more widely
– C64 library fixes
– added `-O1` command line option as an alias for `-O`
2018-02-01 22:39:38 +01:00

41 lines
627 B
Plaintext

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