Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Lets see if you can do it!

Name: Mc. Pants 2007-05-20 22:37 ID:NB2e5KHf

Hey guys, write an assembly language program that will allow the user to input 2 values, store them in declared variables, and display the smaller of the 2 values. Winner will get whatever they want on request, but to win it, provide the evidence by a screencap. Answers are fine too... (but screencap is the way to win!)

Name: Anonymous 2007-05-20 23:00 ID:mUtK74Yq

    .section    .ctors,"aw",@progbits
    .align 8
    .quad    _GLOBAL__I_main
    .text
    .align 2
    .type    _Z41__static_initialization_and_destruction_0ii, @function
_Z41__static_initialization_and_destruction_0ii:
.LFB1408:
    pushq    %rbp
.LCFI0:
    movq    %rsp, %rbp
.LCFI1:
    subq    $16, %rsp
.LCFI2:
    movl    %edi, -4(%rbp)
    movl    %esi, -8(%rbp)
    cmpl    $1, -4(%rbp)
    jne    .L5
    cmpl    $65535, -8(%rbp)
    jne    .L5
    movl    $_ZSt8__ioinit, %edi
    call    _ZNSt8ios_base4InitC1Ev
    movl    $__dso_handle, %edx
    movl    $0, %esi
    movl    $__tcf_0, %edi
    call    __cxa_atexit
.L5:
    leave
    ret
.LFE1408:
    .size    _Z41__static_initialization_and_destruction_0ii, .-_Z41__static_initialization_and_destruction_0ii
.globl __gxx_personality_v0
    .align 2
    .type    _GLOBAL__I_main, @function
_GLOBAL__I_main:
.LFB1410:
    pushq    %rbp
.LCFI3:
    movq    %rsp, %rbp
.LCFI4:
    movl    $65535, %esi
    movl    $1, %edi
    call    _Z41__static_initialization_and_destruction_0ii
    leave
    ret
.LFE1410:
    .size    _GLOBAL__I_main, .-_GLOBAL__I_main
    .align 2
    .type    __tcf_0, @function
__tcf_0:
.LFB1409:
    pushq    %rbp
.LCFI5:
    movq    %rsp, %rbp
.LCFI6:
    subq    $16, %rsp
.LCFI7:
    movq    %rdi, -8(%rbp)
    movl    $_ZSt8__ioinit, %edi
    call    _ZNSt8ios_base4InitD1Ev
    leave
    ret
.LFE1409:
    .size    __tcf_0, .-__tcf_0
    .section    .rodata
.LC0:
    .string    "ur doin it rong"
    .text
    .align 2
.globl main
    .type    main, @function
main:
.LFB1401:
    pushq    %rbp
.LCFI8:
    movq    %rsp, %rbp
.LCFI9:
    subq    $16, %rsp
.LCFI10:
    leaq    -4(%rbp), %rsi
    movl    $_ZSt3cin, %edi
    call    _ZNSirsERi
    leaq    -8(%rbp), %rsi
    movl    $_ZSt3cin, %edi
    call    _ZNSirsERi
    movl    -4(%rbp), %edx
    movl    -8(%rbp), %eax
    cmpl    %eax, %edx
    jge    .L11
    movl    -8(%rbp), %esi
    movl    $_ZSt4cout, %edi
    call    _ZNSolsEi
.L11:
    movl    -8(%rbp), %edx
    movl    -4(%rbp), %eax
    cmpl    %eax, %edx
    jge    .L13
    movl    -4(%rbp), %esi
    movl    $_ZSt4cout, %edi
    call    _ZNSolsEi
.L13:
    movl    -4(%rbp), %edx
    movl    -8(%rbp), %eax
    cmpl    %eax, %edx
    jne    .L15
    movl    $.LC0, %esi
    movl    $_ZSt4cout, %edi
    call    _ZStlsISt11char_traitsIcEERSt13basic_ostreamIcT_ES5_PKc
.L15:
    movl    $0, %eax
    leave
    ret

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List