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

Address Instruction Commentsx3000 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 x300Ex3006 R1<-NOT R1x3007 R1<-R1+1X3008 R1<-R1+ R0x3009 If N or P, goto x300Bx300A R2<-R2+1x300B R3<-R3+1x300C R1<-M[R3]x300D Goto x3004x300E R0<-M[x3013]x300F R0<-R0+ R2x30101111000000100001 Print R0(TRAP x21)x30111111000000100101 HALT (TRAP x25)X3012 Starting Address of Filex30130000000000110000 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!