What's your OSDev AWWWW YEAH! moment?

All off topic discussions go here. Everything from the funny thing your cat did to your favorite tv shows. Non-programming computer questions are ok too.
User avatar
DavidCooper
Member
Member
Posts: 1150
Joined: Wed Oct 27, 2010 4:53 pm
Location: Scotland

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

Post by DavidCooper »

Yes, you're right. I was being too kind to him.
Help the people of Laos by liking - https://www.facebook.com/TheSBInitiative/?ref=py_c

MSB-OS: http://www.magicschoolbook.com/computing/os-project - direct machine code programming
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

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

Post 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.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

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

Post 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).
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
Bender
Member
Member
Posts: 449
Joined: Wed Aug 21, 2013 3:53 am
Libera.chat IRC: bender|
Location: Asia, Singapore

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

Post 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.
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
User avatar
iansjack
Member
Member
Posts: 4703
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

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

Post 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.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

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

Post 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.
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
AndrewAPrice
Member
Member
Posts: 2300
Joined: Mon Jun 05, 2006 11:00 pm
Location: USA (and Australia)

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

Post 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.)
My OS is Perception.
Peterbjornx
Member
Member
Posts: 116
Joined: Thu May 06, 2010 4:34 am
Libera.chat IRC: peterbjornx
Location: Leiden, The Netherlands
Contact:

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

Post by Peterbjornx »

this
Image
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

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

Post 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?
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
Bender
Member
Member
Posts: 449
Joined: Wed Aug 21, 2013 3:53 am
Libera.chat IRC: bender|
Location: Asia, Singapore

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

Post 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.
"In a time of universal deceit - telling the truth is a revolutionary act." -- George Orwell
(R3X Runtime VM)(CHIP8 Interpreter OS)
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

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

Post 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?
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
Nable
Member
Member
Posts: 453
Joined: Tue Nov 08, 2011 11:35 am

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

Post 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.
onlyonemac
Member
Member
Posts: 1146
Joined: Sat Mar 01, 2014 2:59 pm

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

Post 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!
When you start writing an OS you do the minimum possible to get the x86 processor in a usable state, then you try to get as far away from it as possible.

Syntax checkup:
Wrong: OS's, IRQ's, zero'ing
Right: OSes, IRQs, zeroing
User avatar
max
Member
Member
Posts: 616
Joined: Mon Mar 05, 2012 11:23 am
Libera.chat IRC: maxdev
Location: Germany
Contact:

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

Post by max »

onlyonemac wrote:1024x768 display.
reading that post on my 2880x1800 display.. :mrgreen:
klange
Member
Member
Posts: 679
Joined: Wed Mar 30, 2011 12:31 am
Libera.chat IRC: klange
Discord: klange

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

Post 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
Post Reply