Skip to content

Commit

Permalink
Merge pull request #49 from bvl1999/master
Browse files Browse the repository at this point in the history
make accept wait for status change
  • Loading branch information
sblendorio authored Dec 7, 2020
2 parents fd2adc9 + d1c1209 commit d8f0d0a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/lib/ultimate_lib.c
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,10 @@ void uii_accept(void)
uii_logstatusreg();
uii_logtext("\nsending ack");
*controlreg |= 0x02;
while ( !(*statusreg & 2) == 0 ) {
uii_logtext("\nwaiting for ack...");
uii_logstatusreg();
};
}

int uii_isdataavailable(void)
Expand Down
2 changes: 1 addition & 1 deletion src/samples/ultimateterm.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ unsigned char read_host_and_port(char *prompt_host, char *prompt_port) {
#pragma optimize (push,off)
void blank_vicII(void) {
asm("lda $d011");
asm("and #$ef");
asm("and #$6f"); /* make sure to mask bit 7 else we may end up waiting for a non existing rasterline! */
asm("sta $d011");
}
#pragma optimize (pop)
Expand Down

0 comments on commit d8f0d0a

Please sign in to comment.