Assembly language-Print part of ASCII table

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.