10 likes | 114 Vues
Quiz 1: Student No: _________________ Name:____________________. LD register , memory address : Loads the contents of the memory address to register MOV memory address : Causes the contents of the accumulator to be written to memory at location memory address
E N D
Quiz 1: Student No: _________________ Name:____________________ LD register, memoryaddress: Loadsthecontents of thememoryaddresstoregister MOV memoryaddress: Causesthecontents of theaccumulatorto be writtentomemory at locationmemoryaddress ADD memoryaddress: Addsthecontents of thememory at locationmemoryaddresstothevaluestored at theaccumulator SUBT memoryaddress: Subtractsthecontents of thememory at locationmemoryaddressfromthevaluestored at theaccumulator MULTmemoryaddress: Multpliesthecontents of thememory at locationmemoryaddresswiththevaluestored at theaccumulator QUESTION: Wewant CPU toperform(6+2)-(4x2) Usetheinstructionsdefinedaboveandwrite a program toperformthisoperation. Placeyourinstructions in the main memoryandmake sure allmemoryaddressesaredefined 6 4 2