testvbe: remove unused headers
[v86d.git] / testvbe.c
blob76e7a992a2f212060225f9e120190b8f6eccaa9e
1 #include <stdio.h>
2 #include <stdlib.h>
3 #include <unistd.h>
4 #include <string.h>
5 #include <errno.h>
6 #include <time.h>
7 #include <fcntl.h>
9 #include "v86.h"
11 int main(int argc, char *argv[])
13 struct uvesafb_task tsk;
14 u8 *t;
15 u8 buf[4096];
17 if (v86_init())
18 return -1;
19 tsk.regs.eax = 0x4f00;
20 tsk.flags = TF_VBEIB;
21 tsk.buf_len = sizeof(struct vbe_ib);
22 strncpy(&(((struct vbe_ib*)buf)->vbe_signature), "VBE2", 4);
24 v86_task(&tsk, buf);
26 printf("%s\n", ((struct vbe_ib*)buf)->oem_vendor_name_ptr + buf);
28 tsk.regs.eax = 0x4f02;
29 tsk.regs.ebx = 0xc161;
30 tsk.buf_len = 0;
31 tsk.flags = 0;
33 v86_task(&tsk, buf);
35 printf("got eax = %x\n", tsk.regs.eax);
37 v86_cleanup();
39 return 0;