rpicsim 0.2.3 → 0.2.4

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: 7942ae725016bb382c3214020eeaf8191e25b311
4
- data.tar.gz: 9a5e4fb1eaac0ebd49b11b99618efa47cda520cc
3
+ metadata.gz: 360adb3e53d15c48aed0e03a171f1225da93b449
4
+ data.tar.gz: 6cb9ef3afd2aa5ae18921e4f8ffc7d68b2ed03bc
5
5
  SHA512:
6
- metadata.gz: 1696c66457debd316648fd2f405c370d96f685d0d6297936b267d53acc463aa4a886847dee60ffa6fb70ec86833bc56f31941743f970577533d454e65d42af9a
7
- data.tar.gz: 97c0223646863b0168099d59971e75a12e7cb448ae84b2acda6d96f4ecb710780a696c1ca03016475d92309348765beb9401ed66a501b3e6bebb4d92bd7b8af7
6
+ metadata.gz: 7563dced8a0e911600556d60da82723c3162f766a11aa68efa2a23c6f369258a5a51d1d76458f2b7d57aad740cb72ba929ceb5b4555006b90e29047d89e93e94
7
+ data.tar.gz: f2ee852bed01b1858ff873509f4a6209b4022e258295d04a96e5b540ac07338254b3ed34aa24720d5f3028c1481b92c587ace0c4ae0d0782787c0fc5c5f03dc8
@@ -1,6 +1,12 @@
1
1
  Change log
2
2
  ====
3
3
 
4
+ 0.2.4
5
+ ----
6
+ Released on 2014-03-17.
7
+
8
+ - Added code for recognizing more types of symbols from XC8. The XC8 symbols are more complicated than I previously thought.
9
+
4
10
  0.2.3
5
11
  ----
6
12
  Released on 2014-03-17.
@@ -49,23 +49,32 @@ module RPicSim::Mplab
49
49
 
50
50
  # m_lType: meaning:
51
51
  # 0 MPASM RAM
52
- # 12 XC8 RAM
53
- # 22 MPASM program memory or EEPROM
52
+ # 2 XC8 RAM
53
+ # 8 XC8 RAM (SFR bits)
54
+ # 12 XC8 RAM (variables, SFR uint8_t)
54
55
  # 14 XC8 program memory variable
56
+ # 22 MPASM program memory or EEPROM
57
+ # 40 XC8 local variable (pointer to a struct?)
58
+ # 44 XC8 local variable
55
59
  # 65 XC8 program memory function
56
-
60
+ # 76 XC8 program memory function
61
+ # 108 XC8 program memory variable (array)
62
+ # 110 XC8 program memory variable (struct)
63
+ # 366 XC8 program memory variable (array of pointers)
64
+ #
65
+ # TODO: make a test for each of these cases; TestXC8.c and program_file_spec.rb only only has a few
57
66
  def memory_type(symbol)
58
67
  case symbol.m_lType
59
- when 0, 12
68
+ when 0, 2, 8, 12
60
69
  :ram
61
70
  when 22
62
71
  EepromRange.include?(symbol.address) ? :eeprom : :program_memory
63
- when 12
72
+ when 12, 40, 44, 108
64
73
  :ram
65
- when 14, 65
74
+ when 14, 65, 76, 110, 366
66
75
  :program_memory
67
76
  else
68
- raise "Unknown m_lType #{symbol.m_lType} for symbol #{symbol.name}."
77
+ :unknown
69
78
  end
70
79
  end
71
80
 
@@ -1,3 +1,3 @@
1
1
  module RPicSim
2
- VERSION = '0.2.3'
2
+ VERSION = '0.2.4'
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pololu