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.
Type: Posts; User: Jacob Dahlen
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.
@oogabooga
The compiler tells me that "*" when used within inline assembly is an unrecognized character.
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,
...
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...
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...
#define WHITE_TXT 0x07 // white on black text
//---------------------------------------------------
//
// Color palette addresses
//
#define PAL_WRITE_ADDR (0x3c8) // palette write...
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...
Thank You
My operating system uses real-mode for BIOS interrupts and protected-mode for everything else.
my kernel switches from protected mode to real mode every time that I need to the video BIOS.
Well then where do I find this mythical documentation of yours?
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...
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....
No this is a home brewed kernel....
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.