Thelen Posted September 22, 2002 Share Posted September 22, 2002 How can i make a .exe or obj file for the atari 800 with dasm ? I want to assemble a source so that i can binary load it with the binary load function from dos 2.05. What's the diffence between a obj file and a exe file ? or is it just the same ? Thanks, Thelen Quote Link to comment Share on other sites More sharing options...
+Cafeman Posted September 22, 2002 Share Posted September 22, 2002 For 5200 at least, I enter from a MS Dos window: DASM koffi.txt -f3 -okoffi.bin This takes Koffi.txt, my source file in ASM, and makes koffi.bin, a 32K object file (the binfile or ROMfile, whatever you call it). Uh, does that help? Quote Link to comment Share on other sites More sharing options...
Thelen Posted September 23, 2002 Author Share Posted September 23, 2002 No, it doesn't help me much...i have got a source file (assembler) and i compile it with DASM (like you do with Koffi, only my source is for the atari xl/xe). then I get a binary. I was thinking : I want to run that binary on my atari, (not as a cartridge) and put the binary on a harddisk in the atari800win emulator. Then i load dos 2.05 from disk, choose option L in the dos menu, and try to load the binay from drive H (the emulated harddisk in atari800win), but then i get the error : filetype incorrect (don't know exactly what it was, but it meant that). so how can i get the right file format for a binary load, or is this not possible with dasm compiled file ? Thanks. Thelen Quote Link to comment Share on other sites More sharing options...
+Allan Posted September 23, 2002 Share Posted September 23, 2002 On the Atari 8-bit's there are two types of files. Listed/entered files and saved/loaded files. This is true for Atari Basic and the Atari Assembler/editor. This might be what your problem is. A Listed program is strait text with just a return marker at the end of each line. The regular saved programs are tokenized.(additional characters that you don't see when you list the program on the screen whether in Basic or a source code listing in assembly.) Unfortunately I don't know much about Dasm or the PC Atari 8-bit emulators.(I'm on a Mac.) Try to find a way to 'import' your program into your emulator from Dasm. Rainbow for the PC's and Macs have this feature. Another thing to remember also is that if you save a binary on the Atari and you want to run it later, you have to give the starting address. Allan Quote Link to comment Share on other sites More sharing options...
Thomas Jentzsch Posted September 23, 2002 Share Posted September 23, 2002 AFAIK, all OS require a special header (loader) for each executable. So I'm quite sure DASM can not produce that. Quote Link to comment Share on other sites More sharing options...
skywalker2000 Posted September 24, 2002 Share Posted September 24, 2002 For 5200 at least, I enter from a MS Dos window: DASM koffi.txt -f3 -okoffi.bin This takes Koffi.txt, my source file in ASM, and makes koffi.bin, a 32K object file (the binfile or ROMfile, whatever you call it). Uh, does that help? I was wondering how in the world do I take the code from *.txt and turn it to a *.bin so I can run it on the VSS emulator. What does -f3 do? Quote Link to comment Share on other sites More sharing options...
Thelen Posted September 26, 2002 Author Share Posted September 26, 2002 I was wondering how in the world do I take the code from *.txt and turn it to a *.bin so I can run it on the VSS emulator. What does -f3 do? in your *.txt file there are must be assembly opcodes. what dasm do is translate them into numbers and store it in a .bin file. if you open the .bin file there are all sorts off characters. those stands for numbers because every character (ascii) represents a number. F3 stands for the output filetype Thelen Quote Link to comment Share on other sites More sharing options...
skywalker2000 Posted September 27, 2002 Share Posted September 27, 2002 I was wondering how in the world do I take the code from *.txt and turn it to a *.bin so I can run it on the VSS emulator. What does -f3 do? in your *.txt file there are must be assembly opcodes. what dasm do is translate them into numbers and store it in a .bin file. if you open the .bin file there are all sorts off characters. those stands for numbers because every character (ascii) represents a number. F3 stands for the output filetype Thelen Thanks... I never downloaded TASM. I will get down to it. 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.