Welcome, Guest. Please login or register.


Author Topic: Zzzip Integer Compiler (Read 78426 times)

Offline endi

  • EP addict
  • *
  • Posts: 7298
  • Country: hu
  • grafikus, játékfejlesztõ, programozás, scifi, tudományok, vallás
    • Honlapom
Re: Zzzip Integer Compiler
« Reply #15 on: 2010.March.09. 17:57:03 »
Hi Peter!
I love your Zzzip compiler. I always used it to speed up my Basic games.
My best games with Zzzip:
http://www.ep128.hu/Ep_Games/Leiras/Mutant_Test.htm
http://www.ep128.hu/Ep_Games/Leiras/Mega_Pac_Man.htm
http://www.ep128.hu/Ep_Games/Leiras/Trollok_Vara.htm

And many others: Bestiak Mestere, Dwarfs Land (with my friend), Az Utolso Kaland etc. (many are lost): http://www.ep128.hu/Ep_Games/Orksoft.htm

All are hungarian but you can see the images.

Funny story: there was a game making contest that I win. The price was the Zzzip compiler, but I never get it... It is Hungary! :)
Vigyázat! Szektás vagyok! :)

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Zzzip Integer Compiler
« Reply #16 on: 2010.March.09. 18:16:19 »
Funny story: there was a game making contest that I win. The price was the Zzzip compiler, but I never get it... It is Hungary! :)
Yes, there was a contest of making basic programs suitable for Zzzip V1.1 and the winner was to be awarded with a Zzzip V2.0. :D
And Endi's winner basic program list was published in an Enterprise magazine called Enterface (the first and at the same time unfortunately the last number). This newspaper announced the contest.

I also liked using Zzzip. Now I don't really have time to use my Enterprise though I have some basic program ideas and Zzzip would make my programs usable. I don't know if I will have time to realise my programs sometime...
This is my game speeded up by Zzzip
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline peterhiner

  • Newbie
  • Posts: 16
  • Country: gb
Re: Zzzip Integer Compiler
« Reply #17 on: 2010.March.09. 20:21:23 »
I look forward to trying these Basic games speeded up by Zzzip - but as I explained before, I do not have time at the moment because I have to prepare for my holiday.  When I get back at the beginning of April, I will set up my Enterprise and try out some of the software on this site.

I assume that I can simply download software to my PC and then use the PC to write files on a floppy disk.  It worked the other way round (when I e-mailed some files to Zozo) so I suppose this should be OK.

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14722
  • Country: hu
    • http://enterprise.iko.hu/
Re: Zzzip Integer Compiler
« Reply #18 on: 2010.March.09. 21:36:55 »
By the way, I sent a long e-mail to Zozo, answering some questions about myself.  Perhaps he would like to publish it in the forum, to save me having to type it all again.
Ok, there is your e-mail:

Quote from: peterhiner
The Enterprise was my second computer.  I previously had a Compucolor, which I think I bought in about 1980.  This was an American computer with the motherboard and a floppy drive built into the same cabinet as the colour monitor.  It was one of the first colour computers - the other was the Apple.  In my opinion the Compucolor was technically better than the Apple (it certainly produced a much better picture) but it was not marketed so well.  One of the problems was that you had to buy everything (including floppy drive and monitor) at the same time, and I remember that I had to pay about £1400.  That is still a lot of money to pay for a computer today, but in those days it was an enormous amount, so of course the market was rather limited.  Eventually the company producing Compucolor went bankrupt and we had to rely on User Groups for support.  There were very active groups in USA, Canada, Australia and Great Britain.  Actually it is not such a bad thing when the company supplying your computer becomes bankrupt, as it causes the User Groups to become very strong.
 
I wrote my first Basic Compiler for the Compucolor and I sold copies of my program in all the countries where there were User Groups.  In fact I wrote two compilers.  The first one used floating point arithmetic to produce exactly the same results as a Basic program, but it only ran about 3 to 5 times as fast as Basic.  Then I realised that there was not much sense in using floating point for a compiler and I produced an Integer Compiler, which ran much faster.
 
I think I got my first Enterprise in 1984.  It was the 64K version and I got it at a special price through a friend who had contacts with the Enterprise company.  He had told them about the Basic compiler I had written for the Compucolor, and he suggested that, if they encouraged me, I would write a compiler for the Enterprise.  They already had a company under contract to produce a compiler but when I showed them an early version of mine, they cancelled the other one.  That's when they gave me my second Enterprise (128K version) as a free gift to help me with the design of my compiler.  They planned to include my compiler as part of the package that you got when you first bought an Enterprise computer, and I was just about to sign a contract with them when they went bankrupt.  Once again I found myself relying on User Groups, although in this case for quite a long time there was only one User Group - the UK group  -  but it was a good group and we had a great time.
 
I kept on with the Enterprise for several years after the PC had been launched and therefore I had a lot of surprises when eventually I got my first PC.  By that time the PC had advanced quite a lot  - it ran much faster than the Enterprise and the software packages were much bigger and more complex.  I also found that all the utility programs, that I might have produced for the PC, had already been done by somebody else  -  in fact in most cases there were already a lot of different programs available.  So I did not write any serious software for the PC  -  just a few bits in Assembly Language to prove to myself that I could do it.  Now I just use the PC as a tool.  I got interested in making and editing video films, and that is one of the major things that I do on the PC.

Quote from: peterhiner
A long e-mail from you with lots of questions, which I will try to answer.

No, I never tried writing a floating point version of Zzzip, as it would have been too slow.  I'm fairly sure that was the problem with the Aztec compiler (which got cancelled).  To include floating point arithmetic you really have to use the subroutines in the Basic ROM (otherwise you have to add an enormous package of run-time routines to every compiled program).  In the case of the Enterprise the maths routines in the Basic ROM were extremely slow.  As far as I can remember, they were actually based on BCD (Binary Coded Decimal) rather than the more usual floating point operations  - not a good idea.
 
I'm delighted that Zzzip was included with the Enterprise in Hungary (although I never got any money for it).  At least plenty of people had the opportunity to use it.
 
The main user group in the UK (IEUG) was the only one as far as I know.  You have already got all the magazines (8 issues of Private Enterprse and 1 issue of Enterprise Computing Intenational).  After 1989 the UK user group quietly died.  I think this was because the leader of the group (Tim Box who ran BoxSoft) disappeared wthout leaving information on how to contact him - I expect he changed jobs and moved to another town.  Anyway the group just fell apart.

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Zzzip Integer Compiler
« Reply #19 on: 2010.March.09. 21:45:58 »
I look forward to trying these Basic games speeded up by Zzzip - but as I explained before, I do not have time at the moment because I have to prepare for my holiday.

Have a nice holiday!
And you can take some photos in Brazil. We can convert the images into Enterprise format in good quality. It would be a great slideshow demo for the Enterprise: Peter Hiner's holiday in Brazil. :D

Quote from: peterhiner
I'm delighted that Zzzip was included with the Enterprise in Hungary (although I never got any money for it).  At least plenty of people had the opportunity to use it.
Zzzip was not included with the Enterprise. I mean, buying an Enterprise computer you didn't get Zzzip as well. I don't know how Zzzip got into Hungary. I got it from one of my acquaintances I exchanged Enterprise software with. (It was a common practice at that time. :D ) Zozosoft has the cassette of Zzzip but I don't know if it could be bought in Hungary. We found a number of Enterprise cassettes on the net we had never seen in Hungary in the shops.
« Last Edit: 2010.April.26. 18:19:32 by szipucsu »
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14722
  • Country: hu
    • http://enterprise.iko.hu/
Re: Zzzip Integer Compiler
« Reply #20 on: 2010.March.09. 22:41:49 »
Well, I don't really know what the problem is.

First of all I should say that I think all the Basic versions that come with Zipped versions must be my programs.

Secondly, I believe that I compiled these Basic programs to produce the Zipped versions.

So what is different?  Well maybe you are right, that all your hardware additions and improvements are causing Zzzip to have problems.
Now I looked around:
3 of your games released in a Boxsoft tapes:
-Pacman on the Screenplay One
-Orbs on the Screenplay Two
-Galaxians on the Screenplay Three
All contains the Baisc originals and the compiled versions.

The Orbs and Galaxians is a same version with the Hungarian Games Pack III. tape.

I can compile the Tetris, Orbs and Galaxians, no problem in any memory configuration (except on 64K is a out of memory).
Only problem with the PACMAN.BAS.  If you found it then can you send your version? I think you have a different version probably with less lines.

Offline MrPrise

  • Administrator
  • EP addict
  • *
  • Posts: 2755
  • Country: hu
    • Enterprise Forever
Greetings
« Reply #21 on: 2010.March.12. 13:04:05 »
Welcome Peter,
It is always a pleasure to greet someone amongst the members of our humble forum who did great things for our beloved machine.
I would like to say thank you for the work you did in the past.
Have a great time!




Offline peterhiner

  • Newbie
  • Posts: 16
  • Country: gb
Re: Zzzip Integer Compiler
« Reply #22 on: 2010.March.12. 22:38:35 »
I wish to thank members of the Forum for your kind messages.  I have received a great welcome and I wish I had found your site before now.

I am delighted to find people who still love the Enterprise and, when I come back from holiday (April), I look forward to making contact again.

Peter

Offline andrew

  • Newbie
  • Posts: 4
  • Country: gb
Re: Zzzip Integer Compiler
« Reply #23 on: 2010.April.26. 17:06:26 »
Hi Peter,

So what have you been up to since? That Zzzip compiler was really impressive! Have you posted the source code? I might check it out. I'm doing compilers now, amongst other things. I was hoping someone would know what happened to Tim Box. I know he did a deal to send software to Hungary, but he couldn't get any cash out. He was told there would be a Hungarian bank account with his Hungarian royalties in. I wonder if he ever got any?

Andrew

Offline peterhiner

  • Newbie
  • Posts: 16
  • Country: gb
Re: Zzzip Integer Compiler
« Reply #24 on: 2010.May.05. 17:41:11 »
Hello Everybody (including Andrew)

I am back from holiday and am back online, after a further delay due to my mother-in-law's 100th birthday (we had to organise all the celebrations and we had relatives coming from all over the world).

I have done a bit of work to answer a couple of questions that were asked before my holiday.  First of all I have found the difference between versions 1.1 and 1.2  of Zzzip.  Searching through some old discs I found a letter to Tim Box, in which I said that I had fixed a small bug.  Also on an old disc I found a little test program called TSQ.BAS (to Test Square Roots), which contained a simple loop
   100   FOR I = 16 TO 96 STEP 5
   110   PRINT INT( SQR (I) )
   120   NEXT

Both versions of Zzzip compiled this program without apparent problem, but the TSQ.ZIP output from version 1.1 produced rubbish and crashed, while TSQ.ZIP compiled by version 1.2 ran perfectly.  Now I remember that in fixing another problem I had made a careless mistake and created a problem with the SQR function - which has probably never been used in a compiled program, and therefore has probably never caused any trouble.  So I think that this little puzzle has been solved.

Secondly I remember that someone said they could not compile Tetris.  Well my computer (original Enterprise 128) compiles Tetris without any problem (I am compiling the Basic program version TET454).  I also recall that someone had a problem compiling PACMAN  -  I will try that and let you know the result.  I expect that the answer to this sort of problem will be that you have all made changes to your RAM or ROM, which causes problems for Zzzip.

I will be happy to try and answer any other questions that anyone wants to ask.

Lastly I will reply to Andrew's post  - great to hear from you again after all these years.  I have retired and (though I remember you as a young lad) I suppose you are getting on in years as well.  To answer your question about the source code for Zzzip, I sent it to Zozo and I am happy to make it freely available.  If you send me an e-mail (to peter_hiner wriggler hotmail.com) I will reply with a copy of the source code.  I lost touch with Tim Box and don't know what happened to him.  I know some people say he disappeared with a load of cash but I find that hard to believe - I always found him completely trustworthy and in any case I don't think that there was ever enough cash around to make anyone disappear !

Peter


« Last Edit: 2010.May.05. 21:10:09 by MrPrise, Reason: Edited email address »

Offline peterhiner

  • Newbie
  • Posts: 16
  • Country: gb
Re: Zzzip Integer Compiler
« Reply #25 on: 2010.May.05. 19:10:38 »

Well, I tried to compile Pacman and got the same result as other people (Too many labels), so I suppose that I must have edited the Basic program to reduce the number of lines before I compiled it all those years ago.   Unfortunately I do not seem to have kept a copy of the edited version, but I do not think it really matters - nobody needs to compile it any more.

By the way, while looking through my old discs, I found some more versions of Tetris (in my previous post I said I could compile TET454 without problem).  Anyway I found versions up to TET477 and I am not sure if that is the very latest version  -  this is the problem with going back to very old projects !  By the way, I could compile TET477 as well.

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14722
  • Country: hu
    • http://enterprise.iko.hu/
Re: Zzzip Integer Compiler
« Reply #26 on: 2010.May.05. 19:48:55 »
To answer your question about the source code for Zzzip, I sent it to Zozo and I am happy to make it freely available. 
There is the sources what you sent to me.

Offline szipucsu

  • Global Moderator
  • EP addict
  • *
  • Posts: 9898
  • Country: hu
    • Támogató Támogató
    • Webnyelv.hu - Tanuljunk nyelveket!
Re: Zzzip Integer Compiler
« Reply #27 on: 2010.May.06. 13:46:32 »
Welcome back from your holiday!

I would have an interesting question. Would it be possible to "unzzzip" a "zzzipped" program? Or would it be too difficult or impossible?

There is a program with the title Soundtracker V2.1 (Rockmonitor, it can be downloaded here), which contains some minor bugs. It was also compiled using Zzzip. To fix the bugs, the program should be "unzzzipped". I don't know if the author of the program (and the basic version) is available anywhere.
100 SOUND SOURCE 2,STYLE 128,PITCH 25.2,SYNC 1
110 SOUND PITCH 25,SYNC 1
120 ! Videos

Offline peterhiner

  • Newbie
  • Posts: 16
  • Country: gb
Re: Zzzip Integer Compiler
« Reply #28 on: 2010.July.05. 22:49:29 »

Hello szipucsu

I have just seen your question about the possibility of 'unzzzipping' a 'zzzipped' program.  The simple answer is "No".  You just have to disassemble the program into Assembly Language, make your changes and then assemble it again.  I suppose I would have some advantage, because I might recognise some of the code used for Basic commands, but it would be a very difficult task without help from the original author of the Basic program.

Peter

Offline Zozosoft

  • Global Moderator
  • EP addict
  • *
  • Posts: 14722
  • Country: hu
    • http://enterprise.iko.hu/
Re: Zzzip Integer Compiler
« Reply #29 on: 2010.July.05. 23:03:31 »
Peter maked a short video about demonstrating the Zzzip, now it is in the EP TV!
And there is the original mpg file for download.
« Last Edit: 2014.February.28. 10:17:26 by szipucsu, Reason: fixing broken link »