Code

History

Commits on master21
  1. Added instructions and two Limbo source files.David Boddie committed 9 years ago1b726d6
  2. Added some more notes.David Boddie committed 9 years ago9e7fadd
  3. Updated the use of Type objects. Added a simpler test.David Boddie committed 9 years agoaf6d52b
  4. Simplified the Type class. Removed padding previously introduced for writing LDT items.David Boddie committed 9 years ago5b67b84
  5. Added more notes about the test program.David Boddie committed 9 years ago6526ce1
  6. Added a method to create string representations suitable for the Dis.list method.David Boddie committed 9 years agoca2c0b6
  7. 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
  8. 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
  9. 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
  10. Fixed reading of LDT items.David Boddie committed 9 years agode9ef05
  11. Simplified link handling and annotated the test.David Boddie committed 9 years ago0cca943
  12. 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
  13. 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
  14. 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
  15. 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
  16. Added code to read additional linking information. Ensured that function signature hashes are read as unsigned integers.David Boddie committed 9 years ago48fa601
  17. 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
  18. Improved handling of data items.David Boddie committed 9 years ago0d4808d
  19. Added basic handling of all the Dis file sections.David Boddie committed 9 years agod264bdd
  20. Fixed the string representation of Instruction instances.David Boddie committed 9 years agoa07a3ba
  21. Imported initial modules for reading Dis files and disassembling instructions.David Boddie committed 9 years ago28c9792