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

EASY68k Trap task #12 Echo

Just a simple question. When looking up Trap Tasks in the help file, Trap task #12 is different in the sense that it gives you an option to turn off the keyboard "echo". But it doesn't explain what an "echo" is. My questions are: What is a…
Bob Gonr
  • 41
  • 1
  • 8
1
vote
1 answer

68k how to add/subtract individual bytes?

I'm using easy68k, and I have a string, and I want to add a number to every digit so it ends up being a different string. Is there a command that lets me target the specific bytes in a string? for example: ORG $1000 START: …
ay lmao
  • 305
  • 2
  • 5
  • 17
1
vote
1 answer

String problems for easy68k

I am looking for some help with a 68k program I am creating. I was wondering how to print each line separate string that i have defined as: str dc.b ' # ' dc.b ' # # ' dc.b ' # # ' …
Randy
  • 11
  • 3
1
vote
2 answers

Easy68K IF-ELSE branching

writing my first assembly language program for class using Easy68K. I'm using an if-else branching to replicate the code: IF (P > 12) P = P * 8 + 3 ELSE P = P - Q PRINT P But I think I have my branches wrong because without the first halt…
Maggie S.
  • 1,076
  • 4
  • 20
  • 30
1
vote
0 answers

Representing and adding negative numbers in Easy68k Assembly

I'm trying to write a simple program in Easy68k that stores to negative values, adds them together, and then outputs them in the console. I am having trouble figuring out how to represent the negative numbers. We are asked that they be in hex format…
floatfil
  • 407
  • 2
  • 10
  • 17
1
vote
1 answer

How can I simulate the LEA instruction with MOVE?

How can I simulate the LEA instruction with MOVE? is this possible? I've used x86 assembly and the MOV instruction just copy adddress of if it's a symbol (not sure if it's assembly-dependent). But in 6800 MOVE looks like behave different, e.g., in…
The Mask
  • 17,007
  • 37
  • 111
  • 185
1
vote
0 answers

Synthesizing an add with carry instruction

I was recently asked to use other instructions to synthesize an ADC(add with carry) instruction in the case that the processor did not have one. How would I go about this on a 68k machine?
1
vote
1 answer

Easy68k Assembly ORG directive

I know similar questions have been asked, but listen anyway. I've written quite a few Easy68k programs this semester, and I am curious why org directive is always set to $1000, or $2000, or $2500. While the answer is "by personal convention", I am…
Dmytro
  • 5,068
  • 4
  • 39
  • 50
0
votes
1 answer

Easy68K Using a loop, transform text into uppercase

I'm stuck with my code for M68000 using Easy68k simulator. I'm getting some text, I'm storing the text into registry A0, then getting an option to transform it to uppercase and looping through A0. I'm not sure about the looping part. I'm trying to…
Anatheme
  • 13
  • 3
0
votes
1 answer

I'm trying to build a characters, spaces and words counter using Easy68k, I'm stuck

I'm very new with assembly, I'm trying to build a character, word and spaces counter with Easy68k. I'm getting the user input, then looping through the characters, adding to the counter and trying to output the result, but all I could do was to…
Anatheme
  • 13
  • 3
0
votes
0 answers

How to identify whether the input is an integer or something else on easy68k?

I am just trying to check if the input that the user enters is an integer or something else. I know that I probably need to take the input as a string and then check every part of the string. But I am still lost with how to implement it.
0
votes
1 answer

Problem Showing Interrupt message on Easy68k

I'm trying to do a program for the 68k processor using assembly. And I'm using Easy68k The main Idea of the program is that a message appears when the reset button is hit along with change in the seven segment. And another message appears when the…
0
votes
1 answer

How can i do this if statement in 68k

In my program i take input of a option and if input is equal to 1 I want do d+1. I have looked at the EQ condition syntax but cant get my head around it. Pseudo code: if choice=1 do d+1 What i have done: INPUT_FUNCTION: MOVE.B #4,D0 …
0
votes
1 answer

Delay Loop in 68k Assembly

I want to write a delay loop in assembly. It shall create a delay of N cycles. My idea was to create a for loop and iterate over the NOP instruction. In this case, would I have to decrease N by the number of cycles caused by other parts of the…
spadel
  • 998
  • 2
  • 16
  • 40
0
votes
0 answers

Assembly 68k - CMP not working as expected

Trying to calculate the number of zero for any given array ORG $8000 START MOVEA.L #V0,A0 COUNTERT CLR D0 COUNTERF CLR D1 RIEMP MOVE NELEM,D2 LOOP CMP #0,(A0)+ BEQ COUNT …