Questions tagged [easy68k]

`EASy68K` is a 68000 Structured Assembly Language `IDE`. `EASy68K` allows you to edit, assemble and run 68000 programs on a Windows PC or Wine. No additional hardware is required. `EASy68K` is an open source project distributed under the GNU general public use license.

EASy68K is a 68000 Structured Assembly Language IDE. EASy68K allows you to edit, assemble and run 68000 programs on a Windows PC or Wine. No additional hardware is required. EASy68K is an open source project distributed under the GNU general public use license.

85 questions
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
2 answers

Assembly Language Recursion: Result always printing zero; issue with logic in recursive method?

I am currently enrolled in an assembly language (Motorola 68K Assembler) course. I have a project where I am tasked with printing the result of a Fibonacci number of a number up to 30. For example, if the user were to enter 4, the result should be 3…
user5840106
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

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
1 answer

Easy 68k error when trap command is called

When I try to display the contents of a register using trap task 17 I get some weird error. Here's my code: *Equates section program_start equ $1000 *Start Location of program timesToAdd equ 10 *Number to multiply numToMultiply…
RagCity
  • 13
  • 2
0
votes
1 answer

Easy68k: How to call a macro in assembly?

I'm using easy68k for the first time, and I wrote two macros that I want to call in my program. The macro definitions compiled just fine. However, when I try to call the macro from within the main program (i.e. after the "org" statement) it doesn't…
gameCoder95
  • 349
  • 1
  • 5
  • 19
0
votes
1 answer

Finding the square root of a number

I want to know how would you find the square root in the EASy68k assembler. I know it's a function but I don't know the code for it. I want to find the Square root of 72. The answer should be an integer so 8 in this case. I found this…
shawn edward
  • 149
  • 7
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

68k Assembly Subtraction small value from big value

My script take input of two numbers subtract the second number from the first and output the result: CR EQU $0D LF EQU $0A START ORG $1000 *---------- Code for output ---------* LEA MSG1,a1 …
Saad A
  • 1,135
  • 2
  • 21
  • 46
0
votes
1 answer

Easy68k: View Initial values at addresses

I am very new to Assembly programming. I am using Easy68k for Assembly. Here is my script: ORG $1000 START: ; first instruction of program * Put program code here move.l $00000080,d0 move.l $00000010,d1 …
Saad A
  • 1,135
  • 2
  • 21
  • 46
0
votes
1 answer

Mortorola 68k : How String ASCII is stored in address register a0

I am very new to Assembly programming in 68k. I am using Easy68k. I have a program: ORG $1000 START: * Put program code here lea MSG,a1 ; loads MSG into address register a1 move.b #14,d0 ; 14 gets coverted to…
Saad A
  • 1,135
  • 2
  • 21
  • 46
0
votes
1 answer

easy68k partial rotation? (ROL/ROR)

So I know how ROL and ROR works for something like D0 = %00000100, if I ROR #1,D0 then D0 it will now be 00000010. What I want to do is to rotate through only the a select few digits of that number, so for example if I ROR %00000001 one spot, I…
ay lmao
  • 305
  • 2
  • 5
  • 17
0
votes
0 answers

Motorola 68k array with stacks

im currently trying to load values of an array, push them onto the stack but im having some issues. I have the following code (Using EASY68K: ORG $8000 START: LEA $9100,sp MOVE #array,-(sp) ORG $9000 array DC.B '1,2,3,4,5,6',0 sum…