generate.c
VMVALUE putcword(GenerateContext *c, VMVALUE w)
{
    System *sys = c->sys;
    VMVALUE addr = codeaddr(c);
    uint8_t *p;
    int cnt = sizeof(VMVALUE);
    if (sys->nextLow + sizeof(VMVALUE) > sys->nextHigh)
        GenerateFatal(c, "bytecode buffer overflow");
     sys->nextLow += sizeof(VMVALUE);
     p = sys->nextLow;
     while (--cnt >= 0) {
        *--p = w;
        w >>= 8;
    }
    return addr;
}
/* putcword - put a code word into the code buffer */
put a code word into the code buffer
put a code word into the code buffer
VMVALUE putcword(GenerateContext *c, VMVALUE w)
{
    System *sys = c->sys;
    VMVALUE addr = codeaddr(c);
    uint8_t *p;
    int cnt = sizeof(VMVALUE);
    if (sys->nextLow + sizeof(VMVALUE) > sys->nextHigh)
        GenerateFatal(c, "bytecode buffer overflow");
     sys->nextLow += sizeof(VMVALUE);
     p = sys->nextLow;
     while (--cnt >= 0) {
        *--p = w;
        w >>= 8;
    }
    return addr;
}
VMVALUE putcword ( GenerateContext * c , VMVALUE w ) { System * sys = c -> sys ; VMVALUE addr = codeaddr ( c ) ; uint8_t * p ; int cnt = sizeof ( VMVALUE ) ; if ( sys -> nextLow + sizeof ( VMVALUE ) > sys -> nextHigh ) GenerateFatal ( c , " " ) ; sys -> nextLow += sizeof ( VMVALUE ) ; p = sys -> nextLow ; while ( -- cnt >= 0 ) { * -- p = w ; w >>= 8 ; } return addr ; }
putcword - put a code word into the code buffer
putcword - put a code word into the code buffer