Search found 95 matches
- Tue Aug 25, 2009 9:19 pm
- Forum: Advanced OS Development
- Topic: Graphics Modes
- Replies: 7
- Views: 52316
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...
- Tue Aug 25, 2009 7:19 pm
- Forum: Advanced OS Development
- Topic: Graphics Modes
- Replies: 7
- Views: 52316
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!
[edit]
Thanks again, it works great!
- Tue Aug 25, 2009 1:14 pm
- Forum: Advanced OS Development
- Topic: Graphics Modes
- Replies: 7
- Views: 52316
Re: Graphics Modes
Yes, I am; sorry for dropping the word "colors."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.
If you don't mind, I'd like to see your code. But I understand if you're protective of it!
- Mon Aug 24, 2009 8:10 pm
- Forum: Advanced OS Development
- Topic: Graphics Modes
- Replies: 7
- Views: 52316
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...
- Wed Aug 19, 2009 5:21 pm
- Forum: Beginning OS Development
- Topic: Demo 15 Problem
- Replies: 25
- Views: 70979
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...
- Tue Aug 18, 2009 6:00 pm
- Forum: Beginning OS Development
- Topic: Demo 15 Problem
- Replies: 25
- Views: 70979
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);"?
I do have one question though. In the keyboard irq you call "interruptdone(0);" Should that not be "interruptdone(1);"?
- Sun Aug 16, 2009 6:28 pm
- Forum: Beginning OS Development
- Topic: Demo 15 Problem
- Replies: 25
- Views: 70979
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...
- Sun Aug 16, 2009 2:03 am
- Forum: Beginning OS Development
- Topic: Demo 15 Problem
- Replies: 25
- Views: 70979
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...
- Fri Aug 14, 2009 11:29 pm
- Forum: Beginning OS Development
- Topic: Demo 15 Problem
- Replies: 25
- Views: 70979
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...
- Tue Sep 16, 2008 9:21 pm
- Forum: Your Announcements
- Topic: Tutorial 17: Physical Memory Management
- Replies: 2
- Views: 47204
- Thu Jun 05, 2008 5:12 pm
- Forum: Your Announcements
- Topic: Tutorial 17: Paging and Virtual Memory
- Replies: 13
- Views: 77067
- Mon May 26, 2008 1:36 pm
- Forum: Your Announcements
- Topic: Tutorial 17: Paging and Virtual Memory
- Replies: 13
- Views: 77067
- Sun May 04, 2008 6:23 pm
- Forum: Beginning OS Development
- Topic: Problem using multiple projects in MSCV
- Replies: 13
- Views: 38761
- Wed Apr 23, 2008 3:22 am
- Forum: Your Announcements
- Topic: Tutorial 16: Kernel: Timing and Exception Handling
- Replies: 8
- Views: 57351
- Sun Apr 20, 2008 11:34 pm
- Forum: Beginning OS Development
- Topic: speaker programming
- Replies: 1
- Views: 10670