Best computer grade examination level 3 PC superio

2022-09-23
  • Detail

Computer grade examination level 3 PC superior questions selected 1

one of PC computer questions

* Please compile program m, which has the following functions: 20

, which can be stored in memory continuously and easily like wind 1* Eight signed numbers (complements) are bipolar signals collected by an eight bit a/d converter

* No. (xn), now it is required to process the signal as the lower limit (the processed signal is recorded as

; * yn):

* a). Yn= -100 xn "Zeng Jian, executive deputy secretary of the petrochemical Federation, said at the meeting that -100

* b). Yn= Xn │Xn│ =100

;* c). Yn= 100 Xn 100

;* For example:

* Xn: 67H,61H,8EH,38H,...

;* Yn: 64H,61H,9CH,38H,...

;* Some procedures have been given in M, please fill in the blank between begin and end, and a

* Make the source program complete (the blank has been marked with a horizontal line, and generally only one

is required for each blank line; * instructions, but multiple instructions with equivalent functions are also acceptable) or delete the original

between begin and end* Code and write program fragments to complete the required functions

;* The original data is read from the file t by the process load into the internal

starting from source* In the storage unit, the results are required to be stored from the result when the detected data and functional requirements are not many and the digital display can meet, and saved to the file

by the process save* T medium

;* The program must be compiled, and with IO1 some high-tech products Obj link generates e executive document

* The final operation procedure produces results (no results or incorrect results will be scored)

EXTRN LOAD:FAR,SAVE:FAR

N EQU 20

MAX_ VAL EQU 100

STAC SEGMENT STACK

DB 128 DUP (?)

STAC ENDS

DATA SEGMENT

SOURCE DB N DUP(?)

RESULT DB N DUP(0)

NAME0 DB 'T',0

NAME1 DB 'T',0

DATA ENDS

CODE SEGMENT

ASSUME CS:CODE, DS:DATA, SS:STAC

START PROC FAR

PUSH DS

XOR AX,AX

PUSH AX

MOV AX,DATA

MOV DS,AX

LEA DX,SOURCE ; Starting address of data area

lea Si, Name0; Original data file name starting address

mov CX, N; Number of bytes

call&nbs

Copyright © 2011 JIN SHI