File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -13,22 +13,21 @@ export interface ControlLines {
1313 HALT : Signal
1414}
1515
16- const initialControlLines : ControlLines = {
17- RD : 0b0 ,
18- WR : 0b0 ,
19- MREQ : 0b0 ,
20- IORQ : 0b0 ,
21- CLK : 0b0 ,
22- WAIT : 0b0 ,
23- IRQ : 0b0 ,
24- HALT : 0b0 ,
25- }
26-
2716export class Bus {
2817 // TODO: validate data and address
2918 readonly data$ = new BehaviorSubject ( 0x00 )
3019 readonly address$ = new BehaviorSubject ( 0x00 )
31- readonly control$ = new BehaviorSubject ( initialControlLines )
20+
21+ readonly control$ = new BehaviorSubject < ControlLines > ( {
22+ RD : 0b0 ,
23+ WR : 0b0 ,
24+ MREQ : 0b0 ,
25+ IORQ : 0b0 ,
26+ CLK : 0b0 ,
27+ WAIT : 0b0 ,
28+ IRQ : 0b0 ,
29+ HALT : 0b0 ,
30+ } )
3231
3332 readonly clockRise$ : Observable < ControlLines > = this . control$ . pipe (
3433 filter ( ( control , index ) => ( index && control . CLK ) ) ,
You can’t perform that action at this time.
0 commit comments