Skip to content

Instantly share code, notes, and snippets.

@TheNaterz
TheNaterz / gist:3953985
Created October 25, 2012 16:51
End .asm file with infinite loop
# Checking if the command type is a label in my driver loop
end_condition = true
if index != instruction_array.length-1
end_condition = false
end
code_writer.write_label(end_condition, arg_1)
# At the end of my driver loop
# If the last instruction isn't a label, an infinite loop is still made
if index == instruction_array.length-1 && command_type != :C_LABEL