OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Apr 16, 2024 8:46 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 178 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 12  Next
Author Message
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Fri Apr 25, 2014 12:11 pm 
Offline
Member
Member
User avatar

Joined: Wed Oct 27, 2010 4:53 pm
Posts: 1150
Location: Scotland
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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Sat Apr 26, 2014 8:52 am 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
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.

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Sat Apr 26, 2014 9:04 am 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Sat Apr 26, 2014 9:11 pm 
Offline
Member
Member
User avatar

Joined: Wed Aug 21, 2013 3:53 am
Posts: 449
Location: Asia, Singapore
Quote:
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)


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Sat Apr 26, 2014 11:59 pm 
Offline
Member
Member
User avatar

Joined: Sat Mar 31, 2012 3:07 am
Posts: 4594
Location: Chichester, UK
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.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu May 01, 2014 12:58 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Sat May 03, 2014 9:12 am 
Offline
Member
Member
User avatar

Joined: Mon Jun 05, 2006 11:00 pm
Posts: 2293
Location: USA (and Australia)
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.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue May 06, 2014 6:56 am 
Offline
Member
Member

Joined: Thu May 06, 2010 4:34 am
Posts: 116
Location: Leiden, The Netherlands
this
Image

_________________
posnk ( a simple unix clone )
twitter profile - security research, die shots and IC reverse engineering, low level stuff


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue May 06, 2014 9:02 am 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue May 06, 2014 9:13 am 
Offline
Member
Member
User avatar

Joined: Wed Aug 21, 2013 3:53 am
Posts: 449
Location: Asia, Singapore
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)


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue May 06, 2014 1:22 pm 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue May 06, 2014 5:09 pm 
Offline
Member
Member

Joined: Tue Nov 08, 2011 11:35 am
Posts: 453
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.


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue May 13, 2014 10:06 am 
Offline
Member
Member

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


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Tue May 13, 2014 2:28 pm 
Offline
Member
Member
User avatar

Joined: Mon Mar 05, 2012 11:23 am
Posts: 616
Location: Germany
onlyonemac wrote:
1024x768 display.


reading that post on my 2880x1800 display.. :mrgreen:

_________________
Ghost OS - GitHub


Top
 Profile  
 
 Post subject: Re: What's your OSDev AWWWW YEAH! moment?
PostPosted: Thu May 15, 2014 5:13 pm 
Offline
Member
Member

Joined: Wed Mar 30, 2011 12:31 am
Posts: 676
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

_________________
toaruos on github | toaruos.org | gitlab | twitter | bim - a text editor


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 178 posts ]  Go to page Previous  1, 2, 3, 4, 5, 6 ... 12  Next

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 57 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group