Code

History

Commits on master to opcodes.py7
  1. Changed the order of offsets passed to double indirection operands to reflect the order used in the standard Dis assembler notation.David Boddie committed 9 years ago3740cbe
  2. Annotated the test further. Added more information to the string representation of Type objects. Fixed the order of the offsets in the string representation of offsets in double indirect operands. Updated the notes.David Boddie committed 9 years agoa8c27d9
  3. Made it possible to instantiate types directly, without requiring input from a file so that programs can be assembled in code. Simplified the Data class to reduce the amount of redundant information being passed around. Added shorthand names for the operand types. Changed the double offset operand classes to make them easier to use in programs at the expense of code duplication. Added a test based on the Dis file compiled from a simple Limbo program.David Boddie committed 9 years agode15c5f
  4. Added basic writing support. Removed the string representations of instructions and changed instruction reading to ensure that an instance of a specific class is created for each instruction. Fixed the definition of the frame instruction.David Boddie committed 9 years ago9bbb059
  5. Reorganised the way instructions are represented, including mechanism for serialising them to files. Added functions for writing values of different types to files.David Boddie committed 9 years agob262216
  6. Moved the Instruction class into the opcodes module. Moved the read* functions into the new utils module. Created an Instruction subclass for each instruction, placing the corresponding opcode value inside it.David Boddie committed 9 years agob833c11
  7. Imported initial modules for reading Dis files and disassembling instructions.David Boddie committed 9 years ago28c9792