Questions tagged [68000]

The 68000 is a 16/32 bit CISC CPU, originally designed by Motorola, Inc.

The 68000 is a 16/32 bit CISC CPU, originally designed by Motorola, Inc.

After its introduction in 1979, it rapidly became popular among the system designers of its time. In its heyday, the 68000 was used in computers from Hewlett-Packard, Apollo/Domain, Sun Microsystems, Commodore (Amiga), Atari (ST), and Apple, among others.

Today, the 68000 and its derivatives are primarily used in embedded systems.

232 questions
0
votes
2 answers

Assembly Language Bubblesort

I have to sort an array given by ARY1, Sort it down in the SORT function, then store the sorted array into ARY1S. I chose not to include ARY2, but it would work identical. The SORT should work for both ARY1 AND ARY2. I took the bubblesort…
GiBiT
  • 311
  • 1
  • 8
  • 20
0
votes
1 answer

How do I write a GDB function to make a comparison to the program counter

I am attempting to write a gdb function that loops until the passed parameter equals the program counter. I am working with a primitive CPU, 68332. No hardware breakpoints. No OS that supports GDB software breakpoints, just a single instruction…
KeithSmith
  • 774
  • 2
  • 8
  • 26
0
votes
1 answer

Hi, need a little help understanding Motorola in assembler

If I have: 0000 3304 alpha: dc.w 5,16,4,-2 and my instruction is: sub.w alpha+2,D0 Is my alpha at 0000 33004 or is it at 00 05 00 01 00 04 FE?
Harold B
  • 23
  • 8
0
votes
1 answer

How do you Echo Data?

Is there a way to echo DATA in 6800 assembly? If I have it stored like this: DATA DC.W 1,2,3,9,8,7
Bramble
  • 1,395
  • 13
  • 39
  • 55
0
votes
1 answer

Summing 2-dimensional array in EASy68K assembly

100x100 array A of integers, one byte each, is located at A. Write a program segment to compute the sum of the minor diagonal, i.e. SUM = ΣA[i,99-i], where i=0...99 This is what I have so far: LEA A, A0 CLR.B D0 CLR.B D1 ADDA.L #99, D0 ADD.B (A0),…
0
votes
1 answer

File IO and the buffer

I want to read numbers from a file, but when I do is everything read from the file put into the buffer? Or only 1 number? File would contain 5 6 7 10 9 This would be what I'm using to read from the file: (EASy68K program) ORG $1000 START: …
emanyalpsid
  • 329
  • 1
  • 5
  • 19
0
votes
1 answer

Sort numbers using easy68k

How can I sort number in descending order by using easy68k? Please give some suggestions.
ms microp
0
votes
1 answer

Logic Expression in 68000 assembly

I posted earlier inquiring how to define hex constants for this program, which someone helped me out with, and now I'm trying to figure out if this program is running correctly. The program is intended to compute the logic expression X'Y + X'Z + YZ…
nmar
  • 135
  • 1
  • 1
  • 7
0
votes
1 answer

Define Hex Constant (68000)?

How do I define a hex constant in 68000 assembly? I need to compute the logic expression X'Y + X'Z + YZ, where X, Y, and Z are hex constants, and the result is displayed in binary. I wrote the code to compute the expression, I'm just not sure how to…
nmar
  • 135
  • 1
  • 1
  • 7
-1
votes
2 answers

Is there a way to write single instruction for fractional multiplication?

I am trying to write a single 68000 instruction to multiply the 32-bit unsigned value in D0 by 0.125. Yet fractional multiplication is not available. So I am wondering if there is any way to go around it? It's supposed to be unsigned and 0.125 =…
user12061175
-1
votes
1 answer

68k - Shortcuts to reorder instructions and reduce clock cycles?

I've learned that reordering instructions can help save clock cycles and avoid Data Hazards. However, I'm finding it difficult to understand exactly how we can reorder these instructions. The best way I've found so far is by putting them in a table…
Ryan Russell
  • 739
  • 1
  • 8
  • 21
-1
votes
2 answers

68K Assembly Math Formula

I need to write some Lines in 68k Assembly Language with the math formula: x^2-5x+6 I want to do it with ADD and SUB commands and MOVE yet somehow I cant define the variable x it says its an undefined Symbol and I cant actually realize where my…
HaskellPlease
  • 277
  • 2
  • 10
-1
votes
2 answers

68000 assembly code memory mapping

I need help in this matter.I have to draw a memory map and I have here is the code ORG $6080; CAT EQU 5; DOG DC.L CAT; Hourse EQU 1; I m not getting after ORG line,can anyone tell how can i draw its memory map
-1
votes
3 answers

multiplying two long words on 68000 assembler

can anyone help me on this exercice on 68000 assembler please? create a program that multiply two long words v1 and v3 unsigned. the product is number on 64 bits. the values v1 qnd v2 are respectively on the data registers D1 and D2 ? thanks for…
-1
votes
2 answers

Having trouble finding error in my assembly code

I am a beginner when it comes to assembly language. I am using "easy 68k editor/assembler" to write 68k assembly code that asks the user for 2 values, then sum them up together and display it. The problem is that my code keeps getting halted and I…
The Tokenizer
  • 1,564
  • 3
  • 29
  • 46
1 2 3
15
16