Skip to content

Commit

Permalink
Fix backspace bug by not storing TOIN in memory. Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
aw committed Jan 9, 2023
1 parent a7d7e99 commit d1ca95b
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/09-interpreter.s
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,6 @@ process_backspace:
# erase a character from the terminal input buffer (TIB) if there is one
beq a1, t2, interpreter # return to interpreter if TOIN == TIB
addi a1, a1, -1 # decrement TOIN by 1 to erase a character
sw a1, 0(t3) # store new TOIN value in memory

j interpreter # return to the interpreter after erasing the character

Expand Down

0 comments on commit d1ca95b

Please sign in to comment.