DarkStar 2
Re: DarkStar 2
That sounds ok for me
One more hint: any call to an external BASIC program part could use FAST or SLOW rom calls (e. g. within MEFISDOS to allow access to MMC without being interrupted by NMI), so this rom calls hook off the C internal display routine. So you should call zx_fast() and zx_slow(), when the C program is running again to reenable the C display routine.
And I had a lot of trouble when calling external routines (in EPROM), which write things onto screen. Then often the print positons of C and BASIC/ROM did not match, resulting in a corrupt display file
So i call
"zx_cls()" and "putchar(12)"
after being back in C to clear the screen and reset the BASIC print system vars as well as the C console print position ...
Siggi
One more hint: any call to an external BASIC program part could use FAST or SLOW rom calls (e. g. within MEFISDOS to allow access to MMC without being interrupted by NMI), so this rom calls hook off the C internal display routine. So you should call zx_fast() and zx_slow(), when the C program is running again to reenable the C display routine.
And I had a lot of trouble when calling external routines (in EPROM), which write things onto screen. Then often the print positons of C and BASIC/ROM did not match, resulting in a corrupt display file
So i call
"zx_cls()" and "putchar(12)"
after being back in C to clear the screen and reset the BASIC print system vars as well as the C console print position ...
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: DarkStar 2
Hi Siggi, please try this one.
This is the BASIC loader; I compile it with zxtxt2p. hashed lines are omitted from the compilation, they are 'super REMs'. I didn't make the attached P file auto-run, as you'll want to edit the code LLIST maps to CONFIG on a ZXpand enabled machine, and LPRINT maps to DELETE.
Regards
Charlie
This is the BASIC loader; I compile it with zxtxt2p. hashed lines are omitted from the compilation, they are 'super REMs'. I didn't make the attached P file auto-run, as you'll want to edit the code LLIST maps to CONFIG on a ZXpand enabled machine, and LPRINT maps to DELETE.
Regards
Charlie
Code: Select all
REM SUPER DARK STAR
REM ENHANCED FOR ZXPAND
# RAM at 8K
LLIST "M=L"
LOAD "SDSTITLE.HRG;8192"
# inform c program that the title was loaded.
LET TITLE=1
# the HS data gets checksummed so no need to flag its presence
LOAD "SDSBEST.BIN;15872"
# C code returns 42 when new high scores need saving
IF USR 16514 <> 42 THEN GOTO @NOSAVE
LPRINT "SDSBEST.BIN"
SAVE "SDSBEST.BIN;8192,512"
PRINT "HIGH SCORES SAVED.";
@NOSAVE:
STOP
- Attachments
-
- sds-2.0.zip
- (5.71 KiB) Downloaded 304 times
Re: DarkStar 2
Hi Charlie
i just tested the V2.0 version and that is the result:
http://www.youtube.com/watch?v=9hUy9ePyo6Q
I started with goto line 70 (if usr 16514 ...) and did not yet add myload/save-routines. The display says, that no "ZXPAND -AY" is detected ...
So there is still no sound with Sascha's sound board
SIggi
i just tested the V2.0 version and that is the result:
http://www.youtube.com/watch?v=9hUy9ePyo6Q
I started with goto line 70 (if usr 16514 ...) and did not yet add myload/save-routines. The display says, that no "ZXPAND -AY" is detected ...
So there is still no sound with Sascha's sound board
SIggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: DarkStar 2
Just a thought... is there any special reason why one can not just assume a sound board is present ? would the 'out' instructions cause any side effects ? Only thing i can think is if other hardware using those ports is connected... How are you detecting sound card ? I also thought the original Zon-X was write only...
Andy
Andy
what's that Smell.... smells like fresh flux and solder fumes...
Re: DarkStar 2
Maybe those who use a ZX81 to control a nuclear power plant should take care when playing that game while the reactor is onAndy Rea wrote:Just a thought... is there any special reason why one can not just assume a sound board is present ? would the 'out' instructions cause any side effects ?
Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
http://zx81.ddns.net/ZxTeaM
Re: DarkStar 2
Of course! Is MrX's AY board readable? ZXpand-AY is. I write to its registers and read back, expecting the value I just wrote.
I think Andy's right though - just assume it's there
I'll update tomorrow.
C
I think Andy's right though - just assume it's there
I'll update tomorrow.
C
Re: DarkStar 2
Aaaarrrggghhh... I need a solution for Level 7
eyerything will be okay in the end.
if it´s not okay, it´s not the end.
and: uıɐbɐ ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ɹǝʌǝ ɹǝʌǝu ןןıʍ ı
if it´s not okay, it´s not the end.
and: uıɐbɐ ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ɹǝʌǝ ɹǝʌǝu ןןıʍ ı
Re: DarkStar 2
and now it´s L 10... hard game... thank you charlie - maybe this is why my hair is grey ?!
eyerything will be okay in the end.
if it´s not okay, it´s not the end.
and: uıɐbɐ ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ɹǝʌǝ ɹǝʌǝu ןןıʍ ı
if it´s not okay, it´s not the end.
and: uıɐbɐ ʎɐqǝ uo pɹɐoqʎǝʞ ɐ ʎnq ɹǝʌǝ ɹǝʌǝu ןןıʍ ı
Re: DarkStar 2
Andy Rea wrote:Just a thought... is there any special reason why one can not just assume a sound board is present ?
That's what we do on Spectrum actually.
If there's no AY, then the game remains silent. If there's an AY present, then we hear sounds.
In both cases CPU send commands to "supposed-to-be" AY. It doesn't slow down a game at all.
Btw - for ZXpand: which version should I use? 2.0 or 1.4?
IN NIHILUM REVERTERIS - a big text-adventure game for ZX81: http://tiny.pl/g2m6m
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
"MONOCHROME" issue 5 - (Spring 2014) free paper/PDF magazine about ZX81: http://tiny.pl/q2m44
ZX81 COMPETITIONS 2007/2009: http://zx81.republika.pl/
Re: DarkStar 2
All versions are for zxpand, Siggi has modified a version for mefidos users.
C
C