Assembler code
Hi Guys.
I start to study assembler, and soon I 'm confused.
I use Demo-board.
sample code below:
It display "28000000" on PST. Still same, no change.
I commented "and t1, mask".
It display to repeat "FE00007C" and "FE01007C". P16'state is read.
"mask long $00010000" is mistake?
What is correct expression?
Is there good text for assembler?
I start to study assembler, and soon I 'm confused.
I use Demo-board.
sample code below:
VAR
long d
OBJ
debug : "FullDuplexSerialPlus"
PUB main
debug.start(31,30,0,57600)
debug.tx(Debug#CLS)
dira[noparse][[/noparse]16]~~
cognew(@entry, @d)
repeat
!outa[noparse][[/noparse]16]
debug.hex(d, 8)
debug.str(String(" "))
waitcnt(clkfreq/5 + cnt)
DAT
org
entry mov t1, ina
and t1, mask
wrlong t1, par
jmp #entry
t1 res 1
mask long $00010000
It display "28000000" on PST. Still same, no change.
I commented "and t1, mask".
It display to repeat "FE00007C" and "FE01007C". P16'state is read.
"mask long $00010000" is mistake?
What is correct expression?
Is there good text for assembler?

Comments
Is there good text for assembler?