Changeset 510 for trunk/thune/make.c

Show
Ignore:
Timestamp:
02/10/08 23:53:46 (9 months ago)
Author:
krobillard
Message:

'loop is now an opcode and can act as loop.to for integers.
File port! read now handles optional limit.
console.out now handles binary!.
Can now 'make an int! from first 4 bytes of a binary!
Added ur_initDecimal macro.
Added 'fcalc.
Removed word inc/dec.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/thune/make.c

    r508 r510  
    15821582                        n = ur_stringToInt( spA, spB, 0 ); 
    15831583                    } 
     1584                } 
     1585            } 
     1586            else if( ur_binarySlice(ut, tos, &spA, &spB) ) 
     1587            { 
     1588                if( (spB - spA) > 3 ) 
     1589                { 
     1590                    // Load 32-bit big-endian number. 
     1591                    uint8_t* bp = (uint8_t*) spA; 
     1592                    n = (bp[0] << 24) | (bp[1] << 16) | 
     1593                        (bp[2] <<  8) | bp[3]; 
    15841594                } 
    15851595            }