DMD hackers: pragma(address): Is this possible?

Vladimir Panteleev via Digitalmars-d digitalmars-d at puremagic.com
Thu Nov 27 11:06:50 PST 2014


On Tuesday, 25 November 2014 at 13:04:51 UTC, Johannes Pfau wrote:
> In C people often define a macro to describe a MMIO location:
> #define PORTB *((ubyte*)0x05)

FWIW, Turbo Pascal had a language feature for this:

var Screen: array[0..8000-1] of Word absolute $B800:0000;


More information about the Digitalmars-d mailing list