File tree 1 file changed +13
-2
lines changed
1 file changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -1582,8 +1582,10 @@ static int branch_op(void)
1582
1582
case 13 : /* BS4 */
1583
1583
t = (switches & BS4 );
1584
1584
break ;
1585
- case 14 : /* BTM - branch on teletype mark - CPU4 only ? */
1586
- t = 0 ;
1585
+ case 14 :
1586
+ /* Branch if interrupts enabled.
1587
+ * Was BTM - branch on teletype mark - on CPU4 */
1588
+ t = int_enable ;
1587
1589
break ;
1588
1590
case 15 : /* B?? - branch of IL1 AH bit 0 set (see B6/C6) */
1589
1591
t = cpu_sram [0x10 ] & 0x01 ;
@@ -1882,6 +1884,13 @@ static int jump_op(void)
1882
1884
return 0 ;
1883
1885
}
1884
1886
1887
+ static int stcc (void )
1888
+ {
1889
+ uint16_t addr = fetch16 ();
1890
+ mmu_mem_write8 (addr , alu_out );
1891
+ return 0 ;
1892
+ }
1893
+
1885
1894
/*
1886
1895
* This appears to work like the other loads and not affect C
1887
1896
*/
@@ -2491,6 +2500,8 @@ unsigned cpu6_execute_one(unsigned trace)
2491
2500
return alu5x_op ();
2492
2501
if (op == 0x67 )
2493
2502
return block_op (0x67 , trace );
2503
+ if (op == 0x6f )
2504
+ return stcc ();
2494
2505
if (op < 0x70 )
2495
2506
return x_op ();
2496
2507
if (op == 0x77 || op == 0x78 )
You can’t perform that action at this time.
0 commit comments