Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Copperhead ! (Registered 2024-05-08) You are not logged in - nap
CSDb User Forums


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

Registered: May 2011
Posts: 30
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.

linenum
!byte 0 ;when at 49 do not increase, when at 0 do not decrease
linepos
!byte 0 ;max 39 min 0
line1
!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
TheRyk

Registered: Mar 2009
Posts: 2076
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).

https://commodore.software/downloads/download/53-basic-compiler..
2021-08-18 13:53
chatGPZ

Registered: Dec 2001
Posts: 11136
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: 1825
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
Advanced
Users Online
hedning/G★P
zscs
MWR/Visdom
Honesty/Covenant/Ons..
heavymett
w4rp8
Guests online: 116
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 Wonderland XIV  (9.6)
9 Memento Mori  (9.6)
10 Bromance  (9.5)
Top onefile Demos
1 It's More Fun to Com..  (9.7)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 TRSAC, Gabber & Pebe..  (9.5)
6 Rainbow Connection  (9.5)
7 Dawnfall V1.1  (9.5)
8 Quadrants  (9.5)
9 Daah, Those Acid Pil..  (9.5)
10 Birth of a Flower  (9.5)
Top Groups
1 Nostalgia  (9.3)
2 Oxyron  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 hedning  (9.7)
4 Irata  (9.7)
5 MWS  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.045 sec.