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 +4 -4
- data/docs/ChangeLog.md +6 -0
- data/lib/rpicsim/mplab/mplab_program_file.rb +16 -7
- data/lib/rpicsim/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 360adb3e53d15c48aed0e03a171f1225da93b449
|
4
|
+
data.tar.gz: 6cb9ef3afd2aa5ae18921e4f8ffc7d68b2ed03bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7563dced8a0e911600556d60da82723c3162f766a11aa68efa2a23c6f369258a5a51d1d76458f2b7d57aad740cb72ba929ceb5b4555006b90e29047d89e93e94
|
7
|
+
data.tar.gz: f2ee852bed01b1858ff873509f4a6209b4022e258295d04a96e5b540ac07338254b3ed34aa24720d5f3028c1481b92c587ace0c4ae0d0782787c0fc5c5f03dc8
|
data/docs/ChangeLog.md
CHANGED
@@ -49,23 +49,32 @@ module RPicSim::Mplab
|
|
49
49
|
|
50
50
|
# m_lType: meaning:
|
51
51
|
# 0 MPASM RAM
|
52
|
-
#
|
53
|
-
#
|
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
|
-
|
77
|
+
:unknown
|
69
78
|
end
|
70
79
|
end
|
71
80
|
|
data/lib/rpicsim/version.rb
CHANGED