I've been working on an interesting project lately: A compatibility layer that lets you run C programs for the TI-68K calculators on the CE.
The idea is this:

Write replacements for functions from tigcclib which use the CE libraries instead.
Since the TI89 has 50 keys, same as the CE, remap CE keys to those on the TI89 in the same locations, e.g. CE_Alpha = 89_Meta.

There are several challenges I've come across:

1) Overriding library functions/macros.
For example, say I want to do

Code:

#define LCD_WIDTH 160

LCD_WIDTH is defined as 320 already. I can change it with

Code:

#undef LCD_WIDTH
#define LCD_WIDTH 160

but is there a better way than this?
This also doesn't work with functions.

2) Optimization
I've written a replacement for ngetchx. However, it's quite large. (though not as nasty as my original implementation.)
Is there a way to sense the difference between these?

Code:

ngetchx();

and

Code:

short a = ngetchx();

repo:https://github.com/Michael0x18/compat
This sounds very cool! I can't wait to see how it turns out!
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are UTC - 5 Hours
 
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 vote in polls in this forum

 

Advertisement