/* 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
*/
/* gas x86_64 assembly, to stdout */
#include
#include
#include
#include
#include
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;
}