mirror of
https://github.com/simh/simh.git
synced 2026-02-09 17:52:36 +00:00
Cleaned up parameter declarations in all simulators to achieve clean compiles on all platforms
Very minor in all cases, but the strange case of swtp_cpu.c This module used expressions of the form: PC = ++PC & ADDRMASK; Officially, the C language says that expressions which modify the same variable in more than one place have undefined behavior. These were changed to the legal form which performs the desired action: PC = (PC + 1) & ADDRMASK;
This commit is contained in:
@@ -88,7 +88,7 @@ uint32 rtfile_find (uint32 block, uint32 sector);
|
||||
|
||||
/* FLOAD file_name {file_origin} */
|
||||
|
||||
t_stat vax780_fload (int flag, char *cptr)
|
||||
t_stat vax780_fload (int32 flag, char *cptr)
|
||||
{
|
||||
char gbuf[CBUFSIZE];
|
||||
uint16 file_name[3], blkbuf[BLK_SIZE];
|
||||
|
||||
@@ -138,7 +138,7 @@ void sbi_set_tmo (int32 pa);
|
||||
void uba_eval_int (void);
|
||||
t_stat vax780_boot (int32 flag, char *ptr);
|
||||
|
||||
extern t_stat vax780_fload (int flag, char *cptr);
|
||||
extern t_stat vax780_fload (int32 flag, char *cptr);
|
||||
extern int32 intexc (int32 vec, int32 cc, int32 ipl, int ei);
|
||||
extern int32 iccs_rd (void);
|
||||
extern int32 nicr_rd (void);
|
||||
|
||||
Reference in New Issue
Block a user