Jump to content

Welcome to Geeks to Go - Register now for FREE

Geeks To Go is a helpful hub, where thousands of volunteer geeks quickly serve friendly answers and support. Check out the forums and get free advice from the experts. Register now to gain access to all of our features, it's FREE and only takes one minute. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more.

Create Account How it Works
Photo

Assembly language


  • Please log in to reply

#1
G!RL

G!RL

    New Member

  • Member
  • Pip
  • 7 posts
:tazz:
I m not sure if this suitable place for my question but am really in need for your help in this problem
Write an 8085 Assembler program that does the following:
Given a 16 bits number stored in the register pair DE determine if it is a power of 4. If so, store the value of 1 in the register C otherwise store the value of 2 in the same register. Try the program with the following values: 7,4,98,0,1,64,4096,8192,10500,2.


They gave us small hint :
use the instructions (either rar or ral). Don't compare with all possible powers of 4. rar mean rotate right with carry and ral is for left rotation. They are explained in the documents I gave you (either the text document or the word document). The accumulator is only 8 bits and not 16 bits.
Please at least explain the solution for me and I will try to solve
  • 0

Advertisements


#2
Bobbi Flekman

Bobbi Flekman

    The Computer Whisperer

  • Expert
  • 3,761 posts
  • MVP
Are you expecting me to do your home work?
  • 0

#3
G!RL

G!RL

    New Member

  • Topic Starter
  • Member
  • Pip
  • 7 posts
Bobbi Flekman
This problem is one of 8 problems in the homework
And I write it here because I failed to solve!!!!
If you don’t wont to help >> just ignore!!
  • 0






Similar Topics

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

As Featured On:

Microsoft Yahoo BBC MSN PC Magazine Washington Post HP