Assembly code solution needed!!

Status
Not open for further replies.
It's a very simple flow chart, you don't have to understand it, just draw the appropriate box shapes and join them with lines and arrows.

Brian.
 

I missed the class last year, so, it's really troublesome understanding the concepts. Anyways, thanks, Brian!
 

I hope you understand what the code is doing.


Edit: There is a mistake in flowchart. I will upload the new one.

PHP:
;initialization of regiaters

Immidiate value 0x01 is loaded into register R2
Immidiate value 0xF0 is loaded into register R3

;main code starts from here

register R0 is loaded with 0x81

registers R2 is ANDed with R2 and result stored in R2	; 0x01 AND 0x01 = 0x01

If result of previous operation was 0 then jump to label xyz else continue

;continue code

	load register R0 with 0x82
	registers R0 and R3 are ANDed and result stored in R0
	unconditional jump to label wzp


;xyz code

		load register R0 with 0x82
		register R0 and R3 are ORed and result stored in R0
;wzp code	contents of register R0 is stored at address 0x82
		unconditional jump to start of main code
 

Attachments

  • fc.png
    39.2 KB · Views: 60
Last edited:
Status
Not open for further replies.

Similar threads

Cookies are required to use this site. You must accept them to continue using the site. Learn more…