Real Mode Example not assembling? What?
Posted: Fri Jan 09, 2009 7:22 pm
I'm using the example on this page: http://wiki.osdev.org/Real_Mode
Now, this is the first time I've attempted to use this code, and it's possible that I'm doing something wrong, but It just doesn't seem to be right. First off, the assembler is complaining that "jump" isn't an instruction, and I want to say it's right, shouldn't it be "jmp"? Second, it doesn't know what DATASEL16 is, and I can't figure out what it's supposed to be.
I'm trying to use this code (and the reverse effect of it) to jump into real mode, run an interrupt to set up the video mode, and jump back into protected mode for my OS to continue on its merry way. Could someone either show me what I'm failing to see in the example, or post an example of their own? I'm no x86 assembly expert (working on it, but this is a strange architecture) and I tend to learn best by example. Ideally, I want this to blossom into something (however slow) that I can call from a function in my C code, but at this point I'd be happy with something I can run before C code ever starts.
Thanks!
Now, this is the first time I've attempted to use this code, and it's possible that I'm doing something wrong, but It just doesn't seem to be right. First off, the assembler is complaining that "jump" isn't an instruction, and I want to say it's right, shouldn't it be "jmp"? Second, it doesn't know what DATASEL16 is, and I can't figure out what it's supposed to be.
I'm trying to use this code (and the reverse effect of it) to jump into real mode, run an interrupt to set up the video mode, and jump back into protected mode for my OS to continue on its merry way. Could someone either show me what I'm failing to see in the example, or post an example of their own? I'm no x86 assembly expert (working on it, but this is a strange architecture) and I tend to learn best by example. Ideally, I want this to blossom into something (however slow) that I can call from a function in my C code, but at this point I'd be happy with something I can run before C code ever starts.
Thanks!