Article View: comp.os.msdos.programmer
Article #5927Re: I can't get SHR EAX,16 to work in protected mode ...
From: Devin Ben-Hur
Date: Tue, 23 Apr 1991 23:54
Date: Tue, 23 Apr 1991 23:54
23 lines
1170 bytes
1170 bytes
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"
Technical Details
Message-ID:
<14359@adobe.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!adobe!dbenhurReferences:
<1991Apr22.204217.29963@cm.cf.ac.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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