Please as much as you can don’t write an essay for the.

Added on - 16 Sep 2019

  • 10

    pages

  • 980

    words

  • 119

    views

  • 0

    downloads

Showing pages 1 to 3 of 10 pages
Please as much as you can don’t write an essayfor the question try to draw diagram and if writea long answer try to under line the mostimportant words and try to simplify and write aclear answer not an essay the important point
1.(d)The Little Man model uses a single-digit op-code and a 2-digitmemory addressing andhas the following instructions defined wherethe address portion is shown as xx.OpCodeInstructionDescription1xxADDAdd the value of a given memory location tocalculator2xxSUBTRACTSubtract the value of a given memory location tocalculator3xxSTORECopy the value from the calculator into a givenmemory location5xxLOADCopy the value from a given memory location intothe calculator6xxBRANCHUnconditional branch. Set the Program Counter tovalue xx7xxBRANCH IFConditional branch. If the accumulator is zero,ZERObranch to xx8xxBRANCH IFConditional branch. If the accumulator is positive,POSITIVEbranch to xx901INPUTGet the value from the IN-TRAY and put it into thecalculator902OUTPUTPut the value in the calculator into the OUT-TRAY000HALTTake a breakWrite a program using these codes to take twonumbers which are contained in the IN-TRAYand display the sum (+) of those numbers in theOUT-TRAY. Comment every instruction.(20Marks)
PAGE3OF7
desklib-logo
You’re reading a preview
card-image

To View Complete Document

Become a Desklib Library Member.
Subscribe to our plans

Unlock This Document