1
0
mirror of https://github.com/PDP-10/its.git synced 2026-01-13 15:27:28 +00:00

Fix 11LOGO bug in MOD procedure.

The EAE puts the modulo in the AC which is before, not after MQ.
This commit is contained in:
Lars Brinkhoff 2018-12-20 11:26:26 +01:00
parent 29f02fe112
commit 73dea2d621

View File

@ -511,9 +511,9 @@ DIV.1: JSR PC,G2NARG
MOV #MQ,F
MOV B,(F) ;DIVIDEND
MOV A,DIVIDE
MOV (F)+,B ;PICK UP QUOTIENT
MOV (F),B ;PICK UP QUOTIENT
ADD D,PC ;IF DIVIDE DESIRED, BRANCHES TO DONEMP
DIV.8: MOV (F)+,B ;IF MOD DESIRED, STAYS HERE
DIV.8: MOV -(F),B ;IF MOD DESIRED, STAYS HERE
BR DONEMP ;AND PICKS UP REMAINDER
;PREDICATES