Implemented vm routines for OP_NOT_*

This commit is contained in:
2023-10-21 23:54:59 +01:00
parent ba57523f3e
commit ae7f0efc85
2 changed files with 42 additions and 0 deletions

View File

@@ -100,4 +100,15 @@ static const pop_f POP_ROUTINES[] = {
[OP_POP_WORD] = vm_pop_word,
};
void vm_not_byte(vm_t *);
void vm_not_hword(vm_t *);
void vm_not_word(vm_t *);
typedef void (*not_f)(vm_t *);
static const not_f NOT_ROUTINES[] = {
[OP_NOT_BYTE] = vm_not_byte,
[OP_NOT_HWORD] = vm_not_hword,
[OP_NOT_WORD] = vm_not_word,
};
#endif