~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to libsrc/input/spectrum/in_MouseSim.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 in_MouseSim(struct in_UDM *u, uchar *buttons, uint *xcoord, uint *ycoord)
 
2
; CALLER linkage for function pointers
 
3
 
 
4
XLIB in_MouseSim
 
5
LIB INMouseSim
 
6
 
 
7
.in_MouseSim
 
8
 
 
9
   ld hl,8
 
10
   add hl,sp
 
11
   ld a,(hl)
 
12
   inc hl
 
13
   ld h,(hl)
 
14
   ld l,a
 
15
   
 
16
   call INMouseSim
 
17
   
 
18
   pop de
 
19
   pop hl
 
20
   ld (hl),a
 
21
   inc hl
 
22
   xor a
 
23
   ld (hl),a
 
24
   pop hl
 
25
   ld (hl),b
 
26
   inc hl
 
27
   ld (hl),a
 
28
   pop hl
 
29
   ld (hl),c
 
30
 
 
31
   push hl
 
32
   push hl
 
33
   push hl
 
34
   ex de,hl
 
35
   jp (hl)