mirror of
https://github.com/dschmenk/apple2pi.git
synced 2025-01-11 08:30:10 +00:00
Read byte when just address in entered
This commit is contained in:
parent
ff4457084e
commit
d421e43481
12
src/a2mon.c
12
src/a2mon.c
@ -195,8 +195,16 @@ int parsestr(int fd, char *cmdstr)
|
||||
break;
|
||||
case '\n':
|
||||
case '\0':
|
||||
if (parseval != -1 && cmd == 0x92)
|
||||
databuf[index++] = parseval;
|
||||
if (parseval != -1)
|
||||
{
|
||||
if (cmd == 0x92)
|
||||
databuf[index++] = parseval;
|
||||
else if (cmd == 0)
|
||||
{
|
||||
addr = parseval;
|
||||
cmd = 0x90;
|
||||
}
|
||||
}
|
||||
exec(fd, cmd, &addr, parseval, databuf, &index);
|
||||
return 1;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user