Reflection/Get source: Difference between revisions

Content added Content deleted
No edit summary
Line 12: Line 12:
Such a printing routine would work best if it substituted the null terminator for $60 (the <code>RTS</code> instruction.) This would only print the bytecode for the routine. Conversion to assembly language would need to be done separately.
Such a printing routine would work best if it substituted the null terminator for $60 (the <code>RTS</code> instruction.) This would only print the bytecode for the routine. Conversion to assembly language would need to be done separately.


<lang 6502asm>
<lang 6502asm>LDA #<foo
LDA #<foo
sta $00
sta $00
LDA #>foo
LDA #>foo
Line 37: Line 36:
jsr PrintHex ;print the last instruction of the routine.
jsr PrintHex ;print the last instruction of the routine.
rts</lang>
rts</lang>




=={{header|Clojure}}==
=={{header|Clojure}}==