www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/06/00:43:30

From: Mark Grocki <mgrocki AT umd DOT umich DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Self-modifying Inline Assembly
Date: Sun, 05 Jan 1997 23:52:41 -0800
Organization: University of Michigan
Lines: 19
Message-ID: <32D0AF49.257B@umd.umich.edu>
NNTP-Posting-Host: pm145-16.dialip.mich.net
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I've been reading through "More Tricks of the Game Programming Gurus",
and one of the chapters uses self-modifying code to speed up its sprite
rotation algorithm.  I'd love to use that technique in DJGPP's inline
ASM, but I don't know the syntax.  I've tried things like

    movl $0,%edx
label:
    movl _stuff,label-4

but the compiler doesn't seem to like it.  I'm sure it will allow me to
do it, with a flat memory model, but I think I'm just doing it wrong.

Help!  I'm running out of registers! :)

  Mark Grocki

------------------------------------------------
Hirise Software - 3D game and API developer for PCs
http://hirisesoftware.home.ml.org

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019