Home › Forums › Decaffeinated Coffee › Computer Programmer › Reply To: Computer Programmer
May 2, 2011 12:14 am at 12:14 am
#763827
ItcheSrulik
Member
A programmer wouldn’t leave two glasses. He would write pseudocode for a PDP-8 assembler subroutine:
098 load full
099 store glass
100 load thirsty //there aren’t any types in PDP-8 so we improvise.
101 skip cond 800 //if thirsty is greater than 0 i.e. true
102 clear glass //drink
103 jump 098
I’m taking a class where we have to code in PDP-8 assembler for some reason even though nobody including the professor has ever used one, so I had to get some fun out of it ;). Anyone spot the logical error?