Skip to content

Code from Windows simulator does not load in DB48X on DM42. #1605

@jthole

Description

@jthole

The files written by the Windows simulator (latest version) are not compatible with DB48X 0.9.15 running on the DM42.

To test this, I created a trivial program and compared the two:

In both cases (DM42 and Win) the program was created using the 'x²' and 'Swap' keys (both with the 'CMD' setting):

«
        SQ SWAP SQ + √
»

After that, I STO-ed the code to an output file.

When comparing both files, the Windows simulator output x² instead of SQ. Besides, it writes "Swap" instead of "SWAP".

$ diff PYTH-DM42.48S PYTH-WIN.48S
1,2c1,2
< «
<      SQ SWAP SQ + √
---
> «
>      x² Swap x² + √

The Windows generated code cannot be loaded in the DM42 (RCL gives a syntax error).

After changing x² to SQ and Swap to SWAP, and running "dos2unix", the file loads correctly in the DM42.

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