TIP: Click on subject to list as thread! ANSI
echo: power_bas
to: ALL
from: GREGOIRE TURGEON
date: 1998-05-12 05:06:00
subject: Re: 3D game engine for PB

From: gturgeon@meol.mass.edu (Gregoire Turgeon)
Subject: Re: 3D game engine for PB?
 
On 11 May 1998 14:17:37 GMT, brianster@aol.com (Brianster) wrote:
 
>Ok, now I'm pretty confused here.  I'm not a professioanl programmer on the
>level you guys are and no very little about assembler.  (I usually learn
>something about it only when I see some code and I want to know how it 
works.)
>But I'm really confused about what instruction PB's inline can handle.  On 
one
>had, if you're doing stright inline assembly programming, you have to 
onform
>to the 8086 instruction set, right?  If you want to use 32-bit instructions,
>you need to link .obj files compiled in a seperate assembler compiler (Masm,
>Tasm, Nasm...the debate rages on :)...)  But, if I'm following this 
correctly,
>everyone is saying that I can write 386 assembly code, put it in PB but just
>put a !db in front of it and it will work?  Somehow this seems a little to 
easy
>to me and I think I'm missing something here...
 
A rough example, obviously plucked from something longer but
illustrating the technique:
 
!  (prep ds:si /es:di)
!  push  cx
!  mov   cx,   %BLOCKSIZE
!  DB    &h0F3   ; rep movsd
!  DB    &h66
!  DB    &h0A5
!  pop   cx
 
 
--
Greg Turgeon
 
*** QwkNews (tm) v2.1
 * [TN71] alt.lang.powerbasic  POWER_BAS Gateway
--- GEcho 1.20/Pro
---------------
* Origin: Toast House Remote (1:100/560.2)

SOURCE: echomail via exec-pc

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.