blob: 724c1bad6d7a8f612e05c198223fb418c194837c [file] [log] [blame]
Kevin O'Connor40401952011-12-31 03:43:12 -05001// Video Bios Extensions handlers
2//
Kevin O'Connord9211ee2012-01-31 22:54:49 -05003// Copyright (C) 2012 Kevin O'Connor <kevin@koconnor.net>
4// Copyright (C) 2011 Julian Pidancet <julian.pidancet@citrix.com>
Kevin O'Connor40401952011-12-31 03:43:12 -05005// Copyright (C) 2001-2008 the LGPL VGABios developers Team
6//
7// This file may be distributed under the terms of the GNU LGPLv3 license.
8
Kevin O'Connor81541132012-02-12 11:49:25 -05009#include "biosvar.h" // GET_GLOBAL
Kevin O'Connor2d2fa312013-09-14 21:55:26 -040010#include "bregs.h" // struct bregs
11#include "config.h" // CONFIG_*
12#include "output.h" // dprintf
Kevin O'Connor2e57c812013-09-14 22:29:32 -040013#include "std/vbe.h" // struct vbe_info
Kevin O'Connorfa9c66a2013-09-14 19:10:40 -040014#include "string.h" // memset_far
Kevin O'Connor2f2ec112016-08-05 11:14:58 -040015#include "vgabios.h" // get_current_mode
Kevin O'Connor2d2fa312013-09-14 21:55:26 -040016#include "vgahw.h" // vgahw_set_mode
Kevin O'Connor2f2ec112016-08-05 11:14:58 -040017#include "vgautil.h" // handle_104f
18
19#define VBE_OEM_STRING "SeaBIOS VBE(C) 2011"
20#define VBE_VENDOR_STRING "SeaBIOS Developers"
21#define VBE_PRODUCT_STRING "SeaBIOS VBE Adapter"
22#define VBE_REVISION_STRING "Rev. 1"
Kevin O'Connor40401952011-12-31 03:43:12 -050023
Kevin O'Connor3339c052012-01-13 20:00:35 -050024u32 VBE_total_memory VAR16 = 256 * 1024;
25u32 VBE_capabilities VAR16;
26u32 VBE_framebuffer VAR16;
Kevin O'Connor49ddd9e2012-09-04 13:16:36 -040027u16 VBE_win_granularity VAR16;
Kevin O'Connor3339c052012-01-13 20:00:35 -050028
Kevin O'Connor40401952011-12-31 03:43:12 -050029static void
30vbe_104f00(struct bregs *regs)
31{
32 u16 seg = regs->es;
33 struct vbe_info *info = (void*)(regs->di+0);
34
35 if (GET_FARVAR(seg, info->signature) == VBE2_SIGNATURE) {
36 dprintf(4, "Get VBE Controller: VBE2 Signature found\n");
37 } else if (GET_FARVAR(seg, info->signature) == VESA_SIGNATURE) {
38 dprintf(4, "Get VBE Controller: VESA Signature found\n");
39 } else {
40 dprintf(4, "Get VBE Controller: Invalid Signature\n");
41 }
42
43 memset_far(seg, info, 0, sizeof(*info));
44
45 SET_FARVAR(seg, info->signature, VESA_SIGNATURE);
46
Kevin O'Connor81541132012-02-12 11:49:25 -050047 SET_FARVAR(seg, info->version, 0x0300);
Kevin O'Connor40401952011-12-31 03:43:12 -050048
49 SET_FARVAR(seg, info->oem_string,
50 SEGOFF(get_global_seg(), (u32)VBE_OEM_STRING));
Kevin O'Connor3339c052012-01-13 20:00:35 -050051 SET_FARVAR(seg, info->capabilities, GET_GLOBAL(VBE_capabilities));
Kevin O'Connor40401952011-12-31 03:43:12 -050052
53 /* We generate our mode list in the reserved field of the info block */
Kevin O'Connor34203cd2012-01-09 20:55:31 -050054 u16 *destmode = (void*)info->reserved;
55 SET_FARVAR(seg, info->video_mode, SEGOFF(seg, (u32)destmode));
Kevin O'Connor40401952011-12-31 03:43:12 -050056
Kevin O'Connor81541132012-02-12 11:49:25 -050057 /* Total memory (in 64k blocks) */
Kevin O'Connor3339c052012-01-13 20:00:35 -050058 SET_FARVAR(seg, info->total_memory
59 , GET_GLOBAL(VBE_total_memory) / (64*1024));
Kevin O'Connor40401952011-12-31 03:43:12 -050060
61 SET_FARVAR(seg, info->oem_vendor_string,
62 SEGOFF(get_global_seg(), (u32)VBE_VENDOR_STRING));
63 SET_FARVAR(seg, info->oem_product_string,
64 SEGOFF(get_global_seg(), (u32)VBE_PRODUCT_STRING));
65 SET_FARVAR(seg, info->oem_revision_string,
66 SEGOFF(get_global_seg(), (u32)VBE_REVISION_STRING));
67
68 /* Fill list of modes */
Kevin O'Connor34203cd2012-01-09 20:55:31 -050069 u16 *last = (void*)&info->reserved[sizeof(info->reserved)];
70 vgahw_list_modes(seg, destmode, last - 1);
Kevin O'Connor40401952011-12-31 03:43:12 -050071
Kevin O'Connor3339c052012-01-13 20:00:35 -050072 regs->ax = 0x004f;
Kevin O'Connor40401952011-12-31 03:43:12 -050073}
74
75static void
76vbe_104f01(struct bregs *regs)
77{
78 u16 seg = regs->es;
79 struct vbe_mode_info *info = (void*)(regs->di+0);
80 u16 mode = regs->cx;
Kevin O'Connor40401952011-12-31 03:43:12 -050081
82 dprintf(1, "VBE mode info request: %x\n", mode);
83
Kevin O'Connoref4f9e12012-09-03 13:54:28 -040084 struct vgamode_s *vmode_g = vgahw_find_mode(mode & ~MF_VBEFLAGS);
Kevin O'Connor3339c052012-01-13 20:00:35 -050085 if (! vmode_g) {
Kevin O'Connor40401952011-12-31 03:43:12 -050086 dprintf(1, "VBE mode %x not found\n", mode);
Kevin O'Connor81541132012-02-12 11:49:25 -050087 regs->ax = 0x014f;
Kevin O'Connor40401952011-12-31 03:43:12 -050088 return;
89 }
90
Kevin O'Connor643290f2012-01-13 22:08:52 -050091 memset_far(seg, info, 0, sizeof(*info));
Kevin O'Connor58dd0512012-09-04 18:39:51 -040092
93 // Basic information about video controller.
Kevin O'Connor49ddd9e2012-09-04 13:16:36 -040094 u32 win_granularity = GET_GLOBAL(VBE_win_granularity);
Kevin O'Connor40401952011-12-31 03:43:12 -050095 SET_FARVAR(seg, info->winA_attributes,
Kevin O'Connor49ddd9e2012-09-04 13:16:36 -040096 (win_granularity ? VBE_WINDOW_ATTRIBUTE_RELOCATABLE : 0) |
Kevin O'Connor40401952011-12-31 03:43:12 -050097 VBE_WINDOW_ATTRIBUTE_READABLE |
98 VBE_WINDOW_ATTRIBUTE_WRITEABLE);
99 SET_FARVAR(seg, info->winB_attributes, 0);
Kevin O'Connor49ddd9e2012-09-04 13:16:36 -0400100 SET_FARVAR(seg, info->win_granularity, win_granularity);
Kevin O'Connor40401952011-12-31 03:43:12 -0500101 SET_FARVAR(seg, info->win_size, 64); /* Bank size 64K */
Kevin O'Connor03776022012-01-21 11:00:11 -0500102 SET_FARVAR(seg, info->winA_seg, GET_GLOBAL(vmode_g->sstart));
Kevin O'Connor40401952011-12-31 03:43:12 -0500103 SET_FARVAR(seg, info->winB_seg, 0x0);
Kevin O'Connor9961f992012-01-21 11:53:44 -0500104 extern void entry_104f05(void);
105 SET_FARVAR(seg, info->win_func_ptr
106 , SEGOFF(get_global_seg(), (u32)entry_104f05));
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400107 // Basic information about mode.
Kevin O'Connor3339c052012-01-13 20:00:35 -0500108 int width = GET_GLOBAL(vmode_g->width);
109 int height = GET_GLOBAL(vmode_g->height);
Patrick Rudolph4902b8a2017-05-29 19:25:12 +0200110 int linesize = vgahw_get_linesize(vmode_g);
Kevin O'Connor3339c052012-01-13 20:00:35 -0500111 SET_FARVAR(seg, info->bytes_per_scanline, linesize);
112 SET_FARVAR(seg, info->xres, width);
113 SET_FARVAR(seg, info->yres, height);
Kevin O'Connor03776022012-01-21 11:00:11 -0500114 SET_FARVAR(seg, info->xcharsize, GET_GLOBAL(vmode_g->cwidth));
115 SET_FARVAR(seg, info->ycharsize, GET_GLOBAL(vmode_g->cheight));
Kevin O'Connor81541132012-02-12 11:49:25 -0500116 int depth = GET_GLOBAL(vmode_g->depth);
Kevin O'Connor3339c052012-01-13 20:00:35 -0500117 SET_FARVAR(seg, info->bits_per_pixel, depth);
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400118 u8 memmodel = GET_GLOBAL(vmode_g->memmodel);
119 SET_FARVAR(seg, info->mem_model, memmodel);
Kevin O'Connor40401952011-12-31 03:43:12 -0500120 SET_FARVAR(seg, info->reserved0, 1);
121
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400122 // Mode specific info.
123 u16 mode_attr = VBE_MODE_ATTRIBUTE_SUPPORTED |
124 VBE_MODE_ATTRIBUTE_EXTENDED_INFORMATION_AVAILABLE |
125 VBE_MODE_ATTRIBUTE_COLOR_MODE |
126 VBE_MODE_ATTRIBUTE_GRAPHICS_MODE |
127 VBE_MODE_ATTRIBUTE_NOT_VGA_COMPATIBLE;
128 u32 framebuffer = 0;
129 int planes = 1, banks = 1;
130 u32 pages = GET_GLOBAL(VBE_total_memory) / ALIGN(height * linesize, 64*1024);
131 switch (memmodel) {
132 case MM_TEXT:
133 mode_attr &= ~VBE_MODE_ATTRIBUTE_GRAPHICS_MODE;
134 mode_attr |= VBE_MODE_ATTRIBUTE_TTY_BIOS_SUPPORT;
135 if (GET_GLOBAL(vmode_g->sstart) == SEG_MTEXT)
136 mode_attr &= ~VBE_MODE_ATTRIBUTE_COLOR_MODE;
137 pages = 1;
138 break;
139 case MM_CGA:
140 pages = 1;
141 banks = 2;
142 SET_FARVAR(seg, info->bank_size, 8);
143 break;
144 case MM_PLANAR:
145 planes = 4;
146 pages /= 4;
147 break;
148 default:
149 framebuffer = GET_GLOBAL(VBE_framebuffer);
150 if (framebuffer)
151 mode_attr |= VBE_MODE_ATTRIBUTE_LINEAR_FRAME_BUFFER_MODE;
152 break;
153 }
Kevin O'Connor0db69882013-09-13 16:21:10 -0400154 if (pages > 128)
155 pages = 128;
156 if (pages < 2)
157 pages++;
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400158 SET_FARVAR(seg, info->mode_attributes, mode_attr);
159 SET_FARVAR(seg, info->planes, planes);
160 SET_FARVAR(seg, info->pages, pages - 1);
161 SET_FARVAR(seg, info->banks, banks);
Kevin O'Connor40401952011-12-31 03:43:12 -0500162
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400163 // Pixel color breakdown
164 u8 r_size, r_pos, g_size, g_pos, b_size, b_pos, a_size, a_pos;
Kevin O'Connor3339c052012-01-13 20:00:35 -0500165 switch (depth) {
Kevin O'Connor40401952011-12-31 03:43:12 -0500166 case 15: r_size = 5; r_pos = 10; g_size = 5; g_pos = 5;
167 b_size = 5; b_pos = 0; a_size = 1; a_pos = 15; break;
168 case 16: r_size = 5; r_pos = 11; g_size = 6; g_pos = 5;
169 b_size = 5; b_pos = 0; a_size = 0; a_pos = 0; break;
170 case 24: r_size = 8; r_pos = 16; g_size = 8; g_pos = 8;
171 b_size = 8; b_pos = 0; a_size = 0; a_pos = 0; break;
172 case 32: r_size = 8; r_pos = 16; g_size = 8; g_pos = 8;
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400173 b_size = 8; b_pos = 0; a_size = 8; a_pos = 24;
174 SET_FARVAR(seg, info->directcolor_info,
175 VBE_DIRECTCOLOR_RESERVED_BITS_AVAILABLE);
176 break;
Kevin O'Connor40401952011-12-31 03:43:12 -0500177 default: r_size = 0; r_pos = 0; g_size = 0; g_pos = 0;
178 b_size = 0; b_pos = 0; a_size = 0; a_pos = 0; break;
179 }
Kevin O'Connor40401952011-12-31 03:43:12 -0500180 SET_FARVAR(seg, info->red_size, r_size);
181 SET_FARVAR(seg, info->red_pos, r_pos);
182 SET_FARVAR(seg, info->green_size, g_size);
183 SET_FARVAR(seg, info->green_pos, g_pos);
184 SET_FARVAR(seg, info->blue_size, b_size);
185 SET_FARVAR(seg, info->blue_pos, b_pos);
186 SET_FARVAR(seg, info->alpha_size, a_size);
187 SET_FARVAR(seg, info->alpha_pos, a_pos);
188
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400189 // Linear framebuffer info.
190 if (framebuffer) {
191 SET_FARVAR(seg, info->phys_base, framebuffer);
Kevin O'Connor40401952011-12-31 03:43:12 -0500192
Kevin O'Connor58dd0512012-09-04 18:39:51 -0400193 SET_FARVAR(seg, info->reserved1, 0);
194 SET_FARVAR(seg, info->reserved2, 0);
195 SET_FARVAR(seg, info->linear_bytes_per_scanline, linesize);
196 SET_FARVAR(seg, info->linear_pages, 0);
197 SET_FARVAR(seg, info->linear_red_size, r_size);
198 SET_FARVAR(seg, info->linear_red_pos, r_pos);
199 SET_FARVAR(seg, info->linear_green_size, g_size);
200 SET_FARVAR(seg, info->linear_green_pos, g_pos);
201 SET_FARVAR(seg, info->linear_blue_size, b_size);
202 SET_FARVAR(seg, info->linear_blue_pos, b_pos);
203 SET_FARVAR(seg, info->linear_alpha_size, a_size);
204 SET_FARVAR(seg, info->linear_alpha_pos, a_pos);
205 }
Kevin O'Connor40401952011-12-31 03:43:12 -0500206
Kevin O'Connor3339c052012-01-13 20:00:35 -0500207 regs->ax = 0x004f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500208}
209
210static void
211vbe_104f02(struct bregs *regs)
212{
Kevin O'Connor5108c692011-12-31 19:13:45 -0500213 dprintf(1, "VBE mode set: %x\n", regs->bx);
Kevin O'Connor40401952011-12-31 03:43:12 -0500214
Kevin O'Connore6bc4c12012-01-21 11:26:37 -0500215 int mode = regs->bx & ~MF_VBEFLAGS;
216 int flags = regs->bx & MF_VBEFLAGS;
217 int ret = vga_set_mode(mode, flags);
Kevin O'Connor40401952011-12-31 03:43:12 -0500218
Kevin O'Connor5108c692011-12-31 19:13:45 -0500219 regs->ah = ret;
220 regs->al = 0x4f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500221}
222
223static void
224vbe_104f03(struct bregs *regs)
225{
Kevin O'Connor9978d492014-10-17 21:17:48 -0400226 regs->bx = GET_BDA_EXT(vbe_mode);
Kevin O'Connor40401952011-12-31 03:43:12 -0500227 dprintf(1, "VBE current mode=%x\n", regs->bx);
Kevin O'Connor3339c052012-01-13 20:00:35 -0500228 regs->ax = 0x004f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500229}
230
231static void
232vbe_104f04(struct bregs *regs)
233{
Kevin O'Connor2469f892012-02-04 12:40:02 -0500234 u16 seg = regs->es;
235 void *data = (void*)(regs->bx+0);
236 u16 states = regs->cx;
Kevin O'Connor20dc4192014-02-05 20:52:25 -0500237 u8 cmd = regs->dl;
238 if (states & ~0x0f || cmd > 2)
Kevin O'Connor2469f892012-02-04 12:40:02 -0500239 goto fail;
Kevin O'Connor20dc4192014-02-05 20:52:25 -0500240 int ret = vgahw_save_restore(states | (cmd<<8), seg, data);
241 if (ret < 0)
242 goto fail;
243 if (cmd == 0)
Kevin O'Connor2469f892012-02-04 12:40:02 -0500244 regs->bx = ret / 64;
Kevin O'Connor2469f892012-02-04 12:40:02 -0500245 regs->ax = 0x004f;
246 return;
247fail:
248 regs->ax = 0x014f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500249}
250
Kevin O'Connor9961f992012-01-21 11:53:44 -0500251void VISIBLE16
Kevin O'Connor40401952011-12-31 03:43:12 -0500252vbe_104f05(struct bregs *regs)
253{
Kevin O'Connor9961f992012-01-21 11:53:44 -0500254 if (regs->bh > 1 || regs->bl > 1)
255 goto fail;
Kevin O'Connor9978d492014-10-17 21:17:48 -0400256 if (GET_BDA_EXT(vbe_mode) & MF_LINEARFB) {
Kevin O'Connor9961f992012-01-21 11:53:44 -0500257 regs->ah = VBE_RETURN_STATUS_INVALID;
258 return;
259 }
260 struct vgamode_s *vmode_g = get_current_mode();
261 if (! vmode_g)
262 goto fail;
263 if (regs->bh) {
264 int ret = vgahw_get_window(vmode_g, regs->bl);
265 if (ret < 0)
266 goto fail;
267 regs->dx = ret;
268 regs->ax = 0x004f;
269 return;
270 }
271 int ret = vgahw_set_window(vmode_g, regs->bl, regs->dx);
272 if (ret)
273 goto fail;
274 regs->ax = 0x004f;
275 return;
276fail:
Kevin O'Connor81541132012-02-12 11:49:25 -0500277 regs->ax = 0x014f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500278}
279
280static void
281vbe_104f06(struct bregs *regs)
282{
Kevin O'Connor3876b532012-01-24 00:07:44 -0500283 if (regs->bl > 0x02)
284 goto fail;
285 struct vgamode_s *vmode_g = get_current_mode();
286 if (! vmode_g)
287 goto fail;
288 int bpp = vga_bpp(vmode_g);
289
290 if (regs->bl == 0x00) {
291 int ret = vgahw_set_linelength(vmode_g, DIV_ROUND_UP(regs->cx * bpp, 8));
292 if (ret)
293 goto fail;
294 } else if (regs->bl == 0x02) {
295 int ret = vgahw_set_linelength(vmode_g, regs->cx);
296 if (ret)
297 goto fail;
298 }
299 int linelength = vgahw_get_linelength(vmode_g);
300 if (linelength < 0)
301 goto fail;
302
303 regs->bx = linelength;
304 regs->cx = (linelength * 8) / bpp;
305 regs->dx = GET_GLOBAL(VBE_total_memory) / linelength;
306 regs->ax = 0x004f;
307 return;
308fail:
309 regs->ax = 0x014f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500310}
311
312static void
313vbe_104f07(struct bregs *regs)
314{
Kevin O'Connord61fc532012-01-27 20:37:45 -0500315 struct vgamode_s *vmode_g = get_current_mode();
316 if (! vmode_g)
317 goto fail;
318 int bpp = vga_bpp(vmode_g);
319 int linelength = vgahw_get_linelength(vmode_g);
320 if (linelength < 0)
321 goto fail;
322
323 int ret;
324 switch (regs->bl) {
325 case 0x80:
326 case 0x00:
327 ret = vgahw_set_displaystart(
328 vmode_g, DIV_ROUND_UP(regs->cx * bpp, 8) + linelength * regs->dx);
329 if (ret)
330 goto fail;
331 break;
332 case 0x01:
333 ret = vgahw_get_displaystart(vmode_g);
334 if (ret < 0)
335 goto fail;
336 regs->dx = ret / linelength;
337 regs->cx = (ret % linelength) * 8 / bpp;
338 break;
339 default:
340 goto fail;
341 }
342 regs->ax = 0x004f;
343 return;
344fail:
345 regs->ax = 0x014f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500346}
347
348static void
349vbe_104f08(struct bregs *regs)
350{
Kevin O'Connore737b172012-02-04 11:08:39 -0500351 struct vgamode_s *vmode_g = get_current_mode();
352 if (! vmode_g)
353 goto fail;
354 u8 memmodel = GET_GLOBAL(vmode_g->memmodel);
355 if (memmodel == MM_DIRECT || memmodel == MM_YUV) {
356 regs->ax = 0x034f;
357 return;
358 }
359 if (regs->bl > 1)
360 goto fail;
361 if (regs->bl == 0) {
362 int ret = vgahw_set_dacformat(vmode_g, regs->bh);
363 if (ret < 0)
364 goto fail;
365 }
366 int ret = vgahw_get_dacformat(vmode_g);
367 if (ret < 0)
368 goto fail;
369 regs->bh = ret;
370 regs->ax = 0x004f;
371 return;
372fail:
373 regs->ax = 0x014f;
Kevin O'Connor40401952011-12-31 03:43:12 -0500374}
375
376static void
377vbe_104f0a(struct bregs *regs)
378{
379 debug_stub(regs);
380 regs->ax = 0x0100;
381}
382
383static void
Kevin O'Connor59f75d42012-01-27 20:52:29 -0500384vbe_104f10(struct bregs *regs)
385{
386 switch (regs->bl) {
387 case 0x00:
388 regs->bx = 0x0f30;
389 break;
Kevin O'Connor6fed3072014-10-30 12:09:19 -0400390 case 0x01:
391 MASK_BDA_EXT(flags, BF_PM_MASK, regs->bh & BF_PM_MASK);
Kevin O'Connor59f75d42012-01-27 20:52:29 -0500392 break;
393 case 0x02:
Kevin O'Connorf4b1dbc2014-10-21 15:15:44 -0400394 regs->bh = GET_BDA_EXT(flags) & BF_PM_MASK;
Kevin O'Connor59f75d42012-01-27 20:52:29 -0500395 break;
396 default:
397 regs->ax = 0x014f;
398 return;
399 }
400 regs->ax = 0x004f;
401}
402
403static void
Kevin O'Connor40401952011-12-31 03:43:12 -0500404vbe_104fXX(struct bregs *regs)
405{
406 debug_stub(regs);
407 regs->ax = 0x0100;
408}
409
Kevin O'Connor6ee837b2012-02-13 20:09:02 -0500410void noinline
Kevin O'Connor40401952011-12-31 03:43:12 -0500411handle_104f(struct bregs *regs)
412{
Kevin O'Connorb3df8572012-01-15 02:43:19 -0500413 if (!CONFIG_VGA_VBE) {
Kevin O'Connor40401952011-12-31 03:43:12 -0500414 vbe_104fXX(regs);
415 return;
416 }
417
418 switch (regs->al) {
419 case 0x00: vbe_104f00(regs); break;
420 case 0x01: vbe_104f01(regs); break;
421 case 0x02: vbe_104f02(regs); break;
422 case 0x03: vbe_104f03(regs); break;
423 case 0x04: vbe_104f04(regs); break;
424 case 0x05: vbe_104f05(regs); break;
425 case 0x06: vbe_104f06(regs); break;
426 case 0x07: vbe_104f07(regs); break;
427 case 0x08: vbe_104f08(regs); break;
428 case 0x0a: vbe_104f0a(regs); break;
Kevin O'Connor59f75d42012-01-27 20:52:29 -0500429 case 0x10: vbe_104f10(regs); break;
Kevin O'Connor40401952011-12-31 03:43:12 -0500430 default: vbe_104fXX(regs); break;
431 }
432}