51 const auto within = [rom_size_bytes](uint32_t addr) {
52 return addr < rom_size_bytes;
56 const auto& t = offsets.
text;
57 if (!(within(t.dictionary) && within(t.dictionary_bound) &&
58 within(t.param_counts) && within(t.region1) &&
59 within(t.region1_bound) && within(t.region2) &&
60 within(t.region2_bound))) {
63 if (!(t.dictionary < t.dictionary_bound &&
64 t.region1 < t.region1_bound && t.region2 < t.region2_bound)) {
69 const auto& c = t.
codes;
70 if (!(c.zchar_base <= c.zchar_bound && c.command_base <= c.command_bound &&
71 c.dict_base <= c.dict_bound)) {
76 const auto& d = offsets.
dungeon;
77 if (!(within(d.torches) && within(d.torch_count))) {