• <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

            亚洲一区精品伊人久久伊人| 国产精品嫩草影院久久| 久久性精品| 久久天天躁夜夜躁狠狠躁2022 | 久久午夜伦鲁片免费无码| 久久婷婷五月综合成人D啪| 亚洲精品乱码久久久久久中文字幕 | 亚洲精品国产成人99久久| 91精品国产91久久| 一本久久免费视频| 97久久超碰国产精品2021| 国内精品久久久久久久涩爱| 伊人久久大香线蕉综合热线| 精品久久久久久久国产潘金莲 | 成人久久免费网站| 亚洲国产精品婷婷久久| 伊人热热久久原色播放www| 久久99精品久久久久子伦| 超级碰久久免费公开视频| 成人久久免费网站| 久久精品中文字幕第23页| 久久综合九色综合网站| 久久国产福利免费| 久久精品中文騷妇女内射| 一级a性色生活片久久无少妇一级婬片免费放 | 天天综合久久久网| 久久久久久精品免费免费自慰| 久久精品国产亚洲AV大全| 思思久久好好热精品国产| 亚洲国产成人久久综合一| 亚洲AV成人无码久久精品老人| 女同久久| 久久久久亚洲精品天堂久久久久久| 午夜欧美精品久久久久久久| 武侠古典久久婷婷狼人伊人| 久久www免费人成精品香蕉| 久久中文娱乐网| 久久香蕉综合色一综合色88| 久久精品国产亚洲精品2020| 亚洲狠狠婷婷综合久久蜜芽| 一本久久精品一区二区|