Lab6_Flowchart

Lab6_Flowchart - x8000 .FILL x4000 .FILL x2000 ... Note:...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Start End int = 0 flag = 0 is char == LF GETC digit = char - 48 is char == „-‟ yes no flag = 1 yes no int = int x 10 + digit is flag == 1 yes int = ! int int = int + 1 MASKptr = 1 st MASK address count = 15 no is count < 0 yes no Load MASK digit = int AND MASK is digit == 0 yes no Print “0” Print “1” MASKptr = MASKptr + 1 count = count -1 x8000 x4000 x2000 MASK Memory MASK .FILL
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: x8000 .FILL x4000 .FILL x2000 ... Note: This flow chart assumes the user only enters a - first, if at all, and then only 0-9, ended with an enter key. LAB #6 Flow Chart Read in a string and convert it into a twos complement binary integer and then print out the binary representation....
View Full Document

Ask a homework question - tutors are online