Questions tagged [programming]
Programming aspects of retro systems and historical programming languages. Please check for language-specific tags first and use those instead, if applicable.
287 questions
3
votes
1
answer
220
views
Need help understanding weird PALASM code for Lattice PAL10L8 chips
My question seeks to understand some vintage source code used in the mid-80's to program a Programmable Array Logic device. The functional production code (see below) contains quite a few sub-...
4
votes
1
answer
1k
views
How did Amstrad CPC games calculate positions for every sprite?
After reading this, I wonder how the position of every sprite in the screen was calculated in games with several sprites moving around in the screen (enemies, shots, ...). It seems like too many ...
5
votes
1
answer
550
views
How were recursive functions written in FORTRAN before 1990?
In FORTRAN, before FORTRAN-90 with its RECURSIVE keyword, there was no standard way to write recursive subroutines, as all local variables were "static", as a C programmer would say. Of ...
2
votes
1
answer
372
views
Assemble a program for UNIVAC 1108
are there people here who can assemble such old programs? I have only 2 such codes that I would like to assembly but I don't know how.
Is this even possible?
1 Link: https://web.archive.org/web/...
0
votes
0
answers
157
views
Spy format expert part 2 (Apple IIgs)
Recently I asked a question about an error in the Spy format expert program when starting. Then they helped me fix this program, but there are still some mysteries and questions related to it. The ...
2
votes
4
answers
413
views
How can a dummy learn assembler? (IIgs) [closed]
I would like to write some interesting programs in assembler but I don't know where to start and how to do it. I would like a guide in simple language for dummies. Does anyone have a list of such ...
4
votes
1
answer
2k
views
How to get code of a program that decrypts itself?
How does one decompile to source code a program that decrypts itself? This particular program runs on an Apple IIgs.
7
votes
1
answer
432
views
How to obtain error message text using MS-DOS interrupt 2Fh service 122Eh?
I'm trying to display error messages like a lot of MS-DOS (4.0+) utilities do. They don't embed messages like "Too many parameters" and "Invalid switch" in the executables, but ...
4
votes
1
answer
613
views
How does the “Odyssey 2001” boot virus for the Apple IIgs work?
Don't get me wrong! viruses are bad... But I don't have a standard virus problem. I caught one virus called Odyssey 2001 and it's a very kind virus that displays a message in SHGR on IIgs on some ...
10
votes
1
answer
954
views
Apple IIgs program SHGR problem
I encountered a problem on the GSPlus emulator. When I want to run a program, the message appears on the screen: SHGR buffer already allocated. After that, the GS reboots and the program does not ...
1
vote
1
answer
308
views
How to read/write tapes from PDP-11 on assembly?
Ok, I know this is a very old computer but just for fun. I have figured out how to read keyboard (0177560 for checking, 0177562 for reading) and print it (0177564 for checking, 0177566 for writing).
...
2
votes
1
answer
735
views
Where was it possible to change the value of 4? [duplicate]
I have read it in an old "hacker test" fun text, about in the middle 90s. It was about 4.
Today googling refers to the idea that maybe it had been about writing into a read-only intended ...
17
votes
2
answers
3k
views
Why is the PICTURE clause called the PICTURE clause in COBOL?
In COBOL there are three picture clauses, A for alpha, X for alphanumeric, and 9 for numeric. But why is it called PIC or PICTURE. I am wondering where the name comes from?
14
votes
7
answers
1k
views
(In)significance of spaces in parsing Fortran IV
I'm analyzing a Fortran IV program written for a PDP-10. I was briefly acquainted with the language but had never studied it. Now I have a couple Fortran reference manuals (IV and 77), and I'm ...
4
votes
2
answers
444
views
Where can I find a tutorial on using floating point arithmetic via BASIC ROM calls as part of a machine language program
I am trying to reproduce a program I wrote for a Office of Surface Mining scientists back in 1985 that was written on a commodore 128 in BASIC 7.0.
The program performed a Monte Carlo simulation of ...
25
votes
5
answers
4k
views
How plausible is this anecdote about "toggling in" an operating system?
The parody essay Real Programmers Don't Use Pascal (1983) states:
What kind of tools does a Real Programmer use? In theory, a Real Programmer could run his programs by keying them into the front ...
3
votes
1
answer
257
views
Is there any compiler (either native or cross-compiler) for NEC PC-88?
After searching for the file system for this computer I have gained interest in this machine and development for it.
I have found a C compiler but anything else.
So basically I would like to ask if ...
9
votes
2
answers
601
views
Is the Source Code from "Professional Symbian Programming" by Martin Tasker available?
I have a physical copy of "Professional Symbian programming : mobile solutions on the EPOC platform" by Martin Tasker.
The book originally came with a CD containing source code; but mine is ...
20
votes
2
answers
5k
views
Origin of "foo", "bar", and "baz"
I'm pretty sure I've seen references to these words as placeholders, variable names, etc. going back to at least the 1970s. I always guessed there was a connection to "FUBAR" there somewhere,...
4
votes
1
answer
365
views
Cannot read from floppy to a specific memory address using BIOS CHS
In my boot sector code, I'm using the following code to read a sector from disk (floppy if DL == 0, HDD if DL == 0x80):
mov ax, 0xfe1 ; Read destination segment.
mov es, ax
mov ax, 0x201 ; Read 1 ...
16
votes
4
answers
2k
views
How did 1977's Car Polo arcade game by Exidy perform hitbox detection, and rigid body collision and movement on the ball?
The link here is a youtube video of Exidy's Car Polo from 1977 : https://www.youtube.com/watch?v=NMljzipOy4s
What blew me away when seeing it in action was the game's hitbox detection for all 4 ...
6
votes
1
answer
1k
views
How do I run DOS 2.0 .exe and .com programs from my .exe program?
I'm writing a very small .exe program in assembly, targeting DOS 2.0 (or, if it doesn't work, DOS 3.00 is also fine). It has to be able to run other DOS .com and .exe programs, wait for them to finish,...
13
votes
2
answers
1k
views
How much extra stack space should I reserve for MS-DOS and interrupts?
When I write a program for MS-DOS, and I know at most how many bytes of stack space my program needs, then how many extra bytes of additional stack space should I reserve (in the assembly source code ...
5
votes
0
answers
173
views
Running .CO programs from file on Kyocera 85/TRS-80 Model 100/NEC PC-8201
I'm starting to write some machine language programs for my Kyocera
85-family systems, starting with my TRS-80 Model 100 and NEC PC-8201.
My understanding is that the .CO files contain the binary
code ...
17
votes
4
answers
4k
views
Did the ENIAC have any programming language?
On Wikipedia's entry for ENIAC, it states the ENIAC had 5 programming languages. I believe some of those are just names for different graphing systems, but ARC Assembly and Curry Notation System seem ...
5
votes
1
answer
411
views
Apple IIe Enhanced not following BEQ correctly
I'm running the example code from Assembly Lines chapter 5 programs 2A and 2B which print the entire character map for the Apple II and then are supposed to break, however my code is looping ...
13
votes
2
answers
3k
views
What was the main implementation programming language of old 16-bit Windows versions (Windows 1 - Windows 3.11)?
It seems that MS-DOS was primarily written in assembly even in its last versions.
I understand that new versions of Windows such as the NT-based versions currently in use, and Windows 95 .. ME which ...
13
votes
2
answers
2k
views
Which programming language/environment pioneered row-major array order?
The Wikipedia page describing specifics of row-major vs column-major storage order for multi-dimensional arrays, mentions, among others, C/C++ (*1), Pascal and PL/I for the former, and, surely, ...
12
votes
2
answers
1k
views
Is there a pre-defined compiler macro for legacy Microsoft C 5.10 to get the compiler's name and version number?
In Microsoft Visual C++, I can use the macros _MSC_VER for compiler identification and _MSC_FULL_VER for its version number to retrieve the data of the used compiler at runtime of my C program. But ...
1
vote
4
answers
1k
views
What ever happened to Perl? [closed]
Think of the most currently "awesome", popular programming language that everyone wants to learn, and is going to "take over the world"... From the late 1990's to early 2000's ...
12
votes
1
answer
974
views
Are there official, standard, or conventional names for the screen RAM addresses on the ZX Spectrum?
I'm working on a disassembly tool for the Sinclair ZX Spectrum and want to do things "right" when possible.
I remember seeing lists of ROM routines, system variables, and memory addresses ...
27
votes
3
answers
4k
views
Which programming language first used negative indexing to mean counting from the end?
Negative indexing is a well-known feature of Python, for example a[-1] gets the last element of list a. Which programming language was the first to do this? (FORTRAN has supported arbitrary indexing ...
22
votes
10
answers
8k
views
What happened to the job market for assembly programmers once high level languages became mainstream?
At some point it became easier and faster to write high level code than assembly. I'm curious about the transition - right now a full time assembly programmer is rare indeed, although there are still ...
7
votes
1
answer
643
views
What was "Mac SLM" or "ASLM"?
While looking through a very old codebase, I found some preprocessor defines and comments referring to something called "Mac SLM" or "ASLM". From the context, it appears to have ...
9
votes
2
answers
667
views
How did the PL/I designers not understand environments?
In Charles Lindsey's “A browse through some early bulletins”, he mentions (regarding Knuth's Man Or Boy test):
As a postcript to this whole episode, it may be noted that a couple of years later Bekic ...
3
votes
1
answer
657
views
Why does this code trigger a TRAP on a PDP11/70?
On the PDP11/70, in the XXDP BKTCB0.BIC program I saw the following code:
012716 177777 mov #-1,(KSP)
006627 MTPI (PC)+
According to the comments in the source-code, this triggers a trap....
9
votes
2
answers
2k
views
Building a "hello, world!" program using MPW
I've been setting up a Basilisk II emulator to try my hand at developing apps for 68k System 7 systems, and have set up the Macintosh Programmer's Workstation (v.3.5 Gold Master from ...
62
votes
3
answers
46k
views
Does this 8088 code in the Leisure Suit Larry 2 game actually do anything?
In the Sierra On-Line game "Leisure Suit Larry 2" there's a part in the game where the main character (Larry) has to write a program in 8088 assembly language as part of his tribal ...
3
votes
1
answer
793
views
What do the pins D0-D7 on the Intel 8080 exactly signify?
I am currently trying to create a FPGA styled simulator of the 8080 in C. I have a couple of questions regarding the D0-D7 pins. As far as I can see the D0-D7 lines are used in order to store data (a ...
4
votes
2
answers
2k
views
Gameboy Key Input Causes Crash
I made a Key Tester using the STDIO header included with GBDK. It works... Until it doesn't. All the keys register and print to the screen, except the Left(5) and Right(4) Directional Keys, which ...
14
votes
1
answer
2k
views
When was the original version of the DICE C compiler for the Amiga released? And when did it become free?
Back in the day I bought SAS/C for the Amiga. I seem to recall that before that there was Aztec C, Manx C, and Lattice C that were the major commercial C compilers for the platform. I never used them.
...
8
votes
1
answer
1k
views
C64 char screen plot routine - not clear about reason for logical OR
I'm trying out some 6502 assembly language, specifically using Kick Assembler. I have the following routine that just sticks a character on the text screen at a specified x and y, it's taken from the ...
16
votes
4
answers
16k
views
How were the signs for logical and arithmetic operators decided?
I'm curious as to how exactly some of the logical and arithmetic operator signs were decided? The plus and minus operators make sense, but how was decided that / was the division operator or that * ...
12
votes
6
answers
4k
views
What made the ENIAC "programmable"?
The ENIAC was the first programmable, electronic, general-purpose digital computer. However, it was programmed by "rewiring", and this is what I do not understand.
When we say "...
15
votes
2
answers
1k
views
Drawing Asteroids DVG vector objects
I'm trying to draw the vector objects from the original coordinates of the Asteroids arcade game, starting with the ship from here, but I'm having trouble figuring it out and getting weird results. E....
5
votes
1
answer
961
views
How did John Carmack develop DOS games in Softdisk?
I recently listened to a podcast of Carmack and he said that in early DOS days he mostly uses assembly. The host asked him about Pascal and he said back then only Wizardry was written in Pascal.
I ...
6
votes
2
answers
640
views
Mixing small and big data models in 16-bit DOS & Watcom
I want to write an application for DOS using small code/data model, but I would like to use far pointers for some selected memory blocks. I would like to use the OpenWatcom C++/16 compiler.
So, for ...
23
votes
3
answers
3k
views
Why were OS/360 PL/I procedure calls so expensive in terms of stack space?
In 1977, Guy Steele published a paper entitled Debunking the “expensive procedure call” myth or, procedure call implementations considered harmful or, LAMBDA: The Ultimate GOTO. The paper was the ...
23
votes
15
answers
5k
views
Did type-in-programs or type-in-listings teach programming in the 70s and 80s or was it just tedious typing of the source code?
In the late 70s and early 1980s, computer magazines and books usually distributed program codes via program listings, which the user then had to type into his computer. Today these are also known as ...
6
votes
0
answers
262
views
Where can I find information on old Kontron emulators?
Way back in the mid-80s, I worked as a programmer for the Apple II family, Commodore and Atari machines. I remember programming them using a big intimidating box branded Kontron stacked on top of my ...