static void nvram_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)

{

    ds1225y_t *NVRAM = opaque;

    int64_t pos;



    pos = addr - NVRAM->mem_base;

    if (ds1225y_set_to_mode(NVRAM, writemode, "wb"))

    {

        qemu_fseek(NVRAM->file, pos, SEEK_SET);

        qemu_put_byte(NVRAM->file, (int)value);

    }

}

static void nvram_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)

{

    ds1225y_t *NVRAM = opaque;

    int64_t pos;



    pos = addr - NVRAM->mem_base;

    if (ds1225y_set_to_mode(NVRAM, writemode, "wb"))

    {

        qemu_fseek(NVRAM->file, pos, SEEK_SET);

        qemu_put_byte(NVRAM->file, (int)value);

    }

}

    ds1225y_t *NVRAM = opaque;
     int64_t pos;
     pos = addr - NVRAM->mem_base;
 static void nvram_writeb (void *opaque, target_phys_addr_t addr, uint32_t value)
     ds1225y_t *NVRAM = opaque;
     int64_t pos;
     pos = addr - NVRAM->mem_base;
     if (ds1225y_set_to_mode(NVRAM, writemode, "wb"))
         qemu_fseek(NVRAM->file, pos, SEEK_SET);
         qemu_put_byte(NVRAM->file, (int)value);

static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)

{

    ds1225y_t *NVRAM = VAR_0;

    int64_t pos;



    pos = VAR_1 - NVRAM->mem_base;

    if (ds1225y_set_to_mode(NVRAM, writemode, "wb"))

    {

        qemu_fseek(NVRAM->file, pos, SEEK_SET);

        qemu_put_byte(NVRAM->file, (int)VAR_2);

    }

}

static void FUNC_0 (void *VAR_0, target_phys_addr_t VAR_1, uint32_t VAR_2)
{ ds1225y_t *NVRAM = VAR_0; int64_t pos; pos = VAR_1 - NVRAM->mem_base; if (ds1225y_set_to_mode(NVRAM, writemode, "wb"))
{ qemu_fseek(NVRAM->file, pos, SEEK_SET); qemu_put_byte(NVRAM->file, (int)VAR_2); } }