David Given
62bc2ab97a
Jump tables for switch now go in ROM (required by the EM spec). Forward gotos
...
now work.
2017-01-01 23:28:41 +00:00
David Given
8b8910595a
Add proper support for negative constants in external initialisers.
2017-01-01 17:56:53 +00:00
David Given
049aff9f33
Remove the negative-constant code from the compiler; I think it's going to
...
break a=-1 (with no spaces). Backed out changeset dead3363ac7d.
2017-01-01 17:44:55 +00:00
David Given
374e7a1c57
Add support for the ~ operator.
2017-01-01 17:40:06 +00:00
David Given
b1576e2c77
Add support for negative constants in external initialisers.
2016-12-31 19:43:03 +00:00
David Given
803b81e3f4
Add support for the xor operator.
2016-12-31 17:36:12 +00:00
David Given
c3e1ef1064
B patch table names shouldn't be in the B symbol namespace.
2016-12-31 00:14:28 +00:00
David Given
ebd424e7f1
First draft of the B module code; a module name can now be specified as a
...
compiler flag, which is used to set the name of the patch table. The compiler
now understands C preprocessor line directives. Extend the standard library
somewhat.
2016-12-29 17:10:21 +00:00
David Given
b9665c7c99
Fix some basic showstopping bugs; compilation now works up to failing to find
...
the libb standard library.
2016-11-27 21:08:14 +01:00
David Given
707585b67d
Perform initial (i.e. feature complete and compiling, but not necessarily
...
working) port of the B compiler to EM.
2016-11-27 20:28:19 +01:00
David Given
cfc723250f
Initial EM-ification; start threading word size stuff through the code.
2016-11-27 11:58:59 +01:00