Skip to content

Expressions should be evaluated as 64-bit integer #53

@srtlg

Description

@srtlg

For compatibility with AVRASM2 all expressions should be 64 bit internally, so that the following is equal

.device atmega168
.equ F_CPU = 16000000
.macro delay1
        .set cycles = @0 * (F_CPU / 1000000)
        .dw cycles
.endmacro
.macro delay2
        .set cycles = (@0 * F_CPU) / 1000000
        .dw cycles
.endmacro
delay1 1000
delay2 1000

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