Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 11:10 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Odd string problem

Author Message
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 06:14pm 31 May 2018
Copy link to clipboard 
Print this post

Hardware: I have a '170 (MX170F256B-50) with an SD1306 display attached to pins 2 and 15.

I flash the PIC with Ver 5.04.08 (Micromite_V5.04.08.hex) run this simple test code with the following expected result.

[code]
Micromite MKII MMBasic Ver 5.04.08
Copyright 2011-2017 Geoff Graham
[/code]

-

[code]
j$ = "This is a test"
print j$
print LEN(j$)
[/code]

-

[code]
This is a test
14
[/code]

I then flash the library space with the following SD1306 driver - Version 2.04



I use Jim's excellent MMEdit. I don't reset the chip and I get the same results with the test code.

[code]
j$ = "This is a test"
print j$
print LEN(j$)
[/code]

-

[code]
This is a test
14
[/code]

If I reset the chip, I get the expected banner.

[code]
Micromite MKII MMBasic Ver 5.04.08
Copyright 2011-2017 Geoff Graham

SSD1306 I2C driver loaded
[/code]

But the results show that the string is erased.

[code]
j$ = "This is a test"
print j$
print LEN(j$)
[/code]

-

[code]

0
[/code]

I'm not even writing to the 1306 display. The j$ seems to be set to "" just by having the 1306 driver initialized.

Can anyone with a 1306 and a '170 duplicate this issue that I am having? Am I overlooking something? Why would the 1306 driver have any effect on MMBasic the way it does?



Edited by CircuitGizmos 2018-06-02
Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 06:15pm 31 May 2018
Copy link to clipboard 
Print this post

Driver:

[code]

sub mm.startup
SSD1306(&H3C,2,15,0,1) 'I2C-address, SCK-pin, SDA-pin, Size , orientation
End Sub
CSUB SSD1306
0000035C
'Delay
40024800 00442021 40024800 0044102B 1440FFFD 00000000 03E00008 00000000
'BBStart
27BDFFE0 AFBF001C AFB10018 AFB00014 00808821 3C109D00 8E030090 8E02001C
8064002E 0040F809 2405FFFE 8E030090 8E02001C 8064002C 0040F809 2405FFFE
40034800 00711821 40024800 0043102B 1440FFFD 3C029D00 8C430090 8C42001C
8064002E 0040F809 2405FFFD 40034800 00711821 40024800 0043102B 1440FFFD
3C029D00 8C430090 8C42001C 8064002C 0040F809 2405FFFD 40024800 00518821
40024800 0051102B 1440FFFD 8FBF001C 8FB10018 8FB00014 03E00008 27BD0020
'BBStop
27BDFFE0 AFBF001C AFB10018 AFB00014 00808821 3C109D00 8E030090 8E02001C
8064002C 0040F809 2405FFFD 8E030090 8E02001C 8064002E 0040F809 2405FFFD
40034800 00711821 40024800 0043102B 1440FFFD 3C029D00 8C430090 8C42001C
8064002C 0040F809 2405FFFE 40034800 00711821 40024800 0043102B 1440FFFD
3C029D00 8C430090 8C42001C 8064002E 0040F809 2405FFFE 40024800 00518821
40024800 0051102B 1440FFFD 8FBF001C 8FB10018 8FB00014 03E00008 27BD0020
'BBWriteBit
27BDFFE0 AFBF001C AFB20018 AFB10014 AFB00010 00809021 10C00009 00A08821
3C029D00 8C430090 8C42001C 8064002E 0040F809 2405FFFE 10000008 3C029D00
3C029D00 8C430090 8C42001C 8064002E 0040F809 2405FFFD 3C029D00 8C430090
8C42001C 8064002C 0040F809 2405FFFE 00001021 40824800 10000005 3C109D00
40024800 0051102A 10400013 8FBF001C 8E030090 8E020020 0040F809 8064002C
1040FFF7 00000000 40024800 00529021 40024800 0052102B 1440FFFD 3C029D00
8C430090 8C42001C 8064002C 0040F809 2405FFFD 8FBF001C 8FB20018 8FB10014
8FB00010 03E00008 27BD0020
'BBReadBit
27BDFFE0 AFBF001C AFB10018 AFB00014 00808021 00A08821 3C029D00 8C430090
8C42001C 8064002E 0040F809 2405FFFE 40034800 00701821 40024800 0043102B
1440FFFD 3C029D00 8C430090 8C42001C 8064002C 0040F809 2405FFFE 40024800
00508021 40024800 0050102B 1440FFFD 00000000 40824800 10000005 3C109D00
40024800 0051102A 50400014 00008021 8E030090 8E020020 0040F809 8064002C
1040FFF7 00000000 3C119D00 8E230090 8E220020 0040F809 8064002E 00408021
8E230090 8E22001C 8064002C 0040F809 2405FFFD 10000002 02001021 02001021
8FBF001C 8FB10018 8FB00014 03E00008 27BD0020
'BBWriteByte
27BDFFD0 AFBF002C AFB60028 AFB50024 AFB40020 AFB3001C AFB20018 AFB10014
AFB00010 0080B021 00A08821 00C09821 00009021 3C109D00 0000A021 24150008
32620080 10400007 8E030090 8E02001C 8064002E 0040F809 2405FFFE 10000006
8E030090 8E02001C 8064002E 0040F809 2405FFFD 8E030090 8E02001C 8064002C
0040F809 2405FFFE 02801021 40824800 10000006 8E030090 40024800 0051102A
50400013 26520001 8E030090 8E020020 0040F809 8064002C 1040FFF7 00000000
40034800 00761821 40024800 0043102B 1440FFFD 00000000 8E030090 8E02001C
8064002C 0040F809 2405FFFD 26520001 1655FFD3 00139840 3C029D00 8C430090
8C42001C 8064002E 0040F809 2405FFFE 40034800 00761821 40024800 0043102B
1440FFFD 3C029D00 8C430090 8C42001C 8064002C 0040F809 2405FFFE 40024800
0056B021 40024800 0056102B 1440FFFD 00000000 40824800 10000005 3C109D00
40024800 0051102A 50400014 00008021 8E030090 8E020020 0040F809 8064002C
1040FFF7 00000000 3C119D00 8E230090 8E220020 0040F809 8064002E 00408021
8E230090 8E22001C 8064002C 0040F809 2405FFFD 10000002 2E020001 2E020001
8FBF002C 8FB60028 8FB50024 8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010
03E00008 27BD0030
'writei2c
27BDFFD0 AFBF002C AFB60028 AFB50024 AFB40020 AFB3001C AFB20018 AFB10014
AFB00010 0080B021 00A0A821 00C08821 3C029D00 8C420000 8C500000 3C140018
26946A00 0214001B 028001F4 0000A012 00009812 00002012 0411FE97 00000000
240207D0 0202001B 004001F4 00008012 00101080 001029C0 00A22823 00B08021
00102880 02058021 001028C0 00A09021 02802021 00153040 0411FF5F 00000000
10400013 00001821 02C08021 10000007 2415FFFF 02402821 92260000 0411FF56
00000000 10400009 26310001 2610FFFF 1615FFF8 02602021 02802021 0411FEA6
00000000 10000002 24030001 00001821 00601021 8FBF002C 8FB60028 8FB50024
8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010 03E00008 27BD0030
'oled_write_command
27BDFFE0 AFBF001C A3A00010 A3A40011 3C029D00 8C420090 24040002 8045003D
27A60010 0411FFAF 00000000 8FBF001C 03E00008 27BD0020
'OLED_setxy
27BDFFE8 AFBF0014 AFB00010 00808021 3C029D00 8C420090 9043003C 30630001
24820002 0043800B 24A4FFB0 308400FF 0411FFE5 00000000 7E041900 34840010
0411FFE1 00000000 3204000F 0411FFDE 00000000 8FBF0014 8FB00010 03E00008
27BD0018
'updatedisplay
27BDFFD0 AFBF002C AFB50028 AFB40024 AFB30020 AFB2001C AFB10018 AFB00014
3C029D00 8C42008C 8C500000 82020400 10400016 00008821 A2000400 2610FFFF
24140040 3C129D00 24150008 00002021 02202821 0411FFD1 00000000 82130000
A2140000 8E420090 24040081 8045003D 02003021 0411FF74 00000000 A2130000
26310001 1635FFF1 26100080 8FBF002C 8FB50028 8FB40024 8FB30020 8FB2001C
8FB10018 8FB00014 03E00008 27BD0030
'DrawRectangleMEM
27BDFFD0 AFBF002C AFB50028 AFB40024 AFB30020 AFB2001C AFB10018 AFB00014
00808821 00A09821 00C09021 00E0A021 3C029D00 8C42008C 8C420000 90440401
240300F5 10830009 8FB00040 3C159D00 8EA2003C 0040F809 24040500 8EA3008C
AC620000 2403FFF5 A0430401 3C039D00 8C630090 80630015 24040002 14640009
24040003 2403007F 00742023 00731823 0220A021 02409821 00609021 10000012
00808821 14640008 24040004 2403007F 00718823 00729023 2403003F 00739823
10000009 0074A023 14640007 2403003F 00712023 00721823 02809021 0060A021
02608821 00809821 0232182A 14600005 0274182A 02201821 02408821 00609021
0274182A 14600005 2A230000 02601821 02809821 0060A021 2A230000 0003880B
2403007F 2A240080 0064880A 2A440000 0004900B 2A440080 0064900A 2A630000
0003980B 2403003F 2A640040 0064980A 2A840000 0004A00B 2A840040 0064A00A
0251182A 10600025 0293402A 10000028 24030001 24640007 28650000 0065200A
000428C3 000529C0 00B12821 000327C3 00042742 00643021 30C60007 00C42023
00872004 12000006 308400FF 00452821 90A60000 00862025 10000006 A0A40000
00452821 00042027 90A60000 00C42024 A0A40000 24630001 0283202A 1080FFE6
24640007 26310001 0251182A 10600004 24030001 10000007 A0430400 24070001
1100FFDC 02601821 1000FFF7 26310001 A0430400 8FBF002C 8FB50028 8FB40024
8FB30020 8FB2001C 8FB10018 8FB00014 03E00008 27BD0030
'DrawBitmapMEM
27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034
AFB20030 AFB1002C AFB00028 AFA40050 00A0A821 00C08821 AFA7005C 8FB00060
8FB30068 3C029D00 8C42008C 8C420000 90440401 240300F5 10830009 8FB2006C
3C149D00 8E82003C 0040F809 24040500 8E83008C AC620000 2403FFF5 A0430401
8FA3005C 1860008F 0200B821 AFB5001C 00112023 AFA40020 70711802 2463FFFF
AFA30014 AFB10024 0000B021 AFA00018 24190001 3C079D00 24080002 240A0003
1000007C 240C0004 8CE60090 80CF0015 15E80007 00602021 8CE40098 8C840000
2484FFFF 00603021 10000013 008B2023 15EA000A 00000000 8CE40094 8C840000
2484FFFF 00832023 8CE60098 8CC60000 24C6FFFF 10000008 00CB3023 15EC0006
01203021 8CE60094 8CC60000 24C6FFFF 00C33023 01202021 2C8F0080 51E0002C
24A50001 04C00029 28CF0040 51E00028 24A50001 24CF0007 28DE0000 00DE780A
000F78C3 000F79C0 01E42021 00067FC3 000F7F42 00CF3021 30C60007 00CF3023
00D93004 30C600FF 0006F027 92AF0000 01F47824 11E0000C 33DE00FF 8FAF0064
11E00005 00442021 908F0000 00CF3025 1000000E A0860000 90860000 03C6F024
1000000A A09E0000 12600005 00442021 908F0000 00CF3025 10000004 A0860000
90860000 03C6F024 A09E0000 24A50001 14B0FFB5 24630001 25AD0001 25CEFFFF
11B10010 0317C021 01B61821 24640007 28750000 0095180B 0003A8C3 0255A821
000E1FC3 00031F42 01C3A021 32940007 0283A023 0299A004 03001821 1000FFA2
00002821 8FA30010 24630001 AFA30010 14700004 256B0001 10000008 8FA40018
AFA00010 1A20FFF7 01604821 8FB80050 8FAE0014 1000FFE4 00006821 24840001
AFA40018 8FAF001C 01F77821 AFAF001C 8FA30014 8FA40020 00641821 AFA30014
8FAF0024 8FA30018 8FA4005C 10640005 02CFB021 1E00FFEA 8FAB001C 1000FFEF
8FA40018 24030001 A0430400 8FBF004C 8FBE0048 8FB70044 8FB60040 8FB5003C
8FB40038 8FB30034 8FB20030 8FB1002C 8FB00028 03E00008 27BD0050
'getFPC
27BDFFF8 AFBF0004 00852023 03E42021 ACC40000 8FBF0004 03E00008 27BD0008
'pstring
27BDFFE0 AFBF001C AFB00018 00808021 00002021 3C059D00 24A50D4C 27A60010
0411FFEF 00000000 8FA40010 3C029D00 8C42002C 0040F809 02042021 8FBF001C
8FB00018 03E00008 27BD0020
'main
27BDFFC8 AFBF0034 AFB40030 AFB3002C AFB20028 AFB10024 AFB00020 0080A021
00A09821 00C09021 00E08821 00002021 3C059D00 24A50DB4 27A60018 0411FFD5
00000000 3C109D00 8E020090 8E430000 A043002E 8E020090 8E630000 A043002C
8E020090 8E230000 A043003C 8E020090 8E830000 A043003D 8E020090 8FA30048
8C630000 A0430015 8E02003C 0040F809 24040500 8E03008C AC620000 2403FFF5
A0430401 8E030090 8E02001C 8064002E 0040F809 24050005 8E030090 8E020010
8064002E 24050008 0040F809 00003021 8E030090 8E020010 8064002E 24050065
0040F809 00003021 8E030090 8E02001C 8064002C 0040F809 24050005 8E030090
8E020010 8064002C 24050008 0040F809 00003021 8E030090 8E020010 8064002C
24050065 0040F809 00003021 8E220004 1C400054 240400AE 14400005 00000000
8E220000 2C420002 1040004E 00000000 0411FDF0 00000000 240400D5 0411FDED
00000000 24040080 0411FDEA 00000000 240400A8 0411FDE7 00000000 2404003F
0411FDE4 00000000 240400D3 0411FDE1 00000000 00002021 0411FDDE 00000000
24040040 0411FDDB 00000000 2404008D 0411FDD8 00000000 24040014 0411FDD5
00000000 24040020 0411FDD2 00000000 00002021 0411FDCF 00000000 240400A1
0411FDCC 00000000 240400C8 0411FDC9 00000000 240400DA 0411FDC6 00000000
24040012 0411FDC3 00000000 24040081 0411FDC0 00000000 240400CF 0411FDBD
00000000 240400D9 0411FDBA 00000000 240400F1 0411FDB7 00000000 240400DB
0411FDB4 00000000 24040040 0411FDB1 00000000 240400A4 0411FDAE 00000000
240400A6 0411FDAB 00000000 240400AF 0411FDA8 00000000 24020040 10000056
24030080 0411FDA3 00000000 24040020 0411FDA0 00000000 24040010 0411FD9D
00000000 240400B0 0411FD9A 00000000 240400C8 0411FD97 00000000 00002021
0411FD94 00000000 24040010 0411FD91 00000000 24040040 0411FD8E 00000000
24040081 0411FD8B 00000000 240400AF 0411FD88 00000000 240400A1 0411FD85
00000000 240400A6 0411FD82 00000000 240400A8 0411FD7F 00000000 2404000F
0411FD7C 00000000 240400A4 0411FD79 00000000 240400D3 0411FD76 00000000
00002021 0411FD73 00000000 240400D5 0411FD70 00000000 240400F0 0411FD6D
00000000 240400D9 0411FD6A 00000000 24040022 0411FD67 00000000 240400DA
0411FD64 00000000 24040002 0411FD61 00000000 240400DB 0411FD5E 00000000
24040049 0411FD5B 00000000 2404008D 0411FD58 00000000 24040014 0411FD55
00000000 240400AF 0411FD52 00000000 24020010 24030060 3C049D00 8C840090
90840015 30840001 10800006 3C049D00 8C850094 ACA30000 8C830098 10000005
AC620000 8C850098 ACA30000 8C830094 AC620000 8FA50018 3C029D00 8C430048
3C049D00 248407D0 00852021 AC640000 8FA50018 8C43004C 3C049D00 24840A08
00852021 AC640000 8FA50018 8C4300A4 3C049D00 24840720 00852021 AC640000
8C430048 8C440094 8C860000 8C420098 8C470000 AFA00010 8C620000 00002021
00002821 24C6FFFF 0040F809 24E7FFFF 3C049D00 24841230 0411FEC6 00000000
8FBF0034 8FB40030 8FB3002C 8FB20028 8FB10024 8FB00020 03E00008 27BD0038
'.rodata
'startup
31445353 20363033 20433249 76697264 6C207265 6564616F 000A0D64
End CSUB

DefineFont #2
5F201010 00000000 00000000 00000000 00000000 00000000 00000000 00000000
00000000 00000000 800F0007 800F800F 800F800F 00070007 00000000 00070007
00000007 380E0000 380E380E 3006380E 00000000 00000000 00000000 00000000
00000000 300C0000 300C300C FE7FFE7F 300C300C 300C300C FE7FFE7F 300C300C
0000300C 40020000 F80F4002 401AF81F F01F401A 5802F80F F81F5802 4002F01F
00004002 00000000 100E0000 700E300E C001E000 00078003 700C700E 00007008
00000000 00000000 8019000F 80198019 080F000F F819980F E018F018 980FF019
00000000 00000000 00070007 000E0007 00000000 00000000 00000000 00000000
00000000 00000000 C001F000 00078003 000E000E 000E000E 80030007 F000C001
00000000 00000000 8003000F E000C001 70007000 70007000 C001E000 000F8003
00000000 00000000 88118001 E0079009 FC3FE007 E007FC3F 9009E007 80018811
00000000 00000000 00000000 80018001 F00F8001 8001F00F 80018001 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00070000 00070007
0000000E 00000000 00000000 00000000 F81F0000 0000F81F 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00070000 00070007
00000000 00000000 06000200 1C000E00 70003800 C001E000 00078003 001C000E
00000000 00000000 381CF00F F81C781C B81DF81C 381FB81D 381E381F F00F381C
00000000 00000000 80018001 801F8003 8003801F 80038003 80038003 F01F8003
00000000 00000000 701CE00F 3800381C E0007000 8003C001 380E0007 F81F381C
00000000 00000000 701CE00F 3800381C C0037000 7000C003 381C3800 E00F701C
00000000 00000000 E001E000 E006E003 E018E00C F81FF81F E000E000 F803E000
00000000 00000000 001CF81F 001C001C E01F001C 7800F01F 381C3800 E00F701C
00000000 00000000 0007E003 001C000E F01F001C 381CF81F 381C381C F00F381C
00000000 00000000 1C1CFC1F 1C1C1C1C 38001C00 E0007000 8003C001 80038003
00000000 00000000 381CF00F 381C381C E007381F F81CE007 381C381C F00F381C
00000000 00000000 381CF00F 381C381C F81F381C 3800F80F 70003800 C007E000
00000000 00000000 00000000 80038003 00008003 80030000 80038003 00000000
00000000 00000000 00000000 80038003 00008003 80030000 80038003 00000007
00000000 70000000 C001E000 00078003 001C000E 000E001C 80030007 E000C001
00007000 00000000 00000000 FC3F0000 0000FC3F FC3F0000 0000FC3F 00000000
00000000 001C0000 0007000E C0018003 7000E000 E0007000 8003C001 000E0007
0000001C C0030000 781EF00F 38003818 E0007000 C001C001 00000000 C001C001
0000C001 F80F0000 1C1C1C1C 1C1C1C1C FC1CFC1C FC1CFC1C 001C001C F01F001C
0000F807 00000000 E007C003 381C700E 381C381C F81F381C 381C381C 381C381C
00000000 00000000 380EF01F 380E380E F00F380E 380EF00F 380E380E F01F380E
00000000 00000000 380EF007 001C381C 001C001C 001C001C 381C001C F007380E
00000000 00000000 700EE01F 380E380E 380E380E 380E380E 380E380E E01F700E
00000000 00000000 180EF81F 000E080E F00F300E 300EF00F 080E000E F81F180E
00000000 00000000 180EF81F 000E080E F00F300E 300EF00F 000E000E 001F000E
00000000 00000000 380EF007 381C381C 001C001C F81C001C 381C381C F807380E
00000000 00000000 701C701C 701C701C F01F701C 701CF01F 701C701C 701C701C
00000000 00000000 8003E00F 80038003 80038003 80038003 80038003 E00F8003
00000000 00000000 7000FC01 70007000 70007000 70387000 70387038 E00F7038
00000000 00000000 380E381E E00E700E 800FC00F C00F800F 700EE00E 381E380E
00000000 00000000 000E001F 000E000E 000E000E 000E000E 180E080E F81F380E
00000000 00000000 3C1E1C1C FC1F7C1F DC1DFC1F 1C1C9C1C 1C1C1C1C 1C1C1C1C
00000000 00000000 1C1C1C1C 1C1F1C1E DC1D9C1F 7C1CFC1C 1C1C3C1C 1C1C1C1C
00000000 00000000 F007E003 1C1C380E 1C1C1C1C 1C1C1C1C 380E1C1C E003F007
00000000 00000000 380EF01F 380E380E F00F380E 000EF00F 000E000E 001F000E
00000000 00000000 780FE003 1C1C380E 1C1C1C1C 7C1C1C1C F80FFC1C 3800F80F
0000FC00 00000000 380EF01F 380E380E F00F380E 700EF00F 380E380E 381E380E
00000000 00000000 381CF00F 381C381C E00F001C 3800F007 381C381C F00F381C
00000000 00000000 CC19FC1F C001C411 C001C001 C001C001 C001C001 F007C001
00000000 00000000 701C701C 701C701C 701C701C 701C701C 701C701C E00F701C
00000000 00000000 701C701C 701C701C 701C701C 701C701C E00E701C 8003C007
00000000 00000000 1C1C1C1C 1C1C1C1C 9C1C1C1C 9C1C9C1C F80FF80F 70077007
00000000 00000000 701C701C E00E701C 8003C007 C0078003 701CE00E 701C701C
00000000 00000000 701C701C 701C701C E00E701C 8003C007 80038003 E00F8003
00000000 00000000 381CF81F 70103818 C001E000 00078003 181C080E F81F381C
00000000 00000000 0007F007 00070007 00070007 00070007 00070007 F0070007
00000000 00000000 00180010 000E001C 80030007 E000C001 38007000 07001C00
00000000 00000000 7000F007 70007000 70007000 70007000 70007000 F0077000
00000000 80010000 E007C003 381C700E 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
FF7FFF7F 00000000 001C001C 00070007 00000000 00000000 00000000 00000000
00000000 00000000 00000000 00000000 7000E00F F00F7000 701C701C D80F701C
00000000 00000000 000E001E 000E000E 380EF00F 380E380E 380E380E F01B380E
00000000 00000000 00000000 00000000 701CE00F 001C701C 701C001C E00F701C
00000000 00000000 7000F800 70007000 701CF00F 701C701C 701C701C D80F701C
00000000 00000000 00000000 00000000 701CE00F F01F701C 701C001C E00F701C
00000000 00000000 7007E003 00077007 E01F0007 0007E01F 00070007 C01F0007
00000000 00000000 00000000 00000000 701CD80F 701C701C F00F701C 7000F007
E00F701C 00000000 000E001E 000E000E 380FF00E 380E380F 380E380E 381E380E
00000000 00000000 C001C001 0000C001 C001C00F C001C001 C001C001 F80FC001
00000000 00000000 70007000 00007000 7000F003 70007000 70007000 701C7000
E007F00C 00000000 000E001E 000E000E 700E380E C00FE00E 700EE00E 381E380E
00000000 00000000 C001C00F C001C001 C001C001 C001C001 C001C001 F80FC001
00000000 00000000 00000000 00000000 9C1CF81F 9C1C9C1C 9C1C9C1C 9C1C9C1C
00000000 00000000 00000000 00000000 701CE01F 701C701C 701C701C 701C701C
00000000 00000000 00000000 00000000 701CE00F 701C701C 701C701C E00F701C
00000000 00000000 00000000 00000000 380EF01B 380E380E 380E380E 000EF00F
001F000E 00000000 00000000 00000000 E038B01F E038E038 E038E038 E000E01F
F001E000 00000000 00000000 00000000 F80FF01E 000E380F 000E000E 001F000E
00000000 00000000 00000000 00000000 301CE00F 800F301C 7018E003 E00F7018
00000000 00000000 00010000 00070003 0007F01F 00070007 70070007 E0037007
00000000 00000000 00000000 00000000 701C701C 701C701C 701C701C D80F701C
00000000 00000000 00000000 00000000 701C701C 701C701C E00E701C 8003C007
00000000 00000000 00000000 00000000 1C1C1C1C 9C1C1C1C F80F9C1C 70077007
00000000 00000000 00000000 00000000 E01CE01C 8007C00F C00F8007 E01CE01C
00000000 00000000 00000000 00000000 380E380E 380E380E F007380E E000E003
801FC001 00000000 00000000 00000000 E018E01F 8003C011 200E0007 E01F601C
00000000 00000000 8003F801 80038003 001C0007 0007001C 80038003 F8018003
00000000 C0010000 C001C001 C001C001 C001C001 C001C001 C001C001 C001C001
0000C001 00000000 C001801F C001C001 3800E000 E0003800 C001C001 801FC001
00000000 00000000 9C3B1C1F F838DC39 00000000 00000000 00000000 00000000
00000000
End DefineFont
'
DefineFont #3
5C200806
00000000 82200000 00800008 00004551 4F510000 0045F994 2B1CEA21 690000C2
B04C2090 AA104A62 84608046 00000000 40108410 81400081 00841004 A89C8A00
82000080 0080203E 30000000 00000042 0000003E 01000000 21000086 00004208
CAAA2972 82210027 00872008 21842072 42F8800F 00270A04 F824C510 0FFA0041
00270A02 8A3C0831 21F80027 00044108 8A9C2872 28720027 0027089E 61008601
86010080 00846000 40208410 0F000081 0000F880 10028140 20720084 00022084
BA9A2072 28720027 8028FAA2 8ABC28F2 2872002F 00278220 8AA248E2 08FA004E
800F823C 823C08FA 28720008 80278A2E 8ABE288A 82708028 00872008 12044138
4A8A0046 8048A230 82200882 6A8B800F 80288AAA 9AAA2C8A 28728028 00278AA2
82BC28F2 28720008 8046AAA2 A2BC28F2 087A8048 002F081C 200882F8 288A0082
00278AA2 89A2288A 288A0042 00A5AAAA 5208258A 288A8028 00822094 420821F8
0471800F 00074110 A9944AA9 4170804A 00471004 00804821 00000000 800F0000
00008140 07000000 80277A02 8A320B82 0700002F 00278220 8AA62608 07008027
0007FA22 41382431 E8010004 002778A2 8A320B82 06208028 00872008 12040310
09820046 0089C228 20088260 0D000087 8028AA2A 8A320B00 07008028 00278A22
F2220F00 06000008 802078A6 82320B00 07000008 002F7020 41100E41 08000023
80668AA2 89A20800 08000042 00A5AAA2 21940800 08008048 002778A2 21840F00
0400800F 0EE24028
End DefineFont

[/code]
Micromites and Maximites! - Beginning Maximite
 
panky

Guru

Joined: 02/10/2012
Location: Australia
Posts: 1114
Posted: 03:22am 01 Jun 2018
Copy link to clipboard 
Print this post

Hi CG,

When you say
  Quote  I then flash the library space with the following SD1306 driver - Version 2.04

I use Jim's excellent MMEdit. I don't reset the chip and I get the same results with the test code.

j$ = "This is a test"
print j$
print LEN(j$)

- do you mean you loaded the SD1306 Driver code into MMEdit, did a Load and Run to download to the 170 then a Library Save to save this to the Library area of MMBasic?

Did you then re-load the short piece of code into the 170 using MMEdit and entered RUN? Which worked OK?

You then reset the 170 (which would cause the driver to be loaded via the MM.STARTUP code in the library)? At this point your small demo code should still be in the normal MMBasic code area but when run, j$ has been emptied?

Have I got this correct? Unfortunately, I don't have a SD1306 for testing but am interested in assisting if I can.

panky


... almost all of the Maximites, the MicromMites, the MM Extremes, the ArmMites, the PicoMite and loving it!
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 03:18pm 01 Jun 2018
Copy link to clipboard 
Print this post

  panky said   - do you mean you loaded the SD1306 Driver code into MMEdit, did a Load and Run to download to the 170 then a Library Save to save this to the Library area of MMBasic?

Did you then re-load the short piece of code into the 170 using MMEdit and entered RUN? Which worked OK?

You then reset the 170 (which would cause the driver to be loaded via the MM.STARTUP code in the library)? At this point your small demo code should still be in the normal MMBasic code area but when run, j$ has been emptied?

Have I got this correct? Unfortunately, I don't have a SD1306 for testing but am interested in assisting if I can.


You have that correct.

The shortest way to the issue:
1) Start with either a freshly flashed '170 or a library deleted '170.
2) Load the driver. "LIBRARY SAVE" it.
3) Reset (this runs the driver's mm.startup)
4) Run the J$ test code. J$ has nothing in it.

If I do step 1 and then run the J$ code, the test string is there.

If I skip step 3 and immediately run the J$ code, the test string is there.

Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 03:52pm 01 Jun 2018
Copy link to clipboard 
Print this post

This is what the MicroMite Chat window (of MM Edit) shows after a reset and run:


Micromite MKII MMBasic Ver 5.04.08
Copyright 2011-2017 Geoff Graham

SSD1306 I2C driver loaded
> RUN

0
>

Micromites and Maximites! - Beginning Maximite
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 01:21am 02 Jun 2018
Copy link to clipboard 
Print this post

I don't have a SSD1306 available and the cfunction hangs if I run it without any device connected.

To test if it is only the first variable that gets obliterated try this:
  Quote   j$ = "This is a test"
PRINT j$
PRINT LEN(j$)

k$ =
"this is test two"
PRINT k$
PRINT LEN(k$)


It would be worth trying a few 'dummy' variables.

Jim
VK7JH
MMedit
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 07:08pm 03 Jun 2018
Copy link to clipboard 
Print this post

  TassyJim said  the cfunction hangs if I run it without any device connected.


It would be nice if it didn't do that.

Thanks for the suggestions. I didn't think to try to debug this, as I can't get the source.

I'll try a few things.
Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 07:38pm 03 Jun 2018
Copy link to clipboard 
Print this post


j$ = "This is a j test"
print j$
print LEN(j$)

j$ = "This is a j test"
print j$
print LEN(j$)

j$ = "This is a j test"
print j$
print LEN(j$)

k$ = "This is a k test"
print k$
print LEN(k$)

l$ = "This is a l test"
print l$
print LEN(l$)

m$ = "This is a m test"
print m$
print LEN(m$)

n$ = "This is a n test"
p$ = "This is a p test"
q$ = "This is a q test"
print n$
print p$
print q$
print LEN(n$)
print LEN(p$)
print LEN(q$)

> RUN

0

0

0
This is a k test
16
This is a l test
16
This is a m test
16
This is a n test
This is a p test
This is a q test
16
16
16
>



n$ = "This is a n test"
p$ = "This is a p test"
q$ = "This is a q test"
print n$
print p$
print q$
print LEN(n$)
print LEN(p$)
print LEN(q$)

> RUN

This is a p test
This is a q test
0
16
16
>





PRINT" THIS IS A TEST"
j$ = "This is a j test"
print j$
print LEN(j$)

> RUN
THIS IS A TEST

0
>





h$ = ""
j$ = "This is a j test"
print j$
print LEN(j$)

> RUN
This is a j test
16
>



Looks like the first string is not assigned.

I just reflashed and got this:


n$ = "This is a n test"
p$ = "This is a p test"
q$ = "This is a q test"
print n$
print p$
print q$
print LEN(n$)
print LEN(p$)
print LEN(q$)


RUN

This is a p test
This is a q test
0
16
16
> library list
> memory
Flash:
1K ( 1%) Program (9 lines)
59K (99%) Free

RAM:
1K ( 2%) 4 Variables
0K ( 0%) General
49K (98%) Free
>




Now I'm stumped. I'm hoping someone can duplicate this.

Edited by CircuitGizmos 2018-06-05
Micromites and Maximites! - Beginning Maximite
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 08:36am 04 Jun 2018
Copy link to clipboard 
Print this post

Just had chance to test.

The fix is to put a graphics command before any other command.

The reason is that RUN deletes the memory used by the CFunction and it is re-created when the first graphics command is used. The following works fine

Option explicit
option default NONE
cls
dim j$
j$="This is a test"
print j$
print len(j$)
end
 
Geoffg

Guru

Joined: 06/06/2011
Location: Australia
Posts: 3292
Posted: 08:47am 04 Jun 2018
Copy link to clipboard 
Print this post

  CircuitGizmos said  I just reflashed and got this:

n$ = "This is a n test"
p$ = "This is a p test"
q$ = "This is a q test"
print n$
print p$
print q$
print LEN(n$)
print LEN(p$)
print LEN(q$)

RUN

This is a p test
This is a q test
0
16
16
>

Something is wrong here, I just tested the above code on a beta version of V5.04.09 and it worked fine (see below). I don't think that I fixed a bug like this in the beta version but it might be worth trying it.

Micromite MKII MMBasic Ver 5.04.09 Beta 16
Copyright 2011-2018 Geoff Graham

> LIST
n$ = "This is a n test"
p$ = "This is a p test"
q$ = "This is a q test"
Print n$
Print p$
Print q$
Print Len(n$)
Print Len(p$)
Print Len(q$)
> RUN
This is a n test
This is a p test
This is a q test
16
16
16
>

Geoff Graham - http://geoffg.net
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 04:50pm 04 Jun 2018
Copy link to clipboard 
Print this post

  matherp said   Just had chance to test.

The fix is to put a graphics command before any other command.

The reason is that RUN deletes the memory used by the CFunction and it is re-created when the first graphics command is used. The following works fine

Option explicit
option default NONE
cls
dim j$
j$="This is a test"
print j$
print len(j$)
end


RUN deletes the memory used by the CFunction

Is this true for all CFunctions?

Why would the memory used by a CFunction delete one string defined in the main program?

Edited to add: I tried placing the CLS in mm.startup after the init code. But again this would be before RUN.
Edited by CircuitGizmos 2018-06-06
Micromites and Maximites! - Beginning Maximite
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 05:11pm 04 Jun 2018
Copy link to clipboard 
Print this post

  Geoffg said  
  CircuitGizmos said  I just reflashed and got this:

n$ = "This is a n test"
p$ = "This is a p test"
q$ = "This is a q test"
print n$
print p$
print q$
print LEN(n$)
print LEN(p$)
print LEN(q$)

RUN

This is a p test
This is a q test
0
16
16
>

Something is wrong here, I just tested the above code on a beta version of V5.04.09 and it worked fine (see below). I don't think that I fixed a bug like this in the beta version but it might be worth trying it.

Micromite MKII MMBasic Ver 5.04.09 Beta 16
Copyright 2011-2018 Geoff Graham

> LIST
n$ = "This is a n test"
p$ = "This is a p test"
q$ = "This is a q test"
Print n$
Print p$
Print q$
Print Len(n$)
Print Len(p$)
Print Len(q$)
> RUN
This is a n test
This is a p test
This is a q test
16
16
16
>


I'm not sure what happened with my test above where I reflashed and the string was set to null. I have not been able to reproduce that.

I did try flashing with Micromite MKII MMBasic Ver 5.04.09 Beta 19 and with the SSD1306 library and the results are the same as with 5.04.08.

Thank you Panky, Jim, Peter, and Geoff for your posts.

If RUN clears memory in a CFunction but also steps on main code, is this a bug? Could it bite other people using other CFunctions? Is it limited to this driver? All graphics drivers? All CFunctions?

Edited by CircuitGizmos 2018-06-06
Micromites and Maximites! - Beginning Maximite
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 05:34pm 04 Jun 2018
Copy link to clipboard 
Print this post

Too complex to explain fully without spending more time than it is worth.

May affect other mono displays (all need an in-memory image) - nothing else. Workround above should work for any of them.

Not a bug - just a feature
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 07:10pm 04 Jun 2018
Copy link to clipboard 
Print this post

Sorry Peter.



> RUN
This is a test
14
> list
CLS
j$ = "This is a test"
Print j$
Print Len(j$)
> RUN

0
> RUN
This is a test
14
> RUN

0
> RUN
This is a test
14
>





Micromites and Maximites! - Beginning Maximite
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 08:37pm 04 Jun 2018
Copy link to clipboard 
Print this post

New workround while I try and understand more:

Type CLS at the command line each time before RUN
 
TassyJim

Guru

Joined: 07/08/2011
Location: Australia
Posts: 6283
Posted: 09:38pm 04 Jun 2018
Copy link to clipboard 
Print this post

What happens if you delete mm.startup and put the call to the display driver in the main code.
  Quote  OPTION EXPLICIT
OPTION DEFAULT NONE
SSD1306(
&H3C,2,15,0,1) 'I2C-address, SCK-pin, SDA-pin, Size , orientation
DIM j$
j$=
"This is a test"
PRINT j$
PRINT LEN(j$)
END

or is that not permitted with display drivers? I am getting behind in the developments here.

Jim
VK7JH
MMedit
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 10:06pm 04 Jun 2018
Copy link to clipboard 
Print this post

  TassyJim said   What happens if you delete mm.startup and put the call to the display driver in the main code.
Jim


In theory, I think that would work.

I'm using this setup for some fundamental teaching. If a simple "Hello World" has to run some "odd" code first, it will be a distraction. The result will be that MMBasic - as used for this setup - will look clunky.
Micromites and Maximites! - Beginning Maximite
 
matherp
Guru

Joined: 11/12/2012
Location: United Kingdom
Posts: 10310
Posted: 07:57am 05 Jun 2018
Copy link to clipboard 
Print this post

Try this

sub mm.startup
SSD1306(&H3C,2,15,0,1) 'I2C-address, SCK-pin, SDA-pin, Size , orientation
End Sub
CSUB SSD1306
0000035D
'Delay
40024800 00442021 40024800 0044102B 1440FFFD 00000000 03E00008 00000000
'BBStart
27BDFFE0 AFBF001C AFB10018 AFB00014 00808821 3C109D00 8E030090 8E02001C
8064002E 0040F809 2405FFFE 8E030090 8E02001C 8064002C 0040F809 2405FFFE
40034800 00711821 40024800 0043102B 1440FFFD 3C029D00 8C430090 8C42001C
8064002E 0040F809 2405FFFD 40034800 00711821 40024800 0043102B 1440FFFD
3C029D00 8C430090 8C42001C 8064002C 0040F809 2405FFFD 40024800 00518821
40024800 0051102B 1440FFFD 8FBF001C 8FB10018 8FB00014 03E00008 27BD0020
'BBStop
27BDFFE0 AFBF001C AFB10018 AFB00014 00808821 3C109D00 8E030090 8E02001C
8064002C 0040F809 2405FFFD 8E030090 8E02001C 8064002E 0040F809 2405FFFD
40034800 00711821 40024800 0043102B 1440FFFD 3C029D00 8C430090 8C42001C
8064002C 0040F809 2405FFFE 40034800 00711821 40024800 0043102B 1440FFFD
3C029D00 8C430090 8C42001C 8064002E 0040F809 2405FFFE 40024800 00518821
40024800 0051102B 1440FFFD 8FBF001C 8FB10018 8FB00014 03E00008 27BD0020
'BBWriteBit
27BDFFE0 AFBF001C AFB20018 AFB10014 AFB00010 00809021 10C00009 00A08821
3C029D00 8C430090 8C42001C 8064002E 0040F809 2405FFFE 10000008 3C029D00
3C029D00 8C430090 8C42001C 8064002E 0040F809 2405FFFD 3C029D00 8C430090
8C42001C 8064002C 0040F809 2405FFFE 00001021 40824800 10000005 3C109D00
40024800 0051102A 10400013 8FBF001C 8E030090 8E020020 0040F809 8064002C
1040FFF7 00000000 40024800 00529021 40024800 0052102B 1440FFFD 3C029D00
8C430090 8C42001C 8064002C 0040F809 2405FFFD 8FBF001C 8FB20018 8FB10014
8FB00010 03E00008 27BD0020
'BBReadBit
27BDFFE0 AFBF001C AFB10018 AFB00014 00808021 00A08821 3C029D00 8C430090
8C42001C 8064002E 0040F809 2405FFFE 40034800 00701821 40024800 0043102B
1440FFFD 3C029D00 8C430090 8C42001C 8064002C 0040F809 2405FFFE 40024800
00508021 40024800 0050102B 1440FFFD 00000000 40824800 10000005 3C109D00
40024800 0051102A 50400014 00008021 8E030090 8E020020 0040F809 8064002C
1040FFF7 00000000 3C119D00 8E230090 8E220020 0040F809 8064002E 00408021
8E230090 8E22001C 8064002C 0040F809 2405FFFD 10000002 02001021 02001021
8FBF001C 8FB10018 8FB00014 03E00008 27BD0020
'BBWriteByte
27BDFFD0 AFBF002C AFB60028 AFB50024 AFB40020 AFB3001C AFB20018 AFB10014
AFB00010 0080B021 00A08821 00C09821 00009021 3C109D00 0000A021 24150008
32620080 10400007 8E030090 8E02001C 8064002E 0040F809 2405FFFE 10000006
8E030090 8E02001C 8064002E 0040F809 2405FFFD 8E030090 8E02001C 8064002C
0040F809 2405FFFE 02801021 40824800 10000006 8E030090 40024800 0051102A
50400013 26520001 8E030090 8E020020 0040F809 8064002C 1040FFF7 00000000
40034800 00761821 40024800 0043102B 1440FFFD 00000000 8E030090 8E02001C
8064002C 0040F809 2405FFFD 26520001 1655FFD3 00139840 3C029D00 8C430090
8C42001C 8064002E 0040F809 2405FFFE 40034800 00761821 40024800 0043102B
1440FFFD 3C029D00 8C430090 8C42001C 8064002C 0040F809 2405FFFE 40024800
0056B021 40024800 0056102B 1440FFFD 00000000 40824800 10000005 3C109D00
40024800 0051102A 50400014 00008021 8E030090 8E020020 0040F809 8064002C
1040FFF7 00000000 3C119D00 8E230090 8E220020 0040F809 8064002E 00408021
8E230090 8E22001C 8064002C 0040F809 2405FFFD 10000002 2E020001 2E020001
8FBF002C 8FB60028 8FB50024 8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010
03E00008 27BD0030
'writei2c
27BDFFD0 AFBF002C AFB60028 AFB50024 AFB40020 AFB3001C AFB20018 AFB10014
AFB00010 0080B021 00A0A821 00C08821 3C029D00 8C420000 8C500000 3C140018
26946A00 0214001B 028001F4 0000A012 00009812 00002012 0411FE97 00000000
240207D0 0202001B 004001F4 00008012 00101080 001029C0 00A22823 00B08021
00102880 02058021 001028C0 00A09021 02802021 00153040 0411FF5F 00000000
10400013 00001821 02C08021 10000007 2415FFFF 02402821 92260000 0411FF56
00000000 10400009 26310001 2610FFFF 1615FFF8 02602021 02802021 0411FEA6
00000000 10000002 24030001 00001821 00601021 8FBF002C 8FB60028 8FB50024
8FB40020 8FB3001C 8FB20018 8FB10014 8FB00010 03E00008 27BD0030
'oled_write_command
27BDFFE0 AFBF001C A3A00010 A3A40011 3C029D00 8C420090 24040002 8045003D
27A60010 0411FFAF 00000000 8FBF001C 03E00008 27BD0020
'OLED_setxy
27BDFFE8 AFBF0014 AFB00010 00808021 3C029D00 8C420090 9043003C 30630001
24820002 0043800B 24A4FFB0 308400FF 0411FFE5 00000000 7E041900 34840010
0411FFE1 00000000 3204000F 0411FFDE 00000000 8FBF0014 8FB00010 03E00008
27BD0018
'updatedisplay
27BDFFD0 AFBF002C AFB50028 AFB40024 AFB30020 AFB2001C AFB10018 AFB00014
3C029D00 8C42008C 8C500000 82020401 10400015 00008821 A2000401 24140040
3C129D00 24150008 00002021 02202821 0411FFD2 00000000 82130000 A2140000
8E420090 24040081 8045003D 02003021 0411FF75 00000000 A2130000 26310001
1635FFF1 26100080 8FBF002C 8FB50028 8FB40024 8FB30020 8FB2001C 8FB10018
8FB00014 03E00008 27BD0030
'DrawRectangleMEM
27BDFFD0 AFBF002C AFB50028 AFB40024 AFB30020 AFB2001C AFB10018 AFB00014
00808821 00A09821 00C09021 00E0A021 3C029D00 8C42008C 8C420000 90440000
240300F5 10830009 8FB00040 3C159D00 8EA2003C 0040F809 24040800 8EA3008C
AC620000 2403FFF5 A0430000 3C039D00 8C630090 80630015 24040002 14640009
24040003 2403007F 00742023 00731823 0220A021 02409821 00609021 10000012
00808821 14640008 24040004 2403007F 00718823 00729023 2403003F 00739823
10000009 0074A023 14640007 2403003F 00712023 00721823 02809021 0060A021
02608821 00809821 0232182A 14600005 0274182A 02201821 02408821 00609021
0274182A 14600005 2A230000 02601821 02809821 0060A021 2A230000 0003880B
2403007F 2A240080 0064880A 2A440000 0004900B 2A440080 0064900A 2A630000
0003980B 2403003F 2A640040 0064980A 2A840000 0004A00B 2A840040 0064A00A
0251182A 10600025 0293482A 10000029 24030001 24640007 28650000 0065200A
000428C3 000529C0 00E52821 000327C3 00042742 00643021 30C60007 00C42023
00882004 12000006 308400FF 00452821 90A60000 00862025 10000006 A0A40000
00452821 00042027 90A60000 00C42024 A0A40000 24630001 0283202A 1080FFE6
24640007 26310001 0251182A 50600005 02601821 10000007 24030001 24080001
02601821 1120FFDB 26270001 1000FFF6 26310001 A0430401 8FBF002C 8FB50028
8FB40024 8FB30020 8FB2001C 8FB10018 8FB00014 03E00008 27BD0030
'DrawBitmapMEM
27BDFFB0 AFBF004C AFBE0048 AFB70044 AFB60040 AFB5003C AFB40038 AFB30034
AFB20030 AFB1002C AFB00028 AFA40050 00A0A821 00C08821 AFA7005C 8FB00060
8FB30068 3C029D00 8C42008C 8C420000 90440000 240300F5 10830009 8FB2006C
3C149D00 8E82003C 0040F809 24040800 8E83008C AC620000 2403FFF5 A0430000
8FA3005C 18600090 0200B821 AFB5001C 00112023 AFA40020 70711802 2463FFFF
AFA30014 AFB10024 0000B021 AFA00018 24190001 3C069D00 24070002 24090003
1000007D 240B0004 8CC50090 80AF0015 15E70007 00607021 8CC50098 8CAE0000
25CEFFFF 00602821 10000013 01CA7023 15E9000A 00000000 8CC50094 8CAE0000
25CEFFFF 01C37023 8CC50098 8CA50000 24A5FFFF 10000008 00AA2823 15EB0006
01002821 8CC50094 8CA50000 24A5FFFF 00A32823 01007021 2DCF0080 51E0002D
24840001 04A0002A 28AF0040 51E00029 24840001 25CE0001 24AF0007 28BE0000
00BE780A 000F78C3 000F79C0 01CF7821 000577C3 000E7742 00AE2821 30A50007
00AE2823 00B92804 30A500FF 0005F027 92AE0000 01D47024 11C0000C 33DE00FF
8FAE0064 11C00005 004F7821 91EE0000 00AE2825 1000000E A1E50000 91E50000
03C5F024 1000000A A1FE0000 12600005 004F7821 91EE0000 00AE2825 10000004
A1E50000 91E50000 03C5F024 A1FE0000 24840001 1490FFB4 24630001 258C0001
25ADFFFF 11910010 0317C021 01961821 24640007 28750000 0095180B 0003A8C3
0255A821 000D1FC3 00031F42 01A3A021 32940007 0283A023 0299A004 03001821
1000FFA1 00002021 8FA30010 24630001 AFA30010 14700004 254A0001 10000008
8FA40018 AFA00010 1A20FFF7 01404021 8FB80050 8FAD0014 1000FFE4 00006021
24840001 AFA40018 8FAE001C 01D77021 AFAE001C 8FA30014 8FA40020 00641821
AFA30014 8FAE0024 8FA30018 8FA4005C 10640005 02CEB021 1E00FFEA 8FAA001C
1000FFEF 8FA40018 24030001 A0430401 8FBF004C 8FBE0048 8FB70044 8FB60040
8FB5003C 8FB40038 8FB30034 8FB20030 8FB1002C 8FB00028 03E00008 27BD0050
'getFPC
27BDFFF8 AFBF0004 00852023 03E42021 ACC40000 8FBF0004 03E00008 27BD0008
'pstring
27BDFFE0 AFBF001C AFB00018 00808021 00002021 3C059D00 24A50D50 27A60010
0411FFEF 00000000 8FA40010 3C029D00 8C42002C 0040F809 02042021 8FBF001C
8FB00018 03E00008 27BD0020
'main
27BDFFC8 AFBF0034 AFB40030 AFB3002C AFB20028 AFB10024 AFB00020 0080A021
00A09821 00C09021 00E08821 00002021 3C059D00 24A50DB8 27A60018 0411FFD5
00000000 3C109D00 8E020090 8E430000 A043002E 8E020090 8E630000 A043002C
8E020090 8E230000 A043003C 8E020090 8E830000 A043003D 8E020090 8FA30048
8C630000 A0430015 8E02003C 0040F809 24040800 8E03008C AC620000 2403FFF5
A0430000 8E030090 8E02001C 8064002E 0040F809 24050005 8E030090 8E020010
8064002E 24050008 0040F809 00003021 8E030090 8E020010 8064002E 24050065
0040F809 00003021 8E030090 8E02001C 8064002C 0040F809 24050005 8E030090
8E020010 8064002C 24050008 0040F809 00003021 8E030090 8E020010 8064002C
24050065 0040F809 00003021 8E220004 1C400054 240400AE 14400005 00000000
8E220000 2C420002 1040004E 00000000 0411FDEF 00000000 240400D5 0411FDEC
00000000 24040080 0411FDE9 00000000 240400A8 0411FDE6 00000000 2404003F
0411FDE3 00000000 240400D3 0411FDE0 00000000 00002021 0411FDDD 00000000
24040040 0411FDDA 00000000 2404008D 0411FDD7 00000000 24040014 0411FDD4
00000000 24040020 0411FDD1 00000000 00002021 0411FDCE 00000000 240400A1
0411FDCB 00000000 240400C8 0411FDC8 00000000 240400DA 0411FDC5 00000000
24040012 0411FDC2 00000000 24040081 0411FDBF 00000000 240400CF 0411FDBC
00000000 240400D9 0411FDB9 00000000 240400F1 0411FDB6 00000000 240400DB
0411FDB3 00000000 24040040 0411FDB0 00000000 240400A4 0411FDAD 00000000
240400A6 0411FDAA 00000000 240400AF 0411FDA7 00000000 24020040 10000056
24030080 0411FDA2 00000000 24040020 0411FD9F 00000000 24040010 0411FD9C
00000000 240400B0 0411FD99 00000000 240400C8 0411FD96 00000000 00002021
0411FD93 00000000 24040010 0411FD90 00000000 24040040 0411FD8D 00000000
24040081 0411FD8A 00000000 240400AF 0411FD87 00000000 240400A1 0411FD84
00000000 240400A6 0411FD81 00000000 240400A8 0411FD7E 00000000 2404000F
0411FD7B 00000000 240400A4 0411FD78 00000000 240400D3 0411FD75 00000000
00002021 0411FD72 00000000 240400D5 0411FD6F 00000000 240400F0 0411FD6C
00000000 240400D9 0411FD69 00000000 24040022 0411FD66 00000000 240400DA
0411FD63 00000000 24040002 0411FD60 00000000 240400DB 0411FD5D 00000000
24040049 0411FD5A 00000000 2404008D 0411FD57 00000000 24040014 0411FD54
00000000 240400AF 0411FD51 00000000 24020010 24030060 3C049D00 8C840090
90840015 30840001 10800006 3C049D00 8C850094 ACA30000 8C830098 10000005
AC620000 8C850098 ACA30000 8C830094 AC620000 8FA50018 3C029D00 8C430048
3C049D00 248407CC 00852021 AC640000 8FA50018 8C43004C 3C049D00 24840A08
00852021 AC640000 8FA50018 8C4300A4 3C049D00 24840720 00852021 AC640000
8C430048 8C440094 8C860000 8C420098 8C470000 AFA00010 8C620000 00002021
00002821 24C6FFFF 0040F809 24E7FFFF 3C049D00 24841234 0411FEC6 00000000
8FBF0034 8FB40030 8FB3002C 8FB20028 8FB10024 8FB00020 03E00008 27BD0038
'.rodata
'startup
31445353 20363033 20433249 76697264 6C207265 6564616F 000A0D64
End CSub
Edited by matherp 2018-06-06
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 06:02pm 05 Jun 2018
Copy link to clipboard 
Print this post

Thank you Peter! I appreciate your help.

I tested it on the boards that I have and it works consistently, now.


Micromites and Maximites! - Beginning Maximite
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025