UK Vintage Radio Repair and Restoration Powered By Google Custom Search Vintage Radio and TV Service Data

Go Back   UK Vintage Radio Repair and Restoration Discussion Forum > Specific Vintage Equipment > Vintage Computers

Notices

Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment.

Closed Thread
 
Thread Tools
Old 16th Nov 2024, 11:35 am   #1
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default New PICNIBL SC/MP born in The Netherlands

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
nlpe1goo is online now  
Old 16th Nov 2024, 12:18 pm   #2
ortek_service
Nonode
 
ortek_service's Avatar
 
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 2,818
Default Re: New PICNIBL SC/MP born in The Netherlands

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?)
ortek_service is offline  
Old 16th Nov 2024, 12:35 pm   #3
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

Here the sourcecode in PIC assembly language. The mods done by Phil are also done in this version.
Attached Files
File Type: zip picniblesource.zip (12.0 KB, 127 views)
nlpe1goo is online now  
Old 16th Nov 2024, 1:29 pm   #4
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

In the attached pdf-file a photo of my PCB version of SC/MP in a pic
Attached Files
File Type: pdf scmpinapic.pdf (370.8 KB, 160 views)
nlpe1goo is online now  
Old 17th Nov 2024, 11:31 pm   #5
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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
Phil__G is offline  
Old 18th Nov 2024, 4:34 am   #6
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

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
nlpe1goo is online now  
Old 18th Nov 2024, 10:00 am   #7
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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
Phil__G is offline  
Old 18th Nov 2024, 11:09 am   #8
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

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.
nlpe1goo is online now  
Old 19th Nov 2024, 12:23 am   #9
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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
this comes at the very end of the source immediately following the lines:
Code:
NXTLN:	DLD	-9(P2)
	JNZ	FL2		; do 16 lines
	JS	P3,CMDLP	; BACK TO COMMAND LOOP
That is the only difference from the 5th October code.
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
Phil__G is offline  
Old 19th Nov 2024, 4:46 am   #10
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

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
nlpe1goo is online now  
Old 19th Nov 2024, 9:55 am   #11
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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.
Attached Thumbnails
Click image for larger version

Name:	piclzip.jpg
Views:	124
Size:	88.2 KB
ID:	307017  
Attached Files
File Type: zip kbitbugplus051021_piclv2_superseded.zip (4.7 KB, 111 views)

Last edited by Phil__G; 19th Nov 2024 at 10:22 am.
Phil__G is offline  
Old 19th Nov 2024, 11:14 am   #12
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

This is it, thanks!
__________________
Greetings,

Nick de PE1GOO
nlpe1goo is online now  
Old 19th Nov 2024, 11:44 am   #13
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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
Phil__G is offline  
Old 19th Nov 2024, 12:36 pm   #14
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

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
nlpe1goo is online now  
Old 20th Nov 2024, 12:43 pm   #15
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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.
Phil__G is offline  
Old 20th Nov 2024, 12:47 pm   #16
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

Quote:
Originally Posted by Phil__G View Post
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
Its not really 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
Thanks.
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
nlpe1goo is online now  
Old 20th Nov 2024, 1:09 pm   #17
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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
Phil__G is offline  
Old 20th Nov 2024, 2:09 pm   #18
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

Quote:
Originally Posted by Phil__G View Post
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
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
nlpe1goo is online now  
Old 20th Nov 2024, 3:36 pm   #19
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,499
Default Re: New PICNIBL SC/MP born in The Netherlands

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
Phil__G is offline  
Old 20th Nov 2024, 7:17 pm   #20
nlpe1goo
Tetrode
 
Join Date: Jul 2022
Location: Eindhoven, The Netherlands
Posts: 90
Default Re: New PICNIBL SC/MP born in The Netherlands

Quote:
Originally Posted by Phil__G View Post
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 concentrating on the 18877 but even that was a good while ago
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
nlpe1goo is online now  
Closed Thread

Thread Tools



All times are GMT. The time now is 8:00 pm.


All information and advice on this forum is subject to the WARNING AND DISCLAIMER located at https://www.vintage-radio.net/rules.html.
Failure to heed this warning may result in death or serious injury to yourself and/or others.


Powered by vBulletin®
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Copyright ©2002 - 2026, Paul Stenning.