Welcome, Guest. Please login or register.

Author Topic: Loading files in AmigaBasic  (Read 3087 times)

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Loading files in AmigaBasic
« on: January 29, 2009, 08:31:32 PM »
I have downloaded an AmigaBasic programme and am trying to load it in to the AmigaBasic interpreter. When I enter the name of the file I get an error saying "File not found". It does this even if I give the full path to the file. Any ideas?

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Loading files in AmigaBasic
« Reply #1 on: January 29, 2009, 09:02:23 PM »
Thanks! The AmigaBasic programme is already in an ASCII file. I have just downloaded ACE Basic and tried to use it to compile the AmigaBasic programme, but it failed with loads of errors. Do you know if I need to do something to make it interpret the source as AmigaBasic? I did have a look in the manual, but couldn't see anything specific about this.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Loading files in AmigaBasic
« Reply #2 on: January 29, 2009, 09:04:09 PM »
@zipper
Amiga OS3.1 under UAE.

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Loading files in AmigaBasic
« Reply #3 on: February 03, 2009, 09:18:56 AM »
Quote
SamuraiCrow wrote:
It was both, AFAIK.  Try emulating a straight 68000 with Kickstart 1.3 and it should work.

Ahh that worked. It runs now! I do get an error that it can't find graphics.library, which is weird since it seems to be resident. I removed the line which tries to load it but then certain functions of the app don't work :-(

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Loading files in AmigaBasic
« Reply #4 on: February 03, 2009, 09:19:36 AM »
Quote
bloodline wrote:
AmigaBasic... Hassle... just rewrite it in C... :lol: ;-)

That would spoil the nostalgia :-)

--
moto
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show all replies
Re: Loading files in AmigaBasic
« Reply #5 on: February 03, 2009, 01:04:21 PM »
Quote
bloodline wrote:
Ok, recode it in C and compile it with SAS/C 6 :-D

:lol: I might try...

Anyway, I got it working! For some reason it didn't like being opened in to AmigaBasic as loaded from the Extras 1.3 disk. When I ran it from the disk as it is supposed to be, it worked. Not sure what the difference is - perhaps a tooltype in the icon sets some paths or something.
Code: [Select]
10  IT\'S THE FINAL COUNTDOWN
20  FOR C = 1 TO 2
30     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NAAAA
40     DA-NA-NAAAA-NAAAA DA-NA-NA-NA-NA-NA-NAAAAA
50  NEXT C
60  NA-NA-NAAAA
70  NA-NA NA-NA-NA-NA-NAAAA NAAA-NAAAAAAAAAAA
80  GOTO 10