SPP3 - bits call DumpRegs mov al,57h add al,36h;overflow flag set because the result of the addition is negative call DumpRegs mov al,56h sub

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

View Full Document Right Arrow Icon
TITLE SPP3 INCLUDE Irvine32.inc .code main PROC m mov al,0B9h add al,0C6h ;carry flag set because the result cannot be represented in 8 bits call DumpRegs ;overflow flag set because the addition of two negative numbers gives a positive one mov al,0C6h sub al,0A3h ;overflow flag clear because the result can be represented in 8
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: bits call DumpRegs mov al,57h add al,36h ;overflow flag set because the result of the addition is negative call DumpRegs mov al,56h sub al,34h ;overflow flag clear because the result can be represented in 8 bits call DumpRegs exit main ENDP END main...
View Full Document

This note was uploaded on 04/24/2010 for the course COS 235 taught by Professor Karagiozov during the Fall '08 term at American University in Bulgaria.

Ask a homework question - tutors are online