uxndebug

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 925c4b5a9572c62ea56684c05ef7467ab90e58a5
parent 3e8af53260b7c18276d1fc3dc71d5efa5e95f876
Author: aabacchus <ben@bvnf.space>
Date:   Mon,  6 Jun 2022 00:39:55 +0100

uxnsolve: subtract 0100 from the byte address

Diffstat:
Muxnsolve | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/uxnsolve b/uxnsolve @@ -28,10 +28,9 @@ compare_file_timestamps() { compare_file_timestamps "$source_file" address="$(printf "%s" "$2" | tr 'a-f' 'A-F')" -dec_address="$(printf "16iAo%sp\n" "$address" | dc || kill 0)" +dec_address="$(printf "16iAo%s 100-p\n" "$address" | dc || kill 0)" # add 1 because the zeroth byte is on the first line dec_address="$((dec_address + 1))" -# TODO: should we subtract the #0100 offset or request the user to do that? is_integer() { printf %d "$1" >/dev/null 2>&1