Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions Assembler/assembler.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ def scanner(string):

def scan():
"""
scan: applys function scanner() to each line of the source code.
scan: applies function scanner() to each line of the source code.
"""
global lines
assert len(lines) > 0, "no lines"
Expand Down Expand Up @@ -1008,7 +1008,7 @@ def parser():
elif eax == 3:
ecx = float(input(">> "))

elif eax == 4: # output informations
elif eax == 4: # output information
print(ecx)

elif token.token == "push": # push commando
Expand Down Expand Up @@ -1157,7 +1157,7 @@ def parser():
pointer = jumps[token.token]

else: # error case
print("Error: Unknow subprogram!")
print("Error: Unknown subprogram!")
return

else: # error case
Expand All @@ -1169,7 +1169,7 @@ def parser():
pointer = returnStack.pop()

else: # error case
print("Error: No return adress on stack")
print("Error: No return address on stack")
return

elif token.t == "subprogram":
Expand Down