【正文】
er did click a button other than “0” though “9” or “A” through “F”, the JC (“jump if carry”) instruction will return the program to the LOOP label to await another key. Otherwise, we use a STA (“store accumulator”) instruction to copy this key code to the main display, and then we use a JMP (“unconditional jump”) instruction to return us to the LOOP label to await another key. The final statement in the program is a END that, not surprisingly, informs the assembler that its task here is pleted. Entering and Running the Program The book, How Computers Do Math, is anized in an interesting way. First there are a series of chapters introducing fundamental concepts. Each chapter is then backed up by a suite of interactive laboratories, each of which details what the reader will lean and how long it will take (typically 20 to 40 minutes each), followed by stepbystep instructions that walk the reader through that lab. For educators, the CD ROM acpanying the book includes all of the labs as Adobe Acrobat files that can be printed out and used as handouts. Also, all of the illustrations in the book are provided as PowerPoint slides that can be used as the basis for presentations. The chapters and labs build on each other until, at the end, we have a four function calculator that can input numbers in decimal, convert them into 16bit binary integers, perform addition, subtraction, multiplication, and division on these binary values, and then present the results from these calculations in decimal on the main display. But this is only a starting point. On the DIY Calculator’s website, it is intended to develop this much further by introducing the concept of floatingpoint values, describing our own simple floatingpoint format, and then implementing binary floatingpoint versions of our input, output, and math subroutines. (We are also going to do the same for Binary Coded Decimal (BCD) – check the website for more details.) And this is still just the beginning, because we plan on creating subroutines (with associated documentation) to implement many more math functions. As yet another example of something that may interest educators, as a final year project at the beginning of 20xx, a team of students at the University of Newcastle upon Tyne, created VHDL models of the DIY calculator and then implemented a physical version of the little scamp using a fieldprogrammable gate array (FPGA) development board 中文譯文 虛擬 DIY計(jì)算器的介紹 當(dāng)你考慮此事 ,21 天中出現(xiàn)很多關(guān)于 Cuthbert Dribble 教授的可視化編程 “應(yīng)用型”的計(jì)算機(jī)書籍 (你經(jīng)常只有 21 天,因?yàn)? 版軟件即將出來 )。 電腦和計(jì)算器 在其最廣泛的意義上 來 說,計(jì)算機(jī)是一種裝置,可以接受來自外界的信息,處理信息使用邏輯和 /或數(shù)學(xué)運(yùn)算 ,并基于處理結(jié)果作出決定, 最終 把 處理的信息 以 新的形式 返回到 外部世界 中 ?;?在 十六進(jìn)制 中從 0000 至 FFFF, 本文對(duì) 二進(jìn)制和十六進(jìn)制 的概念 簡(jiǎn)要 進(jìn)行了 介紹。一根線(或寄存器 位 /記憶體元件)可以用來表示兩個(gè)不同的值:二進(jìn)制 0 或 1; 兩條線可以代表四個(gè)值:二進(jìn)制 00, 01, 10和 11; 三 條 線可以代表 八個(gè)值:二進(jìn)制 000, 001, 010, 011 , 100, 101, 110, 111,等等。 在 其他事項(xiàng) 中 ,我們的 CPU包含兩個(gè) 8 位寄存器 ,其 稱為 累加 (ACC)和 狀態(tài)寄存器 (SR)。 程序 針對(duì)本文 的目的,我們將創(chuàng)建一個(gè)簡(jiǎn)單的程序,首先清除計(jì)算器的 主顯示屏 ,然后循環(huán)等待我們 去點(diǎn)擊一個(gè) 或鍵盤上的按鈕。) EQU指令后,我們看到 一條 ORG( “起源 ”)語句, 在我們 的程序中 我們用 來 指定 $4000為 起始地址 。 當(dāng)我們點(diǎn)擊 小型鍵盤上的 一個(gè)按鈕, 一個(gè) 代碼 隨之被載入到寄存器中 。 因此,如果用戶點(diǎn)擊一個(gè) 在 “0”到 “9”或 “A”到 “F中的按鈕 , JC( “跳 出 如果 進(jìn)位 ”)指令將返回程序到循環(huán)標(biāo)簽,等待另一鍵。 章節(jié)和實(shí)驗(yàn)室 相互建立 , 直到最后, 我們有一個(gè) 4 功能計(jì)算器,可以輸入十進(jìn)制數(shù),轉(zhuǎn)換 16 位二進(jìn)制 整數(shù) , 并在 這些二進(jìn)制值 上 執(zhí)行加法, 減法,乘法和除法,然后在主顯示 器上呈現(xiàn) 這些十進(jìn)制 計(jì)算 。 。 為教育工作者,在書中所附光盤 以 Adobe Acrobat 文件 形式 包括所有實(shí)驗(yàn)室,可以打印出來 用作文字資料 。 接下來,我們使用一 條 CMPA( “比較累加器 ”)指令來比較累加器 的內(nèi)容和 $0F 的值。 首先,我們的虛擬計(jì)算 器 的前板包含一個(gè) 8 位寄存器。 同樣, KEYPAD 標(biāo)簽 與 十六進(jìn)制值 $F011 聯(lián)系在一起 ,這是輸入端口 的地址 ,它 連接到計(jì)算 器的小型鍵盤 。然而,我們的 CPU只有 5 個(gè)狀態(tài)標(biāo)志,它占據(jù)了 狀態(tài)寄存器的 5 個(gè)最低有效位。 這就解釋了為什么我們前面提到過,我們 的 16 位地址總線可以用來指向 216 = 65536 個(gè)不同的內(nèi)存位置, 就 是十六進(jìn)制 中 編號(hào)從 $0000 至 FFFF。 與此同時(shí), 電腦輸出端 之一可用于驅(qū)動(dòng)界面 的 顯示部分。 CPU 把 地址總線 用于 “點(diǎn) ”到系統(tǒng)的其他組件 ; 它使用控制總線 來 表明它是否希望 “講 “(輸出 /寫 /數(shù)據(jù)傳輸)或 ”聽 “(輸入 /讀 /接收數(shù)據(jù)) ; 以及它使用數(shù)據(jù)總線 在它之間來回 傳遞信息和其他組件。 因此,我們決定把一本書 (細(xì)化后 )以一個(gè)叫做 DIY計(jì)算器的簡(jiǎn)單計(jì)算機(jī)為基礎(chǔ),其巧妙的部分是我們創(chuàng)造的 DIY 計(jì)算器作為一種虛擬機(jī)運(yùn)行在你的家用電腦中。 three wires can represent eight binary values: 000, 001, 010, 011, 100, 101, 110, and 111。 ② 用 VHDL 語言設(shè)計(jì)的能力尚需加強(qiáng)。 20xx 年 4 月 26 日 20xx 年 5 月 21 日:畢業(yè)論文撰寫和修改工作 。 PLD 設(shè)計(jì)步驟為: 設(shè)計(jì)構(gòu)思、選擇器件類型、列寫原文件、對(duì)器件編程。尤其是在系統(tǒng)可編程邏輯器件 ISP 的生產(chǎn),給數(shù)字系統(tǒng)設(shè)計(jì)帶了了一個(gè)飛躍。 ② 以國際大環(huán)境為背景,加快高等教育的信息化、國際化進(jìn)程也是急需的 科學(xué)依據(jù) (包括課題的科學(xué)意義;國內(nèi)外研究概況、水平和發(fā)展趨勢(shì);應(yīng)用前景等) 可編程邏輯器件 PLD 具有高性能、低成本、低功耗、體積小和可靠性高的特性。