Why could you hear an Amstrad CPC working? Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Is it possible to use an Amstrad CPC464 with a modern monitor or TVMemory sharing mechanism in the Amstrad CPC computerWhy CPC464 display is less stable while reading from cassette?Amstrad CPC 464 tape deck loads, but makes grinding scratching noisecbm prg studio for the AmstradCommon practices of programming the AY-3-8910 on Amstrad CPC: via Firmware routines or directly?

How do I automatically answer y in bash script?

Who can trigger ship-wide alerts in Star Trek?

What items from the Roman-age tech-level could be used to deter all creatures from entering a small area?

Can the prologue be the backstory of your main character?

Cold is to Refrigerator as warm is to?

Fishing simulator

What's the point in a preamp?

What is the order of Mitzvot in Rambam's Sefer Hamitzvot?

New Order #5: where Fibonacci and Beatty meet at Wythoff

Passing functions in C++

What computer would be fastest for Mathematica Home Edition?

What are the performance impacts of 'functional' Rust?

What was the last x86 CPU that did not have the x87 floating-point unit built in?

Stop battery usage [Ubuntu 18]

Determine whether f is a function, an injection, a surjection

What did Darwin mean by 'squib' here?

Is 1 ppb equal to 1 μg/kg?

What do you call a plan that's an alternative plan in case your initial plan fails?

The following signatures were invalid: EXPKEYSIG 1397BC53640DB551

How to rotate it perfectly?

Can a non-EU citizen traveling with me come with me through the EU passport line?

Complexity of many constant time steps with occasional logarithmic steps

Can I add database to AWS RDS MySQL without creating new instance?

Choo-choo! Word trains



Why could you hear an Amstrad CPC working?



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)Is it possible to use an Amstrad CPC464 with a modern monitor or TVMemory sharing mechanism in the Amstrad CPC computerWhy CPC464 display is less stable while reading from cassette?Amstrad CPC 464 tape deck loads, but makes grinding scratching noisecbm prg studio for the AmstradCommon practices of programming the AY-3-8910 on Amstrad CPC: via Firmware routines or directly?










8















I had my first programming experience in the late 80s / early 90s on a Schneider (Amstrad) CPC 464 in Basic.



I remember that when a program was running, depending on the current workload of the processor you could hear a faint buzzing sound from the integrated speakers.



Especially when an empty for loop was running (like for i = 1 to 500 : next) which was regularly used to get short waiting times (as there was no sleep command IIRC), you could hear this buzzing which gradually changed its frequency during the loop.



My question is: Was this a feature (as an audible feedback that the computer was working) or a consequence from insufficient decoupling of circuits?










share|improve this question







New contributor




elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2





    True story, I was writing some 3D graphics code on Sinclair PC200, and could hear the loop skipping triangles or processing them. That guided my optimization efforts for a more efficient hash.

    – void_ptr
    Apr 9 at 22:15






  • 3





    @void_ptr On my (comparatively) modern laptop, I can tell the difference between scrolling up and down on a page, creating a tarball vs creating a compressed tarball, and encrypting with AES128 vs AES256, entirely by the sound it makes. From an information security perspective, this is a nightmare...

    – forest
    Apr 9 at 23:09







  • 1





    @void_ptr - the real trick is to be able to smell the triangles. :-)

    – Bob Jarvis
    Apr 10 at 2:24















8















I had my first programming experience in the late 80s / early 90s on a Schneider (Amstrad) CPC 464 in Basic.



I remember that when a program was running, depending on the current workload of the processor you could hear a faint buzzing sound from the integrated speakers.



Especially when an empty for loop was running (like for i = 1 to 500 : next) which was regularly used to get short waiting times (as there was no sleep command IIRC), you could hear this buzzing which gradually changed its frequency during the loop.



My question is: Was this a feature (as an audible feedback that the computer was working) or a consequence from insufficient decoupling of circuits?










share|improve this question







New contributor




elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.















  • 2





    True story, I was writing some 3D graphics code on Sinclair PC200, and could hear the loop skipping triangles or processing them. That guided my optimization efforts for a more efficient hash.

    – void_ptr
    Apr 9 at 22:15






  • 3





    @void_ptr On my (comparatively) modern laptop, I can tell the difference between scrolling up and down on a page, creating a tarball vs creating a compressed tarball, and encrypting with AES128 vs AES256, entirely by the sound it makes. From an information security perspective, this is a nightmare...

    – forest
    Apr 9 at 23:09







  • 1





    @void_ptr - the real trick is to be able to smell the triangles. :-)

    – Bob Jarvis
    Apr 10 at 2:24













8












8








8








I had my first programming experience in the late 80s / early 90s on a Schneider (Amstrad) CPC 464 in Basic.



I remember that when a program was running, depending on the current workload of the processor you could hear a faint buzzing sound from the integrated speakers.



Especially when an empty for loop was running (like for i = 1 to 500 : next) which was regularly used to get short waiting times (as there was no sleep command IIRC), you could hear this buzzing which gradually changed its frequency during the loop.



My question is: Was this a feature (as an audible feedback that the computer was working) or a consequence from insufficient decoupling of circuits?










share|improve this question







New contributor




elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












I had my first programming experience in the late 80s / early 90s on a Schneider (Amstrad) CPC 464 in Basic.



I remember that when a program was running, depending on the current workload of the processor you could hear a faint buzzing sound from the integrated speakers.



Especially when an empty for loop was running (like for i = 1 to 500 : next) which was regularly used to get short waiting times (as there was no sleep command IIRC), you could hear this buzzing which gradually changed its frequency during the loop.



My question is: Was this a feature (as an audible feedback that the computer was working) or a consequence from insufficient decoupling of circuits?







cpc464






share|improve this question







New contributor




elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











share|improve this question







New contributor




elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









share|improve this question




share|improve this question






New contributor




elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.









asked Apr 9 at 15:00









elzellelzell

1433




1433




New contributor




elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.





New contributor





elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.






elzell is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.







  • 2





    True story, I was writing some 3D graphics code on Sinclair PC200, and could hear the loop skipping triangles or processing them. That guided my optimization efforts for a more efficient hash.

    – void_ptr
    Apr 9 at 22:15






  • 3





    @void_ptr On my (comparatively) modern laptop, I can tell the difference between scrolling up and down on a page, creating a tarball vs creating a compressed tarball, and encrypting with AES128 vs AES256, entirely by the sound it makes. From an information security perspective, this is a nightmare...

    – forest
    Apr 9 at 23:09







  • 1





    @void_ptr - the real trick is to be able to smell the triangles. :-)

    – Bob Jarvis
    Apr 10 at 2:24












  • 2





    True story, I was writing some 3D graphics code on Sinclair PC200, and could hear the loop skipping triangles or processing them. That guided my optimization efforts for a more efficient hash.

    – void_ptr
    Apr 9 at 22:15






  • 3





    @void_ptr On my (comparatively) modern laptop, I can tell the difference between scrolling up and down on a page, creating a tarball vs creating a compressed tarball, and encrypting with AES128 vs AES256, entirely by the sound it makes. From an information security perspective, this is a nightmare...

    – forest
    Apr 9 at 23:09







  • 1





    @void_ptr - the real trick is to be able to smell the triangles. :-)

    – Bob Jarvis
    Apr 10 at 2:24







2




2





True story, I was writing some 3D graphics code on Sinclair PC200, and could hear the loop skipping triangles or processing them. That guided my optimization efforts for a more efficient hash.

– void_ptr
Apr 9 at 22:15





True story, I was writing some 3D graphics code on Sinclair PC200, and could hear the loop skipping triangles or processing them. That guided my optimization efforts for a more efficient hash.

– void_ptr
Apr 9 at 22:15




3




3





@void_ptr On my (comparatively) modern laptop, I can tell the difference between scrolling up and down on a page, creating a tarball vs creating a compressed tarball, and encrypting with AES128 vs AES256, entirely by the sound it makes. From an information security perspective, this is a nightmare...

– forest
Apr 9 at 23:09






@void_ptr On my (comparatively) modern laptop, I can tell the difference between scrolling up and down on a page, creating a tarball vs creating a compressed tarball, and encrypting with AES128 vs AES256, entirely by the sound it makes. From an information security perspective, this is a nightmare...

– forest
Apr 9 at 23:09





1




1





@void_ptr - the real trick is to be able to smell the triangles. :-)

– Bob Jarvis
Apr 10 at 2:24





@void_ptr - the real trick is to be able to smell the triangles. :-)

– Bob Jarvis
Apr 10 at 2:24










2 Answers
2






active

oldest

votes


















10














There seems to be a slight misunderstanding: The CPU in a computer is (almost) never doing nothing (excluding power save states which was largely unknown at times the Amstrad was en vogue). So there's no such thing as "workload of a processor" going up or down - The CPU in an Amstrad is constantly running at 4 MHz, constantly under the same workload. If there's nothing do do, like executing a BASIC program), the CPU is, well, busy idling around at the same speed with the same "workload".



What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature.



Operators of mainframes sometimes could hear whether their machines were running properly (or had crashed) by listening to the interference noise they produced, sometimes even tried to amplify the noise. (See this book, page 161ff)



You were experiencing some similar effect.



Today, the sound of historic computers operating can even be marketed as art.






share|improve this answer




















  • 5





    ...or, by placing a cheap AM radio near the CPU. I knew a guy in college who programmed his Altair 8800 to play recognizable tunes through a nearby AM radio. Computers back in the day did not exactly comply with FCC regulations.

    – Solomon Slow
    Apr 9 at 19:19






  • 1





    "Workload" certainly is meaningful, even in the days of the Amstrad. If you're just executing a sequence of nops, that means a whole lot of CPU circuits are sitting there idle, not drawing significant power. (An empty loop in BASIC is very much not a case of the CPU being idle, though.)

    – Mark
    Apr 9 at 21:01












  • Even if that is not a "normal" use case, I pretty much doubt a Z80 on NOPs draws significantly less current than when executing any other instruction. Have you got proof of that? Pretty much the only circuit not required for NOPs is the ALU - And my guess would be that is not responsible for the most significant power consumption. A Z80 in HALT state might have a measurable difference in current draw, but most probably NOPs will not lower that.

    – tofro
    Apr 9 at 21:25







  • 2





    Even a halted Z80 will run through the refresh cycle, so it's still doing something. Most likely it's only going to be certain instruction patterns that cause a resonance in an audible range, and I'd suspect that the traces on the board act as the transmitters rather than the CPU itself.

    – Matthew Barber
    Apr 9 at 22:58


















4















What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature. - tofro




In addition to what tofro has answered, I'd like to point out that some types of interference is a result from multiple activities and/or subsystems in a computer, but others may have a direct correlation to a simple operation of the machine, such as running a special sequence of instructions or toggling the data inside in RAM.



In some cases, the nature of this interference can be completely understood by the programmer, and renders it controllable. This possibility was well-known back to the era of mainframes and minicomputers, and I'd like to give several examples.



  1. Here's the video of a 1971 DEC LAB-8/e minicomputer playing music. The music is generated by generating noise induced into an AM radio receiver near the CPU.



  2. Later, it was rediscovered by the members of the Homebrew Computer Club on the Altair 8800. Quote What the Dormouse Said: How the 60s Counterculture Shaped the Personal Computer.




    Dompier started again, and this time he succeeded. Previously he had
    discovered that the unshielded computer could be programmed to generate
    tones by interfering with a transistor radio. He spent hours figuring out
    how to create a musical scale. Then he used the radio as an output device
    for the computer. At the Homebrew meeting lightning struck when,
    unexpectedly, strains from the Beatles' "Fool on the Hill" emerged. When the song ended, the crowd crammed into the room jumped to their feet offering thunderous applause. After the audience calmed down, the song was repeated and then, foreshadowing a world of vastly more powerful computers, the Altair broke into a rendition of "Daisy," raising the specter of the almost conscious HAL from the movie 2001: A Space Odyssey. For the first time there was a computer that you could build yourself that actually did something! Felsenstein eventually calmed the crowd down and noted, "Okay, there is music, but we're not exactly changing the world." Nobody cared. Everyone wanted to hear it again, and so Dompier hit the button, and the music started all over again. When it ended, he received another round of applause.




  3. The same technique was again repopularized and reimplemented by various projects. For example, compile and run this program using a 2015 model MacBook Air. Then use a Sony STR-K670P radio receiver with the included antenna and tune it to 1580 kHz on AM You should hear the "Mary Had a Little Lamb" tune playing repeatedly. The actual emissions are caused by the _mm_stream_si128 instruction that writes through to a memory address.


  4. The above examples all exploited radio-frequency interference. But mechanical noise is also exploitable in some cases. For example, this program can generate a faint musical tones (Imperial March, but easily modifiable) from the coil whine of a Thinkpad T550 by rapidly changing the Intel CPU P-state, thus stressing the power supply and induces a coil whine with controllable frequency. I've personally tested it on other "classical" Thinkpads, such as Thinkpad X200 and Thinkpad X220, and it also works.






share|improve this answer

























    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "648"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    noCode: true, onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );






    elzell is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9634%2fwhy-could-you-hear-an-amstrad-cpc-working%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    10














    There seems to be a slight misunderstanding: The CPU in a computer is (almost) never doing nothing (excluding power save states which was largely unknown at times the Amstrad was en vogue). So there's no such thing as "workload of a processor" going up or down - The CPU in an Amstrad is constantly running at 4 MHz, constantly under the same workload. If there's nothing do do, like executing a BASIC program), the CPU is, well, busy idling around at the same speed with the same "workload".



    What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature.



    Operators of mainframes sometimes could hear whether their machines were running properly (or had crashed) by listening to the interference noise they produced, sometimes even tried to amplify the noise. (See this book, page 161ff)



    You were experiencing some similar effect.



    Today, the sound of historic computers operating can even be marketed as art.






    share|improve this answer




















    • 5





      ...or, by placing a cheap AM radio near the CPU. I knew a guy in college who programmed his Altair 8800 to play recognizable tunes through a nearby AM radio. Computers back in the day did not exactly comply with FCC regulations.

      – Solomon Slow
      Apr 9 at 19:19






    • 1





      "Workload" certainly is meaningful, even in the days of the Amstrad. If you're just executing a sequence of nops, that means a whole lot of CPU circuits are sitting there idle, not drawing significant power. (An empty loop in BASIC is very much not a case of the CPU being idle, though.)

      – Mark
      Apr 9 at 21:01












    • Even if that is not a "normal" use case, I pretty much doubt a Z80 on NOPs draws significantly less current than when executing any other instruction. Have you got proof of that? Pretty much the only circuit not required for NOPs is the ALU - And my guess would be that is not responsible for the most significant power consumption. A Z80 in HALT state might have a measurable difference in current draw, but most probably NOPs will not lower that.

      – tofro
      Apr 9 at 21:25







    • 2





      Even a halted Z80 will run through the refresh cycle, so it's still doing something. Most likely it's only going to be certain instruction patterns that cause a resonance in an audible range, and I'd suspect that the traces on the board act as the transmitters rather than the CPU itself.

      – Matthew Barber
      Apr 9 at 22:58















    10














    There seems to be a slight misunderstanding: The CPU in a computer is (almost) never doing nothing (excluding power save states which was largely unknown at times the Amstrad was en vogue). So there's no such thing as "workload of a processor" going up or down - The CPU in an Amstrad is constantly running at 4 MHz, constantly under the same workload. If there's nothing do do, like executing a BASIC program), the CPU is, well, busy idling around at the same speed with the same "workload".



    What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature.



    Operators of mainframes sometimes could hear whether their machines were running properly (or had crashed) by listening to the interference noise they produced, sometimes even tried to amplify the noise. (See this book, page 161ff)



    You were experiencing some similar effect.



    Today, the sound of historic computers operating can even be marketed as art.






    share|improve this answer




















    • 5





      ...or, by placing a cheap AM radio near the CPU. I knew a guy in college who programmed his Altair 8800 to play recognizable tunes through a nearby AM radio. Computers back in the day did not exactly comply with FCC regulations.

      – Solomon Slow
      Apr 9 at 19:19






    • 1





      "Workload" certainly is meaningful, even in the days of the Amstrad. If you're just executing a sequence of nops, that means a whole lot of CPU circuits are sitting there idle, not drawing significant power. (An empty loop in BASIC is very much not a case of the CPU being idle, though.)

      – Mark
      Apr 9 at 21:01












    • Even if that is not a "normal" use case, I pretty much doubt a Z80 on NOPs draws significantly less current than when executing any other instruction. Have you got proof of that? Pretty much the only circuit not required for NOPs is the ALU - And my guess would be that is not responsible for the most significant power consumption. A Z80 in HALT state might have a measurable difference in current draw, but most probably NOPs will not lower that.

      – tofro
      Apr 9 at 21:25







    • 2





      Even a halted Z80 will run through the refresh cycle, so it's still doing something. Most likely it's only going to be certain instruction patterns that cause a resonance in an audible range, and I'd suspect that the traces on the board act as the transmitters rather than the CPU itself.

      – Matthew Barber
      Apr 9 at 22:58













    10












    10








    10







    There seems to be a slight misunderstanding: The CPU in a computer is (almost) never doing nothing (excluding power save states which was largely unknown at times the Amstrad was en vogue). So there's no such thing as "workload of a processor" going up or down - The CPU in an Amstrad is constantly running at 4 MHz, constantly under the same workload. If there's nothing do do, like executing a BASIC program), the CPU is, well, busy idling around at the same speed with the same "workload".



    What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature.



    Operators of mainframes sometimes could hear whether their machines were running properly (or had crashed) by listening to the interference noise they produced, sometimes even tried to amplify the noise. (See this book, page 161ff)



    You were experiencing some similar effect.



    Today, the sound of historic computers operating can even be marketed as art.






    share|improve this answer















    There seems to be a slight misunderstanding: The CPU in a computer is (almost) never doing nothing (excluding power save states which was largely unknown at times the Amstrad was en vogue). So there's no such thing as "workload of a processor" going up or down - The CPU in an Amstrad is constantly running at 4 MHz, constantly under the same workload. If there's nothing do do, like executing a BASIC program), the CPU is, well, busy idling around at the same speed with the same "workload".



    What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature.



    Operators of mainframes sometimes could hear whether their machines were running properly (or had crashed) by listening to the interference noise they produced, sometimes even tried to amplify the noise. (See this book, page 161ff)



    You were experiencing some similar effect.



    Today, the sound of historic computers operating can even be marketed as art.







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Apr 9 at 17:18

























    answered Apr 9 at 17:04









    tofrotofro

    16.8k33597




    16.8k33597







    • 5





      ...or, by placing a cheap AM radio near the CPU. I knew a guy in college who programmed his Altair 8800 to play recognizable tunes through a nearby AM radio. Computers back in the day did not exactly comply with FCC regulations.

      – Solomon Slow
      Apr 9 at 19:19






    • 1





      "Workload" certainly is meaningful, even in the days of the Amstrad. If you're just executing a sequence of nops, that means a whole lot of CPU circuits are sitting there idle, not drawing significant power. (An empty loop in BASIC is very much not a case of the CPU being idle, though.)

      – Mark
      Apr 9 at 21:01












    • Even if that is not a "normal" use case, I pretty much doubt a Z80 on NOPs draws significantly less current than when executing any other instruction. Have you got proof of that? Pretty much the only circuit not required for NOPs is the ALU - And my guess would be that is not responsible for the most significant power consumption. A Z80 in HALT state might have a measurable difference in current draw, but most probably NOPs will not lower that.

      – tofro
      Apr 9 at 21:25







    • 2





      Even a halted Z80 will run through the refresh cycle, so it's still doing something. Most likely it's only going to be certain instruction patterns that cause a resonance in an audible range, and I'd suspect that the traces on the board act as the transmitters rather than the CPU itself.

      – Matthew Barber
      Apr 9 at 22:58












    • 5





      ...or, by placing a cheap AM radio near the CPU. I knew a guy in college who programmed his Altair 8800 to play recognizable tunes through a nearby AM radio. Computers back in the day did not exactly comply with FCC regulations.

      – Solomon Slow
      Apr 9 at 19:19






    • 1





      "Workload" certainly is meaningful, even in the days of the Amstrad. If you're just executing a sequence of nops, that means a whole lot of CPU circuits are sitting there idle, not drawing significant power. (An empty loop in BASIC is very much not a case of the CPU being idle, though.)

      – Mark
      Apr 9 at 21:01












    • Even if that is not a "normal" use case, I pretty much doubt a Z80 on NOPs draws significantly less current than when executing any other instruction. Have you got proof of that? Pretty much the only circuit not required for NOPs is the ALU - And my guess would be that is not responsible for the most significant power consumption. A Z80 in HALT state might have a measurable difference in current draw, but most probably NOPs will not lower that.

      – tofro
      Apr 9 at 21:25







    • 2





      Even a halted Z80 will run through the refresh cycle, so it's still doing something. Most likely it's only going to be certain instruction patterns that cause a resonance in an audible range, and I'd suspect that the traces on the board act as the transmitters rather than the CPU itself.

      – Matthew Barber
      Apr 9 at 22:58







    5




    5





    ...or, by placing a cheap AM radio near the CPU. I knew a guy in college who programmed his Altair 8800 to play recognizable tunes through a nearby AM radio. Computers back in the day did not exactly comply with FCC regulations.

    – Solomon Slow
    Apr 9 at 19:19





    ...or, by placing a cheap AM radio near the CPU. I knew a guy in college who programmed his Altair 8800 to play recognizable tunes through a nearby AM radio. Computers back in the day did not exactly comply with FCC regulations.

    – Solomon Slow
    Apr 9 at 19:19




    1




    1





    "Workload" certainly is meaningful, even in the days of the Amstrad. If you're just executing a sequence of nops, that means a whole lot of CPU circuits are sitting there idle, not drawing significant power. (An empty loop in BASIC is very much not a case of the CPU being idle, though.)

    – Mark
    Apr 9 at 21:01






    "Workload" certainly is meaningful, even in the days of the Amstrad. If you're just executing a sequence of nops, that means a whole lot of CPU circuits are sitting there idle, not drawing significant power. (An empty loop in BASIC is very much not a case of the CPU being idle, though.)

    – Mark
    Apr 9 at 21:01














    Even if that is not a "normal" use case, I pretty much doubt a Z80 on NOPs draws significantly less current than when executing any other instruction. Have you got proof of that? Pretty much the only circuit not required for NOPs is the ALU - And my guess would be that is not responsible for the most significant power consumption. A Z80 in HALT state might have a measurable difference in current draw, but most probably NOPs will not lower that.

    – tofro
    Apr 9 at 21:25






    Even if that is not a "normal" use case, I pretty much doubt a Z80 on NOPs draws significantly less current than when executing any other instruction. Have you got proof of that? Pretty much the only circuit not required for NOPs is the ALU - And my guess would be that is not responsible for the most significant power consumption. A Z80 in HALT state might have a measurable difference in current draw, but most probably NOPs will not lower that.

    – tofro
    Apr 9 at 21:25





    2




    2





    Even a halted Z80 will run through the refresh cycle, so it's still doing something. Most likely it's only going to be certain instruction patterns that cause a resonance in an audible range, and I'd suspect that the traces on the board act as the transmitters rather than the CPU itself.

    – Matthew Barber
    Apr 9 at 22:58





    Even a halted Z80 will run through the refresh cycle, so it's still doing something. Most likely it's only going to be certain instruction patterns that cause a resonance in an audible range, and I'd suspect that the traces on the board act as the transmitters rather than the CPU itself.

    – Matthew Barber
    Apr 9 at 22:58











    4















    What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature. - tofro




    In addition to what tofro has answered, I'd like to point out that some types of interference is a result from multiple activities and/or subsystems in a computer, but others may have a direct correlation to a simple operation of the machine, such as running a special sequence of instructions or toggling the data inside in RAM.



    In some cases, the nature of this interference can be completely understood by the programmer, and renders it controllable. This possibility was well-known back to the era of mainframes and minicomputers, and I'd like to give several examples.



    1. Here's the video of a 1971 DEC LAB-8/e minicomputer playing music. The music is generated by generating noise induced into an AM radio receiver near the CPU.



    2. Later, it was rediscovered by the members of the Homebrew Computer Club on the Altair 8800. Quote What the Dormouse Said: How the 60s Counterculture Shaped the Personal Computer.




      Dompier started again, and this time he succeeded. Previously he had
      discovered that the unshielded computer could be programmed to generate
      tones by interfering with a transistor radio. He spent hours figuring out
      how to create a musical scale. Then he used the radio as an output device
      for the computer. At the Homebrew meeting lightning struck when,
      unexpectedly, strains from the Beatles' "Fool on the Hill" emerged. When the song ended, the crowd crammed into the room jumped to their feet offering thunderous applause. After the audience calmed down, the song was repeated and then, foreshadowing a world of vastly more powerful computers, the Altair broke into a rendition of "Daisy," raising the specter of the almost conscious HAL from the movie 2001: A Space Odyssey. For the first time there was a computer that you could build yourself that actually did something! Felsenstein eventually calmed the crowd down and noted, "Okay, there is music, but we're not exactly changing the world." Nobody cared. Everyone wanted to hear it again, and so Dompier hit the button, and the music started all over again. When it ended, he received another round of applause.




    3. The same technique was again repopularized and reimplemented by various projects. For example, compile and run this program using a 2015 model MacBook Air. Then use a Sony STR-K670P radio receiver with the included antenna and tune it to 1580 kHz on AM You should hear the "Mary Had a Little Lamb" tune playing repeatedly. The actual emissions are caused by the _mm_stream_si128 instruction that writes through to a memory address.


    4. The above examples all exploited radio-frequency interference. But mechanical noise is also exploitable in some cases. For example, this program can generate a faint musical tones (Imperial March, but easily modifiable) from the coil whine of a Thinkpad T550 by rapidly changing the Intel CPU P-state, thus stressing the power supply and induces a coil whine with controllable frequency. I've personally tested it on other "classical" Thinkpads, such as Thinkpad X200 and Thinkpad X220, and it also works.






    share|improve this answer





























      4















      What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature. - tofro




      In addition to what tofro has answered, I'd like to point out that some types of interference is a result from multiple activities and/or subsystems in a computer, but others may have a direct correlation to a simple operation of the machine, such as running a special sequence of instructions or toggling the data inside in RAM.



      In some cases, the nature of this interference can be completely understood by the programmer, and renders it controllable. This possibility was well-known back to the era of mainframes and minicomputers, and I'd like to give several examples.



      1. Here's the video of a 1971 DEC LAB-8/e minicomputer playing music. The music is generated by generating noise induced into an AM radio receiver near the CPU.



      2. Later, it was rediscovered by the members of the Homebrew Computer Club on the Altair 8800. Quote What the Dormouse Said: How the 60s Counterculture Shaped the Personal Computer.




        Dompier started again, and this time he succeeded. Previously he had
        discovered that the unshielded computer could be programmed to generate
        tones by interfering with a transistor radio. He spent hours figuring out
        how to create a musical scale. Then he used the radio as an output device
        for the computer. At the Homebrew meeting lightning struck when,
        unexpectedly, strains from the Beatles' "Fool on the Hill" emerged. When the song ended, the crowd crammed into the room jumped to their feet offering thunderous applause. After the audience calmed down, the song was repeated and then, foreshadowing a world of vastly more powerful computers, the Altair broke into a rendition of "Daisy," raising the specter of the almost conscious HAL from the movie 2001: A Space Odyssey. For the first time there was a computer that you could build yourself that actually did something! Felsenstein eventually calmed the crowd down and noted, "Okay, there is music, but we're not exactly changing the world." Nobody cared. Everyone wanted to hear it again, and so Dompier hit the button, and the music started all over again. When it ended, he received another round of applause.




      3. The same technique was again repopularized and reimplemented by various projects. For example, compile and run this program using a 2015 model MacBook Air. Then use a Sony STR-K670P radio receiver with the included antenna and tune it to 1580 kHz on AM You should hear the "Mary Had a Little Lamb" tune playing repeatedly. The actual emissions are caused by the _mm_stream_si128 instruction that writes through to a memory address.


      4. The above examples all exploited radio-frequency interference. But mechanical noise is also exploitable in some cases. For example, this program can generate a faint musical tones (Imperial March, but easily modifiable) from the coil whine of a Thinkpad T550 by rapidly changing the Intel CPU P-state, thus stressing the power supply and induces a coil whine with controllable frequency. I've personally tested it on other "classical" Thinkpads, such as Thinkpad X200 and Thinkpad X220, and it also works.






      share|improve this answer



























        4












        4








        4








        What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature. - tofro




        In addition to what tofro has answered, I'd like to point out that some types of interference is a result from multiple activities and/or subsystems in a computer, but others may have a direct correlation to a simple operation of the machine, such as running a special sequence of instructions or toggling the data inside in RAM.



        In some cases, the nature of this interference can be completely understood by the programmer, and renders it controllable. This possibility was well-known back to the era of mainframes and minicomputers, and I'd like to give several examples.



        1. Here's the video of a 1971 DEC LAB-8/e minicomputer playing music. The music is generated by generating noise induced into an AM radio receiver near the CPU.



        2. Later, it was rediscovered by the members of the Homebrew Computer Club on the Altair 8800. Quote What the Dormouse Said: How the 60s Counterculture Shaped the Personal Computer.




          Dompier started again, and this time he succeeded. Previously he had
          discovered that the unshielded computer could be programmed to generate
          tones by interfering with a transistor radio. He spent hours figuring out
          how to create a musical scale. Then he used the radio as an output device
          for the computer. At the Homebrew meeting lightning struck when,
          unexpectedly, strains from the Beatles' "Fool on the Hill" emerged. When the song ended, the crowd crammed into the room jumped to their feet offering thunderous applause. After the audience calmed down, the song was repeated and then, foreshadowing a world of vastly more powerful computers, the Altair broke into a rendition of "Daisy," raising the specter of the almost conscious HAL from the movie 2001: A Space Odyssey. For the first time there was a computer that you could build yourself that actually did something! Felsenstein eventually calmed the crowd down and noted, "Okay, there is music, but we're not exactly changing the world." Nobody cared. Everyone wanted to hear it again, and so Dompier hit the button, and the music started all over again. When it ended, he received another round of applause.




        3. The same technique was again repopularized and reimplemented by various projects. For example, compile and run this program using a 2015 model MacBook Air. Then use a Sony STR-K670P radio receiver with the included antenna and tune it to 1580 kHz on AM You should hear the "Mary Had a Little Lamb" tune playing repeatedly. The actual emissions are caused by the _mm_stream_si128 instruction that writes through to a memory address.


        4. The above examples all exploited radio-frequency interference. But mechanical noise is also exploitable in some cases. For example, this program can generate a faint musical tones (Imperial March, but easily modifiable) from the coil whine of a Thinkpad T550 by rapidly changing the Intel CPU P-state, thus stressing the power supply and induces a coil whine with controllable frequency. I've personally tested it on other "classical" Thinkpads, such as Thinkpad X200 and Thinkpad X220, and it also works.






        share|improve this answer
















        What you possibly can hear, however, is the CPU repeatedly doing the same thing, like operating in tight loops that can, through electrical or mechanical interference (with the monitor or audio signal, for example), create audible frequencies that you may hear. That was definitely not an intended feature. - tofro




        In addition to what tofro has answered, I'd like to point out that some types of interference is a result from multiple activities and/or subsystems in a computer, but others may have a direct correlation to a simple operation of the machine, such as running a special sequence of instructions or toggling the data inside in RAM.



        In some cases, the nature of this interference can be completely understood by the programmer, and renders it controllable. This possibility was well-known back to the era of mainframes and minicomputers, and I'd like to give several examples.



        1. Here's the video of a 1971 DEC LAB-8/e minicomputer playing music. The music is generated by generating noise induced into an AM radio receiver near the CPU.



        2. Later, it was rediscovered by the members of the Homebrew Computer Club on the Altair 8800. Quote What the Dormouse Said: How the 60s Counterculture Shaped the Personal Computer.




          Dompier started again, and this time he succeeded. Previously he had
          discovered that the unshielded computer could be programmed to generate
          tones by interfering with a transistor radio. He spent hours figuring out
          how to create a musical scale. Then he used the radio as an output device
          for the computer. At the Homebrew meeting lightning struck when,
          unexpectedly, strains from the Beatles' "Fool on the Hill" emerged. When the song ended, the crowd crammed into the room jumped to their feet offering thunderous applause. After the audience calmed down, the song was repeated and then, foreshadowing a world of vastly more powerful computers, the Altair broke into a rendition of "Daisy," raising the specter of the almost conscious HAL from the movie 2001: A Space Odyssey. For the first time there was a computer that you could build yourself that actually did something! Felsenstein eventually calmed the crowd down and noted, "Okay, there is music, but we're not exactly changing the world." Nobody cared. Everyone wanted to hear it again, and so Dompier hit the button, and the music started all over again. When it ended, he received another round of applause.




        3. The same technique was again repopularized and reimplemented by various projects. For example, compile and run this program using a 2015 model MacBook Air. Then use a Sony STR-K670P radio receiver with the included antenna and tune it to 1580 kHz on AM You should hear the "Mary Had a Little Lamb" tune playing repeatedly. The actual emissions are caused by the _mm_stream_si128 instruction that writes through to a memory address.


        4. The above examples all exploited radio-frequency interference. But mechanical noise is also exploitable in some cases. For example, this program can generate a faint musical tones (Imperial March, but easily modifiable) from the coil whine of a Thinkpad T550 by rapidly changing the Intel CPU P-state, thus stressing the power supply and induces a coil whine with controllable frequency. I've personally tested it on other "classical" Thinkpads, such as Thinkpad X200 and Thinkpad X220, and it also works.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Apr 10 at 12:29

























        answered Apr 10 at 12:03









        比尔盖子比尔盖子

        2538




        2538




















            elzell is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            elzell is a new contributor. Be nice, and check out our Code of Conduct.












            elzell is a new contributor. Be nice, and check out our Code of Conduct.











            elzell is a new contributor. Be nice, and check out our Code of Conduct.














            Thanks for contributing an answer to Retrocomputing Stack Exchange!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fretrocomputing.stackexchange.com%2fquestions%2f9634%2fwhy-could-you-hear-an-amstrad-cpc-working%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Club Baloncesto Breogán Índice Historia | Pavillón | Nome | O Breogán na cultura popular | Xogadores | Adestradores | Presidentes | Palmarés | Historial | Líderes | Notas | Véxase tamén | Menú de navegacióncbbreogan.galCadroGuía oficial da ACB 2009-10, páxina 201Guía oficial ACB 1992, páxina 183. Editorial DB.É de 6.500 espectadores sentados axeitándose á última normativa"Estudiantes Junior, entre as mellores canteiras"o orixinalHemeroteca El Mundo Deportivo, 16 setembro de 1970, páxina 12Historia do BreogánAlfredo Pérez, o último canoneiroHistoria C.B. BreogánHemeroteca de El Mundo DeportivoJimmy Wright, norteamericano do Breogán deixará Lugo por ameazas de morteResultados de Breogán en 1986-87Resultados de Breogán en 1990-91Ficha de Velimir Perasović en acb.comResultados de Breogán en 1994-95Breogán arrasa al Barça. "El Mundo Deportivo", 27 de setembro de 1999, páxina 58CB Breogán - FC BarcelonaA FEB invita a participar nunha nova Liga EuropeaCharlie Bell na prensa estatalMáximos anotadores 2005Tempada 2005-06 : Tódolos Xogadores da Xornada""Non quero pensar nunha man negra, mais pregúntome que está a pasar""o orixinalRaúl López, orgulloso dos xogadores, presume da boa saúde económica do BreogánJulio González confirma que cesa como presidente del BreogánHomenaxe a Lisardo GómezA tempada do rexurdimento celesteEntrevista a Lisardo GómezEl COB dinamita el Pazo para forzar el quinto (69-73)Cafés Candelas, patrocinador del CB Breogán"Suso Lázare, novo presidente do Breogán"o orixinalCafés Candelas Breogán firma el mayor triunfo de la historiaEl Breogán realizará 17 homenajes por su cincuenta aniversario"O Breogán honra ao seu fundador e primeiro presidente"o orixinalMiguel Giao recibiu a homenaxe do PazoHomenaxe aos primeiros gladiadores celestesO home que nos amosa como ver o Breo co corazónTita Franco será homenaxeada polos #50anosdeBreoJulio Vila recibirá unha homenaxe in memoriam polos #50anosdeBreo"O Breogán homenaxeará aos seus aboados máis veteráns"Pechada ovación a «Capi» Sanmartín e Ricardo «Corazón de González»Homenaxe por décadas de informaciónPaco García volve ao Pazo con motivo do 50 aniversario"Resultados y clasificaciones""O Cafés Candelas Breogán, campión da Copa Princesa""O Cafés Candelas Breogán, equipo ACB"C.B. Breogán"Proxecto social"o orixinal"Centros asociados"o orixinalFicha en imdb.comMario Camus trata la recuperación del amor en 'La vieja música', su última película"Páxina web oficial""Club Baloncesto Breogán""C. B. Breogán S.A.D."eehttp://www.fegaba.com

            Vilaño, A Laracha Índice Patrimonio | Lugares e parroquias | Véxase tamén | Menú de navegación43°14′52″N 8°36′03″O / 43.24775, -8.60070

            Cegueira Índice Epidemioloxía | Deficiencia visual | Tipos de cegueira | Principais causas de cegueira | Tratamento | Técnicas de adaptación e axudas | Vida dos cegos | Primeiros auxilios | Crenzas respecto das persoas cegas | Crenzas das persoas cegas | O neno deficiente visual | Aspectos psicolóxicos da cegueira | Notas | Véxase tamén | Menú de navegación54.054.154.436928256blindnessDicionario da Real Academia GalegaPortal das Palabras"International Standards: Visual Standards — Aspects and Ranges of Vision Loss with Emphasis on Population Surveys.""Visual impairment and blindness""Presentan un plan para previr a cegueira"o orixinalACCDV Associació Catalana de Cecs i Disminuïts Visuals - PMFTrachoma"Effect of gene therapy on visual function in Leber's congenital amaurosis"1844137110.1056/NEJMoa0802268Cans guía - os mellores amigos dos cegosArquivadoEscola de cans guía para cegos en Mortágua, PortugalArquivado"Tecnología para ciegos y deficientes visuales. Recopilación de recursos gratuitos en la Red""Colorino""‘COL.diesis’, escuchar los sonidos del color""COL.diesis: Transforming Colour into Melody and Implementing the Result in a Colour Sensor Device"o orixinal"Sistema de desarrollo de sinestesia color-sonido para invidentes utilizando un protocolo de audio""Enseñanza táctil - geometría y color. Juegos didácticos para niños ciegos y videntes""Sistema Constanz"L'ocupació laboral dels cecs a l'Estat espanyol està pràcticament equiparada a la de les persones amb visió, entrevista amb Pedro ZuritaONCE (Organización Nacional de Cegos de España)Prevención da cegueiraDescrición de deficiencias visuais (Disc@pnet)Braillín, un boneco atractivo para calquera neno, con ou sen discapacidade, que permite familiarizarse co sistema de escritura e lectura brailleAxudas Técnicas36838ID00897494007150-90057129528256DOID:1432HP:0000618D001766C10.597.751.941.162C97109C0155020