Skip to content

Commit afd5082

Browse files
Add os_ClrHomeFull()
1 parent 0afad4f commit afd5082

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

src/asm/cstartup.asm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ __errsp:
7070
ld iy,%D00080
7171
res 4,(iy+9) ; onInterrupt,(iy+onFlags)
7272
set 0,(iy+3) ; graphDraw,(iy+graphFlags)
73-
call %002080C ; _ClrLCD
73+
call %0020808 ; _ClrLCDFull
7474
call %0020828 ; _HomeUp
7575
call %0021A3C ; _DrawStatusBar
7676
endif

src/ce/tice.h

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,15 @@ typedef struct { uint16_t size; uint8_t data[1]; } var_t;
187187
#define matrix_element(matrix, row, col) ((matrix)->items[(row)+(col)*(matrix)->rows])
188188

189189
/**
190-
* Resets the OS homescreen
190+
* Resets the OS homescreen; accounts for split screen
191191
*/
192192
#define os_ClrHome() do { _OS(asm_ClrLCD); _OS(asm_HomeUp); _OS(asm_DrawStatusBar); } while (0)
193193

194+
/**
195+
* Resets the OS homescreen fully
196+
*/
197+
#define os_ClrHomeFull() do { _OS(asm_ClrLCDFull); _OS(asm_HomeUp); _OS(asm_DrawStatusBar); } while (0)
198+
194199
/**
195200
* A faster implementation of memset
196201
*
@@ -746,6 +751,11 @@ void asm_EnableAPD(void);
746751
*/
747752
void asm_ArcChk(void);
748753

754+
/**
755+
* Assembly routine to clear the homescreen lcd
756+
*/
757+
void asm_ClrLCDFull(void);
758+
749759
/**
750760
* Assembly routine to clear the homescreen lcd.
751761
* Accounts for split screen

src/ce/tice.src

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104

105105
.def _asm_MoveDown
106106
.def _asm_MoveUp
107+
.def _asm_ClrLCDFull
107108
.def _asm_ClrLCD
108109
.def _asm_HomeUp
109110
.def _asm_RunIndicOn
@@ -219,6 +220,7 @@ _os_CreateAppVar equ 022184h
219220

220221
_asm_MoveDown equ 0207F4h
221222
_asm_MoveUp equ 020800h
223+
_asm_ClrLCDFull equ 020808h
222224
_asm_ClrLCD equ 02080Ch
223225
_asm_HomeUp equ 020828h
224226
_asm_RunIndicOn equ 020844h

0 commit comments

Comments
 (0)