# IOWRITE\_ A & IOREAD\_A Macros

**URL:** <https://forums.digi.com/t/iowrite-a-ioread-a-macros/13174>\
**Category:** Rabbit Software\
**Tags:** dynamic-c\
**Created:** [June 20, 2014, 5:34am UTC](https://forums.digi.com/t/iowrite-a-ioread-a-macros/13174 "2014-06-20T05:34:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jlrubio](https://avatars.discourse-cdn.com/v4/letter/j/9e8a1a/32.png) [@jlrubio](https://forums.digi.com/u/jlrubio)\
**Post date:** [June 20, 2014, 5:34am UTC](https://forums.digi.com/t/iowrite-a-ioread-a-macros/13174/1 "2014-06-20T05:34:00Z")

</div>

We have to use the macros IOWRITE\_A & IOREAD\_A on Dynamic C 10.70 for RCM5700. For example the piece of code where we use these macros are on lib HDLC\_PACKET.LIB

[color=red]#asm xmem

HDLCcloseE::  
ipset HDLC\_INT\_LEVEL  
;clear out interrupt vector  
ld a,0xc9 ; ret in first byte  
ld (INTVEC\_BASE+SERE\_OFS),a  
ld a,0x00 ; disable interrupts for port  
ld (SECRShadow),a  
IOWRITE\_A(SECR)  
ipres  
lret

#endasm

but when we compile, can see the next error

Unexpected token in label: “IOWRITE\_A \>\>\> ( \<\<\< 0xCC)”, excepted one of {‘:’}

Thanks for your support

BR  
Jose Luis

---

<div class="post-metadata">

**Author:** ![MargaretK](https://avatars.discourse-cdn.com/v4/letter/m/d9b06d/32.png) [@MargaretK](https://forums.digi.com/u/MargaretK)\
**Post date:** [June 20, 2014, 10:14am UTC](https://forums.digi.com/t/iowrite-a-ioread-a-macros/13174/2 "2014-06-20T10:14:27Z")

</div>

HDLC\_PACKET.LIB is slightly different in Dynamic C 10.72, I suggest you download our current release and let us know if you see any errors.
