summaryrefslogtreecommitdiff
path: root/cpu/os.asm
diff options
context:
space:
mode:
authorAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-14 14:20:06 +0100
committerAlex AUVOLAT <alex.auvolat@ens.fr>2014-01-14 14:20:06 +0100
commitda001d3b59438bd14443fa5978ae3be7e308d348 (patch)
treef7a019d174455c75830c7aeb3b60db7628829184 /cpu/os.asm
parent2c0aa7d49f5a18d5eaad23060a4db9c364964d97 (diff)
parent930ca54aa228a340e9139def8c0e67dd5c175331 (diff)
downloadSystDigit-Projet-da001d3b59438bd14443fa5978ae3be7e308d348.tar.gz
SystDigit-Projet-da001d3b59438bd14443fa5978ae3be7e308d348.zip
Merge branch 'jonathan'
Diffstat (limited to 'cpu/os.asm')
-rw-r--r--cpu/os.asm20
1 files changed, 10 insertions, 10 deletions
diff --git a/cpu/os.asm b/cpu/os.asm
index 5a05661..72598c6 100644
--- a/cpu/os.asm
+++ b/cpu/os.asm
@@ -189,23 +189,23 @@ unit_test_1: # Unsigned multiplication
unit_test_2: # Unsigned division
li B 1
- li C 60
+ li C 61
li D 5
divu C C D
move D E
sei A C 12
and B B A
- se A D Z
+ sei A D 1
and B B A
- li C 14129
- li D 477
- divu C C D
- move D E
- sei A C 31
- and B B A
- sei A D 272
- and B B A
+ #li C 61
+ #li D 5
+ #divu C C D
+ #move D E
+ #sei A C 12
+ #and B B A
+ #sei A D 1
+ #and B B A
jr RA
unit_test_3: # Signed multiplication/division