Method: LC3#set_breakpoint
- Defined in:
- lib/lc3spec/lc3.rb
#set_breakpoint(addr) ⇒ Object
144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 |
# File 'lib/lc3spec/lc3.rb', line 144 def set_breakpoint(addr) addr = addr.upcase.to_s if addr.respond_to? :upcase if @labels.include? addr @io.puts "break set #{addr}" else @io.puts "break set #{normalize_to_s(addr)}" end sleep(0.01) while @io.ready? msg = @io.readline parse_msg msg.strip end self end |