Skip to content

Commit 2b5a2d6

Browse files
Merge pull request #2988 from khanhkhanhlele/Assembler/assembler.py
fix-typo Assembler/assembler.py
2 parents 8d5b315 + 53def6e commit 2b5a2d6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Assembler/assembler.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ def scanner(string):
745745

746746
def scan():
747747
"""
748-
scan: applys function scanner() to each line of the source code.
748+
scan: applies function scanner() to each line of the source code.
749749
"""
750750
global lines
751751
assert len(lines) > 0, "no lines"
@@ -1008,7 +1008,7 @@ def parser():
10081008
elif eax == 3:
10091009
ecx = float(input(">> "))
10101010

1011-
elif eax == 4: # output informations
1011+
elif eax == 4: # output information
10121012
print(ecx)
10131013

10141014
elif token.token == "push": # push commando
@@ -1157,7 +1157,7 @@ def parser():
11571157
pointer = jumps[token.token]
11581158

11591159
else: # error case
1160-
print("Error: Unknow subprogram!")
1160+
print("Error: Unknown subprogram!")
11611161
return
11621162

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

11711171
else: # error case
1172-
print("Error: No return adress on stack")
1172+
print("Error: No return address on stack")
11731173
return
11741174

11751175
elif token.t == "subprogram":

0 commit comments

Comments
 (0)