Skip to content

evaluation of negative values #3

@ruyrybeyro

Description

@ruyrybeyro

Hi,

Assembling the following code

ld de,-1+1

The result is ld de,-2 and not ld de,0

; z80dasm 1.1.6
; command line: z80dasm b

org	00100h

ld de,0fffeh

Or maybe operator priority, the line bellow works as expected

ld de,(-1)+1

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions