flat assembler
Message board for the users of flat assembler.
Index
> Main > Can someone please explain RCR reg,reg to me please ? |
Author |
|
shism2 08 Aug 2007, 16:45
I'm having a very hard time trying to figure out RCR reg,reg . Please help ?
|
|||
08 Aug 2007, 16:45 |
|
LocoDelAssembly 08 Aug 2007, 17:19
What it does or how to use?
If you what to use a register as src it only can be CL. |
|||
08 Aug 2007, 17:19 |
|
DJ Mauretto 08 Aug 2007, 19:13
|
|||
08 Aug 2007, 19:13 |
|
shism2 09 Aug 2007, 01:42
I don't understand that picture lol...... I want to know what the opcode does. Please explain in words lol
|
|||
09 Aug 2007, 01:42 |
|
shism2 09 Aug 2007, 13:54
Do you mean the high order bit ( bit 7 ) by eax ?
eax can hold 8 bits .... in the way you explain it from 0-7 I still dont understand what happens here : mov al, 36h rcr al,2h al is equal to "Dh" after the execution . How is the low order bit --- 6h in this case copied into the carry flag ? The carry flag can't become 6 .... |
|||
09 Aug 2007, 13:54 |
|
shism2 09 Aug 2007, 19:26
However, al can only hold a byte
So for example mov al,36h which al in bits is 110110 There are only 6 binary numbers there.... and the carry flag would count as the 7th. Why do you say 8 then ? Is there something I'm missing ? |
|||
09 Aug 2007, 19:26 |
|
DOS386 09 Aug 2007, 19:54
> Is there something I'm missing ?
YES. After 2 years and 233 posts > So for example > mov al,36h > which al in bits is 110110 00110110 > There are only 6 binary numbers there NO. always 8 > the carry flag would count as the 7th. NO. > Why do you say 8 then ? Always 8. Code: ; Before : 00110110 C ; $36 ; After 1 : C0011011 0 ; $1B ; After 2 : 0C001101 1 ; $0D BTW, C must have been zero before your RCR _________________ Bug Nr.: 12345 Title: Hello World program compiles to 100 KB !!! Status: Closed: NOT a Bug |
|||
09 Aug 2007, 19:54 |
|
shism2 09 Aug 2007, 20:12
Lol I know I don't have all the basics down..
|
|||
09 Aug 2007, 20:12 |
|
ChrisLeslie 09 Aug 2007, 22:51
> Do you mean the high order bit ( bit 7 ) by eax ?
> eax can hold 8 bits .... in the way you explain it from 0-7 The example was using an 8 bit register. If using 16 bit register then high order bit will be 15, and 31 if using a 32 bit register. > al is equal to "Dh" after the execution . How is the low order bit --- 6h in > this case copied into the carry flag ? The carry flag can't become 6 .... The low order bit is 1h. You are confusing a hex nibble with a bit. Only one bit is copied to the carry flag, not the four bits of a hex symbol. Quote: mov al,36h mov al,36h gives 00110110 in binary. You left off the top two bits. So there are 8 bits and the carry flag could count as the ninth bit during the rotate. |
|||
09 Aug 2007, 22:51 |
|
shism2 11 Aug 2007, 00:06
Well thank you everyone. I understand now
|
|||
11 Aug 2007, 00:06 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.