Post Reply 
integer division
01-31-2014, 03:50 PM
Post: #4
RE: integer division
A little bit shorter:

00 { 4-Byte Prgm }
01 %CH
02 1
03 %
04 END

Example:

3
ENTER
2 E 12
R/S

x: 666,666,666,666

This might not work in all cases though, but it could help in some corner cases.
OTOH it might be easier to only use 6 digits per register.

Cheers
Thomas
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
integer division - Werner - 01-30-2014, 03:30 PM
RE: integer division - Thomas Klemm - 01-31-2014, 04:44 AM
RE: integer division - Werner - 01-31-2014, 01:46 PM
RE: integer division - Thomas Klemm - 01-31-2014 03:50 PM
RE: integer division - Werner - 01-31-2014, 06:33 PM
RE: integer division - J-F Garnier - 02-01-2014, 06:06 PM
RE: integer division - Werner - 02-02-2014, 06:08 PM



User(s) browsing this thread: 1 Guest(s)