Skip to content

Label .0 does not work #16

Description

@yoyoma2

Tested in the web/javascript version.

Steps:
g P/R
f LBL .0

Result:
The label 0 is created instead of the label .0

If your program uses both labels 0 and .0 it will fail.

Possible Cause:
In function decode_lbl(k), the following line:
i = Number(k) / f;
results in i=0 when k=0 regardless of f being 1 or 10.

Same problem with GTO:
The function decode_gto() has the same problem calculating x with x=0 and f=10
x /= f;

Nice simulator BTW!

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