Asm 06
This commit is contained in:
BIN
projects/05/project5.zip
Normal file
BIN
projects/05/project5.zip
Normal file
Binary file not shown.
@@ -0,0 +1,33 @@
|
|||||||
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
class Assembler:
|
||||||
|
def __init__(self):
|
||||||
|
pass
|
||||||
|
|
||||||
|
'''
|
||||||
|
Statische Methoden zeichnen sich dadurch aus, dass ihnen kein Parameter übergeben,
|
||||||
|
der irgendeinen Bezug zur Klasse oder Methode hat – einer statischen Methode wird
|
||||||
|
also weder cls noch self übergeben.
|
||||||
|
'''
|
||||||
|
#@staticmethod
|
||||||
|
#def getfile(file):
|
||||||
|
|
||||||
|
def assemblefile(self, file):
|
||||||
|
pass
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
|
||||||
|
inputfile = sys.argv[1]
|
||||||
|
hackasm = Assembler()
|
||||||
|
hackasm.assemblefile(inputfile)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
5
projects/06/Asm/Testfile.asm
Normal file
5
projects/06/Asm/Testfile.asm
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
@0
|
||||||
|
@1
|
||||||
|
@2
|
||||||
|
@3
|
||||||
|
@4
|
||||||
Reference in New Issue
Block a user