Xref: utzoo comp.os.msdos.programmer:4857 alt.lang.asm:11 Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!adobe!dbenhur From: dbenhur@adobe.COM (Devin Ben-Hur) Newsgroups: comp.os.msdos.programmer,alt.lang.asm Subject: Re: I can't get SHR EAX,16 to work in protected mode ... Message-ID: <14359@adobe.UUCP> Date: 23 Apr 91 23:54:03 GMT References: <1991Apr22.204217.29963@cm.cf.ac.uk> Reply-To: dbenhur@adobe.UUCP (Devin Ben-Hur) Followup-To: comp.sys.ibm.pc.programmer Organization: Adobe Systems Incorporated, Mountain View Lines: 23 In article <1991Apr22.204217.29963@cm.cf.ac.uk> rhl@computing-maths.cardiff.ac.uk (Robert Hartill) writes: > MOV EAX,12345678h > SHR EAX,16 > call print_hex > >I still get 0. I suspect the default base in your assembler is hex and you're actually shifting by 22 bits. 0 is a funny answer (0x48 would be correct) but maybe you're not relating the precise values and this is really your problem... I just tried a test in Turbo Debugger 386 and MOV EAX,12345678 SHR EAX,10 produced 00001234 as expected. -- --- Devin Ben-Hur dbenhur@adobe.com 415/962-6074 drazil@netcom.com "Me, not Adobe"