PASM help needed
Why do I need a Dummy register or a NOP and the end?
Either works, but neither does not.
Im just exploring and there is no rush on this.
It did take a while to stumble upon a working solution.
It is probably a poor programing practice issue
Either works, but neither does not.
Im just exploring and there is no rush on this.
It did take a while to stumble upon a working solution.
It is probably a poor programing practice issue
CON
_clkmode = xtal1 + pll16x
_xinfreq = 5_000_000
OBJ
Num : "Numbers"
TV : "TV_terminal"
PUB Main
Num.Init 'Initiate numbers
TV.Start(12) 'Start TV Terminal
TV.Str(string("TESTING") ) ' Display "TESTING"
TV.Out(13) ' New line
cognew(@start,@data)
waitcnt (1500 + cnt) ' Time delay for the PASM to run
TV.Out(13)
TV.Str(Num.ToStr(data,Num#DDEC)) ' Display the data value
DAT
org 0
start
mov address,par
mov data,datax
wrlong data,address
datax long 999
data long 777
Address long 0
nop ' I have to have this
Dummy long 0 ' or this to make it work
fit 496

Comments