~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to libsrc/spectrum/tape_load_block_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
;
 
2
;      Tape load routine
 
3
;
 
4
;      djm 16/10/2001
 
5
;
 
6
;      int __CALLEE__ tape_load_block_callee(void *addr, size_t len, unsigned char type)
 
7
;
 
8
 
 
9
XLIB tape_load_block_callee
 
10
XDEF ASMDISP_TAPE_LOAD_BLOCK_CALLEE
 
11
XREF call_rom3
 
12
 
 
13
.tape_load_block_callee
 
14
 
 
15
        pop hl
 
16
        pop bc
 
17
        ld a,c
 
18
        pop de
 
19
        pop ix
 
20
        push hl
 
21
 
 
22
.asmentry
 
23
 
 
24
; enter : ix = addr
 
25
;         de = len
 
26
;          a = type
 
27
 
 
28
        scf
 
29
        call    call_rom3
 
30
        defw    1366            ;call ROM3 load routine
 
31
        ld      hl,-1
 
32
        ret     nc              ;error
 
33
        inc     hl              ;okay
 
34
        ret
 
35
 
 
36
DEFC ASMDISP_TAPE_LOAD_BLOCK_CALLEE = asmentry - tape_load_block_callee