edy131109
edy131109
156 / 2
3rd Nov 2023
1st Aug 2024
An operating system inside of tpt. Not complete, you can suggest features in the comments or tell me about bugs so i can fix them. Also use tpt.setfpscap(2) in console(~) for faster speed.
r216 r216k2a pcos subframe computer batch electronic tptos

Comments

  • polziet21
    polziet21
    29th Jul 2024
    My god this is amazing. +1
  • edy131109
    edy131109
    29th Jul 2024
    UPDATE: I have putc and puts, next is getc and gets, all programmed in C and inline assembly
  • edy131109
    edy131109
    29th Jul 2024
    I can currently compile some simple C programs which is amazing but it will still need some work to get perfect, but to me the idea of just using C to program something in this game is amazing
  • edy131109
    edy131109
    29th Jul 2024
    True, I will add some code that will go over the assembly after it's been compiled and optimize it, my current roadblock was pointers but I think I just figured out a way to do them.
  • resic
    resic
    29th Jul 2024
    that's the price you have to pay when you want to code easier
  • edy131109
    edy131109
    29th Jul 2024
    Optimizing compilers is really hard, I'll probably never get my compiler to compare to gcc or writing assembly by hand.
  • edy131109
    edy131109
    29th Jul 2024
    Yeah this computer can't deal with floating points, it was only programmed with integers in mind, though floating point support isn't that hard to make I was tired. And you can't just use floating point registers like on real cpus you need to do something else.
  • resic
    resic
    28th Jul 2024
    MeltedLawnFlamingo: I think this computer can't deal with floating points.
  • MeltedLawnFlamingo
    MeltedLawnFlamingo
    28th Jul 2024
    2+4.6 = 388, this is amazing
  • resic
    resic
    28th Jul 2024
    some of them could even run TPT in TPT. They're just too hard to program with normal assembly or even without assembly. Like FTC-2 or FTC-Sigma