eflake Posted October 11, 2020 Share Posted October 11, 2020 I'm playing with it, when I try to do the 'asm' it complains about the label 'SETIT'. What am i missing? Thanks. 5 .OPT OBJ 10 *= $6000 20 MAIN LDA 711 30 STA 712 40 JSR SETIT 50 JMP MAIN 60 RTS 70 .END MAIN 250 SETIT LDX 2 300 LDA 4 350 LDY 10 400 JSR SETCOL 425 RTS 450 SETCOL ASSEMBLY ERRORS: 1 28254 BYTES FREE PAGE 2 SYMBOLS 6000 MAIN ?0000 SETIT Quote Link to comment Share on other sites More sharing options...
Alfred Posted October 11, 2020 Share Posted October 11, 2020 Comment out line 70, it’s terminating the assembly. Quote Link to comment Share on other sites More sharing options...
ebiguy Posted October 11, 2020 Share Posted October 11, 2020 I guess you want to use constant values at lines 250, 300 and 350 So the syntax should look like this: 250 SETIT LDX #2 300 LDA #4 350 LDY #10 Quote Link to comment Share on other sites More sharing options...
Rybags Posted October 11, 2020 Share Posted October 11, 2020 SET is a directive in some assemblers. Though some similar code worked fine for me testing just now. Quote Link to comment Share on other sites More sharing options...
Wrathchild Posted October 11, 2020 Share Posted October 11, 2020 As Alfred says, ".end" terminates the assembly, so code after it isn't seen http://mixinc.net/atari/mac65.htm#.end Quote Link to comment Share on other sites More sharing options...
eflake Posted October 12, 2020 Author Share Posted October 12, 2020 Thanks, mainly the label was the problem. Quote Link to comment Share on other sites More sharing options...
TGB1718 Posted October 13, 2020 Share Posted October 13, 2020 22 hours ago, eflake said: Thanks, mainly the label was the problem. Don't forget @ebiguy comments too, not doing this will have unexpected results or even crashes. 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.