Skip to content

Commit

Permalink
fixing typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbfalcao committed May 23, 2011
1 parent 58d86f9 commit 19ed43d
Show file tree
Hide file tree
Showing 2 changed files with 154 additions and 154 deletions.
4 changes: 2 additions & 2 deletions compile.rb
Expand Up @@ -9,7 +9,7 @@
assemblers = []
flags = []

puts "var _optcodes = [];"
puts "var _opcodes = [];"
File.open("instructions.txt", "r").each_line do |l|
if (l =~ /^[A-Z]/)
puts "\n\n"
Expand All @@ -29,7 +29,7 @@
cycles = cycles.to_i

# assembler = (cyles.nil?) ? cyles
puts "_optcodes[0x#{opc}] = {f: #{assembler}, addr: '#{addressing}', cycles: #{cycles}, bytes: #{bytes}, flags: '#{flags.join(',')}'}};"
puts "_opcodes[0x#{opc}] = {f: #{assembler}, addr: '#{addressing}', cycles: #{cycles}, bytes: #{bytes}, flags: '#{flags.join(',')}'};"
assemblers << assembler
addrmode << addressing
end
Expand Down

0 comments on commit 19ed43d

Please sign in to comment.