EmbeddedRelated.com
Forums

ideas for a BASIC compiler

Started by Frank Buss June 1, 2008
In message <f1a51$48513367$54f63171$15484@publishnet.news-service.com>, 
Stef <stef33d@yahooI-N-V-A-L-I-D.com.invalid> writes
>In comp.arch.embedded, >AZ Nomad <aznomad.3@PremoveOBthisOX.COM> wrote: >> On Thu, 12 Jun 2008 08:23:40 +0100, Chris H <chris@phaedsys.org> wrote: >>>In message <slrng50pf2.ef9.aznomad.3@ip70-176-155-130.ph.ph.cox.net>, AZ >>>Nomad <aznomad.3@PremoveOBthisOX.COM> writes >>>>You still run an 8 bit micro on your desktop? >>>>News of the technology of target compilation never made it to the locale >>>>of yoru cave? >> >> >>>Several 8 bit systems. Also my PC has several 8 bit systems in it.... >>>added to which there are more embedded systems around the world than >>>PC's by several orders of magnitude and about 30% of them are 8 bit >>>systems >> >> Wow! You must the last person on earth using an 8 bit system for >> their desktop. > ><snip, some un-called for language> > >Please re-read Chris's reply, especially the words "in it". Hint: >there's more than one processor in your PC.
At least one in each drive (floppy, hard disk, CD-Rom,) one in the keyboard, one in the mouse, one in the graphics card, probably one handling the networking, one in the monitor.... Not to mention the one in my main desk top machine.. a Sinclar Spectrum :-) -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
On 2008-06-12, Chris H <chris@phaedsys.org> wrote:
> > At least one in each drive (floppy, hard disk, CD-Rom,) one in the > keyboard, one in the mouse, one in the graphics card, probably one > handling the networking, one in the monitor.... > > Not to mention the one in my main desk top machine.. a Sinclar Spectrum
I know a couple of people still using Z80 based systems, namely Amstrad PCWs. They may be getting long in the tooth but if all you want to do is write it's amazing how much more productive you are when you take away considerations such as "What font do I want that in?" Actually I quite want one myself (primarily for use as a dumb terminal) but I'm waiting to find a good 8512. -- Andrew Smallshaw andrews@sdf.lonestar.org
In comp.arch.embedded,
Chris H <chris@phaedsys.org> wrote:
> > Not to mention the one in my main desk top machine.. a Sinclar Spectrum >:-)
A Spectrum is no good for office use! We all know the Commodore 64 is much better. ;-) -- Stef (remove caps, dashes and .invalid from e-mail address to reply by mail)
In message <1a17a$4851842c$54f63171$18414@publishnet.news-service.com>, 
Stef <stef33d@yahooI-N-V-A-L-I-D.com.invalid> writes
>In comp.arch.embedded, >Chris H <chris@phaedsys.org> wrote: >> >> Not to mention the one in my main desk top machine.. a Sinclar Spectrum >>:-) > >A Spectrum is no good for office use! We all know the Commodore 64 is >much better. ;-)
:-))))) -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Chris H wrote:

> In message <f1a51$48513367$54f63171$15484@publishnet.news-service.com>, > Stef <stef33d@yahooI-N-V-A-L-I-D.com.invalid> writes >> In comp.arch.embedded, >> AZ Nomad <aznomad.3@PremoveOBthisOX.COM> wrote: >>> On Thu, 12 Jun 2008 08:23:40 +0100, Chris H <chris@phaedsys.org> wrote: >>>> Nomad <aznomad.3@PremoveOBthisOX.COM> writes
>>>>> You still run an 8 bit micro on your desktop?
>>>> Several 8 bit systems. Also my PC has several 8 bit systems in it....
>>> Wow! You must the last person on earth using an 8 bit system for >>> their desktop. >> >> Please re-read Chris's reply, especially the words "in it". Hint: >> there's more than one processor in your PC. > > At least one in each drive (floppy, hard disk, CD-Rom,) one in the > keyboard, one in the mouse, one in the graphics card, probably one > handling the networking, one in the monitor....
The 8-bitters are probably in the keyboard and mouse only. Other abovementioned stuff is ether brainless or uses stronger CPUs. Ah, one more 8-bitter: the 8042 embedded in the chipset.
> Not to mention the one in my main desk top machine.. a Sinclar Spectrum :-)
BTW the 16K ROM BASIC of the original Sinclair Spectrum-48 is a real masterpiece of the assembly programming. One can see the style of the true artist. The TRDOS and BASIC-128k are just crap compared to that. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
Stef wrote:
> In comp.arch.embedded, > Chris H <chris@phaedsys.org> wrote: >> Not to mention the one in my main desk top machine.. a Sinclar Spectrum >> :-) > > A Spectrum is no good for office use! We all know the Commodore 64 is > much better. ;-) >
I used to have a C compiler for my Spectrum made by Hitec - is that the same people that make modern embedded C compilers? (I also had Forth, APL, and the amazingly slow "Snail Logo" for my speccy.)
Vladimir Vassilevsky wrote:
> > > Chris H wrote: > >> In message >> <f1a51$48513367$54f63171$15484@publishnet.news-service.com>, Stef >> <stef33d@yahooI-N-V-A-L-I-D.com.invalid> writes >>> In comp.arch.embedded, >>> AZ Nomad <aznomad.3@PremoveOBthisOX.COM> wrote: >>>> On Thu, 12 Jun 2008 08:23:40 +0100, Chris H <chris@phaedsys.org> wrote: >>>>> Nomad <aznomad.3@PremoveOBthisOX.COM> writes > >>>>>> You still run an 8 bit micro on your desktop? > >>>>> Several 8 bit systems. Also my PC has several 8 bit systems in it.... > >>>> Wow! You must the last person on earth using an 8 bit system for >>>> their desktop. >>> >>> Please re-read Chris's reply, especially the words "in it". Hint: >>> there's more than one processor in your PC. >> >> At least one in each drive (floppy, hard disk, CD-Rom,) one in the >> keyboard, one in the mouse, one in the graphics card, probably one >> handling the networking, one in the monitor.... > > The 8-bitters are probably in the keyboard and mouse only. Other > abovementioned stuff is ether brainless or uses stronger CPUs. > Ah, one more 8-bitter: the 8042 embedded in the chipset. > >> Not to mention the one in my main desk top machine.. a Sinclar >> Spectrum :-) > > BTW the 16K ROM BASIC of the original Sinclair Spectrum-48 is a real > masterpiece of the assembly programming. One can see the style of the > true artist. The TRDOS and BASIC-128k are just crap compared to that. >
The Basic ROM of the Spectrum is impressive (I've got the book "the Complete Spectrum Rom Disassembly" somewhere). But it's not nearly as impressive as the ROMs on Acorn's BBC Micros. They have got things like multiplication tables overlapping with character code tables or even executable code to squeeze out a few extra bytes. It also had an operating system that was *way* ahead of anything else in the small microcomputer market in terms of its flexibility and expandability (the first versions had only tape recorders for storage - yet the system was designed for plug-in enhancements with disk and network file systems).
In message <zSg4k.8025$xZ.5611@nlpi070.nbdc.sbc.com>, Vladimir 
Vassilevsky <antispam_bogus@hotmail.com> writes
> > >Chris H wrote: > >> In message >><f1a51$48513367$54f63171$15484@publishnet.news-service.com>, Stef >><stef33d@yahooI-N-V-A-L-I-D.com.invalid> writes >>> In comp.arch.embedded, >>> AZ Nomad <aznomad.3@PremoveOBthisOX.COM> wrote: >>>> On Thu, 12 Jun 2008 08:23:40 +0100, Chris H <chris@phaedsys.org> wrote: >>>>> Nomad <aznomad.3@PremoveOBthisOX.COM> writes > >>>>>> You still run an 8 bit micro on your desktop? > >>>>> Several 8 bit systems. Also my PC has several 8 bit systems in it.... > >>>> Wow! You must the last person on earth using an 8 bit system for >>>> their desktop. >>> >>> Please re-read Chris's reply, especially the words "in it". Hint: >>> there's more than one processor in your PC. >> At least one in each drive (floppy, hard disk, CD-Rom,) one in the >>keyboard, one in the mouse, one in the graphics card, probably one >>handling the networking, one in the monitor.... > >The 8-bitters are probably in the keyboard and mouse only. Other >abovementioned stuff is ether brainless or uses stronger CPUs. >Ah, one more 8-bitter: the 8042 embedded in the chipset.
But all embedded systems.
> >> Not to mention the one in my main desk top machine.. a Sinclar Spectrum :-) > >BTW the 16K ROM BASIC of the original Sinclair Spectrum-48 is a real >masterpiece of the assembly programming. One can see the style of the >true artist.
Completely agree... I had a modified ROM on my Spectrum -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/

Chris H wrote:

> In message <zSg4k.8025$xZ.5611@nlpi070.nbdc.sbc.com>, Vladimir > Vassilevsky <antispam_bogus@hotmail.com> writes > >> BTW the 16K ROM BASIC of the original Sinclair Spectrum-48 is a real >> masterpiece of the assembly programming. One can see the style of the >> true artist. > > > Completely agree...
Mostly I was impressed with the subroutine which reads the data from the tape recorder. The ancient programmers did a beautiful work.
> I had a modified ROM on my Spectrum
Some softwares used to XOR their code with ROM when loading for the obscurity and the copy protection reasons. So any modification to the standard (c)1982 ROM was a potential compatibility problem. Vladimir Vassilevsky DSP and Mixed Signal Design Consultant http://www.abvolt.com
In message <odx4k.8126$xZ.3378@nlpi070.nbdc.sbc.com>, Vladimir 
Vassilevsky <antispam_bogus@hotmail.com> writes
> > >Chris H wrote: > >> In message <zSg4k.8025$xZ.5611@nlpi070.nbdc.sbc.com>, Vladimir >>Vassilevsky <antispam_bogus@hotmail.com> writes >> >>> BTW the 16K ROM BASIC of the original Sinclair Spectrum-48 is a real >>>masterpiece of the assembly programming. One can see the style of the >>>true artist. >> Completely agree... > >Mostly I was impressed with the subroutine which reads the data from >the tape recorder. The ancient programmers did a beautiful work. > >> I had a modified ROM on my Spectrum > >Some softwares used to XOR their code with ROM when loading for the >obscurity and the copy protection reasons. So any modification to the >standard (c)1982 ROM was a potential compatibility problem.
I had the standard ROM, a modified ROM and a bank of RAM all switchable -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/