mirror of
https://github.com/simh/simh.git
synced 2026-04-30 21:38:32 +00:00
BESM6: Implemented SET CPU REQ, added an example of a batch task run.
This commit is contained in:
@@ -80,6 +80,7 @@ jmp_buf cpu_halt;
|
||||
t_stat cpu_examine (t_value *vptr, t_addr addr, UNIT *uptr, int32 sw);
|
||||
t_stat cpu_deposit (t_value val, t_addr addr, UNIT *uptr, int32 sw);
|
||||
t_stat cpu_reset (DEVICE *dptr);
|
||||
t_stat cpu_req (UNIT *u, int32 val, char *cptr, void *desc);
|
||||
|
||||
/*
|
||||
* CPU data structures
|
||||
@@ -131,7 +132,8 @@ REG cpu_reg[] = {
|
||||
|
||||
MTAB cpu_mod[] = {
|
||||
{ MTAB_XTD|MTAB_VDV, 0, "IDLE", "IDLE", &sim_set_idle, &sim_show_idle, NULL, "Display idle detection mode" },
|
||||
{ MTAB_XTD|MTAB_VDV, 0, NULL, "NOIDLE", &sim_clr_idle, NULL, NULL, "Disables idle detection" },
|
||||
{ MTAB_XTD|MTAB_VDV, 0, NULL, "NOIDLE", &sim_clr_idle, NULL, NULL, "Disables idle detection" },
|
||||
{ MTAB_XTD|MTAB_VDV, 0, NULL, "REQ", &cpu_req, NULL, NULL, "Sends a request interrupt" },
|
||||
{ 0 }
|
||||
};
|
||||
|
||||
@@ -342,6 +344,15 @@ t_stat cpu_reset (DEVICE *dptr)
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Request routine
|
||||
*/
|
||||
t_stat cpu_req (UNIT *u, int32 val, char *cptr, void *desc)
|
||||
{
|
||||
GRP |= GRP_PANEL_REQ;
|
||||
return SCPE_OK;
|
||||
}
|
||||
|
||||
/*
|
||||
* Write Unicode symbol to file.
|
||||
* Convert to UTF-8 encoding:
|
||||
|
||||
Reference in New Issue
Block a user