[Coco] What? No MOD?!

Chris Osborn fozztexx at fozztexx.com
Sun Dec 29 22:49:40 EST 2013


No way to do that because you can't define a function that takes two arguments. Ran into the same thing during the two BASIC week contests on RetroBattlestations. 

> On Dec 29, 2013, at 7:16 PM, William Astle <lost at l-w.ca> wrote:
> 
> 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
> 
> --
> Coco mailing list
> Coco at maltedmedia.com
> http://five.pairlist.net/mailman/listinfo/coco



More information about the Coco mailing list