Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] Removing last element of a string when not needed #154

Open
SebastienBrand opened this issue Sep 29, 2023 · 1 comment
Open

[BUG] Removing last element of a string when not needed #154

SebastienBrand opened this issue Sep 29, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@SebastienBrand
Copy link
Collaborator

  • OS: Windows
  • Java version of EzASM

When reading in a string using reads input1 input2, where when printing out the string using prints, the last character is never printed.

Steps to reproduce the behavior:

  1. Open EzASM
  2. allocate enough space to a temporary variable for a string (eg alloc $t0 10)
  3. ask for input through console (reads $t0 10)
  4. print out the value stored at that variable (prints $t0)
  5. Scroll down to terminal and see error

Expected behavior
all characters should be printed out

image

@SebastienBrand SebastienBrand added the bug Something isn't working label Sep 29, 2023
@SebastienBrand SebastienBrand changed the title [BUG] [BUG] Removing last element of a string when not needed Sep 29, 2023
@SebastienBrand
Copy link
Collaborator Author

In theory i have a working solution?
image
seems to have the correct output but not yet 100% sure that it hasnt caused other bugs to appear

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant