I really did not want disabled procs just a list of those that were specifically Win32.
As it is anything I wanted to test on Windows is now just a dummy.
Actually, that's not the case.
get_sys_data: is just fine,
get_sys_time: is just fine,
ClearScreen: is an empty function,
locate: is an empty function,
Do_initialize: has only one line commented-out,
setcolortext: has only one line commented-out,
get_HiRez_Timer: only has two lines commented-out,
wherexy: the entire function is commented out.
Here is the code for ClearScreen:
/* BXBLIB.C */
/*
/* *************BxbAsm Compiler*************
/* Copyright: sarbayo (c) 2004-2012
/* ========================================================================= */
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
#include "bxblib.h"
void _stdcall ClearScreen()
{
COORD coordScreen = { 0, 0 }; // home for the cursor
DWORD cCharsWritten;
CONSOLE_SCREEN_BUFFER_INFO csbi;
DWORD dwConSize;
HANDLE hConsole;
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
// Get the number of character cells in the current buffer.
if(!GetConsoleScreenBufferInfo(hConsole, &csbi))
{
printf("abort at: 1\n");
return;
}
dwConSize = csbi.dwSize.X * csbi.dwSize.Y;
// Fill the entire screen with blanks.
if(!FillConsoleOutputCharacter(hConsole, (TCHAR) ' ', dwConSize, coordScreen, &cCharsWritten))
{
printf("abort at: 2\n");
return;
}
// Get the current text attribute.
if(!GetConsoleScreenBufferInfo(hConsole, &csbi))
{
printf("abort at: 3\n");
return;
}
// Set the buffer's attributes accordingly.
if(!FillConsoleOutputAttribute(hConsole, csbi.wAttributes, dwConSize, coordScreen, &cCharsWritten))
{
printf("abort at: 4\n");
return;
}
// Put the cursor at its home coordinates.
SetConsoleCursorPosition(hConsole, coordScreen);
}
/*------ end ClearScreen ------*/
this code is provided in file: bxblib-c-sources.zip
Here is the code for locate:
/* BXBLIB.C */
/*
/* *************BxbAsm Compiler*************
/* Copyright: sarbayo (c) 2004-2012
/* ========================================================================= */
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <math.h>
#include "bxblib.h"
void _stdcall locate(int cx, int cy)
{
COORD coordScreen;
HANDLE hConsole;
coordScreen.X = cx;
coordScreen.Y = cy;
/* Get this console handle */
hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
/* Put the cursor at its coordinates */
SetConsoleCursorPosition(hConsole, coordScreen);
}
/* ------ end locate ------ */
this code is provided in file: bxblib-c-sources.zip
I'm also confused with the bxblib-c-source.zip and the disabled-procs.zip. They appear to be the same procs one in c and the other in asm?
Some files were never converted to ".asm", that's why the C source code was provided.
It was not meant to confuse, just to be thorough.