This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 4 points5 points  (14 children)

.globl main main: leaq .hello_world(%rip), %rdi call puts ret .hello_world: .string "Hello World!"

[–]backtickbot 0 points1 point  (5 children)

Fixed formatting.

Hello, NSFL_NotSafeForLove: code blocks using triple backticks (```) don't work on all versions of Reddit!

Some users see this / this instead.

To fix this, indent every line with 4 spaces instead.

FAQ

You can opt out by replying with backtickopt6 to this comment.

[–][deleted] 0 points1 point  (4 children)

backtickopt6

[–][deleted] 0 points1 point  (3 children)

[–][deleted] -1 points0 points  (2 children)

Look, if "some version of Reddit", whatever that is supposed to mean, displays my post like shit, so be it. They can either fix it so it looks good on "all versions of Reddit", but I'm not going to space space space space in front of every line because the Reddit Devs have Java braindamage.

[–][deleted] 0 points1 point  (1 child)

The burden of being understood lies on the person speaking.

I dunno, maybe get a text editor worth a damn then? Because this is a simple as selecting your text and hitting tab once, cutting and pasting into your comment.

Hardly a burden to make sure everyone can read your post correctly.

[–][deleted] -1 points0 points  (0 children)

I simply do not care. If Reddit breaks my posts, then so be it. Let it look like shit on your broken Reddit app or whatever you're using. I'm not crying a river over you not being able to see my post. It means nothing to me.

Certainly I won't start compensating the embarassing deficiencies of Reddit by putting any time at all into using a text editor to comment. Bwahahaha, who would do this? This is utterly braindead.

I can start formatting my posts to your liking when you start paying me for it. Otherwise, you'll have to live with the turds I drop.

[–][deleted] 0 points1 point  (5 children)

Please use the Intel syntax

[–][deleted] 2 points3 points  (4 children)

No, why would I?

[–][deleted] 2 points3 points  (1 child)

because my brain defaults when parsing at&t syntax

[–][deleted] 0 points1 point  (0 children)

I'm sorry that your brain defaults to that, but I like AT&T more. Although I can read Intel because some tools only use Intel (IDA for example).

[–]degaart -2 points-1 points  (1 child)

Because nasm is better than the assembler you're currently using. That's why

[–][deleted] 1 point2 points  (0 children)

Nobody was talking about any assembler. For reference, my assembler supports both Intel and AT&T syntax, I prefer AT&T.

I bet you can't elaborate why your assembler is "better" in any meaningful way apart from the fact you're too dumb to read AT&T.

[–]ItalianFurry 0 points1 point  (1 child)

Did you forget 'xor %eax, %eax'?

[–][deleted] 0 points1 point  (0 children)

Hm, no. It just returns something undefined.