Jump to content

Photo

Which BASIC?


21 replies to this topic

#1 cbmeeks OFFLINE  

cbmeeks

    Moonsweeper

  • 409 posts
  • Location:Hixson, TN

Posted Fri Feb 8, 2019 7:52 AM

I'm learning TMS9900 assembly language.  But it's a little slow-going at the moment.

 

In the meantime, I'd like to tinker around with some graphics/sound on the TI using BASIC.  The official Extended BASIC seems to be a popular choice but I read many times that it's slow.

 

XB is probably fast enough for what I want to do for now but I wouldn't mind playing with something that is faster and maybe even be compiled.

 

The most complex thing I would want to do with it would be along the lines of Asteroids or PacMan.  I'll save the more complex programs for assembly.

 

What do you suggest?

 

Besides assembly, what are the cool kids using for graphics/sound on the TI?

 

Thanks!

 

PS, I wonder if there should be a sticky somewhere for this.  Like a PROS/CONS of each language for the TI.  I know there are a lot of them!  Might help people make some choices.



#2 Opry99er OFFLINE  

Opry99er

    Quadrunner

  • 10,587 posts
  • Location:Hustisford, WI

Posted Fri Feb 8, 2019 9:31 AM

Write in XB, use Wilhelm's compiler to get assembly speed.

Best of both worlds (Like Locutus.... you will be assimilated)

#3 BeeryMiller OFFLINE  

BeeryMiller

    Dragonstomper

  • 816 posts
  • Location:Campbellsburg, KY

Posted Fri Feb 8, 2019 9:48 AM

If you are looking at only personal creation and use, and not distribution, then getting setup for Myarc Extended Basic 2 would get you the speed.  Faster than Extended Basic and more easily accessible graphic options.

 

However, finding a Myarc 512K card is not going to be easy.

 

Beery



#4 cbmeeks OFFLINE  

cbmeeks

    Moonsweeper

  • Topic Starter
  • 409 posts
  • Location:Hixson, TN

Posted Fri Feb 8, 2019 9:53 AM

They Myarc sounds nice but I have a few other purchases ahead of it.  :-)

 

I'll search for the Wilhelm compiler.

 

Will I need a disk system to use it?  I was just going to save to cassette until I can get me a TIPI or real disk drive/controller.



#5 Asmusr OFFLINE  

Asmusr

    River Patroller

  • 3,033 posts
  • Location:Denmark

Posted Fri Feb 8, 2019 10:20 AM

I'll search for the Wilhelm compiler.

 

This is it:

http://atariage.com/...-package/page-1



#6 senior_falcon OFFLINE  

senior_falcon

    Stargunner

  • 1,369 posts
  • Location:Lansing, NY, USA

Posted Fri Feb 8, 2019 11:10 AM


Will I need a disk system to use it?  I was just going to save to cassette until I can get me a TIPI or real disk drive/controller.

You will need 32K to run the compiled program. The compiler needs a disk drive, but  you can and should use Classic99 for the development work. The programs that are created can be saved to disk or cassette as XB programs and these can be loaded from cassette.  If they are more than 12K then there is a special loader that lets you get around the 12K cassette limit.

 

You can find this in the thread "cass24k issue"


Edited by senior_falcon, Fri Feb 8, 2019 11:16 AM.


#7 LASooner OFFLINE  

LASooner

    Moonsweeper

  • 371 posts

Posted Fri Feb 8, 2019 2:18 PM

You can also use module creator to make the resulting E/A files from the compiler into a cartridge image.



#8 cbmeeks OFFLINE  

cbmeeks

    Moonsweeper

  • Topic Starter
  • 409 posts
  • Location:Hixson, TN

Posted Fri Feb 8, 2019 2:32 PM

You can also use module creator to make the resulting E/A files from the compiler into a cartridge image.

 

 

Wait, does that mean I can write an XB program...compile it....and then take that compiled binary and convert it to a cart?  So the end user wouldn't need XB to run it?



#9 Asmusr OFFLINE  

Asmusr

    River Patroller

  • 3,033 posts
  • Location:Denmark

Posted Fri Feb 8, 2019 2:41 PM

 

 

Wait, does that mean I can write an XB program...compile it....and then take that compiled binary and convert it to a cart?  So the end user wouldn't need XB to run it?

 

Yes.



#10 cbmeeks OFFLINE  

cbmeeks

    Moonsweeper

  • Topic Starter
  • 409 posts
  • Location:Hixson, TN

Posted Fri Feb 8, 2019 2:47 PM

SWEET!

 

So, once I'm able to burn my own carts, of my own software, I will literally have no reason to leave my house.   :-D

 

Thanks!



#11 senior_falcon OFFLINE  

senior_falcon

    Stargunner

  • 1,369 posts
  • Location:Lansing, NY, USA

Posted Fri Feb 8, 2019 2:51 PM

 

Wait, does that mean I can write an XB program...compile it....and then take that compiled binary and convert it to a cart?  So the end user wouldn't need XB to run it?

As I understand this,the program is copied out of the cartridge and into the 32K memory expansion. So a totally unexpanded TI99 would not work - you need the 32K.



#12 cbmeeks OFFLINE  

cbmeeks

    Moonsweeper

  • Topic Starter
  • 409 posts
  • Location:Hixson, TN

Posted Fri Feb 8, 2019 2:56 PM

As I understand this,the program is copied out of the cartridge and into the 32K memory expansion. So a totally unexpanded TI99 would not work - you need the 32K.

 

No worries there.  My machine has the 32K expansion.

 

In fact, I plan on getting a SAMS card sometime soon.  :-)


  • RXB likes this

#13 arcadeshopper ONLINE  

arcadeshopper

    River Patroller

  • 4,178 posts
  • Location:Portland, Oregon USA

Posted Fri Feb 8, 2019 5:42 PM

yep, thats what I did with the weather program below: (requires tipi) 

100 CALL CLEAR
101 INPUT "3 LETTER AIRPORT CODE:":C$ :: IF LEN(C$)<3 OR LEN(C$)>3 THEN GOTO 100
110 URL$="http://tgftp.nws.noaa.gov/data/observations/metar/decoded/K"&C$&".TXT"
115 REM REPLACE KDEN WITH THE REPORTING STATION YOU CARE ABOUT
120 DIM A$(255)
121 D=0
130 OPEN #1:"PI."&URL$,INPUT ,VARIABLE 254
140 ON ERROR 180
150 D=D+1
160 LINPUT #1:A$(D)
170 GOTO 150
180 CLOSE #1
190 FOR I=1 TO D
200 PRINT A$(I)
210 NEXT I
220 INPUT "AGAIN?(Y/N)":Y$
230 IF SEG$(Y$,1,1)="Y" THEN GOTO 100

compiled that and got the attached ea5 in the zip  and then made the attached bin 

Attached Files


  • RXB likes this

#14 LASooner OFFLINE  

LASooner

    Moonsweeper

  • 371 posts

Posted Fri Feb 8, 2019 9:35 PM

I can't say enough good things about XB256 and the XB compiler. 

 

 

giphy.gif



#15 LASooner OFFLINE  

LASooner

    Moonsweeper

  • 371 posts

Posted Fri Feb 8, 2019 9:43 PM

As I understand this,the program is copied out of the cartridge and into the 32K memory expansion. So a totally unexpanded TI99 would not work - you need the 32K.

 

 

I also haven't been able to get it to work with programs that use low mem for the XB256 routines.



#16 --- Ω --- OFFLINE  

--- Ω ---

    Hexacorerunner

  • 13,619 posts

Posted Fri Feb 8, 2019 9:48 PM

yep, thats what I did with the weather program below: (requires tipi) 

100 CALL CLEAR
101 INPUT "3 LETTER AIRPORT CODE:":C$ :: IF LEN(C$)<3 OR LEN(C$)>3 THEN GOTO 100
110 URL$="http://tgftp.nws.noaa.gov/data/observations/metar/decoded/K"&C$&".TXT"
115 REM REPLACE KDEN WITH THE REPORTING STATION YOU CARE ABOUT
120 DIM A$(255)
121 D=0
130 OPEN #1:"PI."&URL$,INPUT ,VARIABLE 254
140 ON ERROR 180
150 D=D+1
160 LINPUT #1:A$(D)
170 GOTO 150
180 CLOSE #1
190 FOR I=1 TO D
200 PRINT A$(I)
210 NEXT I
220 INPUT "AGAIN?(Y/N)":Y$
230 IF SEG$(Y$,1,1)="Y" THEN GOTO 100

compiled that and got the attached ea5 in the zip  and then made the attached bin 

 

Sadly it just give a reference to a web page now and does not give the actual data anymore.  I was so hoping the format could have been tweaked as well to display the data in a more readable format.  But with the change, who knows.



#17 arcadeshopper ONLINE  

arcadeshopper

    River Patroller

  • 4,178 posts
  • Location:Portland, Oregon USA

Posted Fri Feb 8, 2019 11:47 PM

 
Sadly it just give a reference to a web page now and does not give the actual data anymore.  I was so hoping the format could have been tweaked as well to display the data in a more readable format.  But with the change, who knows.

Maybe it's the KXXX i tried kpdx the other day and it worked

Sent from my LG-V530 using Tapatalk

#18 senior_falcon OFFLINE  

senior_falcon

    Stargunner

  • 1,369 posts
  • Location:Lansing, NY, USA

Posted Sat Feb 9, 2019 9:23 AM

I also haven't been able to get it to work with programs that use low mem for the XB256 routines.

I may have included files that are in the wrong format. I will check this out and make sure it works properly. The other thing I am working on is a way to load the runtime routines into low memory using the XB cartridge so you don't have to change to MiniMemory. This is not trivial because it is possible to use up all 32K of the memory expansion, leaving no place to put the code that creates the EA5 files and the XB files. But where there's a will there's a way and I am almost done with this. I have a bunch of memory saving tricks that make it possible, and will describe them when I post the updated version in the next few days.



#19 arcadeshopper ONLINE  

arcadeshopper

    River Patroller

  • 4,178 posts
  • Location:Portland, Oregon USA

Posted Wed Feb 13, 2019 12:06 PM

Maybe it's the KXXX i tried kpdx the other day and it worked

Sent from my LG-V530 using Tapatalk

 

found it, they changed to HTTPS only.. :P



#20 arcadeshopper ONLINE  

arcadeshopper

    River Patroller

  • 4,178 posts
  • Location:Portland, Oregon USA

Posted Wed Feb 13, 2019 10:29 PM

I did a pr and added https to tipi's PI. http routine, so it will work now with the domain changed to HTTPS: or https:  but I need to recompile it for the binaries.. will do that. tipi update 30 was just released so update your tipi in tipicfg



#21 Ed in SoDak OFFLINE  

Ed in SoDak

    Moonsweeper

  • 430 posts
  • Location:Black Hills of South Dakota

Posted Fri Feb 15, 2019 12:23 AM

For XB, I started with TI's then later upgraded to SXB, Super Extended BASIC. The more advanced editing options really help with programming. When editing a long line, you can jump the cursor up or down a row, or to the beginning or end. The RENUM is more flexible where portions of code can be moved elsewhere without disturbing the rest of the program. There's other features as well.

 

Other flavors of XB no doubt have similar improvements. RXB is very full-featured beyond SXB, but I'm not sure about its availability on a cart or if it can be ported to one for use on the iron.

 

Speed of execution depends a bit on the programming techniques. Short E/A routines can be developed to perform some things much faster but remain in the XB environment. For raw speed outside of writing it all in assembly, Harry's compiler is the way to go.

-Ed


Edited by Ed in SoDak, Fri Feb 15, 2019 12:25 AM.


#22 Casey OFFLINE  

Casey

    Moonsweeper

  • 325 posts

Posted Fri Feb 15, 2019 9:57 AM

RXB runs fine on a real 99/4A from a FG99... I use it often.
  • RXB likes this




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users