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:
15
idasm/disasmdata.py
Executable file
15
idasm/disasmdata.py
Executable 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)
|
||||
Reference in New Issue
Block a user