Search:

Type: Posts; User: Jacob Dahlen

Search: Search took 0.02 seconds.

  1. I am using gcc on 64-bit Linux. The code that you...

    I am using gcc on 64-bit Linux. The code that you provided compiles, however it generates the following warning:



    Upon execution the executable generates segmentation fault (core dumped) error.
  2. @oogabooga The compiler tells me that "*" when...

    @oogabooga
    The compiler tells me that "*" when used within inline assembly is an unrecognized character.
  3. asmtest.c:16: Error: operand type mismatch for `jmp'

    I am trying to jmp to the offset address of a program that I wrote using nasm.

    C source code:


    char code[] = {0x66, 0xB8, 0x04, 0x00, 0x00, 0x00, 0x66, 0xBB, 0x01, 0x00, 0x00, 0x00,
    ...
  4. I will be passing both the segment and offset...

    I will be passing both the segment and offset addresses of Video.ModeAttributes regs.es and regs.di respectively. Then I will be passing both regs.es and regs.di to real mode BIOS interrupt 10 using...
  5. This kernel is to be used as a game...

    This kernel is to be used as a game engine/library which will allow a programer with minimum programming kills to create games which will be able to either to run directly on their hardware, or...
  6. #define WHITE_TXT 0x07 // white on black text...

    #define WHITE_TXT 0x07 // white on black text
    //---------------------------------------------------
    //
    // Color palette addresses
    //

    #define PAL_WRITE_ADDR (0x3c8) // palette write...
  7. I already know how to use VBE. I have been using...

    I already know how to use VBE. I have been using it for over 8 years now. The problem is: 1) how do you assign the segment address of Video.ModeAttributes to regs.es? 2 how do you assign the offset...
  8. Thank You

    Thank You
  9. My operating system uses real-mode for BIOS...

    My operating system uses real-mode for BIOS interrupts and protected-mode for everything else.
  10. my kernel switches from protected mode to real...

    my kernel switches from protected mode to real mode every time that I need to the video BIOS.
  11. Well then where do I find this mythical...

    Well then where do I find this mythical documentation of yours?
  12. In file included from...

    In file included from /usr/include/features.h:387,
    from /usr/include/stdio.h:28,
    from main.c:1:
    /usr/include/gnu/stubs.h:7: fatal error: gnu/stubs-32.h: No such...
  13. Well, then if you would like to write drivers of...

    Well, then if you would like to write drivers of all the 100s upon 100s of video cards for me, by all means go for it....
  14. No this is a home brewed kernel....

    No this is a home brewed kernel....
  15. getting a variable's segment and offset address using gcc(kernel mode programming)

    Does anyone knows how to get a variable's segment and offset address using c... I need the information for a VESA driver that I am writing.
Results 1 to 15 of 15