question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What does 0 and U mean on the flags?

See original GitHub issue

Wondering what 0 and U mean on the metadata for the flags, as in:

OF=U SF=U ZF=U AF=U PF=U CF=U
OF=0 SF=W ZF=W AF=U PF=W CF=0

Also what do the lowercase x vs. uppercase X mean, and lowercase w and W?

x:~r8/m8,~r8

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kobalicekcommented, Jan 27, 2021
  • ib - signed byte
  • ub - unsigned byte
  • iw - signed word
  • uw - unsigned word
  • id - signed doubleword
  • ud - unsigned doubleword
  • iq - signed quadword
  • uq - unsigned quadword

AsmDB provides some extensions that are either not part of the opcode in the manual or that are written in the docs somewhere. For example imagine add r32, immediate - you have multiple options: add r32, ib - immediate encoded as byte, or add r32, id/ud - immediate encoded as dword - doesn’t matter whether it’s signed or unsigned.

AsmJit then is able to validate the instruction, so add r32, -1 would be the same as add r32, 0xFFFFFFFF - but add r64, -1 is not the same as add r64, 0xFFFFFFFF.

1reaction
kobalicekcommented, Jan 27, 2021
  • 0 - set to zero
  • 1 - set to one
  • U - undefined (according to the instruction manual)
  • ~ - commutative (swapping operands won’t change the result)
  • x - partial read/write (8-bit and 16-bit GP ops mostly)
  • X - full read/write (with possible zero extension)
  • w - partial write (8-bit and 16-bit GP ops mostly)
  • W - full write (with possible zero extension)
Read more comments on GitHub >

github_iconTop Results From Across the Web

Signal Flag Letter U (Uniform) - Maryland Nautical
Navy & International Meaning: You are running into danger. International Code of Signal Flags have double stitched seams, finished nylon rope distance lines...
Read more >
Meanings of International Maritime Signal Flags
U - you are standing into danger. V - I require assistance (not distress) W - I require medical assistance.
Read more >
Flags and Symbols
The flag represents the transgender community and consists of five horizontal stripes. Two light blue which is the traditional color for baby boys,...
Read more >
Processor Status and Flags Register
Zero flag (ZF) - the zero flag is set(1) when the result of an arithmetic ... Unsigned overflow means there has been a...
Read more >
International maritime signal flags - Wikipedia
International maritime signal flags are various flags used to communicate with ships. The principal system of flags and associated codes is the ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found