论文部分内容阅读
很久以前,在一个距离此地不远的王国,国王召集了他的两个谋士来做一个试验。他展示了一个在顶部有两个细长孔的有光泽的金属盒子,一个控制拉手和一个杠杆。“你们认为这是什么?”其中一个是工程师的谋士首先回答。“这是一个烤面包片机器,”他说。国王问,“你怎样为它设计一个内置式计算机?”工程师回答,“使用一个四位微处理器,我可以写一段程序辨认这个黑色把手并使它的位置与16种灰度实现量化,从雪白到墨黑,程序将用这个灰度值作为指针进入一个有16个栏位的表中抓取时间初始值,然后它将打开加热元件并以抓取的时间初始值启动计时器,在延迟时间的最后,它将关闭加热器并弹出
A long time ago, in a kingdom not far from here, the king summoned his two advisers to do a trial. He showed a shiny metal box with two elongated holes at the top, a control handle and a lever. ”What do you think this is?“ One of the engineers’ advisers answered first. ”This is a toast machine,“ he said. The king asked, ”How do you design a built-in computer for it?“ The engineer responded. ”With a four-bit microprocessor, I could write a program to identify this black handle and have its position with 16 grayscale implementations." Quantize, from white to black ink, the program will use this gray value as a pointer to enter the initial value of the grab time in a table with 16 fields, then it will turn on the heating element and start the timer with the initial value of the grab time. At the end of the delay time, it will turn off the heater and eject