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.

Reply
 
Thread Tools
Old 3rd Sep 2023, 4:10 pm   #21
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

I just finished manually typing in an old paper document, "A Guide to Kitbug" whilst making minimal edits to cover KitbugPlus. Its at the bottom of the SC/MP page
Typo spotters welcome!

Last edited by Phil__G; 3rd Sep 2023 at 4:33 pm.
Phil__G is offline   Reply With Quote
Old 6th Sep 2023, 11:56 am   #22
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

I've long assumed "A Guide to Kitbug" is a National Semis publication but I've since pondered the incorrect reset statement, a mistake that NS wouldnt make.
Digging deeper, I found that its actually from Kemitron.
Credit where credit is due, I'll amend the pdf
Phil__G is offline   Reply With Quote
Old 10th Sep 2023, 6:13 pm   #23
audiokit
Triode
 
Join Date: Jan 2021
Location: Hulst, Netherlands.
Posts: 47
Default Re: Tiny SC/MP system !!!

Today I finally found some time to change my wire wrapped SC/MP intro kit board.
Phils KitbugPlus uses more memory then the original Kitbug so I had to extend the ROM from 0000 - 01FF to 0000 - 07FF and of course start RAM at 0800.

This can be done by changing the chip enables for the ROM and the RAM from address 9 to address 11.

After that, address 9 and 10 from the SC/MP have to be connected to ad9 and ad10 of the eprom (2716 in my case)

Actually that was all the rewiring I had to do.

At first I did not have a CR after using the "D" command (see picture) but after a mail to Phil he pointed out that I had to configure Teraterm Rx/Tx as Auto/CR. After that all went well.

This version is a nice addition to the existing Kitbug. being able to show a whole block of memory and download newly made binary code from SBASM with the "S" command to test it on the real SC/MP.

Well done Phil
Attached Thumbnails
Click image for larger version

Name:	kitbugplus screendump.jpg
Views:	70
Size:	64.1 KB
ID:	284768   Click image for larger version

Name:	Tera Term.PNG
Views:	62
Size:	5.8 KB
ID:	284769  
audiokit is offline   Reply With Quote
Old 17th Sep 2023, 11:03 pm   #24
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

Sorry for the late reply, just got home from a 10 day camping trip
It's great to see KB+ being used on different hardware Benny, thank you
Phil__G is offline   Reply With Quote
Old 18th Sep 2023, 10:01 pm   #25
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

Heres the 'John Conways Game of Life' I did for the PICL, adapted for KB+ on a real SC/MP

Use the command S800 to load, use Teraterm 'send binary' with no delays, takes about 8 or 9 seconds, transfer activity can be seen on the FTDI LED.
When the LED stops, press reset and enter G800


.
Attached Files
File Type: zip life_24x24_kitbgplus_x800.zip (129.0 KB, 28 views)

Last edited by Phil__G; 18th Sep 2023 at 10:06 pm.
Phil__G is offline   Reply With Quote
Old 18th Sep 2023, 11:29 pm   #26
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

A starting-pattern variation:
Attached Files
File Type: zip life_24x24_kitbgplus_x800jc.zip (451 Bytes, 30 views)

Last edited by Phil__G; 18th Sep 2023 at 11:52 pm.
Phil__G is offline   Reply With Quote
Old 20th Sep 2023, 4:24 pm   #27
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

My "Vintage Computing Christmas Challenge 2022" (VC³ 2022) entry.
Load the .bin using S800, wait for the FTDI LED to finish, reset, G800
Attached Files
File Type: zip xmasstar_scmp_kitbugplus.zip (3.2 KB, 25 views)
Phil__G is offline   Reply With Quote
Old 20th Sep 2023, 7:10 pm   #28
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

Music program from the SoC manual
Load the .bin using KB+ command S800, wait for the FTDI LED to finish, reset, G800
Audio can be heard on either F1 or F2 (F0 is the serial terminal)
Attached Files
File Type: zip music_ex800_flag1or2.zip (3.5 KB, 28 views)
Phil__G is offline   Reply With Quote
Old 20th Sep 2023, 7:52 pm   #29
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

...always remembering to set Teraterm file to 'binary' in the File, Send menu:
Attached Thumbnails
Click image for larger version

Name:	binary.jpg
Views:	42
Size:	72.1 KB
ID:	285304  
Phil__G is offline   Reply With Quote
Old 3rd Oct 2023, 4:21 pm   #30
Michael Haardt
Tetrode
 
Join Date: May 2021
Location: Titz, Germany.
Posts: 72
Default Re: Tiny SC/MP system !!!

How much RAM does Kitbugplus need? Elektor SC/MP systems have IO at 0x700 and while
I could reconfigure that, of course it would be great if less is needed.

Are you aware of this monitor program recently recovered?

https://github.com/ekuester/SCMP-INS...C-Interpreter/

I just got NIBLFP running on my system. Unlike previous versions, it is now started at its load address at 0D000. Loading a monitor that has a serial load function would make more sense, of course.

Michael
Michael Haardt is offline   Reply With Quote
Old 3rd Oct 2023, 5:38 pm   #31
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

Hi Michael, it just uses 0xFFF down to 0xFF6 for the registers, and a few more bytes below that for variables and the stack, I generally regard FE0 as the 'top' of memory to allow some stack space.

Like NS Kitbug and SCIOS, it relies on wrap-around so 0xFFF is an offset of -1 from zero.
The actual amount of memory over and above this, it doesnt care, I have 1k on my Aitken SC/MP, 2k on the micro-introkit board, 8k on the PICL - any size as long as it can see memory at FF0-FFF, thats all it needs.

I hadnt seen the monitor in your link, I had a quick scan and it looks quite complicated code, I will need to sit down and spend some time reading.
I did immediately notice something strange though:
Code:
      21/       0 :                     ; ILLEGAL OPCODES
      22/       0 : =0x20                WRITECH = 0x20
      23/       0 : =0x21                READCHR = 0x21
These are Karens own unique pseudo-ops for the PICL, used to relieve the SC/MP of serial I/O and move the task onto the PIC.
I did use these in my original KitbugPlus because it was running on the PICL, but I'm not sure why they would be in some native SC/MP code,
I'm not aware of any SC/MP code anywhere that uses them except for the KitbugPlus monitor I posted for the PICL... maybe all will be clear after a proper read.

How are you finding FP basic? is the speed ok?

Last edited by Phil__G; 3rd Oct 2023 at 5:54 pm.
Phil__G is offline   Reply With Quote
Old 3rd Oct 2023, 6:08 pm   #32
Michael Haardt
Tetrode
 
Join Date: May 2021
Location: Titz, Germany.
Posts: 72
Default Re: Tiny SC/MP system !!!

Using memory outside the area of 0x700-0x7ff is fine for Elektor systems, just that space is used for IO. As I said, I could change it, but if that is not used I do not have to.

I just got NIBLFP running, which required making a new boot ROM for my system, so I did not check it much yet. Seeing floating point on the SC/MP is pretty amazing.

All this code was recovered from decades ago and up to now only ran on an emulator to fix recovery errors and build problems. The emulator contains the same opcodes as PICL for tty communication. I am just building a native SC/MP system for the author, because I still had components from building mine. Seeing NIBLFP running natively after all the time was pretty cool.

Getting to a setup that is both compatible with Elektor stuff, but also starts a monitor that can load code as Intel hex would be pretty cool, because BASIC could be loaded over serial that way.

Michael
Michael Haardt is offline   Reply With Quote
Old 3rd Oct 2023, 6:19 pm   #33
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

So are Karens pseudo ops not original after all? someone defined them before Karen did in 2007 ?
I had always assumed she created them herself, I thought they were a great idea
In the PICL source she comments that they are 'new pseudo instructions' (2007) but doesnt actually claim them and I'd always just assumed...
do you know who is ukuester?

I tried Intel hex and found the necessary processing was impossibly slow, it needed delays after every byte to allow the SC/MP to process it and after many attempts at streamlining the code i gave up and KitbugPlus now has a very simple binary loader. Its quick & reliable at 1200 baud with no delays at all.
Here is a demo, the windows capture doesnt see pop-up windows so after the 'S800' command you dont see me doing 'File, send' and choosing the 'Life' file but still it gives an idea:
https://youtu.be/0FdaDoIqXpU

Last edited by Phil__G; 3rd Oct 2023 at 6:45 pm.
Phil__G is offline   Reply With Quote
Old 3rd Oct 2023, 11:26 pm   #34
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

Wow I just had a read through and Erich's code is a lot to take in, it seems to have everything, cassette i/o, disassembler... really complete but very complex.
I'm not sure but I think it uses a similar technique to the "Strong Arm of P3" technique (described in the Haviland book) as a subroutine handler...
All very clever, way beyond my skills and too much for me to take in for now but thanks for posting the link Michael
Cheers
Phil
Phil__G is offline   Reply With Quote
Old 4th Oct 2023, 8:29 am   #35
Realtime
Hexode
 
Join Date: Jan 2021
Location: Ashford, Kent, UK
Posts: 320
Default Re: Tiny SC/MP system !!!

Quote:
Originally Posted by Phil__G View Post
Its quick & reliable at 1200 baud with no delays at all.
Here is a demo, the windows capture doesnt see pop-up windows so after the 'S800' command you dont see me doing 'File, send' and choosing the 'Life' file but still it gives an idea:
https://youtu.be/0FdaDoIqXpU
Nice demo of 'Life'. Looking forward to building a micro-introkit soon. (btw, your video doesn't show up in searches on youtube or on your channel. I think the reason may be that it's status is 'unlisted' so only viewable if you have a link to it. I guess that can be changed in the video's properties)
Realtime is offline   Reply With Quote
Old 4th Oct 2023, 9:59 am   #36
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

Hi Ian yes if a simple video is intended just to illustrate a thread like this then I upload them as 'unlisted', otherwise you get random punters complaining that they dont know what its about...
Phil__G is offline   Reply With Quote
Old 4th Oct 2023, 2:17 pm   #37
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

I've been working on KitbugPlus's serial I/O with a view to upping the baud rate.

My Aitken SC/MP runs the original NS Kitbug at 300 baud, which is much nicer than the old 110. At 1200, KB+ is much better than 300. 2400 is doable, maybe 4800, 9600?

A minutes cycle counting revealed that 9600 just isnt possible using the standard sense/flag I/O - SIN and SOUT would probably manage it but senseB/Flag0 are standard for NS Kitbug and NIBL so I want to stick to that, which means 9600 is out of the question for now.

I did get it kinda working at 4800 but now the SC/MP started to need a delay between characters to allow it to process. Since Teraterms minimum delay is 1ms, I found there was almost no difference in overall throughput between a reliable 2400 with no delays, and an iffy 4800 + 1ms.

Thing is, as you try ever faster bit rates the inbetween processing time becomes more & more significant and the bit delays that actually 'tune' the serial routines tend towards nothing.

To cut a long story short, I've been running it at 2400 full duplex (ie proper GECO) for a few hours, and so far its been perfectly reliable with no delays at all, the Sload command works great and does actually load twice as fast as 1200.

I'm sure a more capable programmer could get 4800 to run perfectly but 2400 baud and a doubled fast-load speed is fine by me, quite a bit better than the original 110 !!!

I'll update my SC/MP page sometime today, here's a slightly better demo where you can see the menu choices:

https://youtu.be/WX3yQuYx314

Cheers - Phil
Phil__G is offline   Reply With Quote
Old 5th Oct 2023, 7:37 am   #38
Mark1960
Octode
 
Join Date: Mar 2020
Location: Kitchener, Ontario, Canada
Posts: 1,298
Default Re: Tiny SC/MP system !!!

I followed the link you posted in #34 and saw the link Timbucus posted to practical electronics february 1979, page 60, which I don’t remember reading earlier.
https://worldradiohistory.com/UK/Pra...9-02-S-OCR.pdf

This uses hardware to create trap instructions. Apart from thinking they used too many ICs, I was wondering if all the gaps in the instruction table were treated as NOP by the INS8060. Also what happens for the two byte NOPs, does the second byte still get fetched and is it ignored. Has anyone tried these undefined instruction codes?
Mark1960 is offline   Reply With Quote
Old 11th Oct 2023, 5:14 pm   #39
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

I've updated KitbugPlus again with a 'C' block copy command for moving memory around.
Can also be used to clear or fill memory. Has the 1200 or 2400 baud console and Serial loader.
Documents, source, hexfiles etc all updated on the SC/MP page of http://philg.uk via the KitbugPlus.zip download.
Cheers
Phil
Attached Thumbnails
Click image for larger version

Name:	kbpcmds.jpg
Views:	31
Size:	33.8 KB
ID:	286277  

Last edited by Phil__G; 11th Oct 2023 at 5:33 pm.
Phil__G is offline   Reply With Quote
Old 18th Oct 2023, 9:37 pm   #40
Phil__G
Octode
 
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,122
Default Re: Tiny SC/MP system !!!

And another KitbugPlus update, this is just a change to the Copy command, it now handles overlapping source & destination blocks, similar to the 'intelligent copy' command in NAS-SYS. I'm quite content with it now, cant think of anything else it desperately needs, its still under 1.5k bytes but I think that will do for now. I would love to know if anyone has tried it. As far as I'm aware its just me & Benny (Audiokit)
Files & updated docs are in the KitbugPlus.zip file on my scamp page.
Cheers
Phil
Phil__G is offline   Reply With Quote
Reply




All times are GMT +1. The time now is 4:34 am.


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 - 2024, vBulletin Solutions, Inc.
Copyright ©2002 - 2023, Paul Stenning.