swh:1:snp:63e2d142f91fc04ec33789d9d7bb85f3bef72e05
Tip revision: 66d8e606a8d996ded60bc81d5edf319142a5fad9 authored by Ron Burkey on 04 October 2021, 11:49:55 UTC
Merge branch 'master' of https://github.com/virtualagc/virtualagc
Merge branch 'master' of https://github.com/virtualagc/virtualagc
Tip revision: 66d8e60
BUS.cpp
/****************************************************************************
* BUS - READ/WRITE BUS subsystem
*
* AUTHOR: John Pultorak
* DATE: 9/22/01
* FILE: BUS.cpp
*
* NOTES: see header file.
*
*****************************************************************************
*/
#include "BUS.h"
unsigned BUS::glbl_READ_BUS = 0;
unsigned BUS::glbl_WRITE_BUS = 0;
ovfState
BUS::testOverflow(unsigned bus)
{
if ((bus & 0100000) && !(bus & 0040000))
return NEG_OVF; // negative overflow
else if (!(bus & 0100000) && (bus & 0040000))
return POS_OVF; // positive overflow
else
return NO_OVF;
}