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

            伊人精品久久久久7777| 亚洲色大成网站www久久九| 精品久久久久久综合日本| 久久亚洲精品国产精品| 91久久精品无码一区二区毛片| 欧美午夜精品久久久久久浪潮| 伊人热热久久原色播放www| 久久亚洲精品成人av无码网站| 久久狠狠色狠狠色综合| 人妻中文久久久久| 久久精品国产免费| 久久久久久免费视频| 久久精品国产91久久麻豆自制| 无夜精品久久久久久| 99久久久国产精品免费无卡顿| 久久久久这里只有精品| 久久国产亚洲高清观看| 亚洲&#228;v永久无码精品天堂久久| 亚洲精品tv久久久久久久久| 久久福利片| 无码超乳爆乳中文字幕久久| 亚洲а∨天堂久久精品| 亚洲天堂久久精品| 久久无码人妻一区二区三区午夜| 久久精品无码一区二区日韩AV | 久久精品国产亚洲AV高清热| 久久99精品久久久久久野外| 久久精品aⅴ无码中文字字幕重口 久久精品a亚洲国产v高清不卡 | 狠狠色婷婷久久一区二区| 国产一区二区三精品久久久无广告| 蜜臀久久99精品久久久久久小说| 亚洲欧美国产精品专区久久| 久久人人超碰精品CAOPOREN| 97久久久久人妻精品专区| 久久夜色精品国产噜噜噜亚洲AV | 无码乱码观看精品久久| 国产—久久香蕉国产线看观看| 久久精品人人做人人爽97| 精品久久久久久久无码 | 精品伊人久久久| 国产69精品久久久久APP下载|