1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2026-04-20 16:16:34 +00:00
Commit Graph

407 Commits

Author SHA1 Message Date
Steven Flintham 374d2465b6 Add -S option to plasm to output to stdout 2023-01-15 22:30:53 +00:00
David Schmenk f5b2db78a3 Allow importing self 2023-01-14 12:20:16 -08:00
David Schmenk 970d692592 Update code to ALPHA2 2022-12-20 09:58:26 -08:00
David Schmenk bb41023498 Ensure max of 32 characters significant for IDs 2022-07-19 18:20:53 -07:00
David Schmenk c3111a63be Make sure 32 characters significant for import/export ID 2022-07-19 18:16:36 -07:00
David Schmenk 726609a573 Make sure 32 significant characters for import/export IDs 2022-07-19 18:06:47 -07:00
David Schmenk bf9c61892c ALPHA2 2020-07-15 19:37:47 -07:00
David Schmenk f0dc042dad Alpha1 2020-07-01 09:56:44 -07:00
David Schmenk 713a6c6cbe Alpha1 2020-07-01 09:55:58 -07:00
Dave Schmenk 447cde1692 Forth->PLASMA transpiler 2020-01-25 14:03:22 -08:00
David Schmenk c74af19505 Improve indenting on mis-aligned lines 2020-01-21 08:39:26 -08:00
David Schmenk 5581bfb052 Update images 2020-01-20 12:09:09 -08:00
David Schmenk 1a208ef30a Make sure ternary op has lower precedence than AND and OR 2020-01-20 11:39:58 -08:00
Dave Schmenk ff023f65d2 Fix long standing bug in catalog code 2020-01-17 12:51:19 -08:00
David Schmenk 5c8fbfdcf4 Forgot to update editor version 2020-01-10 17:59:27 -08:00
David Schmenk ea3c73ac15 2.0 DP3 release 2020-01-10 17:25:32 -08:00
David Schmenk 484aefb08c More error reporting when writing files 2019-12-31 07:53:41 -08:00
David Schmenk c743ace42b Trying to track down file write corruption 2019-12-30 22:34:35 -08:00
David Schmenk 64f4f56379 Add Apple /// non-jit default to free up a little memory and update images to DP2 2019-12-28 16:18:51 -08:00
David Schmenk 4a4468cc22 Fix divmod7 for negative numbers 2019-12-28 09:47:24 -08:00
David Schmenk a77c50c90a Add 32 bit integer librbary just to print out file sizes in CAT 2019-12-24 12:02:56 -08:00
David Schmenk 3161692d4a Fix line edit changed flag 2019-12-20 10:20:09 -08:00
David Schmenk 3d91e4175b editine c;eanip. still loses ctrl-d once in awhile 2019-12-20 03:36:03 -08:00
David Schmenk 15b4551b2a Editor write file change to identify very rare write corruption 2019-12-20 00:49:12 -08:00
David Schmenk 8df7cea4a0 Add optional goto line number to command line load filename 2019-12-19 20:42:37 -08:00
Dave Schmenk b9c5a8cb23 More WIP for the graphics libraries 2019-12-19 14:27:08 -08:00
Dave Schmenk 10a98d5392 Seriously broken dividing zero by anything 2019-12-17 21:20:09 -08:00
Dave Schmenk 60e556cc63 more low hanging opts (and fix previous cross compiler opt) 2019-12-17 14:52:35 -08:00
Dave Schmenk b81e911857 Snag a few more easy optimizations 2019-12-17 13:30:09 -08:00
Dave Schmenk ae5ea36e87 Remove #$%&! TAB characters 2019-12-17 11:01:05 -08:00
Dave Schmenk 1afb559849 Remove extraneous OK printouts 2019-12-17 10:59:06 -08:00
David Schmenk 3ce76f7308 simplify indent/undent code 2019-12-17 08:11:07 -08:00
Dave Schmenk e1e16ef36d Better blank line detab 2019-12-16 10:05:07 -08:00
Dave Schmenk 6cabe160c4 Fix empty line TABbing 2019-12-16 09:03:34 -08:00
David Schmenk 454ecb29a8 Improve indent/undent and toggle gutter view. Additional compiler stats 2019-12-16 08:25:58 -08:00
Dave Schmenk 9011b1cc64 Add more compiler stats 2019-12-15 16:33:09 -08:00
David Schmenk bc45a9263c Fix some editor redraw issues 2019-12-15 13:24:26 -08:00
Dave Schmenk c7f48765b2 Return to editor when toggling lower-case chip support 2019-12-14 17:58:35 -08:00
Dave Schmenk 27129fe152 Upgrade editor to programmers editor 2019-12-14 17:42:39 -08:00
Dave Schmenk f67e58011a Auto-indent for editor 2019-12-13 13:30:54 -08:00
Ian Flanigan 9a5bf76b71 Remove duplicate token declaration from plasm.pla
Before this change, there were two declarations for the 'res' token.
Now there is only one.
2018-11-25 17:46:26 +01:00
Ian Flanigan a8629a4f9a Remove duplicate token declaration from lex.c
Before this change, there were two declarations for the 'res' token.
Now there is only one.
2018-11-25 17:04:21 +01:00
Ian Flanigan ce0b92bf8c Prefer pointer types in prefix operator parsing
This fixes issue #49 in the simplest way. Before, if the
dereferenced variable was a byte type, the result of the word
pointer dereference operator, `*`, would be a byte type. This
caused `*@a` to return a byte if `a` was a byte type. Now the
pointer type is used instead, causing `*@a` to return a word.

Prefix operator parsing allows some nonsensical constructions,
like `@*x`, but these were already possible before.

Before the output from:
```
include "inc/cmdsys.plh"

byte a
byte b
word x

a = 5
b = 6
x = $55FF
puti(*@a) // 5
putln()
puti(*(@a)) // 1541
putln()
puti(@*a) // 5
putln()
puti(^@x) // 255
putln()
puti(^(@x)) // 255
putln()
puti(@^x) // 255
putln()
done
```
was:
```
5
1541
5
255
255
255
```
now it is:
```
1541
1541
1541
255
255
255
```
2018-11-18 12:15:14 +00:00
David Schmenk 0f2a76dd55 Fix infunc for asm defs 2018-04-27 19:47:23 -07:00
David Schmenk 4db8271a25 TFTP server and fix FOR/NEXT in module init bug 2018-04-21 16:35:31 -07:00
David Schmenk c1d849946f BIG change so FOR/NEXT exits with proper terminal value in variable 2018-04-17 10:39:05 -07:00
David Schmenk 45b3560040 Fix compiler allocations for 64K machine 2018-04-14 12:48:12 -07:00
David Schmenk 795d56c2a7 Fix SEL JIT16 compiler 2018-04-12 17:15:16 -07:00
David Schmenk 2bb9f73448 Fix INCBRLE and JIT cleanup 2018-04-12 14:20:02 -07:00
David Schmenk 61eaeef9c1 Disable JITC on certain modules. 2018-04-07 10:48:11 -07:00