mirror of
https://github.com/rzzzwilson/pymlac.git
synced 2025-06-10 09:32:41 +00:00
17 lines
357 B
Python
Executable File
17 lines
357 B
Python
Executable File
#!/usr/bin/env python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""
|
|
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)
|