correcting BRK jump

This commit is contained in:
Thiago Auler dos Santos 2017-11-28 20:34:08 -02:00
parent 4006475fb1
commit 6bb5014964
2 changed files with 4 additions and 2 deletions

View File

@ -21,8 +21,9 @@ void input()
{
int ch = getch();
if (ch == 0x7F) { ch = '_'; }
if (ch == '\n') { ch = '\r'; }
if (ch == 0x107) { ch = '_'; }
if (ch == 0x7F) { ch = '_'; }
if (ch == '\n') { ch = '\r'; }
if (ch >= 'a' && ch <= 'z') { ch = ch - 0x20; }
if (ch == '\r' || (ch >= 0x20 && ch <= 0x7F))

View File

@ -258,6 +258,7 @@ void brk()
I_SET;
push_word(pc);
push_byte(sr);
pc = read_word(0xFFEF);
}
void bvc()