Initial commit of OpenSPARC T2 architecture model.
[OpenSPARC-T2-SAM] / obp / obp / pkg / fcode / fb-fcodes.fth
CommitLineData
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 ============================================
42id: @(#)fb-fcodes.fth 1.1 00/04/20
43purpose:
44copyright: Copyright 1999-2000 Sun Microsystems, Inc. All Rights Reserved
45
46hex
47\ Define the various FB support FCODEs.
48\ TERMINAL/FRAMEBUFFER Installation
49v1 v2 01c 1 byte-code: is-install ( acf -- )
50v1 v2 01d 1 byte-code: is-remove ( acf -- )
51v1 v2 01e 1 byte-code: is-selftest ( acf -- )
52
53\ TERMINAL/FRAMEBUFFER OPERATIONS (DISPLAY DEVICE FCODES)
54\ --- Terminal emulator values -------------------------------------------
55v1 v2 050 1 byte-code: #lines ( -- n )
56v1 v2 051 1 byte-code: #columns ( -- n )
57v1 v2 052 1 byte-code: line# ( -- n )
58v1 v2 053 1 byte-code: column# ( -- n )
59v1 v2 054 1 byte-code: inverse? ( -- flag )
60v1 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 ----------------------------
64v1 v2 057 1 byte-code: draw-character ( char -- )
65v1 v2 058 1 byte-code: reset-screen ( -- )
66v1 v2 059 1 byte-code: toggle-cursor ( -- )
67v1 v2 05a 1 byte-code: erase-screen ( -- )
68v1 v2 05b 1 byte-code: blink-screen ( -- )
69v1 v2 05c 1 byte-code: invert-screen ( -- )
70v1 v2 05d 1 byte-code: insert-characters ( n -- )
71v1 v2 05e 1 byte-code: delete-characters ( n -- )
72v1 v2 05f 1 byte-code: insert-lines ( n -- )
73v1 v2 060 1 byte-code: delete-lines ( n -- )
74v1 v2 061 1 byte-code: draw-logo ( line# laddr lwidth lheight -- )
75
76\ --- Frame Buffer Text routines -----------------------------------------
77v1 v2 062 1 byte-code: frame-buffer-adr ( -- addr )
78v1 v2 063 1 byte-code: screen-height ( -- n )
79v1 v2 064 1 byte-code: screen-width ( -- n )
80v1 v2 065 1 byte-code: window-top ( -- n )
81v1 v2 066 1 byte-code: window-left ( -- n )
82
83\ --- Font ---------------------------------------------------------------
84v1 v2 06a 1 byte-code: default-font ( -- fntbase chrwidth chrheight fntbytes #1stchr #chrs )
85v1 v2 06b 1 byte-code: set-font ( fntbase chrwidth chrheight fntbytes #1stchr #chrs -- )
86v1 v2 06c 1 byte-code: char-height ( -- n )
87v1 v2 06d 1 byte-code: char-width ( -- n )
88v1 v2 06e 1 byte-code: >font ( char -- adr )
89v1 v2 06f 1 byte-code: fontbytes ( -- n ) \ Bytes/scan line, usu. 2
90
91\ --- 8-bit frame buffer routines ----------------------------------------
92v1 v2 080 1 byte-code: fb8-draw-character ( char -- )
93v1 v2 081 1 byte-code: fb8-reset-screen ( -- )
94v1 v2 082 1 byte-code: fb8-toggle-cursor ( -- )
95v1 v2 083 1 byte-code: fb8-erase-screen ( -- )
96v1 v2 084 1 byte-code: fb8-blink-screen ( -- )
97v1 v2 085 1 byte-code: fb8-invert-screen ( -- )
98v1 v2 086 1 byte-code: fb8-insert-characters ( #chars -- )
99v1 v2 087 1 byte-code: fb8-delete-characters ( #chars -- )
100v1 v2 088 1 byte-code: fb8-insert-lines ( #lines -- )
101v1 v2 089 1 byte-code: fb8-delete-lines ( #lines -- )
102v1 v2 08a 1 byte-code: fb8-draw-logo ( line# ladr lwidth lheight -- )
103v1 v2 08b 1 byte-code: fb8-install ( width height #cols #lines -- )