rpicsim 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc6566720b23fde2a19df4092b2baac88204bb67
4
- data.tar.gz: 13c9e4d36aa0cde5b1a30a9f91d6680a9afc5d52
3
+ metadata.gz: 1d41b2c70c97b2d8129b34801fdd6344cc5b57c5
4
+ data.tar.gz: 2c54285f1ffcc4e4eb0ad19d0bda948641c2edc2
5
5
  SHA512:
6
- metadata.gz: 361c891fa97b5d82a56c1c318266efdfa8d8c93000094b108e732bc6af8b7eb57a84c7a731d96374083f10504117fff6757ec1e4c606bd367a3173bc2b85a3eb
7
- data.tar.gz: 95a33a23ebf8e60e82fe40e6c9ce80ffdf6f16631a5ec8420b6d467d21ab9113c3fb7cded0408838975f2e63ee80ca559a7adec85c8ecf9a30b90a8362efe813
6
+ metadata.gz: 44351582e59474aec0fec8ffec411ba8dffe81e3d1c6003f79b180236fe86e2f92c8b82a22c00030e334fadd27f06686603daf302bc12ffefef9ac5dc667ea0f
7
+ data.tar.gz: 6f424c03cab34851a7943530f2c31c7014b47908713b5bb06f775452f6c28c75b10c0f892fda30d326d5cc2f746d9d4c6d9506da0a47e9fbbfcdb1056cfb7d97
data/docs/ChangeLog.md CHANGED
@@ -1,11 +1,18 @@
1
1
  Change log
2
2
  ====
3
3
 
4
+ 0.2.2
5
+ ----
6
+ Released on 2014-03-07.
7
+
8
+ - Fixed a bug in {RPicSim::Sim#new_ram_watcher} that prevented it from working.
9
+
4
10
  0.2.1
5
11
  ----
6
12
 
7
13
  Released on 2014-03-07.
8
- This release includes many, many breaking changes.
14
+
15
+ - This release includes many, many breaking changes.
9
16
 
10
17
  0.1.0
11
18
  ----
@@ -8,8 +8,6 @@ module RPicSim::Mplab
8
8
  end
9
9
 
10
10
  def disassemble(address)
11
- # To avoid showing a large, difficult to understand Java trace, we
12
- # catch the InvalidInstructionException here.
13
11
  begin
14
12
  instr = @disasm.Disassemble(address, nil, nil)
15
13
  rescue Java::ComMicrochipMplabMdbcoreDisasm::InvalidInstructionException
data/lib/rpicsim/sim.rb CHANGED
@@ -605,7 +605,7 @@ module RPicSim
605
605
  # changes to RAM. For more information, see {file:RamWatcher.md}.
606
606
  # @return [MemoryWatcher]
607
607
  def new_ram_watcher
608
- MemoryWatcher.new(self, @simulator.fr_memory, @ram_vars.values + @sfrs.values)
608
+ MemoryWatcher.new(self, @simulator.fr_memory, ram_vars + sfr_vars)
609
609
  end
610
610
 
611
611
  def shortcuts
@@ -619,6 +619,15 @@ module RPicSim
619
619
  end
620
620
 
621
621
  private
622
+ def ram_vars
623
+ ram_var_names = self.class.variable_set.var_names_for_memory(:ram)
624
+ @vars.values_at(*ram_var_names)
625
+ end
626
+
627
+ def sfr_vars
628
+ @sfrs.values
629
+ end
630
+
622
631
  def address_increment
623
632
  @assembly.device_info.code_address_increment
624
633
  end
@@ -80,6 +80,10 @@ module RPicSim
80
80
  @vars_for_memory[memory_type][name] = variable
81
81
  end
82
82
 
83
+ def var_names_for_memory(memory_type)
84
+ @vars_for_memory[memory_type].keys
85
+ end
86
+
83
87
  def bind(memories)
84
88
  vars = {}
85
89
  memories.each do |memory_type, memory|
@@ -1,3 +1,3 @@
1
1
  module RPicSim
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rpicsim
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pololu