Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | \ ========== Copyright Header Begin ========================================== |
2 | \ | |
3 | \ Hypervisor Software File: fb-fcodes.fth | |
4 | \ | |
5 | \ Copyright (c) 2006 Sun Microsystems, Inc. All Rights Reserved. | |
6 | \ | |
7 | \ - Do no alter or remove copyright notices | |
8 | \ | |
9 | \ - Redistribution and use of this software in source and binary forms, with | |
10 | \ or without modification, are permitted provided that the following | |
11 | \ conditions are met: | |
12 | \ | |
13 | \ - Redistribution of source code must retain the above copyright notice, | |
14 | \ this list of conditions and the following disclaimer. | |
15 | \ | |
16 | \ - Redistribution in binary form must reproduce the above copyright notice, | |
17 | \ this list of conditions and the following disclaimer in the | |
18 | \ documentation and/or other materials provided with the distribution. | |
19 | \ | |
20 | \ Neither the name of Sun Microsystems, Inc. or the names of contributors | |
21 | \ may be used to endorse or promote products derived from this software | |
22 | \ without specific prior written permission. | |
23 | \ | |
24 | \ This software is provided "AS IS," without a warranty of any kind. | |
25 | \ ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, | |
26 | \ INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A | |
27 | \ PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN | |
28 | \ MICROSYSTEMS, INC. ("SUN") AND ITS LICENSORS SHALL NOT BE LIABLE FOR | |
29 | \ ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR | |
30 | \ DISTRIBUTING THIS SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN | |
31 | \ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR | |
32 | \ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE | |
33 | \ DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, | |
34 | \ ARISING OUT OF THE USE OF OR INABILITY TO USE THIS SOFTWARE, EVEN IF | |
35 | \ SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. | |
36 | \ | |
37 | \ You acknowledge that this software is not designed, licensed or | |
38 | \ intended for use in the design, construction, operation or maintenance of | |
39 | \ any nuclear facility. | |
40 | \ | |
41 | \ ========== Copyright Header End ============================================ | |
42 | id: @(#)fb-fcodes.fth 1.1 00/04/20 | |
43 | purpose: | |
44 | copyright: Copyright 1999-2000 Sun Microsystems, Inc. All Rights Reserved | |
45 | ||
46 | hex | |
47 | \ Define the various FB support FCODEs. | |
48 | \ TERMINAL/FRAMEBUFFER Installation | |
49 | v1 v2 01c 1 byte-code: is-install ( acf -- ) | |
50 | v1 v2 01d 1 byte-code: is-remove ( acf -- ) | |
51 | v1 v2 01e 1 byte-code: is-selftest ( acf -- ) | |
52 | ||
53 | \ TERMINAL/FRAMEBUFFER OPERATIONS (DISPLAY DEVICE FCODES) | |
54 | \ --- Terminal emulator values ------------------------------------------- | |
55 | v1 v2 050 1 byte-code: #lines ( -- n ) | |
56 | v1 v2 051 1 byte-code: #columns ( -- n ) | |
57 | v1 v2 052 1 byte-code: line# ( -- n ) | |
58 | v1 v2 053 1 byte-code: column# ( -- n ) | |
59 | v1 v2 054 1 byte-code: inverse? ( -- flag ) | |
60 | v1 v2 055 1 byte-code: inverse-screen? ( -- flag ) | |
61 | \ v1 056 1 byte-code: frame-buffer-busy? ( -- flag ) \ Obsolete | |
62 | ||
63 | \ --- Terminal emulation low-level operations ---------------------------- | |
64 | v1 v2 057 1 byte-code: draw-character ( char -- ) | |
65 | v1 v2 058 1 byte-code: reset-screen ( -- ) | |
66 | v1 v2 059 1 byte-code: toggle-cursor ( -- ) | |
67 | v1 v2 05a 1 byte-code: erase-screen ( -- ) | |
68 | v1 v2 05b 1 byte-code: blink-screen ( -- ) | |
69 | v1 v2 05c 1 byte-code: invert-screen ( -- ) | |
70 | v1 v2 05d 1 byte-code: insert-characters ( n -- ) | |
71 | v1 v2 05e 1 byte-code: delete-characters ( n -- ) | |
72 | v1 v2 05f 1 byte-code: insert-lines ( n -- ) | |
73 | v1 v2 060 1 byte-code: delete-lines ( n -- ) | |
74 | v1 v2 061 1 byte-code: draw-logo ( line# laddr lwidth lheight -- ) | |
75 | ||
76 | \ --- Frame Buffer Text routines ----------------------------------------- | |
77 | v1 v2 062 1 byte-code: frame-buffer-adr ( -- addr ) | |
78 | v1 v2 063 1 byte-code: screen-height ( -- n ) | |
79 | v1 v2 064 1 byte-code: screen-width ( -- n ) | |
80 | v1 v2 065 1 byte-code: window-top ( -- n ) | |
81 | v1 v2 066 1 byte-code: window-left ( -- n ) | |
82 | ||
83 | \ --- Font --------------------------------------------------------------- | |
84 | v1 v2 06a 1 byte-code: default-font ( -- fntbase chrwidth chrheight fntbytes #1stchr #chrs ) | |
85 | v1 v2 06b 1 byte-code: set-font ( fntbase chrwidth chrheight fntbytes #1stchr #chrs -- ) | |
86 | v1 v2 06c 1 byte-code: char-height ( -- n ) | |
87 | v1 v2 06d 1 byte-code: char-width ( -- n ) | |
88 | v1 v2 06e 1 byte-code: >font ( char -- adr ) | |
89 | v1 v2 06f 1 byte-code: fontbytes ( -- n ) \ Bytes/scan line, usu. 2 | |
90 | ||
91 | \ --- 8-bit frame buffer routines ---------------------------------------- | |
92 | v1 v2 080 1 byte-code: fb8-draw-character ( char -- ) | |
93 | v1 v2 081 1 byte-code: fb8-reset-screen ( -- ) | |
94 | v1 v2 082 1 byte-code: fb8-toggle-cursor ( -- ) | |
95 | v1 v2 083 1 byte-code: fb8-erase-screen ( -- ) | |
96 | v1 v2 084 1 byte-code: fb8-blink-screen ( -- ) | |
97 | v1 v2 085 1 byte-code: fb8-invert-screen ( -- ) | |
98 | v1 v2 086 1 byte-code: fb8-insert-characters ( #chars -- ) | |
99 | v1 v2 087 1 byte-code: fb8-delete-characters ( #chars -- ) | |
100 | v1 v2 088 1 byte-code: fb8-insert-lines ( #lines -- ) | |
101 | v1 v2 089 1 byte-code: fb8-delete-lines ( #lines -- ) | |
102 | v1 v2 08a 1 byte-code: fb8-draw-logo ( line# ladr lwidth lheight -- ) | |
103 | v1 v2 08b 1 byte-code: fb8-install ( width height #cols #lines -- ) |