Skip to content

Commit

Permalink
Division and modulo on 1-digit numbers. Doesn't do itoa or output, as…
Browse files Browse the repository at this point in the history
… the debugger allows you to inspect memory.
  • Loading branch information
akm committed Mar 17, 2007
1 parent 802b320 commit 7b507d7
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions resources/divmod.snusp
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
ATOI
/==!/@@@-@-----#
| | # Divide by zero is bad.
$,@/>,@/?!/==============\
/>=?\=<\ |
\+<-/!\| |
/?\<<==/! | /<#
\-/!>+>>/?=/!=<\ /\
- + ?-
< < \/
? < !
\->>>>+/ > /<<<-\
\>!/?\==@/=@\<@\>>>?/<<<<#
\-/ | |
#<<</?>>>=\!/!=/
- +
\<=<=</


Memory:
dividnd divisor dvsr2 quot rem

0 comments on commit 7b507d7

Please sign in to comment.