JSR

Are you new to 6502, NES, or even programming in general? Post any of your questions here. Remember - the only dumb question is the question that remains unasked.

Moderator: Moderators

User avatar
tokumaru
Posts: 12427
Joined: Sat Feb 12, 2005 9:43 pm
Location: Rio de Janeiro - Brazil

Re: JSR

Post by tokumaru »

I can't even tell which assembler supports the syntax you're using there...
Oziphantom
Posts: 1565
Joined: Tue Feb 07, 2017 2:03 am

Re: JSR

Post by Oziphantom »

that format is tass64. https://sourceforge.net/projects/tass64/ and its manual is here http://tass64.sourceforge.net/
however other assemblers like KickAss, ACME, and I would think CA65 should also be able to handle something similar to it.
User avatar
FrankenGraphics
Formerly WheelInventor
Posts: 2064
Joined: Thu Apr 14, 2016 2:55 am
Location: Gothenburg, Sweden
Contact:

Re: JSR

Post by FrankenGraphics »

Another example of a workaround for the absent "jsr addr, x" can be found here.

Ctrl+F for "ChooseRoutine:" and "LC141:" for the table itself.
User avatar
TOUKO
Posts: 306
Joined: Mon Mar 30, 2015 10:14 am
Location: FRANCE

Re: JSR

Post by TOUKO »

Pokun wrote:One of the new instructions in Hudson's 65C02 derivative the Hu6280, is the BSR - Branch to Subroutine instruction. Doesn't seem too useful since the subroutine must be close to the branch, but I guess it can be used in relocatable code since branches are relative.
You're right, BSR is useless because it save a byte, but have nothing else than to lose a cycle .
Post Reply