1
0
mirror of https://github.com/dschmenk/PLASMA.git synced 2024-09-29 16:55:22 +00:00

Compiler bugfixes

This commit is contained in:
David Schmenk 2018-03-10 19:00:01 -08:00
parent 28f6e11606
commit 76fd2328d9
4 changed files with 7 additions and 2 deletions

View File

@ -670,6 +670,7 @@ def gen_ctag(seq, tag)
op=>opnext = new_op
op = op=>opnext
fin
op->opcode = INVALID_CODE
op->opgroup = CODETAG_GROUP
op=>optag = tag
return seq

View File

@ -133,7 +133,7 @@ def crunch_seq(seq, pass)
fin
break
is CONST_CODE // Collapse constant operation
nextopnext = nextop->nextop
nextopnext = nextop->opnext
if nextopnext
when nextopnext->opcode
is MUL_CODE

View File

@ -79,6 +79,10 @@ const BRNCH_CODE = $50
//
const CODETAG_GROUP = $06
//
// Invalid code
//
const INVALID_CODE = $FF
//
// Code sequence op
//
struc t_opseq

View File

@ -411,7 +411,7 @@ include "toolsrc/parse.pla"
//
// Look at command line arguments and compile module
//
puts("PLASMA Compiler, Version 1.02\n")
puts("PLASMA Compiler, Version 1.03\n")
arg = argNext(argFirst)
if ^arg and ^(arg + 1) == '-'
opt = arg + 2