waaraawa_ByteGrid/examples/cpu-flags.yaml
waaraawa 43ae040047 feat(core): add bitfield grid visualization
- Add uniformRowHeight option to RenderOptions
  - Render bit grid (8 vertical lines) inside bitfield cells
  - Show bit numbers (7-0, MSB first) below byte numbers
  - Increase row height to 45px for rows with bitfields
  - Increase default cellWidth to 40px for readability
  - Add 6 new tests for bitfield visualization
2025-10-13 18:54:15 +09:00

54 lines
1.2 KiB
YAML

name: x86 CPU FLAGS Register
size: 4
layout: 8
fields:
- offset: 0-1
name: FLAGS
type: uint16_t
description: "CPU status and control flags"
color: yellow
bitfields:
- name: CF
bits: "0"
description: "Carry Flag"
- name: Reserved1
bits: "1"
description: "Always 1"
- name: PF
bits: "2"
description: "Parity Flag"
- name: AF
bits: "4"
description: "Auxiliary Carry Flag"
- name: ZF
bits: "6"
description: "Zero Flag"
- name: SF
bits: "7"
description: "Sign Flag"
- name: TF
bits: "8"
description: "Trap Flag"
- name: IF
bits: "9"
description: "Interrupt Enable Flag"
- name: DF
bits: "10"
description: "Direction Flag"
- name: OF
bits: "11"
description: "Overflow Flag"
- name: IOPL
bits: "12-13"
description: "I/O Privilege Level"
- name: NT
bits: "14"
description: "Nested Task"
- name: RF
bits: "15"
description: "Resume Flag"
- offset: 2-3
name: ExtendedFlags
type: uint16_t
description: "Extended flags (EFLAGS upper 16 bits)"
color: purple