Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


help on basic programming

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
jam84
Advanced Cheater
Reputation: 0

Joined: 29 Oct 2005
Posts: 78
Location: Malaysia

PostPosted: Wed Sep 05, 2007 11:06 pm    Post subject: help on basic programming Reply with quote

base on this assembler script...



[code] 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[/code]

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!!!
Back to top
View user's profile Send private message
sponge
I'm a spammer
Reputation: 1

Joined: 07 Nov 2006
Posts: 6009

PostPosted: Wed Sep 05, 2007 11:21 pm    Post subject: Reply with quote

umm... not x86 assembly.... it would help to specify what type.
_________________
Back to top
View user's profile Send private message
zart
Master Cheater
Reputation: 0

Joined: 20 Aug 2007
Posts: 351
Location: russia

PostPosted: Thu Sep 06, 2007 4:54 am    Post subject: Reply with quote

By "rotate" do you mean "shift"?
_________________
0x7A 0x61 0x72 0x74

TEAM RESURRECTiON
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites