intcode v0.1.0 Intcode

Link to this section Summary

Link to this section Functions

Link to this function

get_address(int, value, relative_base)

get_address(0 | 2, integer(), integer()) :: any()
Link to this function

get_value(int, position, program, relative_base)

get_value(0 | 1 | 2, integer(), [integer()], integer()) :: integer()
Link to this function

parse_instruction(instruction)

parse_instruction(integer()) :: Day9.Intcode.t()
Link to this function

process_equals_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_halt_instruction(_, program, input, pointer, relative_base)

Link to this function

process_input_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_jump_if_false_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_jump_if_true_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_less_than_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_move_relative_base_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_mul_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_output_instruction(instruction, program, input, pointer, relative_base)

Link to this function

process_program(program, input, pointer \\ 0, relative_base \\ -1)

Processes a full program, instruction by instruction, returns the final program after processing all instructions

Link to this function

process_sum_instruction(instruction, program, input, pointer, relative_base)