Friday, September 1, 2023

Arithmetic operations in uvision keil using assembly language.

 To write assembly code for the LPC2148 microcontroller using Keil uVision, you'll need to use the ARM assembly language specific to this microcontroller and create a Keil project. Below is an example of assembly code for division, multiplication, subtraction, and addition using ARM assembly language in Keil uVision. This code assumes you have created a Keil uVision project for the LPC2148 and that you are familiar with the project setup.

Code:- 


AREA Arithmetic, CODE, READONLY
; Import the LPC2148 startup file
EXTERN __main
; Define memory addresses for input and output variables
; Modify these addresses as needed for your specific application
DIVIDEND EQU 0x40000000 ; Address of dividend
DIVISOR EQU 0x40000004 ; Address of divisor
QUOTIENT EQU 0x40000008 ; Address of quotient
REMAINDER EQU 0x4000000C ; Address of remainder
OPERAND1 EQU 0x40000010 ; Address of operand 1
OPERAND2 EQU 0x40000014 ; Address of operand 2
DIFFERENCE EQU 0x40000018 ; Address of difference
SUM EQU 0x4000001C ; Address of sum
ENTRY
; Division:
LDR r0, =DIVIDEND ; Load address of dividend into r0
LDR r0, [r0] ; Load the dividend value into r0
LDR r1, =DIVISOR ; Load address of divisor into r1
LDR r1, [r1] ; Load the divisor value into r1
MOV r2, #0 ; Clear quotient
MOV r3, #0 ; Clear remainder
CMP r1, #0 ; Check if divisor is zero
BEQ DIVISION_END
DIV_LOOP
    CMP r0, r1 ; Compare dividend with divisor
    BLT DIVISION_END ; If dividend < divisor, exit loop
    SUB r0, r0, r1 ; Subtract divisor from dividend
    ADD r2, r2, #1 ; Increment quotient
    B DIV_LOOP
DIVISION_END
STR r2, [QUOTIENT] ; Store quotient
STR r0, [REMAINDER] ; Store remainder
; Multiplication:
LDR r0, =OPERAND1 ; Load address of operand 1 into r0
LDR r0, [r0] ; Load operand 1 value into r0
LDR r1, =OPERAND2 ; Load address of operand 2 into r1
LDR r1, [r1] ; Load operand 2 value into r1
MUL r0, r0, r1 ; Multiply r0 by r1
STR r0, [SUM] ; Store the result in SUM
; Subtraction:
LDR r0, =OPERAND1 ; Load address of operand 1 into r0
LDR r0, [r0] ; Load operand 1 value into r0
LDR r1, =OPERAND2 ; Load address of operand 2 into r1
LDR r1, [r1] ; Load operand 2 value into r1
SUB r0, r0, r1 ; Subtract r1 from r0
STR r0, [DIFFERENCE] ; Store the result in DIFFERENCE
; Addition:
LDR r0, =OPERAND1 ; Load address of operand 1 into r0
LDR r0, [r0] ; Load operand 1 value into r0
LDR r1, =OPERAND2 ; Load address of operand 2 into r1
LDR r1, [r1] ; Load operand 2 value into r1
ADD r0, r0, r1 ; Add r1 to r0
STR r0, [SUM] ; Store the result in SUM
; Infinite loop to keep the program running
LOOP
    B LOOP
END


Please note that you need to modify the memory addresses (DIVIDEND, DIVISOR, QUOTIENT, etc.) to match your specific memory map and setup in your Keil uVision project. This code is intended to be used as a starting point, and you should adapt it to your specific requirements and hardware setup. Additionally, make sure you have the appropriate linker script and memory map configured in your Keil project.

Tuesday, July 19, 2022

 why advertisement is very important in this era?


   Due to the increasing number of population and there demand goods demand also increasing day by day. in my opinion, people only carrying about service and kind of things show in advertisement that the results that sales increased . and buyers increased.

people buy products based on the information that they taken from advertisement and see the usefulness of the product. due to this trend companies are selling more and more. in such cases, a massive publicity increase the selling power. 

for example, sales of smartphone is increased in this corona period because it's need of every person in this situation and also result of the massive advertising program acted by some  popular people's. people purchase product because it was advertised by a famous celebrity and never review the usefulness of the product before purchasing. 

on the other hand, certain buyer goods have increased sales as they are necessary for us. these kind of items do not need any kind publicity.. people buy the products as it is a daily requirement , like  maggie, food oil, fruit juice, cold drink etc. so, I am agree that according to need this thigs possible by advertisement but few needful items don't  needs publicity.

thank you for reading if you find any mistakes ,please let me know.

  


Monday, August 24, 2020

How to hack wife?

 

How to hack wifi?

Today is a modern day, Everything is possible . We can do anything by using internet and some software. Android is based on java script hence  so many things are possible but google had been disabled that., hence we see errors and action blocked like notifications on mobile screen.
In that tutorial , I am tell you  easy idea.
Which use IP address and number of pins (numbers).
We know that, some hacking apk tools are available in play store. One of them is wpa wps tester. Which is easy to use and most of the Android mobile support that apk. Below Android 10 or 9 it works very well.
But in Android 9 and 10 it is not work because that service is disable by google.
Hence it work on kitkat, lollipop, marshmallow and many more.
Mostly it works properly in Android 4.4.2,android 5.0 and 5.0.1.
Step 1:-
Download the apk file from play store and from apkmirror website.
Step 2:-
Open the apk and press the allow button.
Step 3:-
If it is not scan  wifi automatically then click the scan button.
Step 4:-
It show green, yellow, and red wifi.. That's mean green wifi hack very easily, yellow wifi take some time (some time it hack but some time it not hack ) and red wifi is very difficult to hack because it is protected by wpa/wpa2 psk.
Click the green wifi.
Step 5:-
It show a screen where method is provided having new method and old method... Use old method.
Step 6:-
Click to autopin which is shown in first square. (There is 12 to 14 pin )
It take some time.
If it is not work then try again and again.
Note:- 1:-  it is not work then select new method.
2:- if your phone is rooted then it is very easy do that operation.
After that it show a notification on screen that say wifi connect successfully .
It is very easy trick.

Thank you!

Some time it show this but don't wary  try few times.


Saturday, September 28, 2019

Old memory.


This is the very old memories.
When I had gone to nagpur with all teachers staff  and with students. 


Best mobile phone.

There are many types of mobile phones which are available at that time but it's very difficult to find out best one.
Many phones are now available at low prices.
So I can give same chip cost and best phones list below. Phone  cost range. (5000 to 12000 rs)
1. Redmi 6a and 8a.
2.Nokia 2.1
3.Nokia 2.2
4.Nokia 1
5.coolpad cool 3
6.Samsung Galaxy m10.
7.Lenovo A5.
8.Redmi  y3.
9.redmi 7 .

This all are under 8000.
Which are best and provide best service.

Now , under the 12000 rs. Best camera and gaming phone.
1.redmi mi note 6pro.(6GB,64GB)
2.Redmi mi note 7 pro. And note 7s
(4GB,64GB).
3.Nokia 6.1 plus (6GB, 64gb)
4.realme 3pro.
5.realme 2 pro.
6.realme 3i.
7.realme u1.
8.vivo u1.
 This all are best for daily use.



Thank you!







Saturday, July 27, 2019

Food chain

Food chain.
A food chain is a linear sequence of links in a food wed starting from a species that are called producers in the Web and ends at a species that is called decomposers species in the Web.
A food chain also shows how the organisms are related with each other by the food they eat.
A food chain differs from a food Web, because the complex polyphagous network of feeding relations are aggregated into trophic species and the chain only  follows linear monophagous pathways.
A common metric used to quantify food Web trophic structure is food chain length.
In its simplest form, the length of a chain is the number of links between a trophic consumer and the Base of the Web and the mean chain length of an entire Web is the arithmetic average of the lengths of all chains in a food Web.

Thank you!

I hope my blog  is useful for you.

soap and detergent action and working.