From a8195a3fbadf20c93a28b636492a59bdaca58602 Mon Sep 17 00:00:00 2001 From: Christian Klein Date: Mon, 28 Dec 2020 18:01:06 +0100 Subject: [PATCH] Updated Examples and tweaked some stuff form mobile layout --- out/css/pc.css | 19 ++++++++++++++++++- out/examples/adding.json | 2 +- out/examples/simple-counter.json | 2 +- 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/out/css/pc.css b/out/css/pc.css index 67bf4f3..2ac395e 100644 --- a/out/css/pc.css +++ b/out/css/pc.css @@ -614,12 +614,17 @@ th.address { cursor: pointer; } +.modal .scroller table { + width: 100%; +} + @media(max-width: 1000px){ .pc{ grid-template-rows: auto max-content auto; - justify-items: center; + justify-items: center; + overflow-x: hidden; } .pc .section { @@ -732,4 +737,16 @@ th.address { text-align: center; } +} + + +@media(max-width: 800px){ + .pc .cu .input-row { + display: block; + padding-left: 2rem; + } + + .pc .cu .input-row label { + display: block; + } } \ No newline at end of file diff --git a/out/examples/adding.json b/out/examples/adding.json index adf0536..875497a 100644 --- a/out/examples/adding.json +++ b/out/examples/adding.json @@ -1 +1 @@ -{"model-version":1,"pc":{"addressBus":0,"dataBus":0,"instructionReg":0,"programmCounter":0,"uCounter":0,"accumulator":0,"ram":[100010,300000,200010,100011,400000,200011,600008,500000,0,0,7,3,0]},"uCode":["pc2ab","ram2db","db2ir","pcInc","ir2uc","n","n","n","n","n","ir2ab","ram2db","db2acc","ucReset","n","n","n","n","n","n","acc2db","ir2ab","db2ram","ucReset","n","n","n","n","n","n","accInc","ucReset","n","n","n","n","n","n","n","n","accDec","ucReset","n","n","n","n","n","n","n","n","ir2pc","ucReset","n","n","n","n","n","n","n","n","ir2pciacceq0","ucReset","n","n","n","n","n","n","n","n"],"autoscroll":true} \ No newline at end of file +{"model-version":2,"pc":{"addressBus":0,"dataBus":0,"instructionReg":0,"programmCounter":0,"uCounter":0,"accumulator":0,"ram":[[100010,"LoadA #010"],[300000,"IncA"],[200010,"StoreA #010"],[100011,"LoadA #011"],[400000,"DecA"],[200011,"StoreA #011"],[600008,"If #011 == 0"],[500000,"Otherwise JMP #000"],[0,"END OF PROGRAMM"],[0,""],[8,"Value A & Result"],[3,"Value B"]]},"uCode":["pc2ab","ram2db","db2ir","pcInc","ir2uc","n","n","n","n","n","ir2ab","ram2db","db2acc","ucReset","n","n","n","n","n","n","acc2db","ir2ab","db2ram","ucReset","n","n","n","n","n","n","accInc","ucReset","n","n","n","n","n","n","n","n","accDec","ucReset","n","n","n","n","n","n","n","n","ir2pc","ucReset","n","n","n","n","n","n","n","n","ir2pciacceq0","ucReset","n","n","n","n","n","n","n","n"],"autoscroll":true} \ No newline at end of file diff --git a/out/examples/simple-counter.json b/out/examples/simple-counter.json index acc2ac8..ed76b35 100644 --- a/out/examples/simple-counter.json +++ b/out/examples/simple-counter.json @@ -1 +1 @@ -{"model-version":1,"pc":{"addressBus":0,"dataBus":0,"instructionReg":0,"programmCounter":0,"uCounter":0,"accumulator":0,"ram":[100005,300000,200005,400000,0,5,0,0,0,0,0]},"uCode":["pc2ab","ram2db","db2ir","pcInc","ir2uc","n","n","n","n","n","ir2ab","ram2db","db2acc","ucReset","n","n","n","n","n","n","acc2db","ir2ab","db2ram","ucReset","n","n","n","n","n","n","accInc","ucReset","n","n","n","n","n","n","n","n","ir2pc","ucReset","n","n","n","n","n","n","n","n"],"autoscroll":true} \ No newline at end of file +{"model-version":2,"pc":{"addressBus":0,"dataBus":0,"instructionReg":0,"programmCounter":0,"uCounter":0,"accumulator":0,"ram":[[100005,"LoadA #005"],[300000,"IncA"],[200005,"StoreA #005"],[400000,"JMP #000"],[0,"END OF PROGRAM"],[5,"val"],[0,""],[0,""],[0,""],[0,""],[0,""]]},"uCode":["pc2ab","ram2db","db2ir","pcInc","ir2uc","n","n","n","n","n","ir2ab","ram2db","db2acc","ucReset","n","n","n","n","n","n","acc2db","ir2ab","db2ram","ucReset","n","n","n","n","n","n","accInc","ucReset","n","n","n","n","n","n","n","n","ir2pc","ucReset","n","n","n","n","n","n","n","n"],"autoscroll":true} \ No newline at end of file