Corrected shifts by multiples of 8 to conform with the new type system.
commit04d973ac3303774c16b010436d48b431573dae89
authorVincent St-Amour <stamourv@dino13.iro.umontreal.ca>
Mon, 11 May 2009 20:00:36 +0000 (11 16:00 -0400)
committerVincent St-Amour <stamourv@dino13.iro.umontreal.ca>
Mon, 11 May 2009 20:00:36 +0000 (11 16:00 -0400)
tree5d035b803a941e17e3cbbe53e8afb96319d8aa31
parent6996d4d3ab011be492b8ada9831cd27d126cd5d0
Corrected shifts by multiples of 8 to conform with the new type system.
Implemented routine-based shifting for the general case, and
implemented the routine for 8-bit values (both left and right shift).
To do that, support for rotation with carry was added to the code
generation, along with some bit-oriented instructions (set, clear,
toggles).
Finally, a couple of bugs related to the rotation instructions were
solved in the simulator.
cfg.scm
code-generation.scm
cte.scm
operators.scm
optimizations.scm
pic18-sim.scm
tests/general/vm2.c
tests/math/lshift.c
tests/math/rshift.c