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


Forums > C64 Coding > ACME screen codes Assembly
2021-07-23 04:36
TheWarCriminal
Account closed

Registered: May 2011
Posts: 30
ACME screen codes Assembly

In C64 Studio BASIC IDE it has ACME screen code conversions inside curly brackets but these don't work in the assembly editor even though the editor is ACME. What are these codes (ie: home, clear home, cursor left, ect) or am I going to have to do this the hard way by creating a parser?
2021-07-23 05:56
Endurion

Registered: Mar 2007
Posts: 72
Ah, you want to use them like this:

!text "{clear}{home}" ?

Good idea for a feature, I'll put it on my TODO list!
2021-07-23 11:51
Krill

Registered: Apr 2002
Posts: 2825
Quoting TheWarCriminal
or am I going to have to do this the hard way by creating a parser?
As you're requesting some kind of syntactic sugar, i guess the hard way would be the traditional way of mixing symbols (resolving to PETSCII control character byte values) and strings, like
!text CLR, HOME, "hello"
(Yes, i'm aware that this might not exactly fit ACME or C64 Studio syntax, but you get the idea.)
2021-07-24 16:47
Endurion

Registered: Mar 2007
Posts: 72
Hacked the support in, try with the WIP release at https://www.georg-rottensteiner.de/webmisc/C64StudioRelease.zip

All variants that are supported by the BASIC "compiler" are also now in the assembler.

Edit: Of course the first try was completely wrong, now it works properly for all text types (!text, !pet, !raw, !scr)

Please re-download from the link.

Edit #2: Aaaand fixed the fix. Now it really does work properly.

Please re-re-download from the link.
2021-07-29 02:07
TheWarCriminal
Account closed

Registered: May 2011
Posts: 30
I don't know if this issue has been brought up but there is an error/bug in the label mode of the basic ide (BASIV V2):

if you decide to remove the line numbers & put labels in representing the goto/gosub routines, then click build/rebuild you get "missing line numbers" on each 'line'.

ie:

REM ++++FROM HERE TO APP BEGIN ARE NEEDED FOR ALL APPS

LABEL0
IFMX=0THENMX=1:LOAD"HBBS.ML",8,1
SD=8:DIM AG$(10),UI$(20),PR$(23):MD=0:VR$="38400":VB$="PSYCHOTIC REACTION"
J0%=9728:J1%=16427:J2%=17408:J3%=17488:J4%=17664:POKE53281,0:P1%=9895
P2%=10454

error box:

16;E3000;;Missing line number
15;E3000;;Missing line number
14;E3000;;Missing line number
13;E3000;;Missing line number
12;E3000;;Missing line number
11;E3000;;Missing line number

I excluded lines #1-10 since they are at the start and are rem statements
2021-07-30 05:21
Endurion

Registered: Mar 2007
Posts: 72
Ah, thanks! C64Studio ought to automatically toggle to non label mode for compiling; I'll fix that.
2021-07-30 07:11
Endurion

Registered: Mar 2007
Posts: 72
Uploaded the fixed version as WIP to https://www.georg-rottensteiner.de/webmisc/C64StudioRelease.zip

Thanks once more for notifiying me of the issue!
2021-08-03 07:38
TheWarCriminal
Account closed

Registered: May 2011
Posts: 30
I know I am asking for a lot here but it is to make it more
easy:

"project solution":

when removing a file from solution could the delete option be a separate click instead being with the remove click? Already made the mistake clicking on yes before reading the dialog cause I was thinking the IDE was akin to VS since perm delete is another click on the cascade menu.

Would it be hard to add a BASIC V2 importer w/ disassembler?

And add BASIC V2 to ML compiler? (I can port the code over but it takes a while to test each sub routine for bugs)

Another idea: In the BASIC IDE could there be an option to limit string area before & after a ML block so the strings won't overwrite the ML? I know how to do it but it would be simple for others.

Another cool feature would be a snippet library either offline for the user to save or online for the community (both IDEs). That way no one has to reinvent a routine.

I like C64 Studio over CBM Studio & the VS plugin.


Thanks a bunch for the last 2 patches. They have helped.
2021-08-03 11:29
Krill

Registered: Apr 2002
Posts: 2825
Quoting TheWarCriminal
Would it be hard to add a BASIC V2 importer w/ disassembler?

And add BASIC V2 to ML compiler?
Not sure where this is aiming. Do you want to mix compiled BASIC V2 code with manually-crafted assembly, or tweak the compiled code?
2021-08-03 12:19
TheWarCriminal
Account closed

Registered: May 2011
Posts: 30
no. Something like what mospeed does. Compile straight to assembly.
2021-08-03 12:24
chatGPZ

Registered: Dec 2001
Posts: 11100
Doesnt it compile to p-code?
2021-08-03 12:27
Krill

Registered: Apr 2002
Posts: 2825
Was there ever a BASIC compiler producing assembly rather than straight to machine code binaries (either native or for some bytecode interpreter/VM)?
2021-08-03 12:53
Silver Dream !

Registered: Nov 2005
Posts: 107
Quoting Krill
Was there ever a BASIC compiler producing assembly rather than straight to machine code binaries (either native or for some bytecode interpreter/VM)?

The best native one I recall ever using was "Basic Boss", which was pretty awesome to me at the time. Especially when compared to all the "speedcode" based ones. Don't recall seeing anything that would output assembly, which could be further tweaked or optimised.
2021-08-04 06:39
Endurion

Registered: Mar 2007
Posts: 72
Quote: I know I am asking for a lot here but it is to make it more
easy:

"project solution":

when removing a file from solution could the delete option be a separate click instead being with the remove click? Already made the mistake clicking on yes before reading the dialog cause I was thinking the IDE was akin to VS since perm delete is another click on the cascade menu.

Would it be hard to add a BASIC V2 importer w/ disassembler?

And add BASIC V2 to ML compiler? (I can port the code over but it takes a while to test each sub routine for bugs)

Another idea: In the BASIC IDE could there be an option to limit string area before & after a ML block so the strings won't overwrite the ML? I know how to do it but it would be simple for others.

Another cool feature would be a snippet library either offline for the user to save or online for the community (both IDEs). That way no one has to reinvent a routine.

I like C64 Studio over CBM Studio & the VS plugin.


Thanks a bunch for the last 2 patches. They have helped.


Interesting stuff.

What do you mean with "BASIC V2 importer w/ disassembler"? Open a BASIC file and disassemble any ML routines (stored in DATA blocks, or appended after the BASIC code)?


Also, could you give some simple examples for

1) And add BASIC V2 to ML compiler? (I can port the code over but it takes a while to test each sub routine for bugs)

Basically, translate the BASIC code to assembler? (wherever that's possible)

2)
Another idea: In the BASIC IDE could there be an option to limit string area before & after a ML block so the strings won't overwrite the ML? I know how to do it but it would be simple for others.

What would that do? Add POKEs to the BASIC code to set the string area?
2021-11-04 00:10
Mac Bacon

Registered: Feb 2016
Posts: 6
Quoting Krill
like
!text CLR, HOME, "hello"
(Yes, i'm aware that this might not exactly fit ACME or C64 Studio syntax, but you get the idea.)

might not exactly fit ACME syntax?
use
!src <cbm/c64/petscii.a>
to get definitions for PetSCII control characters. :D
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
Matt
Røly/Mayday!
Guests online: 121
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 The Ghost  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.9)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 Wafer Demo  (9.5)
7 TRSAC, Gabber & Pebe..  (9.5)
8 Onscreen 5k  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.6)
4 Mutetus  (9.6)
5 Linus  (9.6)

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