User Tools

Site Tools


base:runbasicprg

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

base:runbasicprg [2015-04-17 04:33]
base:runbasicprg [2015-04-17 04:33] (current)
Line 1: Line 1:
 +====== Running a Basic program from Assembler ======
 +
 +Sometimes it is neccessary to run a Basic program from assembler code. To do this, it's a good idea to do a full [[base:​kernalbasicinit|Kernal/​Basic initialization]] before.
 +
 +<​code>​
 +PRGEND = $1234    ; end of the Basic program
 +
 +    LDA #<PRGEND
 +    STA $2D
 +    STA $AE
 +    LDA #>PRGEND
 +    STA $2E
 +    STA $AF
 +
 +    JSR $A659
 +    JSR $A533    ; Rechain Lines
 +    JMP $A7AE    ; Basic Warm Start
 +</​code>​
  
base/runbasicprg.txt ยท Last modified: 2015-04-17 04:33 (external edit)