for Mega65 disable the extended stack on cold/warm restart
This commit is contained in:
1 parent
3476aed277
commit
3eb7d4ffbd
3 files changed
+17
No files matched your search
@@ -69,6 +69,11 @@
|
|||||||
|
|
||||||
#if HAS_OPCODES_65CE02
|
#if HAS_OPCODES_65CE02
|
||||||
|
|
||||||
|
// CPU flags support
|
||||||
|
|
||||||
|
.pseudocommand cle { .byte $02 }
|
||||||
|
.pseudocommand see { .byte $03 }
|
||||||
|
|
||||||
// .B register support
|
// .B register support
|
||||||
|
|
||||||
.pseudocommand tab { .byte $5B }
|
.pseudocommand tab { .byte $5B }
|
||||||
|
|||||||
@@ -16,6 +16,12 @@ hw_entry_reset:
|
|||||||
|
|
||||||
cld // required for all CPUs - due to possibility of manual call
|
cld // required for all CPUs - due to possibility of manual call
|
||||||
|
|
||||||
|
#if HAS_OPCODES_65CE02
|
||||||
|
|
||||||
|
see // disable extended stack
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
ldx #$FF
|
ldx #$FF
|
||||||
txs
|
txs
|
||||||
|
|
||||||
|
|||||||
@@ -18,6 +18,12 @@ default_brk_handler:
|
|||||||
|
|
||||||
cld // make sure this dangerous flag is disabled
|
cld // make sure this dangerous flag is disabled
|
||||||
|
|
||||||
|
#if HAS_OPCODES_65CE02
|
||||||
|
|
||||||
|
see // disable extended stack
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
jsr JRESTOR
|
jsr JRESTOR
|
||||||
jsr JIOINIT
|
jsr JIOINIT
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user