Compare commits

..

1 Commits

Author SHA1 Message Date
Shadowfacts b60c9a9a63
Add simple Intcode assembler 2019-12-05 22:49:16 -05:00
1 changed files with 0 additions and 22 deletions

View File

@ -96,28 +96,6 @@ defmodule Assembler do
end
{val, modes}
# case type do
# :write ->
# {String.to_integer(param), modes}
# _ ->
# cond do
# String.starts_with?(param, "$") ->
# {
# param |> String.slice(1..-1) |> String.to_integer(),
# modes
# }
# Regex.match?(~r/\d+/, param) ->
# {
# String.to_integer(param),
# modes + pow(10, index + 2)
# }
# true ->
# {{:label, param}, modes + pow(10, index + 2)}
# end
# end
end)
end