-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
3 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,55 +1 @@ | ||
/* | ||
* comcom64 - 64bit command.com | ||
* Copyright (C) 2023-2024 @stsp | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
.text | ||
|
||
.macro asmcfunc_n nm,num | ||
.global _\nm | ||
_\nm: | ||
push %ebp | ||
mov %esp, %ebp | ||
pushal | ||
mov $\num, %ecx | ||
mov %esp, %edx | ||
call dj64_plt_call | ||
popal | ||
pop %ebp | ||
ret | ||
.endm | ||
|
||
#include "plt.inc" | ||
|
||
.macro asmsym nm | ||
.long _\nm | ||
.endm | ||
|
||
#define __ASM(t, n) asmsym n | ||
#define __ASM_FAR(t, n) asmsym n | ||
#define __ASM_NEAR(t, n) asmsym n | ||
#define __ASM_ARR(t, n, l) asmsym n | ||
#define __ASM_ARRI(t, n) asmsym n | ||
#define __ASM_ARRI_F(t, n) asmsym n | ||
#define __ASM_FUNC(n) asmsym n | ||
#define SEMIC | ||
__asm_symtab_start: | ||
#include <glob_asm.h> | ||
__asm_symtab_end: | ||
|
||
#ifdef __ELF__ | ||
.section .note.GNU-stack,"",%progbits | ||
#endif | ||
#include <dj64/plt.S.inc> |