Skip to content

Conversation

@pvmm
Copy link

@pvmm pvmm commented Mar 27, 2023

I tested this code and it seems that the condition is reversed.

@ped7g
Copy link

ped7g commented May 12, 2025

Review by reading the source:

yes, it should be ret nz and the dec hl should be done only when (hl) == 0 to return back to one leading zero char '0'.

@pvmm
Copy link
Author

pvmm commented May 13, 2025

The ret nz guarantees that it is because it continues past that only if it is.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants