Result

AC

Code [DL]

00000000  0c 2e 00 cd 03 80 38 23  e6 01 cb 25 85 6f cb 21  |......8#...%.o.!|
00000010  20 f1 cd 03 80 af 26 00  11 00 00 2c 2d 20 06 3c  | .....&....,- .<|
00000020  c6 30 ff 18 db 1b 19 38  f2 18 f5 76              |.0.....8...v|
0000002c

Disassembly

        ORG     0000h

L0000:  INC     C
        LD      L,00h
L0003:  CALL    8003h
        JR      C,L002B
        AND     01h
        SLA     L
        ADD     A,L
        LD      L,A
        SLA     C
        JR      NZ,L0003
        CALL    8003h
        XOR     A
        LD      H,00h
        LD      DE,0000h
L001B:  INC     L
        DEC     L
        JR      NZ,L0025
        INC     A
L0020:  ADD     A,30h           ; '0'
        RST     0x38

L0023:  JR      L0000

L0025:  DEC     DE
        ADD     HL,DE
        JR      C,L001B
        JR      L0020

L002B:  HALT

stdin

01101100
10011011
11011101
01000111
01000010
10011111
10001100
10101011
01101001
11111101
00001111
10001000
00100100
00001010
00011100
01011011
00000000
11100001
00011100
00110001
10000001
10000011
01110110
10101101
01111001
10111110
11011000
00000101
11010010
10011001
01111000
01011110
00000010
11100111
00100000
00000110
00110111
11001001
10011000
11011010
00000011
00100101
10101110
00101101
00010101
00000001
00100001
00011100
11111110
01001110

stdout

00001001111111111010000001001110010110001001110101

stderr

strace