summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-11-03 21:37:38 -0700
committerMike Pavone <pavone@retrodev.com>2012-11-03 21:37:38 -0700
commit81558a718ba0e10a14c5a76fe64abd8e19a3a21c (patch)
treeb821687719f222d04f1a7423f657b87bd41c2838
parent7c49618ca54c5178f7a3f5db21eaff3bf16e58b7 (diff)
Make sure all operations are long-word length on fib example.
-rw-r--r--fib.s686
1 files changed, 3 insertions, 3 deletions
diff --git a/fib.s68 b/fib.s68
index 1fa08d4..2b91a6c 100644
--- a/fib.s68
+++ b/fib.s68
@@ -3,15 +3,15 @@
bsr fib
illegal
fib:
- cmp #2, d0
+ cmp.l #2, d0
blt base
- subq #1, d0
+ subq.l #1, d0
move.l d0, -(a7)
bsr fib
move.l (a7), d1
exg d0, d1
move.l d1, (a7)
- subq #1, d0
+ subq.l #1, d0
bsr fib
move.l (a7)+, d1
add.l d1, d0