Page 3 of 12

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Fri Apr 25, 2014 12:11 pm
by DavidCooper
Yes, you're right. I was being too kind to him.

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Sat Apr 26, 2014 8:52 am
by max
I just had my F*CK YEAH moment a few seconds ago, when I saw this:

Image
Bigger: http://oi59.tinypic.com/wtyqsh.jpg

YES!!! My VM86 is working, and I was able to retrieve the VBE mode list and set the graphics mode.
Some might think this is just a black window - but its a window to my soul, revealing images of so many endless hours of fighting with my scheduler. This is such a wonderful, beautiful day.

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Sat Apr 26, 2014 9:04 am
by onlyonemac
iansjack wrote:I'd agree with that but for the fact that the same poster has asked in the past how he can know which instruction is causing a GPF. That's the sort of question that I hope won't be asked again by someone who can't be bothered with exception handlers.
Umm... that was in the days before I learnt how to compile Bochs with the built-in debugger support. Nowadays whenever I get a triple fault I track it down in a few minutes.

In any case, I don't ask questions until I've tried anything I can by myself (and that includes exception handlers if I need to).

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Sat Apr 26, 2014 9:11 pm
by Bender
YES!!! My VM86 is working, and I was able to retrieve the VBE mode list and set the graphics mode.
if(hardwork == success)
{
invoke(AWW_YEAH_MOMENT);
}
Not to derail the thread but just sharing some info:
If you ever wish to support x64 (or get bored with v86) just grab a copy of Real-Mode Emulator or x86emu, for mode-switching I just wrote a simple program that captures arguments and switches to relevant video mode and is linked against Real Mode Emulator. Whenever I want to switch I just execute that program with arguments. IIRC both RME and x86emu don't require any sort of library unless you wan't to debug in which both will require a fairly standard printf.

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Sat Apr 26, 2014 11:59 pm
by iansjack
onlyonemac wrote:
iansjack wrote:Umm... that was in the days before I learnt how to compile Bochs with the built-in debugger support. Nowadays whenever I get a triple fault I track it down in a few minutes.
It's good to see that you are now relying upon someone else's exception handlers even if you can't write your own. That still won't help much when you try to run on real hardware but it's a start.

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Thu May 01, 2014 12:58 pm
by onlyonemac
I've had a few recently:
-When I realised my OS was complex enough to require a disk-flush-before-shutdown procedure (although I haven't yet got one)
-When I got hardware multitasking working
-Not quite on-topic, but when I switched to writing a test shell and realised I could use any label I want because it wasn't used already elsewhere.

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Sat May 03, 2014 9:12 am
by AndrewAPrice
I just had one recently - my assembler (I use software isolation so my applications are written in bytecode) now has the ability to insert debugging information such as variable names and the exact column/line of code each bytecode was derived from.

A small victory but it opens up a lot of doors. I am hoping to one day have a fully integrated IDE that can singlestep through code. Technically, my IDE should be able to single step through any language with this information (assuming the compiler emitted debugging data to the assembler.)

My other small one was the introduction of 8/16/32 bit operands for jumps, loading integers, etc. and the assembler being able to detect the most appropriate size to use. This can save a lot of space (if you're loading the number "10", there's no reason it has to be stored with the full 8 bytes.)

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Tue May 06, 2014 6:56 am
by Peterbjornx
this
Image

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Tue May 06, 2014 9:02 am
by onlyonemac
That's a crash! It goes in the "When your OS goes crazy" thread. This thread is for good things!

Just kidding... really, what on earth is that?

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Tue May 06, 2014 9:13 am
by Bender
onlyonemac wrote:That's a crash! It goes in the "When your OS goes crazy" thread. This thread is for good things!

Just kidding... really, what on earth is that?
That isn't a crash, it's Peterbjornx showing off his objdump which is obviously an AWWW YEAH! moment as I think objdump does require a standard C library implementation with file I/O. The process exits and there is nothing for the kernel to do now, so it halts.

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Tue May 06, 2014 1:22 pm
by onlyonemac
Sorry, I just saw some sort of a dump followed by the words "PANIC!" and thought it must have crashed :oops: .

Anyway, why does everyone post such big screenshots?

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Tue May 06, 2014 5:09 pm
by Nable
onlyonemac wrote:Anyway, why does everyone post such big screenshots?
Everyone? Then it's possible that not the screenshots are big but you are the _one_ who just have small display. No offence, just joking.

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Tue May 13, 2014 10:06 am
by onlyonemac
Actually yes, now that I think about it I have got a small screen. Having screenshots where you can only see 3/4 of the width at a time is not unreasonable for someone viewing them on a 1024x768 display.

By the way, I like old computers. The older the better!

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Tue May 13, 2014 2:28 pm
by max
onlyonemac wrote:1024x768 display.
reading that post on my 2880x1800 display.. :mrgreen:

Re: What's your OSDev AWWWW YEAH! moment?

Posted: Thu May 15, 2014 5:13 pm
by klange
While my choice of sample payload may have been questionable this was definitely the highlight of my last few weeks of work.

With a better payload:
Image