Andrea Gasparrini wrote:

> Hi to all you of MSX,
>
> I am Andrea and I write from Italy for a programming problem on the
> assembler language.
> With this routine that follows it is possible obtain a multicolor
> sprite, a sprite of two color:
>
> SPRITE OF TWO COLORS.
>
> Varying in the table of the attribute of the sprite the element in
> relation with the name and the color of the sprite to every video
> scansion, it is possible produce sprite that they are to all appearances
> of two color. He is suggested of following the method that follows:
> Before all determines in two modes the sprite: a definition for each
> colors.
> The definitions must reside in the retinue VIDEO RAM to the other, in
> mode that the definitions 0 and 1 determine a first multicolors sprite,
> the definitions 2 and 3 a second and like that street.
> On the routine in assembler I have noted that there is an error on the
> line:
> SPSWIT: LD HL,SATTAB
> In fact to me this routine not works me, praies you of helps it to make
> it works, with some modification.
> The routine that follows illustrious when dictates:
>
> SPSWTB: DEFS 32
> SPSWIT: LD HL,SATTAB
>                LD DE,SPSWTB
>                LD B,32
> SPSWLP: CALL 004AH
>                 CP 0D0H
>                 RET Z
>                 INC HL
>                 INC HL
>                 CALL 004AH
>                 XOR 1
>                 LD C,A
>                 CALL 004DH
>                 INC HL
>                 LD A,(DE)
>                 AND A
>                 RR C
>                 JR C,SKP
>                 SLA A
>                 SLA A
>                 SLA A
>                 SLA A
> SKP:        AND 15
>                 LD C,A
>                 CALL 004AH
>                 AND 80H
>                 OR C
>                 CALL 004DH
>                 INC HL
>                 INC DE
>                 DJNZ SPSWLP
>                 RET
>
> Sent soon yours good news
> Answering to the address: [EMAIL PROTECTED]
>
> Goodbye to all you.
>
> Andrea Gasparrini from Italy.


--
For info, see http://www.stack.nl/~wynke/MSX/listinfo.html

Reply via email to