Computer-principle-experiment
Simulate the functions of the taxi system, in addition to the basic starting price, mileage calculation, fare display; And start music, cost clearing, stop, DC motor speed adjustable, driving direction display.
you can watch the video from here :
Subtract odd numbers method
The radicand is stored in DS:0000H-->51H(81)
The square root is stored in DS:0004H-->09H(9)
As is shown in
The first pic is the output of the run
The second pic shows an array record in an internal memory unit
The function of this program is to save the 30 scores input by the keyboard into the memory BUFFER, and then convert the input ACSCII code into a hexadecimal SUM stored in SUM, take the average value through the DIV function, and display the average value and the SUM on the screen