• [^] # Re: presque 20 ans pour ma part

    Posté par . En réponse au journal Le PC a 25 ans !!. Évalué à 3.

    Quitte à pas être portable... /o\

    <code mode="pourquoi faire simple">
    extern int syscall();

    int main(void)
    {
    const char _h[16] = {
    0x48, 0x65, 0x6c, 0x6c, 0x6f,
    0x20, 0x57, 0x6f, 0x72, 0x6c,
    0x64, 0x20, 0x21, 0x0a, 0x00
    };
    (void) syscall(0x04, 0x01, _h, sizeof _h - 1);
    (void) syscall(0x01, 0xF000);

    /* NOTREACHED */
    return 42;
    }

    </code>