forked from spark2k06/PCXT_MiSTer
-
-
Notifications
You must be signed in to change notification settings - Fork 7
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 #68 from MiSTer-devel/main
MiSTer-devel updates
- Loading branch information
Showing
15 changed files
with
426 additions
and
65,706 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
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
USAGE: | ||
|
||
xtctl.exe [menu] [composite border adliboff mda 4Mhz/7Mhz/14Mhz] | ||
|
||
Composite video simulated and visible bordes would be: | ||
|
||
xtctl composite border | ||
|
||
Adlib hidden and 14Mhz would be: | ||
|
||
xtctl adliboff 14 | ||
|
||
This would restore normal operation: | ||
|
||
sysctl menu | ||
|
||
It is not cumulative, any new execution of the tool resets the status beforehand, all options that are not selected will take into account the menu configuration. | ||
|
||
A warm restart (CTRL+ALT+SUPR) does not restore the initial state, but a cold restart does (restart from the menu). |
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 |
---|---|---|
@@ -0,0 +1,80 @@ | ||
#include <stdio.h> | ||
#include <conio.h> | ||
#include <string.h> | ||
|
||
#define COMP 0x01 | ||
#define BORDER 0x02 | ||
#define ADLIBOFF 0x10 | ||
#define MDA 0x20 | ||
|
||
static int _argc; | ||
static char **_argv; | ||
|
||
int chk_arg_opt(char * option) | ||
{ | ||
int index; | ||
for(index = 1; index < _argc; index++) | ||
if(strcmpi(_argv[index], option) == 0) | ||
return index; | ||
return 0; | ||
} | ||
|
||
int main(int argc, char **argv) | ||
{ | ||
unsigned char arg = 0; | ||
char * argv0; | ||
char * bs; | ||
|
||
if(argc < 2) | ||
{ | ||
printf("XTCTL 1.0\n"); | ||
printf("USAGE:\n"); | ||
bs = strrchr(argv[0], '\\'); | ||
if(bs == NULL) | ||
argv0 = argv[0]; | ||
else | ||
argv0 = ++bs; | ||
printf("%s [menu] [composite border adliboff mda 4Mhz/7Mhz/14Mhz]\n", argv0); | ||
return -1; | ||
} | ||
|
||
_argc = argc; | ||
_argv = argv; | ||
|
||
if (chk_arg_opt("menu")) | ||
arg = 0; | ||
else | ||
{ | ||
if (chk_arg_opt("composite")) | ||
arg |= COMP; | ||
|
||
if (chk_arg_opt("border")) | ||
arg |= BORDER; | ||
|
||
if (chk_arg_opt("adliboff")) | ||
arg |= ADLIBOFF; | ||
|
||
if (chk_arg_opt("mda")) | ||
arg |= MDA; | ||
|
||
if (chk_arg_opt("4Mhz") || chk_arg_opt("4")) | ||
{ | ||
arg |= 1 << 2; | ||
arg &= ~(1 << 3); | ||
} | ||
else if (chk_arg_opt("7Mhz") || chk_arg_opt("7")) | ||
{ | ||
arg &= ~(1 << 2); | ||
arg |= 1 << 3; | ||
} | ||
else if (chk_arg_opt("14Mhz") || chk_arg_opt("14")) | ||
{ | ||
arg |= 1 << 2; | ||
arg |= 1 << 3; | ||
} | ||
} | ||
|
||
outp(0x8888, arg); | ||
|
||
return 0; | ||
} |
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
all: xtctl.exe | ||
|
||
sysctl.exe: xtctl.c | ||
wcl -q -y -4 -s -d0 -lr -ms -we -wx -k1024 -os xtctl.c -fe=xtctl.exe | ||
|
||
clean: | ||
if exist *.obj del *.obj | ||
if exist *.map del *.map | ||
if exist *.bak del *.bak |
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
Binary file not shown.
Binary file not shown.
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,5 +1,4 @@ | ||
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) mcl86_eu_core.v ] | ||
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) i8088.v ] | ||
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) eu_rom.v ] | ||
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) biu_min.v ] | ||
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) biu_max.v ] | ||
set_global_assignment -name VERILOG_FILE [file join $::quartus(qip_path) biu_max.v ] |
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
Oops, something went wrong.