2014-05-30 08:55:32 +00:00
|
|
|
#include "KeGraph32.h"
|
2014-09-04 04:44:02 +00:00
|
|
|
#include "KeDef.h"
|
2014-05-30 08:55:32 +00:00
|
|
|
#include "KeGlobalVariables.h"
|
2014-09-04 04:44:02 +00:00
|
|
|
#include "KeKernelStruct32.h"
|
2014-06-30 18:53:13 +00:00
|
|
|
ULONG32 KeGetCurrentGraphRow( _IN_ ULONG32 GraphPosition)
|
2014-05-30 08:55:32 +00:00
|
|
|
{
|
|
|
|
return (GraphPosition/2*DOSGraphColumn);
|
|
|
|
}
|
|
|
|
|
2014-06-30 18:53:13 +00:00
|
|
|
ULONG32 KeCheckGraphRowForPrint(_IN_ ULONG32 GraphPosition)
|
2014-05-30 08:55:32 +00:00
|
|
|
{
|
|
|
|
if(GraphPosition>=DOSGraphMaxBytes)
|
|
|
|
{
|
|
|
|
GraphPosition = _asm_KeGraphRowOverflow(GraphPosition);
|
|
|
|
}
|
|
|
|
return GraphPosition;
|
|
|
|
}
|
|
|
|
|
2014-07-09 07:10:57 +00:00
|
|
|
|
2014-06-30 18:53:13 +00:00
|
|
|
ULONG32 KeCheckGraphRowForReturn(_IN_ ULONG32 GraphPosition)
|
2014-05-30 08:55:32 +00:00
|
|
|
{
|
|
|
|
ULONG32 GraphRow = GraphPosition/(2*DOSGraphColumn);
|
|
|
|
if(GraphRow >= (DOSGraphRow-1))
|
|
|
|
{
|
|
|
|
GraphPosition = _asm_KeGraphRowOverflow(GraphPosition);
|
|
|
|
GraphPosition = _asm_KeSetGraphPosition32(23,0);
|
|
|
|
}
|
|
|
|
return GraphPosition;
|
|
|
|
}
|