Omnimaga
General Discussion => Technology and Development => Web Programming and Design => Topic started by: Keoni29 on July 11, 2014, 05:06:37 am
-
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/ (http://jsfiddle.net/4h5YD/22/)
-
Nice app Keoni, as always ! :D
-
Haha, nice one!
Luckily assemblers do this for you, though :P
Still useful if you are xeda program in hex :)
-
Pssh, I just either memorize how many bytes there are between jumps or quickly add it up >_>
/me runs
EDIT: Oh, this was @Sorunome
@Keoni: Honestly, this can be handy at times.
-
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.
-
Oops there was a typo in that jsfiddle. Updated version: http://jsfiddle.net/4h5YD/20/
-
Suggestion: allow the $ prefix
-
Good idea. I was thinking about that actually. I am going to implement it in the regex which will also get rid of inputs like: Derp and asdf, cause javascript just parses the hexadecimal number until it sees a character that is not valid and spits out the result.
-
Just fixed a tiny bug. I want to host this on my server if enough people find this useful.
http://jsfiddle.net/4h5YD/22/
-
It are just a few KB, so why not host it on your server anyways so that you have all your stuff centralized?
-
There you go:
http://8times8.eeems.me:81/app/jump/
The /app directory will contain all of my applications soon.
http://8times8.eeems.me:81/app will have a list of links to all applications.
-
Also, it's awesome to see how far you got with js in such a short time :)
-
Thank you :)