Documente Academic
Documente Profesional
Documente Cultură
.model medium .stack AscInfo segment LastAsc equ 255d AScCount equ 256d SAscCount equ 128d EAscCount equ 128d NewLine equ 10d Space equ 255d msg1 db 'Below is the full ascii character set in its two categories: $' msg2 db '(1) Standard ascii characters: $ ' msg3 db '(2) Extended ascii characters: $' AscInfo ends AscCoding segment assume cs: AScCoding ,ds :AscInfo org 100h start: mov ax, AscInfo mov dx, ax lea dx,msg1 mov ah, 09h int 21h mov dl , LastAsc mov cx, AScCount StoreASc: push dx dec dl loop StoreAsc mov dl, Newline mov ah, 02h int 21h lea dx, msg2 mov ah, 09h int 21h mov ah,02h mov cx,SAscCount OutSAsc: pop dx int 21h mov dl,Space int 21h loop OutSAsc mov ah, 02h mov dl, Newline int 21h lea dx, msg3 mov ah, 09h int 21h mov ah, 02h mov cx,EAscCount OutEAsc: pop dx int 21h mov dl,Space int 21h loop OutEAsc mov ah, 04ch int 21h AscCoding ends end start
LCALL 061D AGAIN MOV DPTR, #2845 REPEAT DEC82 ; Decrement DPL MOVX A,@DPTR MOV R3,A MOV R5,#02 LCALL 059E MOV A,20 LCALL 2006 MOVA,82 CJNE A,#42; REPEAT (ED) MOVA,#OD ; OD = ASCII FOR ENTER LCALL 2006 LJMP; AGAIN ( 6003 ) To change the RTC 2844-hrs 2843-minutes 2842-seconds