mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-26 20:33:02 +00:00
Use @word for reset vectors
This commit is contained in:
parent
351d2ac5f9
commit
c153588600
@ -50,16 +50,9 @@ interrupt void on_nmi() {
|
||||
nmi()
|
||||
}
|
||||
|
||||
array nmi_vector @$FFFA = [
|
||||
on_nmi.addr.lo,
|
||||
on_nmi.addr.hi
|
||||
]
|
||||
array reset_vector @$FFFC = [
|
||||
on_reset.addr.lo,
|
||||
on_reset.addr.hi
|
||||
]
|
||||
array irq_vector @$FFFE = [
|
||||
on_irq.addr.lo,
|
||||
on_irq.addr.hi
|
||||
]
|
||||
array nmi_vector @$FFFA = @word [on_nmi.addr]
|
||||
|
||||
array reset_vector @$FFFC = @word [on_reset.addr]
|
||||
|
||||
array irq_vector @$FFFE = @word [on_irq.addr]
|
||||
|
||||
|
@ -105,8 +105,8 @@ asm void reset_routine() @$FFF4 {
|
||||
JMP main
|
||||
}
|
||||
|
||||
array __vectors @$FFFA = [
|
||||
reset_routine.addr.lo, reset_routine.addr.hi,
|
||||
reset_routine.addr.lo, reset_routine.addr.hi,
|
||||
reset_routine.addr.lo, reset_routine.addr.hi
|
||||
array __vectors @$FFFA = @word [
|
||||
reset_routine.addr,
|
||||
reset_routine.addr,
|
||||
reset_routine.addr
|
||||
]
|
||||
|
Loading…
x
Reference in New Issue
Block a user