Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The usage of DIV in C language and what does the concept of DIVAB mean

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

I believe many inexperienced people are at a loss about the usage of DIV and the concept of DIVAB in C language. therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Do you know the usage of DIV in C language and the concept of DIVAB? let's take a look at the concept of DIV first. I believe this article will give you something.

Introduction to DIV

DIV is also called integral division in programming, that is, integers that can only be quotient. DIV elements are elements that provide structure and background for block-level content in an HTML document. Everything between the start and end tags of the DIV is used to form this block, and the properties of the elements contained in it are controlled by the attributes of the DIV tag, or by formatting the block using a style sheet.

The usage of DIV in C language

◆ function name:

DIV

◆ function:

Divide two integers and return quotient and remainder

◆ usage:

DIV_t (intnumber,intdenom)

◆ program example:

# include # include DIV_tx; intmain (void) {x=DIV (10jue 3); printf ("10DIV3=%dremainder%d\ n", x.quotdiary x.rem); return0;}

DIV:80C51 instruction

The mnemonic of division instruction is DIV. There is only one instruction.

DIVAB

The function of the division instruction is to divide the unsigned 8-bit binary number in A by the unsigned 8-bit binary number in B, the binary number of the quotient is stored in A, the remainder is stored in B, and CY and OV are set to 0. When the divisor (B) = 0 and the result is uncertain, OV is set to 1. CY always clears 0.

Example: let (A) = 0FBH (251D), (B) = 12H (18D).

Execute instruction: DIVAB

Results: (a) = 0DH (quotient 13), (B) = 11H (remainder I7), (OV) = 0, (CY) = 0.

◆ DIV Properties

DIV attribute

Color:#999999 text Color

Font-family: song style font

Font-size:10pt text size

Font-style:itelic text italics

Font-variant:small-caps small font

Letter-spacing:1pt text spacing

Line-height:200% sets row height

Font-weight:bold text bold

Vertical-align:sub subscript

Vertical-align:super superscript

Text-decoration:line-through plus h division line

Text-decoration:overline top line

Text-decoration:underline plus bottom line

Text-decoration:none?h except the bottom line of connection

Text-transform:capitalize initial capitalization

Text-transform:uppercase English capitals

Text-transform:lowercase to write in English

Text-align:right text * right align

Text-align:left text * left alignment

Text-align:center text centering alignment

These are some simple text effects that can be applied to css pages.

◆ background

Background-color:black background Color

Background-image:url (image/bg.gif) background picture

Background-attachment:fixed fixed background

Background-repeat:repeat repeat arrangement-Web page preset

Background-repeat:no-repeat non-repetitive arrangement

Background-repeat:repeat-x is arranged repeatedly on the x-axis.

Background-repeat:repeat-y is arranged repeatedly on the y-axis.

Position of the x and y axes of the background-position:90%90% background picture

◆ link

An all hyperconnections

A:link hyperlink text format

Link text format browsed by A:visited

A:active press the format of the connection

A:hover mouse move to connection

◆ border

Border-top:1pxsolidblack upper frame

Border-bottom:1pxsolid#6699cc lower box

Border-left:1pxsolid#6699cc left frame

Border-right:1pxsolid#6699cc right frame

Border:1pxsolid#6699cc quadrangle

◆ dotted line

◆ solid line

After reading the above, have you mastered the usage of DIV in C language and what the concept of DIVAB means? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report