Jump to content

Welcome to Geeks to Go - Register now for FREE

Need help with your computer or device? Want to learn new tech skills? You're in the right place!
Geeks to Go is a friendly community of tech experts who can solve any problem you have. Just create a free account and post your question. Our volunteers will reply quickly and guide you through the steps. Don't let tech troubles stop you. Join Geeks to Go now and get the support you need!

How it Works Create Account
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