Author Topic: How To Write an OS  (Read 47461 times)

0 Members and 2 Guests are viewing this topic.

Offline TC01

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 344
  • Rating: +9/-0
    • View Profile
Re: How To Write an OS
« Reply #15 on: September 09, 2010, 10:19:10 pm »
Or Punix, the other 68k OS that I just found about yesterday when reading some old ticalc.org news article (and with the assistance of a search engine).

But yeah. I didn't feel like looking through yAronet with Google Translate, especially since I don't know enough 68k assembly right now to even begin to work on an OS.



The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How To Write an OS
« Reply #16 on: September 09, 2010, 10:22:47 pm »
Wow I didn't knew about that one. Nice find.

Offline TC01

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 344
  • Rating: +9/-0
    • View Profile
Re: How To Write an OS
« Reply #17 on: September 09, 2010, 10:29:46 pm »
Wow I didn't knew about that one. Nice find.
It was in this article, and mentioned by either Kevin Kofler or Lionel Debroux when they were arguing, in particular about GCC4TI adding back Flash OS support.



The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How To Write an OS
« Reply #18 on: September 09, 2010, 10:31:08 pm »
Oh ok I see, I thought it was in an older news, specifically about the OS itself.

And typical KK stuff in the comment there x.x (although this is nothing compared to what I saw on french forums in 2004-06)

SirCmpwn

  • Guest
Re: How To Write an OS
« Reply #19 on: September 09, 2010, 11:53:12 pm »
How do you have the interrupt code be at 38h?
The hardware automatically RST 38H when an interrupt fires in IM 1.

If you are already using my code from the first post, make sure you update the first block after my edit.  I had an extra zero in there by mistake.
« Last Edit: September 10, 2010, 12:00:36 am by SirCmpwn »

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: How To Write an OS
« Reply #20 on: September 19, 2010, 11:20:06 am »
Anyone done the WFRNG yet? ;D




SirCmpwn

  • Guest
Re: How To Write an OS
« Reply #21 on: September 19, 2010, 11:43:08 am »
*facepalm* :P
The kernel does include random number generation... :)

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: How To Write an OS
« Reply #22 on: September 19, 2010, 11:45:33 am »
*facepalm* :P
The kernel does include random number generation... :)

LOL! And the first thing anybody's gotta do as soon as KOS comes out is port a certain number-guessing game ;)




SirCmpwn

  • Guest
Re: How To Write an OS
« Reply #23 on: September 19, 2010, 11:57:32 am »
Yeah, I can feel the fail now...
By the way, the random number generator is pretty good about random numbers, it updates the seed every time it executes, and the OS updates the seed on every interrupt.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: How To Write an OS
« Reply #24 on: September 19, 2010, 12:22:22 pm »
Wow, that's great!

So you can't really "predict" the rands like on the TI-OS anymore...




Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55941
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: How To Write an OS
« Reply #25 on: September 19, 2010, 12:31:31 pm »
It's hard to predict many on the TI-OS though, due to all possibilities but yeah it's possible, if you write numbers down or something, to do luck manipulation, like in games, by setting the seed to something specific then running the game before the boss fight.

SirCmpwn

  • Guest
Re: How To Write an OS
« Reply #26 on: September 19, 2010, 01:05:53 pm »
You can predict the numbers, it's just harder; you have to factor in things like ON presses and link activity, as well as the entire time the calculator has been on.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: How To Write an OS
« Reply #27 on: September 19, 2010, 04:04:12 pm »
It's hard to predict many on the TI-OS though, due to all possibilities but yeah it's possible, if you write numbers down or something, to do luck manipulation, like in games, by setting the seed to something specific then running the game before the boss fight.

Yeah, when we did a certain project in math class a few years ago, we were supposed to use dice to get our individual "stats". I convinced my teacher to let me use the num generator on an 83 instead, then stored 0 to rand and got two sixes (the max) :D




Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: How To Write an OS
« Reply #28 on: September 19, 2010, 04:29:20 pm »
Doesnt the z80 have an R register that can be used for Random number generation that is much harder to calculate?  I believe Axe random numbers use something like this...

Offline matthias1992

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 408
  • Rating: +33/-5
    • View Profile
Re: How To Write an OS
« Reply #29 on: September 19, 2010, 04:39:39 pm »
Doesnt the z80 have an R register that can be used for Random number generation that is much harder to calculate?  I believe Axe random numbers use something like this...
Yes it has a R register but this isn't a random number, it's the refresh register. it could easily be used as a seed though...
MASM xxxxxxxxxx aborted | SADce ====:::::: 40% -Halted until further notice| XAOS =====::::: 50% -Units done| SKYBOX2D engine ========== 100% -Pre-alpha done. Need to  document it and extend |

~Those who dream by day are cognizant of much more than those who dream by night only. -Sir Edgar Allen Poe-