Skip to content

Commit

Permalink
covox on right port LPT2 0x278
Browse files Browse the repository at this point in the history
  • Loading branch information
xrip committed Dec 13, 2023
1 parent ade200d commit 57cca77
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
4 changes: 2 additions & 2 deletions assets/rom.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ INFLASH_ALIGNED BIOS[8192] = {
0xee, 0xb8, 0x1e, 0x00, 0xa3, 0x1a, 0x00, 0xa3, 0x1c, 0x00, 0xa3, 0x80,
0x00, 0x04, 0x20, 0xa3, 0x82, 0x00, 0xb8, 0x14, 0x14, 0xa3, 0x78, 0x00,
0xa3, 0x7a, 0x00, 0xb8, 0x01, 0x01, 0xa3, 0x7c, 0x00, 0xa3, 0x7e, 0x00,
0xc7, 0x06, 0x08, 0x00, 0x78, 0x03, 0xc7, 0x06, 0x0a, 0x00, 0xbc, 0x03,
0xc7, 0x06, 0x08, 0x00, 0x78, 0x03, 0xc7, 0x06, 0x0a, 0x00, 0x78, 0x02,
0xc6, 0x06, 0x11, 0x00, 0x80, 0x33, 0xff, 0xba, 0xfb, 0x03, 0xb0, 0x1a,
0xee, 0xb0, 0xff, 0xe6, 0xc0, 0xec, 0x3c, 0x1a, 0x75, 0x06, 0xc7, 0x05,
0xf8, 0x03, 0x47, 0x47, 0xba, 0xfb, 0x02, 0xb0, 0x1a, 0xee, 0xb0, 0xff,
Expand Down Expand Up @@ -699,7 +699,7 @@ INFLASH_ALIGNED BIOS[8192] = {
0xb4, 0x00, 0xb0, 0x0d, 0xcd, 0x17, 0x5a, 0xc3, 0x56, 0x32, 0x30, 0x20,
0x43, 0x50, 0x55, 0x20, 0x28, 0x00, 0x38, 0x30, 0x38, 0x37, 0x20, 0x46,
0x50, 0x55, 0x29, 0x00, 0xea, 0x5b, 0xe0, 0x00, 0xf0, 0x31, 0x32, 0x2f,
0x31, 0x32, 0x2f, 0x32, 0x33, 0x00, 0xff, 0x14
0x31, 0x32, 0x2f, 0x32, 0x33, 0x00, 0xff, 0x59
};

INFLASH_ALIGNED BASICL[16384] = {
Expand Down
2 changes: 1 addition & 1 deletion bios/pcxtbios.asm
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ endif
; ror al, cl ; divide by eight

mov [08h], 0x378 ; dss
mov [0Ah], 0x3BC ; covox
mov [0Ah], 0x278 ; covox
mov [ds:11h], 10000000b ; save in equipment flag with one printer

xor di, di ; COM port(s) at 40:00 (hex)
Expand Down
2 changes: 1 addition & 1 deletion drivers/vga-nextgen/vga.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ void __not_in_flash_func(sound_callback)(repeating_timer_t *rt) {
out += getBlasterSample();
#endif
#if DSS
if (sound_cycles_per_vga >= 50) { // about 7-8kHz, TODO: divide by 4.5
if (sound_cycles_per_vga >= 70) { // about 7-8kHz, TODO: divide by 4.5
last_dss_sample = dss_sample();
sound_cycles_per_vga = 0;
}
Expand Down
7 changes: 4 additions & 3 deletions src/ports.c
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,14 @@ void portout(uint16_t portnum, uint16_t value) {
break;
#endif
#if DSS
case 0x278: // covox data port
true_covox = value;
break;
case 0x378: // ssData
case 0x37A: // ssControl
dss_out(portnum, value);
break;
case 0x3BC: // covox data port
true_covox = value;
break;

#endif
#if SOUND_BLASTER || ADLIB
case 0x388: // adlib
Expand Down

0 comments on commit 57cca77

Please sign in to comment.