MARIE Assembly Language
MARIE Assembly LanguageTerminate the program7HALTUse the value at X as the address to jump to CJUMPI XJump-and-Store: Store the PC at address X and jump to X+10JNS XSubroutinecall and returnSkip the next instruction based on the condition, C:C = 00016: skip if AC is negative (b11b10 = 002)C = 40016: skip if the AC = 0 (b11b10 = 012)C = 80016: skip if the AC is positive (b11b10 = 102)8SKIPCOND CUnconditional branch to X by loading the value of X into PC9JUMP XBranchOutput the value in AC to the display6OUTPUTInput a value from the keyboard into AC5INPUTI/O Store the contents of AC at address X2STORE XLoad the contents of address X into AC1LOAD XData TransferPut all zeros in the ACACLEARAdd Indirect: Use the value at X as the actual address of thedata operand to add to ACBADDI XSubtract the contents of address X from the AC4SUBT XAdd the contents of address X to AC3ADD XArithmeticDescriptionHexOpcodeMnemonicT ype ofInstructionsMARIEInstructionFormatOpco de Address (or Condition) 15 12 11 10 0Revised Figure Datapath in MARIEMAR IR PCInREGMBROutREG ACALU MemoryAddress01232 - 11216-bitsInputDeviceOutputDevice16 Assembly Language Example 1: RESULT = X + Y - Z AddressLabel Assembly LanguageMachine Language0LOAD X1006161ADD Y3007162S
MARIE Assembly Language HALT 7 Terminate the program JUMPI X C Use the value at X as the address to jump to Subroutine JNS X 0 Jump-and-Store: Store the PC at address X and jump to X+1 call and return
Download MARIE Assembly Language
Information
Domain:
Source:
Link to this page:
Please notify us if you found a problem with this document:
Related search queries
Marie, Introduction to a Simple Computer, Marie: Control for a Simple Computer, Marie Instruction Set Cheat Sheet, Marie Callender s 223-4310, Marie Callender’s 223-4310, Historical Climatology: Sault Ste. Marie, Michigan, Marie Clay Observation Survey Report, PRAYERS TO TRUST IN GOD, UNITED STATES BANKRUPTCY COURT DISTRICT, S Theoretical Perspective: A Literacy, S Theoretical Perspective: A Literacy Processing, M arie