Closed Rangi42 closed 1 year ago
The idea isn't bad, but the name is about as misleading as it gets...
Seconding the very misleading name, but aside from that, I can't think of an application for it beyond the dex entry pointers. In every other case the pointer targets all reside within the same bank.
I guess it's more of a hack helper than anything, because there are many pointer tables that do point to the same bank, but don't actually need to, because they're being referenced by far reads anyway.
I'm not sure how that'd help, you need to modify the code to put them anywhere else. fardw doesn't store the bank number.
Yeah, never mind this.
Polished Crystal recently added (https://github.com/Rangi42/polishedcrystal/commit/fff83087d40569db49f5c957f09cc8173f86b1ef) a
fardw
macro that acts likedw
, but asserts that its argument points to a bank previously set byfarbank
.Typically when a pointer table has all its data in the same bank, it's efficient to use
dw
instead ofdba
. This would ensure that thedw
s actually point where they're supposed to.For example: