Files
openbios/forth/device/builtin.fs
Stefan Reinauer 5c9eb9b45b initial import of openbios--main--1.0--patch-26
git-svn-id: svn://coreboot.org/openbios/openbios-devel@1 f158a5a8-5612-0410-a976-696ce0be7e32
2006-04-26 15:08:19 +00:00

33 lines
579 B
Forth

\ tag: builtin devices
\
\ this code implements IEEE 1275-1994
\
\ Copyright (C) 2003 Stefan Reinauer
\
\ See the file "COPYING" for further information about
\ the copyright and warranty status of this work.
\
\ nodes it's children:
" /" find-device
new-device
" builtin" device-name
external
: open true ;
: close ;
new-device
" console" device-name
external
: open true ;
: close ;
: write dup >r bounds ?do i c@ (emit) loop r> ;
: read dup >r bounds ?do (key) i c! loop r> ;
finish-device
\ clean up afterwards
finish-device
0 active-package!