![]() |
|
![]() |
|
|||||||
| Vintage Computers Any vintage computer systems, calculators, video games etc., but with an emphasis on 1980s and earlier equipment. |
![]() |
|
|
Thread Tools |
|
|
#1 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,476
|
Here's my quick & easy method of making a scrolling message on your MK14 or PIC14. Lets see some Christmas messages!
https://www.mccrash-racing.co.uk/philg/picl/mymessage_f20.zip |
|
|
|
|
#2 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,476
|
Well, theres nothing new under the sun - Johannes just told me about this, but still it was a bit of fun to write one in good ol' basic
![]() https://github.com/dadecoza/Ardu14/blob/main/Tools/mk14message.py Last edited by Phil__G; 17th Dec 2023 at 10:41 am. |
|
|
|
|
#3 |
|
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 13,785
|
I wish I could drum up some enthusiasm for this but since there's no easy representation for 'M' (or 'X' for that matter) on 7-segment displays, 'Merry Christmas' is quite a challenge!
I like the idea of having an easier way to 'compile' alternative texts for the 'Message' program to display, though, so that's genuinely useful. |
|
|
|
|
#4 |
|
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 13,785
|
I used to have a written out table of all possibly useful 7-segment characters (in some cases both upper and lower case versions, like 'C' and 'O') and I just used to refer to that when I wanted to make some custom text.
In the (rather shonky) video demo for my original 2012 MK14 uploader I made a modified version of the 'Message' program which scrolled the text quite fast but then held each individual word on the display for half a second or so before scrolling it off and the next one on. That actually looked better and more readable than the standard message program. I used some uncommonly used character code as a 'pause for half a second' control character between words, and the main addition to the code was the bit that responded to that. Unfortunately I think I lost the source for that when I reformatted the Pi SD card that I had written that code on originally. Maybe we need a new version? |
|
|
|
|
#5 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,476
|
I've just done a variation of the Science of Cambridge 'Message' program.
In the original you have to look up all the 7-segment codes, either manually or using a conversion program, and then you have to turn the message around so its backwards. Quite a faff! This new version takes a straightforward uppercase ASCII message, there are no manual look-ups to do, no reversing, just type your message into the source and assemble. Obviously its a bit bigger, but who keys in manually these days? ![]() https://www.mccrash-racing.co.uk/philg/picl/asciimessage_f20.zip Execute at F20 as usual. |
|
|
|
|
#6 | ||
|
Hexode
Join Date: Jan 2021
Location: Ashford, Kent, UK
Posts: 456
|
Quote:
Quote:
and still around 50 bytes left for a longer message.
|
||
|
|
|
|
#7 |
|
Dekatron
Join Date: Aug 2011
Location: Newcastle, Tyne and Wear, UK.
Posts: 13,785
|
I'm obviously too literal-minded to accept the idea that characters like 'K', 'M', 'Q', 'V', 'W' 'X' and 'Z' can be represented on 7-segment displays.
Obviously the VDU presents no such limitations so I'm surprised there isn't already a VDU version of the classic 'Message' program, and since there's vertical leeway available why not go mad and make it an Amiga-style sine-scroller... Might work better with a bitmap font designed for graphics mode so the characters can be shifted up or down by a a small fraction of the overall character height. |
|
|
|
|
#8 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,476
|
I just added the Sirius autostart bit & re-uploaded it
|
|
|
|
|
#9 |
|
Octode
Join Date: Mar 2011
Location: North Yorkshire, UK.
Posts: 1,476
|
Yesterday, as I was poring over the 'Message' with a mug of tea, I started thinking how incredibly well these early examples were coded. We of course have 45 years of hindsight, hardware familiarity and many examples for inspiration, we can chat and compare notes with umpteen like-minded enthusiasts, draw on each others experience.
But pioneers like DJD, Nick Toop, JMK and the like were starting absolutely from scratch, without any precedents, very little by way of reference works or even an concept of how microcomputer programs should look or perform. And in a brand new field of electronics with an unknown chip supported only by the few NS publications for guidance. Its highly unlikely they each had an Imp16 or a PACE for development so I presume most of the MK14 manual examples were hand-coded. Astonishing really to think how capable and innovative these people were.Incidentally, I wonder of National Semis Introkit+KBkit combination came with a book full of examples like the MK14 did? Last edited by Phil__G; 20th Dec 2023 at 12:16 am. |
|
|
|
|
#10 | |
|
Nonode
Join Date: May 2012
Location: Perth, Scotland
Posts: 2,436
|
I have a deep (perhaps irrational) dislike of AI but I was wondering what ChatGPT would make of this.
Colin. Quote:
|
|
|
|
|
|
#11 |
|
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,435
|
Well BING CoPilot (GPT-4) wrote the below (I reproduce verbatim):
(interestingly the four citations used were (wikipedia, w3.org, curiousmarc.com and Yay vintage-radio.net!!!!) "Writing code for the National Semiconductor SC/MP (pronounced “scamp”) in 1976 was an intriguing endeavor. This early 8-bit microprocessor, which became available in April 1976, was designed to allow systems to be implemented with the minimum number of additional support chips1. Let’s delve into the challenges and experiences of coding for this historic microprocessor: Limited Resources: The SC/MP had a simple architecture and minimal instruction set, which meant that programmers had to work with limited resources. They needed to be creative in optimizing code to fit within the available memory and processing capabilities. Assembly Programming: Writing code for the SC/MP involved assembly language programming. Programmers had to manually translate high-level instructions into machine code, which required a deep understanding of the processor’s instruction set and memory organization. Debugging Challenges: Debugging was a hands-on process. Programmers used LED displays and switches on development boards to examine memory contents, step through code, and identify issues. There were no sophisticated debugging tools or integrated development environments (IDEs) like we have today. Lack of Documentation: Documentation for early microprocessors was often sparse. Programmers relied on data sheets, manuals, and sometimes trial and error to understand the processor’s behavior and write efficient code. Hardware Constraints: The SC/MP was intended for low-cost systems, so developers had to work with minimal hardware components. They needed to be resourceful in designing circuits and interfaces to connect peripherals and memory. Learning Curve: As one of the first microprocessors available, the SC/MP required programmers to learn from scratch. They had to grasp concepts like registers, addressing modes, and interrupt handling without the wealth of online resources we have today. Pioneering Spirit: Writing code for the SC/MP was an adventure. Programmers were pioneers, exploring uncharted territory in the world of microprocessors. Their passion and determination fueled their efforts. In summary, coding for the SC/MP in 1976 was both challenging and rewarding. It laid the foundation for subsequent generations of microprocessors and contributed to the evolution of computing technology" |
|
|
|
|
#12 |
|
Hexode
Join Date: Jan 2021
Location: Ashford, Kent, UK
Posts: 456
|
Haha, It’s a bit “teenager googling their homework”. Perhaps you can ask GPT to produce the SC/MP assembler code for PacMan running on an expanded MK14
|
|
|
|
|
#13 |
|
Octode
Join Date: Mar 2019
Location: Barry, Vale of Glamorgan, Wales, UK.
Posts: 1,435
|
|
|
|
|
|
#14 |
|
Nonode
Join Date: May 2018
Location: Northampton, Northamptonshire, UK.
Posts: 2,736
|
Well even with Python etc, it seems it doesn't get it right first time, from some trials a work colleague did a year ago - But you could reply with what is wrong and get it to have another go with refining it.
Interesting it uses a discussion forum for 'facts' research - possibly a bit like relying on certain Newspaper or some notorious TV 'News' channels. But maybe there aren't that many detailed sources of info on the pre-Internet era SC/MP. |
|
|