ARM32 hexadecimal string to numeric conversion

A forum for ARM assembly programmers (32 & 64 bit)
Post Reply
rhyde
Site Admin
Posts: 51
Joined: Sun Dec 04, 2022 5:36 pm

ARM32 hexadecimal string to numeric conversion

Post by rhyde »

I've been working on "The Art of ARM Assembly, Volume 2 (32 bit)" for a while now. I just finished the chapter on hexadecimal string to/from numeric conversions. Previously, I'd posted the solution for converting numeric values to hexadecimal strings. Here's the converse version that converts hexadecimal strings to numeric values. The code in the attachment was written for a Raspberry Pi, though the code itself will compile on a Cortex-M3 or greater. Cortex-M0+ requires a few modifications due to the limited instruction set and addressing modes. Fairly easy to convert this code if you need it (or just holler and I will upload that code as well).
Cheers,
Randy Hyde
Attachments
Listing8-7.zip
(15.97 KiB) Downloaded 286 times
Post Reply