Skip to content
This repository was archived by the owner on Feb 10, 2021. It is now read-only.

Commit 06ad74e

Browse files
committed
Remove cursor controls; meaningless w/out a BIOS
1 parent 71f6650 commit 06ad74e

File tree

1 file changed

+4
-44
lines changed

1 file changed

+4
-44
lines changed

software/src/e2/dxforth/dxforth.asm.m4

Lines changed: 4 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,9 @@ assoc(`cmove', `CMOVE ')
4747
assoc(`bye', `BYE ')
4848
assoc(`drop', `DROP ')
4949
assoc(`dup', `DUP ')
50-
assoc(`curson', `CURSON ')
51-
assoc(`cursoff', `CURSOFF ')
52-
assoc(`cursxy', `CURSXY ')
50+
dnl''assoc(`curson', `CURSON ')
51+
dnl''assoc(`cursoff', `CURSOFF ')
52+
dnl''assoc(`cursxy', `CURSXY ')
5353
assoc(`pemitp', `(EMIT) ')
5454
assoc(`emit', `EMIT ')
5555
assoc(`ptypep', `(TYPE) ')
@@ -293,7 +293,7 @@ lit64 = _lit64 - _start
293293
_cold: jal W,_docol
294294
_cold_0:
295295
hword lit16, 10, base, store, empty
296-
hword hi, quit, wedge ; Quit should never return.
296+
hword hi, quit, cold ; Quit should never return.
297297

298298
align 4
299299
_empty: jal W,_docol
@@ -1134,46 +1134,6 @@ _docon:
11341134
ld T,0(T)
11351135
jal x0,next
11361136

1137-
; User console I/O primitives. These primitives provide the
1138-
; user interface to the Forth environment.
1139-
1140-
; Cursor controls
1141-
1142-
align 4
1143-
_curson:
1144-
addi S,S,-8
1145-
sd T,0(S)
1146-
ld W,bs_bi-_start(D)
1147-
ld W,bi_term_cursor_on(W)
1148-
jalr ra,0(W)
1149-
ld T,0(S)
1150-
addi S,S,8
1151-
jal x0,next
1152-
1153-
align 4
1154-
_cursoff:
1155-
addi S,S,-8
1156-
sd T,0(S)
1157-
ld W,bs_bi-_start(D)
1158-
ld W,bi_term_cursor_off(W)
1159-
jalr ra,0(W)
1160-
ld T,0(S)
1161-
addi S,S,8
1162-
jal x0,next
1163-
1164-
align 4
1165-
_cursxy:
1166-
addi S,S,-8
1167-
sd T,0(S)
1168-
addi a0,S,8 ; px
1169-
addi a1,S,0 ; py
1170-
ld W,bs_bi-_start(D)
1171-
ld W,bi_term_cursor_swap(W)
1172-
jalr ra,0(W)
1173-
ld T,0(S)
1174-
addi S,S,8
1175-
jal x0,next
1176-
11771137
; Print a single character to the user's console.
11781138
; The Kestrel-3/E2 version touches hardware directly.
11791139
; We assume that the console's SIA has been properly configured already.

0 commit comments

Comments
 (0)