Ask your own question, for FREE!
Computer Science 14 Online
OpenStudy (anonymous):

Write a program to perform the following task: 1) Read a line of text the keywords(less than 40 characters). 2) Save to the USB 3)read the file from the drive 4) clear the screen and display the text on the first line of the screen. This programs need to be created in notepad by the Assembly language programming 8086/8088, to 80486

OpenStudy (anonymous):

Andresfon12- i don't follow your first item - Read a line of text the keywords(less than 40 characters). What does this mean? What are you trying to save to the USB? When you read a file, do you mean FROM the same USB? Will you know the USB drive name (i.e. D:)? You'll have to figure these things out before you even consider the code to do it, but 1) doesn't make sense.

OpenStudy (anonymous):

A) is read a line of text from the keyboard (less than 40 characters).

OpenStudy (anonymous):

and my coding is look something like this: PGM2CD SEGMENT MAIN PROC FAR ;HOUSEKEEPING SECTION ASSUME CS:PGM2CD,DS:PGM2DA,SS:PGM1SK MOV AX,PGM2DA ; ESTABLISH ADDRESSABILITY MOV DS,AX ; TO PGM1DA - THE PGM'S DATA SEGMENT BUF1 DB 257 DUP (?) BUF2 DB 257 DUP (?) ;MAIN PROCESS SECTION MOV AH,1H ;KEY sTART: JMP MAIN MAIN PROC ; CALL CLEAR INT 20H MAIN END ;CLEAR PROC MOV CX,30 ;DISPLAY: MOV AH,02 MOV DL,0AH INT 21H MOV DL,0DH INT 21H ;LOOP DISPLAY RET ;CLEAR ENDP END START MOV AH, 6; MOV AL, 0 ;WHOLE SCREEM MOV BH, 7; MOV CX, 0 ; MOV DL, 79 ; MOV DH, 24 ; INT 10H ; ; RETURN TO DOS SECTION MOV AL,0 ; SET 0 AS THE RETURN CODE FOR DOS MOV AH,4CH ; SET FOR DOS END PROCESS FUNTION INT 21H ; CALL DOS TO END PROGRAM MAIN ENDP PGM2CD ENDS ;PROGRAM DATA SEGMENT PGM2DA SEGMENT DW DW DW DW PGM2DA ENDS ;PROGRAM STACK SEGMENT PGM1SK SEGMENT PARA STACK 'STACK' DW 32 DUP (?) PGM1SK ENDS END

OpenStudy (anonymous):

i just need to add those task on the main process section and the segment too

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!