summaryrefslogtreecommitdiffhomepage
path: root/dev/CompilerKit/src/Backend/Assembler32x0.cc
blob: 8478930db7fa95e6fbf4352c8b6f325e46d716b9 (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
/* -------------------------------------------

  Copyright (C) 2024-2025 Amlal EL Mahrouss, all rights reserved

------------------------------------------- */

/// bugs: 0

/////////////////////////////////////////////////////////////////////////////////////////

// @file 32asm.cc
// @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.

/////////////////////////////////////////////////////////////////////////////////////////

#ifndef __ASM_NEED_32x0__
#define __ASM_NEED_32x0__ 1
#endif

#include <CompilerKit/AE.h>
#include <CompilerKit/Frontend.h>
#include <CompilerKit/PEF.h>
#include <CompilerKit/detail/32x0.h>
#include <CompilerKit/utils/CompilerUtils.h>

/////////////////////////////////////////////////////////////////////////////////////////

// @brief 32x0 Assembler entrypoint, the program/module starts here.

/////////////////////////////////////////////////////////////////////////////////////////

NECTI_MODULE(NEAssemblerMain32000) {
  CompilerKit::install_signal(SIGSEGV, Detail::drvi_crash_handler);
  return EXIT_SUCCESS;
}