Skip to content

[bug]: Project 4 - Web IDE - CPU Emulator- Running Mult.tst and Fill.tst deletes user ROM input #565

@FlorianMiedtke

Description

@FlorianMiedtke

Tool

CPU Emulator

Interface

Website (https://nand2tetris.github.io/web-ide)

What happened?

When I want to run the test files for project 4, they delete the contents of the ROM. This seems to happen because of the line 10 of Mult.tst

This seems to load the default Mult.asm file of the Web IDE file system, which is always the empty default. An easy fix would be to just comment out this line, but I think this would ignore the underlying problem.

If you look at the hardware simulator, the code written there is saved to the Web IDEs file system. So when I reload the page, my changes are still there. In the CPU Emulator, the ROM is also cleared, when I reload the page. So the actual problem seems to be, that the user input in the ROM is not saved to the Web IDEs file system.

Activity

amama22

amama22 commented on Mar 9, 2025

@amama22

having the same problem. how did u manage to test it?

FlorianMiedtke

FlorianMiedtke commented on Mar 10, 2025

@FlorianMiedtke
Author

having the same problem. how did u manage to test it?

I just executed the defined test steps manually.

jimmyvh

jimmyvh commented on Mar 23, 2025

@jimmyvh

Just ran into this issue myself, and found this bug after googling.
As a workaround, executing the fist step first, then filling out the asm code works, but it's an annoying workaround.
The real issue is that the asm code is not being saved.
If the file actually gets saved like it does for the hardware simulator, everything would work as intended, the load Mult.asm line included.

gacarrillor

gacarrillor commented on Mar 23, 2025

@gacarrillor

Same issue here.

Duplicate of #551 and #543

amama22

amama22 commented on Mar 23, 2025

@amama22

Same issue here.

Duplicate of #551 and #543

Hey, if this helps, I realized after, in the assembler u have to load the asm file lol and fill that, and then when u load that file in the cpu emulator it will correctly open that same file.

gacarrillor

gacarrillor commented on Mar 23, 2025

@gacarrillor

Same issue here.
Duplicate of #551 and #543

Hey, if this helps, I realized after, in the assembler u have to load the asm file lol and fill that, and then when u load that file in the cpu emulator it will correctly open that same file.

It works as a workaround, thanks!
I hope the issue can be fixed anyways, so that everybody can use it as expected.

chids04

chids04 commented on Jul 24, 2025

@chids04

can confirm this issue is still occuring

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @gacarrillor@jimmyvh@chids04@amama22@FlorianMiedtke

        Issue actions

          [bug]: Project 4 - Web IDE - CPU Emulator- Running Mult.tst and Fill.tst deletes user ROM input · Issue #565 · nand2tetris/web-ide