RE: A86: .db numbers


[Prev][Next][Index][Thread]

RE: A86: .db numbers




It's just a base 2 number system:

1 is 1, 2 is 10, 3 is 11, 4 is 100, 5 is 101, etc.

> 
> 
> Yeah, what I want to know is how you got that byte from the number 45.
> Thanks,
> 
> >
> >JBrett wrote:
> >> I have been having trouble learning how to write numbers in binary.
> >> Could someone tell me how to write, say, 45 in binary??
> >> Thanks,
> >
> >Let's see... 45 in binary would be 00101101. So you would enter it
> >into your program:
> >
> >.db %00101101
> >
> >But try to use binary for masking only.  It gets unnecessarily confusing
> >very quickly.  However, if confusing is what you want, go for it.
> >


References: