[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference hydra::amiga_v1

Title:AMIGA NOTES
Notice:Join us in the *NEW* conference - HYDRA::AMIGA_V2
Moderator:HYDRA::MOORE
Created:Sat Apr 26 1986
Last Modified:Wed Feb 05 1992
Last Successful Update:Fri Jun 06 1997
Number of topics:5378
Total number of notes:38326

2499.0. "HiSoft Basic" by GUCCI::HERB () Mon Apr 24 1989 01:29

    I am borowwing hisoft basic from a friend (original) to compile
     a amigabasic game I made and to test it out to see if I want to
    buy it.  The problem I have is:  when I load up a amigabasic program
    in the hisoft basic editor I get a error that says "basic tokenized
    file" and it will not load.  What am I doing wrong?  Is hisoft basic
    compatible with amigabasic?
    
         Also,how are the commands in hisoft basic that deal with graphics
    and sound better than amigabasic?
    
    matt
     
T.RTitleUserPersonal
Name
DateLines
2499.1Save as ACIITEACH::BOBMS-DOS....Just say NO!Mon Apr 24 1989 01:465
    Try saving your BASIC probramme as ASCII text.  That should do the
    trick.
    
    BOB
    
2499.2yepNZOV01::MCKENZIEHelp STOP the greenhouse effect!Mon Apr 24 1989 02:338
    re .1 - thats the ticket - I know this works with at least 2 other
    basic compiliers...
    
    By the way - Did you guys know that GFA basic doesnt have a compilier?
    
    looks like Hi-soft basic will be the way to go
    
    ok - wheres the petty cash jar....... 
2499.3How?GUCCI::HERBMon Apr 24 1989 02:421
    How do you save the Amiga basic program to an ASCII file?
2499.4LEDS::ACCIARDIMon Apr 24 1989 02:586
    
    From the AmigaBASIC interpreter, type (including the quotes)...
    
    SAVE "DF1:FILENAME", a
    
    Ed.
2499.5hopefully helpful...NZOV01::MCKENZIEHelp STOP the greenhouse effect!Mon Apr 24 1989 02:5816
Re .-1
    
	o        load program into memory using LOAD "[filename]"
	o        delete program from disk by using "KILL [filename]"
	o	 save"[filename]",A
                                  ^
                                  |
                                  +---- means save file in ASCII mode
    
    once saved in ASCII mode, further saves should overly file
    in ASCII mode
    
    Hope that helps
    
    Phil
    
2499.6hmmmmmmNZOV01::MCKENZIEHelp STOP the greenhouse effect!Mon Apr 24 1989 03:019
    damn - Ed beat me to it
    
    Hey Ed - Ive had problems using SAVE "disk:filename",a when program
    has been previously saved in binary (default) format...
    
    The only way Ive got around it is to do as I suggested in .5
    
    
    any ideas?
2499.7confessions of a slobLEDS::ACCIARDIMon Apr 24 1989 03:1613
    
    I did the save from the Basic command line, not the SAVE AS from the
    Basic menu bar.  I believe that AmigaBASIC's file requestor may be
    brain damaged (or I am), since I never figured out how to get it to do
    an ASCII save.  If you type '"RAM:TEST", a' into the Basic file
    requestor, it saves a tokenized file called "RAM:TEST, a".  Wierd.
    
    Then again, I'm old and fat and lazy and don't do much Basic
    programming these days, so I may just not know how to do it from the
    file requestor.
    
    Ed.
    
2499.8Learning Modula-2 (no more Amigabasic)ADO75A::MCGHIETue Apr 25 1989 11:179
    Of course a safer approach would be to save it to a different filename,
    
    Murphy's Law says the machine will hang or there'll be a power failure
    bewtween the time you type the KILL command and the SAVE completes.
    
    And of course, we all keep regular backups don't we ?!?!?!
    
    Mike
    
2499.9backups - the lifeforce of the universe...NZOV01::MCKENZIEHelp STOP the greenhouse effect!Tue Apr 25 1989 20:2618
    re .-1
    
    > And of course, we all keep regular backups don't we ?!?!?!
    
    you betcha!!!!
    
    re .all 
    
    Please keep in mind that this problem of basic failing to overwrite
    a binary format basic program stored on disk with an ASCII format
    program refers to the usage of AMIGABasic - I dont know what other
    interpreters do - might pay to experiment with Hisoft and post
    results here.....
    
    as .-1 implied though - make a backup copy of your disk first...
    
    Cheers
    
2499.10Changed it into ascii formGUCCI::HERBWed Apr 26 1989 00:4934
    I have ran into another problem with hisoft basic.  I am trying
    to use the program that does CLI commands in basic (There is a note
    in this notesfile that has the listing).
    
    print "loading libs"
    library "dos.library"
    declare function xopen& library
    declare function execute% library
    main:
    cli "play test.smus"
    finish:
    library close
    end
    sub cli (command$) static
    shared error.code%
    (etc....)
    
    This program would work fine in amigabasic but when I try to run
    it with hisoftbasic there is a error that says
    
    error 25 name (not command$) expected in parameter list at line
    11 in file cl.BAS
    continue? (y/n)
    
   " sub cli (command$) static"
    
     is the line with the error.
    
    What am I doing wrong?  What does the error mean?
    
    Al