• Startrek with option to save/load game

    From ladislau szilagyi@21:1/5 to All on Thu Jun 29 12:19:31 2023
    Hi,

    Thanks to Alan Cox ( https://github.com/EtchedPixels/FUZIX/tree/master/Applications/games ), I had a very solid starting point...

    I made some adjustments for HiTech C, and added save/load game.

    You may find my Startrek here: https://github.com/Laci1953/RC2014-CPM/tree/main/startrek

    Do not forget to copy the st.fat, st.int, st.log, st.txt files on the disk containing the startrek.com

    I ported the game also on Bill Shen's Z80ALL.

    As an interesting detail, on Z80ALL the random number generator computes its "seed" value by summing all the screen's characters!

    Ladislau

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ladislau szilagyi@21:1/5 to All on Thu Jul 13 22:18:49 2023
    Hi,

    I just received the following message:

    "Ensign Chekov : I have detected and fixed a malfunction in the phaser control computer"

    You may find the fixed StarTrek at https://github.com/Laci1953/RC2014-CPM/tree/main/startrek

    Ladislau

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Peter Dassow@21:1/5 to All on Fri Jul 21 12:32:21 2023
    On 14.07.2023 at 07:18 ladislau szilagyi wrote:
    Hi,

    I just received the following message:

    "Ensign Chekov : I have detected and fixed a malfunction in the phaser control computer"

    You may find the fixed StarTrek at https://github.com/Laci1953/RC2014-CPM/tree/main/startrek

    Ladislau

    Thanks for the update. Btw. - may be you can explain why you implemented
    the save functionality as assembler, despite of the fact, that the game
    itself is written in C ...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ladislau szilagyi@21:1/5 to All on Fri Jul 21 04:39:44 2023
    Hi Peter,

    I already had the save/load routine written in assembler... it is used also for backgammon, sargon78, sudoku.

    Ladislau

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ladislau szilagyi@21:1/5 to All on Sat Aug 5 00:19:12 2023
    I just published a new version (better random number generator) for VT100.

    File rand.as was updated.

    Ladislau

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From ladislau szilagyi@21:1/5 to All on Wed Aug 9 12:11:26 2023
    Hi,

    I published also a new version for Z80ALL.

    Just to show how fast Z80ALL works, here is a listing of the Startrek building procedure:

    (clock is a small program used to measure time intervals, using the real time clock)

    submit stmake
    clock reset
    c -c -o st1.c
    HI-TECH C COMPILER (CP/M-80) V3.09
    Copyright (C) 1984-87 HI-TECH SOFTWARE
    ST1.C:406: constant relational expression
    Z80AS Macro-Assembler V4.8
    Errors: 0
    Jump optimizations done: 76
    Finished.
    clock
    00:01:14 since the last clock call...
    c -c -o st2.c
    HI-TECH C COMPILER (CP/M-80) V3.09
    Copyright (C) 1984-87 HI-TECH SOFTWARE
    Z80AS Macro-Assembler V4.8
    Errors: 0
    Jump optimizations done: 68
    Finished.
    clock
    00:01:24 since the last clock call...
    z80as -j rand
    Z80AS Macro-Assembler V4.8
    Errors: 0
    Finished.
    clock
    00:00:01 since the last clock call...
    z80as -j graphics
    Z80AS Macro-Assembler V4.8
    Errors: 0
    Finished.
    clock
    00:00:01 since the last clock call...
    z80as -j file
    Z80AS Macro-Assembler V4.8
    Errors: 0
    Finished.
    clock
    00:00:02 since the last clock call...
    submit stlink
    clock reset
    xsub
    LINK
    link> -X -Z -Ptext=0,data,bss -C100H -OSTARTREK.COM CRTCPM.OBJ \
    link> ST1.OBJ ST2.OBJ GRAPHICS.OBJ FILE.OBJ RAND.OBJ LIBC.LIB
    (xsub active)
    clock
    00:00:16 since the last clock call...
    (xsub active)


    It took under 3 minutes...

    The same procedure, executed on a RC2014 (CPU board SC108), takes more than 10 minutes...

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)