ralphb Posted May 21, 2020 Share Posted May 21, 2020 (edited) I admit my TI BASIC is a little bit rusty, but can somebody explain to me what is going on? 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 May 21, 2020 by ralphb 1 Quote Link to comment Share on other sites More sharing options...
Michael Rittweger Posted May 21, 2020 Share Posted May 21, 2020 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 3 Quote Link to comment Share on other sites More sharing options...
ralphb Posted May 21, 2020 Author Share Posted May 21, 2020 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! Quote Link to comment Share on other sites More sharing options...
+mizapf Posted May 21, 2020 Share Posted May 21, 2020 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). 5 1 Quote Link to comment Share on other sites More sharing options...
GDMike Posted May 21, 2020 Share Posted May 21, 2020 Needs to be on a line number? Quote Link to comment Share on other sites More sharing options...
ralphb Posted May 21, 2020 Author Share Posted May 21, 2020 2 minutes ago, GDMike said: Needs to be on a line number? Yes indeed, the other Michael already suggested it. ? 1 Quote Link to comment Share on other sites More sharing options...
RXB Posted May 22, 2020 Share Posted May 22, 2020 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? 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. Quote Link to comment Share on other sites More sharing options...
RXB Posted May 22, 2020 Share Posted May 22, 2020 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. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.