Omnimaga: The Coders Of Tomorrow
Welcome, Guest. Please login or register.
 
Omnimaga: The Coders Of Tomorrow
21 May, 2013, 14:54:23 *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   home   news downloads projects tutorials misc forums rules new posts irc about Login Register  
+-OmnomIRC

You must Register, be logged in and have at least 40 posts to use this shout-box! If it still doesn't show up afterward, it might be that OmnomIRC is disabled for your group or under maintenance.

Note: You can also use an IRC client like mIRC, X-Chat or Mibbit to connect to an EFnet server and #omnimaga.

Pages: [1] 2 3 ... 5   Go Down
  Print  
Author Topic: Solar89 SDK -  (Read 5150 times) Bookmark and Share
0 Members and 1 Guest are viewing this topic.
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« on: 23 July, 2010, 19:02:55 »
+1

UPDATE: Beta v0.2 has been released, and can be downloaded here (from the Cemetech Archives).


So I thought I might as well announce my first serious calculator project, even though it's probably of little use to anyone other than myself or in my current situation, though.

This project (which I have not yet named) is a suite of 68k programs and computer programs to allow someone to write a program in Z80 Basic (83+/84+) on a TI-89 (or other 68k calculator), using the text editor. The program is then tokenized on the calculator, and then can be sent to a computer to be converted to an 8xp file. This is not an interpreter for Z80 Basic for 68k calcs, nor is it an emulator or a debugger- you cannot actually run the programs on the 68k calculator.

Why? Well, you might remember that my link port broke on my old TI-83 Plus, and I haven't yet gotten a new Z80 calculator. So for the time being, I'm limited to WabbitEmu or my Titanium, and while I can still write assembly programs and test them with WabbitEmu, I'd much rather write Basic programs (both Axe and regular Basic) on an actual calculator. And true, the 89's keyboard is just different enough from the 83+'s to make entering text annoying, but it's better than nothing.

And while chronomex (Duncan Smith of ticalc.org) is working on a Z80 emulator at the moment, by the time it's finished I might actually have an 84+. And since I'm learning C and needed to work on something that actually did something, I decided to work on it. This will probably be obsolete when Duncan Smith's emulator comes out- indeed, as I said, it might be obsolete before then, as I don't know how many people would actually need something like this.


So that's why. Now, as for the how:

There will be three different programs involved (technically, four depending on how you count).

One, a 68k Basic program (that I have named token8x), installs a custom toolbar with all the 83+ (and 84+, when I look them up) tokens. This can then be activated by pressing 2ND - HOME on a 89, and accessed from anywhere on the calc, including the Text Editor. This is mostly finished.

Using this, you would write programs in the Text Editor, save them as a text file, and then use a 68k C program to tokenize the text file into an application variable with the tokens in hex format. This is mostly finished in that it works, but there is other stuff I'd like to add in the future.

Then, the appvar can be sent to a computer, where you would use a suite of Python programs to extract the tokens and save them in 8xp format. This is probably complete (short of supporting other calculators)


Here are some screenshots, of the dialog menu and of the custom toolbar. All screenshots are from TiEmu, nothing has actually been done on calc... and as you might be able to tell from the name of the program, all it does is "ClrHome".


* Toolbar.png (1.6 KB, 160x100 - viewed 549 times.)

* Dialog.png (1.79 KB, 160x100 - viewed 559 times.)
« Last Edit: 21 August, 2010, 01:14:42 by TC01 » Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #1 on: 23 July, 2010, 19:08:08 »
0

Sounds cool. Although I'll never use it, it sounds like it could be useful to some.
At first I thought you were writing a z80 BASIC interpreter, not just an editor. (I never thought you were writing emulator/debugger, though Tongue)
Good luck! Smiley
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
Galandros
LV9 Veteran (Next: 1337)
*********
Offline Offline

Last Login: 27 March, 2011, 01:13:41
Date Registered: 18 October, 2008, 14:21:07
Location: dead end of Europe
Posts: 1150

Total Post Ratings: +32

View Profile
« Reply #2 on: 23 July, 2010, 19:18:03 »
0

It is nice to see some new stuff for 68k calculators even if with limited use.
But hopefully, is really useful for you and maybe you can give us some z80 TI-BASIC in the future.

It is true that doing something oncalc is more familiar to some of us, so there is hope other people pick and use it.
I liked to hear about the z80 emulator in 68k. Although I know there is Gameboy emulator...

Too bad about your calculator link port. I give you a hint if you want assembly programs on it: http://asmtools.omnimaga.org/asmunsquisher/
More useful to little programs. See by yourself but in the case of doubt of what it does, ask me.

Have fun doing your suite. Wink
« Last Edit: 23 July, 2010, 19:19:46 by Galandros » Logged

Hobbing in calculator projects.
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #3 on: 23 July, 2010, 20:07:01 »
0

Sounds cool. Although I'll never use it, it sounds like it could be useful to some.
At first I thought you were writing a z80 BASIC interpreter, not just an editor. (I never thought you were writing emulator/debugger, though Tongue)
Good luck! Smiley
Yeah, good point- I've edited it to add that it's not an interpreter either.

It is nice to see some new stuff for 68k calculators even if with limited use.
But hopefully, is really useful for you and maybe you can give us some z80 TI-BASIC in the future.

It is true that doing something oncalc is more familiar to some of us, so there is hope other people pick and use it.
I liked to hear about the z80 emulator in 68k. Although I know there is Gameboy emulator...

Too bad about your calculator link port. I give you a hint if you want assembly programs on it: http://asmtools.omnimaga.org/asmunsquisher/
More useful to little programs. See by yourself but in the case of doubt of what it does, ask me.

Have fun doing your suite. Wink

Thanks!

Yes, I noticed your assembly unsquisher on the Misc page, and it would be useful for running small programs, as you said.
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
chrisf1337
LV2 Member (Next: 40)
**
Offline Offline

Gender: Male
Last Login: 14 May, 2011, 22:06:44
Date Registered: 26 June, 2010, 06:45:43
Location: US
Posts: 21


Total Post Ratings: 0

View Profile
« Reply #4 on: 23 July, 2010, 22:42:56 »
0

Sounds cool. I, for one, can put it to use, since I have both an 84+SE and an 89T.
Logged

Hai thar!
Builderboy
Physics Guru
LV13 Extreme Addict (Next: 9001)
*************
Offline Offline

Gender: Male
Last Login: Today at 11:56:23
Date Registered: 20 April, 2009, 00:28:53
Location: Ravenholm
Posts: 5642


Total Post Ratings: +589

View Profile
« Reply #5 on: 23 July, 2010, 23:02:30 »
0

Sounds really neat Smiley What kind of programs are needed to convert it into a 8xp?
Logged

TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #6 on: 23 July, 2010, 23:14:24 »
0

Sounds really neat Smiley What kind of programs are needed to convert it into a 8xp?

Something like Kerm's BinPac8x, probably. Depending on how BinPac8x works, I suppose it might be possible to use it rather than write something else. It takes binary files and outputs and 8xp file, which means it writes the hex data to an 8xp file, adding in all the formatting and everything. I have hex data, so... I'll have to test BinPac8x.

I'm using Romain Lievin and Tim Singer's file format and link protocol guide as a reference for both parts of the project- it documents all the 83+ tokens.

Sounds cool. I, for one, can put it to use, since I have both an 84+SE and an 89T.

Well, you can- I just don't know that you would have to. Maybe if you need the advanced mathematics functions of the 68k but want to work on some 83+ program?

This project reminds me a bit of GTC, the on-calc C compiler. It's very cool, but the only possible use (in my mind) would be programming in 68k C when you don't have a computer handy. (I installed it anyway, though).
« Last Edit: 23 July, 2010, 23:14:53 by TC01 » Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
Art_of_camelot
The matrix has you.. ಠ_ಠ
Support Staff
LV12 Extreme Poster (Next: 5000)
*
Online Online

Last Login: Today at 14:54:20
Date Registered: 30 August, 2008, 04:55:55
Location: Dr. Light's Laboratory
Posts: 4391


Total Post Ratings: +149

View Profile WWW
« Reply #7 on: 24 July, 2010, 01:51:51 »
0

This sounds pretty cool. Can't wait to play around with it.
Logged

Projects:
TBA! Coming to an 83+ near you!

NerdTests.com says I'm a Cool Nerd King.  Click here to take the Nerd Test, get nerdy images and jokes, and write on the nerd forum!


Hot_Dog
If you can't find a cat, look for its tail.
Support Staff
LV11 Super Veteran (Next: 3000)
*
Offline Offline

Gender: Male
Last Login: 09 May, 2013, 19:22:43
Date Registered: 28 December, 2009, 18:47:54
Location: Midland, Washington
Posts: 2940


Total Post Ratings: +428

View Profile
« Reply #8 on: 24 July, 2010, 01:56:24 »
0

Very interesting and unique...I can't wait to see how it goes!
Logged

There are people who can speak two languages, and they are called bilingual.  There are people who speak three languages and are therefore trilingual.  Then there are people who speak one language, and these people are called Americans.

TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #9 on: 26 July, 2010, 04:19:00 »
0

I've been posting more about this in the C Programming help topic than in this topic. Tongue

Anyway, I've decided that I'm going to make the list of tokens be stored in an external text file on the calculator. Therefore, I could also make the dialog box prompt for choice of token file- which would mean this program could easily tokenize in 82, 83, 85, and 86 Basic as well (with some changes on the PC end of things in how the file is created).

That might be even less useful, since I don't think there are many 82/83/85/86 Basic developers out there anymore, but I still think it's a cool thing to add.
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #10 on: 26 July, 2010, 04:23:07 »
0

Nice. The only thing you need to realize is that the 85 and 86 stored untokenized code Wink
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #11 on: 26 July, 2010, 04:31:42 »
0

And some actual progress- the program's now successfully (at least, I think it is- again, I don't have the PC end of things in order yet) tokenizing multi-line programs, and lines with multiple tokens.

Nice. The only thing you need to realize is that the 85 and 86 stored untokenized code Wink

The way it works on the 89 is that tokenization happens when you exit the program editor- when you enter the program editor everything is untokenized into raw text (so you can type out all raw commands).

Is this the way it works on the 85 and 86? If it is, then there's no problem.

But I'm going to focus on 83+/84+ for the time being.
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
calcdude84se
Needs Motivation
Members
LV11 Super Veteran (Next: 3000)
***********
Offline Offline

Gender: Male
Last Login: 14 May, 2013, 16:12:14
Date Registered: 21 April, 2010, 04:20:59
Posts: 2207


Total Post Ratings: +62

View Profile
« Reply #12 on: 26 July, 2010, 04:34:03 »
0

Hm... I'm unsure. I didn't know that about the 68k series, btw. Grin
Yeah, best to finish what you started first. Smiley
Logged

"People think computers will keep them from making mistakes. They're wrong. With computers you make mistakes faster."
-Adam Osborne
Bug me about PartesOS. I might just need reminding.
TC01
LV6 Super Member (Next: 500)
******
Offline Offline

Last Login: 07 May, 2013, 18:48:11
Date Registered: 01 July, 2010, 18:00:38
Posts: 339


Topic starter
Total Post Ratings: +8

View Profile
« Reply #13 on: 29 July, 2010, 03:50:46 »
0

An update: I've began some more serious work on the Python end of things.

I've written a single script that calls functions in two other modules- KermMartian's binpac8x to actually make the 8xp file, and parse89, a module I wrote with functions for extracting data from an *.89* variable file.

It's not entirely finished and it needs to be tested, of course- and for that I need to finish changing the on-calc tokenizer over to using text files (I started it but didn't finish, which means that it doesn't work at present and can't produce test programs).
Logged




The userbars in my sig are links embedded links.

And in addition to calculator (and Python!) stuff, I mod Civilization 4 (frequently with Python).
DJ Omnimaga
Retired Omnimaga founder (Site issues must be PM'ed to Netham45, Eeems, Shmibs, Deep Thought and AngelFish, not me.)
Editor
LV15 Omnimagician (Next: --)
*
Offline Offline

Gender: Male
Last Login: Today at 08:22:03
Date Registered: 25 August, 2008, 07:00:21
Location: Québec (Canada)
Posts: 50208


Total Post Ratings: +2613

View Profile WWW
« Reply #14 on: 29 July, 2010, 07:59:44 »
0

Interesting. Those who want to make 83+ BASIC games but mostly have access to a 68k should definitively find this useful Smiley

Just make sure to convert the program there aren't too many dependencies to install, though. I heard some people complain about how a software used a different Python version than another and I remember having troubles with GTK too, with two softwares using different versions, forcing me to install/uninstall them back and forth, depending of which software I needed
Logged

Retired 83+ coder, Omnimaga/TIMGUL founder. Now doing power metal music (formerly did electronica)

Follow me on Bandcamp|Facebook|Reverbnation|Youtube|Twitter|Myspace
Pages: [1] 2 3 ... 5   Go Up
  Print  
 
Jump to:  

Powered by EzPortal
Powered by MySQL Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Powered by PHP
Page created in 0.427 seconds with 29 queries.
Skin by DJ Omnimaga edited from SMF default theme with the help of tr1p1ea.
All programs, games and songs avaliable on this website are property of their respective owners.
Best viewed in Opera, Firefox, Chrome and Safari with a resolution of 1024x768 or above.