Code

History

Commits on master to dis.py14
  1. Simplified the Type class. Removed padding previously introduced for writing LDT items.David Boddie committed 9 years ago5b67b84
  2. Fixed LDT generation, adding a trailing zero after an empty section and ensuring that items are padded to word boundaries. Added types, data and other information to the output of the list method. Started working on reading exceptions.David Boddie committed 9 years agof918dba
  3. 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
  4. Fixed reading of LDT items.David Boddie committed 9 years agode9ef05
  5. Simplified link handling and annotated the test.David Boddie committed 9 years ago0cca943
  6. 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
  7. 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
  8. 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
  9. Added code to read additional linking information. Ensured that function signature hashes are read as unsigned integers.David Boddie committed 9 years ago48fa601
  10. Adjusted the list method to output indices instead of byte addresses for instructions since the program counter is actually an index into the sequence of instructions and not an address into the memory holding the encoded instructions.David Boddie committed 9 years agobbbabb5
  11. Improved handling of data items.David Boddie committed 9 years ago0d4808d
  12. Added basic handling of all the Dis file sections.David Boddie committed 9 years agod264bdd
  13. Fixed the string representation of Instruction instances.David Boddie committed 9 years agoa07a3ba
  14. Imported initial modules for reading Dis files and disassembling instructions.David Boddie committed 9 years ago28c9792