2000-05-28 13:40:48 +00:00
|
|
|
;
|
|
|
|
; Ullrich von Bassewitz, 28.09.1998
|
|
|
|
;
|
|
|
|
; Banking routines for the 610.
|
|
|
|
;
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.export set_bank, sys_bank, restore_bank
|
|
|
|
.importzp ptr1, segsave
|
2000-05-28 13:40:48 +00:00
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.include "cbm610.inc"
|
2000-05-28 13:40:48 +00:00
|
|
|
|
|
|
|
.code
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.proc sys_bank
|
|
|
|
pha
|
|
|
|
lda IndReg
|
|
|
|
sta segsave
|
|
|
|
lda #$0F
|
|
|
|
sta IndReg
|
|
|
|
pla
|
|
|
|
rts
|
2000-05-28 13:40:48 +00:00
|
|
|
.endproc
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.proc set_bank
|
|
|
|
pha
|
|
|
|
lda IndReg
|
|
|
|
sta segsave
|
|
|
|
pla
|
|
|
|
sta IndReg
|
|
|
|
rts
|
2000-05-28 13:40:48 +00:00
|
|
|
.endproc
|
|
|
|
|
2013-05-09 11:56:54 +00:00
|
|
|
.proc restore_bank
|
|
|
|
pha
|
|
|
|
lda segsave
|
|
|
|
sta IndReg
|
|
|
|
pla
|
|
|
|
rts
|
2000-05-28 13:40:48 +00:00
|
|
|
.endproc
|
|
|
|
|
|
|
|
|