lab5: add assembler and dynamic pipeline system emulator

This commit is contained in:
2026-11-07 20:44:35 +02:00
parent 79a96aea77
commit 36b4596bd4
12 changed files with 401 additions and 7 deletions
+18 -1
View File
@@ -1,9 +1,10 @@
#pragma once
#include <iostream>
#include <iomanip>
#include "config.h"
#if DEBUG == 1
#if PRINT_DEBUG == 1
#if PRINT_DISABLE_PREFIXES == 1
#define pr_debug(...) std::cout << "debug: " << __VA_ARGS__ << "\n"
#define pri_debug(...) std::cout << __VA_ARGS__
@@ -19,6 +20,22 @@
#define prs_debug(...) do {} while (0)
#endif
#if PRINT_INFO == 1
#if PRINT_DISABLE_PREFIXES == 1
#define pr_info(...) std::cout << "info: " << __VA_ARGS__ << "\n"
#define pri_info(...) std::cout << __VA_ARGS__
#define prs_info(...) std::cout << "info: " << __VA_ARGS__
#else
#define pr_info(...) std::cout << "[" << __FILE__ << ":" << __LINE__ << " " << __func__ << "] info: " << __VA_ARGS__ << "\n"
#define pri_info(...) std::cout << __VA_ARGS__
#define prs_info(...) std::cout << "[" << __FILE__ << ":" << __LINE__ << " " << __func__ << "] info: " << __VA_ARGS__
#endif
#else
#define pr_info(...) do {} while (0)
#define pri_info(...) do {} while (0)
#define prs_info(...) do {} while (0)
#endif
#if PRINT_DISABLE_PREFIXES == 1
#define pr_warn(...) std::cout << "warning: " << __VA_ARGS__ << "\n"
#else