Jump to content
ralphb

I'm sorry Ralph, ...

Recommended Posts

Posted (edited)

I admit my TI BASIC is a little bit rusty, but can somebody explain to me what is going on? 

 

cant-do-that.thumb.png.8fbeee4bc8d4e4aa9dba571f487eb3d9.png

 

Above screenshot is from MAME, and DSK1 contains these files:

W         :     14 used  346 free   90 KB  1S/1D 40T  9 S/T
----------------------------------------------------------------------------
ERR           4  DIS/VAR 80     541 B  40 recs     2019-09-26 09:55:04 C   
ERRO          4  DIS/FIX 80     768 B   9 recs     2019-09-26 09:49:02 M   
ERRX          4  DIS/FIX 80     768 B   9 recs     2019-09-26 09:55:04 M   

 

w.dsk

Edited by ralphb
  • Like 1

Share this post


Link to post
Share on other sites

Hi, ralphb!

 

I'm not quite sure, but... Those OPEN and INPUT comands are allowed only while running a program, not directly on the prompt.

 

Line numbers...

 

Michael

 

  • Like 3

Share this post


Link to post
Share on other sites
Just now, Michael Rittweger said:

I'm not quite sure, but... Those OPEN and INPUT comands are allowed only while running a program, not directly on the prompt.

Seriously!  I totally didn't know this (or forgot it a long time ago). 

 

Thanks, Michael!

Share this post


Link to post
Share on other sites

Try it in Extended BASIC. INPUT is only allowed in a program, while ACCEPT is also usable as a command. However, you cannot ACCEPT from a file.

 

Ever tried to launch a sprite in command mode?

 

CALL SPRITE(#1,42,16,10,10,10,10) :: ACCEPT A$

 

and press FCTN-4 (CLEAR).

  • Like 5
  • Haha 1

Share this post


Link to post
Share on other sites
2 minutes ago, GDMike said:

Needs to be on a line number?

Yes indeed, the other Michael already suggested it. 🙂

  • Thanks 1

Share this post


Link to post
Share on other sites
On 5/21/2020 at 3:14 AM, ralphb said:

I admit my TI BASIC is a little bit rusty, but can somebody explain to me what is going on? 

 

cant-do-that.thumb.png.8fbeee4bc8d4e4aa9dba571f487eb3d9.png

 

Above screenshot is from MAME, and DSK1 contains these files:

W         :     14 used  346 free   90 KB  1S/1D 40T  9 S/T
----------------------------------------------------------------------------
ERR           4  DIS/VAR 80     541 B  40 recs     2019-09-26 09:55:04 C   
ERRO          4  DIS/FIX 80     768 B   9 recs     2019-09-26 09:49:02 M   
ERRX          4  DIS/FIX 80     768 B   9 recs     2019-09-26 09:55:04 M   

 

w.dsk 90 kB · 2 downloads

Ok first off this will open and also put anything in a DV80 file including TI Writer codes or any hidden control characters:

 

100 OPEN #2:"DSK8.BATCH",OUTPUT
110 LINPUT #1:Z$

 

Defualts for open are DV80

Also defaults are LINPUT will fetch a line that does not crash the way INPUT does if you have other then characters 30 to 159 in a files.

LINPUT is what I always use as INPUT crashes more often.

Share this post


Link to post
Share on other sites
On 5/21/2020 at 3:31 AM, Michael Rittweger said:

Hi, ralphb!

 

I'm not quite sure, but... Those OPEN and INPUT comands are allowed only while running a program, not directly on the prompt.

 

Line numbers...

 

Michael

 

Incorrect you can do OPEN and CLOSE from Command Edit mode as I do it all the time

>OPEN #1:"DSK1.BATCH",INPUT

>CLOSE #1

 

INPUT and LINPUT need a line number only due to in Command Edit mode used same buffer so crashed.

  • Thanks 1

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...