Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

Totally illogical, there was no chance. -- Spock, "The Galileo Seven", stardate 2822.3


devel / comp.os.cpm / Re: Ladder-like game

SubjectAuthor
* Ladder-like gameNils M Holm
`* Re: Ladder-like gameBozo User
 `* Re: Ladder-like gameNils M Holm
  `* Re: Ladder-like gameNils M Holm
   `* Re: Ladder-like gameNils M Holm
    `* Re: Ladder-like gameBozo User
     `* Re: Ladder-like gameNils M Holm
      `* Re: Ladder-like gameBozo User
       `- Re: Ladder-like gameNils M Holm

1
Ladder-like game

<l2f5e0FrdrpU2@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4720&group=comp.os.cpm#4720

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.niel.me!news.gegeweb.eu!gegeweb.org!news.mb-net.net!open-news-network.org!news.mind.de!bolzen.all.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nmh...@sraddha.invalid (Nils M Holm)
Newsgroups: comp.os.cpm
Subject: Ladder-like game
Date: 6 Feb 2024 16:35:12 GMT
Organization: TARFU
Lines: 18
Sender: Nils M Holm <nmh@sraddha.local>
Message-ID: <l2f5e0FrdrpU2@mid.individual.net>
X-Trace: individual.net O/8cvLwUoI8QU0Rn1ft6AwZAkAGiSsSDIKLWHuvlhpFSMPrq1A
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:mEEZdF/pxPhALGU44R2XOKQs8QA= sha256:vVj2mliJ3+ofbX4HKrwmjHIvdXHOIEdrFkla8H2Qik4=
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/12.4-RELEASE (amd64))
 by: Nils M Holm - Tue, 6 Feb 2024 16:35 UTC

I recently wrote my own version of the Ladder game, mostly because
the original game is too hard for me. :)

Download: http://t3x.org/t3x/0/ladders.zip

The zip file contains executables for CP/M and DOS as well as the
source code in T3X.

As a side-effect the T3X/0 compiler (http://t3x.org/t3x/0/) now has
a console module that does things like clearing the screen, cursor
addressing, etc. In the default configuration the game needs a
VT-100 terminal, but support for the VT-52 is also in the code and
just needs to be enabled.

Enjoy!

--
Nils M Holm < n m h @ t 3 x . o r g > http://t3x.org

Re: Ladder-like game

<slrnv0og7v.qqd.anthk@localhost.localdomain>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4770&group=comp.os.cpm#4770

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@disroot.org (Bozo User)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: Tue, 2 Apr 2024 17:31:54 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 60
Message-ID: <slrnv0og7v.qqd.anthk@localhost.localdomain>
References: <l2f5e0FrdrpU2@mid.individual.net>
Injection-Date: Tue, 02 Apr 2024 17:31:54 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="ebf7de10722de0b7b7492268b8a7181c";
logging-data="3517665"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/UADPiTV6KAwai3T5Gq3Um"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:uLluVarYKqEFtGEePzFcNV+6JQg=
 by: Bozo User - Tue, 2 Apr 2024 17:31 UTC

On 2024-02-06, Nils M Holm <nmh@sraddha.invalid> wrote:
> I recently wrote my own version of the Ladder game, mostly because
> the original game is too hard for me. :)
>
> Download: http://t3x.org/t3x/0/ladders.zip
>
> The zip file contains executables for CP/M and DOS as well as the
> source code in T3X.
>
> As a side-effect the T3X/0 compiler (http://t3x.org/t3x/0/) now has
> a console module that does things like clearing the screen, cursor
> addressing, etc. In the default configuration the game needs a
> VT-100 terminal, but support for the VT-52 is also in the code and
> just needs to be enabled.
>
> Enjoy!
>

Interesting. But compiling and setting up t3x/0
is not straightforward, at least under GNU/Linux i686.
Here's the variables I changed in the makefile
and the sh script at bin/ :

T3XDIR= $HOME/t3x/lib
BINDIR= $HOME/t3x/bin

Then I ran

make reset ; make all-native ; make install-native

everything looked ok.
But, on compiling ladders:

..LANG=C make
tx0 -t unix-386 -c ladders
Text = 0x0001B415, Data = 0x00000C00, Symbols = 144, Nlist = 961, Labels = 1515
ladders.s: Assembler messages:
ladders.s:6: Error: invalid character (0x80) in mnemonic
ladders.s:7: Error: invalid character (0x80) in mnemonic
ladders.s:8: Error: invalid character (0x80) in mnemonic
ladders.s:9: Error: invalid character (0x80) in mnemonic
ladders.s:10: Error: invalid character (0x80) in mnemonic
ladders.s:11: Error: invalid character (0x80) in mnemonic
ladders.s:12: Error: invalid character (0x80) in mnemonic
ladders.s:13: Error: invalid character (0x80) in mnemonic
ladders.s:14: Error: invalid character (0x80) in mnemonic
ladders.s:15: Error: invalid character (0x80) in mnemonic
ladders.s:16: Error: invalid character (0x80) in mnemonic
ladders.s:18: Error: invalid character (0x80) in mnemonic
ladders.s:19: Error: invalid character (0x80) in mnemonic
ladders.s:20: Error: invalid character (0x80) in mnemonic
ladders.s:21: Error: invalid character (0x80) in mnemonic
ladders.s:22: Error: invalid character (0x80) in mnemonic
ladders.s:23: Error: invalid character (0x80) in mnemonic
ladders.s:37: Error: invalid character (0x80) in mnemonic
ladders.s:38: Error: invalid character (0x80) in mnemonic
ladders.s:39: Error: invalid character (0x80) in mnemonic

Which could be the issue?

Re: Ladder-like game

<l74kpbF2mn5U1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4772&group=comp.os.cpm#4772

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nmh...@sraddha.invalid (Nils M Holm)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: 3 Apr 2024 09:11:07 GMT
Organization: TARFU
Lines: 35
Sender: Nils M Holm <nmh@sraddha.local>
Message-ID: <l74kpbF2mn5U1@mid.individual.net>
References: <l2f5e0FrdrpU2@mid.individual.net> <slrnv0og7v.qqd.anthk@localhost.localdomain>
X-Trace: individual.net SNSlCUmWKZj4bgSQFJg2wwbNA3cLJHd2Hne6nzuBaPFO8dxtRl
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:Ms0UGxhsdWI6yn1w+0uTB8HPM68= sha256:/UXpFtDjev9B1SkbUlwGeYar0VWsQ9GRXpFhheNU/rk=
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/12.4-RELEASE (amd64))
 by: Nils M Holm - Wed, 3 Apr 2024 09:11 UTC

Bozo User <anthk@disroot.org> wrote:
> Interesting. But compiling and setting up t3x/0
> is not straightforward, at least under GNU/Linux i686.
> Here's the variables I changed in the makefile
> and the sh script at bin/ :
>
> T3XDIR= $HOME/t3x/lib
> BINDIR= $HOME/t3x/bin
> [...]
> Which could be the issue?

Ah, thank you so much for the feedback!

Indeed there is something I forgot to mention in the README:

If you change T3XDIR, you also have to change the "modpath"
in your code generator accordingly. In your case, change

"/usr/local/t3x/0/unx386/"

in the function "modpath" in the file "targets/cgunx386.t" to

"your-home/t3x/lib/unx386/"

and, of course, change "your-home" to whatever the actual
path is. $HOME will NOT work.

Without this change, the compiler will fall back to the default
core module and emit a mix of assembly language and bytecode,
which will confuse the assembler.

Let me know if this solves the problem!

--
Nils M Holm < n m h @ t 3 x . o r g > http://t3x.org

Re: Ladder-like game

<l74m2eF2vfmU1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4773&group=comp.os.cpm#4773

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nmh...@sraddha.invalid (Nils M Holm)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: 3 Apr 2024 09:33:02 GMT
Organization: TARFU
Lines: 18
Sender: Nils M Holm <nmh@sraddha.local>
Message-ID: <l74m2eF2vfmU1@mid.individual.net>
References: <l2f5e0FrdrpU2@mid.individual.net> <slrnv0og7v.qqd.anthk@localhost.localdomain> <l74kpbF2mn5U1@mid.individual.net>
X-Trace: individual.net EBerCo8jpbheupccExKQAgutNvIKlfnuUtyVbl8spylkjRPUr7
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:G+FELPmtOnZAnhPa5T+Dn2r4/b0= sha256:78Q4YjiHecm+sN0zH33xEJGEmYt9PvpsrC3ZRJYs1tQ=
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/12.4-RELEASE (amd64))
 by: Nils M Holm - Wed, 3 Apr 2024 09:33 UTC

Nils M Holm <nmh@sraddha.invalid> wrote:
> If you change T3XDIR, you also have to change the "modpath"
> in your code generator accordingly. In your case, change
>
> "/usr/local/t3x/0/unx386/"
>
> in the function "modpath" in the file "targets/cgunx386.t" to
>
> "your-home/t3x/lib/unx386/"

And also "/usr/local/t3x/0/" to "your-home/".

It is documented in the README now.

Next step: write a script that will do the changes for you.

--
Nils M Holm < n m h @ t 3 x . o r g > http://t3x.org

Re: Ladder-like game

<l74onfF3bbdU1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4774&group=comp.os.cpm#4774

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nmh...@sraddha.invalid (Nils M Holm)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: 3 Apr 2024 10:18:23 GMT
Organization: TARFU
Lines: 9
Sender: Nils M Holm <nmh@sraddha.local>
Message-ID: <l74onfF3bbdU1@mid.individual.net>
References: <l2f5e0FrdrpU2@mid.individual.net> <slrnv0og7v.qqd.anthk@localhost.localdomain> <l74kpbF2mn5U1@mid.individual.net> <l74m2eF2vfmU1@mid.individual.net>
X-Trace: individual.net 1JvQ8XiEqSA2IT0ievKnpAn8pJO7emT0Jor93y+CcDYMY9nHS1
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:5R3026ofgo0+LhGiNAsmcgpWUz0= sha256:39aLUwTzlfiwnQaAHxhwVoetNYRMvYzpE1yXX2mM588=
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/12.4-RELEASE (amd64))
 by: Nils M Holm - Wed, 3 Apr 2024 10:18 UTC

Nils M Holm <nmh@sraddha.invalid> wrote:
> Next step: write a script that will do the changes for you.

Done and uploaded. Please use the new version:

http://t3x.org/t3x/0/t3x0-20.zip

--
Nils M Holm < n m h @ t 3 x . o r g > http://t3x.org

Re: Ladder-like game

<slrnv0vmu6.2dq.anthk@localhost.localdomain>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4775&group=comp.os.cpm#4775

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@disroot.org (Bozo User)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: Fri, 5 Apr 2024 13:11:17 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 13
Message-ID: <slrnv0vmu6.2dq.anthk@localhost.localdomain>
References: <l2f5e0FrdrpU2@mid.individual.net>
<slrnv0og7v.qqd.anthk@localhost.localdomain>
<l74kpbF2mn5U1@mid.individual.net> <l74m2eF2vfmU1@mid.individual.net>
<l74onfF3bbdU1@mid.individual.net>
Injection-Date: Fri, 05 Apr 2024 13:11:17 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="e16f2dae4154c44e46896a3a9ad82792";
logging-data="1475888"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/4M2JeLSOoqJuctGZ30d8d"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:hz8AnLM/J7Mof9S+UYSABiAAwqw=
 by: Bozo User - Fri, 5 Apr 2024 13:11 UTC

On 2024-04-03, Nils M Holm <nmh@sraddha.invalid> wrote:
> Nils M Holm <nmh@sraddha.invalid> wrote:
>> Next step: write a script that will do the changes for you.
>
> Done and uploaded. Please use the new version:
>
> http://t3x.org/t3x/0/t3x0-20.zip
>

It works, but on the make install steps, it gave me an error,
I had to run 'mkdir -p $HOME/t3x0/{bin,lib}' first.
If not, the binaries get copied literally as $HOME/t3x0/bin
being 'bin' a single file, not a directory.

Re: Ladder-like game

<l7an2rF7fmU1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4776&group=comp.os.cpm#4776

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nmh...@sraddha.invalid (Nils M Holm)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: 5 Apr 2024 16:27:08 GMT
Organization: TARFU
Lines: 26
Sender: Nils M Holm <nmh@sraddha.local>
Message-ID: <l7an2rF7fmU1@mid.individual.net>
References: <l2f5e0FrdrpU2@mid.individual.net> <slrnv0og7v.qqd.anthk@localhost.localdomain> <l74kpbF2mn5U1@mid.individual.net> <l74m2eF2vfmU1@mid.individual.net> <l74onfF3bbdU1@mid.individual.net> <slrnv0vmu6.2dq.anthk@localhost.localdomain>
X-Trace: individual.net NiVVUKL1C0Jt6XqJpohkYAQq5k1gAL/G2bZlD/WizR0JWnfigy
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:L5G7RPkou2TuKoTGN25mqV+CaoU= sha256:CojiFee6FaDoLG92M/k3eFtCSV237eJtoJXl73+hAYo=
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/12.4-RELEASE (amd64))
 by: Nils M Holm - Fri, 5 Apr 2024 16:27 UTC

Bozo User <anthk@disroot.org> wrote:
> On 2024-04-03, Nils M Holm <nmh@sraddha.invalid> wrote:
>> Nils M Holm <nmh@sraddha.invalid> wrote:
>> Done and uploaded. Please use the new version:
>>
>> http://t3x.org/t3x/0/t3x0-20.zip
>>
>
> It works, but on the make install steps, it gave me an error,
> I had to run 'mkdir -p $HOME/t3x0/{bin,lib}' first.
> If not, the binaries get copied literally as $HOME/t3x0/bin
> being 'bin' a single file, not a directory.

Ah, I see. The lib directory should be created by install -d,
because it also creates parent directories, at least on FreeBSD.

$BINDIR is intended to point to a location where you keep *all*
your binaries, not just T3X, e.g. /usr/local/bin or $HOME/bin.
Therefore the Makefile assumes that it already exists.

Will clarify this in the Makefile.

Thanks for the input!

--
Nils M Holm < n m h @ t 3 x . o r g > http://t3x.org

Re: Ladder-like game

<slrnv10srv.2ca.anthk@localhost.localdomain>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4777&group=comp.os.cpm#4777

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail
From: ant...@disroot.org (Bozo User)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: Fri, 5 Apr 2024 22:00:02 -0000 (UTC)
Organization: A noiseless patient Spider
Lines: 31
Message-ID: <slrnv10srv.2ca.anthk@localhost.localdomain>
References: <l2f5e0FrdrpU2@mid.individual.net>
<slrnv0og7v.qqd.anthk@localhost.localdomain>
<l74kpbF2mn5U1@mid.individual.net> <l74m2eF2vfmU1@mid.individual.net>
<l74onfF3bbdU1@mid.individual.net>
<slrnv0vmu6.2dq.anthk@localhost.localdomain>
<l7an2rF7fmU1@mid.individual.net>
Injection-Date: Fri, 05 Apr 2024 22:00:03 +0200 (CEST)
Injection-Info: dont-email.me; posting-host="d0ec266635a2b0a610f6758acd1f213a";
logging-data="1720130"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19EweHDi4MwpY106OVspW1F"
User-Agent: slrn/1.0.3 (Linux)
Cancel-Lock: sha1:ENbrDvqcDMrqod4yfdQOjyIZVC4=
 by: Bozo User - Fri, 5 Apr 2024 22:00 UTC

On 2024-04-05, Nils M Holm <nmh@sraddha.invalid> wrote:
> Bozo User <anthk@disroot.org> wrote:
>> On 2024-04-03, Nils M Holm <nmh@sraddha.invalid> wrote:
>>> Nils M Holm <nmh@sraddha.invalid> wrote:
>>> Done and uploaded. Please use the new version:
>>>
>>> http://t3x.org/t3x/0/t3x0-20.zip
>>>
>>
>> It works, but on the make install steps, it gave me an error,
>> I had to run 'mkdir -p $HOME/t3x0/{bin,lib}' first.
>> If not, the binaries get copied literally as $HOME/t3x0/bin
>> being 'bin' a single file, not a directory.
>
> Ah, I see. The lib directory should be created by install -d,
> because it also creates parent directories, at least on FreeBSD.
>
> $BINDIR is intended to point to a location where you keep *all*
> your binaries, not just T3X, e.g. /usr/local/bin or $HOME/bin.
> Therefore the Makefile assumes that it already exists.
>
> Will clarify this in the Makefile.
>
> Thanks for the input!
>
No problem!!

I already compiled an interpreted version under a shared
pubnix with OpenBSD/amd64, people liked having a 'native'
Ladder a lot, at least they don't have to run an Altair
simulaton under simh.

Re: Ladder-like game

<l7fjolFmpcsU1@mid.individual.net>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=4779&group=comp.os.cpm#4779

  copy link   Newsgroups: comp.os.cpm
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: nmh...@sraddha.invalid (Nils M Holm)
Newsgroups: comp.os.cpm
Subject: Re: Ladder-like game
Date: 7 Apr 2024 13:01:09 GMT
Organization: TARFU
Lines: 15
Sender: Nils M Holm <nmh@sraddha.local>
Message-ID: <l7fjolFmpcsU1@mid.individual.net>
References: <l2f5e0FrdrpU2@mid.individual.net> <slrnv0og7v.qqd.anthk@localhost.localdomain> <l74kpbF2mn5U1@mid.individual.net> <l74m2eF2vfmU1@mid.individual.net> <l74onfF3bbdU1@mid.individual.net> <slrnv0vmu6.2dq.anthk@localhost.localdomain> <l7an2rF7fmU1@mid.individual.net> <slrnv10srv.2ca.anthk@localhost.localdomain>
X-Trace: individual.net 3nymN52BWucwd3tlQDsoLgrh9vHO6NIY4L/rnYQMEOc/Da0Zmy
X-Orig-Path: not-for-mail
Cancel-Lock: sha1:SG32rUq3SIakJcf3TTAMi3WKY/8= sha256:fe/r8g8uxjvPPUCnuglp2GfY5P/iI7R6QoNcbbL/5Ek=
User-Agent: tin/2.6.1-20211226 ("Convalmore") (FreeBSD/12.4-RELEASE (amd64))
 by: Nils M Holm - Sun, 7 Apr 2024 13:01 UTC

Bozo User <anthk@disroot.org> wrote:
> I already compiled an interpreted version under a shared
> pubnix with OpenBSD/amd64, people liked having a 'native'
> Ladder a lot, at least they don't have to run an Altair
> simulaton under simh.

Interpreted T3X is easily good enough for the ladders game.

For running CP/M programs without having to start a full
emulator I often use tnylpo (https://gitlab.com/gbrein/tnylpo).
It runs CP/M programs on the Unix command line using the cwd
as its file system.

--
Nils M Holm < n m h @ t 3 x . o r g > http://t3x.org

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor