Questions tagged [programming]

For questions about programming languages and constructs. For questions about specific languages please check for language-specific tags first, and use those instead.

Filter by
Sorted by
Tagged with
67
votes
5answers
11k views

Why wasn't ASCII designed with a contiguous alphanumeric character order?

Anyone who has dealt with strings at a low level (e.g., writing a parser in C), knows that doing so tends to involve frequent checks of—either manually, or through isalpha(), isalnum(), etc—whether a ...
31
votes
3answers
11k views

Where does this esoteric Pascal operator come from?

In the documentation for an implementation of Pascal for a Soviet computer, I've encountered a very weird language extension. I'll try to translate it: Branching operator (branch) Syntax &...
26
votes
7answers
12k views

How can you run a program that is bigger than RAM?

Suppose you have a program that is 218 words long. However you are using a 16 bit machine and have 216 words of RAM. (The RAM is directly addressed by the CPU). On the other hand, you have unlimited '...
12
votes
3answers
3k views

Native C compiler for Sinclair ZX Spectrum

I am looking for a native C compiler for the Spectrum 128. I would like one which: Has good support for the latest C standard at the time. Is not limited to compiling ridiculously short source code. ...
13
votes
1answer
859 views

What was the first language with regexes?

According to Wikipedia, Regular Expressions (AKA regexes) have only been around since 1956: Regular expressions originated in 1956, when mathematician Stephen Cole Kleene described regular ...
19
votes
2answers
762 views

What's a good way to implement this “splashing water” effect on the C64?

This pillow fighting game set in Venice depicts the two opponents fighting on a wobbly gondola on a canal. It was apparently known as "Pillow Fight" in English and as "Kissenschlacht" in German, and ...
10
votes
1answer
262 views

Does a CDC 1604 emulator exist with a functional FORTRAN compiler?

The first FORTRAN compiler for the Soviet BESM-6 mainframe was written by means of manually retargeting the assembly code of the CDC 1604 FORTRAN compiler donated by CERN to JINR. As a result is it ...
2
votes
3answers
739 views

Reading both keyboard and joystick with non-KERNAL code on C64

I'm implementing non-KERNAL joystick and keyboard controls for my Commodore 64 game. I used to use the KERNAL SCNKEY routine earlier to read keyboard and it worked well with my joystick port 2 code. ...
13
votes
2answers
1k views

What is the “standard” way to implement KERNAL hooks on the C64?

The C64 kernel (or KERNAL as it’s known in the C64 community) routines work via a jump vector table stored in page $03xx. A common programming paradigm to create something like a "device driver" would ...