Mercurial > lcfOS
view kernel/arch/qemu_vexpress/archmem.c3 @ 374:72a3b646d543
Added if statement sample
author | Windel Bouwman |
---|---|
date | Fri, 21 Mar 2014 15:27:18 +0100 |
parents | 577ed7fb3fe4 |
children | 6df89163e114 |
line wrap: on
line source
module archmem; import io; function void init() { // putc(65) io.print2("PFR0 = ", pfr0()); io.print2("PFR1 = ", pfr1()); io.print2("MMFR0 = ", mmfr0()); // This below is not compatible with all qemu versions: // io.print2("MPUIR = ", arch.mpuir()); } function int pfr0(); function int pfr1(); function int mmfr0(); // function int mpuir();