Oh, wow. At first glance, that's complicated, but I think I know how to do it now. But f*** doing this for 300 codes. Gotta use some spreadsheet magic for this one.
Btw, the reason why I had the codes in simple "address + value" format is, because I myself only use them with XCXGecko instead of...