extern uint8_t vtchar;
extern void vwrite(void);
+extern void do_cursor_on(void);
#endif
.area _VIDEO
.globl _cursor_off
- .globl _cursor_on
+ .globl _do_cursor_on
.globl _scroll_up
.globl _scroll_down
.globl _vwrite
;
_cursor_off:
ret
-_cursor_on:
- pop hl
- pop de
- push de
- push hl
+_do_cursor_on:
; ld a,i handling is buggy on NMOS Z80
call ___hard_di
push af
+ ld de, (_vtaddr)
ld c,#0x0d
ld a,#0x0e
out (0x0c),a
+ set 5,d ; As seen by the 6545 its 0x20xx
out (c),d
inc a
out (0x0c),a
vwrite();
}
+void cursor_on(int8_t y, int8_t x)
+{
+ char_addr(y,x);
+ do_cursor_on();
+}
+
void vtattr_notify(void)
{
if (ubee_model == UBEE_256TC) {