Assembly code math??
krazyideas
Posts: 119
Hello
I just wanted to know from someone that·isn't a beginner at·assembly programing if
1 I set up CTRA correctly to monitor·pin 0?
2 if I can·divide a varuble (measure2) by 10 and store the value in degree like this?
and what is the command to display a numerical varuble on a Monitor? I want to use the VGA_text.spin program from the Propellor Library is that right?
And comments would be very welcome
Thanks
······················· movs CTRA, %0·························· {Monitor pin 0}
······················· movi CTRA, %011010000·············· {Set CTRa mode to logic A and PLLa to times 16}
······················· mov degree, (measure2 / 10)········ {Divide clock's passed by 10 to get clock's pass in one degree}
·
I just wanted to know from someone that·isn't a beginner at·assembly programing if
1 I set up CTRA correctly to monitor·pin 0?
2 if I can·divide a varuble (measure2) by 10 and store the value in degree like this?
and what is the command to display a numerical varuble on a Monitor? I want to use the VGA_text.spin program from the Propellor Library is that right?
And comments would be very welcome
Thanks
······················· movs CTRA, %0·························· {Monitor pin 0}
······················· movi CTRA, %011010000·············· {Set CTRa mode to logic A and PLLa to times 16}
······················· mov degree, (measure2 / 10)········ {Divide clock's passed by 10 to get clock's pass in one degree}
·
Comments
The vga_text object has a couple of funtions to display numbers and text, have a look at the keyboard example in the library (in your propeller tool subdirectory) for usages.