CLR/HOME support in MEGA65 native mode
This commit is contained in:
1 parent
f5d126e14a
commit
6507a1f74b
4 files changed
+22
-6
No files matched your search
@@ -43,3 +43,5 @@ M65_JSETWIN_N:
|
|||||||
|
|
||||||
M65_JSETWIN_Y:
|
M65_JSETWIN_Y:
|
||||||
jsr M65_SETWIN_Y
|
jsr M65_SETWIN_Y
|
||||||
|
|
||||||
|
// XXX add M65_HOME
|
||||||
@@ -75,10 +75,6 @@ m65_chrout_try_color_loop:
|
|||||||
|
|
||||||
// XXX: implement screen routines below:
|
// XXX: implement screen routines below:
|
||||||
|
|
||||||
m65_chrout_screen_CLR:
|
|
||||||
nop
|
|
||||||
m65_chrout_screen_HOME:
|
|
||||||
nop
|
|
||||||
m65_chrout_screen_TAB:
|
m65_chrout_screen_TAB:
|
||||||
nop
|
nop
|
||||||
m65_chrout_screen_LINE_FEED:
|
m65_chrout_screen_LINE_FEED:
|
||||||
|
|||||||
@@ -50,6 +50,17 @@ m65_chrout_screen_STOP:
|
|||||||
sta INSRT
|
sta INSRT
|
||||||
jmp_8 m65_chrout_screen_ctrl2_end
|
jmp_8 m65_chrout_screen_ctrl2_end
|
||||||
|
|
||||||
|
// CLR/HOME key support
|
||||||
|
|
||||||
|
m65_chrout_screen_CLR:
|
||||||
|
|
||||||
|
jsr M65_CLRWIN
|
||||||
|
jmp_8 m65_chrout_screen_ctrl2_end
|
||||||
|
|
||||||
|
m65_chrout_screen_HOME:
|
||||||
|
|
||||||
|
jsr M65_HOME
|
||||||
|
jmp_8 m65_chrout_screen_ctrl2_end
|
||||||
|
|
||||||
// INS key
|
// INS key
|
||||||
|
|
||||||
|
|||||||
@@ -113,9 +113,10 @@ m65_clrscr_loop_done:
|
|||||||
|
|
||||||
// FALLTROUGH
|
// FALLTROUGH
|
||||||
|
|
||||||
m65_home: // XXX reuse
|
M65_HOME:
|
||||||
|
|
||||||
// XXX provide proper implementation
|
lda M65_SCRWINMODE
|
||||||
|
bmi M65_HOME_winmode
|
||||||
|
|
||||||
lda #$00
|
lda #$00
|
||||||
sta M65__TXTROW
|
sta M65__TXTROW
|
||||||
@@ -124,3 +125,9 @@ m65_home: // XXX reuse
|
|||||||
sta M65_TXTROW_OFF+1
|
sta M65_TXTROW_OFF+1
|
||||||
|
|
||||||
rts
|
rts
|
||||||
|
|
||||||
|
M65_HOME_winmode:
|
||||||
|
|
||||||
|
// XXX provide implementation
|
||||||
|
|
||||||
|
rts
|
||||||
Reference in new issue
Block a user