Skip to main content

Timeline for What is 'unsigned char near'?

Current License: CC BY-SA 3.0

8 events
when toggle format what by license comment
Apr 19, 2018 at 17:50 vote accept oppo
Apr 17, 2018 at 13:13 comment added Chromatix More or less. The difference is mainly due to the fact that 8-bit CPUs typically don't have a register bank per se, only a single accumulator and a couple of index registers. But it's also analogous to the use of "near" vs. "far" pointers on x86, in that there is a difference in the size of the address and how long it takes to complete an access.
Apr 17, 2018 at 4:24 comment added vsz So, its usage is very similar to the register keyword (for cases where you are really sure that this is where you need optimization), but slightly less extreme?
Apr 17, 2018 at 1:30 comment added Clonkex Nice, much better!
Apr 17, 2018 at 1:27 comment added Chromatix I edited the answer to provide more detail and references. In fact it's from Freescale's newer HCS08 architecture, but this is code-compatible with the older HC08 and HC05 architectures. The (now positively ancient) 6800 and 6502 architectures are also closely related.
Apr 17, 2018 at 1:25 history edited Chromatix CC BY-SA 3.0
added 589 characters in body
Apr 17, 2018 at 0:37 comment added Clonkex I like this answer, but do you have a source for your information?
Apr 16, 2018 at 15:25 history answered Chromatix CC BY-SA 3.0