Jump to content
IGNORED

7800basic for Newbies: A Tutorial, Part 1


Atarius Maximus

Recommended Posts

The command you use to compile is "7800bas", not "7800basic"

Opps, guess i was just confused. So i have tried again and back to the same error message. I have tried editing the code and placing the "atascii.png" file in a sub folder or in the same directory. Knowing what im like it will be something simple that im over looking. Anyway here is the code.


 rem displaymode 320A
 set basepath gfx_helloworld
 
 rem **background color...
 BACKGRND=$0

 rem **set the height of characters and sprites...
 set zoneheight 8

 rem **import the characterset png...
 incgraphic atascii.png 320A 

 rem **set color of 320A text palette 0...
 P0C2=$0F

 rem **set the current character set...
 characterset atascii

 rem **set the letters represent each graphic character...
 alphachars ASCII

 clearscreen
 plotchars 'Hello World!' 0 0 0
 plotchars 'It`s great to be alive.' 0 0 1 
 plotchars '12345678901234567890123456789012' 0 0 4

main 
 drawscreen
 goto main 


Edit: Ok changed it completely back to the original sample file and it compiles fine. Thanks for the help, Im excited to play around with the 7800 and see whats possible.

 displaymode 320A
 
 rem **background color...
 BACKGRND=$0

 rem **set the height of characters and sprites...
 set zoneheight 8

 rem **import the characterset png...
 incgraphic atascii.png 320A 

 rem **set color of 320A text palette 0...
 P0C2=$0F

 rem **set the current character set...
 characterset atascii

 rem **set the letters represent each graphic character...
 alphachars ASCII

 clearscreen
 plotchars 'Hello World!' 0 0 0
 plotchars 'It`s great to be alive.' 0 0 1 
 plotchars '12345678901234567890123456789012' 0 0 4

main 
 drawscreen
 goto main 
Edited by Tony The 2600
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...