sprite output 4x1

ZXNet echo conference «code.zx»

From Aleksandr Majorov To Dmitry Vasilko 17 July 2001

Hello Dmitry! 17 Jul 01 04:09, Dmitry Vasilko -> All: DV> Tell me, All, is it possible to optimize this subject, or this DV> optimal option: Any program has at least one extra byte and clock cycle ;) Here's what I came up with right away: LD (SP_SAVE+1),SP LD SP,#4004 LD HL,#0104 REP 7 LD DE,#xxxx : PUSH DE LD DE,#yyyy : PUSH DE ADD HL,SP LDSP,HL EREPT LD DE,#xxxx : PUSH DE LD DE,#yyyy : PUSH DE SP_SAVE LD SP,0 Shrinked a byte and reduced clock cycles by 10 + They also speeded it up by about 77 cycles. Alexand

From Aleksandr Majorov To Dmitry Vasilko 19 July 2001

Hello Dmitry! 18 Jul 01 11:58, Dmitry Vasilko -> Aleksandr Majorov: [skipped] AM>> LD HL,#0104 DV> ^^^^^^^^^^^^ DV> Why do you ask HL only once? Hmm.. Hmm... I was slowing down as much as possible ;-)))) Okay, then let's do it like this: REP 8 LD SP,#zzzz LD DE,#xxxx : PUSH DE LD DE,#yyyy : PUSH DE EREPT [skipped] DV> So about 77 bars are missing ;) Are you satisfied now? ;) Alexand

From Vladimir Baiborodin To Dmitry Vasilko 19 July 2001

Greetings, Dmitry One day on Wednesday July 18, 2001 11:58:07 two guys Dmitry Vasilko and Aleksandr Majorov gathered for a consultation. The reason for this was the theme [4x1 sprite output] I decided to add a couple of lines: DV>>> Tell me, All, is it possible to optimize this subject DV>>> or DV>>> this DV>>> optimal option: ORG #6000 LD (SP_SAVE+1),SP LD SP,#4004 LD DE,#0104 DUP 7 LD HL,XXXX PUSH HL LD HL,YYYY PUSH HL LD H,D LD L,E ADD HL,SP LDSP,HL EDUP LD HL,XXXX PUSH HL LD HL,YYYY PUSH HL SP_SAVE LD SP,0 RET XXXX EQU #3030 YYYY EQU #4040 Now it’s 7 bytes less and 14 clock cycles faster than yours. Well, Dmitry, come on.

From Kirill Frolov To Aleksandr Majorov 20 July 2001

Press RESET immediately, Aleksandr! 19 Jul 01 13:56, Aleksandr Majorov wrote to Aleksey Malov: AM>>> Any program has at least one extra byte and clock cycle ;) AM>> Not any. AM> _Any_... more than 2-3 kilos... verified ;) How do you like 2-3 kilograms of this: ld hl, xxxx push hl ld hl, xxxx push hl ... ld hl, xxxx push hl ld hl, xxxx push hl It seems so fashionable now to copy all sorts of pictures onto the screen.