How Do You Program and Design for the MC68000 Microprocessor?

  • Thread starter Thread starter lightgreen
  • Start date Start date
Click For Summary

Discussion Overview

The discussion revolves around programming and designing for the MC68000 microprocessor, specifically addressing theoretical questions related to address decoding and arithmetic operations in assembly language. Participants seek assistance with specific problems related to microprocessor design and programming.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant requests help with designing an address decoder for RAM, ROM, and I/O devices, and writing a program to compute a mathematical equation.
  • Another participant emphasizes the importance of knowing the instruction set for the Motorola chip and asks about the work done so far.
  • A participant notes that the questions are theoretical and offers to help with the second question while indicating they already have answers for the first.
  • Some participants suggest using a look-up table (LUT) for squaring numbers, while others mention the availability of a multiply instruction in the 68K architecture.
  • There is confusion expressed by one participant regarding the requirements for squaring a number and the meaning of memory addresses mentioned in the problem.
  • Participants discuss the trade-offs between using multiplication and a look-up table for squaring numbers, with one noting that multiplication may take more clock cycles depending on the numbers involved.

Areas of Agreement / Disagreement

Participants have differing views on the best approach to squaring a number, with some advocating for the use of a look-up table and others supporting the use of the multiply instruction. There is also uncertainty regarding the interpretation of the problem requirements and memory addresses.

Contextual Notes

Participants express confusion over the specific requirements for the programming task and the implications of using different methods for squaring numbers. The discussion reflects varying levels of understanding of the MC68000 architecture and its instruction set.

Who May Find This Useful

Students and enthusiasts interested in microprocessor programming, particularly those working with the MC68000 architecture, may find this discussion relevant.

lightgreen
Messages
11
Reaction score
0
One of my major subjects in this semester is Microprocessor, MC68000. I have a hard time with this subject. Please help me to answer certain questions:

1)Design address decoder for following devices
- RAM(128Kbyte) with initial address of $400000
-ROM(32kbyte) with initial address of $000000
-I/O with address between $800000-$80001F

2) Write a program which satisfies the equation: y= x(square) + z
y is a 16bit unsigned number which store in $1000
x and z is a 8 bit unsigned number which store in $1002-$1003
 
Physics news on Phys.org
Do you know the instruction set for the Motorola chip? You need to know that already.

What work have you done so far? Please you show us.
 
The questios listed all are the theoretical question. We do not have to design the real circuit. For the first question, I already have the answers. But pls help me for the 2nd question.
 
For the square part use a look-up table and an index to count up to x and read the table (which should contain the square of each x values). The rest is straightforward; addition.
 
verafloyd said:
For the square part use a look-up table and an index to count up to x and read the table (which should contain the square of each x values). The rest is straightforward; addition.

the 68K has a multiply instruction. both signed and unsigned. squaring a number is trivial.
 
Sorry to say that I don understand at all what's going on at the moment. I'm thinking of using multiplication before, but the requirements for it really make me confuse. Besides that, if squaring a number is trivial, then can I assume that y=z? If not, what should I do? What are $1000, $1002,$1003? Is it a memory address at address register?
 
rbj said:
the 68K has a multiply instruction. both signed and unsigned. squaring a number is trivial.

You're right. But it -depending on the numbers- takes more clock cycles than doing it with a LUT.
 

Similar threads

  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 1 ·
Replies
1
Views
4K
Replies
1
Views
4K
  • · Replies 23 ·
Replies
23
Views
6K
Replies
7
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
3K
Replies
3
Views
4K