This commit is contained in:
Sven Riwoldt
2023-09-13 18:40:00 +02:00
parent 938871f632
commit 4776b3eb70
3 changed files with 38 additions and 0 deletions
Binary file not shown.
+33
View File
@@ -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
View File
@@ -0,0 +1,5 @@
@0
@1
@2
@3
@4