mirror of
https://github.com/dschmenk/apple2pi.git
synced 2025-01-11 08:30:10 +00:00
Update client code and some formatting changes
This commit is contained in:
parent
1a5d470f48
commit
5559e82d68
BIN
src/A2PI.PO
BIN
src/A2PI.PO
Binary file not shown.
12
src/a2mon.c
12
src/a2mon.c
@ -9,7 +9,7 @@ void prbytes(int address, int count, char *data)
|
||||
printf(" %02X", (unsigned char)data[i]);
|
||||
printf("\n");
|
||||
}
|
||||
void exec(int fd, int cmd, int *address, int value, char *data, int *index)
|
||||
void a2exec(int fd, int cmd, int *address, int value, char *data, int *index)
|
||||
{
|
||||
int a, c;
|
||||
|
||||
@ -54,18 +54,18 @@ int parsestr(int fd, char *cmdstr)
|
||||
switch (*cmdstr)
|
||||
{
|
||||
case ':': /* write bytes */
|
||||
exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
a2exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
cmd = 0x92;
|
||||
parseval = -1;
|
||||
break;
|
||||
case '.': /* read address range */
|
||||
exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
a2exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
cmd = 0x90;
|
||||
parseval = -1;
|
||||
break;
|
||||
case 'R': /* run */
|
||||
case 'r':
|
||||
exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
a2exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
cmd = 0x94;
|
||||
break;
|
||||
case 'a':
|
||||
@ -102,7 +102,7 @@ int parsestr(int fd, char *cmdstr)
|
||||
if (cmd == 0x92)
|
||||
databuf[index++] = parseval;
|
||||
else
|
||||
exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
a2exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
parseval = -1;
|
||||
}
|
||||
break;
|
||||
@ -118,7 +118,7 @@ int parsestr(int fd, char *cmdstr)
|
||||
cmd = 0x90;
|
||||
}
|
||||
}
|
||||
exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
a2exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
return 1;
|
||||
break;
|
||||
case 'Q':
|
||||
|
Loading…
x
Reference in New Issue
Block a user