1
0
mirror of https://github.com/rzzzwilson/pymlac.git synced 2025-06-10 09:32:41 +00:00

As copied from code.google.com/rzzzwilson.

This commit is contained in:
Ross Wilson
2015-05-20 19:02:17 +07:00
parent f95cf16fda
commit fa2c04ad95
343 changed files with 42429 additions and 0 deletions

15
idasm/disasmdata.py Executable file
View File

@@ -0,0 +1,15 @@
#!/usr/bin/env python
"""
This module disassembles one imlac machine word into a data instruction
string.
"""
def disasmdata(word):
result = ("DATA", "%06o" % word)
return result
if __name__ == "__main__":
for word in xrange(0177777):
(op, fld) = disasmdata(word)
print "%07o: %s %s" % (word, op, fld)