# change rsm message in lc emu

**URL:** <https://forum.midibox.org/t/change-rsm-message-in-lc-emu/8655>\
**Category:** MIOS programming (Assembler)\
**Created:** [May 18, 2007, 7:13pm UTC](https://forum.midibox.org/t/change-rsm-message-in-lc-emu/8655 "2007-05-18T19:13:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![banneduser](https://forum.midibox.org/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@banneduser](https://forum.midibox.org/u/banneduser)\
**Post date:** [May 18, 2007, 7:13pm UTC](https://forum.midibox.org/t/change-rsm-message-in-lc-emu/8655/1 "2007-05-18T19:13:29Z")

</div>

hi@all

maybe someone could push a newbie in the right direction.

i want to spread the rsm message over the 2 lcds, so that every track has a matching m/s/r character below.

first i tried to squeeze some spaces between the characters like this:

> LC\_CLCD\_LEDStatusUpdate\_Rec
> 
> ;; print the solo status if value == 0, else a “R”
> 
> movf TMP1, W
> 
> andlw 0x07
> 
> addlw 0x00 ; rec == 90 0[0-7]
> 
> movf PLUSW0, W
> 
> bz LC\_CLCD\_LEDStatusUpdate\_Solo
> 
> LC\_CLCD\_LEDStatusUpdate\_Rec1
> 
> ;; print R
> 
> movlw 'R&nbsp; ’
> 
> rgoto LC\_CLCD\_LEDStatusUpdate\_RSM\_Save
> 
> LC\_CLCD\_LEDStatusUpdate\_Solo
> 
> ;; print the mute status if value == 0, else a “S”
> 
> movf TMP1, W
> 
> andlw 0x07
> 
> addlw 0x08 ; solo == 90 0[8-F]
> 
> movf PLUSW0, W
> 
> bz LC\_CLCD\_LEDStatusUpdate\_Mute
> 
> LC\_CLCD\_LEDStatusUpdate\_Solo1
> 
> ;; print S
> 
> movlw 'S&nbsp; ’
> 
> rgoto LC\_CLCD\_LEDStatusUpdate\_RSM\_Save
> 
> LC\_CLCD\_LEDStatusUpdate\_Mute
> 
> ;; print space or “S” if value == 0
> 
> movf TMP1, W
> 
> andlw 0x07
> 
> addlw 0x10 ; mute == 90 1[0-7]
> 
> movf PLUSW0, W
> 
> bz LC\_CLCD\_LEDStatusUpdate\_Mute0
> 
> LC\_CLCD\_LEDStatusUpdate\_Mute1
> 
> ;; else print M
> 
> movlw 'M&nbsp; ’
> 
> rgoto LC\_CLCD\_LEDStatusUpdate\_RSM\_Save
> 
> LC\_CLCD\_LEDStatusUpdate\_Mute0
> 
> ;; print ‘R’ if rec active, ‘S’ if solo active, else space
> 
> clrf TMP2 ; TMP2.0 notifies that rec active, TMP2.1 that solo active
> 
> movf TMP1, W
> 
> andlw 0x07
> 
> addlw 0x00 ; rec == 90 0[0-7]
> 
> movf PLUSW0, W
> 
> skpz
> 
> bsf TMP2, 0
> 
> movf TMP1, W
> 
> andlw 0x07
> 
> addlw 0x08 ; solo == 90 0[8-F]
> 
> movf PLUSW0, W
> 
> skpz
> 
> bsf TMP2, 1
> 
> ;; print “R”, “S” or ’ ’ (in this priority)
> 
> movlw ’ ’
> 
> IFSET TMP2, 1, movlw 'S&nbsp; ’
> 
> IFSET TMP2, 0, movlw 'R&nbsp; ’
> 
> ;; rgoto LC\_CLCD\_LEDStatusUpdate\_RSM\_Save
> 
> LC\_CLCD\_LEDStatusUpdate\_RSM\_Save
> 
> ;; save character in RSM\_MSG array
> 
> movwf TMP2 ; temp. save it in TMP2
> 
> ;; prepare pointer to RSM\_MSG array
> 
> lfsr FSR1, RSM\_MSG\_BEGIN
> 
> movf TMP1, W
> 
> andlw 0x30
> 
> addwf FSR1L, F
> 
> movff TMP2, INDF1 ; transfer character to array
> 
> ;; print message
> 
> call LC\_CLCD\_Print\_RSM
> 
> ;; and exit
> 
> rgoto LC\_CLCD\_LEDStatusUpdate\_End

and this

> ;; init pointer to message
> 
> lfsr FSR0, RSM\_MSG\_BEGIN
> 
> ;; print 8 chars
> 
> movlw 30
> 
> movwf TMP1

in lc\_clcd.inc, but that didnÂ´t work.

then i tried to add lcd\_rsm\_d here:

> ;; font, x-position, y-position, distance
> 
> ;; if font == 0, element will not be print
> 
> SET\_CLCD\_RSM\_MSG MACRO font, x, y, d
> 
> movlw x
> 
> movwf LCD\_RSM\_X
> 
> movlw y \* 0x40
> 
> movwf LCD\_RSM\_Y
> 
> movlw&nbsp; d
> 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; movwf&nbsp; LCD\_RSM\_D
> 
> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; movlw font & 0xff
> 
> movwf LCD\_RSM\_FONT\_H
> 
> ENDM

and

> LC\_CLCD\_Init\_Page3
> 
> ;; don’t print status digits
> 
> SET\_CLCD\_STATUS 0, 0, 0
> 
> ;; don’t print “SMPTE/BEATS”
> 
> SET\_CLCD\_SMPTE\_BEATS 0, 0, 0
> 
> ;; don’t print MTC digits
> 
> SET\_CLCD\_MTC 0, 0, 0
> 
> ;; print host messages at position 12/0, (1=large spacing, x and y ignored)
> 
> SET\_CLCD\_HOST\_MSG 0, 12, 0, 1
> 
> ;; print horizontal meters at position 7/1 (distance between meter chars: 2)
> 
> ;; |4 means: x-2 on second display
> 
> SET\_CLCD\_METER 0, 0, 0, 0
> 
> ;; don’t print rec/solo/mute status - x,y,d
> 
> SET\_CLCD\_RSM\_MSG 1, 0, 0, 3
> 
> ;; don’t print select status
> 
> SET\_CLCD\_SEL\_MSG 0, 0, 0
> 
> return

in lc\_clcd\_macros.inc/lc\_clcd.inc, but it didnÂ´t work either.

now i think this might be a bigger thing than i imagined. so iÂ´m gratefull for any hints where to start.

greetings

---

<div class="post-metadata">

**Author:** ![T.K](https://forum.midibox.org/user_avatar/forum.midibox.org/t.k/32/7_2.png) [@T.K](https://forum.midibox.org/u/T.K)\
**Post date:** [May 18, 2007, 9:31pm UTC](https://forum.midibox.org/t/change-rsm-message-in-lc-emu/8655/2 "2007-05-18T21:31:15Z")

</div>

Since you are searching for **any** hints: I think it’s better to do such modifications in the C based version, it’s easier to understand:

[http://www.ucapps.de/mios/midibox\_lc\_v2\_0\_alpha1.zip](http://www.ucapps.de/mios/midibox_lc_v2_0_alpha1.zip)

the display output routines are located in lc\_lcd.c

Best Regards, Thorsten.

---

<div class="post-metadata">

**Author:** ![banneduser](https://forum.midibox.org/letter_avatar_proxy/v4/letter/b/c2a13f/32.png) [@banneduser](https://forum.midibox.org/u/banneduser)\
**Post date:** [May 18, 2007, 9:57pm UTC](https://forum.midibox.org/t/change-rsm-message-in-lc-emu/8655/3 "2007-05-18T21:57:15Z")

</div>

thank you. i will look into this one.
