Welcome, Guest. Please login or register.

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

Description:

0 Members and 1 Guest are viewing this topic.

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
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 SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Loading files in AmigaBasic
« Reply #1 on: January 29, 2009, 08:39:51 PM »
I seem to recall that AmigaBasic is buggy but there is a utility with ACE Basic that will convert AmigaBasic source files to plain text so you can read them and try to compile them with ACE.
 

Offline zipper

Re: Loading files in AmigaBasic
« Reply #2 on: January 29, 2009, 08:42:08 PM »
On which system?
 

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Loading files in AmigaBasic
« Reply #3 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 only replies by motorollin
Re: Loading files in AmigaBasic
« Reply #4 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 zipper

Re: Loading files in AmigaBasic
« Reply #5 on: January 29, 2009, 09:10:19 PM »
Amiga Basic doesn't work on KS2.+ IIRC - or was it 020 + processors?
 

Offline SamuraiCrow

  • Hero Member
  • *****
  • Join Date: Feb 2002
  • Posts: 2281
  • Country: us
  • Gender: Male
    • Show only replies by SamuraiCrow
Re: Loading files in AmigaBasic
« Reply #6 on: January 29, 2009, 09:27:39 PM »
It was both, AFAIK.  Try emulating a straight 68000 with Kickstart 1.3 and it should work.  ACE isn't 100% AmigaBasic compatible so getting stuff to compile sometimes takes some work.
 

Offline ferrellsl

Re: Loading files in AmigaBasic
« Reply #7 on: January 29, 2009, 10:22:18 PM »
You also have to run the NOFASTMEM utility for AmigaBASIC to run porperly.
 

Offline bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Loading files in AmigaBasic
« Reply #8 on: January 29, 2009, 11:42:04 PM »
AmigaBasic... Hassle... just rewrite it in C... :lol: ;-)

To run AmigaBasic, you'll need to set UAE up to be pretty much a stock 1.3 A500 :-(

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Loading files in AmigaBasic
« Reply #9 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 only replies by motorollin
Re: Loading files in AmigaBasic
« Reply #10 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 bloodline

  • Master Sock Abuser
  • Hero Member
  • *****
  • Join Date: Mar 2002
  • Posts: 12114
    • Show only replies by bloodline
    • http://www.troubled-mind.com
Re: Loading files in AmigaBasic
« Reply #11 on: February 03, 2009, 12:58:09 PM »
Quote

motorollin wrote:
Quote
bloodline wrote:
AmigaBasic... Hassle... just rewrite it in C... :lol: ;-)

That would spoil the nostalgia :-)

--
moto


Ok, recode it in C and compile it with SAS/C 6 :-D

Offline motorollinTopic starter

  • Hero Member
  • *****
  • Join Date: Nov 2005
  • Posts: 8669
    • Show only replies by motorollin
Re: Loading files in AmigaBasic
« Reply #12 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