Rename file_deo variables.
This commit is contained in:
parent
5dcf0a2b35
commit
a3b87e021f
|
@ -145,14 +145,14 @@ file_delete(void)
|
||||||
void
|
void
|
||||||
file_deo(Device *d, Uint8 port)
|
file_deo(Device *d, Uint8 port)
|
||||||
{
|
{
|
||||||
Uint16 a, b, res;
|
Uint16 addr, len, res;
|
||||||
switch(port) {
|
switch(port) {
|
||||||
case 0x5:
|
case 0x5:
|
||||||
DEVPEEK16(a, 0x4);
|
DEVPEEK16(addr, 0x4);
|
||||||
DEVPEEK16(b, 0xa);
|
DEVPEEK16(len, 0xa);
|
||||||
if(b > 0x10000 - a)
|
if(len > 0x10000 - addr)
|
||||||
b = 0x10000 - a;
|
len = 0x10000 - addr;
|
||||||
res = file_stat(&d->u->ram[a], b);
|
res = file_stat(&d->u->ram[addr], len);
|
||||||
DEVPOKE16(0x2, res);
|
DEVPOKE16(0x2, res);
|
||||||
break;
|
break;
|
||||||
case 0x6:
|
case 0x6:
|
||||||
|
@ -160,24 +160,24 @@ file_deo(Device *d, Uint8 port)
|
||||||
DEVPOKE16(0x2, res);
|
DEVPOKE16(0x2, res);
|
||||||
break;
|
break;
|
||||||
case 0x9:
|
case 0x9:
|
||||||
DEVPEEK16(a, 0x8);
|
DEVPEEK16(addr, 0x8);
|
||||||
res = file_init(&d->u->ram[a]);
|
res = file_init(&d->u->ram[addr]);
|
||||||
DEVPOKE16(0x2, res);
|
DEVPOKE16(0x2, res);
|
||||||
break;
|
break;
|
||||||
case 0xd:
|
case 0xd:
|
||||||
DEVPEEK16(a, 0xc);
|
DEVPEEK16(addr, 0xc);
|
||||||
DEVPEEK16(b, 0xa);
|
DEVPEEK16(len, 0xa);
|
||||||
if(b > 0x10000 - a)
|
if(len > 0x10000 - addr)
|
||||||
b = 0x10000 - a;
|
len = 0x10000 - addr;
|
||||||
res = file_read(&d->u->ram[a], b);
|
res = file_read(&d->u->ram[addr], len);
|
||||||
DEVPOKE16(0x2, res);
|
DEVPOKE16(0x2, res);
|
||||||
break;
|
break;
|
||||||
case 0xf:
|
case 0xf:
|
||||||
DEVPEEK16(a, 0xe);
|
DEVPEEK16(addr, 0xe);
|
||||||
DEVPEEK16(b, 0xa);
|
DEVPEEK16(len, 0xa);
|
||||||
if(b > 0x10000 - a)
|
if(len > 0x10000 - addr)
|
||||||
b = 0x10000 - a;
|
len = 0x10000 - addr;
|
||||||
res = file_write(&d->u->ram[a], b, d->dat[0x7]);
|
res = file_write(&d->u->ram[addr], len, d->dat[0x7]);
|
||||||
DEVPOKE16(0x2, res);
|
DEVPOKE16(0x2, res);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue