| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556 |
- /* tripl/arch/x86_64/do_keyword.c
- *
- * This file is part of tripl.
- *
- * tripl 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.
- *
- * tripl 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 tripl. If not, see <https://www.gnu.org/licenses/>
- */
- /* gas x86_64 assembly, to stdout */
- #include <stdio.h>
- #include <klist.h>
- #include <tripl/tripl.h>
- #include <tripl/limits.h>
- #include <tripl/arch.h>
- extern int x86_64_init_asm(void);
- extern int x86_64_do_asm(char *s, char c);
- extern int x86_64_asm_fin(void);
- int x86_64_init(void) {
- klist_init(&stack);
- return x86_64_init_asm();
- }
- int x86_64_do_keyword(char *s, char c) {
- x86_64_do_asm(s, c);
- return 0;
- }
- int x86_64_fin(void) {
- x86_64_asm_fin();
- return 0;
- }
|