Jump to content
Sign in to follow this  
Wally1

a little 68K asm help

Recommended Posts

hi all,

 

I am trying to get the following program to run:

       ORG    $6000

NUM1   DS.W   1
NUM2   DS.W   1
RESULT DS.W   1

START  MOVE.W NUM1,D1    ;FETCH FIRST NUMBER

       ADD.W  NUM2,D1    ;ADD SECOND NUMBER

       MOVE.W D1,RESULT  ;STORE RESULT

       RTS

       END



I am using Seka assembler.

 

can anyone help?

 

Fedepede?

 

thank you

 

Share this post


Link to post
Share on other sites

How are you running this? I can only assume that you're doing a "jsr $6006" somewhere?

 

If you're trying to build a TOS executable then it certainly won't run.

 

More info is required :).

Share this post


Link to post
Share on other sites

I just type "g" and Seka asks for breakpoints, i press enter (for none, I guess)

 

and it runs.

 

but not like it should.

 

thanks

 

oh and not trying to build an executable, just play with it inside the assembler

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...