Jump to content

nuadok

New Members
  • Content Count

    4
  • Joined

  • Last visited

Posts posted by nuadok


  1. 30 minutes ago, fox said:

    Apparently, the people here are not familiar with the AMAC syntax.

    1. Select a memory location for your program with ORG.
    2. Terminate your program somehow (e.g. RTS for return to DOS).
    3. Specify the run address as an argument to END.

     

     ORG $6000
    MAIN LDA 710
     STA 712
     LDY #1
     RTS
    
     END MAIN
    

     

    This program changes the border color to the background color and returns to DOS.
    LDY #1 is not essential. If missing, some DOSes will report an error when they get back control.
     

    Hello Mr Fox. It worked. I tested changing LDA 710 to LDA 711 and added a jump to avoid returning inmediately to be sure that the program was executed:

     

     ORG $6000
    MAIN LDA 711
     STA 712
     LDY #1
     JMP MAIN
     RTS
    
     END MAIN

    It changes the background color to pink (it seems that the original background color is black).

     

    How did you learn this? 

     

    Thanks again.

     

×
×
  • Create New...