Fonzie!
link
fedilink
5
edit-2
3M

You dropped this \

Short explanation: Type ¯\\\_(ツ)\_/¯ to see ¯\_(ツ)_/¯.

Long expanation: Lemmy supports formatting, like _italic_ becomes italic. To stop this from happening, you can put a \ before it like \_; the \ isn’t shown. This is why ¯\_(ツ)_/¯ becomes ¯_(ツ)_/¯. To show a \ you need an additional \ like so: \\, and to make sure _ is shown and not turned into italic, it too needs \. This is why ¯\\\_(ツ)\_/¯ becomes ¯\_(ツ)_/¯

I’m sorry, I have no idea what you’re talking about. Could you explain it in assembly?

Fonzie!
link
fedilink
5
edit-2
3M
global _main
    extern  _GetStdHandle@4
    extern  _WriteFile@20
    extern  _ExitProcess@4

    section .text
_main:
    ; DWORD  bytes;    
    mov     ebp, esp
    sub     esp, 4

    ; hStdOut = GetstdHandle( STD_OUTPUT_HANDLE)
    push    -11
    call    _GetStdHandle@4
    mov     ebx, eax    

    ; WriteFile( hstdOut, message, length(message), &bytes, 0);
    push    0
    lea     eax, [ebp-4]
    push    eax
    push    (message_end - message)
    push    message
    push    ebx
    call    _WriteFile@20

    ; ExitProcess(0)
    push    0
    call    _ExitProcess@4

    ; never here
    hlt
message:
    db      '¯\\\_(ツ)\_/¯', 10
message_end:
Lightscription
link
fedilink
1
edit-2
3M

Do you want to show us what that looks like in assembly, ASCII from machine code? …ha, ha, ha, no!

Depends on the device, I know. Such a pain without the higher level languages.

What would it look like for ARM android touch screens? Just for one character…

But if some characters go missing or are exchanged for others for no discernable reason, then might that be an exploit on a EC or assembly level?

The backslash is known as an escape character in this context, because it removes (escapes) the special meaning of the following character.

It’s also used that way in most Unix shells.

@ulterno@lemmy.kde.social
link
fedilink
English
2
edit-2
3M

Alternatively, you can just use the `` enclosure, used for single line code.
That is a “grave accent” or a “backtick”, the key you will find on the left of the ‘1’ key and under the ‘Esc’ key on a standard (ISO, maybe) 104/105 key qwerty keyboard.

¯\_(ツ)_/¯

Create a post

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

  • Posts must be relevant to programming, programmers, or computer science.
  • No NSFW content.
  • Jokes must be in good taste. No hate speech, bigotry, etc.
  • 1 user online
  • 77 users / day
  • 211 users / week
  • 413 users / month
  • 2.92K users / 6 months
  • 1 subscriber
  • 1.53K Posts
  • 33.8K Comments
  • Modlog