Memory layout of a data structure: Difference between revisions

→‎{{header|Rexx}}: added Output EBCDIC (and removed a comma)
(→‎{{header|Rexx}}: added Output EBCDIC (and removed a comma))
Line 603:
/* 9 22 - RI */ Ring_indicator +1,
/* 23 - DRS */ Data_rate_select +1,
/* 24 - XTC */ External_clock +1,
Say '24 bins:' cb
Say ' 1 - PG Protective ground ='Protective ground
Line 685:
End
Return res</lang>
Output EBCDIC:
<pre>
24 bins: 110000011100001011000011
1 - PG Protective ground =1
2 - TD Transmitted data =1
3 - RD Received data =0
4 - RTS Request to send =0
5 - CTS Clear to send =0
6 - DSR Data set ready =0
7 - SG Signal ground =0
8 - CD Carrier detect =1
9 - + plus voltage =1
10 - - minus voltage =1
 
12 - SCD Secondary CD =0
13 - SCS Secondary CTS =0
14 - STD Secondary TD =0
15 - TC Transmit clock =1
16 - SRD Secondary RD =0
17 - RC Receiver clock =1
 
19 - SRS Secondary RTS =0
20 - DTR Data terminal ready =0
21 - SQD Signal quality detector =0
22 - RI Ring indicator =0
23 - DRS Data rate select =1
24 - XTC External hlock =1
 
9-bin: 111001111
1 CD Carrier detect =1
2 RD Received data =1
3 TD Transmitted data =1
4 DTR Data terminal ready =0
5 SG Signal ground =0
6 DSR Data set ready =1
7 RTS Request to send =1
8 CTS Clear to send =1
9 RI Ring indicator =1
</pre
 
=={{header|Ruby}}==
2,295

edits