Jump to content

Photo

Trying to get Mac/65 working. Question.


13 replies to this topic

#1 Allan OFFLINE  

Allan

    Quadrunner

  • 5,346 posts
  • Location:Wallingford, CT

Posted Mon Sep 5, 2011 3:48 AM

I've been going through the Atari Roots book and it says in Chapter 5 to type 'BUG65' after you type 'CP' and go to the OS/A+ disk but 'BUG65' isn't there? Am I missing something? Does somebody have a copy with the BUG65 on it?

Thanks,
Allan

#2 Rybags ONLINE  

Rybags

    Quadrunner

  • 12,818 posts
  • Location:Australia

Posted Mon Sep 5, 2011 6:40 AM

I only have the OS-A+ / Mac-65 combo on real floppy so can't easily check right now.

How about DDT ? Is that on the disk?

#3 Allan OFFLINE  

Allan

    Quadrunner

  • Topic Starter
  • 5,346 posts
  • Location:Wallingford, CT

Posted Mon Sep 5, 2011 6:30 PM

I only have the OS-A+ / Mac-65 combo on real floppy so can't easily check right now.

How about DDT ? Is that on the disk?

It says DDT is one the cart. Is DDT the equivalent of BUG65? Maybe the book was written before they added DDT. I'll look at it again and see if I can get a program to run.

Allan

#4 Rybags ONLINE  

Rybags

    Quadrunner

  • 12,818 posts
  • Location:Australia

Posted Mon Sep 5, 2011 7:28 PM

A bit fuzzy on this: as I recall, the disk/early version of Mac-65 had the debugger seperate from the ed/asm part. I can't remember if DDT was even part of the package of the disk version, but at the least the BUG65 program was.

As such, it's kinda limited in usefullness since you have to exit one to use the other, and obviously need to save/reload whatever you were working on.

If you can't find either, I'll see about digging my real drive out later and checking if I've got it.

#5 Tyrop OFFLINE  

Tyrop

    Chopper Commander

  • 107 posts

Posted Mon Sep 5, 2011 8:20 PM

On the disk version, BUG65 was a separate program. You had to exit MAC/65, go into DOS (or OS/A+ which is what came on the disk) and then go into BUG65. On the cartidge version, the debugger was DDT (Dunion's Debugging Tool) and you go into it from within MAC/65 by typing "DDT." There is a MAC/65 manual online somewhere. Try doing a google seach for "mac/65 manual." I think DDT was better than BUG65. There is also a standalone, more advanced version of DDT called EXDDT (also written by Dunion) which is more advanced.

#6 Allan OFFLINE  

Allan

    Quadrunner

  • Topic Starter
  • 5,346 posts
  • Location:Wallingford, CT

Posted Thu Sep 15, 2011 1:18 PM

Thanks for the help guys.

I found the manual. I can load and save a program and assemble it. My problem now is I can't get the assembled program to run. I used this program from Antic mag which came from Atari Roots but when I try to run the compiled program with the BLOAD command from DOS 2.5, it just sites there.

Allan

#7 Rybags ONLINE  

Rybags

    Quadrunner

  • 12,818 posts
  • Location:Australia

Posted Thu Sep 15, 2011 1:31 PM

It doesn't put the Init/Run address in the file.

You can use DOS BSave.

Or it might work if you put *=$2E0 then the run address.

#8 Allan OFFLINE  

Allan

    Quadrunner

  • Topic Starter
  • 5,346 posts
  • Location:Wallingford, CT

Posted Thu Sep 15, 2011 1:44 PM

I saved it with BSAVE #D:FINESCRL.OBJ>3000,312E but when I go to DOS and use the L command it seems to load but then just sits there. I even tried 'Run At Address' with 3000 but nothing happens. Frustrating.

Allan

#9 Rybags ONLINE  

Rybags

    Quadrunner

  • 12,818 posts
  • Location:Australia

Posted Thu Sep 15, 2011 11:19 PM

You're overlapping into DUP.SYS there.

Best option while developing on real machine is to avoid areas below about $3800, or use a DOS with a smaller footprint.

#10 Tyrop OFFLINE  

Tyrop

    Chopper Commander

  • 107 posts

Posted Sun Sep 18, 2011 10:51 AM

You can also assemble your program to an object file and then binary load it in DOS to run it. To do this in MAC/65, you need to put .OPT OBJ at the top of your program listing (note - .OPT is preceded by a period). I usually put it on line 1. Then, use the command ASM ,,#D:OBJECT.OBJ. Note - 2 commas after ASM. This will compile the source code in memory into an object file called OBJECT.OBJ which you can then binary load, and I think it will just run. Don't forget to save your source file before you edit to DOS!

#11 Allan OFFLINE  

Allan

    Quadrunner

  • Topic Starter
  • 5,346 posts
  • Location:Wallingford, CT

Posted Sun Sep 18, 2011 4:52 PM

You can also assemble your program to an object file and then binary load it in DOS to run it. To do this in MAC/65, you need to put .OPT OBJ at the top of your program listing (note - .OPT is preceded by a period). I usually put it on line 1. Then, use the command ASM ,,#D:OBJECT.OBJ. Note - 2 commas after ASM. This will compile the source code in memory into an object file called OBJECT.OBJ which you can then binary load, and I think it will just run. Don't forget to save your source file before you edit to DOS!


Thanks, Rybags and Tyrop,
Doing it with ASM ,,#d:OBJECT.OBJ worked. I'm not sure why it wouldn't work the other way. I had .OPT OBJ in the beginning and did everything the Atari Roots book said to do. I put it at $3800 to avoid DOS 2.5 but it still would not run. I'll have to figure that out later. Now I will try to write a couple of small programs of my own and see if I can get them to compile and work.

Allan

#12 Rybags ONLINE  

Rybags

    Quadrunner

  • 12,818 posts
  • Location:Australia

Posted Sun Sep 18, 2011 7:01 PM

Actually, .OPT OBJ just means it assembles to RAM. You don't need it when assembling direct to file.

Default is OBJ for the AsmEd cart, Mac-65 defaults to NOOBJ.

#13 charliecron OFFLINE  

charliecron

    Moonsweeper

  • 348 posts

Posted Sat Sep 24, 2011 4:48 PM

Here is BUG65 if your still looking for it..

#14 Tyrop OFFLINE  

Tyrop

    Chopper Commander

  • 107 posts

Posted Sat Sep 24, 2011 8:08 PM

BTW, the SIZE command will give you 3 numbers, the first of which is the beginning of free memory (which I think is the first free byte after the end of DOS).




0 user(s) are browsing this forum

0 members, 0 guests, 0 anonymous users