Mercurial > sos > sos
view include/psw.h @ 99:2a0aa3efc228
The shell script will now theroretically load the program into memory, will not run it.
The shell script loads a program into memory and displays the address but as
of now does not jump to it (though it does display the address it would jump to)
Added a memset function
Added a python script (credit for its writing to Jeff) that sets up a filesystem
author | Jonathan Pevarnek <pevarnj@gmail.com> |
---|---|
date | Sat, 14 May 2011 19:40:18 -0400 |
parents | ca308c8ca41e |
children | d8f21e4a75e3 |
line wrap: on
line source
#ifndef __PSW_H #define __PSW_H struct psw { u8 _zero0:1, r:1, /* PER Mask (R) */ _zero1:3, t:1, /* DAT Mode (T) */ io:1, /* I/O Mask (IO) */ ex:1; /* External Mask (EX) */ u8 key:4, /* Key */ _zero2:1, m:1, /* Machine-Check Mask (M) */ w:1, /* Wait State (W) */ p:1; /* Problem State (P) */ u8 as:2, /* Address-Space Control (AS) */ cc:2, /* Condition Code (CC) */ prog_mask:4; /* Program Mask */ u8 _zero3:7, ea:1; /* Extended Addressing (EA) */ u32 ba:1, /* Basic Addressing (BA) */ _zero4:31; u64 ptr; }; #endif