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
-2
votes
2 answers

How do I do the BSR SUBR, and define the SUBR part of the code?

Question The program is supposed to do the following: Add up the first 6 data items ($1 to $6) stored at address label DATA. Store the sum of the first 6 data items to address label SUM1. Multiply the sum stored at address label SUM1 by 8, and…
thxr
  • 1
  • 1
-2
votes
1 answer

(M68k) Why is my value not getting passed into D0?

So I am writing a program and subroutine where this is basically the pseudocode. int findmin(int* vals, int count){ if(count == 1){ return vals[0]; }else{ int minrest = findmin(vals+1,count-1); if…
-2
votes
1 answer

Why is LEA 0x89AB(%A0),%A0 an Illegal Instruction in 68000 assembly

here is the programming card : https://files.fm/u/7pfmqca9 Why is LEA 0x89AB(%A0),%A0 an Illegal Instruction in 68000 assembly?
Andrew
  • 42
  • 8
-2
votes
1 answer

Translate Java Code into PseudoCode

How might i translate the Java Code below in PseudoCode for assembly language using the Motorola 68000: if(x > y && y < 100) { x++; y--; } // end if else if(x < y) { x--; y++; } // end else if else { x=0; y=0; }…
user1832605
  • 93
  • 1
  • 3
  • 10
-3
votes
1 answer

Adding in EASy86K

I have to do a homework assignment in which the program will receive 2 numbers from the keyboard and add and multiply them, but I don’t know how. So far, I've done this: ORG $1000 START: LEA INPUT, A1 MOVE.B #14, D0 …
mr99
  • 1
  • 2
-3
votes
1 answer

Write a program to clear bits 7 and 6, set bits 5 and 4, and toggle bits, 3, 2, 1, and 0?

A byte in memory at address $9000. Write a program to clear bits 7 and 6, set bits 5 and 4, and toggle bits 3, 2, 1, and 0. This is what I have, and it does not work. ORG $9000 MOVE.B #00, D0 MOVE #7, D1 …
user2188946
  • 35
  • 1
  • 1
  • 4
-4
votes
1 answer

How to write a program to find the lowest ODD integer in 68000 assembly?

How to write a program to find the lowest ODD integer in a string of digits entered by the user? For example: I type 27385, so 3 is the lowest odd integer.
1 2 3
15
16