Re: Not too important asm beginner question.... (asm programming)
- Posted by Pete Eberlein <xseal at HARBORSIDE.COM> Apr 14, 1998
- 730 views
Eduardo Uemura Okada wrote: > Once again, here is some more shoot: in your example to put a pixel on mode > 13h, you used the 32-bit registers ebx, etc. Well, I read in some tutorial, > that the 32-bit mode still allows 16-bit instructions, so I keep thinking > (what a bore of beginner! - no, not exactly , I am using a little asm > conversion utility asm2eu made by Alexander Yakovlev in the archive of > EuPage, but it doesn't accept any 32-bit registers, so, without obj code for > 32-bit, can I make a routine to manipulate sprites faster than in euphoria, > but with 16-bit instructions? Not with 16-bit. I tried asm2eu with some simple 16-bit instructions. My machine crashed when I tried to execute the machine codes. Protected mode and 16-bit machine codes do not mix. You need a 32-bit assembler to write code that will work in protected mode. 16-bit instructions do work under protected mode, but require a special prefix (#66) to indicate the word size of the instruction. A similar prefix (#67) is used to override 32-bit memory addressing. I need to send my latest version of asm.e to the Recent Contributions page. asm.e compiles 32-bit code. It doesn't have a separate conversion program yet... I do my asm inline with strings. I don't know when I will finish the tutorial... I made a link to what I have so far on the tutorials section of my Euphoria site. http://www.harborside.com/home/x/xseal/euphoria/ -- _____ _____ _____ ________ /\ \ /\ \ /\ \ / \ \ / \____\ / \____\ / \____\ / _ \____\ / / ___/_ / /____/ / / ___/_ / / \ |____|/ / /\____\ / \ \ / / /\____\ \ \_/ / / \ \/ / ___/_\ \ \ \ \/ / ___/_ \ /____/ \ / /\ \\/\ \ \ \ / /\ \ \ \ \ \ \/ \____\ \ \ \ \ \/ \____\ \ \ \ \ / / \ \____\ \ / / \ \____\ \ / / \ / / \ / / \ / / \ / / \/____/ \ / / \/____/ \/____/xseal at harborside.com\/____/ "You can only be young once, but you can be immature forever"