Skip to content

Commit

Permalink
Change call to _start instruction to jump
Browse files Browse the repository at this point in the history
  • Loading branch information
MusicFreak456 committed Dec 14, 2024
1 parent 8142155 commit 1fa4a71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/assembler/assembler.ml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let create_program_buffer_with_start_jump program_size =
let buffer, position = create_program_buffer (program_size + 2) in
let start_label = create_dummy_expression "_start" in
let call_instruction =
create_instruction "call" [NameRefExpr start_label] in
create_instruction "jp" [NameRefExpr start_label] in
encode_instruction (buffer, position) call_instruction

let encode_instruction_block (buffer, position) instruction_block =
Expand Down

0 comments on commit 1fa4a71

Please sign in to comment.