Simple procedure...

This commit is contained in:
xolatile
2024-07-16 12:25:29 -04:00
parent d8162ab9da
commit 0a55ef2da4
3 changed files with 41 additions and 3 deletions

View File

@ -162,6 +162,7 @@ int main (void) {
scope_label = 1;
} else if ((index >= token_add) && (index <= token_fldz)) {
tokenize (index + ADD);
if (index == token_call) tokenize (REL);
scope_instruction = 1;
} else if ((index >= token_al) && (index <= token_r15)) {
if (scope_instruction) {

View File

@ -3,14 +3,17 @@ nop mov edi 1
nop mov esi heyo
nop mov edx 5
nop syscall
call c
nop mov eax 60
nop mov edi 60
nop syscall
. c
nop mov eax 1
nop mov edi 1
nop mov esi cyaa
nop mov edx 5
nop syscall
nop mov eax 60
nop mov edi 60
nop syscall
nop retn
nop
. heyo db 5 72 69 89 79 10
. cyaa db 5 67 89 65 65 10