1
0
mirror of https://github.com/aap/pdp6.git synced 2026-01-13 15:27:46 +00:00

implemented XCT

This commit is contained in:
aap 2016-04-18 10:35:47 +02:00
parent b0107ee74a
commit e3aa5af7e8
3 changed files with 19 additions and 8 deletions

11
apr.c
View File

@ -423,6 +423,7 @@ pulse(mc_addr_ack);
pulse(key_rd_wr_ret);
pulse(it0);
pulse(it1);
pulse(it1a);
pulse(ft0);
pulse(ft1a);
pulse(at0);
@ -933,6 +934,13 @@ pulse(ar_ast0){
nextpulse(apr, ar_ast1); // 6-9
}
pulse(xct_t0){
trace("XCT T0\n");
nextpulse(apr, mr_clr); // 5-2
nextpulse(apr, it1a); // 5-3
}
/*
* Priority Interrupt
*/
@ -1259,6 +1267,8 @@ pulse(et3){
nextpulse(apr, blt_t0); // 6-18
if(apr->shift_op)
nextpulse(apr, sht1); // 6-20
if(apr->inst == XCT)
nextpulse(apr, xct_t0); // 5-10
if(AR_SBR)
apr->et4_ar_pse = 1; // 5-5
if(!ET4_INH)
@ -1651,7 +1661,6 @@ pulse(mc_wr_rs){
trace("MC WR RS\n");
if(apr->ma == apr->mas)
apr->mi = apr->mb; // 7-7
print("write %llo to %o\n", apr->mb, apr->ma);
membus1 = apr->mb; // 7-8
membus0 |= MEMBUS_WR_RS; // 7-8
if(!apr->mc_stop)

8
mem
View File

@ -1,6 +1,6 @@
1000: 200000001035
1001: 251000001033
1002: 254200000000
1003: 777773001004
1000: 256000001013
1001: 254200000000
1002: 777773001003
1013: 201000004321
1034: 321321123123
1035: 1001014

8
test.s
View File

@ -17,16 +17,18 @@ PI_SET_ACT = 200
# BLKI APR,TEST
# JRST 4,
# JRST .-2
MOVE 0,BLTTEST
BLT 0,BLTSPC+17
# MOVE 0,BLTTEST
# BLT 0,BLTSPC+17
XCT XCTTEST
JRST 4,
TEST:
-5,,TEST+1
. = . + 10
XCTTEST:
MOVEI 0,4321
BLTSPC:
. = . + 20
APR_PR_RLR:
321321123123
BLTTEST: