DarkStar 2

General games-related topics
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: DarkStar 2

Post by siggi »

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
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: DarkStar 2

Post by sirmorris »

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

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 284 times
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: DarkStar 2

Post by siggi »

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
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: DarkStar 2

Post by Andy Rea »

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
what's that Smell.... smells like fresh flux and solder fumes...
User avatar
siggi
Posts: 988
Joined: Thu May 08, 2008 9:30 am
Location: Wetterau, Germany
Contact:

Re: DarkStar 2

Post by siggi »

Andy 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 ?
Maybe those who use a ZX81 to control a nuclear power plant should take care when playing that game while the reactor is on :lol:

Siggi
My ZX81 web-server: online since 2007, running since dec. 2020 using ZeddyNet hardware
http://zx81.ddns.net/ZxTeaM
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: DarkStar 2

Post by sirmorris »

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
User avatar
zx81jens
Posts: 201
Joined: Sat May 10, 2008 8:26 am
Location: a Basement in Nienburg / Germany

Re: DarkStar 2

Post by zx81jens »

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 ןןıʍ ı
User avatar
zx81jens
Posts: 201
Joined: Sat May 10, 2008 8:26 am
Location: a Basement in Nienburg / Germany

Re: DarkStar 2

Post by zx81jens »

and now it´s L 10... hard game... thank you charlie :mrgreen: - 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 ןןıʍ ı
User avatar
yerzmyey
Posts: 1240
Joined: Thu May 15, 2008 10:11 am
Location: Rubber Planet
Contact:

Re: DarkStar 2

Post by yerzmyey »

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/
sirmorris
Posts: 2811
Joined: Thu May 08, 2008 5:45 pm

Re: DarkStar 2

Post by sirmorris »

All versions are for zxpand, Siggi has modified a version for mefidos users.

C
Post Reply