int's and bus error =?

From: Jack Hammer (int0xNOSPAM80_at_hotmail...you)
Date: 04/26/03

  • Next message: Paul Pluzhnikov: "Re: "invalid ELF header" in PHP"
    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?


  • Next message: Paul Pluzhnikov: "Re: "invalid ELF header" in PHP"

    Relevant Pages

    • Custom Draw LIstCtrl and scrolling
      ... I wrote a custom draw CListCtrl that allow to display different row height on windows mobile ... void CListCtrlCommands::OnSize(UINT nType, int cx, int cy) ... CRect rect; ... GetClientRect(&rect); ...
      (microsoft.public.vc.mfc)
    • Re: Graphics help please
      ... I've got something similar, with a 3D turtle. ... You can also draw a line from to, with the ... final int width = 1024; ... static public void main ...
      (comp.lang.java.programmer)
    • Re: First C++ Project
      ... Neither of these two headers are part of standard C++. ... int main ... > draw line; ... it declares. ...
      (alt.comp.lang.learn.c-cpp)
    • RE: glitch when moving/resizing window (lots of drawing)
      ... HRGN getRectRgn(int originX, int originY, int rectWidth, int rectHeight); ... // draw body ... movePlayer = RIGHT; ... playerSpeedY -= gravityAccel; ...
      (microsoft.public.win32.programmer.gdi)
    • Re: static hide - the static is not hide
      ... Note that this merely fills the region and doesn't actually draw any ... pdc.FillSolidRect; ... if (isBitmap) // draw Bitmap ... int cxClient = rect.Width; ...
      (microsoft.public.vc.mfc)