[Coco] What? No MOD?!

William Astle lost at l-w.ca
Sun Dec 29 22:16:47 EST 2013


You can probably use DEFFN to simulate it. You'd need to involve the INT function and subtraction. 

-------- Original message --------
From: "Mark J. Blair" <nf6x at nf6x.net> 
Date: 12-29-2013  7:48 PM  (GMT-07:00) 
To: CoCoList Computer Enthusiasts <coco at maltedmedia.com> 
Subject: [Coco] What? No MOD?! 
 
I'm fiddling with the idea of writing a simulator for the M-209 cipher machine (a WW2 era mechanical cipher machine used by US forces; bleed-over from another one of my hobbies) in Basic and porting it to various vintage machines that I have. I was surprised to discover that Basic in the CoCo does not include a modulo arithmetic operator. I'm outraged, I tell you! :)

I might write a Model 100 series version first. The Model 100 Basic has a MOD operator for doing modulo arithmetic.

-- 
Mark J. Blair, NF6X <nf6x at nf6x.net>
http://www.nf6x.net/


--
Coco mailing list
Coco at maltedmedia.com
http://five.pairlist.net/mailman/listinfo/coco


More information about the Coco mailing list