mirror of
https://github.com/KarolS/millfork.git
synced 2024-08-18 17:29:21 +00:00
– 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`
40 lines
632 B
Plaintext
40 lines
632 B
Plaintext
// Hardware addresses for C64
|
|
|
|
// CIA1
|
|
byte cia1_pra @$DC00
|
|
byte cia1_prb @$DC01
|
|
byte cia1_ddra @$DC02
|
|
byte cia1_ddrb @$DC03
|
|
byte cia2_pra @$DD00
|
|
byte cia2_prb @$DD01
|
|
byte cia2_ddra @$DD02
|
|
byte cia2_ddrb @$DD03
|
|
|
|
macro asm void cia_disable_irq() {
|
|
LDA #$7f
|
|
LDA $dc0d
|
|
LDA $dd0d
|
|
LDA $dc0d
|
|
LDA $dd0d
|
|
}
|
|
|
|
|
|
macro void vic_bank_0000() {
|
|
cia2_ddra = 3
|
|
cia2_pra = 3
|
|
}
|
|
|
|
macro void vic_bank_4000() {
|
|
cia2_ddra = 3
|
|
cia2_pra = 2
|
|
}
|
|
|
|
macro void vic_bank_8000() {
|
|
cia2_ddra = 3
|
|
cia2_pra = 1
|
|
}
|
|
|
|
macro void vic_bank_C000() {
|
|
cia2_ddra = 3
|
|
cia2_pra = 0
|
|
} |