c
a
c
b
F900
These answers have been adjusted to Pep/8 equivalents, even though the questions are in Pep/7 syntax.
;;
;; void calcOvt( int reg, int & ovrtm )
;;
reg: .EQUATE 4
ovrtm: .EQUATE 2
;;
calcOvtm: LDA reg,s ; calculate 1/2 reg plus reg
ASRA
ADDA reg,s
STA ovrtm,sf ; store result in ovrtm
RET0
| A | B | 0 | 1 |
| 0 | 0 | 00,0 | 11,0 |
| 0 | 1 | 11,0 | 00,0 |
| 1 | 0 | 11,0 | 10,0 |
| 1 | 1 | 00,1 | 11,1 |