Ankith Reddy has Published 1070 Articles

8086 program to determine product of corresponding elements of two array elements

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

390 Views

Here we will see how to find product of two array elements and store result into memory.Problem StatementWrite 8086 Assembly language program to find product of two arrays stored at 501 onwards and 601 onwards. The size of array is stored at location 500. After calculating product store result at ... Read More

8085 program to perform AND operation in nibbles of 8 bit number

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

414 Views

Here we will see how to AND two nibbles of an 8-bit number.Problem Statement:Write 8085 Assembly language program to perform AND operation of two nibbles of an 8-bit number. Number is stored at F050, we will store result at F051.DiscussionTo get the nibbles, we have to mask at first. So ... Read More

Java Program to select all cells in a table

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

334 Views

To select all cells in a table in Java Swing, you need to use the selectAll() method. Let’s say the following are our table rows and columns −String[][] rec = {    { "001", "Shirts", "40" },    { "002", "Trousers", "250" },    { "003", "Jeans", "25" },   ... Read More

How to understand if a bigint is signed or unsigned in MySQL?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

1K+ Views

If you do not specify unsigned, then bigint will be signed. If you specify an unsigned, then bigint will be unsigned.Let us first create a table −mysql> create table DemoTable    (    Number bigint, // signed    Number2 bigint unsigned // unsigned    ); Query OK, 0 rows affected ... Read More

HTML DOM Anchor download Property

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

90 Views

The HTML DOM download property is used to set or return the value of the download attribute of a link.Following is the syntax to set the download property −anchorObject.download = fileAbove, file represents the file name you can set for the file to be downloaded. The actual extension will get ... Read More

8086 program to generate AP series of n numbers

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

535 Views

In this program we will see how to find AP series using 8086.Problem StatementWrite 8086 Assembly language program to find AP series. The limit of the series is stored at 500, First term is stored at 501, and the common difference is stored at 502.DiscussionAP generation is simple task. We ... Read More

8085 program to sum of two 8 bit numbers without carry

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

2K+ Views

Here we will see how to add two 8-bit numbers without carry in 8085.Problem StatementWrite 8085 Assembly language program to perform 8-bit addition without carry. The numbers are stored at F100, and F101. Result will be stored at F102.DiscussionIn 8085, there is ADD instruction to add two numbers. We will ... Read More

Disable auto resizing to make the JTable horizontal scrollable in Java

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

654 Views

To disable auto resizing, you need to use the setAutoResizeMode() method. After that, set the table to AUTO_RESIZE_OFF.Let’s say the following is our table −String[][] rec = {    { "1", "Virat", "840" },    { "2", "David", "835" },    { "3", "Shikhar", "656" },    { "4", "Steve", ... Read More

HTML DOM Object type Property

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

117 Views

The HTML DOM Object type Property is used to set or return the value of the type attribute of an object. However, the type attribute is used to set the media type like the object.Following is the syntax to set the type property −obj.type = type_of_mediaAbove, type_of_media is the standard ... Read More

How to generate 6-digit random number in MySQL?

Ankith Reddy

Ankith Reddy

Updated on 30-Jul-2019 22:30:26

2K+ Views

You can use LPAD() along with rand() and floor() to generate 6-digit random number. Let us first create a table −mysql> create table DemoTable    (    Value int    ); Query OK, 0 rows affected (0.64 sec)Insert records in the table using insert command −mysql> insert into DemoTable values(1); ... Read More

Advertisements