Search found 95 matches

by pathos
Tue Aug 25, 2009 9:19 pm
Forum: Advanced OS Development
Topic: Graphics Modes
Replies: 7
Views: 42356

Re: Graphics Modes

One more question =) Now I want to draw a character to the screen. I've figured out how, using an 8x8 bitmap, but my question is what's the fastest way to draw it. For example, let's say I have letter_A, letter_B, and letter_C. I want to write "ABC." I don't want to have "If character = A, then buff...
by pathos
Tue Aug 25, 2009 7:19 pm
Forum: Advanced OS Development
Topic: Graphics Modes
Replies: 7
Views: 42356

Re: Graphics Modes

Wow, thanks. I didn't know about the four planes thing, which would probably explain my odd results.

[edit]
Thanks again, it works great!
by pathos
Tue Aug 25, 2009 1:14 pm
Forum: Advanced OS Development
Topic: Graphics Modes
Replies: 7
Views: 42356

Re: Graphics Modes

Mike wrote:Hello,

Are you referring to 640x480x16 colors ("aka Mode 12h") ?

...If so, I can post some of my video driver for some examples.
Yes, I am; sorry for dropping the word "colors."

If you don't mind, I'd like to see your code. But I understand if you're protective of it!
by pathos
Mon Aug 24, 2009 8:10 pm
Forum: Advanced OS Development
Topic: Graphics Modes
Replies: 7
Views: 42356

Graphics Modes

Well, it's pretty quiet around here, so I'll get some discussion going. I've been trying to figure out how to work in different VGA modes other than 80x24 text mode, specifically VGA 640x480x16. I use the BIOS interrupt 10h in real mode to get there and that's really all I know, and I can't find muc...
by pathos
Wed Aug 19, 2009 5:21 pm
Forum: Beginning OS Development
Topic: Demo 15 Problem
Replies: 25
Views: 51409

Re: Demo 15 Problem

I don't want to post a new topic for this, so I'll just add it here. I found one more issue which, it's possible, I could have created myself while working, but I think it probably would pop up in your original code. In your get_cmd function, you have: if (BufChar) { char c = keyboard_key_to_ascii(k...
by pathos
Tue Aug 18, 2009 6:00 pm
Forum: Beginning OS Development
Topic: Demo 15 Problem
Replies: 25
Views: 51409

Re: Demo 15 Problem

Well, I pretty much went through and pieced together the OS bit-by-bit. It works now, just fine. I'm not sure what was causing the error in the first place.

I do have one question though. In the keyboard irq you call "interruptdone(0);" Should that not be "interruptdone(1);"?
by pathos
Sun Aug 16, 2009 6:28 pm
Forum: Beginning OS Development
Topic: Demo 15 Problem
Replies: 25
Views: 51409

Re: Demo 15 Problem

That code "works," as in, it doesn't cause a GPF. [edit] I threw this together: int code=0; _declspec (naked) void test_irq() { // _asm add esp, 12 _asm pushad _asm cli if (keyboard_ctrl_read_status() & keyboard_CTRL_STATS_MASK_OUT_BUF) { code = keyboard_enc_read_buf(); if (!(code & 0x80)) { _scanco...
by pathos
Sun Aug 16, 2009 2:03 am
Forum: Beginning OS Development
Topic: Demo 15 Problem
Replies: 25
Views: 51409

Re: Demo 15 Problem

Hello, I will perform some testing on the keyboard demo and let you know the results. Thanks for letting me know of the problem :D Thanks. I have no idea what the issue could be, and I wish I knew how to explain it better. [edit] One thing I did is create a little test irq to set instead of the key...
by pathos
Fri Aug 14, 2009 11:29 pm
Forum: Beginning OS Development
Topic: Demo 15 Problem
Replies: 25
Views: 51409

Demo 15 Problem

Well, I'm back after a very long hiatus. I'm having a problem with the code in Demo 15, in both Bochs and Virutal PC 2007. I've traced it to the kkybrd_set_leds call. If I comment this out, the OS loads fine. However, if I hit a key, the panic screen comes out. If I don't comment it out, Bochs crash...
by pathos
Tue Sep 16, 2008 9:21 pm
Forum: Your Announcements
Topic: Tutorial 17: Physical Memory Management
Replies: 2
Views: 41282

Thanks for the update. Can't wait for the demo!
by pathos
Thu Jun 05, 2008 5:12 pm
Forum: Your Announcements
Topic: Tutorial 17: Paging and Virtual Memory
Replies: 13
Views: 62101

Any word on a release date?
by pathos
Mon May 26, 2008 1:36 pm
Forum: Your Announcements
Topic: Tutorial 17: Paging and Virtual Memory
Replies: 13
Views: 62101

w00t
by pathos
Sun May 04, 2008 6:23 pm
Forum: Beginning OS Development
Topic: Problem using multiple projects in MSCV
Replies: 13
Views: 28767

Going back to the OT, this may help others with the problem:

I had a similiar problem, and what fixed it was changing the compiling order of the projects.
by pathos
Wed Apr 23, 2008 3:22 am
Forum: Your Announcements
Topic: Tutorial 16: Kernel: Timing and Exception Handling
Replies: 8
Views: 46691

I've had pretty good luck being able to figure out exceptions and hardware on my own, but paging is something I just can't get right. That's not to say I'm not excited about Tutorial 16 -- can't wait! But things will really start coming together with 17.
by pathos
Sun Apr 20, 2008 11:34 pm
Forum: Beginning OS Development
Topic: speaker programming
Replies: 1
Views: 8106

If I'm not mistaken, those lines of code are just examples on how to do it, now actually to be executed in order.