Date : Thu, 25 Aug 1994 10:33:18 EST
From : Stephen Quan <quan@...>
Subject: Re: debug ADC and SBC.
Sorry Chris, when I get a bit more time, I'll read your code, but
essentially your solution should look like this (using LAHF and SAHF).
For ADC.
SAHF
ADC <whatever>
LAHF
For SBC.
XOR AH,1
SAHF
SBB <whatever>
LAHF
XOR AH,1
The XOR is because 386 uses the carry flag in exactly the opposite
way to the beeb, but the 386 ADC operates exactly the same as the
beeb. All should work well from here. BTW, I may have the order
of SAHF and LAHF round the wrong way, as I am using a different way
altogether (Ok! Ok! I hear everyone screaming, shut up! we know!).
--
Stephen Quan (quan@... ), SysAdmin, Analyst/Programmer.
Centre for Spatial Information Studies, University of Tasmania, Hobart.
GPO BOX 252C, Australia, 7001. Local Tel: (002) 202898 Fax: (002) 240282
International Callers use +6102 instead of (002).