Hello Jim, hello Steve, hello Akaydin,

DEF SEG is necessary for BLOAD and BSAVE to operate on screen memory -
I'll add that you can also do the "old skool" thing and do like we did
in my Fortran77 programming days: prompt the user for a seed value,
and pass that to RANDOMIZE.
10 PRINT "Enter a random seed value:"
20 INPUT SEED
30 RANDOMIZE SEED

That is true.  But in any case, DEF SEG is very much implemented in the
1983 GW-BASIC code, so yes, you should have no problem using it.

In fact, Microsoft's DONKEY.BAS program (written in 1981!) uses DEF SEG
in a few places.  Besides reading from the BIOS data area, it also
messes with the (then) BASIC interpreter's own internal variables in one
place:

  975 DEF SEG: POKE 106,0

(Later BASICs --- including the 1983 GW-BASIC --- do not have the same
internal variables, so they actually added hooks to specially handle
these sort of PEEKs and POKEs.

Also, I heard that there is an IBM manual describing what these
variables originally do, but I have not found it.  Any information on it
will be welcome.)

Thank you!

--
https://github.com/tkchia


_______________________________________________
Freedos-devel mailing list
Freedos-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/freedos-devel

Reply via email to