blob: a5a435cf23e8519979e2ed37b900076a38b62774 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
/* -------------------------------------------
Copyright (C) 2024-2025 Amlal EL Mahrous, all rights reserved
------------------------------------------- */
/// bugs: 0
/////////////////////////////////////////////////////////////////////////////////////////
// @file 32asm.cxx
// @author EL Mahrouss Amlal
// @brief 32x0 Assembler.
// REMINDER: when dealing with an undefined symbol use (string
// size):LinkerFindSymbol:(string) so that ld will look for it.
/////////////////////////////////////////////////////////////////////////////////////////
#define __ASM_NEED_32x0__ 1
#include <LibCompiler/AE.h>
#include <LibCompiler/Backend/32x0.h>
#include <LibCompiler/PEF.h>
#include <LibCompiler/Parser.h>
/////////////////////
// ANSI ESCAPE CODES
/////////////////////
#define kBlank "\e[0;30m"
#define kRed "\e[0;31m"
#define kWhite "\e[0;97m"
#define kYellow "\e[0;33m"
#define kStdOut (std::cout << kWhite)
#define kStdErr (std::cout << kRed)
/////////////////////////////////////////////////////////////////////////////////////////
// @brief 32x0 Assembler entrypoint, the program/module starts here.
/////////////////////////////////////////////////////////////////////////////////////////
LIBCOMPILER_MODULE(NEAssemblerMain32000) {
return 0;
}
|