hinddhindsa Member H Join Date Mar 2013 Location www.plckart.com Posts 193 Jun 17, 2013 #1 Hi,from A/D module i am importing value using FROM and storing it in D10 register,Next i want to compare it with fix value of 400.But in CMP how can i make this.S1 i keep to D10 and what should be my S2.
Hi,from A/D module i am importing value using FROM and storing it in D10 register,Next i want to compare it with fix value of 400.But in CMP how can i make this.S1 i keep to D10 and what should be my S2.
Anirban Hazra Member Join Date Jan 2013 Location Kolkata Posts 192 Jun 17, 2013 #2 It should be K400. Any Constant value in GX developer is written with a K before it.
hinddhindsa Member OP H Join Date Mar 2013 Location www.plckart.com Posts 193 Jun 17, 2013 #3 so i should keep S2 as k400.i sent you request in facebook.thank you sir.
hinddhindsa Member OP H Join Date Mar 2013 Location www.plckart.com Posts 193 Jun 17, 2013 #4 and suppose if i want to store Value 500 to D15 register then i have to do MOV K500 D15. right ?
Anirban Hazra Member Join Date Jan 2013 Location Kolkata Posts 192 Jun 17, 2013 #5 Yes, that is right.
Donnchadh Lifetime Supporting Member D Join Date Jun 2002 Location Ireland Posts 1,004 Jun 17, 2013 #6 Hi Just remember that the cmp uses 3 m bits 1 for less than 1 for equal 1 for greater than You may want to look at dcmp for double words Donnchadh
Hi Just remember that the cmp uses 3 m bits 1 for less than 1 for equal 1 for greater than You may want to look at dcmp for double words Donnchadh