-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from medvecky/develop
Develop
- Loading branch information
Showing
8 changed files
with
109 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# [v2.0.0] 2024-07-04 | ||
|
||
## Added | ||
|
||
- CP/M support | ||
|
||
|
||
# [v1.0.1] 2024-06-28 | ||
|
||
## Changed | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,33 @@ | ||
#include <conio.h> | ||
|
||
#include "system_helper.h" | ||
|
||
void setUpScreen( void ) | ||
{ | ||
#ifdef __CPM__ | ||
cls(); | ||
cursorOff(); | ||
#else | ||
clrscr(); | ||
} | ||
#endif | ||
} | ||
|
||
#ifdef __CPM__ | ||
|
||
void cls() | ||
{ | ||
gotoyx( 0, 0 ); | ||
printf( "\x1BJ" ); | ||
} | ||
|
||
void gotoyx( int row, int col ) | ||
{ | ||
printf ( "\x1BY%c%c", ' ' + row, ' ' + col ); | ||
} | ||
|
||
void cursorOff() | ||
{ | ||
printf( "\x1Bf" ); | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
void setUpScreen( void ); | ||
void resetDefaultScreen( void ); | ||
void resetDefaultScreen( void ); | ||
#ifdef __CPM__ | ||
void cls(); | ||
void gotoyx( int row, int col ); | ||
void cursorOff(); | ||
#endif | ||
|
||
#ifdef __CPM__ | ||
#define SCREEN_WIDTH 79 | ||
#else | ||
#define SCREEN_WIDTH 41 | ||
#endif | ||
|
||
#define SCREEN_HEIGHT 23 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,5 @@ int main( void ) | |
quitFlag = argumentString[ 0 ]; | ||
} | ||
|
||
// resetDefaultScreen(); | ||
|
||
return EXIT_SUCCESS; | ||
} |