sag@lemm.ee to Programmer Humor@lemmy.ml · edit-24 months agoAnyone here use assembly?lemm.eeimagemessage-square82fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageAnyone here use assembly?lemm.eesag@lemm.ee to Programmer Humor@lemmy.ml · edit-24 months agomessage-square82fedilink
minus-squaretheneverfox@pawb.sociallinkfedilinkEnglisharrow-up0·4 months agoI’m sorry, I have no idea what you’re talking about. Could you explain it in assembly?
minus-squareFonzie!@ttrpg.networklinkfedilinkarrow-up0·edit-24 months agoglobal _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:
I’m sorry, I have no idea what you’re talking about. Could you explain it in assembly?