• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            coreBugZJ

            此 blog 已棄。

            SPOJ 1. Life, the Universe, and Everything

            1. Life, the Universe, and Everything

            Your program is to use the brute-force approach in order to find the Answer to Life, the Universe, and Everything. More precisely... rewrite small numbers from input to output. Stop processing input after reading in the number 42. All numbers at input are integers of one or two digits.

            Example

            Input:
            1
            2
            88
            42
            99
            Output:
            1
            2
            88
            
            我的代碼:
            section .bss
                    buf : resb 0x4
                    len : resd 0x1
            section .text
                    global  _start
            _start : 
                    xor eax, eax
                    mov [len], eax
                    mov [buf], al
                    mov [buf+1], al
            LOOP_INPUT :
                    call INPUT
                    cmp al, 0xa
                    jne LOOP_INPUT
                    mov al, [buf]
                    cmp al, '4'
                    jne LOOP_JUDGE_E
                    mov al, [buf+1]
                    cmp al, '2'
                    jne LOOP_JUDGE_E
                    jmp EXIT
            LOOP_JUDGE_E :
                    call OUTPUT
                    jmp _start
            INPUT :
                    mov eax, 0x3
                    mov ebx, 0x0
                    mov ecx, buf
                    add ecx, [len]
                    mov edx, 0x1
                    int 0x80
                    mov eax, [len]
                    inc eax
                    mov [len], eax
                    mov al, [ecx]
                    ret
            OUTPUT :
                    mov eax, 0x4
                    mov ebx, 0x1
                    mov ecx, buf
                    mov edx, [len]
                    int 0x80
                    ret
            EXIT :
                    mov eax, 1
                    xor ebx, ebx
                    int 0x80
             
             

            posted on 2011-03-16 13:24 coreBugZJ 閱讀(1042) 評論(0)  編輯 收藏 引用 所屬分類: Assemble

            久久夜色精品国产亚洲| 久久免费大片| 久久久久一区二区三区| 久久夜色精品国产亚洲| 久久涩综合| 99久久免费国产精品热| 欧美久久久久久午夜精品| 久久久无码精品亚洲日韩京东传媒| 国产精品岛国久久久久| 久久国产美女免费观看精品 | 国产成人久久精品一区二区三区| 97久久久精品综合88久久| 久久男人中文字幕资源站| 亚洲伊人久久精品影院| 久久久久国色AV免费观看| 久久久久久久亚洲Av无码| 国产69精品久久久久观看软件| 69久久夜色精品国产69| 久久精品国产男包| 亚洲精品久久久www| 色综合久久最新中文字幕| 久久久久久国产精品免费无码 | 久久香综合精品久久伊人| 久久综合九色欧美综合狠狠| 国产精品久久久久AV福利动漫| 国产精品久久久久久久人人看 | 久久精品男人影院| 蜜臀av性久久久久蜜臀aⅴ麻豆| 午夜精品久久久久久久无码| 久久国产视频网| 国产成人综合久久精品尤物| 伊人久久综合热线大杳蕉下载| 99久久精品日本一区二区免费| 国产亚洲美女精品久久久2020| 午夜精品久久久久久久无码| 色综合久久中文字幕综合网| 久久精品成人免费观看97| 久久午夜福利电影| 人妻精品久久久久中文字幕| 性欧美丰满熟妇XXXX性久久久| 久久九九免费高清视频|