Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 1
    \$\begingroup\$ Remove \n for 2 less characters, he didn't say it had to be in separate lines. :) \$\endgroup\$ Commented Jan 11, 2015 at 1:18
  • \$\begingroup\$ @AndrewRobinson: it seems a bit unfair, all the output that follows will have the 4 bashed together with 42... I could instead change the \n (two characters) with a semicolon. Also, msg is wasteful, I can go with m (shaving other 4 bytes). \$\endgroup\$ Commented Jan 12, 2015 at 1:16
  • 1
    \$\begingroup\$ You'd save a letter and an instruction word by using br instead of jmp, wouldn't you? Also, write requires the file descriptor in r0 - you apparently happen to have 1 (or 2) in it for your first loop, but you're smashing it with your sleep time. \$\endgroup\$ Commented Jan 12, 2015 at 14:59
  • \$\begingroup\$ @Random832: wops, it probably worked when I tested it because I used 1 or 2 as sleep time to quickly try if it worked. Correct about the br, thanks to that one and to some other tricks (mainly cutting on whitespace and using octal whenever possible) we got to 74 characters even adding the first mov. \$\endgroup\$ Commented Jan 12, 2015 at 21:35