Beta

Slashdot: News for Nerds

×

Welcome to the Slashdot Beta site -- learn more here. Use the link in the footer or click here to return to the Classic version of Slashdot.

Thank you!

Before you choose to head back to the Classic look of the site, we'd appreciate it if you share your thoughts on the Beta; your feedback is what drives our ongoing development.

Beta is different and we value you taking the time to try it out. Please take a look at the changes we've made in Beta and  learn more about it. Thanks for reading, and for making the site better!

Ancient Programmer Tidbit

jlbprof (760036) writes | more than 2 years ago

Programming 0

jlbprof (760036) writes "When I was a young programmer (back in Apple II days). I had a much older programmer as a mentor. He once told me something that I have not seen anywhere written yet it is an absolute truth.

A Control Character's value can be calculated by bitwise anding the character with 0x1F.

Example: Carriage Return is a 0x0D or a control M.
M is 0x4D & 0x1F = 0x0D Voila!

Did you know that?"

cancel ×

0 comments

Check for New Comments
Slashdot Account

Need an Account?

Forgot your password?

Don't worry, we never post anything without your permission.

Submission Text Formatting Tips

We support a small subset of HTML, namely these tags:

  • b
  • i
  • p
  • br
  • a
  • ol
  • ul
  • li
  • dl
  • dt
  • dd
  • em
  • strong
  • tt
  • blockquote
  • div
  • quote
  • ecode

"ecode" can be used for code snippets, for example:

<ecode>    while(1) { do_something(); } </ecode>
Create a Slashdot Account

Loading...