Konichiwa, Yep you got it on the macro stuff for a start, SKPNC is shorthand for Skip if No Carry. These macros can be found in MPASM. Take a look at them first and attempt to get the general flavour, they are not totemo muzalcahci, but do require that you give them some thought. Macros will make your code more readable, but like all things they should not be abused. Make sure that you understand the PIC assembly first. Dennis > -----Original Message----- > From: Keishiro Tabe [SMTP:tab@SHALAB.PHYS.WASEDA.AC.JP] > Sent: Monday, 17 April 2000 15:27 > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [OT] Software Random function > > Thanks Andy! > > I'm trying the code you sent. > But I have a few question. > > > Or, if you prefer, you can use this routine (written by Marv > > Isaacman) instead: > > > > MARV: MOVLW 01DH > > CLRC > > RLF RANDOM > > SKPNC > > XORWF RANDOM > > RETLW 0 > > "CLRC", "SKPNC" > I think about CLRC that C flag clear. > About SKPNC, if C flag is 0, then next is skipped. > Is it wrong? > > I have never used the macro. > If you introduce me how to write these macro, I will be a better PICer!! > > Regards. > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~ > Shuji Hashimoto Laboratory. > Waseda.Univ.Dept.of.Applied Physics. > > Keishiro Tabe tab@shalab.phys.waseda.ac.jp > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > ~ > > >