// Simple routines for working with memory

// Fill some memory with a value
void fill(byte* start, word size, byte val) {
    byte* end = start + size;
    for(byte* addr = start; addr!=end; addr++) {
        *addr = val;
    }
}
