summaryrefslogtreecommitdiff
path: root/sys/boot/forth/frames.4th
diff options
context:
space:
mode:
authorDevin Teske <dteske@FreeBSD.org>2013-08-08 22:49:18 +0000
committerDevin Teske <dteske@FreeBSD.org>2013-08-08 22:49:18 +0000
commitc660f3a29ee9fc174293c5b65479c8b90819f368 (patch)
treee9827af57a81c0dfe5aa7c099bcfe075fe7ce316 /sys/boot/forth/frames.4th
parentf5d7a80831af232bc7d3663402648cde7486d2d5 (diff)
Notes
Diffstat (limited to 'sys/boot/forth/frames.4th')
-rw-r--r--sys/boot/forth/frames.4th16
1 files changed, 16 insertions, 0 deletions
diff --git a/sys/boot/forth/frames.4th b/sys/boot/forth/frames.4th
index 3b1f4046891f..5d6df243a27e 100644
--- a/sys/boot/forth/frames.4th
+++ b/sys/boot/forth/frames.4th
@@ -12,6 +12,11 @@ variable rt_el
variable rb_el
variable fill
+\ ASCII frames (used when serial console is detected)
+ 45 constant ascii_dash
+124 constant ascii_pipe
+ 43 constant ascii_plus
+
s" arch-pc98" environment? [if]
\ Single frames
149 constant sh_el
@@ -63,7 +68,17 @@ s" arch-pc98" environment? [if]
loop
;
+: f_ascii ( -- ) ( -- ) \ set frames to ascii
+ ascii_dash h_el !
+ ascii_pipe v_el !
+ ascii_plus lt_el !
+ ascii_plus lb_el !
+ ascii_plus rt_el !
+ ascii_plus rb_el !
+;
+
: f_single ( -- ) \ set frames to single
+ boot_serial? if f_ascii exit then
sh_el h_el !
sv_el v_el !
slt_el lt_el !
@@ -73,6 +88,7 @@ s" arch-pc98" environment? [if]
;
: f_double ( -- ) \ set frames to double
+ boot_serial? if f_ascii exit then
dh_el h_el !
dv_el v_el !
dlt_el lt_el !