ld a,#1
suspend_1:
ld (suspend_r),a
- ld a,i
+ ld a, (_int_disabled)
push af
di
ld a,#0x80
out (0x10),a ; booter page in 0x0000-0x3FFF vanishes here
; and our vectors re-appear
pop af ; IRQ state
- jp po,no_irq_on
+ or a
+ jr nz,no_irq_on
ei
no_irq_on: pop af
ret
; FIXME: should be safe to drop the di/ei on these
;
_scroll_up:
- ld a, i
+ ld a, (_int_disabled)
push af
di
in a, (0x11)
jr vtdone
_scroll_down:
- ld a, i
+ ld a, (_int_disabled)
push af
di
in a, (0x11)
vtdone: pop af
out (0x11), a
pop af
- ret po
+ or a
+ ret nz
ei
_vtattr_notify:
_cursor_disable:
push bc
push de
push hl
- ld a, i
+ ld a, (_int_disabled)
push af
di
in a, (0x11)
pop de ; E = y, D = count
push de
push hl
- ld a, i
+ ld a, (_int_disabled)
push af
di
in a, (0x11)
push bc
push de
push hl
- ld a, i
+ ld a, (_int_disabled)
push af
di
in a, (0x11)
push de
push hl
cursor_do:
- ld a, i
+ ld a, (_int_disabled)
push af
di
in a, (0x11)