Giter Club home page Giter Club logo

pcprincipleexpe1's Introduction

某计算机原理实验夏季小学期综合实验一的代码

有用代码都是DOS上8088汇编代码。

实验一 D/A转换

汇编源代码文件为11da.asm,简单说下思路:就是将三种波形的一个周期内的数据都存在数据段,调整成周期一致,这样数组的长度就都一样,然后一个offset指针(对应程序中BX寄存器)和一个base指针(对应程序中SI寄存器),定时输出数据就行了。

使用的D/A转换器为DAC0832

正弦波、三角波、锯齿波的波形就可以通过SinValue.jshell脚本来生成。该脚本为jshell脚本,要运行需10及之后Java SE版本,使用其中的jshell工具执行。

实验二 D/A与A/D转换

源文件为12ad.asm,一次输出20组数据,产生的数据是混沌的,办法是在黑盒子函数调用后,执行一条AAD指令,原因自查代码自己想。文件中定义了两个函数:prtnumprthex,分别用于将一个字节的无符号数以十进制输出和以十六进制输出。因为代码是实验前写的,开始以为要用十进制输出,所以写了prtnum函数,结果去做实验时助教要求按照十六进制输出,所以在实验室现写的prthex函数。总之就是这样。

pcprincipleexpe1's People

Contributors

zdy023 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.