Skip to content

Commit

Permalink
nop:
Browse files Browse the repository at this point in the history
  • Loading branch information
SHEFOO10 committed Oct 22, 2023
1 parent 3735075 commit 721126e
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
5 changes: 1 addition & 4 deletions bytecodes/00.m
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
push 98
push 402
nop Holberton
pall
nop
3 changes: 2 additions & 1 deletion helper_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,8 @@ void call_func(
else
{
if (
(head == NULL && strcmp(op_code, "pall") != 0)
((head == NULL && strcmp(op_code, "pall") != 0)
&& strcmp(op_code, "nop") != 0)
|| (strcmp(op_code, "swap") == 0 && head->next == NULL))
*mode = 3;
func(&head, line_number);
Expand Down
Binary file modified monty
Binary file not shown.
3 changes: 1 addition & 2 deletions stack_functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,4 @@ void nop(stack_t **stack, unsigned int line_number)
{
(void)stack;
(void)line_number;
return;
}
}

0 comments on commit 721126e

Please sign in to comment.