File tree 1 file changed +0
-9
lines changed
1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -538,8 +538,6 @@ void z80_op_rlc( uint8_t * pval )
538
538
reg.fCarry = bit7;
539
539
if ( bit7 )
540
540
x |= 1 ;
541
- else
542
- x &= 0xfe ;
543
541
set_sign_zero_parity ( x );
544
542
reg.fAuxCarry = false ;
545
543
reg.fWasSubtract = false ;
@@ -556,8 +554,6 @@ void z80_op_rl( uint8_t * pval )
556
554
x <<= 1 ;
557
555
if ( reg.fCarry )
558
556
x |= 1 ;
559
- else
560
- x &= 0xfe ;
561
557
reg.fCarry = bit7;
562
558
set_sign_zero_parity ( x );
563
559
reg.fAuxCarry = false ;
@@ -576,8 +572,6 @@ void z80_op_rrc( uint8_t * pval )
576
572
reg.fCarry = bit0;
577
573
if ( bit0 )
578
574
x |= 0x80 ;
579
- else
580
- x &= 0x7f ;
581
575
set_sign_zero_parity ( x );
582
576
reg.fAuxCarry = false ;
583
577
reg.fWasSubtract = false ;
@@ -594,8 +588,6 @@ void z80_op_rr( uint8_t * pval )
594
588
x >>= 1 ;
595
589
if ( reg.fCarry )
596
590
x |= 0x80 ;
597
- else
598
- x &= 0x7f ;
599
591
reg.fCarry = bit0;
600
592
set_sign_zero_parity ( x );
601
593
reg.fAuxCarry = false ;
@@ -708,7 +700,6 @@ void z80_op_srl( uint8_t * pval )
708
700
uint8_t val = *pval;
709
701
reg.fCarry = ( val & 1 );
710
702
val >>= 1 ;
711
- val &= 0x7f ;
712
703
set_sign_zero_parity ( val );
713
704
reg.clearHN ();
714
705
reg.z80_assignYX ( val );
You can’t perform that action at this time.
0 commit comments