我正在用「lahf」來存儲標誌啊。我想輸出這些值(1和0)來查看我的標誌,但我不知道如何。下面代碼中的持有者標籤輸出一個十進制數,是否有輸出二進制數的方法?或者我應該以不同的方式去解決這個問題?打印一個字節的位
lahf ;moves flags to ah
mov [flagg], ah ;moves flags to label "flagg" in .bss (reserved 1 dword)
;later on...
mov eax,[flagg] ;moves the flag values into eax
push eax ;pushes eax onto stack
push Holder ;Holder is a label in .data ("%d",0)
call printf ;prints to screen
add esp, 8