Wally1 Posted September 25, 2018 Share Posted September 25, 2018 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 Quote Link to comment Share on other sites More sharing options...
ggn Posted September 25, 2018 Share Posted September 25, 2018 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 . Quote Link to comment Share on other sites More sharing options...
Wally1 Posted September 25, 2018 Author Share Posted September 25, 2018 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 Quote Link to comment Share on other sites More sharing options...
swapd0 Posted October 2, 2018 Share Posted October 2, 2018 You are using DS.W 1(Define a Storage), I think that you want to use DC.W 1(Define a Constant). Quote Link to comment Share on other sites More sharing options...
Wally1 Posted October 2, 2018 Author Share Posted October 2, 2018 right, thank you. now i know what those stand for! great Quote Link to comment Share on other sites More sharing options...
fedepede04 Posted November 21, 2018 Share Posted November 21, 2018 yes its dc.w you need, seka does not know the ds.w function. if you need a data array in seka you have to do blk.w Quote Link to comment Share on other sites More sharing options...
Wally1 Posted November 24, 2018 Author Share Posted November 24, 2018 okay great Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.