Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
  You are not logged in - nap
PETSCII2BASIC   [2020]

PETSCII2BASIC Released by :
Wil

Release Date :
15 November 2020

Type :
Other Platform C64 Tool

Released At :
Vintage Computing Carinthia $0B

User rating:awaiting 8 votes (6 left)   See votestatistics

Credits :
Code .... Wil of Vintage Computing Carinthia

Download :

Look for downloads on external sites:
 Pokefinder.org


Summary
Submitted by wil on 15 November 2020
Probably everybody on csdb would agree that BASIC is the bestest programming language! So if you need to draw a nice PETSCII image and later want to use it in your BASIC program, this program is for you.

You first draw your PETSCII(s) with Marq’s execellent PETSCII Editor (http://www.kameli.net/marq/?page_id=2717). Marq’s PETSCII Editor saves a PETSCII natively in C program structure, but it can also export to a self-contained viewer as machine language program or as a BASIC program. However, the BASIC export is putting each byte into data line and is using a POKE for loop to display. This makes the program very large and takes ages to display, even if you are used to BASIC.

With the present program you can export a more compact and faster PRINT-based BASIC viewer from a PETSCII drawn with Marq’s PETSCII Editor and saved normally there as a .c file. Then you run the PETSCII2BASIC program to generate your BASIC program. It tries to make the program compact by avoiding unnecessary color changes or RVS ON/RVS OFF combinations. Furthermore, it provides the proper code to print quotes. With the BASIC option, it only generates the POKEs for background and foreground color and the PRINT statements. This mode is to be used if you want to write your own program around the result. When using the BASICPRG option, you get a viewer for the PETSCII(s) in BASIC. The program goes through a lot of trouble here to fill the last byte of a page correctly and adds code to wait for a keypress. There is also a mode where you PETSCII ends up as strings in DATA lines, however AFAIK there is no possibility to put quotes into strings in DATA arguments, therefore quotes are replaces by single quotes when using the data option. The generated code POKEs into 53280 and 53281. Other than that no memory addresses are used, so it should be agnostic to relocated screen memory.

I hope you find this program useful and I’m looking forward to forthcoming BASIC games made with it.
Search CSDb
Advanced
Navigate
Prev - Random - Next
Detailed Info
· Summaries (1)
· User Comments (2)
· Production Notes
Fun Stuff
· Goofs
· Hidden Parts
· Trivia
Forum
· Discuss this release
Support CSDb
Help keep CSDb running:



Funding status:




About this site:
CSDb (Commodore 64 Scene Database) is a website which goal is to gather as much information and material about the scene around the commodore 64 computer - the worlds most popular home computer throughout time. Here you can find almost anything which was ever made for the commodore 64, and more is being added every day. As this website is scene related, you can mostly find demos, music and graphics made by the people who made the scene (the sceners), but you can also find a lot of the old classic games here. Try out the search box in the top right corner, or check out the CSDb main page for the latest additions.
Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.082 sec.