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

Negative nos support for dec to hex and hex to dec conversion #51

Open
murtraja opened this issue Aug 16, 2020 · 0 comments
Open

Negative nos support for dec to hex and hex to dec conversion #51

murtraja opened this issue Aug 16, 2020 · 0 comments

Comments

@murtraja
Copy link

Hello,

If you try to convert a decimal negative no. to hex, the program crashes, or if you've previously done some calculations, it shows a random hex value like 28B6718E
image

I tried to debug this issue, by forking my copy and running make and then running gdb src/gnusim8085 with breakpoint set in the conv_dec_to_hex function. I noticed that the argument to the function is 0 if you've given a negative number. (tried p dec command)

I would like to work on adding support for negative nos conversion by considering the no. to be just 8 bits. We can have a checkbox which toggles this behaviour

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

No branches or pull requests

1 participant