Building TRS-80 emulator sdltrs

Having fun with the TRS-80 emulator “xtrs”. However decided to revisit the “sdltrs” install which failed yesterday. The MAIN reason I revisited this was the addition of cut & paste which does not work in “xtrs”!

It adds other nice features too but “cut & paste” was most important to me. OK…I also like the command line option “-scale2” to “-scale4” to display larger screen! I wanted to write/edit programs within Linux then Paste then in to the emulator! One thing to note is you use keyboard commands…not mouse, in the emulator. Also you must change line endings from the Linux default of “LF to “CRLF” otherwise the lines will run together. This is easy to do in the VS-Code editor I use.

I Had to do the following commands in order to get the “make” to work on Linux Mint 18.3…

apt install libxt-dev
Add [-lX11] to the end of the following line “LIBS = -lSDL -lXt” in the “Makefile”

Finally move sdltrs (which says shared library) to “/usr/local/bin/” and set proper permissions


Other helpful info…

Helpful…https://www.linuxquestions.org/questions/linux-newbie-8/make-error-usr-bin-lds-cannot-find-lxt-4175623622/

Found Basic Computer Games [published by Creative Computing] source @ http://vintage-basic.net/games.html

But I remembered there was a TRS-80 version which I have somewhere [https://archive.org/details/Basic_Computer_Games_1978_David_Ahl] that I thought I found @ https://archive.org/details/Basic_Computer_Games_1978_David_Ahl.
However it wasn’t…It was just the above original “Basic Computer Games” with the TRS-80 cover displayed 1st.

One way to tell is the random function. For example to get a random number between 1-6 (common for rolling dice)…
Original book : A=INT(6*RND(1)+1)
TRS-80 way : A=RND(6)