Basecode Parameters.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // Return the basecode parameter block as a list.
  2. // Works only on AMS 2.04 and later (returns with an error message on AMS 2.03 and older).
  3. #define USE_TI89 // Compile for TI-89
  4. #define USE_TI92PLUS // Compile for TI-92 Plus
  5. #define USE_V200 // Compile for V200
  6. #define SAVE_SCREEN // Save/Restore LCD Contents
  7. #define OPTIMIZE_ROM_CALLS // Use ROM Call Optimization
  8. #define MIN_AMS 204 // Compile for AMS 2.04 or higher
  9. #define RETURN_VALUE // Return Pushed Expression
  10. #define NO_CALC_DETECT
  11. #define NO_EXIT_SUPPORT
  12. #include <tigcclib.h> // Include All Header Files
  13. // Main Function
  14. void _main(void)
  15. {
  16. const BASECODE_PARM_BLOCK *bpb = EX_getBasecodeParmBlock ();
  17. push_END_TAG ();
  18. push_quantum (bpb->releaseDateDay);
  19. push_quantum (1);
  20. push_quantum (POSINT_TAG);
  21. push_quantum (bpb->releaseDateMonth);
  22. push_quantum (1);
  23. push_quantum (POSINT_TAG);
  24. push_quantum (bpb->releaseDateYear);
  25. push_quantum ((bpb->releaseDateYear)>>8);
  26. push_quantum (2);
  27. push_quantum (POSINT_TAG);
  28. push_quantum (bpb->releaseVersionMinor);
  29. push_quantum (1);
  30. push_quantum (POSINT_TAG);
  31. push_quantum (bpb->releaseVersionMajor);
  32. push_quantum (1);
  33. push_quantum (POSINT_TAG);
  34. push_quantum (bpb->len);
  35. push_quantum (1);
  36. push_quantum (POSINT_TAG);
  37. push_LIST_TAG ();
  38. }