flat assembler
Message board for the users of flat assembler.
  
       
      Index
      > Main > al vs. ah | 
  
| Author | 
  | 
              
| 
                  
                   tthsqe 21 Oct 2014, 08:25 
                  the error reported by fasm is accurate. that combinary of regiseter and mod/rm is not allowed. see the intel manuals, the one I am looking at has a table called
 
                  
                Table 3-1. Register Codes Associated With +rb, +rw, +rd, +ro  | 
              |||
                  
  | 
              
| 
                  
                   revolution 21 Oct 2014, 08:55 
                  The registers AH, BH CH and DH cannot be used in all places in 64-bit mode. There are encoding restrictions in the instruction set. It is mostly a legacy thing concerning the history and evolution of the x86 instructions over time.
 
                  
                For the same reason SIL, DIL, BPL and SPL cannot be used in 32-bit mode.  | 
              |||
                  
  | 
              
| 
                  
                   cryo1970 21 Oct 2014, 09:46 
                  Thank you for both answers. I still have a LOT to learn. I shall do my homework and check with the Intel manual, when I get back home.
 
                  
                Have a nice day.  | 
              |||
                  
  | 
              
< Last Thread | Next Thread >  | 
    
Forum Rules: 
  | 
    
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.