Trivial Solutions
                    The LoseThos 64-bit PC Operating System
File:/LT/Demo/OldSchool/Demo1/Compatibility1.SPP
This, and all LoseThos files, are public domain.  Do whatever you like.
God is watching; God is just; God is never out-done in generosity.  He talks!

LoseThos code compiles with the 64-bit LoseThos compiler/assembler I wrote.
Boot the LoseThos CD and you can compile it.  Not in Kansas anymore!

Click here for preliminary compiler information you need.

/*
This is the quick start version to get you
going with conventional programming.

See ::/LT/Demo/OldSchool/Demo2/Compatibility2.SPP
for detailed info.

Create a binary (executable) by
right-clicking on this file in a
Dir() listing and pressing "COMPILE".
Then, right click on the .BIZ file
and press "LOAD".

*/


// imports all syms from the Adam Task's hash table.
#include "::/LT/OSMain/StaticAdam.HPZ"

#exe {OptOn(OPTf_STD_C);};

void main()
{
  char ch;
  unsigned short s; //example of unsigned
  int i;
  long q;
  double d;
  bool b;

  LtfClear();
  PrintF("char\t:%d\n",sizeof(ch));
  PrintF("bool\t:%d\n",sizeof(b));
  PrintF("short\t:%d\n",sizeof(s));
  PrintF("int\t:%d\n",sizeof(i));
  PrintF("long\t:%d\n",sizeof(q));
  PrintF("double\t:%d\n",sizeof(d));
}

main(); //run main() when Load()ed.



Historical capture: 2012-03-09. Home | Power on LoseThos | Sources and changes