Discussion Forum for all things Microbee
Hiding the cursor - Printable Version

+- Discussion Forum for all things Microbee (https://microbeetechnology.com.au/forum)
+-- Forum: Microbee Forum (https://microbeetechnology.com.au/forum/forum-1.html)
+--- Forum: Microbee Software and Documentation (https://microbeetechnology.com.au/forum/forum-7.html)
+--- Thread: Hiding the cursor (/thread-478.html)



Hiding the cursor - Under4Mhz - 06-05-2022

How do I hide the cursor?

It's kind of distracting during game play.


RE: Hiding the cursor - ChickenMan - 06-05-2022

Try a call to A78Eh (42925).


RE: Hiding the cursor - someone - 06-05-2022

Or reprogram the CRTC so that the cursor is off the screen or blank.
This removes any reliance upon ROM calls.

The Synertek R6545 datasheet explains it all.


RE: Hiding the cursor - Under4Mhz - 06-05-2022

Thanks, I didn't realise it used a specific chip for its crt functions

The below code works to hide the cursor, if avoiding rom calls

Code:
void vdu_cursor_hide() {

__asm
    ld      b, #0xff
    ld      c, #0x0d
    ld      a, #14
    out    (#0x0c),a
    out    (c),b
    ld      a, #15
    out    (#0x0c),a
    out    (c),b
__endasm;

}


The CRT datasheet can be found at:

https://datasheetspdf.com/datasheet/R6545.html