piclist 2003\06\08\211032a >
Thread: SASM bug? cse cnse error
www.piclist.com/techref/ubicom/languages.htm?key=sx
picon face BY : Sculpture Student email (remove spam text)



I have come across a problem that I just can't understand how it could be. I
am using SASM v1.48, I am programming my SX-28 (datecode:AC0308AA) with the
JPB-2 parallel port programmer and scenix2.exe to download.

The problem is with the CSE command. I've found that it does not skip
regardless of the arguments passed to it. The opposite is true of CSNE, it
skips no matter what.

Here is my test code. Have I missed something vital? Can someone else please
test this code for me?

;       sasmtest.src
       device  SX28AC,OSCHS1,OPTIONX,TURBO,CARRYX,STACKX,BANKS8
       reset main
;DATA MEMORY ORG DEFINES --------------------------------------
       org     8
tmp1            DS      1       ; temporary variables
tmp2            DS      1       ; temporary variables
       org     0
main
       mov     M, #$0F         ; direction control
       mov     !RB, #$00
       mov     M, #$0E         ; pullup control
       mov     !RB, #$00
       clrb    RB.3
       clrb    RB.4

:test1
       mov     w, #1
       mov     tmp1, w
       cse     tmp1, #1        ; skip if tmp1==1
       setb    RB.4            ; this line should be skipped
       clrb    RB.4;
       mov     w, #1
       mov     tmp1, w
       cse     tmp1, #2        ; skip if tmp1==2
       setb    RB.3            ; this line should be executed
       clrb    RB.3
       jmp     :test1


output on CRO

RB.3 ___/\________/\_____
RB.4 _______/\________/\___

*both* CSE statements were executed.

Aras

_________________________________________________________________
Get mobile Hotmail. Go to  http://ninemsn.com.au/mobilecentral/signup.asp

--
http://www.piclist.com hint: The PICList is archived three different
ways.  See http://www.piclist.com/#archives for details.
<Law12-F121K1gMCaOby0004b481@hotmail.com>

See also: www.piclist.com/techref/ubicom/languages.htm?key=sx
Reply You must be a member of the piclist mailing list (not only a www.piclist.com member) to post to the piclist. This form requires JavaScript and a browser/email client that can handle form mailto: posts.
Subject (change) SASM bug? cse cnse error

month overview.

new search...