mschwartz / assembly-tutorial

Programming in assembly language tutorial
619 stars 46 forks source link

Decimal base used to represent a byte #4

Closed S-Stanley closed 1 year ago

S-Stanley commented 1 year ago

Hello! I'm currently learning assembly with your repository, and I have a small question:

At line 47 and 54 you did use a decimal base to represent a byte. Is it on purpose? If so, why didn't you use a binary base (e.g. 11010001)?

mschwartz commented 1 year ago

Those are the bit numbers. There are 8bits to a byte, numbered bit0 to bit7.

In your example, 11010001, bits 0, 4, 6, and 7 are set.

S-Stanley commented 1 year ago

Thanks for your answer, I understand better! I'm closing the issue