~ubuntu-branches/ubuntu/utopic/vice/utopic

« back to all changes in this revision

Viewing changes to src/c64/cart/delaep256.c

  • Committer: Package Import Robot
  • Author(s): Logan Rosen
  • Date: 2014-05-10 21:08:23 UTC
  • mfrom: (17.2.1 utopic-proposed)
  • Revision ID: package-import@ubuntu.com-20140510210823-r7x98jmpl1x7rgop
Tags: 2.4.dfsg+2.4.6-1ubuntu1
Use autotools-dev to update config.{sub,guess} for new arches.

Show diffs side-by-side

added added

removed removed

Lines of Context:
101
101
static int delaep256_dump(void)
102
102
{
103
103
    mon_out("Currently selected EPROM bank: %d, cart status: %s\n",
104
 
    currbank,
105
 
    (regval & 0x80) ? "Disabled" : "Enabled");
 
104
            currbank,
 
105
            (regval & 0x80) ? "Disabled" : "Enabled");
106
106
    return 0;
107
107
}
108
108
 
157
157
int delaep256_bin_attach(const char *filename, BYTE *rawcart)
158
158
{
159
159
    int size = 0x42000;
160
 
 
 
160
 
161
161
    memset(rawcart, 0xff, 0x42000);
162
162
    while (size != 0) {
163
163
        if (util_file_load(filename, rawcart, size, UTIL_FILE_LOAD_SKIP_ADDRESS) < 0) {
209
209
    snapshot_module_t *m;
210
210
 
211
211
    m = snapshot_module_create(s, SNAP_MODULE_NAME,
212
 
                          CART_DUMP_VER_MAJOR, CART_DUMP_VER_MINOR);
 
212
                               CART_DUMP_VER_MAJOR, CART_DUMP_VER_MINOR);
213
213
    if (m == NULL) {
214
214
        return -1;
215
215
    }