int's and bus error =?
From: Jack Hammer (int0xNOSPAM80_at_hotmail...you)
Date: 04/26/03
- Previous message: Chris F.A. Johnson: "Re: get timestamp of file in KSH"
- Next in thread: Valentin Nechayev: "Re: int's and bus error =?"
- Reply: Valentin Nechayev: "Re: int's and bus error =?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Fri, 25 Apr 2003 23:46:12 -0400
im running freebsd 4.7 and im trying to do int 10h, mode 13h to draw on the
screen =)
i do it with two functions:
int switch_mode(void)
{
struct vm86_init_args vm;
/* use all interrupts */
memset(&vm, 0, sizeof(struct vm86_init_args));
return(i386_vm86(VM86_INIT, &vm));
}
and
void mode_13h(void)
{
__asm("xorl %eax, %eax\n"
"movl $0x13, %eax\n"
"int $0x10\n");
}
the switch_mode() works (it returns 0) but when it gets to the int $0x10
mode_13h i get a bus error. Why..? Arent i in vm86 mode now?
- Previous message: Chris F.A. Johnson: "Re: get timestamp of file in KSH"
- Next in thread: Valentin Nechayev: "Re: int's and bus error =?"
- Reply: Valentin Nechayev: "Re: int's and bus error =?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|