~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to libsrc/sprites/software/sp1/spectrum/sprites/draw/SP1_DRAW_XOR1RB.asm

  • Committer: Bazaar Package Importer
  • Author(s): Luca Falavigna
  • Date: 2008-02-12 08:23:49 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080212082349-wgijt44scmgje90o
Tags: 1.7.ds1-1ubuntu1
* Merge from Debian unstable. Remaining Ubuntu changes:
  - build z88dk and z88dk-bin binary packages for lpia too
  - update Maintainer field as per spec

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
; DRAW XOR SPRITE 1 BYTE DEFINITION ROTATED, ON RIGHT BORDER
 
3
; 01.2006 aralbrec, Sprite Pack v3.0
 
4
; sinclair spectrum version
 
5
 
 
6
XLIB SP1_DRAW_XOR1RB
 
7
LIB SP1_DRAW_XOR1LB
 
8
XREF SP1RETSPRDRAW, SP1V_ROTTBL, SP1V_PIXELBUFFER
 
9
 
 
10
; following data segment copied into struct sp1_cs
 
11
 
 
12
   ld de,0
 
13
   nop
 
14
   ld hl,0
 
15
   call SP1_DRAW_XOR1RB
 
16
 
 
17
; following draw code called by way of SP1UpdateNow
 
18
;
 
19
;  a = hor rot table
 
20
; bc = graphic disp
 
21
; de = graphic def ptr
 
22
; hl = left graphic def ptr
 
23
;
 
24
; 42 + 94*4 - 6 + 10 = 422 cycles
 
25
 
 
26
.SP1_DRAW_XOR1RB
 
27
 
 
28
   cp SP1V_ROTTBL/256
 
29
   jp z, SP1RETSPRDRAW
 
30
 
 
31
   add hl,bc
 
32
   ld d,a
 
33
   inc d
 
34
 
 
35
   ;  d = shift table
 
36
   ; hl = left sprite def (graph only)
 
37
 
 
38
.SP1Xor1RBRotate
 
39
 
 
40
   jp SP1_DRAW_XOR1LB + 7