Compare commits
1 Commits
b60c9a9a63
...
e3b8847e24
Author | SHA1 | Date |
---|---|---|
Shadowfacts | e3b8847e24 |
|
@ -96,6 +96,28 @@ 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
|
||||
|
||||
|
|
Loading…
Reference in New Issue