5th11 - a quick made demo

Want to discuss about Demos on the Oric, here you are !
User avatar
iss
Wing Commander
Posts: 1641
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

5th11 - a quick made demo

Post by iss »

Hello all!

This is a small simple demo devoted to yesterday: The Fifth of November ;).
v-2.png
TAP and DSK attached, enjoy!
Attachments
5th11.zip
(63.45 KiB) Downloaded 322 times
User avatar
Symoon
Archivist
Posts: 2307
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: 5th11 - a quick made demo

Post by Symoon »

Hi ISS, what's nice with the demo is that it gives the impression that there are many Hires screens, but there are only really 3 different ones, right? (hence the possible TAP version)
User avatar
rax
Flying Officer
Posts: 193
Joined: Tue Jul 24, 2018 3:16 pm

Re: 5th11 - a quick made demo

Post by rax »

Great demo, ISS. Symoon I think the screens are more than 3.
User avatar
iss
Wing Commander
Posts: 1641
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: 5th11 - a quick made demo

Post by iss »

Thanks for the feedback!
And @Symoon, you spotted (again!) the most important detail of this demo - the used compression, anything else is already seen.
The demo has actually 6 "full-sized" pictures which are compressed with LZ4 and the result sizes are "dramatic" :).
Attached you can find original PNG's converted to RAW's 240x200 (i.e. 8000 bytes), LZ4's are the compressed binaries which were linked into main program. Runtime the images are unpacked directly to HIRES memory.
Although the pictures are not very complex the compression ration is good and the 6502 unpacker is fast!
For who is interested original packer/unpacker sources can be found here: https://github.com/fadden/fhpack
I've modified them quickly to make them Oric compatible. There is some more work like optimization and clean-up...
Attachments
5th11-pics.zip
(91.04 KiB) Downloaded 300 times
User avatar
Symoon
Archivist
Posts: 2307
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: 5th11 - a quick made demo

Post by Symoon »

Very interesting ^^
How big is the decoding loop? (you know why I'm asking :p)

I actually thought there were only 3 "black and white" pictures but one some of them you changed the colour attributes ;)
User avatar
iss
Wing Commander
Posts: 1641
Joined: Sat Apr 03, 2010 5:43 pm
Location: Bulgaria
Contact:

Re: 5th11 - a quick made demo

Post by iss »

Symoon wrote: Wed Nov 06, 2019 11:22 pmHow big is the decoding loop? (you know why I'm asking :p)
The whole decoding is 198 bytes, but 4 bytes are local variables and there are some check which can be easily removed...
User avatar
Symoon
Archivist
Posts: 2307
Joined: Sat Jan 14, 2006 12:44 am
Location: Paris, France

Re: 5th11 - a quick made demo

Post by Symoon »

iss wrote: Wed Nov 06, 2019 11:54 pm
Symoon wrote: Wed Nov 06, 2019 11:22 pmHow big is the decoding loop? (you know why I'm asking :p)
The whole decoding is 198 bytes, but 4 bytes are local variables and there are some check which can be easily removed...
Thanks.
Ah, that seems too big to match the 40 bytes-long challenge, unless with luck the 150 remaining bytes can be executed only once (hard to belive!).

But very interesting anyway!
User avatar
coco.oric
Squad Leader
Posts: 720
Joined: Tue Aug 11, 2009 9:50 am
Location: North of France
Contact:

Re: 5th11 - a quick made demo

Post by coco.oric »

My comment is common ; Great demo.

However, some improvements for next demos with music, scrolling ... why decoding pic is cutting scrolling ? is it possible to keep the scrolling during the lz4 operations ?
coco.oric as DidierV, CEO Member
Historic owner of Oric, Apple II, Atari ST, Amiga
Post Reply