Hi all, newbie here. Just discovered that there is a problem with GCBIDE. I compiled a file using GPUTILS, MPASM and GCBIDE. I find that the GPUTILS and MPASM generate identical HEX files. GCBIDE is different and it does not run! Here is the first few lines of the HEX files
I tried GCBIDE and I wasn't real impressed. Have you looked at Prithvi (https://sourceforge.net/projects/prithvi/)?? It's a pretty nice system, albeit with the usual quirks that accompany open-source software.
Joe
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
That would be a bug in GCBASIC's built in assembler, which at the moment only GCBIDE uses. What chip are you using? It looks like a banksel instruction is not being assembled properly.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've just uploaded another update, which should fix this bug. The problem was with the banksel, GCBASIC was only setting STATUS.RP0 and not STATUS.RP1.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hugh, that did not fix it. Here are snippets from line 163 to finish for GCBIDE .hex and MPASM.hex. Note that GCBIDE produces 229 lines vs. 202 for MPASM. the .asm files are identical. Regards, Ed.
I have no trouble compiling that code using the latest version (12/8). The hex file generated has 201 lines - 1 less than MPASM, but that's just due to a slight formatting difference, the bytes in the file are the same.
Can you double check that the latest version of the compiler is being used? It's possible that your web browser cached an older version of update-nochipdata.zip, or that GCBIDE is calling an older version it's found somewhere - check the Environment Setup (button with the Earth on it).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all, newbie here. Just discovered that there is a problem with GCBIDE. I compiled a file using GPUTILS, MPASM and GCBIDE. I find that the GPUTILS and MPASM generate identical HEX files. GCBIDE is different and it does not run! Here is the first few lines of the HEX files
GPUTILS and MPASM:
:020000040000FA
:020000000528D1
:080008000900F921831603131E
:100010000514851405158515061086108611013006
:1000200083120313D7000830D5000130D9000830FF
:10003000CF000130DB00D3010130D100E721861071
:100040008611A201A301AA01AB01A501A601E50148
:10005000E601ED01EE01E801E901A701FF30A8008A
:10006000EA01FF30EB00B101AF01AE01AD01AC011F
:10007000B0010130C000C101BE01BF01B601B7012E
:10008000B801B901BA01BB01B301B401B5018030B7
:10009000BC007030BD00C930C600FE30C700C401CE
:1000A000C501C801C9010130F400B0218614013036
:1000B000F400B02186106F200522D5223222B8210B
:1000C0008D20CD243230F40093211C30F400932194
:1000D0000130F200F301A2215B2863006E28861430
:1000E0000A30F200F301A221861008000800013056
:1000F000D700FE30CE0073240130D7000130CE008F
:1001000073240130D700FE30CE0073240130D700B5
:100110008030CE00732408000800B108031DE228D7
:1001200077200130D700C530F2000130F3000230F3
:10013000F7000630F800DF25C530DF000130E000B1
:1001400026240130D700C530F2000130F30007301B
:10015000F7000630F800DF25C530DF000130E00091
:1001600026240130D7003008CC00402498230130E9
:10017000D700C530F2000130F3001130F70006302F
GCBIDE:
020000040000FA
:020000000528D1
:060008000900F921831636
:100010000514851405158515061086108611013006
:02002000831249
:10002400D7000830D5000130D9000830CF000130A6
:10003400DB00D3010130D100E72186108611A20133
:10004400A301AA01AB01A501A601E501E601ED01A9
:10005400EE01E801E901A701FF30A800EA01FF3041
:10006400EB00B101AF01AE01AD01AC01B001013053
:10007400C000C101BE01BF01B601B701B801B90199
:10008400BA01BB01B301B401B5018030BC007030CA
:10009400BD00C930C600FE30C700C401C501C80197
:1000A400C9010130F400B02186140130F400B021FC
:1000B40086106F200522D5223222B8218D20CD242E
:1000C4003230F40093211C30F40093210130F2000B
:1000D400F301A2215B2863006E2886140A30F20023
:1000E400F301A2218610080008000130D700FE3079
:1000F400CE0073240130D7000130CE0073240130C8
:10010400D700FE30CE0073240130D7008030CE00FB
:10011400732408000800B108031DE2287720013089
:10012400D700C530F2000130F3000230F70006308A
:10013400F800DF25C530DF000130E000262401305F
:10014400D700C530F2000130F3000730F700063065
:10015400F800DF25C530DF000130E000262401303F
:10016400D7003008CC00402498230130D700C53094
Looks like GCBIDE can not be trusted!
I will keep on using Crimson and GPUTILS until the problem is fixed.
Ed
I tried GCBIDE and I wasn't real impressed. Have you looked at Prithvi (https://sourceforge.net/projects/prithvi/)?? It's a pretty nice system, albeit with the usual quirks that accompany open-source software.
Joe
That would be a bug in GCBASIC's built in assembler, which at the moment only GCBIDE uses. What chip are you using? It looks like a banksel instruction is not being assembled properly.
Hugh, that was for a 16F88 chip. Ed.
I've just uploaded another update, which should fix this bug. The problem was with the banksel, GCBASIC was only setting STATUS.RP0 and not STATUS.RP1.
Hugh, that did not fix it. Here are snippets from line 163 to finish for GCBIDE .hex and MPASM.hex. Note that GCBIDE produces 229 lines vs. 202 for MPASM. the .asm files are identical. Regards, Ed.
GCBIDE:
:10099400031CC32CA42B2F08F500F9016125700852
:1009A400E3002E08F5003B30F9006125630870056B
:0809B400E100611C5B2D8312C0
:0609BE008D018F01831280
:0409C6002708831269
:0409CC008C00831206
:0609D200D3210130831265
:0609DA008D008F01831265
:0409E2002208831252
:0409E8008C008312EA
:0609EE00D3210230831248
:0609F6008D008F01831249
:0409FE002808831230
:040A04008C008312CD
:060A0A00D321033083122A
:060A12008D008F0183122C
:040A1A006A088312D1
:040A20008C008312B1
:060A2600D321043083120D
:060A2E008D008F01831210
:040A360065088312BA
:040A3C008C00831295
:060A4200D32105308312F0
:060A4A008D008F018312F4
:040A52006B08831298
:040A58008C00831279
:060A5E00D32106308312D3
:060A66008D008F018312D8
:040A6E0030088312B7
:040A74008C0083125D
:060A7A00D32107308312B6
:060A82008D008F018312BC
:040A8A003808831293
:040A90008C00831241
:060A9600D3210830831299
:060A9E008D008F018312A0
:040AA600330883127C
:040AAC008C00831225
:100AB200D3215F2D2D30F200F301A221080008009E
:100AC200F00175087902031D0800FF30F0000800EC
:100AD200F00175087902031D080076087A02031DE9
:100AE2000800FF30F0000800F001031475087902D5
:100AF200031C0800FF30F0000800F00176087A02BB
:100B0200031C08007A087602031C8B2D75087902F3
:100B1200031C0800F0090800F001031479087502AB
:100B220003180800FF30F0000800F0010830F4005C
:100B32000310F50DF00D7908F00275140318A42DB9
:100B420075107908F007F40B992D08007608F80063
:100B52007508F7007A08FC007908FB00F201F3013E
:100B62007C08F6007B08F500F901FA016925701C82
:100B7200BD2DF501F60108001030F4000310F70D49
:100B8200F80DF20DF30D7B08F2027C08031C013E06
:100B9200F30277140318D42D77107B08F2077C0830
:100BA2000318013EF307F40BBF2D7808F60077080F
:100BB200F5007308F1007208F00008007208840062
:100BC200831373188317FB25F5008000F207F22DBB
:100BD20072088400831373188317FB25F500F60748
:100BE200F207F50803190800FB25840A8000F50BBB
:100BF200F52D080078088A007708F70A0319F80A21
:100C02008200043441347634673420340934453464
:100C1200543469346D34653457344B3453343D3471
:100C220005346D34413434343034783405346D3421
:100C3200563436343034783403344D3461347834B5
:100C4200073452344F3456344C34443443343D34F4
:0A0C520004344D3469346E3420344C
:04400E002A3FFF3F07
:00000001FF
MPASM:
:100A0000831203178C0083120313D3210330831244
:100A100003178D008F01831203136A0883120317D3
:100A20008C0083120313D3210430831203178D002B
:100A30008F01831203136508831203178C0083123E
:100A40000313D3210530831203178D008F01831206
:100A500003136B08831203178C0083120313D32133
:100A60000630831203178D008F01831203133008A1
:100A7000831203178C0083120313D32107308312D0
:100A800003178D008F018312031338088312031795
:100A90008C0083120313D3210830831203178D00B7
:100AA0008F01831203133308831203178C00831200
:100AB0000313D3215F2D2D30F200F301A221080092
:100AC0000800F00175087902031D0800FF30F000EE
:100AD0000800F00175087902031D080076087A0203
:100AE000031D0800FF30F0000800F0010314750832
:100AF0007902031C0800FF30F0000800F0017608BE
:100B00007A02031C08007A087602031C8B2D7508F4
:100B10007902031C0800F0090800F00103147908A9
:100B2000750203180800FF30F0000800F0010830DB
:100B3000F4000310F50DF00D7908F0027514031898
:100B4000A42D75107908F007F40B992D080076088C
:100B5000F8007508F7007A08FC007908FB00F2013C
:100B6000F3017C08F6007B08F500F901FA0169251C
:100B7000701CBD2DF501F60108001030F4000310C3
:100B8000F70DF80DF20DF30D7B08F2027C08031C43
:100B9000013EF30277140318D42D77107B08F20777
:100BA0007C080318013EF307F40BBF2D7808F6000C
:100BB0007708F5007308F1007208F0000800720869
:100BC0008400831373188317FB25F5008000F20758
:100BD000F22D72088400831373188317FB25F50028
:100BE000F607F207F50803190800FB25840A8000C0
:100BF000F50BF52D080078088A007708F70A031925
:100C0000F80A8200043441347634673420340934DD
:100C10004534543469346D34653457344B3453346B
:100C20003D3405346D344134343430347834053453
:100C30006D34563436343034783403344D346134C2
:100C40007834073452344F3456344C3444344334BB
:0C0C50003D3404344D3469346E342034DB
:02400E002A3F47
:00000001FF
Can you please post or email me the original basic source?
I have no trouble compiling that code using the latest version (12/8). The hex file generated has 201 lines - 1 less than MPASM, but that's just due to a slight formatting difference, the bytes in the file are the same.
Can you double check that the latest version of the compiler is being used? It's possible that your web browser cached an older version of update-nochipdata.zip, or that GCBIDE is calling an older version it's found somewhere - check the Environment Setup (button with the Earth on it).
Hugh, you are right was it was calling version of 9/8. 12/8 compiles and runs fine now. Regards, Ed.