Question: Address Instruction Comments x 3 0 0 0 R 2 < - 0 ( counter ) x 3 0 0 1 R 3 < -

Address Instruction Comments
x3000 R2<-0(counter)
x3001 R3<-M[x3012](ptr)
x30021111000000100011 Input to R0(TRAP x23)
x3003 R1<-M[R3]
x3004 R4<-R14(EOT)
x3005 If Z, goto x300E
x3006 R1<-NOT R1
x3007 R1<-R1+1
X3008 R1<-R1+ R0
x3009 If N or P, goto x300B
x300A R2<-R2+1
x300B R3<-R3+1
x300C R1<-M[R3]
x300D Goto x3004
x300E R0<-M[x3013]
x300F R0<-R0+ R2
x30101111000000100001 Print R0(TRAP x21)
x30111111000000100101 HALT (TRAP x25)
X3012 Starting Address of File
x30130000000000110000 ASCII x30(0)

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!