summaryrefslogtreecommitdiff
path: root/cpu
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-14 18:06:43 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-14 18:06:43 +0100
commit210e9265c0827c3b6e8ad64a99c433196aeffc0e (patch)
tree73a8cd0384fce5c99af690e3ccc7439207969d77 /cpu
parent036b6ba1caae40b439670c031a162a6fde7461ec (diff)
downloadSystDigit-Projet-210e9265c0827c3b6e8ad64a99c433196aeffc0e.tar.gz
SystDigit-Projet-210e9265c0827c3b6e8ad64a99c433196aeffc0e.zip
Nothing, really.
Diffstat (limited to 'cpu')
-rw-r--r--cpu/os.asm13
1 files changed, 5 insertions, 8 deletions
diff --git a/cpu/os.asm b/cpu/os.asm
index 3fbf757..210f3a0 100644
--- a/cpu/os.asm
+++ b/cpu/os.asm
@@ -374,15 +374,12 @@ check_input:
jz A _ci_add_b_to_string
move B Z
_ci_add_b_to_string:
- push A
- li A cmdline
- li D cmdline_used
- lw C 0(D)
- add A A C
- sb B 0(A)
+ li D cmdline
+ lw C cmdline_used
+ add D D C
+ sb B 0(D)
incri C 1
- sw C 0(D)
- pop A
+ sw C cmdline_used
jz A check_input
_check_input_ret:
jr RA