Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums

Forums > C64 Coding > Basic V2 to ML compilers
2021-08-17 20:31

Registered: May 2011
Posts: 27
Basic V2 to ML compilers

I have tested these on a 11 block basic V2 program I coded to see the outcome & every compiler just flat out will not convert it correctly. No errors during conversion but when I load the program with ,8,1 and sys to the start everyone goes to a default screen color with a ready prompt.

Here are the ones I tested it with:

Boss Basic, Abacus Basic-64 (6502/6510) & MoSpeed

Reason I tried these out I wanted a faster conversion then having myself translate line by line to assembly. I can do about 90% of the translation but when it comes to strings I can't do it (never done strings in ML) so I end up coding a huge block where instead of strings I use memory locations. One routine is for a text parser that is 50 lines x 39 chars. Each line has a compare on the current line number and the current position.

!byte 0 ;when at 49 do not increase, when at 0 do not decrease
!byte 0 ;max 39 min 0
!byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0,0
!byte 0,0,0,0,0,0,0,0,0

each line either terminates with max 39 chars or a zero
byte before the end (in case of a line break)

I have tried looking up doing variables in assembly with C64 Studio but can't find any documentation on it. Am I stuck with this type of conversion? Would like to trim it down.
2021-08-17 21:29

Registered: Mar 2009
Posts: 1050
How a compiler translates the BASIC concept variables (which doesn't exist as such in ML) might vary.

Basic Boss is IIRC the one that provides most tweaking but also requires deepest study of manual. Here you find a manual translated into English (I don't know if the translation's any good).

2021-08-18 13:53

Registered: Dec 2001
Posts: 10019
I read it 3 times and still didnt get wth you are trying to do and what does not work exactly. You should post an example BASIC snippet that doesnt work as expected with those compilers.
2021-08-18 18:41
Count Zero

Registered: Jan 2003
Posts: 1435
I read it several times as well and to me it sounds like: the generated p-code is loaded and SYSed without the compiler-runtime running into a BRK.
In general - there is trace and chis on vice monitor - use it.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Users Online
TPM/Silicon Ltd
Guests online: 77
Top Demos
1 Edge of Disgrace  (9.6)
2 Coma Light 13  (9.6)
3 Bromance  (9.6)
4 Uncensored  (9.6)
5 Memento Mori  (9.5)
6 Comaland 100%  (9.5)
7 Lunatico  (9.5)
8 Unboxed  (9.5)
9 Wonderland XII  (9.5)
10 Christmas Megademo  (9.5)
Top onefile Demos
1 Copper Booze  (9.7)
2 Daah, Those Acid Pil..  (9.5)
3 Dawnfall V1.1  (9.5)
4 Cityscape 2730  (9.5)
5 To Norah  (9.5)
6 Elite Code Mechanics  (9.4)
7 Lovecats  (9.4)
8 Barry Boomer - Trapp..  (9.4)
9 For Your Sprites Only  (9.4)
10 Quadrants  (9.4)
Top Groups
1 Booze Design  (9.4)
2 Oxyron  (9.3)
3 Censor Design  (9.3)
4 Crest  (9.3)
5 Triad  (9.3)
Top Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Acidchild  (9.7)
4 Violator  (9.6)
5 Starlight  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2021
Page generated in: 0.036 sec.