Jump to content
IGNORED

Tell me something (SDX+Atari Roots+Mac/65)


Recommended Posts

It's better to test the two plus two program within MAC/65. You don't need to save it to a file. The program doesn't output anything. It only changes a memory location. So you'll need a monitor like Mac/65's DDT to see the effect.

 

Here are the steps starting from scratch for those who want to follow along:

 

1. Download Mac/65.

 

2. Boot the cartridge in Altirra or your emulator of choice.

 

post-21021-0-80373100-1366938359_thumb.png

 

3. Type in the program from Atari Roots Chapter 4.

 

Change the starting location of the assembly since page 6 gets used by Mac/65:

 

40  *=$3800

 

Also, add the following line at the top to tell Mac/65 to actually assemble to memory.

 

10  .OPT OBJ

 

See also the Mac/65 Manual.

 

Make sure you use the correct number of spaces between the line numbers and the first token on each line.

 

post-21021-0-83531400-1366938360_thumb.png

 

You can cut-and-paste this in Altirra:

 

10  .OPT OBJ
40  *=$3800
60  CLD
70 ADDNRS CLC
80  LDA #2
90  ADC #2
100  STA $CB
110  RTS
120  .END

 

4. Assemble with "ASM"

 

post-21021-0-81834400-1366938361_thumb.png

 

5. Start debugger with "DDT"

 

6. Type "E 3800" to see your code

 

post-21021-0-82608400-1366938362_thumb.png

 

7. Type "E CB" to see initial value in address $CB

 

post-21021-0-35449400-1366938363_thumb.png

 

8. Type "G 3800" to run your code

 

9. Type "E CB" to see the value stored by your program

 

post-21021-0-87439400-1366938363_thumb.png

Edited by Xuel
  • Like 1
Link to comment
Share on other sites

This means your program has a serious bug. Check and recheck the code, the following conditions first:

 

1) if the load address is correct, i.e. it does not overwrite DOS (DOS is above $0700 and below MEMLO value).

 

2) if the start address (RUNAD) is correct. When there is no RUNAD segment in your code, SDX executes the binary from the beginning.

 

To append RUNAD segment, add this:

 

  *= $02E0
  .word start

 

and mark the beginning of your program with the label 'start'.

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...