It's certainly possible!

If your machine doesn't have those cool front panel toggle switches,
just use this simple compiler:

#include <u.h>
#include <libc.h>

void
main(void)
{
        char buf[8];
        int i;
        char c;

        while(read(0, buf, 8) == 8){
                c = 0;
                for(i = 0; i < 8; ++i){
                        switch(buf[i]){
                        case '0':
                                break;
                        case '1':
                                c |= 1 << (7 - i);
                                break;
                        default:
                                exits("two");
                        }
                }
                write(1, &c, 1);
        }

        exits("");
}

> Is another machine code?

Octal is popular for these things.

-- David


On 11/3/14, françai s <romaper...@gmail.com> wrote:
> I intend to write in lowest level of computer programming as a hobby.
>
> It is true that is impossible write in binary code, the lowest level of
> programming that you can write is in hexadecimal code?
>
> What is the lowest level of programming computers that you can write ?
>
> Is binary code?
>
> Is hex code?
>
> Is another machine code? Honestly do not know if it is true that there is
> another machine code beyond the binary and hex code.
>
> Is Assembly?
>

Reply via email to