Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

PLEASE HELP I DONT KNOW WHY MY MARIE CODE IS NOT WORKING. JUMP start Addr, Hex 0006 //Top of list pointer, address of node 1

PLEASE HELP I DON"T KNOW WHY MY MARIE CODE IS NOT WORKING.

JUMP start

Addr, Hex 0006 //Top of list pointer, address of node 1

Node2, Hex 0032 //Node data is the character 2.

Hex 0008 //address of node "3".

Node4, Hex 0034 //character "4".

Hex 000A //address of node 5

Node1, Hex 0031 //Character 1

Hex 0002 //address of node2

Node3, Hex 0033 //Character 3

Hex 0004 // addresss of node 4

Node5, Hex 0035 //Character 5

Hex 0000 //end of the list

Next, Hex 0000 //pointer to next element

ONE, Hex 0001 //one

Start, LOAD Addr //LOAD LINK HEAD

STORE Next //

LOAD Next

Loop, SKIPCOND 400 //if AC==0 - end of list reached

JUMP NextElem

JUMP End

NextElem, CLEAR //Next is not null

ADDI Next // Load data value from current pointter to AC

OUTPUT // Display it

LOAD ONE // AC <-- 1

ADD Next // AC <--- Next+1 (pointer field address)

STORE Next // AC ---> Next

CLEAR // AC <---- 0

ADDI Next // AC <--[Next] (load next address from pointer field)

STORE Next // AC--> Next (Next loop)

JUMP Loop

End, HALT

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design And Implementation

Authors: Edward Sciore

2nd Edition

3030338355, 978-3030338350

More Books

Students also viewed these Databases questions

Question

=+Can someone use sick leave to care for an elderly parent?

Answered: 1 week ago