• <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 閱讀(1041) 評論(0)  編輯 收藏 引用 所屬分類: Assemble

            国产高清美女一级a毛片久久w | 伊人久久大香线蕉综合影院首页 | 久久久噜噜噜久久中文字幕色伊伊| 亚洲狠狠久久综合一区77777| 国产亚洲成人久久| 亚洲天堂久久久| 久久精品天天中文字幕人妻| 久久久久久A亚洲欧洲AV冫| 伊人久久久AV老熟妇色| 精品久久久久中文字| 精品久久久久久中文字幕大豆网 | 色综合久久综合中文综合网| 国产99久久久久久免费看| 亚洲国产精品无码久久青草| 久久精品www人人爽人人| 亚洲国产成人久久综合区| 国产AⅤ精品一区二区三区久久| 久久人人添人人爽添人人片牛牛| 亚洲嫩草影院久久精品| 色综合久久无码中文字幕| 思思久久精品在热线热| 久久精品国产一区二区三区| 97超级碰碰碰久久久久| 久久成人国产精品免费软件| 久久免费99精品国产自在现线| A狠狠久久蜜臀婷色中文网| 亚洲精品无码久久久久久| 国产69精品久久久久APP下载| 久久国产视屏| 久久夜色精品国产www| 国产免费久久精品99久久| 亚洲综合婷婷久久| 久久亚洲精品中文字幕三区| 国内精品久久久久久99蜜桃| 久久人人青草97香蕉| 亚洲国产精品无码久久九九| 久久亚洲国产成人影院网站| 欧美久久天天综合香蕉伊| 亚洲国产高清精品线久久| 久久WWW免费人成一看片| 久久亚洲AV成人无码国产|