# The manual example (examples/manual.zig) on Vol. 2 of the Intel SDM: # Figure 2-1 stepped through in the stock player, and exported twice. # Built only when the PDF is there (-Dmanual). frames 150 expect deck.waiting true expect deck.log.len 0 screenshot .zig-cache/manual/page.png # The page on its paper, the whole of it in view. expect-pixel .zig-cache/manual/page.png 400 650 255 255 255 255 2 # Onto the figure; the rest of the page greys. key space await deck.waiting true screenshot .zig-cache/manual/figure.png expect-pixel .zig-cache/manual/figure.png 460 160 255 255 255 255 2 # Each field in turn, tinted: the third is ModR/M. key space await deck.waiting true key space await deck.waiting true key space await deck.waiting true expect deck.log.len 4 screenshot .zig-cache/manual/modrm.png expect-pixel .zig-cache/manual/modrm.png 460 160 192 233 242 255 3 expect-pixel .zig-cache/manual/modrm.png 300 160 255 255 255 255 2 # Back a step: Opcode's tint again, ModR/M's gone. key page_up expect deck.log.len 3 frames 2 screenshot .zig-cache/manual/opcode.png expect-pixel .zig-cache/manual/opcode.png 460 160 255 255 255 255 2 expect-pixel .zig-cache/manual/opcode.png 300 160 192 233 242 255 3 key space await deck.waiting true key space await deck.waiting true key space await deck.waiting true key space await deck.waiting true # 83 C0 01 written below, where the footnotes were. key space await deck.waiting true screenshot .zig-cache/manual/bytes.png # Into their fields: ModR/M's label gives way to C0. key space await deck.waiting true screenshot .zig-cache/manual/flown.png expect-different-screenshot .zig-cache/manual/bytes.png .zig-cache/manual/flown.png 440 140 180 90 # C0 down into its boxes as bits, then split over Mod, Reg and R/M. key space await deck.waiting true screenshot .zig-cache/manual/bits.png expect-pixel .zig-cache/manual/bits.png 527 185 255 255 255 255 2 key space await deck.waiting true screenshot .zig-cache/manual/split.png expect-different-screenshot .zig-cache/manual/bits.png .zig-cache/manual/split.png 280 420 310 70 expect deck.log.len 11 # Back to the page, filled in, and the end of the talk. key space frames 120 expect deck.log.len 12 expect deck.waiting false screenshot .zig-cache/manual/end.png expect-different-screenshot .zig-cache/manual/page.png .zig-cache/manual/end.png 470 260 340 120 # Exported ({a}, {b}: 10 fps, half size), each step held 1.5 s: the same # frames twice, and the talk moves through them. expect-same-screenshot {a}/000040.png {b}/000040.png expect-same-screenshot {a}/000200.png {b}/000200.png expect-same-screenshot {a}/000340.png {b}/000340.png expect-different-screenshot {a}/000040.png {a}/000200.png expect-different-screenshot {a}/000200.png {a}/000340.png