Display characters in tabular form
1. Title: displaying ASCII characters in tabular format
2. Requirements: Display the ASCII code as 10h-100h all characters in the table Form of the row x16 column, that is, the corresponding characters are displayed in the order of the line-based sequence and the ASCII code increment. Identifier per 16 characters, separated by two characters in each line with white space characters or spaces (ASCII 0 or 20H)
The code is as follows:
1; Example assembly Language Program--2; Author:karllen 3; Date:revised 05/2014 4 5.386 6. MODEL FLAT 7 8 exitprocess PROTO NEAR32 stdcall, Dwexitcode:dword 9 INCLUDE io.h; Header file for input/output11-cr EQU 0DH; Carriage return character13 Lf EQU 0ah; Line Feed14 15. STACK 4096; Reserve 4096-byte stack16 17. DATA; Reserve storage for Data18 Promot BYTE "The program was to print Ascii from 10h to 100h", cr,lf,020 Line DWORD, row DWORD, CCF byte "", 023 CRLF byte cr,lf,024 Char BYTE 1 DUP (?) 25 26. CODE; Start of main program Code27 _start:28 output promot29 mov row,030 mov line,031 mov Char,0fh32 DOFIRSTWHILE:33 Inc line34 CMP line,1535 JG EndFirstWhile3 6 mov row,037 DOSECONDWHILE:38 Inc row39 CMP row,1640 J G endSecondWhile41 Add char,142 output char43 output ccf44 JMP doSecondWhile45 endsecondwhile:46 Output crlf47 JMP doFirstWhile48 endfirstwhile:49 exitprocess, 0; Exit with return code 051 _start; Make entry point public53 END; End of source code
Run Results View
Assembly language-Print part of ASCII table