Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
That's assembly language.helz15 said:the language, i'm not sure really, well i think the program uses Assembly code... but i don't think thats what i actually type in.
For example, if i was telling it to move (copy) data from address 30h to the accummilator then i would put MOV A,30h... i don't know what language that is...???
helz15 said:Why do you need to know the name of something to be able to use it?
Don't get me wrong, i'm not very good at it, but i can do basic stuff in it, i just didn't know what it was called.
I was told to use a bit of software (Raisonance) and was given examples to get me going, i just never thought to ask what the language was.
In fact, i didn't really know i was using a language, i thought they were just instructions... which turns out thats what a languge is.
Anyway, if there is anyone left out there willing to help me, this is what i have managed to do so far...
SLOOP: JNB RI,$
MOV A,SBUF
CLR RI
CLR TI
MOV SBUF,A
JNB TI,$
SJMP SLOOP
It seems to get stuck at JNB TI,$, where it should be waiting for the data to be recieved.
The data i am trying to send is from one of those multimeters that you can plug into the serial port. (it did come with its own software, but for various reasons i am not using it.)
helz15 said:Why do you need to know the name of something to be able to use it?
Don't get me wrong, i'm not very good at it, but i can do basic stuff in it, i just didn't know what it was called.
I was told to use a bit of software (Raisonance) and was given examples to get me going, i just never thought to ask what the language was.
In fact, i didn't really know i was using a language, i thought they were just instructions... which turns out thats what a languge is.
Anyway, if there is anyone left out there willing to help me, this is what i have managed to do so far...
SLOOP: JNB RI,$
MOV A,SBUF
CLR RI
CLR TI
MOV SBUF,A
JNB TI,$
SJMP SLOOP
It seems to get stuck at JNB TI,$, where it should be waiting for the data to be recieved.
The data i am trying to send is from one of those multimeters that you can plug into the serial port. (it did come with its own software, but for various reasons i am not using it.)
SLOOP:
JNB RI,$ ; Jump if bit is zero (bit, rel)
MOV A,SBUF ; Move SBUF to accumulator
CLR RI ; Clear RI (RI = 0x00)
CLR TI ; Clear TI (TI = 0x00)
MOV SBUF,A ; Move Accumulator to SBUF
JNB TI,$ ; Jump if bit is zero (bit, rel)
SJMP SLOOP ; Short jump back to SLOOP
It seems to get stuck at JNB TI,$, where it should be waiting for the data to be recieved.
AtomSoft said:I think RI and TI and like Rx and Tx
This is correct.AtomSoft said:I think RI and TI are like Rx and Tx
Are you running in some kind of simulator?When the program is running, it stays highlighted blue, which I believe means it is the next command to be completed.
...i think i may have found part of my problem, in order to read from the serial port, i need to set things like baud rate, parity bit etc of the device i am using to send data with.
SLOOP: jnb RI,$ ;Jump if bit is zero (bit, rel)
mov A,SBUF ;Move SBUF to accumulator
clr RI ;Clear RI (RI = 0x00)
clr TI ;Clear TI (TI = 0x00)
mov SBUF,A ;Move Accumulator to SBUF
jnb TI,$ ;Jump if bit is zero (bit, rel)
sjmp SLOOP ;Short jump back to SLOOP
futz said:Ah, just looked. Raisonance is the name of the company. RIDE is the name of the IDE he uses (short for Raisonance IDE - duh).
Heh Sorry.helz15 said:by the way i'm not a he, i'm a girly...
helz15 said:by the way i'm not a he, i'm a girly...