Re: A83: Why wont this work!


[Prev][Next][Index][Thread]

Re: A83: Why wont this work!




You can't load a number directly into CURROW, CURCOL. Instead you have to 
do something like:
ld a, 02h
ld (CURROW), a
ld a, 01h
ld (CURCOL), a
Hope this help a bit.

>
>Whenever I try to compile this code it says that currow, curcol and 
>LCDINSTPORT are
>invalid arguments!!!
>
>-Phelan 'Amen' Wolf
>
>SOURCE:
>
>.NOLIST
>#define end .end
>#define equ .equ
>#define EQU .equ
>#include "ti83asm.inc"
>.LIST
>.org 9327h
> call 4755h
> ld b,0
>LOOP:
>        ld (CURCOL),02h
>        ld (CURROW),01h
>        set 3, (iy+5)
> ld hl,title_one
> call 470Dh
>        res 3, (iy+5)
> call 4CFEh
> cp 03h
> jp z,UP_CONTRAST
> cp 04h
> jp z,DOWN_CONTRAST
> cp 64d
> jp z,QUIT
> jp LOOP
>SET_CONTRAST:
> out (LCDINSTPORT),b    ;sets the contrast at b
> jp LOOP
>UP_CONTRAST:
> ld a,b
> cp 88
> jp z,LOOP
> inc b
> inc b
> call 4755h
> jp SET_CONTRAST
>DOWN_CONTRAST:
> ld a,b
> cp 1
> jp z,LOOP
> dec b
> dec b
> call 4755h
> jp SET_CONTRAST
>QUIT:
> call 4755h
> ret
>title_one:
> .db "Set Contrast",0
>.end
>END
>


From,
     Wesley Moore

______________________________
Email: moore.w@patash.com.au