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

How to print string?

I can't seem to print the banner A, the # is all on the same line. I am not allowed to edit the string by adding CR nor LF. Help pls! START: ; first instruction of program loop move.b #5,D0 trap #15 lea str,A1 move.b…
Randy
  • 11
  • 3
0
votes
1 answer

Check if Branch Executes in Motorolla 68k

I'm told that the condition code register (CCR) contains $0B. And I'm asked if the following branch will occur. BGT LABEL I know that this is the Greater Than branch, but I'm not sure what the $0B represents. If I write $0B as $011, that still…
user3739406
  • 254
  • 1
  • 3
  • 16
0
votes
2 answers

Addressing Mode: Distinguishing between Absolute Short and Absolute Long?

Okay so I have the following instruction: MOVE.W $1234, $8000 Now I'm confused whether the addressing mode for $1234 and $8000 is absolute short or absolute long. I would also really appreciate it if someone can explain how to distinguish between…
Sid
  • 1
  • 1
0
votes
0 answers

Multipling matricies in assembly

This is using easy68K. Hi, I am multiplying two matrices together. I declare constants in a linear fashion at the bottom of the code.But basically I have two matrices, 2 x 2. I am saving in matrix D which has a defined storage. And into the second…
Nazariy
  • 717
  • 6
  • 23
0
votes
1 answer

68k -- Why is this loading FF?

I've been trying to figure out why this program loads FF into D1. Here is the code: ORG $1000 START: MOVE.B pattern,D1 SIMHALT pattern EQU $AA50 END START My thoughts are that pattern is in hex. It's a word.…
PerryC
  • 1,233
  • 2
  • 12
  • 28
0
votes
1 answer

Memory accessing in assembly language

I want to access a particular memory location of an array. the condition that i have is somewhat like this Let us say the array is arr[] have 100 elements and i want to access the 10th elements. so for that i want to move to the 10th memory…
0
votes
2 answers

how does indirect addressing work in assembly language motorola 68k

I have this code: loop2 move.b (a4)+,d3 * moving the morse code array input to d3 muls #5,d3 add.b $d3(a6),d3 * moving the character in morse code array to d4 move.b d3,d4 cmp.b #dot,d4 Here,…
0
votes
1 answer

68000 - TRAP 14 on 68000 and TRAP 15 on EASy68K

Are these the same? Is TRAP 15 on the EASy68K the same as TRAP 14 on the 68000 board. Ive tried looking for this answer and am under the notion that it is right but i would like to make sure. Could somone please confirm this?
user4148082
0
votes
1 answer

generate random letter in 68k assembly language

I am stuck on my assignment where it tells me to generate a random letter in range A to J I know that I should be using the ascii table but how to I write the code in easy68k? I have tried everything but I can only seem to generate a random number,…
0
votes
1 answer

How can i read 10 bytes from memory to add each consecutive 2 bytes

I have stored the string '0123456789', so now the ASCII value of each character is stored as one byte in the memory, How can add each consecutive 2 bytes like the following: 0+1->1, 1+2->2........etc “0123456789” 30 31 32 33 34 35 36 37 38 39…
Thair Abdalla
  • 279
  • 1
  • 5
  • 16
0
votes
2 answers

How to convert ascii number to binary in MC68k

I have to write a program that requires 20 user inputted numbers from 0-100 to find the average of the numbers and categorize them as failing or passing but it saves the input as ascii in memory and I have to change it from ascii to binary. I know…
user1869703
  • 53
  • 3
  • 7
0
votes
1 answer

How can I test an unsigned number?

I'm using I/O Trap #4 to read in a number. This gives me a number, however it does not mention if it is read in as signed or unsigned. I would assume this is because it just reads it in as is and it could be either. How can I check if my value is…
Vaughan Hilts
  • 2,839
  • 1
  • 20
  • 39
0
votes
1 answer

How to program my own test code

I don't know what the expression is in english, but what I mean is that code you use to make sure the code is correct, every possible case works, and the program is doing what it's supposed to (like, if I make code to operate with a matrix, I want…
keont
  • 653
  • 1
  • 9
  • 26
0
votes
1 answer

Adding two hex values in assembly language (EASy68K)

I want to create a program that adds two hex values together using ADD.B, ADD.W, and ADD.L and see what the differences are. I'm new to assembly programming, so I can't seem to get it quite right. There are no errors, but when I run the program, no…
Bryan
  • 2,951
  • 11
  • 59
  • 101
0
votes
1 answer

Translating Assembly Language to English (EASy68K)

Was given the following code in class and am supposed describe what each line means in comments to the right. Is this correct? MOVE.B #20,D0 //Move 20 into D0 MOVEA.L #$1000,A0 //Move the contents of address 1000 into A0 …
Bryan
  • 2,951
  • 11
  • 59
  • 101