Skip to content

Commit

Permalink
refactor(core): rename prop
Browse files Browse the repository at this point in the history
  • Loading branch information
exuanbo committed Oct 4, 2024
1 parent 4b80894 commit 68a22d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/core/bus/bus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class Bus {
readonly address$ = new BehaviorSubject(0x00)
readonly control$ = new BehaviorSubject(initialControlLines)

readonly controlOnClockRise$: Observable<ControlLines> = this.control$.pipe(
readonly clockRise$: Observable<ControlLines> = this.control$.pipe(
filter((control, index) => (index && control.CLK)),
share(),
)
Expand Down
4 changes: 2 additions & 2 deletions src/core/cpu/cpu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class Cpu {
RD: 0b1,
MREQ: 0b1,
})
yield this.bus.controlOnClockRise$.pipe(take(1))
yield this.bus.clockRise$.pipe(take(1))
this.bus.setControl({
RD: 0b0,
MREQ: 0b0,
Expand All @@ -37,7 +37,7 @@ export class Cpu {
WR: 0b1,
MREQ: 0b1,
})
yield this.bus.controlOnClockRise$.pipe(take(1))
yield this.bus.clockRise$.pipe(take(1))
this.bus.setControl({
WR: 0b0,
MREQ: 0b0,
Expand Down

0 comments on commit 68a22d4

Please sign in to comment.