Revert "Step 6502 CPU while polling for USB between each instruction"

This reverts commit e99cb9b068.
This commit is contained in:
Satoshi N. M 2018-01-15 13:58:38 -08:00
parent e82d86aa25
commit 7612198f41
1 changed files with 4 additions and 8 deletions

View File

@ -86,7 +86,9 @@ static const char *usb_strings[] = {
static bool paused = true;
void sys_tick_handler(void)
{
// TODO: measure frequency
if (paused) return;
step6502();
gpio_toggle(GPIOC, GPIO13);
}
@ -200,13 +202,7 @@ int main(void)
reset6502();
while (1) {
while (1)
usbd_poll(usbd_dev);
if (!paused) {
step6502();
gpio_toggle(GPIOC, GPIO13);
}
}
}