diff --git a/ass2/simulator/.qtcreator/CMakeLists.txt.user b/ass2/simulator/.qtcreator/CMakeLists.txt.user index d766c86..00fccf8 100644 --- a/ass2/simulator/.qtcreator/CMakeLists.txt.user +++ b/ass2/simulator/.qtcreator/CMakeLists.txt.user @@ -1,6 +1,6 @@ - + EnvironmentId diff --git a/ass2/simulator/CMakeLists.txt b/ass2/simulator/CMakeLists.txt index b1719c4..6359cf8 100644 --- a/ass2/simulator/CMakeLists.txt +++ b/ass2/simulator/CMakeLists.txt @@ -16,6 +16,9 @@ qt_add_executable(simulator device.h device.cpp opcode.h opcode.cpp + executor.h executor.cpp + loader.h loader.cpp + ) target_link_libraries(simulator diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/codemodel-v2-fc5483802601394ec595.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/codemodel-v2-bf109316b2adb0d27109.json similarity index 91% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/codemodel-v2-fc5483802601394ec595.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/codemodel-v2-bf109316b2adb0d27109.json index 43bc05f..ce48c4e 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/codemodel-v2-fc5483802601394ec595.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/codemodel-v2-bf109316b2adb0d27109.json @@ -7,7 +7,7 @@ { "build" : ".", "hasInstallRule" : true, - "jsonFile" : "directory-.-Debug-b6d99062396e1794a7ce.json", + "jsonFile" : "directory-.-Debug-37186cc2dcdc365a64e7.json", "minimumCMakeVersion" : { "string" : "3.16" @@ -44,7 +44,7 @@ { "directoryIndex" : 0, "id" : "simulator::@6890427a1f51a3e7e1df", - "jsonFile" : "target-simulator-Debug-0cbdc686daa89d68b1d7.json", + "jsonFile" : "target-simulator-Debug-2b3217783aa5062c29e1.json", "name" : "simulator", "projectIndex" : 0 }, diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/directory-.-Debug-9e88f268bb4c5fb675f4.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/directory-.-Debug-37186cc2dcdc365a64e7.json similarity index 95% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/directory-.-Debug-9e88f268bb4c5fb675f4.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/directory-.-Debug-37186cc2dcdc365a64e7.json index 4b8072a..d920542 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/directory-.-Debug-9e88f268bb4c5fb675f4.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/directory-.-Debug-37186cc2dcdc365a64e7.json @@ -17,13 +17,13 @@ { "command" : 0, "file" : 0, - "line" : 29, + "line" : 31, "parent" : 0 }, { "command" : 0, "file" : 0, - "line" : 40, + "line" : 42, "parent" : 0 } ] diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/index-2025-11-24T18-29-39-0158.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/index-2025-12-07T08-37-00-0253.json similarity index 92% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/index-2025-11-24T18-29-39-0158.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/index-2025-12-07T08-37-00-0253.json index da92b46..ce4e33a 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/index-2025-11-24T18-29-39-0158.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/index-2025-12-07T08-37-00-0253.json @@ -26,7 +26,7 @@ "objects" : [ { - "jsonFile" : "codemodel-v2-fc5483802601394ec595.json", + "jsonFile" : "codemodel-v2-bf109316b2adb0d27109.json", "kind" : "codemodel", "version" : { @@ -77,7 +77,7 @@ }, "codemodel-v2" : { - "jsonFile" : "codemodel-v2-fc5483802601394ec595.json", + "jsonFile" : "codemodel-v2-bf109316b2adb0d27109.json", "kind" : "codemodel", "version" : { diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/target-simulator-Debug-44f8bd757c2b053c3c98.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/target-simulator-Debug-2b3217783aa5062c29e1.json similarity index 96% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/target-simulator-Debug-44f8bd757c2b053c3c98.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/target-simulator-Debug-2b3217783aa5062c29e1.json index b8b0ba5..9b5daf2 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/target-simulator-Debug-44f8bd757c2b053c3c98.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/target-simulator-Debug-2b3217783aa5062c29e1.json @@ -71,13 +71,13 @@ { "command" : 4, "file" : 1, - "line" : 29, + "line" : 31, "parent" : 0 }, { "command" : 5, "file" : 1, - "line" : 21, + "line" : 23, "parent" : 0 }, { @@ -292,7 +292,8 @@ 2, 6, 8, - 10 + 10, + 12 ] } ], @@ -383,8 +384,8 @@ "sourceIndexes" : [ 0, - 11, - 12 + 13, + 14 ] }, { @@ -395,7 +396,8 @@ 2, 6, 8, - 10 + 10, + 12 ] }, { @@ -405,7 +407,8 @@ 3, 5, 7, - 9 + 9, + 11 ] }, { @@ -419,7 +422,7 @@ "name" : "CMake Rules", "sourceIndexes" : [ - 13 + 15 ] } ], @@ -487,6 +490,17 @@ "path" : "opcode.cpp", "sourceGroupIndex" : 1 }, + { + "backtrace" : 4, + "path" : "executor.h", + "sourceGroupIndex" : 2 + }, + { + "backtrace" : 4, + "compileGroupIndex" : 0, + "path" : "executor.cpp", + "sourceGroupIndex" : 1 + }, { "backtrace" : 0, "isGenerated" : true, diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/codemodel-v2-8462ebb8de7ac0ba3995.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/codemodel-v2-9908d093f7d320a6f887.json similarity index 91% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/codemodel-v2-8462ebb8de7ac0ba3995.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/codemodel-v2-9908d093f7d320a6f887.json index 91d772c..314b4d9 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/codemodel-v2-8462ebb8de7ac0ba3995.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/codemodel-v2-9908d093f7d320a6f887.json @@ -7,7 +7,7 @@ { "build" : ".", "hasInstallRule" : true, - "jsonFile" : "directory-.-Debug-9e88f268bb4c5fb675f4.json", + "jsonFile" : "directory-.-Debug-b087ac99b4952b24d922.json", "minimumCMakeVersion" : { "string" : "3.16" @@ -44,7 +44,7 @@ { "directoryIndex" : 0, "id" : "simulator::@6890427a1f51a3e7e1df", - "jsonFile" : "target-simulator-Debug-44f8bd757c2b053c3c98.json", + "jsonFile" : "target-simulator-Debug-edef6bab040a42101471.json", "name" : "simulator", "projectIndex" : 0 }, diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/directory-.-Debug-b6d99062396e1794a7ce.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/directory-.-Debug-b087ac99b4952b24d922.json similarity index 95% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/directory-.-Debug-b6d99062396e1794a7ce.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/directory-.-Debug-b087ac99b4952b24d922.json index f362aa4..d92f347 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/directory-.-Debug-b6d99062396e1794a7ce.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/directory-.-Debug-b087ac99b4952b24d922.json @@ -17,13 +17,13 @@ { "command" : 0, "file" : 0, - "line" : 28, + "line" : 32, "parent" : 0 }, { "command" : 0, "file" : 0, - "line" : 39, + "line" : 43, "parent" : 0 } ] diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/index-2025-11-27T13-24-51-0967.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/index-2025-12-07T08-37-15-0594.json similarity index 92% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/index-2025-11-27T13-24-51-0967.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/index-2025-12-07T08-37-15-0594.json index aeda707..73bf779 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/index-2025-11-27T13-24-51-0967.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/index-2025-12-07T08-37-15-0594.json @@ -26,7 +26,7 @@ "objects" : [ { - "jsonFile" : "codemodel-v2-8462ebb8de7ac0ba3995.json", + "jsonFile" : "codemodel-v2-9908d093f7d320a6f887.json", "kind" : "codemodel", "version" : { @@ -77,7 +77,7 @@ }, "codemodel-v2" : { - "jsonFile" : "codemodel-v2-8462ebb8de7ac0ba3995.json", + "jsonFile" : "codemodel-v2-9908d093f7d320a6f887.json", "kind" : "codemodel", "version" : { diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/target-simulator-Debug-0cbdc686daa89d68b1d7.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/target-simulator-Debug-edef6bab040a42101471.json similarity index 92% rename from ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/target-simulator-Debug-0cbdc686daa89d68b1d7.json rename to ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/target-simulator-Debug-edef6bab040a42101471.json index b35f757..1874530 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply.prev/target-simulator-Debug-0cbdc686daa89d68b1d7.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.cmake/api/v1/reply/target-simulator-Debug-edef6bab040a42101471.json @@ -71,13 +71,13 @@ { "command" : 4, "file" : 1, - "line" : 28, + "line" : 32, "parent" : 0 }, { "command" : 5, "file" : 1, - "line" : 20, + "line" : 24, "parent" : 0 }, { @@ -291,7 +291,10 @@ 1, 2, 6, - 8 + 8, + 10, + 12, + 14 ] } ], @@ -382,8 +385,8 @@ "sourceIndexes" : [ 0, - 9, - 10 + 15, + 16 ] }, { @@ -393,7 +396,10 @@ 1, 2, 6, - 8 + 8, + 10, + 12, + 14 ] }, { @@ -402,7 +408,10 @@ [ 3, 5, - 7 + 7, + 9, + 11, + 13 ] }, { @@ -416,7 +425,7 @@ "name" : "CMake Rules", "sourceIndexes" : [ - 11 + 17 ] } ], @@ -473,6 +482,39 @@ "path" : "device.cpp", "sourceGroupIndex" : 1 }, + { + "backtrace" : 4, + "path" : "opcode.h", + "sourceGroupIndex" : 2 + }, + { + "backtrace" : 4, + "compileGroupIndex" : 0, + "path" : "opcode.cpp", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 4, + "path" : "executor.h", + "sourceGroupIndex" : 2 + }, + { + "backtrace" : 4, + "compileGroupIndex" : 0, + "path" : "executor.cpp", + "sourceGroupIndex" : 1 + }, + { + "backtrace" : 4, + "path" : "loader.h", + "sourceGroupIndex" : 2 + }, + { + "backtrace" : 4, + "compileGroupIndex" : 0, + "path" : "loader.cpp", + "sourceGroupIndex" : 1 + }, { "backtrace" : 0, "isGenerated" : true, diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_deps b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_deps index c057401..ccc5efd 100644 Binary files a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_deps and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_deps differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_log b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_log index 5817342..552ccf2 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_log +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.ninja_log @@ -1,38 +1,12 @@ # ninja log v6 -16 224 1764073111478991803 CMakeFiles/simulator.dir/device.cpp.o 36fc5c8cf014f45b -15 1296 1764073111477991803 CMakeFiles/simulator.dir/mainwindow.cpp.o e3901bb2e4f9b516 -197 1160 1763912062733203284 CMakeFiles/simulator.dir/simulator_autogen/mocs_compilation.cpp.o 5301f473905a545f -3 15 1764073111465991803 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/mocs_compilation.cpp c193a23cfe79571d -197 384 1763912062733203284 CMakeFiles/simulator.dir/machine.cpp.o 7030a03f8cbf1ad0 -197 1417 1763912062733203284 CMakeFiles/simulator.dir/main.cpp.o 9ebba9b7abc4cbf1 -3 15 1764073111465991803 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/timestamp c193a23cfe79571d -1296 1566 1764073112758991795 simulator fb8524dc610350ca -3 15 1764073111465991803 simulator_autogen/mocs_compilation.cpp c193a23cfe79571d -3 15 1764073111465991803 simulator_autogen/timestamp c193a23cfe79571d -3 201 1765010356075067547 simulator_autogen/timestamp c193a23cfe79571d -3 201 1765010356075067547 simulator_autogen/mocs_compilation.cpp c193a23cfe79571d -3 201 1765010356075067547 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/timestamp c193a23cfe79571d -3 201 1765010356075067547 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/mocs_compilation.cpp c193a23cfe79571d 201 521 1765010356080064621 CMakeFiles/simulator.dir/device.cpp.o 36fc5c8cf014f45b -201 1336 1765010356080064621 CMakeFiles/simulator.dir/main.cpp.o 9ebba9b7abc4cbf1 -201 1347 1765010356080064621 CMakeFiles/simulator.dir/simulator_autogen/mocs_compilation.cpp.o 5301f473905a545f -201 1945 1765010356080064621 CMakeFiles/simulator.dir/mainwindow.cpp.o e3901bb2e4f9b516 -2 12 1765010490358892516 simulator_autogen/timestamp c193a23cfe79571d -2 12 1765010490358892516 simulator_autogen/mocs_compilation.cpp c193a23cfe79571d -2 12 1765010490358892516 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/timestamp c193a23cfe79571d -2 12 1765010490358892516 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/mocs_compilation.cpp c193a23cfe79571d +14 1383 1765010511012053000 CMakeFiles/simulator.dir/mainwindow.cpp.o e3901bb2e4f9b516 12 22 1765010490368890036 CMakeFiles/simulator.dir/opcode.cpp.o da65f589ec5e1f76 -12 1340 1765010490368890036 CMakeFiles/simulator.dir/mainwindow.cpp.o e3901bb2e4f9b516 -1 12 1765010498397941821 simulator_autogen/timestamp c193a23cfe79571d -1 12 1765010498397941821 simulator_autogen/mocs_compilation.cpp c193a23cfe79571d -1 12 1765010498397941821 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/timestamp c193a23cfe79571d -1 12 1765010498397941821 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/mocs_compilation.cpp c193a23cfe79571d -13 196 1765010498409938977 CMakeFiles/simulator.dir/machine.cpp.o 7030a03f8cbf1ad0 -12 1363 1765010498408939214 CMakeFiles/simulator.dir/mainwindow.cpp.o e3901bb2e4f9b516 -2 14 1765010511000055645 simulator_autogen/timestamp c193a23cfe79571d -2 14 1765010511000055645 simulator_autogen/mocs_compilation.cpp c193a23cfe79571d -2 14 1765010511000055645 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/timestamp c193a23cfe79571d +201 1347 1765010356080064621 CMakeFiles/simulator.dir/simulator_autogen/mocs_compilation.cpp.o 5301f473905a545f 2 14 1765010511000055645 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/mocs_compilation.cpp c193a23cfe79571d 14 192 1765010511012053000 CMakeFiles/simulator.dir/machine.cpp.o 7030a03f8cbf1ad0 -14 1383 1765010511012053000 CMakeFiles/simulator.dir/mainwindow.cpp.o e3901bb2e4f9b516 +201 1336 1765010356080064621 CMakeFiles/simulator.dir/main.cpp.o 9ebba9b7abc4cbf1 +2 14 1765010511000055645 /home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/timestamp c193a23cfe79571d 1383 1623 1765010512380751634 simulator 9e4eca252dc331ef +2 14 1765010511000055645 simulator_autogen/mocs_compilation.cpp c193a23cfe79571d +2 14 1765010511000055645 simulator_autogen/timestamp c193a23cfe79571d diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/executor.cpp.49C8014B8C305999.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/executor.cpp.49C8014B8C305999.idx new file mode 100644 index 0000000..eac3041 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/executor.cpp.49C8014B8C305999.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/executor.h.E9A837EC0BDCD453.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/executor.h.E9A837EC0BDCD453.idx new file mode 100644 index 0000000..b203831 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/executor.h.E9A837EC0BDCD453.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.cpp.A594640CB9A0C658.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.cpp.A594640CB9A0C658.idx new file mode 100644 index 0000000..2d20562 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.cpp.A594640CB9A0C658.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.cpp.E84C7DA30F06D692.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.cpp.E84C7DA30F06D692.idx new file mode 100644 index 0000000..470c423 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.cpp.E84C7DA30F06D692.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.h.0750D488C9967C0E.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.h.0750D488C9967C0E.idx new file mode 100644 index 0000000..636bb0c Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.h.0750D488C9967C0E.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.h.496A63EDF895C00B.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.h.496A63EDF895C00B.idx new file mode 100644 index 0000000..70dd247 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/loader.h.496A63EDF895C00B.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.cpp.FD5DF53B10242751.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.cpp.FD5DF53B10242751.idx index ba30a7f..ba0588b 100644 Binary files a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.cpp.FD5DF53B10242751.idx and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.cpp.FD5DF53B10242751.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.h.D09D611E77E172BE.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.h.D09D611E77E172BE.idx index 59b1b27..8f498c3 100644 Binary files a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.h.D09D611E77E172BE.idx and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/machine.h.D09D611E77E172BE.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.cpp.015FD9F3D1CBD5AF.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.cpp.015FD9F3D1CBD5AF.idx index 3d0b9df..ce87531 100644 Binary files a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.cpp.015FD9F3D1CBD5AF.idx and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.cpp.015FD9F3D1CBD5AF.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.h.2460D9A23E2279B0.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.h.2460D9A23E2279B0.idx index e12b481..15a07ba 100644 Binary files a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.h.2460D9A23E2279B0.idx and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/opcode.h.2460D9A23E2279B0.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/std_thread.h.CAAD0C2FDC550D68.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/std_thread.h.CAAD0C2FDC550D68.idx new file mode 100644 index 0000000..aec4835 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/std_thread.h.CAAD0C2FDC550D68.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/this_thread_sleep.h.23766C414BE25E0F.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/this_thread_sleep.h.23766C414BE25E0F.idx new file mode 100644 index 0000000..1719659 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/this_thread_sleep.h.23766C414BE25E0F.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/thread.B3E6C045DB9045EA.idx b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/thread.B3E6C045DB9045EA.idx new file mode 100644 index 0000000..d743427 Binary files /dev/null and b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/.cache/clangd/index/thread.B3E6C045DB9045EA.idx differ diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/compile_commands.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/compile_commands.json index 5d1f79e..bd66ded 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/compile_commands.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd/compile_commands.json @@ -1 +1 @@ -[{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/main.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/main.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/machine.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/machine.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/device.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/device.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/opcode.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/opcode.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/machine.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/machine.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/device.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/device.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/opcode.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/opcode.h"}] \ No newline at end of file +[{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/main.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/main.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/machine.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/machine.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/device.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/device.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/opcode.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/opcode.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/executor.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/executor.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++","/home/aljaz/Desktop/spo/ass2/simulator/loader.cpp"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/loader.cpp"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/machine.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/machine.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/device.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/device.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/opcode.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/opcode.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/executor.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/executor.h"},{"arguments":["clang","-Wno-documentation-unknown-command","-Wno-unknown-warning-option","-Wno-unknown-pragmas","-nostdinc","-nostdinc++","-DQT_QML_DEBUG","-g","-fdiagnostics-color=always","-fPIC","-fsyntax-only","-m64","--target=x86_64-linux-gnu","-std=gnu++17","-DQT_CORE_LIB","-DQT_GUI_LIB","-DQT_WIDGETS_LIB","-DQ_CREATOR_RUN","-DQT_ANNOTATE_FUNCTION(x)=__attribute__((annotate(#x)))","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders","-I/home/aljaz/Qt/Tools/QtCreator/share/qtcreator/cplusplus/wrappedQtHeaders/QtCore","-I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtCore","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets","-isystem","/home/aljaz/Qt/6.10.1/gcc_64/include/QtGui","-isystem","/usr/include/c++/13","-isystem","/usr/include/x86_64-linux-gnu/c++/13","-isystem","/usr/include/c++/13/backward","-isystem","/usr/local/include","-isystem","/home/aljaz/Qt/Tools/QtCreator/libexec/qtcreator/clang/lib/clang/21/include","-isystem","/usr/include/x86_64-linux-gnu","-isystem","/usr/include","-fmessage-length=0","-fdiagnostics-show-note-include-stack","-fretain-comments-from-system-headers","-fmacro-backtrace-limit=0","-ferror-limit=1000","-x","c++-header","/home/aljaz/Desktop/spo/ass2/simulator/loader.h"],"directory":"/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/.qtc_clangd","file":"/home/aljaz/Desktop/spo/ass2/simulator/loader.h"}] \ No newline at end of file diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/CMakeFiles/simulator_autogen.dir/AutogenInfo.json b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/CMakeFiles/simulator_autogen.dir/AutogenInfo.json index 78b3270..e0b95e4 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/CMakeFiles/simulator_autogen.dir/AutogenInfo.json +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/CMakeFiles/simulator_autogen.dir/AutogenInfo.json @@ -420,6 +420,18 @@ "EWIEGA46WW/moc_device.cpp", null ], + [ + "/home/aljaz/Desktop/spo/ass2/simulator/executor.h", + "MU", + "EWIEGA46WW/moc_executor.cpp", + null + ], + [ + "/home/aljaz/Desktop/spo/ass2/simulator/loader.h", + "MU", + "EWIEGA46WW/moc_loader.cpp", + null + ], [ "/home/aljaz/Desktop/spo/ass2/simulator/machine.h", "MU", @@ -498,6 +510,8 @@ "SOURCES" : [ [ "/home/aljaz/Desktop/spo/ass2/simulator/device.cpp", "MU", null ], + [ "/home/aljaz/Desktop/spo/ass2/simulator/executor.cpp", "MU", null ], + [ "/home/aljaz/Desktop/spo/ass2/simulator/loader.cpp", "MU", null ], [ "/home/aljaz/Desktop/spo/ass2/simulator/machine.cpp", "MU", null ], [ "/home/aljaz/Desktop/spo/ass2/simulator/main.cpp", "MU", null ], [ "/home/aljaz/Desktop/spo/ass2/simulator/mainwindow.cpp", "MU", null ], diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/Testing/Temporary/LastTest.log b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/Testing/Temporary/LastTest.log index eca443c..b03a1e2 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/Testing/Temporary/LastTest.log +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/Testing/Temporary/LastTest.log @@ -1,3 +1,3 @@ -Start testing: Dec 06 09:36 CET +Start testing: Dec 07 09:37 CET ---------------------------------------------------------- -End testing: Dec 06 09:36 CET +End testing: Dec 07 09:37 CET diff --git a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/build.ninja b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/build.ninja index 49711fa..ec0c7f0 100644 --- a/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/build.ninja +++ b/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/build.ninja @@ -97,6 +97,22 @@ build CMakeFiles/simulator.dir/opcode.cpp.o: CXX_COMPILER__simulator_unscanned_D OBJECT_DIR = CMakeFiles/simulator.dir OBJECT_FILE_DIR = CMakeFiles/simulator.dir +build CMakeFiles/simulator.dir/executor.cpp.o: CXX_COMPILER__simulator_unscanned_Debug /home/aljaz/Desktop/spo/ass2/simulator/executor.cpp || cmake_object_order_depends_target_simulator + DEFINES = -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB + DEP_FILE = CMakeFiles/simulator.dir/executor.cpp.o.d + FLAGS = -DQT_QML_DEBUG -g -fdiagnostics-color=always -fPIC + INCLUDES = -I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include -isystem /home/aljaz/Qt/6.10.1/gcc_64/include/QtCore -isystem /home/aljaz/Qt/6.10.1/gcc_64/include -isystem /home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++ -isystem /home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets -isystem /home/aljaz/Qt/6.10.1/gcc_64/include/QtGui + OBJECT_DIR = CMakeFiles/simulator.dir + OBJECT_FILE_DIR = CMakeFiles/simulator.dir + +build CMakeFiles/simulator.dir/loader.cpp.o: CXX_COMPILER__simulator_unscanned_Debug /home/aljaz/Desktop/spo/ass2/simulator/loader.cpp || cmake_object_order_depends_target_simulator + DEFINES = -DQT_CORE_LIB -DQT_GUI_LIB -DQT_WIDGETS_LIB + DEP_FILE = CMakeFiles/simulator.dir/loader.cpp.o.d + FLAGS = -DQT_QML_DEBUG -g -fdiagnostics-color=always -fPIC + INCLUDES = -I/home/aljaz/Desktop/spo/ass2/simulator/build/Desktop_Qt_6_10_1-Debug/simulator_autogen/include -isystem /home/aljaz/Qt/6.10.1/gcc_64/include/QtCore -isystem /home/aljaz/Qt/6.10.1/gcc_64/include -isystem /home/aljaz/Qt/6.10.1/gcc_64/mkspecs/linux-g++ -isystem /home/aljaz/Qt/6.10.1/gcc_64/include/QtWidgets -isystem /home/aljaz/Qt/6.10.1/gcc_64/include/QtGui + OBJECT_DIR = CMakeFiles/simulator.dir + OBJECT_FILE_DIR = CMakeFiles/simulator.dir + # ============================================================================= # Link build statements for EXECUTABLE target simulator @@ -105,7 +121,7 @@ build CMakeFiles/simulator.dir/opcode.cpp.o: CXX_COMPILER__simulator_unscanned_D ############################################# # Link the executable simulator -build simulator: CXX_EXECUTABLE_LINKER__simulator_Debug CMakeFiles/simulator.dir/simulator_autogen/mocs_compilation.cpp.o CMakeFiles/simulator.dir/main.cpp.o CMakeFiles/simulator.dir/mainwindow.cpp.o CMakeFiles/simulator.dir/machine.cpp.o CMakeFiles/simulator.dir/device.cpp.o CMakeFiles/simulator.dir/opcode.cpp.o | /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Widgets.so.6.10.1 /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Gui.so.6.10.1 /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Core.so.6.10.1 || simulator_autogen simulator_autogen_timestamp_deps +build simulator: CXX_EXECUTABLE_LINKER__simulator_Debug CMakeFiles/simulator.dir/simulator_autogen/mocs_compilation.cpp.o CMakeFiles/simulator.dir/main.cpp.o CMakeFiles/simulator.dir/mainwindow.cpp.o CMakeFiles/simulator.dir/machine.cpp.o CMakeFiles/simulator.dir/device.cpp.o CMakeFiles/simulator.dir/opcode.cpp.o CMakeFiles/simulator.dir/executor.cpp.o CMakeFiles/simulator.dir/loader.cpp.o | /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Widgets.so.6.10.1 /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Gui.so.6.10.1 /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Core.so.6.10.1 || simulator_autogen simulator_autogen_timestamp_deps FLAGS = -DQT_QML_DEBUG -g LINK_LIBRARIES = -Wl,-rpath,/home/aljaz/Qt/6.10.1/gcc_64/lib: /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Widgets.so.6.10.1 /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Gui.so.6.10.1 /usr/lib/x86_64-linux-gnu/libGLX.so /usr/lib/x86_64-linux-gnu/libOpenGL.so /home/aljaz/Qt/6.10.1/gcc_64/lib/libQt6Core.so.6.10.1 -Wl,-rpath-link,/home/aljaz/Qt/6.10.1/gcc_64/lib OBJECT_DIR = CMakeFiles/simulator.dir diff --git a/ass2/simulator/executor.cpp b/ass2/simulator/executor.cpp new file mode 100644 index 0000000..e38c4bc --- /dev/null +++ b/ass2/simulator/executor.cpp @@ -0,0 +1,27 @@ +#include "executor.h" +#include "machine.cpp" +#include +#include + +Executor::Executor() {} + +void Executor::start() { + running = true; + while (running) { + machine->execute(); + std::this_thread::sleep_for(std::chrono::milliseconds(1)); + } +} + + +void Executor::stop() { + running = false; +} + +bool Executor::isRunning() { + return running; +} + +void Executor::step() { + machine->execute(); +} diff --git a/ass2/simulator/executor.h b/ass2/simulator/executor.h new file mode 100644 index 0000000..99cf6f4 --- /dev/null +++ b/ass2/simulator/executor.h @@ -0,0 +1,26 @@ +#ifndef EXECUTOR_H +#define EXECUTOR_H + +class Machine; + +class Executor +{ +private: + bool running = false; + Machine* machine; +public: + Executor(); + // Zažene oz. nadaljuje samodejno izvajanje. + void start(); + + // Zaustavi samodejno izvajanje. + void stop(); + + // Pove, ali je samodejno izvajanje trenutno v teku. + bool isRunning(); + + // Izvede en ukaz. + void step(); +}; + +#endif // EXECUTOR_H diff --git a/ass2/simulator/loader.cpp b/ass2/simulator/loader.cpp new file mode 100644 index 0000000..8478618 --- /dev/null +++ b/ass2/simulator/loader.cpp @@ -0,0 +1,3 @@ +#include "loader.h" + +Loader::Loader() {} diff --git a/ass2/simulator/loader.h b/ass2/simulator/loader.h new file mode 100644 index 0000000..4c7fe87 --- /dev/null +++ b/ass2/simulator/loader.h @@ -0,0 +1,19 @@ +#ifndef LOADER_H +#define LOADER_H +#include + +class Loader +{ +public: + Loader(); + // Prebere niz dolžine len + std::string readString(string &r, int len); + + // Prebere en bajt (2 heksadecimalni znaka) + int readByte(std::string &r); + + // Prebere eno "besedo" (3 bajte = 6 heksadecimalnih znakov) + int readWord(std::string &r); +}; + +#endif // LOADER_H diff --git a/ass2/simulator/machine.cpp b/ass2/simulator/machine.cpp index aa780b8..f7c477d 100644 --- a/ass2/simulator/machine.cpp +++ b/ass2/simulator/machine.cpp @@ -181,7 +181,7 @@ bool Machine::execSICF3F4(int opcode, int ni, int operand) { if (ni == 0) { // stari SIC (neposredno in enostavno naslavljanje) UA = (((operand & 0x7F) << 8) | operand2) + x_val; //izracun uporabnega naslova: operand brez bita x + drugi del naslova + x_val - if (UA + 2 > MAX_ADDRESS) { + if (UA < 0 || UA + 2 > MAX_ADDRESS) { invalidAddressing(); return false; } @@ -205,7 +205,7 @@ bool Machine::execSICF3F4(int opcode, int ni, int operand) { invalidAddressing(); } - if (UA + 2 > MAX_ADDRESS) { + if (UA < 0 || UA + 2 > MAX_ADDRESS) { invalidAddressing(); return false; } @@ -237,7 +237,7 @@ bool Machine::execSICF3F4(int opcode, int ni, int operand) { invalidAddressing(); } - if (UA + 2 > MAX_ADDRESS) { + if (UA < 0 || UA + 2 > MAX_ADDRESS) { invalidAddressing(); return false; } @@ -252,149 +252,167 @@ bool Machine::execSICF3F4(int opcode, int ni, int operand) { } } switch (opcode) { - case Opcode::ADD: - setA(getA() + UV); - return true; - case Opcode::AND: - setA(getA() & UV); - return true; - case Opcode::COMP: - temp = getA(); - if (temp < UV) { - setSW(0x40); - } else if (temp == UV) { - setSW(0x0); - } else { - setSW(0x80); - } - return true; - break; - case Opcode::DIV: - if (UV == 0) { - cerr << "Error: Divison by zero." << endl; - return false; - } - setA(getA() / UV); - return true; - case Opcode::J: - setPC(UV); - return true; - case Opcode::JEQ: - if (getSW() == 0x00) { + case Opcode::ADD: + setA(getA() + UV); + return true; + case Opcode::AND: + setA(getA() & UV); + return true; + case Opcode::COMP: + temp = getA(); + if (temp < UV) { + setSW(0x40); + } else if (temp == UV) { + setSW(0x0); + } else { + setSW(0x80); + } + return true; + break; + case Opcode::DIV: + if (UV == 0) { + cerr << "Error: Divison by zero." << endl; + return false; + } + setA(getA() / UV); + return true; + case Opcode::J: setPC(UV); - } - return true; - case Opcode::JGT: - if (getSW() == 0x80) { + return true; + case Opcode::JEQ: + if (getSW() == 0x00) { + setPC(UV); + } + return true; + case Opcode::JGT: + if (getSW() == 0x80) { + setPC(UV); + } + return true; + case Opcode::JLT: + if (getSW() == 0x40) { + setPC(UV); + } + return true; + case Opcode::JSUB: + setL(getPC()); setPC(UV); - } - return true; - case Opcode::JLT: - if (getSW() == 0x40) { - setPC(UV); - } - return true; - case Opcode::JSUB: - setL(getPC()); - setPC(UV); - return true; - case Opcode::LDA: - setA(UV); - return true; - case Opcode::LDB: - setB(UV); - return true; - case Opcode::LDCH: - setA((getA() & 0xFFFF00) | (UV & 0xFF)); - return true; - case Opcode::LDL: - setL(UV); - return true; - case Opcode::LDS: - setS(UV); - return true; - case Opcode::LDT: - setT(UV); - return true; - case Opcode::LDX: - setX(UV); - return true; - case Opcode::MUL: - setA(getA() * UV); - return true; - case Opcode::OR: - setA(getA() | UV); - return true; - case Opcode::RD: - temp = UV & 0xFF; - if (devices[temp] != nullptr) { - setA(devices[temp]->read()); - } - return true; - case Opcode::RSUB: - setPC(getL()); - return true; - case Opcode::STA: - temp = getA(); - memory[UV] = (temp >> 16) & 0xFF; - memory[UV + 1] = (temp >> 8) & 0xFF; - memory[UV + 2] = temp & 0xFF; - return true; - case Opcode::STCH: - temp = getA(); - memory[UV] = temp & 0xFF; - return true; - case Opcode::STL: - temp = getL(); - memory[UV] = (temp >> 16) & 0xFF; - memory[UV + 1] = (temp >> 8) & 0xFF; - memory[UV + 2] = temp & 0xFF; - return true; - case Opcode::STSW: - temp = getSW(); - memory[UV] = (temp >> 16) & 0xFF; - memory[UV + 1] = (temp >> 8) & 0xFF; - memory[UV + 2] = temp & 0xFF; - return true; - case Opcode::STX: - temp = getX(); - memory[UV] = (temp >> 16) & 0xFF; - memory[UV + 1] = (temp >> 8) & 0xFF; - memory[UV + 2] = temp & 0xFF; - return true; - case Opcode::SUB: - setA(getA() - UV); - return true; - case Opcode::TD: - temp = UV & 0xFF; + return true; + case Opcode::LDA: + setA(UV); + return true; + case Opcode::LDB: + setB(UV); + return true; + case Opcode::LDCH: + setA((getA() & 0xFFFF00) | (UV & 0xFF)); + return true; + case Opcode::LDL: + setL(UV); + return true; + case Opcode::LDS: + setS(UV); + return true; + case Opcode::LDT: + setT(UV); + return true; + case Opcode::LDX: + setX(UV); + return true; + case Opcode::MUL: + setA(getA() * UV); + return true; + case Opcode::OR: + setA(getA() | UV); + return true; + case Opcode::RD: + temp = UV & 0xFF; + if (devices[temp] != nullptr) { + setA(devices[temp]->read()); + } + return true; + case Opcode::RSUB: + setPC(getL()); + return true; + case Opcode::STA: + temp = getA(); + memory[UV] = (temp >> 16) & 0xFF; + memory[UV + 1] = (temp >> 8) & 0xFF; + memory[UV + 2] = temp & 0xFF; + return true; + case Opcode::STB: + temp = getB(); + memory[UV] = (temp >> 16) & 0xFF; + memory[UV + 1] = (temp >> 8) & 0xFF; + memory[UV + 2] = temp & 0xFF; + return true; + case Opcode::STS: + temp = getS(); + memory[UV] = (temp >> 16) & 0xFF; + memory[UV + 1] = (temp >> 8) & 0xFF; + memory[UV + 2] = temp & 0xFF; + return true; + case Opcode::STT: + temp = getA(); + memory[UV] = (temp >> 16) & 0xFF; + memory[UV + 1] = (temp >> 8) & 0xFF; + memory[UV + 2] = temp & 0xFF; + return true; + case Opcode::STCH: + temp = getA(); + memory[UV] = temp & 0xFF; + return true; + case Opcode::STL: + temp = getL(); + memory[UV] = (temp >> 16) & 0xFF; + memory[UV + 1] = (temp >> 8) & 0xFF; + memory[UV + 2] = temp & 0xFF; + return true; + case Opcode::STSW: + temp = getSW(); + memory[UV] = (temp >> 16) & 0xFF; + memory[UV + 1] = (temp >> 8) & 0xFF; + memory[UV + 2] = temp & 0xFF; + return true; + case Opcode::STX: + temp = getX(); + memory[UV] = (temp >> 16) & 0xFF; + memory[UV + 1] = (temp >> 8) & 0xFF; + memory[UV + 2] = temp & 0xFF; + return true; + case Opcode::SUB: + setA(getA() - UV); + return true; + case Opcode::TD: + temp = UV & 0xFF; - ready = false; - if (devices[temp] != nullptr) { - ready = devices[temp]->test(); - } - if (ready) { - setSW(0X40); - } else { - setSW(0x00); - } + ready = false; + if (devices[temp] != nullptr) { + ready = devices[temp]->test(); + } + if (ready) { + setSW(0X40); + } else { + setSW(0x00); + } - return true; - case Opcode::TIX: - temp = getX(); - setX(temp + 1); - if (temp < UV) setSW(0x40); - else if (temp == UV) setSW(0x00); - else setSW(0x80); - return true; - case Opcode::WD: - temp = UV & 0xFF; - if (devices[temp] != nullptr) { - devices[temp]->write(getA() & 0xFF); - } - return true; - default: - notImplemented(opcode); - break; + return true; + case Opcode::TIX: + temp = getX(); + setX(temp + 1); + if (temp < UV) setSW(0x40); + else if (temp == UV) setSW(0x00); + else setSW(0x80); + return true; + case Opcode::WD: + temp = UV & 0xFF; + if (devices[temp] != nullptr) { + devices[temp]->write(getA() & 0xFF); + } + return true; + default: + notImplemented(opcode); + break; } return false; } diff --git a/ass2/simulator/machine.h b/ass2/simulator/machine.h index e3715a2..0e4847d 100644 --- a/ass2/simulator/machine.h +++ b/ass2/simulator/machine.h @@ -68,6 +68,8 @@ public: bool execF2(int opcode, int operand); bool execSICF3F4(int opcode, int ni, int operand); + + bool loadSection(Reader r); }; #endif