The sound of sorting algorithms

Ya’akov

Joined Jan 27, 2019
10,226
When I was programming my TRS-80, as a teenager, I would put an AM radio nearby and use the sound for troubleshooting. It was surprisingly helpful.
 

crutschow

Joined Mar 14, 2008
38,407
When I was programming my TRS-80, as a teenager, I would put an AM radio nearby and use the sound for troubleshooting. It was surprisingly helpful.
When I went to college in ancient times (the early 60's), the school had a home-built vacuum-tube computer containing about 15,000 vacuum tubes (and took about 15kW to operate!).
(I think it was programmed directly in machine language).
They had added some sort of A/D converter connected to a speaker and that looked at the data bus to monitor computer operation.
The bus rate was slow enough (I think the main clock was 100kHz) so that it gave a curious, random sing-song output when operating normally, but if the song pattern started noticeable repeating, it meant it was caught in a loop without an exit.
 
Last edited:

Ya’akov

Joined Jan 27, 2019
10,226
When I went to college in ancient times (the early 60's), the school had a home-built vacuum-tube computer containing about 15,000 vacuum tubes (and took about 15kW to operate!).
(I think it was programmed directly in machine language).
They had added some sort of A/D converter connected to a speaker and that looked at the data bus to monitor computer operation.
The bus rate was slow enough (I think the main clock was 100kHz) so that it gave a curious, random sing-song output when operating normally, but if the song pattern started noticeable repeating, it meant it was caught in a loop without an exit.
That was one of the things I used the radio for! The clock on the Z80 CPU was 1.77MHz, so the AM broadcast band receiver was a perfect monitor. You could could, with practice, also get a sense of what parts of your program were executing.
 

Thread Starter

schmitt trigger

Joined Jul 12, 2010
2,056
Y:
If I recall correctly, the Z80s instruction’s execution time was a sub-multiple of the clock speed. That would put the execution frequency right smack in the middle of the AM band.
 

Ya’akov

Joined Jan 27, 2019
10,226
Y:
If I recall correctly, the Z80s instruction’s execution time was a sub-multiple of the clock speed. That would put the execution frequency right smack in the middle of the AM band.
Yes, and you could tune for how it sounded. It would tend to emphasize some instructions more than others depending on that.
 
Top