fork of PCE focusing on macplus, supporting DaynaPort SCSI network emulation
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

pri/text: Add new command 'ROTATE SET'

Multiple 'ROTATE' commands are now accumulated. A 'ROTATE SET' command
resets the rotate counter to 0.

Hampa Hug 08c703ad 91e1ac04

+7 -2
+1
doc/pri-text.txt
··· 11 11 RATE <clock-rate> 12 12 RAW <bit>... 13 13 ROTATE <cnt> 14 + ROTATE SET <cnt> 14 15 ROTATE TRACK <cylinder> <head> <cnt> 15 16 WEAK <val> 16 17 WEAK RUN <cnt>
+6 -2
src/utils/pri/text.c
··· 5 5 /***************************************************************************** 6 6 * File name: src/utils/pri/text.c * 7 7 * Created: 2014-08-18 by Hampa Hug <hampa@hampa.ch> * 8 - * Copyright: (C) 2014-2024 Hampa Hug <hampa@hampa.ch> * 8 + * Copyright: (C) 2014-2025 Hampa Hug <hampa@hampa.ch> * 9 9 *****************************************************************************/ 10 10 11 11 /***************************************************************************** ··· 555 555 return (txt_enc_rotate_track (ctx)); 556 556 } 557 557 558 + if (txt_match (&ctx->txt, "SET", 1)) { 559 + ctx->rotate = 0; 560 + } 561 + 558 562 if (txt_match_uint (&ctx->txt, 10, &val) == 0) { 559 563 return (1); 560 564 } 561 565 562 - ctx->rotate = val; 566 + ctx->rotate += val; 563 567 564 568 return (0); 565 569 }