Hacker News new | past | comments | ask | show | jobs | submit login
The Smallest Communication Program in the World? (techtinkering.com)
14 points by sublemonic on March 10, 2010 | hide | past | favorite | 2 comments



  cmp  ax,2E00h              ; ALT-C
  je   pregetstatus
  cmp  ax,2D00h
I only know a little assembly (just learning it for the past couple weeks), but couldn't he do a byte comparison and save a byte for each of these comparisons in his immediate data? Like so?

  cmp  ah,2Eh              ; ALT-C
  je   pregetstatus
  cmp  ah,2Dh
I'm making the assumption that a key press will fit in a single byte... I'm not sure this is true.


It could have even been smaller if he'd left out the 'clear screen' functionality ;-)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: