Memory layout of a data structure: Difference between revisions
Memory layout of a data structure (view source)
Revision as of 00:01, 28 September 2021
, 2 years agono edit summary
Puppydrum64 (talk | contribs) No edit summary |
Puppydrum64 (talk | contribs) No edit summary |
||
Line 1,293:
9 RI = OFF
</pre>
=={{header|Z80 Assembly}}==
{{trans|6502 Assembly}}
<lang Z80>softRS232_LO equ &C000 ;%87654321 (each bit represents the state of a numbered pin)
softRS232_HI equ &C001 ;%-------9
ld hl,softRS232_LO ;memory location of soft RS232 port
ld c,&00 ;&00 = the port that the RS232 is connected to.
;This is just an example, the actual port number depends on where the hardware is connected.
outi ;send the value contained in softRS232_LO thru port &00
outi ;send the value contained in softRS232_HI thru port &00</lang>
{{omit from|ACL2}}
|