![]() As an Assembly programmer, you have the power to mask out all the bits but the one you are interested in by using either AND or OR.) Here is what I have currently learned in the class: (Second Hint:LAHF pushes the Carry Bit and all the other flags out of the EFLAGS register and into AH. ![]() Shift and repeat this procedure 8 times and you are done! Eventually, we will learn how to loop, making this task much less terrible.) In order to accomplish this, you need to move a bit at time into the carry flag and print 0 or 1, depending on what you find in the Carry bit. ![]() (Hint: There is no standard output that prints in binary output, so you need to do this yourself. For example, here would be the program output for various entered values I have this following assignment: Write an HLA Assembly program that prompts for an int8 value to inspect and then prints it in binary format.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |