- fixed jasm

git-svn-id: http://moon:8086/svn/vhdl/trunk@1396 cc03376c-175c-47c8-b038-4cd826a8556b
This commit is contained in:
2021-03-19 14:41:08 +00:00
parent 697150b619
commit bfbed487d5
+3 -3
View File
@@ -304,14 +304,14 @@ file.each do |raw_line|
exit 1 exit 1
end end
op_line = iline_member[mc+1..mcnt][0].to_s op_line = iline_member[mc+1..mcnt]
curr_addr = format("0x%3.3X",obj.pc) curr_addr = format("0x%3.3X",obj.pc)
opc = token opc = token
if iline_member[mc+1] != nil if iline_member[mc+1] != nil
op1 = op_line.gsub(/,+.*$/, "") op1 = op_line[0].to_s.gsub(/,+.*$/, "")
end end
if iline_member[mc+2] != nil if iline_member[mc+2] != nil
op2 = op_line.scan(/,.+$/).to_s.delete(", ") op2 = op_line[1].to_s.gsub(/,+.*$/, "")
end end
obj.put_instr(name, lc, opc, op1, op2) obj.put_instr(name, lc, opc, op1, op2)
obj.pc = obj.pc + 1 obj.pc = obj.pc + 1