plan9-archive
/
dis-python
Code
Issues
Pull Requests
Antique
Wiki
Insights
/
Code
History
Commits on
master
to
opcodes.py
7
DB
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 ago
3740cbe
DB
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 ago
a8c27d9
DB
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 ago
de15c5f
DB
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 ago
9bbb059
DB
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 ago
b262216
DB
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 ago
b833c11
DB
Imported initial modules for reading Dis files and disassembling instructions.
David Boddie committed 9 years ago
28c9792