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
0 answers

Motorola 68k Input comparison/addition

What I am trying to achieve in this program is to take a single line of input, a single digit number followed by a space followed by a 2 digit number, add them together, divide by 9, and compare the result to cases for the different outputs.…
Jeremy H.
  • 69
  • 1
  • 11
0
votes
1 answer

Motorola 68000 Assembly

I got a simple question. No idea where to start. I need a simple math calculation (+,_,*,/) to output at least 2 digits. Example: 1+2=03 move #1,D0 move #2,D1 add.l D0,D1 the above needs to output a 03. ...it outputs a 3. I've gotta display the…
MattBorg
  • 95
  • 1
  • 1
  • 9
0
votes
2 answers

Test if two numbers are equal using Easy68K

I'm trying to create a program in Easy68K that is able to test if two numbers entered by the user are equal. I know roughly how to get the input from the user, and load it into a data register, and I think I need to use a while loop that will test…
Rob Dudley
  • 25
  • 8
0
votes
1 answer

68000 - How can I build a file executable on a Macintosh Plus from a 68000 assembly source code?

I worked on a java sub-language compiler recently. This compiler provides a 68000 assembly file. I used easy68k to test and improve it. Now I want to go to the next level and try it on a real Macintosh Plus emulator: Mini vMac. So my question is:…
Romzie
  • 457
  • 4
  • 11
0
votes
1 answer

Decision Structures in 68k assembly language

I want to write program that prompt the user for one character from the keyboard. For the character entered, classify the character as a number, a letter If user entered "*" then loop again for new value The problem is always show the result is…
nas2016
  • 15
  • 5
0
votes
1 answer

Push Button on 68K

I want to Write a program to read a value from the push buttons and display that value on the LEDs. The program should run continuously and as the push buttons are changed, the display changes. I tried many ways but it does not show any thing in …
nas2016
  • 15
  • 5
0
votes
1 answer

How to put 2 different color in a grid?

I try to do a little exercise for myself, but I'm stuck. I want to do a grid (that is ok) where one shot in two, the color changes (like in this picture : http://puu.sh/tfgHm/b07843323d.jpg ). I already have this : ORG $800 START: MOVE.w…
A.Arthur
  • 3
  • 4
0
votes
1 answer

Differrence between $FC034D and #$FC034D?

If I write the following code MOVE $FC034D,A0 MOVE #$FC034D,A1 Does A0 and A1 both point to the same memory location? Or is there some difference in using the $ and the #$?
Callat
  • 2,928
  • 5
  • 30
  • 47
0
votes
2 answers

68000 Assembly: Multiplying gives a weird result

I have a question regarding the MULU instruction. One thing I've noticed is that suppose I have the value 000FFFFF in a data register. And then suppose I want to put in another F so that it contains 00FFFFFF. What I usually do is multiply the data…
Karim O.
  • 1,325
  • 6
  • 22
  • 36
0
votes
2 answers

68K Assembly, how to copy the first 4 bits of a data register

Suppose an arbitrary data register contains the value '000E0015'. How can I copy the first 4 bits (000E) to another data register?
Karim O.
  • 1,325
  • 6
  • 22
  • 36
0
votes
2 answers

Extend numbers using EXT, AND. Also how ASR and LSL work (68000 assembly language)

I'm studying assembly language (for the 68000 microprocessor), and I came across the following problem: Write a 68000 assembly language program that will perform 5*X + 6*Y+ [Y/8] -> [D1.L], where x is an unsigned 8-bit number stored in the lowest…
Jack
  • 241
  • 2
  • 14
0
votes
1 answer

The maximum number of bits you can shift long word in 68000

It can be something very stupid, but I would like to ask this question to clarify things in my head. I am doing great 68k assembly tutorial (link). Evrything goes well, but I don't understand one thing. Let me quote: You can shift using one data…
Jerry Switalski
  • 2,690
  • 1
  • 18
  • 36
0
votes
1 answer

How to slowly output text to the console using easy68k

I'm currently creating a simple space-style resource management game in easy68k. One part of my game consists of a simple loop which signifies the point from which the players fleet leaves home base to when they reach their mission destination. The…
0
votes
2 answers

68k Assembly: ORG $2000 and DS.L functionality

I have a 68k Assembly program that calculate the average of values in a 3x3 array's diagonal and stores it. ORG $1000 START: ; first instruction of program * Put program code here move.w n,d6 ; d6 = 0000…
Saad A
  • 1,135
  • 2
  • 21
  • 46
0
votes
1 answer

Memory mapping in Assembly and its contents

I have two 68000 registers A2 and A7. Initially A2 contains $002C4178 and A7 contains $0000A000. Then, the following instructions execute in sequence: MOVE.L #6,-(A2) MOVE.L #14,-(A7) MOVE.L #$24,(A7) MOVE.L (A7),$1000 What are the contents…