Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.asm.x86    |    Ahh, the lost art of x86 assembly    |    4,675 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 4,143 of 4,675    |
|    luserdroog to luserdroog    |
|    Re: CMP flags going wrong in my emu?    |
|    13 Sep 20 21:49:26    |
      From: luser.droog@nospicedham.gmail.com              On Sunday, September 13, 2020 at 11:20:43 PM UTC-5, luserdroog wrote:              > Here's the stack trace on the first one.       >       > ax:ffff cx:000a dx:0000 bx:0001 sp:f000 bp:1ffc si:0e1a di:0000 ip:046d       fl:0004 NC NO NS NZ       > 3b(073) cmpwt: d9(331) x:1 y:10 ->fffffff7       > ax:ffff cx:000a dx:0000 bx:0001 sp:f000 bp:1ffc si:0e1a di:0000 ip:046f       fl:0891 CA OV SN NZ       > 7c(174) jl: 02(002) <0>       > ax:ffff cx:000a dx:0000 bx:0001 sp:f000 bp:1ffc si:0e1a di:0000 ip:0471       fl:0891 CA OV SN NZ       > ff(377) grp2w: c0(300) INC ->0000       >       > The CMP produces fffffff7 which seems like the correct subtraction       > extended to 32 bits. But the JL isn't taken.       >       > Are my flags wrong after the cmpwt instruction?              I'm pretty sure this *is* wrong. I think I should have Carry but No       Overflow. The upper half is clearly the sign extension of the low 15       bits so it should not be considered an overflow, I think.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca