w1k Posted March 13, 2011 Share Posted March 13, 2011 hello,i trying learn how make basic asm subroutines. first i type example program in MAC 65 _ V1.01.rom, then save it on D1: now i want load my example program in dos to memory and switch to basic.. how i can do this? in dos i have ERROR 180. i know, its only source.. :/ here is it: http://podstromami.com/asm.atr Quote Link to comment Share on other sites More sharing options...
w1k Posted March 13, 2011 Author Share Posted March 13, 2011 ok.. i resolved that problem.. but lol.. in book is DATA 104,165,106,56,233,8.. my data is: 66,83,65,86,69,32.. jesus Quote Link to comment Share on other sites More sharing options...
Alphasys Posted March 15, 2011 Share Posted March 15, 2011 ok.. i resolved that problem.. but lol.. in book is DATA 104,165,106,56,233,8.. my data is: 66,83,65,86,69,32.. jesus Your data starts with "BSAVE " according to those numbers. I suspect you're trying to load some sort of listing instead of object code. Object code is the final product of the assembler. Normally it's written to disk by the ASM directive, if some sort of output directive is included in the assembler listing. Someone here will be able to tell you how to do that in MAC/65, but I can't since I don't use or own the program. Once you have your object code, it's usually in the COM format, which means it has a header stating in what locations to load the code. Easiest way to use this kind of stuff in Basic, in my humble opinion, is to abandon Atari Basic and get TurboBasic. You can program that in the Atari Basic language, but it has way more versatility and includes a BLOAD command, which makes loading a COM-file a breeze. Quote Link to comment Share on other sites More sharing options...
Kylev Posted March 15, 2011 Share Posted March 15, 2011 w1k, AlphaSys is right. Using MAC/65, you need to issue the ASM command from the editor to assemble your source code into object code. Do you have a copy of the manual handy? I am at work, at the moment, and do not have access to my manual. There are various options that can be given to ASM that will tell MAC/65 what to do with your source code. You would be interested in the option that puts the assembled object code into a file on your disk drive. Once you have an object file created, you can then proceed as AlphaSys has outlined. I agree that TurboBasic would be the easiest way to go with regard to merging your assembly routine with Basic. It can be done with Atari Basic, it just requires more work on the programmer's part and a deeper understanding of Atari Basic. Hope this helps. Russ Quote Link to comment Share on other sites More sharing options...
w1k Posted March 16, 2011 Author Share Posted March 16, 2011 thanks for answers, i resolved my problem and now works OK.. problem was with no TAB in source code.. 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.