Result

AC

Code [DL]

00000000  16 01 2e 00 cd 03 80 38  35 e6 01 47 7d 87 80 6f  |.......85..G}..o|
00000010  7a 87 57 20 ef cd 03 80  26 00 29 29 29 23 3e ff  |z.W ....&.)))#>.|
00000020  1e 01 2c 2d 20 0b 24 25  20 07 3e 31 cd 00 80 18  |..,- .$% .>1....|
00000030  cf 3c 1b 1b 19 38 eb 3e  30 cd 00 80 18 c2 76     |.<...8.>0.....v|
0000003f

Disassembly

        ORG     0000h

L0000:  LD      D,01h
        LD      L,00h
L0004:  CALL    8003h
        JR      C,L003E
        AND     01h
        LD      B,A
        LD      A,L
        ADD     A,A
        ADD     A,B
        LD      L,A
        LD      A,D
        ADD     A,A
        LD      D,A
        JR      NZ,L0004
        CALL    8003h
        LD      H,00h
        ADD     HL,HL
        ADD     HL,HL
        ADD     HL,HL
        INC     HL
        LD      A,0FFh
        LD      E,01h
L0022:  INC     L
        DEC     L
        JR      NZ,L0031
        INC     H
        DEC     H
        JR      NZ,L0031
        LD      A,31h           ; '1'
        CALL    8000h
        JR      L0000

L0031:  INC     A
        DEC     DE
        DEC     DE
        ADD     HL,DE
        JR      C,L0022
        LD      A,30h           ; '0'
        CALL    8000h
        JR      L0000

L003E:  HALT

stdin

00000000
00011100
00000110
00010101
01001110
10101011
00110100
00011111
00101100
11111101
10110100
00000000
01010100
00001010
10100011
10101110
00110111
00001111
11001010
00000111
00101101
11010010
10011011
00000001
01011011
11110011
11111000
01000010
00000001
10011001
11011101
11011010
01011101
10001000
00100100
01000000
10111110
00000011
10100001
01111010
01111000
10000001
10001001
11100111
10100100
01000100
10100111
11111111
11110100
01101001

stdout

11111100010101001100110110011100011011001001000001

stderr

strace