[Coco] What? No MOD?!
Gene Heskett
gheskett at wdtv.com
Sun Dec 29 22:33:44 EST 2013
On Sunday 29 December 2013 22:30:07 Bruce W. Calkins did opine:
> ----- Original Message -----
> From: "Mark J. Blair"
>
> > On Dec 29, 2013, at 18:57 , Arthur Flexser <flexser at fiu.edu> wrote:
> >> Considering that CoCo Basic lacks integer variables altogether, the
> >> lack of a MOD function doesn't seem all that astonishing...
> >
> > doh
>
> ======================
>
> So, what will it take to write such a routine?
> Spoken in ignorance as I need to look up just what that function is.
> Bruce W. - KV4OE
>
A MOD is a continuous subtraction of the MOD value from the unknown until
the carry flag comes up indicating a borrow, then you add the MOD value
back to clear the carry, leaving the answer, IOW, 13 MOD 4=1, etc etc.
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco
Cheers, Gene
--
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
Genes Web page <http://geneslinuxbox.net:6309/gene>
Marriage is the triumph of imagination over intelligence. Second marriage
is
the triumph of hope over experience.
A pen in the hand of this president is far more
dangerous than 200 million guns in the hands of
law-abiding citizens.
More information about the Coco
mailing list