dinoqqq / asmdebugger

ASM Debugger Online
27 stars 6 forks source link

neg doesn't set the CF correctly #1

Closed DamianFekete closed 3 years ago

DamianFekete commented 3 years ago

The CF is always set to 0 after executing neg.

Expected behavior, from https://c9x.me/x86/html/file_module_x86_id_216.html

The CF flag set to 0 if the source operand is 0; otherwise it is set to 1

dinoqqq commented 3 years ago

@DamianFekete thanks for reporting this. Fixed it in v1.0.0