mirror of
https://github.com/satoshinm/pill_6502.git
synced 2025-01-13 21:32:58 +00:00
Revert "Step 6502 CPU while polling for USB between each instruction"
This reverts commit e99cb9b06817a135d8eb51adda56739b0197ac3d.
This commit is contained in:
parent
e82d86aa25
commit
7612198f41
12
src/main.c
12
src/main.c
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user