News for hackers. Stuff that matters.
Re:Reverse-engineering the multiplication algorithm in the I... by kens on Wednesday March 15, 2023 @04:20PM (#35174187)
AAD is lower on the list since it is both complicated and kind of obscure. Also, it depends on multiplication and division, so I want to cover them first.
Re:Reverse-engineering the multiplication algorithm in the I... by bonzini on Wednesday March 15, 2023 @06:17PM (#35175484)
AAD is essentially a multiplication and a sum:

    170  Q     -> tmpc                            
    171  AH    -> tmpb      CALL  CORX
    172  AL    -> tmpb      ADD   tmpc
    173  ZERO  -> AH        JMP   179
    179  SIGMA -> AL        RNI      
   F
It doesn't depend on division despite the name, it performs ASCII to binary conversion.