15
votes
Accepted
In 16-bit MS-DOS, how do I get a file handle to the currently running .exe?
[Edit: Ooops, that question already been answered a few years ago on Stack Overflow]
I'd expect there to be some reference (either a file handle or an old-fashioned FCB) in the PSP, but there's ...
11
votes
In 16-bit MS-DOS, how do I get a file handle to the currently running .exe?
If definitive references is what you’re looking for, the usual one to consult is the RBIL:
Format of Program Segment Prefix (PSP):
Offset Size Description (Table 01378)
[…]
2Ch WORD ...
7
votes
Did the Algol 68 standard allow a procedure to be called before its declaration?
RosettaCode provides the following example of mutually-recursive procedures in Algol-68:
PROC (INT)INT m; # ONLY required for ELLA ALGOL 68RS - an official subset OF full ALGOL 68 #
PROC f = (INT n)...
6
votes
Did the Algol 68 standard allow a procedure to be called before its declaration?
Not an answer, but note that Algol 60 allowed use before declaration. I take this as a strong hint that Algol 68 would also do so.
I ran this code on the KDF9 Whetstone Algol system.
'begin'
'boolean'...
5
votes
What was the first programming language, other than Lisp, to have “short-circuiting” Boolean expressions?
Another candidate is MAD, the “Michigan Algorithm Decoder”. According to a 1966 manual,
Object programs will skip the evaluation of the remaining terms of a disjunction (an “or” expression) as soon ...
4
votes
Did the Algol 68 standard allow a procedure to be called before its declaration?
I am by no means knowledgeable about Algol 68 - but that won't stop me. I wonder if the issue is a misunderstanding of "elaboration" when an Algol 68 program runs vs. how that is ...
2
votes
Did the Algol 68 standard allow a procedure to be called before its declaration?
Algol 68R was the first Algol 68 implementation, released before the Revised Report. The "R" is because it was a restricted subset of the language, largely to allow a single-pass compiler to ...
1
vote
What is the origin of the "my" variable/method/et-al in didactic materials?
Origin? ...I think that comes from simple human interest in taking topics out of the specific and into a more general context, in that, at least when I do this myself (which is mostly every time I ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
programming × 201history × 55
ms-dos × 17
assembly × 17
graphics × 14
commodore-64 × 13
basic × 13
c × 12
compilers × 12
gaming × 11
6502 × 9
apple-ii × 8
design-choices × 8
fortran × 8
applesoft-basic × 7
amiga × 6
apple-macintosh × 6
software-development × 6
pascal × 6
emulation × 5
debugging × 5
operating-system × 4
mainframe × 4
interrupt × 4
reference-request × 4