??? 10/20/05 08:57 Read: times |
#102666 - CJNE macros Responding to: ???'s previous message |
You can use 'cjne a,#27,$+3', for example, which will take you to the next instruction whether you jump or don't. Then you test the cy bit.
Else, set yourself up with some macros, like below: ;CJGE Compare and jump if X1 equal or greater then X2 CJGE macro X1,X2,X3 LOCAL X0 cjne X1,X2,X0 X0 jnc X3 MEND ;CJG Compare and jump if X1 greater then X2 CJG macro X1,X2,X3 LOCAL j0,j1 CJE X1,X2,j1 jnc X3 j1 MEND ;CJL Compare and jump if X1 less than X2 CJL macro X1,X2,X3 LOCAL X0 cjne X1,X2,X0 X0: jc X3 MEND ;CJLE Compare and jump if X1 less than or equal X2 CJLE macro X1,X2,X3 LOCAL X0 cjne X1,X2,X0 sjmp X3 X0: jc X3 MEND Try to avoid using CJLE and CJG - they are less efficient... Dave |
Topic | Author | Date |
CJNE clarrification | 01/01/70 00:00 | |
Please find my answer below each quest | 01/01/70 00:00 | |
cjne | 01/01/70 00:00 | |
continued.. | 01/01/70 00:00 | |
external memory | 01/01/70 00:00 | |
Absolutely! | 01/01/70 00:00 | |
cheat.... | 01/01/70 00:00 | |
Hint | 01/01/70 00:00 | |
you young whippersnappers | 01/01/70 00:00 | |
Young Whippersnappers tools | 01/01/70 00:00 | |
size & information | 01/01/70 00:00 | |
CJNE macros | 01/01/70 00:00 | |
More CJNE | 01/01/70 00:00 | |
PRE tags![]() | 01/01/70 00:00 | |
Whatever made you think that?? | 01/01/70 00:00 | |
used to other language | 01/01/70 00:00 | |
CJD | 01/01/70 00:00 | |
welllll... | 01/01/70 00:00 | |
most admirable, but | 01/01/70 00:00 | |
Don't guess! | 01/01/70 00:00 | |
which many that could not be bothered to | 01/01/70 00:00 | |
Value testing | 01/01/70 00:00 | |
Confusing for bigineer | 01/01/70 00:00 | |
Just apply it | 01/01/70 00:00 | |
what more then "the bibl" do you need | 01/01/70 00:00 |