@@ -87,6 +87,9 @@ vtui_border = VTUI_LIB+44
8787vtui_save_rect = VTUI_LIB + 47
8888vtui_rest_rect = VTUI_LIB + 50
8989vtui_input_str = VTUI_LIB + 53
90+ vtui_get_bank = VTUI_LIB + 56
91+ vtui_get_stride = VTUI_LIB + 59
92+ vtui_get_decr = VTUI_LIB + 62
9093
9194 jsr vtui_initialize
9295 jmp VTUI_LIB_END
@@ -112,6 +115,16 @@ vtui_input_str = VTUI_LIB+53
112115 jsr vtui_set_bank
113116}
114117
118+ ; *****************************************************************************
119+ ; Get current VERA bank (high memory bit)
120+ ; *****************************************************************************
121+ ; USES: .A
122+ ; RETURNS: .C = Bank number, 0 or 1
123+ ; *****************************************************************************
124+ !macro VTUI_GET_BANK {
125+ jsr vtui_get_bank
126+ }
127+
115128; *****************************************************************************
116129; Set the stride without changing other values in VERA_ADDR_H
117130; *****************************************************************************
@@ -122,6 +135,15 @@ vtui_input_str = VTUI_LIB+53
122135 jsr vtui_set_stride
123136}
124137
138+ ; *****************************************************************************
139+ ; Get current VERA stride value
140+ ; *****************************************************************************
141+ ; RETURNS: .A = stride value
142+ ; *****************************************************************************
143+ !macro VTUI_GET_STRIDE {
144+ jsr vtui_get_stride
145+ }
146+
125147; *****************************************************************************
126148; Set the decrement value without changing other values in VERA_ADDR_H
127149; *****************************************************************************
@@ -132,6 +154,16 @@ vtui_input_str = VTUI_LIB+53
132154 jsr vtui_set_decr
133155}
134156
157+ ; *****************************************************************************
158+ ; Get the current VERA decrement value
159+ ; *****************************************************************************
160+ ; USES: .A
161+ ; RETURNS: .C (1 = decrement, 0 = increment)
162+ ; *****************************************************************************
163+ !macro VTUI_GET_DECR {
164+ jsr vtui_get_decr
165+ }
166+
135167; *****************************************************************************
136168; Write character and possibly color to current VERA address
137169; If VERA stride = 1 and decrement = 0, colorcode in X will be written as well.
@@ -300,6 +332,6 @@ vtui_input_str = VTUI_LIB+53
300332 jsr vtui_input_str
301333}
302334
303- VTUI: !bin "VTUI0.9 .BIN"
335+ VTUI: !bin "VTUI1.0 .BIN"
304336
305337VTUI_LIB_END:
0 commit comments