summaryrefslogtreecommitdiff
path: root/cpu/os.asm
diff options
context:
space:
mode:
authorJonathan <jonathan@jonathan-VirtualBox.(none)>2014-01-11 19:24:02 +0100
committerJonathan <jonathan@jonathan-VirtualBox.(none)>2014-01-11 19:24:02 +0100
commitd042116b7e74c919a3b8a378a9a5a9961219bc54 (patch)
tree05cedf9971626ef21326c56cd3c095b01aa7b653 /cpu/os.asm
parentd37da063be3a5140531ea6183223410e5e3aad18 (diff)
downloadSystDigit-Projet-d042116b7e74c919a3b8a378a9a5a9961219bc54.tar.gz
SystDigit-Projet-d042116b7e74c919a3b8a378a9a5a9961219bc54.zip
division with a strange bug in the remainder
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 1617d6b..58fa83b 100644
--- a/cpu/os.asm
+++ b/cpu/os.asm
@@ -184,23 +184,23 @@ unit_test_1: # Unsigned multiplication
unit_test_2: # Unsigned division
li B 1
- li C 60
+ li C 64
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 4
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