multiplying of two 8 bit number

Assembly Program for multiplying of two 8 bit number

Assembly Program for multiplying of two 8 bit number –

Number N1 ≤ FF

Number N2 ≤ FF

F*F = 225 = EF

FF*FF = FE 01

Assembly Program for multiplying of two 8 bit number

Program –

Program member location code instructions comment
F 000 H 2100 F8 LXIH , F800H Point to member location
F 003 H 46 mov B , M Read N1 into Reg B
F 004 H 23 INX , H Point to next member location
F 005 H 4E Mov C , M Read N2 into reg c
F 006 H A7 XRAA (A) =00
F 007 H 57 Mov D , A (D) =00
F 008 H 37 STC , (Set carry) (cy) = 01 (set)
F 009 H 3F CNC , Complement (cy) = 00 (reset)
F 00A H 80 ADD B (A) = (A) + (B)
F 00B H D2 , OF , FO JNC , DNT , ADD IF CY ≠ 01. then don’t increment (D)
F 00E H 14 INR D IF CY =0  THEN (D) = (D) +1
F 00F H 00 DCRC (C) = (C) -1
F 010 H C2 , 08 , F0 INZ Loop if co ≠ 0 Co to ADD member
F 013 H 23 H INX H Point to next location
F 014 H 77 mov M , A store (A) into member
F 015 H 23 INX H Point to next member
F 016 H 72 mov M , D Store (D) into member
F 017 H 76 HLT stop

What is the Op Amp ?

What is Flip flop ?

IC Operational Amplifier –

Multiplying of two 8 bit number

educationallof
Author: educationallof

10 thoughts on “multiplying of two 8 bit number

  1. Hey there! This post couldn’t be written any better! Reading through this post reminds me of my good old room mate! He always kept chatting about this. I will forward this article to him. Fairly certain he will have a good read. Thank you for sharing!
    Cryptocurrency casino user interface thoughts on Reddit

    Reddit’s insights into crypto casino technology

  2. Wow that was odd. I just wrote an very long comment but after I clicked submit my comment didn’t show up. Grrrr… well I’m not writing all that over again. Anyhow, just wanted to say great blog!
    Cryptocurrency casino customer service discussions on Reddit

Comments are closed.

error: Content is protected !!