Answered step by step
Verified Expert Solution
Question
1 Approved Answer
How to write do a pseydocodes in this program - OX M MARIE Simulator File Run Stop Step Breakpoints Symbol Map Help label AC 0000
How to write do a pseydocodes in this program
- OX M MARIE Simulator File Run Stop Step Breakpoints Symbol Map Help label AC 0000 Hex OUTPUT 002 003 004 IR 7000 Hex 005 MAROOD Hex opcode operand STORE INDEX CLEAR ADDI INDEX SKIPCOND 400 JUMP DO JUMP END OUTPUT LOAD ITR ADD ONE STORE ITR JUMP WHILE HALT hex 2010 A000 B010 8400 9008 900D 6000 100F 300E 2007 9000 7000 OOOHH MBR 0000 Hex PC 00E Hex OOB 0oC INPUT ASCH ASCE - Control 000 END +0 +1 +2 +3 +4 5 +6 +7 +8 +9 +A +B C + D +E +F 000 1011 3009 2010 2000 2010 8400 9000 9000 6000 1007 3003 2002 9000 7000 0001 0010 010 0022 001200220049 0000 0040 006F 0076 0085 000D 0043 0053 0043 00320031 0033 020 0041 0022 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 030 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 040 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 050 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 060 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 070 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0801 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 0000 chine halted normally Type here to search - 0 X ORG M MARIE Assembler Code Editor File Edit Assemble Help 0 / implemented using "do while" loop WHILE LOAD S TR BASE / load str_base into ac ADD ITR / add index to str_base STORE INDEX / store (str_base + index) into ac CLEAR / set ac to zero ADDI INDEX / get the value at ADDR SKIPCOND 400 / SKIP if ADDR = 0 (or null char) JUMP DO / jump to DO JUMP END / JUMP TO END OUTPUT / output value at ADDR LOAD ITR / load iterator into ac ADD ONE / increment iterator by one STORE ITR / store ac in iterator JUMP WHILE / jump to while END, ONE, ITR, INDEX, STR_BASE, HALT DEC DEC HEX HEX OS / memory location of str OOOOOOO SIR, HEX 22 / " HEX 49 / 1 HEX D / carriage return HEX 4C / D HEX EF HEX 76 / V HEX 65 / E HEX 43 / HEX 22 / " BIEX 0 7 NULL char HEX NULL char CAUsersiTzimakos Desktop EX 3 Exercise 3.mas (modified) ENG 11:08 PM ^ UK 13/01/2020
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started