1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-06-11 15:29:34 +00:00
millfork/include/stdlib.mfk

24 lines
355 B
Plaintext
Raw Normal View History

2017-12-06 23:23:30 +00:00
// target-independent things
word nmi_routine_addr @$FFFA
word reset_routine_addr @$FFFC
word irq_routine_addr @$FFFE
inline asm void poke(word const addr, byte const value) {
?LDA #value
STA addr
}
inline asm byte peek(word const addr) {
LDA addr
}
inline asm void disable_irq() {
SEI
}
inline asm void enable_irq() {
CLI
}