2015-09-10 16:22:07 +00:00
|
|
|
;****************************************************************************************
|
|
|
|
; Copyright (C) 2015 The 8-Bit Bunch. Licensed under the Apache License, Version 1.1
|
|
|
|
; (the "License"); you may not use this file except in compliance with the License.
|
|
|
|
; You may obtain a copy of the License at <http://www.apache.org/licenses/LICENSE-1.1>.
|
|
|
|
; Unless required by applicable law or agreed to in writing, software distributed under
|
|
|
|
; the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
|
|
|
|
; ANY KIND, either express or implied. See the License for the specific language
|
|
|
|
; governing permissions and limitations under the License.
|
|
|
|
;****************************************************************************************
|
|
|
|
|
2017-03-23 15:00:49 +00:00
|
|
|
;The following control-codes are used.
|
|
|
|
;CODE__STATE__DESCRIPTION___
|
|
|
|
;Ctrl-A (1) foreground/character color
|
|
|
|
;Ctrl-B (2) background color
|
2017-07-13 17:12:28 +00:00
|
|
|
;Ctrl-C clear to end of line
|
|
|
|
;Ctrl-D clear to end of page
|
2017-03-23 15:00:49 +00:00
|
|
|
;Ctrl-E (3) extended character {A..I}
|
|
|
|
;Ctrl-F (4) font {0,1,2} (not implemented)
|
|
|
|
;Ctrl-T (5) horizonTal position {000..279} base-10
|
|
|
|
;Ctrl-V (6) vertical position {000..191}
|
|
|
|
;Ctrl-R (7) character/ticker rate {00..FF}
|
|
|
|
;Ctrl-L n/a toggle underLine mode
|
|
|
|
;Ctrl-M n/a Carriage return w/line feed
|
|
|
|
;Ctrl-N n/a Normal mode (un-toggle special modes)
|
|
|
|
;Ctrl-Q n/a Home cursor & clear screen
|
|
|
|
;Ctrl-\ n/a Ticker Tape scroll Mode 0=off
|
|
|
|
;Ctrl-] n/a Ticker Tape scroll Mode 1=on
|
|
|
|
;Ctrl-P n/a toggle between ticker/scroll mode
|
|
|
|
;Ctrl-U n/a (right arrow) move +1 column
|
|
|
|
;Ctrl-H n/a (left arrow) move -1 column
|
|
|
|
;Ctrl-J n/a (down arrow) move +1 row
|
|
|
|
;Ctrl-K n/a (up arrow) move -1 row
|
|
|
|
;Ctrl-I n/a Inverse (swap foregnd/bkgnd colors)
|
|
|
|
;Ctrl-Y n/a center justify
|
2014-02-20 15:45:48 +00:00
|
|
|
|
2017-01-05 22:27:44 +00:00
|
|
|
fontEngine = $EC00
|
2017-01-22 16:44:10 +00:00
|
|
|
fontEngineLen = $F00 ; maximum (allows for some debug code)
|
2015-06-07 22:50:06 +00:00
|
|
|
SetFont = fontEngine
|
|
|
|
SetWindow = SetFont+3
|
2017-09-11 18:16:10 +00:00
|
|
|
GetWindow = SetWindow+3
|
|
|
|
ClearWindow = GetWindow+3
|
2015-06-11 18:02:02 +00:00
|
|
|
CopyWindow = ClearWindow+3
|
|
|
|
DisplayChar = CopyWindow+3
|
2015-06-08 15:07:04 +00:00
|
|
|
DisplayStr = DisplayChar+3
|
2015-11-05 17:09:45 +00:00
|
|
|
CalcWidth = DisplayStr+3
|
2017-07-08 23:36:08 +00:00
|
|
|
GetCursor = CalcWidth+3
|
|
|
|
GetStr = GetCursor+3
|
2017-03-22 16:46:17 +00:00
|
|
|
GetScreenLine = GetStr+3
|
2019-01-24 17:51:56 +00:00
|
|
|
NextScreenLine = GetScreenLine+3
|
|
|
|
SetScrollLock = NextScreenLine+3
|