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

Forums > C64 Coding > Programming with PLASMA
2018-09-12 10:59

Registered: Apr 2002
Posts: 1099
Programming with PLASMA

I've recently stumbled upon https://github.com/dschmenk/PLASMA.

This is a "medium level programming language targeting the 8-bit 6502 processor", so something between ASM and C, which can be compiled to rather performant native code from a VM that maps a lot better to 6502, compared to C.

There appears to be a C-64 HAL/arch implementation, so... has anybody tried out PLASMA? :)
2018-09-13 04:14

Registered: Dec 2001
Posts: 8981
did you? i played around with it a bit and it looks like c64 support has just barely started. there exist a couple c64 related files which will produce error messages when you actually try compiling them =) also unfortunately, that compiler does not compile to native code, it generates bytecode :/
2018-09-13 09:09

Registered: Apr 2002
Posts: 1099
I have only taken a fleeting glance at it so far and got the impression that it can be compiled to either bytecode or native assembly.

Upon a closer look, the latter seems to be wrong. That makes it somewhat unfeasible (as a higher-level ASM replacement where complex controlling or lots of boilerplate code is required).

Of course that should be rather simple to implement. Maybe a future version will support that.
2018-09-13 20:55

Registered: Dec 2001
Posts: 8981
yeah it could be done, perhaps. but until then... not something i'd loose sleep about =)
2018-09-19 07:47
White Flame

Registered: Sep 2002
Posts: 135
I looked at the VM implementation code, and I would guess it probably has similar speed characteristics to Forth. Plus, its notion of local frames means that local parameters need to be copied from the stack into the local frame, and vice versa for the return values; while Forth simply keeps all parameters & return values in-place on the stack.
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
Da Snake
DRAX/Maniacs of Noise
Guests online: 46
Top Demos
1 Uncensored  (9.7)
2 Unboxed  (9.7)
3 Comaland 100%  (9.7)
4 Edge of Disgrace  (9.7)
5 Coma Light 13  (9.6)
6 The Shores of Reflec..  (9.6)
7 Lunatico  (9.6)
8 Wonderland XII  (9.6)
9 C=Bit 18  (9.6)
10 X Marks the Spot  (9.5)
Top onefile Demos
1 Smile to the Sky  (9.6)
2 Daah, Those Acid Pil..  (9.5)
3 Dawnfall V1.1  (9.4)
4 FMX Music Demo  (9.4)
5 Crystal Gazer  (9.4)
6 Pandemoniac Part 2 o..  (9.4)
7 Arok 20 Invitation  (9.4)
8 Official X2018 Report  (9.4)
9 Rewind  (9.4)
10 Party Horse  (9.3)
Top Groups
1 PriorArt  (9.8)
2 Performers  (9.5)
3 Oxyron  (9.4)
4 Booze Design  (9.4)
5 Censor Design  (9.3)
Top Coders
1 Axis  (9.8)
2 CRT  (9.8)
3 Graham  (9.8)
4 Crossbow  (9.8)
5 Lft  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2019
Page generated in: 0.064 sec.