Hey Guys, I'm stuck, and my brain is very confused.
I am using Hserin via rs232 to receive an 8 digit (meter) number from a machine.
I use the command
PTr=2
Bcdtoassci w1,w2 and so on for all 8 digits
Then
W1=w1-$30 to get Actual number, I have managed to place the higher 4 numbers in one word variable and the lower 4 in another. As well display them on LCD.
What I am trying to do is poll that machine after each play, retrieve the number and display the difference on the LCD.
I would need to calculate using the full 8 digit number, for the score could change by a significant amount each time.
Then if the difference is higher then let's say 2000 they would receive a free game play. It's an old arcade game I am trying to modernize.
As well I am tying to minimize the amount of variables being used
Thanks Steve
I am using Hserin via rs232 to receive an 8 digit (meter) number from a machine.
I use the command
PTr=2
Bcdtoassci w1,w2 and so on for all 8 digits
Then
W1=w1-$30 to get Actual number, I have managed to place the higher 4 numbers in one word variable and the lower 4 in another. As well display them on LCD.
What I am trying to do is poll that machine after each play, retrieve the number and display the difference on the LCD.
I would need to calculate using the full 8 digit number, for the score could change by a significant amount each time.
Then if the difference is higher then let's say 2000 they would receive a free game play. It's an old arcade game I am trying to modernize.
As well I am tying to minimize the amount of variables being used
Thanks Steve