~z88dk-team/z88dk-pkg/trunk

« back to all changes in this revision

Viewing changes to libsrc/zx81/zx_basic_length.asm

  • Committer: Bazaar Package Importer
  • Author(s): Krystian Wlosek, Krystian Wlosek
  • Date: 2008-03-25 11:46:11 UTC
  • mfrom: (1.1.2 upstream) (3.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080325114611-u89smn2ccknl8avt
Tags: 1.8.ds1-2
[ Krystian Wlosek ]
* Enable 64bit architecture.
* Added '-m32' switch to CFLAGS and LDFLAGS for 64bit machines.
* Changed Architecture: to `any' in z88dk and z88dk-bin package.
* Added gcc-multilib to Build-Depends: for 64bit
* Fixed problem with x11.lib
  - created symlink from include/x11 to include/X11
  - improved Makefile for x11.lib
    patch debian/patches/03_libsrc_graphics_x11_Makefile.diff
* Fixed library ozansi.lib
  - patch debian/patches/03_libsrc_oz_ozinput_Makefile.diff
* Changed Copyright notice.
* Fixed gcc warnings:
  - in src/appmake dir - debian/patches/04_src_appmake.diff
  - in src/zcc/zcc.c - debian/patches/04_src_zcc_zcc.c.diff

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
;
 
2
;       ZX 81 specific routines
 
3
;       by Stefano Bodrato, Oct 2007
 
4
;
 
5
;       This routine gives the length of the current BASIC program.
 
6
;       Memory used by variables is not included.
 
7
;
 
8
;       $Id: zx_basic_length.asm,v 1.1 2007/10/22 17:06:13 stefano Exp $
 
9
;
 
10
 
 
11
        XLIB    zx_basic_length
 
12
        
 
13
zx_basic_length:
 
14
 
 
15
        ld      de,$407D        ; location of BASIC program (just after system variables)
 
16
        ld      hl,($400C)      ; Display file is end of program
 
17
        sbc     hl,de
 
18
        ret