Package: z80asm
Version: 1.6-1
Severity: normal

Hi

It looks like z80asm doesn't handle labels in constant expressions
correctly when a label in the expression appears after the expression.

See the attached test case:

First three expressions are calculated correctly, while z80asm ignores
the value of "label2" in the fourth expression.

Thanks
Tomaž

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (600, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages z80asm depends on:
ii  libc6                         2.7-13     GNU C Library: Shared libraries

z80asm recommends no packages.

Versions of packages z80asm suggests:
pn  openmsx                       <none>     (no description available)

-- no debconf information
        org 0x0100

const:  equ     1

label1:

        ld hl,label1+1          ; correct (0x0101)
        ld hl,label1+const      ; correct (0x0101)      

        ld hl,label2+1          ; correct (0x010d)
        ld hl,label2+const      ; wrong   (0x0001)

label2:

Reply via email to