Posted: Thu Sep 06, 2007 11:19 pm Post subject: Help with basic programming
base on this assembler script...
ORG 0000H
MOV A,#11111110B ; SET ACC TO CONTAIN 11111110B
START: MOV P1,A ;SEND TO PORT 1 TO ON 1 LED
MOV R2,#3 ;DELAY FOR 0.3 SEC
CALL DEALY ;ON FOR
RL A ;ROTATE THE CONTENT OF 1 BIT TO LEFT
JMP START ;REPEAT
DELAY: MOV R0,#00 ;LOAD R0 WITH 0
MOV R1,#200 ;LOAD R1 WITH 200
LOOP: DJNZ R0,LOOP ;LOOP ITSELF FOR 256
TIME=256x2US=512US
DJNZ R1,LOOP ;x 200=0.1024SEC
DJNZ R2,DELAY ;X 3=0.3 SEC
RET ;RETURN TO MAIN ROUTINE
END
now the question
how do i rotate the bits by 2 bits to the right?
what changes must be done?
pls help _________________
Long Live Cheat Engine!!!
Think My Avatar Is Cool?
Give Me A Thumb If U Think So!!!
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum