programming tools for Windows applications development
  Home  |   SwiftForth Archive  |   SwiftX Archive  |

Re: asm code for SWAP?

From: Leon Wagner <leon_at_forth.com>
Date: Sun, 23 Mar 2003 19:35:20 -0800

> Also, I thought I should be able to do a 2 # AL SHL but when I do a
>
> code zzz EBX EAX MOV 2 # AL SHL EAX EBX MOV RET END-CODE it assembles with
> no errors, but when I run it I get an ACCESS_VIOLATION.

What does it look like when you disassemble it? Probably not what you were
expecting. The operands are reversed for this form of the shift and rotate
instructions. Try AL 2 # SHL.

--LW

----------------------------------------------------------------------
sftalk_at_forth.com The SwiftForth programming discussion email list
To unsubscribe, send subject "unsubscribe" to sftalk-request_at_forth.com
For list command help, send subject "help" to sftalk-request_at_forth.com
Message archives are located at http://www.forth.com/archive/sftalk
----------------------------------------------------------------------
This list is a forum for SwiftForth users. For product support and bug
reports, please send email to support_at_forth.com
----------------------------------------------------------------------
Received on Sat Mar 22 2003 - 19:43:34 PST

This archive was generated by hypermail 2.2.0 : Tue Dec 02 2008 - 03:04:31 PST