1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

You know... I never knew what a "Stack Overflow" was...

Discussion in 'Off Topic' started by Jaxel, Apr 5, 2016.

  1. Jaxel

    Jaxel Well-Known Member

    With all the time I spend on Stackoverflow.com, I never considered what the bug actually was... till I just saw it mentioned in the XenForo update.
  2. rainmotorsports

    rainmotorsports Well-Known Member

    Silly web developers. Write some machine code once in awhile. Learn what a real API is j/k
    Methodical and Luke F like this.
  3. Jaxel

    Jaxel Well-Known Member

  4. Snog

    Snog Well-Known Member

    I'm sure @rainmotorsports was just pulling your leg. I know very few people that can code in machine code, otherwise known as assembly code. Which is a misnomer to begin with since machine code is the actual digital code and assembly code is the human readable version of the machine code.

    Most people use either an interpreted language, such as PHP, Basic or .NET. Or they use a language that can be compiled directly to machine code like C++.

    This is a sample of assembly code that pops up a Windows MessageBox direct from the Intel I7 manuals..
    extrn ExitProcess: PROC   ; external functions in system libraries
    extrn MessageBoxA: PROC
    caption db '64-bit hello!', 0
    message db 'Hello World!', 0
    Start PROC
      sub    rsp,28h      ; shadow space, aligns stack
      mov    rcx, 0       ; hWnd = HWND_DESKTOP
      lea    rdx, message ; LPCSTR lpText
      lea    r8,  caption ; LPCSTR lpCaption
      mov    r9d, 0       ; uType = MB_OK
      call   MessageBoxA  ; call MessageBox API function
      mov    ecx, eax     ; uExitCode = MessageBox(...)
      call ExitProcess
    Start ENDP

Share This Page