blob: 0f9492024f7acfdf623ed901c4ac683699e3aa3e (
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, Licensed under Apache 2.0
------------------------------------------- */
/// bugs: 0
/////////////////////////////////////////////////////////////////////////////////////////
// @file 32asm.cc
// @author Amlal El Mahrouss
// @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/impl/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;
}
|