Debian Codegraph @

texmf-dist/doc/latex/circuit-macros/examples/Byte.m4

raw
1 .PS
2 # Byte.m4
3 gen_init
4
5 boxht = 0.2
6 boxwid = 3.8
7
8 define leftlabel { {"{\sf $1}" at last box.w ljust} }
9
10 ifdpic(`
11 down_
12 Lab[0]: box; leftlabel( B0STDISBL (reset pin is enabled) )
13 Lab[1]: box; leftlabel( WDTON (WDT not always on) )
14 Lab[2]: box; leftlabel( SPIEN (allow serial programming) )
15 Lab[3]: box; leftlabel( CKOPT (full output swing) )
16 Lab[4]: box; leftlabel( EESAVE (don\char39{}t preserve EEPB0OM over chip erase))
17 Lab[5]: box; leftlabel( BOOTSZ1 )
18 Lab[6]: box; leftlabel( BOOTSZ0 )
19 Lab[7]: box; leftlabel( BOOTB0ST (boot reset vector at 0x0000) )
20
21 boxwid = boxht
22 left_
23 B0:box "\sf 1" with .e at Lab[0].nw + (0.75,0.5)
24 box "\sf 0"
25 box "\sf 0"
26 box "\sf 1"
27 box "\sf 0"
28 box "\sf 0"
29 box "\sf 1"
30 box "\sf 1"
31 box wid 2*boxht "\sf 0xc9"
32
33 for i=0 to 7 do {
34 spline -> ht arrowht*0.7 from B0.s-(i*boxht,0) down boxht/4 \
35 then to Lab[0].nw-((i+1)*boxht/2,0) \
36 then down Lab[0].nw.y-Lab[i].y then to Lab[i].w
37 }',
38 `box wid 1 ht 0.75 "Byte.m4" "requires" "dpic"')
39
40 .PE