~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to libsrc/newbrain/fputs_lcd.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
; Grundy Newbrain Specific libraries
 
3
;
 
4
; Stefano Bodrato - 22/05/2007
 
5
;
 
6
;
 
7
; Print a string on LCD display
 
8
;
 
9
;
 
10
;
 
11
; $Id: fputs_lcd.asm,v 1.2 2007/06/07 08:23:09 stefano Exp $
 
12
;
 
13
 
 
14
 
 
15
        XLIB fputs_lcd
 
16
 
 
17
        LIB ZCALL
 
18
 
 
19
 
 
20
.fputs_lcd
 
21
        pop     bc
 
22
        pop     hl
 
23
        push    hl
 
24
        push    bc
 
25
 
 
26
        ld      de,77
 
27
        ld      b,15
 
28
.sloop
 
29
        ld      a,(hl)
 
30
        and     a
 
31
        ret     z
 
32
        
 
33
        ld      (de),a
 
34
        inc     hl
 
35
        dec     de
 
36
        djnz    sloop
 
37
 
 
38
        ret