Projekt 5 beendet, ein Krampf

This commit is contained in:
Sven Riwoldt
2023-08-06 10:44:10 +02:00
parent 1cb42461db
commit 3ad3d596b0
3 changed files with 74 additions and 44 deletions

View File

@@ -27,5 +27,10 @@ CHIP Memory {
OUT out[16];
PARTS:
// Put your code here:
DMux4Way(in=load,sel=address[13..14],a=ram1,b=ram2,c=loadscreen,d=loadkeyboard);
Or(a=ram1, b=ram2, out=ramload);
RAM16K(in=in, load=ramload, address=address[0..13], out=outram);
Screen(in=in, load=loadscreen, address=address[0..12], out=outscreen);
Keyboard(out=outkeyb);
Mux4Way16(a=outram, b=outram, c=outscreen, d=outkeyb, sel=address[13..14], out=out);
}