From aeb516985e65595450ad33a8392f030e543103df Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Sat, 14 Dec 2024 10:11:06 +0000 Subject: [PATCH] floppy: Replace confusing "Step" function with simpler "Step Pulse" Fixes #74 --- testkit/floppy.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/testkit/floppy.c b/testkit/floppy.c index 3032895..e91875e 100644 --- a/testkit/floppy.c +++ b/testkit/floppy.c @@ -325,7 +325,7 @@ static unsigned int drive_signal_test(unsigned int drv, struct char_row *r) sprintf(s, "$1 DF0$ $2 DF1$ $3 DF2$ $4 DF3$"); print_line(r); r->y++; - sprintf(s, "$5 Motor On/Off$ $6 Step$"); + sprintf(s, "$5 Motor On/Off$ $6 Step Pulse$"); print_line(r); r->y -= 3; @@ -401,7 +401,9 @@ static unsigned int drive_signal_test(unsigned int drv, struct char_row *r) mtr_time = get_time(); rdy_delay = 0; } else if (key == 0x55) { /* F6 */ - seek_track((cur_cyl == 0) ? 2 : 0); + ciab->prb &= ~CIABPRB_STEP; + ciab->prb |= CIABPRB_STEP; + delay_ms(drive_param.step_ms); key = 0; /* don't force print */ } else if (key == 0x56) { /* F7 */ ciab->prb ^= CIABPRB_STEP;