mirror of
https://github.com/safiire/n65.git
synced 2024-12-13 06:29:16 +00:00
13 lines
240 B
Ruby
13 lines
240 B
Ruby
|
|
module Assembler6502
|
|
|
|
####
|
|
## This cleans up a line, removing whitespace and newlines
|
|
def sanitize_line(asm_line)
|
|
sanitized = asm_line.split(';').first || ""
|
|
sanitized.strip.chomp
|
|
end
|
|
module_function :sanitize_line
|
|
|
|
end
|