A short machine-code demonstration: a routine called with CALL takes its own return address off the stack (one POP) and prints the text stored right after the CALL, stopping at an inverse space. Here the text is the author’s name, K. VAN VLIET.
Type RUN and enter the 25 decimal values at the INPUT prompts, as the article says, or type GOTO 70 to see it work straight away: the download already holds the bytes in the line 1 REM. Lines 100 and 110 then POKE NEWLINE characters into the text, so the second call prints the name on three lines.
Published in Sinc-Link July 1984 (A Machine Code Program with 1 Pop).
Source Code
1 REM ...25 characters minimum...
10 FOR I = 16514 TO 16538
20 PRINT I;" ";
30 INPUT N
40 PRINT N
50 POKE I,N
60 NEXT I
70 CLS
80 PRINT AT 5,0;"inverse space"
90 RAND USR 16523
100 POKE 16528,118
110 POKE 16532,118
120 PRINT AT 10,0;"inverse space"
130 RAND USR 16523
140 STOPNote: Type-in program listings on this website use ZMAKEBAS notation for graphics characters.


