Re:How we built JSR
by mike256 on Friday April 12, 2024 @11:17AM
(#40013908)
Why JSR (Java Specification Request)?
[ Parent
| on HN ]
Re:How we built JSR
by segfaultbuserr on Friday April 12, 2024 @12:01PM
(#40014402)
Jump to Sub-Routine?
6800: http://www.8bit-era.cz/6800.html
6502: http://www.6502.org/tutorials/6502opcodes.html#JSR
PDP-11: https://programmer209.wordpress.com/2011/08/03/the-pdp-11-as...
Motorola 68000: https://mrjester.hapisan.com/04_MC68/Sect05Part05/Index.html
Jet
Set
Radiooooooo
Jump to New Location Saving Return Address: JSR [1]
Jumps to a subroutine
The address before the next instruction (PC - 1) is pushed onto the stack: first the upper byte followed by the lower byte. As the stack grows backwards, the return address is therefore stored as a little-endian number in memory. PC is set to the target address.
Flags: none
Addressing Mode: absolute
Opcode: 20
[1] https://en.wikibooks.org/wiki/6502_Assembly