Quantcast
Channel: nesdev.org
Viewing all articles
Browse latest Browse all 746

(CA65 assembler question) Trying to set jump labels for code executed in RAM

$
0
0
Suppose I have the useless hypothetical function:

Code:

;; Takes x register as an argument.proc foocpx barbne @donejmp @great_idea@done:rts@great_ideajmp @done.endproc
But also suppose that for some reason, probably brain damage, I copy this function from my code segment into RAM at startup and make calls into it from there.

What assembler magic would I need to properly set the label addresses to the RAM location yet still place everything in one of my ROM segments?

Statistics: Posted by spaceharrier — Wed Jan 15, 2025 5:45 pm — Replies 1 — Views 104



Viewing all articles
Browse latest Browse all 746

Trending Articles