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

            久久性生大片免费观看性| 国产∨亚洲V天堂无码久久久| 国产成人精品久久综合| 99久久精品国产一区二区| 久久高潮一级毛片免费| 7777久久久国产精品消防器材 | 亚洲va久久久久| 久久ZYZ资源站无码中文动漫| 狠狠色丁香久久综合五月| 色婷婷狠狠久久综合五月| 久久国产精品99精品国产| 国产精品99久久不卡| 亚洲精品无码久久一线| 精品国产乱码久久久久久浪潮| 久久人做人爽一区二区三区 | 久久99国产精品久久| 久久乐国产综合亚洲精品| 99热精品久久只有精品| 1000部精品久久久久久久久| 亚洲愉拍99热成人精品热久久| 久久天天躁狠狠躁夜夜av浪潮| 久久久久久狠狠丁香| 亚洲va国产va天堂va久久| 怡红院日本一道日本久久 | 久久国产成人精品麻豆| 久久午夜无码鲁丝片午夜精品| 99麻豆久久久国产精品免费| 久久久久亚洲av综合波多野结衣| 久久精品国产亚洲Aⅴ蜜臀色欲| 国内精品久久国产大陆| 久久国产精品一区二区| 久久精品aⅴ无码中文字字幕不卡| 久久99精品国产麻豆宅宅| 模特私拍国产精品久久| 亚洲?V乱码久久精品蜜桃| 久久99国产精品成人欧美| 久久国产视屏| 日日狠狠久久偷偷色综合96蜜桃| 久久亚洲国产精品123区| 青春久久| 久久狠狠爱亚洲综合影院|