Re: [M100] Smallc tech note

2017-03-23 Thread Willard Goosey
it doeesn't find some weird way to screw with me there.I have to say, abandoning the standard library is a very liberating experience :-) Willard Sent from Samsung tablet Original message From "John R. Hogerhuis" Date: 03/23/2017 12:02 PM (GMT-07:00) To

Re: [M100] Smallc tech note

2017-03-23 Thread John R. Hogerhuis
On Thu, Mar 23, 2017 at 1:55 AM, Willard Goosey wrote: > > And I really really hoped that the system variables would be as easily > used. Unfortunately it's not to be. A reference to extern char *CRSX > (x=CRSX) generates "lhld CRSX \n mov a,m" when what I need is "lxi h, > CRSX\n mov a,m" . I am

Re: [M100] Smallc tech note

2017-03-23 Thread John R. Hogerhuis
On Thu, Mar 23, 2017 at 1:55 AM, Willard Goosey wrote: > G!!! > > Ok, so. My m100.def has, for SmallC purposes, 3 classes of equates. ROM > function that don't require arguments or return values, ROM functions that > do require args or return values, and system variables. > > Because I u

Re: [M100] Smallc tech note

2017-03-23 Thread Willard Goosey
G!!! Ok, so. My m100.def has, for SmallC purposes,  3 classes of equates. ROM function that don't require arguments or return values, ROM functions that do require args or return values, and system variables. Because I use sed to translate the ASM/ZMAC original equates into ASX syntax

Re: [M100] Smallc tech note

2017-03-22 Thread Daryl Tester
On Wed, 22 Mar 2017 18:39:35 -0600, Willard Goosey wrote: Hope you find your book! Amazon only wants $100 for a used copy Yeah, I noticed that. Alas, I had to replace my copy of Loeliger's Threaded Interpretive Languages when I couldn't find my original copy several years ago, so I suspec

Re: [M100] Smallc tech note

2017-03-22 Thread Willard Goosey
y wants $100 for a used copy Willard Sent from Samsung tablet Original message From Daryl Tester Date: 03/22/2017 3:57 PM (GMT-07:00) To m100@lists.bitchin100.com Subject Re: [M100] Smallc tech note On Wed, 22 Mar 2017 02:46:34 -0600, Willard Goosey wrote: > Fun

Re: [M100] Smallc tech note

2017-03-22 Thread Daryl Tester
On Wed, 22 Mar 2017 02:46:34 -0600, Willard Goosey wrote: Function arguments are pushed left to right This is backwards from normal C compiling.  Ahh, so this is one of those compilers from my youth that did that. I don't remember it being mandated in the C language (at the time anyway), s

[M100] Smallc tech note

2017-03-22 Thread Willard Goosey
Function arguments are pushed left to right This is backwards from normal C compiling.  This would make varargs-type functions very hard except that the number of arguments is passed in A. By this particular Small C anyway.  Willard Sent from Samsung tablet