Jump to content

Photo

7800basic beta, the release thread


593 replies to this topic

#1 RevEng OFFLINE  

RevEng

    River Patroller

  • 4,382 posts
  • Bitnik
  • Location:Canada

Posted Fri Feb 28, 2014 10:51 PM

Welcome to the official 7800basic release thread!

To download the latest 7800basic, visit the 7800basic page of the 7800 Development Wiki.

Random Terrain has provided an online version of the 7800basic guide.

Please report any issues, errors, etc., in this thread. If this language is going to be useful, bug-free, and a pleasure to use, it's going to be through shared collaboration.

And most of all, lets use this language to make some new kick-ass games for our all too often overlooked platform. :)

#2 Rybags OFFLINE  

Rybags

    Quadrunner

  • 14,633 posts
  • Location:Australia

Posted Fri Feb 28, 2014 11:01 PM

Cheers.  I'll see about having a look a bit later on.

 

Been wanting to do something on the 7800 for a long time, this might serve as a good stepping stone.



#3 Random Terrain OFFLINE  

Random Terrain

    Visual batari Basic User

  • 27,801 posts
  • Controlled Randomness
    Replay Value
    Nonlinear
  • Location:North Carolina (USA)

Posted Sat Mar 1, 2014 1:30 AM

Thanks. I'll try it tomorrow (after I get some sleep).



#4 Trebor OFFLINE  

Trebor

    River Patroller

  • 3,922 posts

Posted Sat Mar 1, 2014 10:14 AM

Just one tiny suggestion for page 20 regarding this:

Palette_20.PNG

Hue $a is closer to a member of the "blue" family for both NTSC and PAL.
It will start to appear more "green->blue" (low->high end) with a system having a higher phase shift (~26.7 degrees and greater).

Hue $c would be the 'official' "green" (remains consistently that way despite a lower or higher phase shift) for NTSC, $d would probably be better for PAL (And would work for NTSC too in the example).

The Level 1 forest for Bentley Bear utilizes $d (Bob, please correct if mistaken).

 

Color charts showcasing phase shifs from 24.7 degrees thru 27.7 degrees can be found here.



#5 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 10:51 AM

I woke to find this thread. Have been reading all morning. Great documentation. Tried compiling simple.bas just a moment ago.

 

One thing that might throw someone off just starting is you used "_simple" for a folder name in one of the command lines but the actual folder is "simple", no underscore.

 

Here comes the newbee questions:

 

 

With the command line: 7800basic.sh simple.bas , I am getting the message "Command not found".

 

I have 7800basic.sh in the same folder as simple.bas. Does it need to be in a different folder?

 

Forgot to mention working in OS X.

 

Allan



#6 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 11:05 AM

I see this is going to be battle from the gate. Uggg!!!

 

I just tried installing install_win.bat in Windows XP.

 

I got a message:

 

:FAILED
echo   Setting the bas7800dir variable failed. This batch file requires SETX,
echo   which comes with WinXP SP2, Windows Vista, and later versions of Windows.
echo.
echo   You should obtain a copy of SETX and re-run this script, or set the
echo   bas7800dir variable manually.
echo.
pause

 

I updated windows XP with SP2, restarted windows, ran install_win.bat and got the exact same thing.

 

Allan



#7 CPUWIZ OFFLINE  

CPUWIZ

    Sheriff

  • 31,468 posts
  • Cartridge Recycler
  • Location:SoCal

Posted Sat Mar 1, 2014 11:09 AM

http://stackoverflow...k-in-windows-xp

 

Download:

http://www.microsoft...s.aspx?id=18546



#8 RevEng OFFLINE  

RevEng

    River Patroller

  • Topic Starter
  • 4,382 posts
  • Bitnik
  • Location:Canada

Posted Sat Mar 1, 2014 11:14 AM

I woke to find this thread. Have been reading all morning. Great documentation. Tried compiling simple.bas just a moment ago.
 
One thing that might throw someone off just starting is you used "_simple" for a folder name in one of the command lines but the actual folder is "simple", no underscore.


Thanks, I'll fix that for the next update!

 

With the command line: 7800basic.sh simple.bas , I am getting the message "Command not found".
 
I have 7800basic.sh in the same folder as simple.bas. Does it need to be in a different folder?


7800basic.sh shouldn't have to be in the same folder. Did you run "install_ux.sh" in the 7800basic folder? This sets up your PATH so you can run the script from anywhere.

It's also worth mentioning that you need to open a new terminal window after running install_ux.sh". This tidbit is mentioned by install_ux.sh itself, but easy enough to miss.

 

I just tried installing install_win.bat in Windows XP.


My mistake. I got the bit about "setx" being delivered with XP SP2 from the net, but clearly it's not exactly right.

Check out the answers in this thread for how to obtain it for XP.

Or we can go over how to set the variables manually, if you prefer.

#9 RevEng OFFLINE  

RevEng

    River Patroller

  • Topic Starter
  • 4,382 posts
  • Bitnik
  • Location:Canada

Posted Sat Mar 1, 2014 11:16 AM

Just one tiny suggestion for page 20 regarding this[...]


Excellent, and thank-you! I'll update it.

I've been using the default MESS palette for my work, but it seems that might be a bad idea.

#10 danwinslow OFFLINE  

danwinslow

    River Patroller

  • 2,498 posts

Posted Sat Mar 1, 2014 11:24 AM

Great stuff! Thanks for doing this.



#11 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 11:29 AM

Thanks, I'll fix that for the next update!

 

7800basic.sh shouldn't have to be in the same folder. Did you run "install_ux.sh" in the 7800basic folder? This sets up your PATH so you can run the script from anywhere.

It's also worth mentioning that you need to open a new terminal window after running install_ux.sh". This tidbit is mentioned by install_ux.sh itself, but easy enough to miss.

 

My mistake. I got the bit about "setx" being delivered with XP SP2 from the net, but clearly it's not exactly right.

Check out the answers in this thread for how to obtain it for XP.

Or we can go over how to set the variables manually, if you prefer.

I ran install_ux.sh in terminal. I just opened terminal and dragged the file install_ux.sh onto the terminal window. It gave me the message:

 

Quote:

__________________________The_7800basic_Unix_Installer_v1__________________________

This script will update your /Users/allan/.profile file to
set the following variables each time you open a terminal window.

  export bas7800dir="/Users/allan"
  export PATH=$PATH:$bas7800dir

You may run this script as many times as you like, and should do so if you're
installing a new version of 7800basic, or if you relocate this basic directory.

Hit [ENTER] to begin, or type Q and [ENTER] to quit.
 

End Quote.

 

I hit 'return' and it then gave me the message:

 

 

Quote:

 

/Users/allan/.profile has been updated successfully.

To test the new setup...

  1. open another terminal window.  (the bas7800dir and PATH variables will
     now be active in any new terminal window)
  2. type:  cd "/Users/allan/samples/_simple"
  3. type:  7800basic.sh simple.bas

This should create a test.bas.bin binary file in the samples directory
that will work on real hardware or under emulation.

 

End Quote.

 

 

I then opened a new Terminal window and typed:

 

cd "/Users/allan/samples/_simple"

 

hit 'return' and the typed:

 

7800basic.sh simple.bas

 

and got the message:

 

'command not found'

 

Allan



#12 RevEng OFFLINE  

RevEng

    River Patroller

  • Topic Starter
  • 4,382 posts
  • Bitnik
  • Location:Canada

Posted Sat Mar 1, 2014 11:52 AM

From your new terminal windows, what are the results from...

echo $PATH
echo $bas7800dir

I did test this in my OS X VM, but maybe there are environment or version differences between our OSes.

#13 gambler172 OFFLINE  

gambler172

    River Patroller

  • 2,983 posts
  • none
  • Location:germany

Posted Sat Mar 1, 2014 12:30 PM

Hi RevEng

great work........only Problem is,that i am only a Little hacker..... :(

how can i learn this.......?

greetings Walter



#14 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 12:31 PM

echo $PATH

 

gives me:

 

/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin:/Users/allan

 

echo $bas7800dir

 

Gives me:

 

/Users/allan

 

Allan



#15 danwinslow OFFLINE  

danwinslow

    River Patroller

  • 2,498 posts

Posted Sat Mar 1, 2014 12:37 PM

Allan, what shell are you using?


Edited by danwinslow, Sat Mar 1, 2014 12:37 PM.


#16 Jess Ragan ONLINE  

Jess Ragan

    Phanto of the Opera

  • 9,426 posts
  • Keys and Thank You
  • Location:The Arid Zone

Posted Sat Mar 1, 2014 12:42 PM

Neat-O! Another BASIC compiler for my amusement.

#17 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 12:46 PM

Thanks, CPUWIZ.

 

The top page is what I used to find the bottom page. I did what was said and XP said it was updated but I still got the same message when I ran install_win.bat for 7800Basic.

 

Weird.

 

Hopefully I can get 7800Basic to work with OS X Terminal. It's a little easier than having to switch over to Windows.

 

Allan



#18 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 12:48 PM

Allan, what shell are you using?

Terminal in OS X 10.6.8.

 

Allan



#19 Trebor OFFLINE  

Trebor

    River Patroller

  • 3,922 posts

Posted Sat Mar 1, 2014 12:56 PM

Excellent, and thank-you! I'll update it.

I've been using the default MESS palette for my work, but it seems that might be a bad idea.

More recent versions of MESS, in the last year or so, should have a 'good' palette (~Versions 0.148-0.152). 

Anything earlier, may likely have some issues.



#20 MAC-42 OFFLINE  

MAC-42

    Moonsweeper

  • 251 posts
  • Location:The west coast of the east coast of North America

Posted Sat Mar 1, 2014 1:18 PM

Hopefully I can get 7800Basic to work with OS X Terminal.

I had success in the Terminal.app on OS X, Allan.  I had to cd to the actual folder I'm storing 7800basic in at the moment.  (In my case, ~/A7800 Development/7800basic/7800basic.0.1beta20140228/ which is sloppy, but hey.  :) )  When I ran the install_ux.sh file after doing so, things just popped.


Edited by MAC-42, Sat Mar 1, 2014 1:19 PM.


#21 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 1:35 PM

I had success in the Terminal.app on OS X, Allan.  I had to cd to the actual folder I'm storing 7800basic in at the moment.  (In my case, ~/A7800 Development/7800basic/7800basic.0.1beta20140228/ which is sloppy, but hey.  :) )  When I ran the install_ux.sh file after doing so, things just popped.

 For some reason it just doesn't see it or something. I have everything in the same folder but no go. I'll keep bagging away at this.

 

I tried typing 'ls' in Terminal and I got a list of the files in the folder that Terminal is pointed to and it seems to be the correct folder. It contains all the 7800basic files including simple.bas and 7800basic.sh.

 

Allan



#22 RevEng OFFLINE  

RevEng

    River Patroller

  • Topic Starter
  • 4,382 posts
  • Bitnik
  • Location:Canada

Posted Sat Mar 1, 2014 2:23 PM

Allan, when you unzipped, did it create subdirectories like /doc and /samples, or did everything go in one spot?

Judging from your variables it looks like the latter. Try unzipping with directories, if that's the case.

#23 gambler172 OFFLINE  

gambler172

    River Patroller

  • 2,983 posts
  • none
  • Location:germany

Posted Sat Mar 1, 2014 3:16 PM

Hi
could someone post the samples in a78 or bin
so that i can check on real hardware?
It will take a long time,till i get everything to work.
I use Windows 7 on my PC
Is there anybody,who could describe,how i must install everything?
Thanx in advance
Walter

#24 RevEng OFFLINE  

RevEng

    River Patroller

  • Topic Starter
  • 4,382 posts
  • Bitnik
  • Location:Canada

Posted Sat Mar 1, 2014 5:15 PM

Hi Walter,

Here are the two sample programs compiled. The first one is very basic, just so people can see an uncomplicated program.

Attached File  simple.bas.a78   32.13KB   336 downloads
Attached File  adventurer.bas.a78   32.13KB   358 downloads

Installation on Windows 7 is pretty straightforward. It's covered in the last part of the Guide, but its just a matter of unzipping the zip file somewhere on your computer. (make sure to unzip with directory support). Then double-click the "install_win.bat" file.

Actual usage is from the command-line, but that's also covered in the last part of the Guide too.

In your earlier post you asked how you could learn this. My suggestion is to follow the guide instructions on how to compile the simple.bas example. Then read through the commands in the guide a bit. When you read something you want to try, modify simple.bas and try it out.

If you run into problems as you learn, post in the forums. I'm glad to help, and the guys who know bB automatically know a good deal of the 7800basic syntax, so they can help too.

#25 Allan OFFLINE  

Allan

    Quadrunner

  • 5,898 posts
  • Location:Wallingford, CT

Posted Sat Mar 1, 2014 6:04 PM

Allan, when you unzipped, did it create subdirectories like /doc and /samples, or did everything go in one spot?

Judging from your variables it looks like the latter. Try unzipping with directories, if that's the case.

Yes, it created subdirectories.

 

Allan






0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users