Test code that breaks emulator.

This commit is contained in:
Lawrence Kesteloot 2018-07-31 13:42:21 -07:00
parent d5ede1617d
commit eba8aa7637

12
main.c
View File

@ -91,6 +91,18 @@ int main(void)
home(); home();
// Display the character set.
for (i = 0; i < 256; i++) {
// Fails with: unhandled instruction B2
move_cursor(i % 16, i >> 4);
// Works.
// move_cursor(i & 0x0F, i >> 4);
loc = cursor_pos();
*loc = i;
}
while(1);
// Title. // Title.
for(i = 0; i < title_length; i++) { for(i = 0; i < title_length; i++) {
loc[i] = title[i] | 0x80; loc[i] = title[i] | 0x80;