MCODER2 Tutoral

Anything Sinclair ZX Basic related; history, development, tips - differences between BASIC on the ZX80 and ZX81
Post Reply
swensont
Posts: 61
Joined: Tue Jan 18, 2011 4:55 am
Location: SF Bay Area

MCODER2 Tutoral

Post by swensont » Tue Dec 17, 2013 6:17 am

After tinkering around with MCODER2, I decided to write up a short tutorial on using MCODER2, It is a 7 page PDF document that goes over the steps in using MCODER2, and includes a little cheatsheet with the different USR calls for MCODER2. Now, I'm not an expert at MCODER2, but I like to document what I learn and put it in an easy to use form for the next guy to learn MCODER2. Please review it and provide any feedback.

It is available on my new web page: https://sites.google.com/site/svenqhj/
(ok, It's Google Sites. Not perfect, but it's free.)

Also available on the same page is my previous tutorial on ZX81 Assembly and an update paper on One Dimesional Cellular Automata on the ZX81.

Tim Swenson

User avatar
siggi
Posts: 883
Joined: Thu May 08, 2008 9:30 am
Location: Dauernheim, Germany
Contact:

Re: MCODER2 Tutoral

Post by siggi » Tue Dec 17, 2013 11:13 am

Hi Tim
MCODER uses 16 bit integer values. Thus the highest number that MCODER can handle is 65535.

Thus the example for "floating point numbers"

Code: Select all

Here is an example:

3.14 x 2.76 = 8.6664 314 x 276 = 86664
would lead to an overflow/error, because the result 86664 cannot be handled in 16 bit integers used by MCODER.

Siggi

PS: Did you also play around with the POKEs given in the manual to change the defaults of MCODER?
My ZX81 web-server: online since 2007
http://zx81-siggi.endoftheinternet.org/index.html

sirmorris
Posts: 2813
Joined: Thu May 08, 2008 5:45 pm

Re: MCODER2 Tutoral

Post by sirmorris » Tue Dec 17, 2013 12:42 pm

brilliant, thanks!

swensont
Posts: 61
Joined: Tue Jan 18, 2011 4:55 am
Location: SF Bay Area

Re: MCODER2 Tutoral

Post by swensont » Thu Dec 26, 2013 8:04 pm

Siggi,

Thanks for pointing out the issue with the 16-bit variables. I've edited the paper to indicate this and changed the example to one what would not go over 64K. I've also added links in the website to the source code examples in the paper.

I have not tried the different pokes to modify MCODER2, mostly because I did not find them all that interesting for my purposes.

Tim Swenson

User avatar
GCHarder
Posts: 240
Joined: Sat Dec 14, 2013 7:46 pm

Re: MCODER2 Tutoral

Post by GCHarder » Tue Jan 07, 2014 9:54 pm

I liked your paper and samples on the One Dimesional Cellular Automata on the ZX81.

Take a look at the ZX-LSYS which I just posted, you might find it interesting.

Regards;

Greg

Post Reply