![]() |
|
![]() |
|
|||||||
| Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
Hi,
I had a look at PhilG site and became very enthusiast and build a SC/MP nibl in a PIC. Also I have done some modifications in the SC/MP NIBL emulator running on a 16F877 PIC. One of them is the HALT instruction is activated: It emulates the HALT instruction as used in Elektor SC/MP. SB is used as HALT RESET. The other one is the local echo. The serial in routine echoes the character to output now. If you are interested I'll post the PIC sourcecode. Greetings, Nick de PE1GOO |
|
|
|
|
#2 |
|
Nonode
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 2,818
|
Thanks for the post. Yes I'm sure many of us may be interested in the source / compiled/assembled version of this.
Particularly Phil, who was previously patching some errors / missing instructions in more-recent PIC emulations of the SC/MP (I seem to recall one of the authors in the USA? of it had been unavailable for a while, so may have only been temporary patches?) |
|
|
|
|
#3 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
Here the sourcecode in PIC assembly language. The mods done by Phil are also done in this version.
|
|
|
|
|
#4 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
In the attached pdf-file a photo of my PCB version of SC/MP in a pic
|
|
|
|
|
#5 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
Hi Nick, great to hear of another 'picscamp'
![]() I've been busy continuing Karens 2019 version, similar in many ways but with 'raw' NIBL i/o. Retrofest was great, and we have another larger gathering in May next year ![]() Keep posting your projects! Cheers Phil |
|
|
|
|
#6 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
A busy guy! I've a question: Do you have the sourcecode of the kitbug+ version used in the nvram NIBL version? I'll appreciate that.
__________________
Greetings, Nick de PE1GOO |
|
|
|
|
#7 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
All my sbcs use nvram Nick, which version did you mean?
Mike's "SC/MP II Max", Kris's "MGH8060" and "8060GAL", the "KO2019" etc and the little 2k+2k scamp that I called the 'Micro-Introkit' all have their sources packaged up on philg.uk for KB+, NIBLE, Toolkit etc ![]() If you let me know which specific one I'll email it ![]() Cheers, Phil |
|
|
|
|
#8 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
Hi Phil,
It is the version you used in KitBugPlus_loader.bas. (PIC3L?) As date was mentioned 5th October 2021. I see only a Hex file but no source. I know you have produced a lot of versions . I hope you can find this one.
__________________
Greetings, Nick de PE1GOO Last edited by nlpe1goo; 18th Nov 2024 at 11:14 am. |
|
|
|
|
#9 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
Hi Nick, the source for the current version of KitbugPlus for the PICL is already in the PICL zipfile on http://philg.uk, on the PICL page, filename kbplus081021_piclv2.asm
The only change from 05/10/21 -> 08/10/21 was the addition of the autexec jump at the very end: Code:
AUTOEX: LD AXPCH XPAH P3 LD AXPCL XPAL P3 LD @-1(P3) ; DECREMENT ADDR XPPC P3 ; AND GO .NO $2FFC AUTOXJ: JMP AUTOEX ; FIXED JMP TO RELOC START AXPCH: .DB 0 ; AUTOEXEC PC HIGH AXPCL: .DB 0 ; AUTOEXEC PC LOW .END Code:
NXTLN: DLD -9(P2) JNZ FL2 ; do 16 lines JS P3,CMDLP ; BACK TO COMMAND LOOP The conversion to PEX (Phil's hex!) is a bit convoluted but in NIBL this gives a much faster load than Intel hex. PEX is just the byte plus 0x40 so a NOP (0x08) would be 0x48 "H" in PEX. Loading is by subtracting 0x40 from each PEX character & storing the resulting byte. Hope this helps Phil |
|
|
|
|
#10 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
Hi Phil,
I'm very sorry, but I see only PICLV2_210723.zip on your web-page. This version has more commands than the one used in the loader. I downloaded the file kitbugplus_picl.zip but this one doesn't contains the sourcecode. Perhaps I overlook something?
__________________
Greetings, Nick de PE1GOO |
|
|
|
|
#11 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
Dont apologise its fine Nick, this is the current source for KB+ on the PICL,
the zipfile is updated but I kept the old name 210723 because it had been linked to in the forum, renaming it would have broken the forum link. Is it that you particularly want an old, obsolete version? if so I will have to dig a little deeper but I will have it somewhere ![]() I would always suggest (and prefer) that the current version is used ![]() Can you run up KB+, do a "?" command and tell me what it says please? a screenshot would be good ![]() Edit: found it? I think its the attached file Nick. The only difference is it lacks the autostart. Last edited by Phil__G; 19th Nov 2024 at 10:22 am. |
|
|
|
|
#12 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
This is it, thanks!
__________________
Greetings, Nick de PE1GOO |
|
|
|
|
#13 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
No problem Nick,
I'm intrigued as to why you particularly wanted an obsolete version though! ![]() Is it because I haven't posted a NIBL PEX loader for the current version? If so I could do that for you ![]() Cheers Phil |
|
|
|
|
#14 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
Yes, your nibl pex loader is not the current version. That's why I wanted the obsoleted version. I've a remark: I changed the geco in nibl that it echoes the character inputted also. Be aware of that. (Local echo in minicom echoes by every CR a linefeed, that irritated me.) With the geco change in nibl minicom can run without local echo. If you could sent me the nibl pex loader with the newer version that will be OK also.
__________________
Greetings, Nick de PE1GOO |
|
|
|
|
#15 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
Hi again Nick, I've just done a NIBL PEX loader for you, for the current KB+ and uploaded it here, I've not tested it as my kit is stored:
https://www.mccrash-racing.co.uk/philg/picl/kbplus081021_loader.nib It shouldnt really be necessary as the PICL's builtin hexloader loads the KB+ hexfile much, much quicker! The pexloaders were only really used in the early versions without the hexloader, so are obsolete now. The current PIC877 source is dated 21/07/2023, the latest additions being the reassigment of the console activity LED to SOUT controlled by sc/mp SIO instruction. There's no physical SIN pin and SIN-->bit7 is fixed at '1'. This version also fixed the DAE instruction which previously corrupted the SC/MP EX register. Hope this helps ![]() Cheers - Phil Last edited by Phil__G; 20th Nov 2024 at 12:52 pm. |
|
|
|
|
#16 | |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
Quote:
I have successfully added the halt instruction so as you can see. BTW You are also a radio amateur, Are you active on HF also? Perhaps then we could talk together on 40M?
__________________
Greetings, Nick de PE1GOO |
|
|
|
|
|
#17 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
Hi Nick I'm G4PHL but not very active, I only have a comms rx now. Oh and a Baufeng handy. My thing was AX25 packet as GB7PHL but that was a long time ago
|
|
|
|
|
#18 |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
You have HF set unfortunately ... I'm active on HF and not on VHF or UHF a pity.. I loaded your program, but it hangs. It reads a line to much. After changing it runs as expected. Thanks again.
__________________
Greetings, Nick de PE1GOO |
|
|
|
|
#19 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
|
Hi again Nick, I notice that your 'halt' additions were to an old version which lacks udates such as the Intel hexloader etc, I've merged your halt code into a current PIC877 update but I'm unable to test it as yet, so for now the update is a separate zip within the existing PICLV2 zipfile. The philg.uk PICL page is also temporarily updated. Its been a while since I looked at the 877 version, I had been concentratng on the 18877 but even that was a good while ago
|
|
|
|
|
#20 | |
|
Tetrode
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
|
Quote:
I've tested it. Be aware to use a flip flop after the toggle switch (Contact bouncing) I use temporarily SB but in your 32K version you have a pin left that can be used for it instead. As you can see it waits for the switch pressed and until the switch is released it continues with the next instruction.
__________________
Greetings, Nick de PE1GOO |
|
|
|