1234567891011121314151617181920212223242526 |
- #ifndef __FINSH_VM_H__
- #define __FINSH_VM_H__
- #include <finsh.h>
- #include "finsh_var.h"
- union finsh_value {
- char char_value;
- short short_value;
- long long_value;
- void* ptr;
- };
- extern union finsh_value* finsh_sp; /* stack pointer */
- extern u_char* finsh_pc; /* PC */
- /* stack */
- extern union finsh_value finsh_vm_stack[FINSH_STACK_MAX];
- /* text segment */
- extern u_char text_segment[FINSH_TEXT_MAX];
- void finsh_vm_run(void);
- //void finsh_disassemble(void);
- #endif
|