mpu generates #2 as a register 2 (or 3) with some addressing mode. Also, -1,1,0,2,4,8 consts can be generated likewise. slau049b.pdf pp. 75-99
~d On Friday 27 December 2002 10:34, Garst R. Reese wrote: > Why does the first case use 2 bytes and the second 3? > > void test1(void) > { > // lapStatus.lapRemoteBusy = true; > lapStatus.lapXIDData = true; > 1262: e2 d3 06 02 bis.b #2, &0x0206 ;subst > r3 with A > s==10 > } > 1266: 30 41 ret > > void test2(void) > { > lapStatus.lapRemoteBusy = true; > lapStatus.lapXIDData = true; > 1262: f2 d0 03 00 06 02 bis.b #3, &0x0206 ;#0x0003 > } > 1268: 30 41 ret > Thanks, > Garst > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Mspgcc-users mailing list > Mspgcc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/mspgcc-users -- /******************************************************************** ("`-''-/").___..--''"`-._ (\ Dimmy the Wild UA1ACZ `6_ 6 ) `-. ( ).`-.__.`) Enterprise Information Sys (_Y_.)' ._ ) `._ `. ``-..-' Nevsky prospekt, 20 / 44 _..`--'_..-_/ /--'_.' ,' Saint Petersburg, Russia (il),-'' (li),' ((!.-' +7 (812) 3468202, 5585314 ********************************************************************/