raz / conform / err / BytesVolatile.raz

10 lines · 216 B · raw · history · last change 264716cb

1module BytesVolatile;
2import SYSTEM;
3type Regs = record ctrl: U32; status: U32; end;
4proc main*;
5var r: ^VOLATILE Regs; b: []U8;
6begin
7 r := ^VOLATILE Regs(0FEE00000H);
8 b := BYTES(r^);
9end;
10end BytesVolatile.