Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!