~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to libsrc/sprites/software/sp1/spectrum/tiles/sp1_PrintAt_callee.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
; void __CALLEE__ sp1_PrintAt_callee(uchar row, uchar col, uchar colour, uint tile)
 
2
; 03.2006 aralbrec, Sprite Pack v3.0
 
3
; sinclair spectrum version
 
4
 
 
5
XLIB sp1_PrintAt_callee
 
6
XDEF ASMDISP_SP1_PRINTAT_CALLEE
 
7
 
 
8
LIB sp1_GetUpdateStruct_callee
 
9
XREF ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
 
10
 
 
11
.sp1_PrintAt_callee
 
12
 
 
13
   pop af
 
14
   pop bc
 
15
   pop hl
 
16
   pop de
 
17
   ld d,l
 
18
   pop hl
 
19
   push af
 
20
   ld a,d
 
21
   ld d,l
 
22
 
 
23
.asmentry
 
24
 
 
25
; Print tile and colour to given coordinate.
 
26
;
 
27
; enter :  d = row coord
 
28
;          e = col coord
 
29
;         bc = tile code
 
30
;          a = attr
 
31
; uses  : af, de, hl, af'
 
32
 
 
33
.SP1PrintAt
 
34
 
 
35
   ex af,af
 
36
   call sp1_GetUpdateStruct_callee + ASMDISP_SP1_GETUPDATESTRUCT_CALLEE
 
37
   ex af,af
 
38
   inc hl
 
39
   ld (hl),a
 
40
   inc hl
 
41
   ld (hl),c
 
42
   inc hl
 
43
   ld (hl),b
 
44
   ret
 
45
 
 
46
DEFC ASMDISP_SP1_PRINTAT_CALLEE = asmentry - sp1_PrintAt_callee
 
47