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

Fixed, and improved #70

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fixed, and improved #70

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented May 28, 2012

Corrected values, and added hex codes to all C states to make it easier to spot where a compiler screws up.

@hach-que
Copy link
Member

According to the calculator, -1200 is 0xFB50 in hexadecimal, not 0xFB49.

SET A, 0 ; C = -1800
MLI C, 2 ; C = -3600
DVI C, 3 ; C = -1200 (0xFB50)
SET C, 500 ; C = 0500(0x01F4)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The leading zero in comments may cause confusion with octal numbers

@ghost
Copy link
Author

ghost commented May 28, 2012

"According to the calculator, -1200 is 0xFB50 in hexadecimal, not 0xFB49."
Yeah, I forgot to change the decimal numbers to the correct values

"The leading zero in comments may cause confusion with octal numbers"
I added them to make the spacing even, but I can replace them with spaces

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.

None yet

2 participants