General Discussion > Web Programming and Design
js - Relative Jump Calculator
Keoni29:
It does exactely what you think it'd do. Enter the start and end address and it calculates the offset for you. It takes the 2 byte offset in account required for most branch instructions (eg. z80 or 6502 branch instructions)
http://jsfiddle.net/4h5YD/22/
Streetwalrus:
Nice app Keoni, as always ! :D
Sorunome:
Haha, nice one!
Luckily assemblers do this for you, though :P
Still useful if you are xeda program in hex :)
Xeda112358:
Pssh, I just either memorize how many bytes there are between jumps or quickly add it up >_>
* Xeda112358 runs
EDIT: Oh, this was @Sorunome
@Keoni: Honestly, this can be handy at times.
Keoni29:
I wrote this for myself because the assembler on the power cartridge for my commodore64 does not support labels. It's a one-line assembler: assembles a line after you type it and hit return.
Navigation
[0] Message Index
[#] Next page
Go to full version