Machine code: Difference between revisions
Content added Content deleted
m (Changed past tense to present tense in opening paragraph. Forgot that coding in either assembly or BASIC on a Commodore computer is still relevant to many people.) |
|||
Line 189: | Line 189: | ||
=={{header|Commodore BASIC}}== |
=={{header|Commodore BASIC}}== |
||
For Commodore computers, machine language routines |
For Commodore computers, machine language routines are often written to increase speed of a program, provide functionality not otherwise provided for in BASIC, or execute code in the background. It is frequent to see small machine language routines incorporated into BASIC programs for these purposes. |
||
The machine code shown for adding two numbers targets the MOS 65xx/85xx architecture (6502, 6510, etc.) and is given as follows: |
The machine code shown for adding two numbers targets the MOS 65xx/85xx architecture (6502, 6510, etc.) and is given as follows: |