• Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Real Programmer

I used to do that on a PDP 11/40 and an IBM 370/158. Programmers these days with their point and click stuff....bah humbug!
 
PDP 11/23...mmmmmm, VAX Macro.....

Code:
        .TITLE  ROUT1
        .ENTRY  START,^M<>            ; Beginning of routine
        CLRL    R0                    ; Clear register
LABT:   SUBL3   #10,4(AP),R2          ; Subtract 10
LAB2:   BRB     CONT                  ; Branch to another routine
 
IEFBR14 START
USING IEFBR14,15 Establish addressability
BR GO Skip over our name
DC AL1(L'ID) Length of name
ID DC C'IEFBR14' Name itself
DS 0H Force alignment
GO SR 15,15 Zero out register 15
BR 14 Return addr in R14 -- branch at it
END IEFBR14

A null program
 
I remember those and the VAX. I also remember loading the operating system and ALGOL compiler in on paper tape before being able to start work. Forget what it was. Yes. What. Yes.
 
darmstadt said:
IEFBR14 START
USING IEFBR14,15 Establish addressability
BR GO Skip over our name
DC AL1(L'ID) Length of name
ID DC C'IEFBR14' Name itself
DS 0H Force alignment
GO SR 15,15 Zero out register 15
BR 14 Return addr in R14 -- branch at it
END IEFBR14

A null program
I preferred the IEFBR15 program....
 

Advertisers

Back
Top