vcsJsr6(3V)vcsLib manualvcsJsr6(3V)
- Name
vcsJsr6
Serves a JSR, so the 6507 pushes the return address and carries on at target.
- Synopsis
#include "vcsLib.h" void vcsJsr6(uint16_t target);- Description
The cartridge serves the opcode and the low byte, waits while the 6507 writes two bytes to the stack (with A12 low) and then serves the high byte. After that it waits for the read at target.
If the stack points at TIA registers, the two bytes of the return address end up in two registers, so one instruction writes two registers.
- On the bus
It serves
20 lo · · · hiand takes 6 cycles of the 6507. This is how it looks on the bus right after a vcsJmp3:1 jsr2 low byte3 stack read4 pushes PCH5 pushes PCL6 high byte, on to $1200served by the cartridgewritten by the 6507dummy read
- Example
vcsLdx2(0xFF); vcsTxs2(); vcsJsr6(0x1200);- Compatibility
● complete ◐ works with differences ○ exists but does nothing – missing ? no data
Implementation By version Notes Stella ● 7.0● master Gopher2600 ● 2022-2023● 2025-04● v0.51.0● v0.53.0● master Test7800 ● 2025● v0.8.0 – v0.9.0 PlusCart and UnoCart ● 2.3.15 – 2.3.28● git 2025-11● 2.3.32 Chameleon Cart – 2025-10-23 Chameleon Cart, alternative firmware – 2026-11-28 Newbroo Wild Cart and Decker ? 2026 VCSIDE ACE adapter – 2026-11 - See also
vcsTxs2(3V)
vcsLib · December 2026Flow controlvcsJsr6(3V)