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